[03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]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:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]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:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]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:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14: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:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37: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:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56: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:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:38]accept exits with 7 [06:11:38]New connection [06:11:38]New thread 3066809700 created [06:11:38]Thread 3066666340 joined [06:11:38]Waiting for new connection... [06:11:38] Sock 7.Parse request [06:11:38]Sock 7.Check first char [06:11:38]Sock 7.First char is OK [06:11:38]request: POST /json_proto HTTP/1.0 [06:11:38]Method: POST [06:11:38]URL: /json_proto [06:11:38]Method is POST - this is cgi request [06:11:38]url: /json_proto [06:11:38]query_string will be loaded in cgi processing [06:11:38]execute_cgi json_proto POST (null) [06:11:38]execute_cgi path=json_proto method=POST [06:11:38]POST find Content-Length [06:11:38]Host: 172.17.38.4:8080 [06:11:38]Content-Length: 977 [06:11:38]Content-Type: application/json [06:11:38] [06:11:38]POST finish read [06:11:38]Found Content-Length = 977 [06:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 72.330, "sum" : 5200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 72.33 \u0441\u043E\u043C", "deposit" : 5200.00, "total" : 5200.00, "payments": [ { "type": 0, "sum" : 5200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:38]execute_script... [06:11: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)979588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 72.330, "sum" : 5200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 72.33 \u0441\u043E\u043C", "deposit" : 5200.00, "total" : 5200.00, "payments": [ { "type": 0, "sum" : 5200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:38]POST & json_proto [06:11:38]process_json_proto [06:11:38]json parsed OK: [06:11:38]protocol is kg_v1.0 [06:11:38]action value=close_receipt [06:11:38]process_action close_receipt [06:11:38]cmd_close_receipt [06:11:38]MH_GetDate [06:11:38]Write to MH i2c: F0 00 00 CB 09 C3 [06:11:38]Write i2c OK [06:11:38]MH_I2C_Read... [06:11:38]Read from MH i2c: F0 [06:11:38]MH_I2C_Read... [06:11:38]Read from MH i2c: F0 09 00 [06:11:38]MH_I2C_Read... [06:11:38]Read from MH i2c: F0 09 00 CB 09 00 1C B0 5E 66 CC 51 87 64 64 [06:11:38]GetLastDocTimeStamp 1717467146 [06:11:38]current date 1717481500 [06:11:38]FM_GetShiftState [06:11:38]SAM_PROTO_GetShiftState [06:11:38]wFMCommunicate request_size=4 [06:11:38]MH_SAM_APDU [06:11:38]CAPDU: 80 13 01 00 [06:11:38]Write to MH i2c: E2 08 00 CC 09 80 13 01 00 00 00 00 00 52 [06:11:38]Write i2c OK [06:11:38]MH_I2C_Read... [06:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:38]Read from MH i2c: E2 [06:11:38]MH_I2C_Read... [06:11:38]Read from MH i2c: E2 0E 00 [06:11:38]MH_I2C_Read... [06:11:38]Read from MH i2c: E2 0E 00 CC 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 15 [06:11:38]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [06:11:38]wFMCommunicate OK [06:11:38]SAM_PROTO_GetShiftState done [06:11:38]FM_GetShiftState done [06:11:38]opened in 1717460629 [06:11:38]opened+sec_in_day 1717547029 [06:11:38]quantity*price = 520052 [06:11:38]sum+1 = 520054 [06:11:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 5200.00 Внесено: 5200.00 СДАЧА: 0.00 НСП 1% : 46.02 НДС 12% : 552.27 Наличными: 5200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 4 04.06.2024 06:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа ДТ номер 68 сэкономлено 72.33 сом ФМ: 0000000000875057 ФД: 148665 ФПД: 18026953677483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T061140&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148665&fm=18026953677483&tin=02508201610067®Number=0000000000092720&sum=520000 [06:11:40]StoreToDocumentArchive [06:11:40]shift 368 fd 148665 [06:11:40]save to /storage/0368/doc_00148665 [06:11:40]save last doc name /storage/0368/doc_00148665 to /storage/kkm_last_doc_name [06:11:40]save OK [06:11:40]Clear old archive folders... [06:11:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:11:40]tlvbuf is 015EAC40 [06:11:40]SAM_PROTO_ClearQueue [06:11:40]wFMCommunicate request_size=4 [06:11:40]MH_SAM_APDU [06:11:40]CAPDU: 80 09 00 00 [06:11:40]Write to MH i2c: E2 08 00 D9 09 80 09 00 00 00 00 00 00 54 [06:11:40]Write i2c OK [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 [06:11:40]MH_I2C_Read... [06:11:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:11:40]Read from MH i2c: E2 03 00 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [06:11:40]RAPDU: 90 00 [06:11:40]wFMCommunicate OK [06:11:40]SAM_PROTO_ClearQueue done [06:11:40]KKMCreateOFDPacket [06:11:40]OFDProtocolAddRootSTLVToBuf [06:11:40]FM_MakeSignedData [06:11:40]FM_MakeSignedData [06:11:40]SAM_PROTO_SignData [06:11:40]wFMCommunicate request_size=4 [06:11:40]MH_SAM_APDU [06:11:40]CAPDU: 80 0D 01 02 [06:11:40]Write to MH i2c: E2 08 00 DA 09 80 0D 01 02 00 00 00 00 5C [06:11:40]Write i2c OK [06:11:40]MH_I2C_Read... [06:11:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:11:40]Read from MH i2c: E2 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 03 00 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [06:11:40]RAPDU: 90 00 [06:11:40]wFMCommunicate OK [06:11:40]wFMCommunicate request_size=255 [06:11:40]MH_SAM_APDU [06:11:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 1A 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 75 EF 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 EF 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB D7 00 00 00 00 07 04 06 00 40 EF 07 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 1C B0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B9 44 02 00 35 04 06 00 10 65 3A 2B [06:11:40]Write to MH i2c: E2 02 01 DB 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 1A 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 75 EF 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 EF 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB D7 00 00 00 00 07 04 06 00 40 EF 07 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 1C B0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B9 44 02 00 35 04 06 00 10 65 3A 2B 00 00 DD [06:11:40]Write i2c OK [06:11:40]MH_I2C_Read... [06:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:40]Read from MH i2c: E2 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 03 00 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 03 00 DB 09 00 90 00 58 [06:11:40]RAPDU: 90 00 [06:11:40]wFMCommunicate OK [06:11:40]wFMCommunicate request_size=7 [06:11:40]MH_SAM_APDU [06:11:40]CAPDU: 80 0D 02 02 02 9A AB [06:11:40]Write to MH i2c: E2 0A 00 DC 09 80 0D 02 02 02 00 9A AB 00 00 A8 [06:11:40]Write i2c OK [06:11:40]MH_I2C_Read... [06:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:40]Read from MH i2c: E2 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 03 00 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 03 00 DC 09 00 90 00 59 [06:11:40]RAPDU: 90 00 [06:11:40]wFMCommunicate OK [06:11:40]wFMCommunicate request_size=4 [06:11:40]MH_SAM_APDU [06:11:40]CAPDU: 80 0D 03 02 [06:11:40]Write to MH i2c: E2 08 00 DD 09 80 0D 03 02 00 00 00 00 61 [06:11:40]Write i2c OK [06:11:40]MH_I2C_Read... [06:11:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:11:40]Read from MH i2c: E2 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 0B 00 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 0B 00 DD 09 00 5B 7C 84 F0 90 FF 73 FB 90 00 AA [06:11:40]RAPDU: 5B 7C 84 F0 90 FF 73 FB 90 00 [06:11:40]wFMCommunicate OK [06:11:40]SAM_PROTO_SignData done [06:11:40]FM_MakeSignedData done [06:11:40]CreateOFDProtocolMessage [06:11:40]wFMCommunicate request_size=4 [06:11:40]MH_SAM_APDU [06:11:40]CAPDU: 80 11 00 00 [06:11:40]Write to MH i2c: E2 08 00 DE 09 80 11 00 00 00 00 00 00 61 [06:11:40]Write i2c OK [06:11:40]MH_I2C_Read... [06:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:40]Read from MH i2c: E2 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 17 00 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: E2 17 00 DE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B4 [06:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [06:11:40]wFMCommunicate OK [06:11:40]CreateOFDProtocolMessage done [06:11:40]OFDSenderStorePacket 148665 [06:11:40]StoreOFDPacket docnum=148665 [06:11:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 6D EB 04 01 10 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 1A 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 75 EF 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 EF 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB D7 00 00 00 00 07 04 06 00 40 EF 07 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 1C B0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B9 44 02 00 35 04 06 00 10 65 3A 2B 9A AB 5B 7C 84 F0 90 FF 73 FB [06:11:40]CheckFolder [06:11:40]dirname=/storage/ofd_packets [06:11:40]CheckFolder done [06:11:40]ProducePacketName [06:11:40]name=ofd_packets/00148665 [06:11:40]NVStorageSaveData ofd_packets/00148665 [06:11:40]File name is /storage/ofd_packets/00148665 [06:11:40]Write 298 bytes [06:11:40]NVStorageSaveData done [06:11:40]OFDSenderStorePacket done [06:11:40]KKMCreateOFDPacket done [06:11:40]NVStorageSaveData kkm_last_timestamp [06:11:40]File name is /storage/kkm_last_timestamp [06:11:40]Write 4 bytes [06:11:40]NVStorageSaveData done [06:11:40]ExternCall_PrintAddStr [06:11:40]wPrintStart [06:11:40]Write to MH i2c: 01 00 00 DF 09 E8 [06:11:40]Write i2c OK [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: 01 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: 01 07 00 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: 01 07 00 DF 09 00 00 00 00 00 FF 0F FD [06:11:40]RasterBufferAndPrint [06:11:40]line Счет N : (1)979588 [06:11:40]line ИНН: 02508201610067 [06:11:40]line Контрольно-Кассовый Чек [06:11:40]line ПРОДАЖА [06:11:40]line ТРК (МРК, ГНК) : 51 [06:11:40]line Товар: 2710194210 [06:11:40]line ДТ-К-5 [06:11:40]line 72.330 * 71.90 [06:11:40]line = 5200.53 [06:11:40]line НДС 12% НСП 1% [06:11:40]line > о реализуемом товаре [06:11:40]line ОКРУГЛЕНИЕ: -0.53 [06:11:40]line ИТОГО: 5200.00 [06:11:40]line Внесено: 5200.00 [06:11:40]line СДАЧА: 0.00 [06:11:40]line НСП 1% : 46.02 [06:11:40]line НДС 12% : 552.27 [06:11:40]line Наличными: 5200.00 [06:11:40]line Безнал.: 0.00 [06:11:40]line Место: АЗС № 68 "Партнер Нефть" [06:11:40]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [06:11:40]line СНО: Общий режим [06:11:40]line Чек 4 04.06.2024 06:11 [06:11:40]line Смена: 368 ФФД: 1.0 [06:11:40]line ЗНМ: 0300000035 [06:11:40]line РНМ: 0000000000092720 [06:11:40]line Версия ККМ: 001 [06:11:40]line [06:11:40]line Дисконтная программа [06:11:40]line ДТ [06:11:40]line номер 68 [06:11:40]line сэкономлено 72.33 сом [06:11:40]line ФМ: 0000000000875057 [06:11:40]line ФД: 148665 [06:11:40]line ФПД: 18026953677483 [06:11:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T061140&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148665&fm=18026953677483&tin=02508201610067®Number=0000000000092720&sum=520000 [06:11:40]OFD Sender: Processing packet 148665 [packets to send 100, broken 99] [06:11:40]ProducePacketName [06:11:40]name=ofd_packets/00148665 [06:11:40]OFD Sender: To server: pG, [06:11:40]CommunicateWithHost lk.salyk.kg:30040 [06:11:40]ConnectInit lk.salyk.kg [06:11:40]written 0, free lines is 4095 [06:11:41]Connected sock=10 [06:11:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 6D EB 04 01 10 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 1A 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 75 EF 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 EF 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB D7 00 00 00 00 07 04 06 00 40 EF 07 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 1C B0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B9 44 02 00 35 04 06 00 10 65 3A 2B 9A AB 5B 7C 84 F0 90 FF 73 FB [06:11:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 07 CA 47 00 47 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 38 37 35 30 35 37 10 04 04 00 B9 44 02 00 F4 03 04 00 41 57 5E 66 B6 04 01 00 00 7D 08 A0 30 C5 64 5C E3 [06:11:41]CommunicateWithHost err = 0 [06:11:41]CheckOFDResponse [06:11:41]1017 (14) - 77093643461234 [06:11:41]1041 (16) - 0000000000875057 [06:11:41]1040 (4) - 148665 [06:11:41]1012 (4) - 03.06.2024 23:52 [06:11:41]1206 (1) - 0 [06:11:41]OFD Sender: Remove packet 148665 [06:11:41]ProducePacketName [06:11:41]name=ofd_packets/00148665 [06:11:41]NVStorageDeleteData [06:11:41]Write to MH i2c: 01 00 00 0F 0A 19 [06:11:41]Write i2c OK [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: 01 [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: 01 07 00 [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: 01 07 00 0F 0A 00 00 00 00 00 ED 0B 18 [06:11:41]RasterBufferAndPrint [06:11:41]line [06:11:41]line [06:11:41]line [06:11:41]line [06:11:41]line [06:11:41]written 0, free lines is 3056 [06:11:41]MH_Cut [06:11:41]Write to MH i2c: D1 01 00 16 0A 01 F2 [06:11:41]Write i2c OK [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: D1 [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: D1 01 00 [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: D1 01 00 16 0A 00 F1 [06:11:41]Write to MH i2c: 01 00 00 17 0A 21 [06:11:41]Write i2c OK [06:11:41]MH_I2C_Read... [06:11:41]OFD Sender: No OFD packet to send [06:11:42]*** Cut start [06:11:42]*** Partial cut [06:11:42]*** CUTSNS_PIN = 1 [06:11:42]*** CUTSNS_PIN = 0 [06:11:43]*** Brake cut motor [06:11:43]Read from MH i2c: 01 [06:11:43]MH_I2C_Read... [06:11:43]*** Stop cut motor [06:11:43]*** Cut end [06:11:43]Read from MH i2c: 01 07 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: 01 07 00 17 0A 00 00 00 00 00 FF 0F 36 [06:11:43]process_action close_receipt done [06:11:43]requested_data is exist [06:11:43]produce_requested_data [06:11:43]requested_item fm.sn is exist - process it [06:11:43]wFMCommunicate request_size=4 [06:11:43]MH_SAM_APDU [06:11:43]CAPDU: 80 11 00 00 [06:11:43]Write to MH i2c: E2 08 00 18 0A 80 11 00 00 00 00 00 00 9C [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:43]Read from MH i2c: E2 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 17 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 17 00 18 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EF [06:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [06:11:43]wFMCommunicate OK [06:11:43]requested_item fd.num is exist - process it [06:11:43]SAM_PROTO_GetFieldsCounters [06:11:43]wFMCommunicate request_size=4 [06:11:43]MH_SAM_APDU [06:11:43]CAPDU: 80 13 00 00 [06:11:43]Write to MH i2c: E2 08 00 19 0A 80 13 00 00 00 00 00 00 9F [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:43]Read from MH i2c: E2 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 62 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 62 00 19 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B9 44 02 00 0E 04 04 00 70 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 37 [06:11:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B9 44 02 00 0E 04 04 00 70 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:11:43]wFMCommunicate OK [06:11:43]SAM_PROTO_GetFieldsCounters done [06:11:43]requested_item shift.num is exist - process it [06:11:43]requested_item shift.opened is exist - process it [06:11:43]req_shift_opened [06:11:43]FM_GetShiftState [06:11:43]SAM_PROTO_GetShiftState [06:11:43]wFMCommunicate request_size=4 [06:11:43]MH_SAM_APDU [06:11:43]CAPDU: 80 13 01 00 [06:11:43]Write to MH i2c: E2 08 00 1A 0A 80 13 01 00 00 00 00 00 A1 [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:43]Read from MH i2c: E2 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 0E 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 0E 00 1A 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 64 [06:11:43]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [06:11:43]wFMCommunicate OK [06:11:43]SAM_PROTO_GetShiftState done [06:11:43]FM_GetShiftState done [06:11:43]req_shift_opened done [06:11:43]requested_item shift.open_date is exist - process it [06:11:43]req_shift_open_date [06:11:43]req_shift_open_date done [06:11:43]produce_requested_data done [06:11:43]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148665,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [06:11:43]process_action_free close_receipt [06:11:43]json_value_free [06:11:43]json_value_free done [06:11:43]process_json_proto returns [06:11:43]Send response to host [06:11:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148665,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [06:11:43]free response buf [06:11:43]execute_script done [06:11:43]execute_script returns [06:11:43]free content buf [06:11:43]Sock 7.Close socket [06:11:43]Sock 7.Thread stoped [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:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:27]accept exits with 9 [06:51:27]New connection [06:51:27]New thread 3066666340 created [06:51:27]Thread 3066809700 joined [06:51:27]Waiting for new connection... [06:51:27] Sock 9.Parse request [06:51:27]Sock 9.Check first char [06:51:27]Sock 9.First char is OK [06:51:27]request: POST /json_proto HTTP/1.0 [06:51:27]Method: POST [06:51:27]URL: /json_proto [06:51:27]Method is POST - this is cgi request [06:51:27]url: /json_proto [06:51:27]query_string will be loaded in cgi processing [06:51:27]execute_cgi json_proto POST (null) [06:51:27]execute_cgi path=json_proto method=POST [06:51:27]POST find Content-Length [06:51:27]Host: 172.17.38.4:8080 [06:51:27]Content-Length: 679 [06:51:27]Content-Type: application/json [06:51:27] [06:51:27]POST finish read [06:51:27]Found Content-Length = 679 [06:51:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 24.700, "sum" : 1800.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:27]execute_script... [06:51: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)979589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 24.700, "sum" : 1800.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:27]POST & json_proto [06:51:27]process_json_proto [06:51:27]json parsed OK: [06:51:27]protocol is kg_v1.0 [06:51:27]action value=close_receipt [06:51:27]process_action close_receipt [06:51:27]cmd_close_receipt [06:51:27]MH_GetDate [06:51:27]Write to MH i2c: F0 00 00 1B 0A 14 [06:51:27]Write i2c OK [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: F0 [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: F0 09 00 [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: F0 09 00 1B 0A 00 71 B9 5E 66 CC 51 87 64 13 [06:51:27]GetLastDocTimeStamp 1717481500 [06:51:27]current date 1717483889 [06:51:27]FM_GetShiftState [06:51:27]SAM_PROTO_GetShiftState [06:51:27]wFMCommunicate request_size=4 [06:51:27]MH_SAM_APDU [06:51:27]CAPDU: 80 13 01 00 [06:51:27]Write to MH i2c: E2 08 00 1C 0A 80 13 01 00 00 00 00 00 A3 [06:51:27]Write i2c OK [06:51:27]MH_I2C_Read... [06:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:27]Read from MH i2c: E2 [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: E2 0E 00 [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: E2 0E 00 1C 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 66 [06:51:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [06:51:27]wFMCommunicate OK [06:51:27]SAM_PROTO_GetShiftState done [06:51:27]FM_GetShiftState done [06:51:27]opened in 1717460629 [06:51:27]opened+sec_in_day 1717547029 [06:51:27]quantity*price = 180063 [06:51:27]sum+1 = 180064 [06:51:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.22 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 5 04.06.2024 06:51 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148666 ФПД: 170440417536156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T065129&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148666&fm=170440417536156&tin=02508201610067®Number=0000000000092720&sum=180000 [06:51:28]StoreToDocumentArchive [06:51:28]shift 368 fd 148666 [06:51:28]save to /storage/0368/doc_00148666 [06:51:28]save last doc name /storage/0368/doc_00148666 to /storage/kkm_last_doc_name [06:51:28]save OK [06:51:28]Clear old archive folders... [06:51:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:51:28]tlvbuf is 015E01F0 [06:51:28]SAM_PROTO_ClearQueue [06:51:28]wFMCommunicate request_size=4 [06:51:28]MH_SAM_APDU [06:51:28]CAPDU: 80 09 00 00 [06:51:28]Write to MH i2c: E2 08 00 29 0A 80 09 00 00 00 00 00 00 A5 [06:51:28]Write i2c OK [06:51:28]MH_I2C_Read... [06:51:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:28]Read from MH i2c: E2 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: E2 03 00 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: E2 03 00 29 0A 00 90 00 A7 [06:51:28]RAPDU: 90 00 [06:51:28]wFMCommunicate OK [06:51:28]SAM_PROTO_ClearQueue done [06:51:28]KKMCreateOFDPacket [06:51:28]OFDProtocolAddRootSTLVToBuf [06:51:28]FM_MakeSignedData [06:51:28]FM_MakeSignedData [06:51:28]SAM_PROTO_SignData [06:51:28]wFMCommunicate request_size=4 [06:51:28]MH_SAM_APDU [06:51:28]CAPDU: 80 0D 01 02 [06:51:28]Write to MH i2c: E2 08 00 2A 0A 80 0D 01 02 00 00 00 00 AD [06:51:28]Write i2c OK [06:51:28]MH_I2C_Read... [06:51:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:28]Read from MH i2c: E2 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: E2 03 00 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: E2 03 00 2A 0A 00 90 00 A8 [06:51:28]RAPDU: 90 00 [06:51:28]wFMCommunicate OK [06:51:28]wFMCommunicate request_size=255 [06:51:28]MH_SAM_APDU [06:51:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 71 B9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BA 44 02 00 35 04 06 00 9B 03 C0 8A [06:51:28]Write to MH i2c: E2 02 01 2B 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 71 B9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BA 44 02 00 35 04 06 00 9B 03 C0 8A 00 00 E0 [06:51:28]Write i2c OK [06:51:28]MH_I2C_Read... [06:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:29]Read from MH i2c: E2 [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: E2 03 00 [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: E2 03 00 2B 0A 00 90 00 A9 [06:51:29]RAPDU: 90 00 [06:51:29]wFMCommunicate OK [06:51:29]wFMCommunicate request_size=7 [06:51:29]MH_SAM_APDU [06:51:29]CAPDU: 80 0D 02 02 02 E8 9C [06:51:29]Write to MH i2c: E2 0A 00 2C 0A 80 0D 02 02 02 00 E8 9C 00 00 38 [06:51:29]Write i2c OK [06:51:29]MH_I2C_Read... [06:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:29]Read from MH i2c: E2 [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: E2 03 00 [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [06:51:29]RAPDU: 90 00 [06:51:29]wFMCommunicate OK [06:51:29]wFMCommunicate request_size=4 [06:51:29]MH_SAM_APDU [06:51:29]CAPDU: 80 0D 03 02 [06:51:29]Write to MH i2c: E2 08 00 2D 0A 80 0D 03 02 00 00 00 00 B2 [06:51:29]Write i2c OK [06:51:29]MH_I2C_Read... [06:51:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:29]Read from MH i2c: E2 [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: E2 0B 00 [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: E2 0B 00 2D 0A 00 90 10 B7 DF CE E7 AF 0B 90 00 58 [06:51:29]RAPDU: 90 10 B7 DF CE E7 AF 0B 90 00 [06:51:29]wFMCommunicate OK [06:51:29]SAM_PROTO_SignData done [06:51:29]FM_MakeSignedData done [06:51:29]CreateOFDProtocolMessage [06:51:29]wFMCommunicate request_size=4 [06:51:29]MH_SAM_APDU [06:51:29]CAPDU: 80 11 00 00 [06:51:29]Write to MH i2c: E2 08 00 2E 0A 80 11 00 00 00 00 00 00 B2 [06:51:29]Write i2c OK [06:51:29]MH_I2C_Read... [06:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:29]Read from MH i2c: E2 [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: E2 17 00 [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: E2 17 00 2E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 05 [06:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [06:51:29]wFMCommunicate OK [06:51:29]CreateOFDProtocolMessage done [06:51:29]OFDSenderStorePacket 148666 [06:51:29]StoreOFDPacket docnum=148666 [06:51:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 43 EE 04 01 D8 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 71 B9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BA 44 02 00 35 04 06 00 9B 03 C0 8A E8 9C 90 10 B7 DF CE E7 AF 0B [06:51:29]CheckFolder [06:51:29]dirname=/storage/ofd_packets [06:51:29]CheckFolder done [06:51:29]ProducePacketName [06:51:29]name=ofd_packets/00148666 [06:51:29]NVStorageSaveData ofd_packets/00148666 [06:51:29]File name is /storage/ofd_packets/00148666 [06:51:29]Write 298 bytes [06:51:29]NVStorageSaveData done [06:51:29]OFDSenderStorePacket done [06:51:29]KKMCreateOFDPacket done [06:51:29]NVStorageSaveData kkm_last_timestamp [06:51:29]File name is /storage/kkm_last_timestamp [06:51:29]Write 4 bytes [06:51:29]NVStorageSaveData done [06:51:29]ExternCall_PrintAddStr [06:51:29]wPrintStart [06:51:29]Write to MH i2c: 01 00 00 2F 0A 39 [06:51:29]Write i2c OK [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: 01 [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: 01 07 00 [06:51:29]MH_I2C_Read... [06:51:29]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 FF 0F 4E [06:51:29]RasterBufferAndPrint [06:51:29]line Счет N : (1)979589 [06:51:29]line ИНН: 02508201610067 [06:51:29]line Контрольно-Кассовый Чек [06:51:29]line ПРОДАЖА [06:51:29]line ТРК (МРК, ГНК) : 11 [06:51:29]line Товар: 2710194210 [06:51:29]line ДТ-К-5 [06:51:29]line 24.700 * 72.90 [06:51:29]line = 1800.63 [06:51:29]line НДС 12% НСП 1% [06:51:29]line > о реализуемом товаре [06:51:29]line ОКРУГЛЕНИЕ: -0.63 [06:51:29]line ИТОГО: 1800.00 [06:51:29]line Внесено: 1800.00 [06:51:29]line СДАЧА: 0.00 [06:51:29]line НСП 1% : 15.93 [06:51:29]line НДС 12% : 191.22 [06:51:29]line Наличными: 1800.00 [06:51:29]line Безнал.: 0.00 [06:51:29]line Место: АЗС № 68 "Партнер Нефть" [06:51:29]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [06:51:29]line СНО: Общий режим [06:51:29]line Чек 5 04.06.2024 06:51 [06:51:29]line Смена: 368 ФФД: 1.0 [06:51:29]line ЗНМ: 0300000035 [06:51:29]line РНМ: 0000000000092720 [06:51:29]line Версия ККМ: 001 [06:51:29]line ФМ: 0000000000875057 [06:51:29]line ФД: 148666 [06:51:29]line ФПД: 170440417536156 [06:51:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T065129&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148666&fm=170440417536156&tin=02508201610067®Number=0000000000092720&sum=180000 [06:51:29]OFD Sender: Processing packet 148666 [packets to send 100, broken 99] [06:51:29]ProducePacketName [06:51:29]name=ofd_packets/00148666 [06:51:29]OFD Sender: To server: pG, [06:51:29]CommunicateWithHost lk.salyk.kg:30040 [06:51:29]ConnectInit lk.salyk.kg [06:51:29]written 0, free lines is 4095 [06:51:29]Connected sock=10 [06:51:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 43 EE 04 01 D8 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 71 B9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BA 44 02 00 35 04 06 00 9B 03 C0 8A E8 9C 90 10 B7 DF CE E7 AF 0B [06:51:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E2 19 47 00 7C 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BA 44 02 00 F4 03 04 00 96 60 5E 66 B6 04 01 00 00 D8 64 AF 21 07 2B 57 84 [06:51:29]CommunicateWithHost err = 0 [06:51:29]CheckOFDResponse [06:51:29]1017 (14) - 77093643461234 [06:51:29]1041 (16) - 0000000000875057 [06:51:29]1040 (4) - 148666 [06:51:29]1012 (4) - 04.06.2024 00:32 [06:51:29]1206 (1) - 0 [06:51:29]OFD Sender: Remove packet 148666 [06:51:29]ProducePacketName [06:51:29]name=ofd_packets/00148666 [06:51:29]NVStorageDeleteData [06:51:30]Write to MH i2c: 01 00 00 5A 0A 64 [06:51:30]Write i2c OK [06:51:30]MH_I2C_Read... [06:51:30]Read from MH i2c: 01 [06:51:30]MH_I2C_Read... [06:51:30]Read from MH i2c: 01 07 00 [06:51:30]MH_I2C_Read... [06:51:30]Read from MH i2c: 01 07 00 5A 0A 00 00 00 00 00 5E 0C D5 [06:51:30]RasterBufferAndPrint [06:51:30]line [06:51:30]line [06:51:30]line [06:51:30]line [06:51:30]line [06:51:30]written 0, free lines is 3170 [06:51:30]MH_Cut [06:51:30]Write to MH i2c: D1 01 00 61 0A 01 3D [06:51:30]Write i2c OK [06:51:30]MH_I2C_Read... [06:51:30]Read from MH i2c: D1 [06:51:30]MH_I2C_Read... [06:51:30]Read from MH i2c: D1 01 00 [06:51:30]MH_I2C_Read... [06:51:30]Read from MH i2c: D1 01 00 61 0A 00 3C [06:51:30]Write to MH i2c: 01 00 00 62 0A 6C [06:51:30]Write i2c OK [06:51:30]MH_I2C_Read... [06:51:30]OFD Sender: No OFD packet to send [06:51:31]*** Cut start [06:51:31]*** Partial cut [06:51:31]*** CUTSNS_PIN = 1 [06:51:31]*** CUTSNS_PIN = 0 [06:51:31]*** Brake cut motor [06:51:32]Read from MH i2c: 01 [06:51:32]MH_I2C_Read... [06:51:32]*** Stop cut motor [06:51:32]*** Cut end [06:51:32]Read from MH i2c: 01 07 00 [06:51:32]MH_I2C_Read... [06:51:32]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 FF 0F 81 [06:51:32]process_action close_receipt done [06:51:32]requested_data is exist [06:51:32]produce_requested_data [06:51:32]requested_item fm.sn is exist - process it [06:51:32]wFMCommunicate request_size=4 [06:51:32]MH_SAM_APDU [06:51:32]CAPDU: 80 11 00 00 [06:51:32]Write to MH i2c: E2 08 00 63 0A 80 11 00 00 00 00 00 00 E7 [06:51:32]Write i2c OK [06:51:32]MH_I2C_Read... [06:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:32]Read from MH i2c: E2 [06:51:32]MH_I2C_Read... [06:51:32]Read from MH i2c: E2 17 00 [06:51:32]MH_I2C_Read... [06:51:32]Read from MH i2c: E2 17 00 63 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3A [06:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [06:51:32]wFMCommunicate OK [06:51:32]requested_item fd.num is exist - process it [06:51:32]SAM_PROTO_GetFieldsCounters [06:51:32]wFMCommunicate request_size=4 [06:51:32]MH_SAM_APDU [06:51:32]CAPDU: 80 13 00 00 [06:51:32]Write to MH i2c: E2 08 00 64 0A 80 13 00 00 00 00 00 00 EA [06:51:32]Write i2c OK [06:51:32]MH_I2C_Read... [06:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:32]Read from MH i2c: E2 [06:51:32]MH_I2C_Read... [06:51:32]Read from MH i2c: E2 62 00 [06:51:32]MH_I2C_Read... [06:51:32]Read from MH i2c: E2 62 00 64 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BA 44 02 00 0E 04 04 00 70 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 86 [06:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BA 44 02 00 0E 04 04 00 70 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:51:32]wFMCommunicate OK [06:51:32]SAM_PROTO_GetFieldsCounters done [06:51:32]requested_item shift.num is exist - process it [06:51:32]requested_item shift.opened is exist - process it [06:51:32]req_shift_opened [06:51:32]FM_GetShiftState [06:51:32]SAM_PROTO_GetShiftState [06:51:32]wFMCommunicate request_size=4 [06:51:32]MH_SAM_APDU [06:51:32]CAPDU: 80 13 01 00 [06:51:32]Write to MH i2c: E2 08 00 65 0A 80 13 01 00 00 00 00 00 EC [06:51:32]Write i2c OK [06:51:32]MH_I2C_Read... [06:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:32]Read from MH i2c: E2 [06:51:32]MH_I2C_Read... [06:51:32]Read from MH i2c: E2 0E 00 [06:51:32]MH_I2C_Read... [06:51:32]Read from MH i2c: E2 0E 00 65 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AF [06:51:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [06:51:32]wFMCommunicate OK [06:51:32]SAM_PROTO_GetShiftState done [06:51:32]FM_GetShiftState done [06:51:32]req_shift_opened done [06:51:32]requested_item shift.open_date is exist - process it [06:51:32]req_shift_open_date [06:51:32]req_shift_open_date done [06:51:32]produce_requested_data done [06:51:32]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148666,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [06:51:32]process_action_free close_receipt [06:51:32]json_value_free [06:51:32]json_value_free done [06:51:32]process_json_proto returns [06:51:32]Send response to host [06:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148666,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [06:51:32]free response buf [06:51:32]execute_script done [06:51:32]execute_script returns [06:51:32]free content buf [06:51:32]Sock 9.Close socket [06:51:32]Sock 9.Thread stoped [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15: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:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:38]accept exits with 7 [07:21:38]New connection [07:21:38]New thread 3066809700 created [07:21:38]Thread 3066666340 joined [07:21:38]Waiting for new connection... [07:21:38] Sock 7.Parse request [07:21:38]Sock 7.Check first char [07:21:38]Sock 7.First char is OK [07:21:38]request: POST /json_proto HTTP/1.0 [07:21:38]Method: POST [07:21:38]URL: /json_proto [07:21:38]Method is POST - this is cgi request [07:21:38]url: /json_proto [07:21:38]query_string will be loaded in cgi processing [07:21:38]execute_cgi json_proto POST (null) [07:21:38]execute_cgi path=json_proto method=POST [07:21:38]POST find Content-Length [07:21:38]Host: 172.17.38.4:8080 [07:21:38]Content-Length: 677 [07:21:38]Content-Type: application/json [07:21:38] [07:21:38]POST finish read [07:21:38]Found Content-Length = 677 [07:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:38]execute_script... [07:21:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:38]POST & json_proto [07:21:38]process_json_proto [07:21:38]json parsed OK: [07:21:38]protocol is kg_v1.0 [07:21:38]action value=close_receipt [07:21:38]process_action close_receipt [07:21:38]cmd_close_receipt [07:21:38]MH_GetDate [07:21:38]Write to MH i2c: F0 00 00 66 0A 5F [07:21:38]Write i2c OK [07:21:38]MH_I2C_Read... [07:21:38]Read from MH i2c: F0 [07:21:38]MH_I2C_Read... [07:21:38]Read from MH i2c: F0 09 00 [07:21:38]MH_I2C_Read... [07:21:38]Read from MH i2c: F0 09 00 66 0A 00 84 C0 5E 66 CC 51 87 64 78 [07:21:38]GetLastDocTimeStamp 1717483889 [07:21:38]current date 1717485700 [07:21:38]FM_GetShiftState [07:21:38]SAM_PROTO_GetShiftState [07:21:38]wFMCommunicate request_size=4 [07:21:38]MH_SAM_APDU [07:21:38]CAPDU: 80 13 01 00 [07:21:38]Write to MH i2c: E2 08 00 67 0A 80 13 01 00 00 00 00 00 EE [07:21:38]Write i2c OK [07:21:38]MH_I2C_Read... [07:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:38]Read from MH i2c: E2 [07:21:38]MH_I2C_Read... [07:21:38]Read from MH i2c: E2 0E 00 [07:21:38]MH_I2C_Read... [07:21:38]Read from MH i2c: E2 0E 00 67 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B1 [07:21:38]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:21:38]wFMCommunicate OK [07:21:38]SAM_PROTO_GetShiftState done [07:21:38]FM_GetShiftState done [07:21:38]opened in 1717460629 [07:21:38]opened+sec_in_day 1717547029 [07:21:38]quantity*price = 50041 [07:21:38]sum+1 = 50042 [07:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 6 04.06.2024 07:21 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148667 ФПД: 47833994046112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T072140&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148667&fm=47833994046112&tin=02508201610067®Number=0000000000092720&sum=50000 [07:21:39]StoreToDocumentArchive [07:21:39]shift 368 fd 148667 [07:21:39]save to /storage/0368/doc_00148667 [07:21:39]save last doc name /storage/0368/doc_00148667 to /storage/kkm_last_doc_name [07:21:39]save OK [07:21:39]Clear old archive folders... [07:21:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:39]tlvbuf is 0160A270 [07:21:39]SAM_PROTO_ClearQueue [07:21:39]wFMCommunicate request_size=4 [07:21:39]MH_SAM_APDU [07:21:39]CAPDU: 80 09 00 00 [07:21:39]Write to MH i2c: E2 08 00 74 0A 80 09 00 00 00 00 00 00 F0 [07:21:39]Write i2c OK [07:21:39]MH_I2C_Read... [07:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:39]Read from MH i2c: E2 [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 03 00 [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 03 00 74 0A 00 90 00 F2 [07:21:39]RAPDU: 90 00 [07:21:39]wFMCommunicate OK [07:21:39]SAM_PROTO_ClearQueue done [07:21:39]KKMCreateOFDPacket [07:21:39]OFDProtocolAddRootSTLVToBuf [07:21:39]FM_MakeSignedData [07:21:39]FM_MakeSignedData [07:21:39]SAM_PROTO_SignData [07:21:39]wFMCommunicate request_size=4 [07:21:39]MH_SAM_APDU [07:21:39]CAPDU: 80 0D 01 02 [07:21:39]Write to MH i2c: E2 08 00 75 0A 80 0D 01 02 00 00 00 00 F8 [07:21:39]Write i2c OK [07:21:39]MH_I2C_Read... [07:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:39]Read from MH i2c: E2 [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 03 00 [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 03 00 75 0A 00 90 00 F3 [07:21:39]RAPDU: 90 00 [07:21:39]wFMCommunicate OK [07:21:39]wFMCommunicate request_size=255 [07:21:39]MH_SAM_APDU [07:21:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 84 C0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BB 44 02 00 35 04 06 00 2B [07:21:39]Write to MH i2c: E2 02 01 76 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 84 C0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BB 44 02 00 35 04 06 00 2B 00 00 2D [07:21:39]Write i2c OK [07:21:39]MH_I2C_Read... [07:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:39]Read from MH i2c: E2 [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 03 00 [07:21:39]MH_I2C_Read... [07:21:39]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [07:21:39]RAPDU: 90 00 [07:21:39]wFMCommunicate OK [07:21:39]wFMCommunicate request_size=10 [07:21:39]MH_SAM_APDU [07:21:39]CAPDU: 80 0D 02 02 05 81 38 39 2A A0 [07:21:39]Write to MH i2c: E2 0D 00 77 0A 80 0D 02 02 05 00 81 38 39 2A A0 00 00 C1 [07:21:39]Write i2c OK [07:21:39]MH_I2C_Read... [07:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:40]Read from MH i2c: E2 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: E2 03 00 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [07:21:40]RAPDU: 90 00 [07:21:40]wFMCommunicate OK [07:21:40]wFMCommunicate request_size=4 [07:21:40]MH_SAM_APDU [07:21:40]CAPDU: 80 0D 03 02 [07:21:40]Write to MH i2c: E2 08 00 78 0A 80 0D 03 02 00 00 00 00 FD [07:21:40]Write i2c OK [07:21:40]MH_I2C_Read... [07:21:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:40]Read from MH i2c: E2 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: E2 0B 00 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: E2 0B 00 78 0A 00 63 DE D4 A3 4F 87 BE F5 90 00 3F [07:21:40]RAPDU: 63 DE D4 A3 4F 87 BE F5 90 00 [07:21:40]wFMCommunicate OK [07:21:40]SAM_PROTO_SignData done [07:21:40]FM_MakeSignedData done [07:21:40]CreateOFDProtocolMessage [07:21:40]wFMCommunicate request_size=4 [07:21:40]MH_SAM_APDU [07:21:40]CAPDU: 80 11 00 00 [07:21:40]Write to MH i2c: E2 08 00 79 0A 80 11 00 00 00 00 00 00 FD [07:21:40]Write i2c OK [07:21:40]MH_I2C_Read... [07:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:40]Read from MH i2c: E2 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: E2 17 00 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: E2 17 00 79 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 50 [07:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:21:40]wFMCommunicate OK [07:21:40]CreateOFDProtocolMessage done [07:21:40]OFDSenderStorePacket 148667 [07:21:40]StoreOFDPacket docnum=148667 [07:21:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1E F8 07 01 24 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 84 C0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BB 44 02 00 35 04 06 00 2B 81 38 39 2A A0 63 DE D4 A3 4F 87 BE F5 [07:21:40]CheckFolder [07:21:40]dirname=/storage/ofd_packets [07:21:40]CheckFolder done [07:21:40]ProducePacketName [07:21:40]name=ofd_packets/00148667 [07:21:40]NVStorageSaveData ofd_packets/00148667 [07:21:40]File name is /storage/ofd_packets/00148667 [07:21:40]Write 301 bytes [07:21:40]NVStorageSaveData done [07:21:40]OFDSenderStorePacket done [07:21:40]KKMCreateOFDPacket done [07:21:40]NVStorageSaveData kkm_last_timestamp [07:21:40]File name is /storage/kkm_last_timestamp [07:21:40]Write 4 bytes [07:21:40]NVStorageSaveData done [07:21:40]ExternCall_PrintAddStr [07:21:40]wPrintStart [07:21:40]Write to MH i2c: 01 00 00 7A 0A 84 [07:21:40]Write i2c OK [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: 01 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: 01 07 00 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: 01 07 00 7A 0A 00 00 00 00 00 FF 0F 99 [07:21:40]RasterBufferAndPrint [07:21:40]line Счет N : (1)979590 [07:21:40]line ИНН: 02508201610067 [07:21:40]line Контрольно-Кассовый Чек [07:21:40]line ПРОДАЖА [07:21:40]line ТРК (МРК, ГНК) : 22 [07:21:40]line Товар: 2710124130 [07:21:40]line Аи-92-К-5 [07:21:40]line 7.480 * 66.90 [07:21:40]line = 500.41 [07:21:40]line НДС 12% НСП 1% [07:21:40]line > о реализуемом товаре [07:21:40]line ОКРУГЛЕНИЕ: -0.41 [07:21:40]line ИТОГО: 500.00 [07:21:40]line Внесено: 500.00 [07:21:40]line СДАЧА: 0.00 [07:21:40]line НСП 1% : 4.43 [07:21:40]line НДС 12% : 53.14 [07:21:40]line Наличными: 500.00 [07:21:40]line Безнал.: 0.00 [07:21:40]line Место: АЗС № 68 "Партнер Нефть" [07:21:40]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [07:21:40]line СНО: Общий режим [07:21:40]line Чек 6 04.06.2024 07:21 [07:21:40]line Смена: 368 ФФД: 1.0 [07:21:40]line ЗНМ: 0300000035 [07:21:40]line РНМ: 0000000000092720 [07:21:40]line Версия ККМ: 001 [07:21:40]line ФМ: 0000000000875057 [07:21:40]line ФД: 148667 [07:21:40]line ФПД: 47833994046112 [07:21:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T072140&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148667&fm=47833994046112&tin=02508201610067®Number=0000000000092720&sum=50000 [07:21:40]OFD Sender: Processing packet 148667 [packets to send 100, broken 99] [07:21:40]ProducePacketName [07:21:40]name=ofd_packets/00148667 [07:21:40]OFD Sender: To server: pG, [07:21:40]CommunicateWithHost lk.salyk.kg:30040 [07:21:40]ConnectInit lk.salyk.kg [07:21:40]written 0, free lines is 4095 [07:21:40]Connected sock=10 [07:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1E F8 07 01 24 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 84 C0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BB 44 02 00 35 04 06 00 2B 81 38 39 2A A0 63 DE D4 A3 4F 87 BE F5 [07:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9C B3 47 00 BD 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 38 37 35 30 35 37 10 04 04 00 BB 44 02 00 F4 03 04 00 A9 67 5E 66 B6 04 01 00 00 57 C5 09 1A FD D0 CB C1 [07:21:40]CommunicateWithHost err = 0 [07:21:40]CheckOFDResponse [07:21:40]1017 (14) - 77093643461234 [07:21:40]1041 (16) - 0000000000875057 [07:21:40]1040 (4) - 148667 [07:21:40]1012 (4) - 04.06.2024 01:02 [07:21:40]1206 (1) - 0 [07:21:40]OFD Sender: Remove packet 148667 [07:21:40]ProducePacketName [07:21:40]name=ofd_packets/00148667 [07:21:40]NVStorageDeleteData [07:21:40]Write to MH i2c: 01 00 00 A5 0A AF [07:21:40]Write i2c OK [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: 01 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: 01 07 00 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 58 0C 1A [07:21:40]RasterBufferAndPrint [07:21:40]line [07:21:40]line [07:21:40]line [07:21:40]line [07:21:40]line [07:21:40]written 0, free lines is 3164 [07:21:40]MH_Cut [07:21:40]Write to MH i2c: D1 01 00 AC 0A 01 88 [07:21:40]Write i2c OK [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: D1 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: D1 01 00 [07:21:40]MH_I2C_Read... [07:21:40]Read from MH i2c: D1 01 00 AC 0A 00 87 [07:21:40]Write to MH i2c: 01 00 00 AD 0A B7 [07:21:40]Write i2c OK [07:21:40]MH_I2C_Read... [07:21:41]OFD Sender: No OFD packet to send [07:21:42]*** Cut start [07:21:42]*** Partial cut [07:21:42]*** CUTSNS_PIN = 1 [07:21:42]*** CUTSNS_PIN = 0 [07:21:42]*** Brake cut motor [07:21:42]Read from MH i2c: 01 [07:21:42]MH_I2C_Read... [07:21:42]*** Stop cut motor [07:21:42]*** Cut end [07:21:42]Read from MH i2c: 01 07 00 [07:21:42]MH_I2C_Read... [07:21:42]Read from MH i2c: 01 07 00 AD 0A 00 00 00 00 00 FF 0F CC [07:21:42]process_action close_receipt done [07:21:42]requested_data is exist [07:21:42]produce_requested_data [07:21:42]requested_item fm.sn is exist - process it [07:21:42]wFMCommunicate request_size=4 [07:21:42]MH_SAM_APDU [07:21:42]CAPDU: 80 11 00 00 [07:21:42]Write to MH i2c: E2 08 00 AE 0A 80 11 00 00 00 00 00 00 32 [07:21:42]Write i2c OK [07:21:42]MH_I2C_Read... [07:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:42]Read from MH i2c: E2 [07:21:42]MH_I2C_Read... [07:21:42]Read from MH i2c: E2 17 00 [07:21:42]MH_I2C_Read... [07:21:42]Read from MH i2c: E2 17 00 AE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 85 [07:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:21:42]wFMCommunicate OK [07:21:42]requested_item fd.num is exist - process it [07:21:42]SAM_PROTO_GetFieldsCounters [07:21:42]wFMCommunicate request_size=4 [07:21:42]MH_SAM_APDU [07:21:42]CAPDU: 80 13 00 00 [07:21:42]Write to MH i2c: E2 08 00 AF 0A 80 13 00 00 00 00 00 00 35 [07:21:42]Write i2c OK [07:21:42]MH_I2C_Read... [07:21:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:43]Read from MH i2c: E2 [07:21:43]MH_I2C_Read... [07:21:43]Read from MH i2c: E2 62 00 [07:21:43]MH_I2C_Read... [07:21:43]Read from MH i2c: E2 62 00 AF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BB 44 02 00 0E 04 04 00 70 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 D5 [07:21:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BB 44 02 00 0E 04 04 00 70 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:21:43]wFMCommunicate OK [07:21:43]SAM_PROTO_GetFieldsCounters done [07:21:43]requested_item shift.num is exist - process it [07:21:43]requested_item shift.opened is exist - process it [07:21:43]req_shift_opened [07:21:43]FM_GetShiftState [07:21:43]SAM_PROTO_GetShiftState [07:21:43]wFMCommunicate request_size=4 [07:21:43]MH_SAM_APDU [07:21:43]CAPDU: 80 13 01 00 [07:21:43]Write to MH i2c: E2 08 00 B0 0A 80 13 01 00 00 00 00 00 37 [07:21:43]Write i2c OK [07:21:43]MH_I2C_Read... [07:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:43]Read from MH i2c: E2 [07:21:43]MH_I2C_Read... [07:21:43]Read from MH i2c: E2 0E 00 [07:21:43]MH_I2C_Read... [07:21:43]Read from MH i2c: E2 0E 00 B0 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FA [07:21:43]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:21:43]wFMCommunicate OK [07:21:43]SAM_PROTO_GetShiftState done [07:21:43]FM_GetShiftState done [07:21:43]req_shift_opened done [07:21:43]requested_item shift.open_date is exist - process it [07:21:43]req_shift_open_date [07:21:43]req_shift_open_date done [07:21:43]produce_requested_data done [07:21:43]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148667,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [07:21:43]process_action_free close_receipt [07:21:43]json_value_free [07:21:43]json_value_free done [07:21:43]process_json_proto returns [07:21:43]Send response to host [07:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148667,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [07:21:43]free response buf [07:21:43]execute_script done [07:21:43]execute_script returns [07:21:43]free content buf [07:21:43]Sock 7.Close socket [07:21:43]Sock 7.Thread stoped [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:47]accept exits with 9 [07:34:47]New connection [07:34:47]New thread 3066666340 created [07:34:47]Thread 3066809700 joined [07:34:47]Waiting for new connection... [07:34:47] Sock 9.Parse request [07:34:47]Sock 9.Check first char [07:34:47]Sock 9.First char is OK [07:34:47]request: POST /json_proto HTTP/1.0 [07:34:47]Method: POST [07:34:47]URL: /json_proto [07:34:47]Method is POST - this is cgi request [07:34:47]url: /json_proto [07:34:47]query_string will be loaded in cgi processing [07:34:47]execute_cgi json_proto POST (null) [07:34:47]execute_cgi path=json_proto method=POST [07:34:47]POST find Content-Length [07:34:47]Host: 172.17.38.4:8080 [07:34:47]Content-Length: 679 [07:34:47]Content-Type: application/json [07:34:47] [07:34:47]POST finish read [07:34:47]Found Content-Length = 679 [07:34:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [07:34:47]execute_script... [07:34: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)979591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [07:34:47]POST & json_proto [07:34:47]process_json_proto [07:34:47]json parsed OK: [07:34:47]protocol is kg_v1.0 [07:34:47]action value=close_receipt [07:34:47]process_action close_receipt [07:34:47]cmd_close_receipt [07:34:47]MH_GetDate [07:34:47]Write to MH i2c: F0 00 00 B1 0A AA [07:34:47]Write i2c OK [07:34:47]MH_I2C_Read... [07:34:47]Read from MH i2c: F0 [07:34:47]MH_I2C_Read... [07:34:47]Read from MH i2c: F0 09 00 [07:34:47]MH_I2C_Read... [07:34:47]Read from MH i2c: F0 09 00 B1 0A 00 9A C3 5E 66 CC 51 87 64 DC [07:34:47]GetLastDocTimeStamp 1717485700 [07:34:47]current date 1717486490 [07:34:47]FM_GetShiftState [07:34:47]SAM_PROTO_GetShiftState [07:34:47]wFMCommunicate request_size=4 [07:34:47]MH_SAM_APDU [07:34:47]CAPDU: 80 13 01 00 [07:34:47]Write to MH i2c: E2 08 00 B2 0A 80 13 01 00 00 00 00 00 39 [07:34:47]Write i2c OK [07:34:47]MH_I2C_Read... [07:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:48]Read from MH i2c: E2 [07:34:48]MH_I2C_Read... [07:34:48]Read from MH i2c: E2 0E 00 [07:34:48]MH_I2C_Read... [07:34:48]Read from MH i2c: E2 0E 00 B2 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FC [07:34:48]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:34:48]wFMCommunicate OK [07:34:48]SAM_PROTO_GetShiftState done [07:34:48]FM_GetShiftState done [07:34:48]opened in 1717460629 [07:34:48]opened+sec_in_day 1717547029 [07:34:48]quantity*price = 100018 [07:34:48]sum+1 = 100020 [07:34: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 7 04.06.2024 07:34 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148668 ФПД: 160835054007732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T073450&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148668&fm=160835054007732&tin=02508201610067®Number=0000000000092720&sum=100000 [07:34:49]StoreToDocumentArchive [07:34:49]shift 368 fd 148668 [07:34:49]save to /storage/0368/doc_00148668 [07:34:49]save last doc name /storage/0368/doc_00148668 to /storage/kkm_last_doc_name [07:34:49]save OK [07:34:49]Clear old archive folders... [07:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:34:49]tlvbuf is 015F1A70 [07:34:49]SAM_PROTO_ClearQueue [07:34:49]wFMCommunicate request_size=4 [07:34:49]MH_SAM_APDU [07:34:49]CAPDU: 80 09 00 00 [07:34:49]Write to MH i2c: E2 08 00 BF 0A 80 09 00 00 00 00 00 00 3B [07:34:49]Write i2c OK [07:34:49]MH_I2C_Read... [07:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:49]Read from MH i2c: E2 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 03 00 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [07:34:49]RAPDU: 90 00 [07:34:49]wFMCommunicate OK [07:34:49]SAM_PROTO_ClearQueue done [07:34:49]KKMCreateOFDPacket [07:34:49]OFDProtocolAddRootSTLVToBuf [07:34:49]FM_MakeSignedData [07:34:49]FM_MakeSignedData [07:34:49]SAM_PROTO_SignData [07:34:49]wFMCommunicate request_size=4 [07:34:49]MH_SAM_APDU [07:34:49]CAPDU: 80 0D 01 02 [07:34:49]Write to MH i2c: E2 08 00 C0 0A 80 0D 01 02 00 00 00 00 43 [07:34:49]Write i2c OK [07:34:49]MH_I2C_Read... [07:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:49]Read from MH i2c: E2 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 03 00 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 03 00 C0 0A 00 90 00 3E [07:34:49]RAPDU: 90 00 [07:34:49]wFMCommunicate OK [07:34:49]wFMCommunicate request_size=255 [07:34:49]MH_SAM_APDU [07:34:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 9A C3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BC 44 02 00 35 04 06 00 92 47 54 42 [07:34:49]Write to MH i2c: E2 02 01 C1 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 9A C3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BC 44 02 00 35 04 06 00 92 47 54 42 00 00 AE [07:34:49]Write i2c OK [07:34:49]MH_I2C_Read... [07:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:49]Read from MH i2c: E2 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 03 00 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 03 00 C1 0A 00 90 00 3F [07:34:49]RAPDU: 90 00 [07:34:49]wFMCommunicate OK [07:34:49]wFMCommunicate request_size=7 [07:34:49]MH_SAM_APDU [07:34:49]CAPDU: 80 0D 02 02 02 F5 B4 [07:34:49]Write to MH i2c: E2 0A 00 C2 0A 80 0D 02 02 02 00 F5 B4 00 00 F3 [07:34:49]Write i2c OK [07:34:49]MH_I2C_Read... [07:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:49]Read from MH i2c: E2 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 03 00 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [07:34:49]RAPDU: 90 00 [07:34:49]wFMCommunicate OK [07:34:49]wFMCommunicate request_size=4 [07:34:49]MH_SAM_APDU [07:34:49]CAPDU: 80 0D 03 02 [07:34:49]Write to MH i2c: E2 08 00 C3 0A 80 0D 03 02 00 00 00 00 48 [07:34:49]Write i2c OK [07:34:49]MH_I2C_Read... [07:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:49]Read from MH i2c: E2 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 0B 00 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 0B 00 C3 0A 00 E2 F2 56 EB 13 FD C2 D9 90 00 09 [07:34:49]RAPDU: E2 F2 56 EB 13 FD C2 D9 90 00 [07:34:49]wFMCommunicate OK [07:34:49]SAM_PROTO_SignData done [07:34:49]FM_MakeSignedData done [07:34:49]CreateOFDProtocolMessage [07:34:49]wFMCommunicate request_size=4 [07:34:49]MH_SAM_APDU [07:34:49]CAPDU: 80 11 00 00 [07:34:49]Write to MH i2c: E2 08 00 C4 0A 80 11 00 00 00 00 00 00 48 [07:34:49]Write i2c OK [07:34:49]MH_I2C_Read... [07:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:49]Read from MH i2c: E2 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 17 00 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 17 00 C4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9B [07:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:34:49]wFMCommunicate OK [07:34:49]CreateOFDProtocolMessage done [07:34:49]OFDSenderStorePacket 148668 [07:34:49]StoreOFDPacket docnum=148668 [07:34:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 89 C6 04 01 64 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 9A C3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BC 44 02 00 35 04 06 00 92 47 54 42 F5 B4 E2 F2 56 EB 13 FD C2 D9 [07:34:49]CheckFolder [07:34:49]dirname=/storage/ofd_packets [07:34:49]CheckFolder done [07:34:49]ProducePacketName [07:34:49]name=ofd_packets/00148668 [07:34:49]NVStorageSaveData ofd_packets/00148668 [07:34:49]File name is /storage/ofd_packets/00148668 [07:34:49]Write 298 bytes [07:34:49]NVStorageSaveData done [07:34:49]OFDSenderStorePacket done [07:34:49]KKMCreateOFDPacket done [07:34:49]NVStorageSaveData kkm_last_timestamp [07:34:49]File name is /storage/kkm_last_timestamp [07:34:49]Write 4 bytes [07:34:49]NVStorageSaveData done [07:34:49]ExternCall_PrintAddStr [07:34:49]wPrintStart [07:34:49]Write to MH i2c: 01 00 00 C5 0A CF [07:34:49]Write i2c OK [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: 01 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: 01 07 00 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: 01 07 00 C5 0A 00 00 00 00 00 FF 0F E4 [07:34:49]RasterBufferAndPrint [07:34:49]line Счет N : (1)979591 [07:34:49]line ИНН: 02508201610067 [07:34:49]line Контрольно-Кассовый Чек [07:34:49]line ПРОДАЖА [07:34:49]line ТРК (МРК, ГНК) : 51 [07:34:49]line Товар: 2710194210 [07:34:49]line ДТ-К-5 [07:34:49]line 13.720 * 72.90 [07:34:49]line = 1000.19 [07:34:49]line НДС 12% НСП 1% [07:34:49]line > о реализуемом товаре [07:34:49]line ОКРУГЛЕНИЕ: -0.19 [07:34:49]line ИТОГО: 1000.00 [07:34:49]line Внесено: 1000.00 [07:34:49]line СДАЧА: 0.00 [07:34:49]line НСП 1% : 8.85 [07:34:49]line НДС 12% : 106.21 [07:34:49]line Наличными: 1000.00 [07:34:49]line Безнал.: 0.00 [07:34:49]line Место: АЗС № 68 "Партнер Нефть" [07:34:49]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [07:34:49]line СНО: Общий режим [07:34:49]line Чек 7 04.06.2024 07:34 [07:34:49]line Смена: 368 ФФД: 1.0 [07:34:49]line ЗНМ: 0300000035 [07:34:49]line РНМ: 0000000000092720 [07:34:49]line Версия ККМ: 001 [07:34:49]line ФМ: 0000000000875057 [07:34:49]line ФД: 148668 [07:34:49]line ФПД: 160835054007732 [07:34:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T073450&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148668&fm=160835054007732&tin=02508201610067®Number=0000000000092720&sum=100000 [07:34:49]OFD Sender: Processing packet 148668 [packets to send 100, broken 99] [07:34:49]ProducePacketName [07:34:49]name=ofd_packets/00148668 [07:34:49]OFD Sender: To server: pG, [07:34:49]CommunicateWithHost lk.salyk.kg:30040 [07:34:49]ConnectInit lk.salyk.kg [07:34:49]written 0, free lines is 4095 [07:34:50]Connected sock=10 [07:34:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 89 C6 04 01 64 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 9A C3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BC 44 02 00 35 04 06 00 92 47 54 42 F5 B4 E2 F2 56 EB 13 FD C2 D9 [07:34:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 15 30 47 00 1E 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BC 44 02 00 F4 03 04 00 BE 6A 5E 66 B6 04 01 00 00 10 79 A7 9A B3 08 54 36 [07:34:50]CommunicateWithHost err = 0 [07:34:50]CheckOFDResponse [07:34:50]1017 (14) - 77093643461234 [07:34:50]1041 (16) - 0000000000875057 [07:34:50]1040 (4) - 148668 [07:34:50]1012 (4) - 04.06.2024 01:15 [07:34:50]1206 (1) - 0 [07:34:50]OFD Sender: Remove packet 148668 [07:34:50]ProducePacketName [07:34:50]name=ofd_packets/00148668 [07:34:50]NVStorageDeleteData [07:34:50]Write to MH i2c: 01 00 00 F0 0A FA [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: 01 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: 01 07 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 5D 0C 6A [07:34:50]RasterBufferAndPrint [07:34:50]line [07:34:50]line [07:34:50]line [07:34:50]line [07:34:50]line [07:34:50]written 0, free lines is 3169 [07:34:50]MH_Cut [07:34:50]Write to MH i2c: D1 01 00 F7 0A 01 D3 [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: D1 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: D1 01 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: D1 01 00 F7 0A 00 D2 [07:34:50]Write to MH i2c: 01 00 00 F8 0A 02 [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]OFD Sender: No OFD packet to send [07:34:51]*** Cut start [07:34:51]*** Partial cut [07:34:51]*** CUTSNS_PIN = 1 [07:34:51]*** CUTSNS_PIN = 0 [07:34:52]*** Brake cut motor [07:34:52]Read from MH i2c: 01 [07:34:52]MH_I2C_Read... [07:34:52]*** Stop cut motor [07:34:52]*** Cut end [07:34:52]Read from MH i2c: 01 07 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: 01 07 00 F8 0A 00 00 00 00 00 FF 0F 17 [07:34:52]process_action close_receipt done [07:34:52]requested_data is exist [07:34:52]produce_requested_data [07:34:52]requested_item fm.sn is exist - process it [07:34:52]wFMCommunicate request_size=4 [07:34:52]MH_SAM_APDU [07:34:52]CAPDU: 80 11 00 00 [07:34:52]Write to MH i2c: E2 08 00 F9 0A 80 11 00 00 00 00 00 00 7D [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:52]Read from MH i2c: E2 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 17 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 17 00 F9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D0 [07:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:34:52]wFMCommunicate OK [07:34:52]requested_item fd.num is exist - process it [07:34:52]SAM_PROTO_GetFieldsCounters [07:34:52]wFMCommunicate request_size=4 [07:34:52]MH_SAM_APDU [07:34:52]CAPDU: 80 13 00 00 [07:34:52]Write to MH i2c: E2 08 00 FA 0A 80 13 00 00 00 00 00 00 80 [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:52]Read from MH i2c: E2 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 62 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 62 00 FA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BC 44 02 00 0E 04 04 00 70 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 24 [07:34:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BC 44 02 00 0E 04 04 00 70 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:34:52]wFMCommunicate OK [07:34:52]SAM_PROTO_GetFieldsCounters done [07:34:52]requested_item shift.num is exist - process it [07:34:52]requested_item shift.opened is exist - process it [07:34:52]req_shift_opened [07:34:52]FM_GetShiftState [07:34:52]SAM_PROTO_GetShiftState [07:34:52]wFMCommunicate request_size=4 [07:34:52]MH_SAM_APDU [07:34:52]CAPDU: 80 13 01 00 [07:34:52]Write to MH i2c: E2 08 00 FB 0A 80 13 01 00 00 00 00 00 82 [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:52]Read from MH i2c: E2 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 0E 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 0E 00 FB 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 45 [07:34:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:34:52]wFMCommunicate OK [07:34:52]SAM_PROTO_GetShiftState done [07:34:52]FM_GetShiftState done [07:34:52]req_shift_opened done [07:34:52]requested_item shift.open_date is exist - process it [07:34:52]req_shift_open_date [07:34:52]req_shift_open_date done [07:34:52]produce_requested_data done [07:34:52]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148668,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [07:34:52]process_action_free close_receipt [07:34:52]json_value_free [07:34:52]json_value_free done [07:34:52]process_json_proto returns [07:34:52]Send response to host [07:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148668,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [07:34:52]free response buf [07:34:52]execute_script done [07:34:52]execute_script returns [07:34:52]free content buf [07:34:52]Sock 9.Close socket [07:34:52]Sock 9.Thread stoped [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:24]accept exits with 7 [07:48:24]New connection [07:48:24]New thread 3066809700 created [07:48:24]Thread 3066666340 joined [07:48:24]Waiting for new connection... [07:48:24] Sock 7.Parse request [07:48:24]Sock 7.Check first char [07:48:24]Sock 7.First char is OK [07:48:24]request: POST /json_proto HTTP/1.0 [07:48:24]Method: POST [07:48:24]URL: /json_proto [07:48:24]Method is POST - this is cgi request [07:48:24]url: /json_proto [07:48:24]query_string will be loaded in cgi processing [07:48:24]execute_cgi json_proto POST (null) [07:48:24]execute_cgi path=json_proto method=POST [07:48:24]POST find Content-Length [07:48:24]Host: 172.17.38.4:8080 [07:48:24]Content-Length: 677 [07:48:24]Content-Type: application/json [07:48:24] [07:48:24]POST finish read [07:48:24]Found Content-Length = 677 [07:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:24]execute_script... [07:48:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:24]POST & json_proto [07:48:24]process_json_proto [07:48:24]json parsed OK: [07:48:24]protocol is kg_v1.0 [07:48:24]action value=close_receipt [07:48:24]process_action close_receipt [07:48:24]cmd_close_receipt [07:48:24]MH_GetDate [07:48:24]Write to MH i2c: F0 00 00 FC 0A F5 [07:48:24]Write i2c OK [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: F0 [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: F0 09 00 [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: F0 09 00 FC 0A 00 CA C6 5E 66 CC 51 87 64 5A [07:48:24]GetLastDocTimeStamp 1717486490 [07:48:24]current date 1717487306 [07:48:24]FM_GetShiftState [07:48:24]SAM_PROTO_GetShiftState [07:48:24]wFMCommunicate request_size=4 [07:48:24]MH_SAM_APDU [07:48:24]CAPDU: 80 13 01 00 [07:48:24]Write to MH i2c: E2 08 00 FD 0A 80 13 01 00 00 00 00 00 84 [07:48:24]Write i2c OK [07:48:24]MH_I2C_Read... [07:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:24]Read from MH i2c: E2 [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: E2 0E 00 [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: E2 0E 00 FD 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 47 [07:48:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:48:24]wFMCommunicate OK [07:48:24]SAM_PROTO_GetShiftState done [07:48:24]FM_GetShiftState done [07:48:24]opened in 1717460629 [07:48:24]opened+sec_in_day 1717547029 [07:48:24]quantity*price = 19066 [07:48:24]sum+1 = 19068 [07:48:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 190.00 Внесено: 190.00 СДАЧА: 0.00 НСП 1% : 1.69 НДС 12% : 20.25 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 8 04.06.2024 07:48 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148669 ФПД: 8228222392872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T074826&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148669&fm=8228222392872&tin=02508201610067®Number=0000000000092720&sum=19000 [07:48:25]StoreToDocumentArchive [07:48:25]shift 368 fd 148669 [07:48:25]save to /storage/0368/doc_00148669 [07:48:25]save last doc name /storage/0368/doc_00148669 to /storage/kkm_last_doc_name [07:48:25]save OK [07:48:25]Clear old archive folders... [07:48:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:25]tlvbuf is 015F1BA0 [07:48:25]SAM_PROTO_ClearQueue [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 09 00 00 [07:48:25]Write to MH i2c: E2 08 00 0A 0B 80 09 00 00 00 00 00 00 87 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 0A 0B 00 90 00 89 [07:48:25]RAPDU: 90 00 [07:48:25]wFMCommunicate OK [07:48:25]SAM_PROTO_ClearQueue done [07:48:25]KKMCreateOFDPacket [07:48:25]OFDProtocolAddRootSTLVToBuf [07:48:25]FM_MakeSignedData [07:48:25]FM_MakeSignedData [07:48:25]SAM_PROTO_SignData [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 0D 01 02 [07:48:25]Write to MH i2c: E2 08 00 0B 0B 80 0D 01 02 00 00 00 00 8F [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 0B 0B 00 90 00 8A [07:48:25]RAPDU: 90 00 [07:48:25]wFMCommunicate OK [07:48:25]wFMCommunicate request_size=255 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 CA C6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BD 44 02 00 35 04 06 00 07 [07:48:25]Write to MH i2c: E2 02 01 0C 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 CA C6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BD 44 02 00 35 04 06 00 07 00 00 36 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [07:48:25]RAPDU: 90 00 [07:48:25]wFMCommunicate OK [07:48:25]wFMCommunicate request_size=10 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 0D 02 02 05 7B C8 45 DA 28 [07:48:25]Write to MH i2c: E2 0D 00 0D 0B 80 0D 02 02 05 00 7B C8 45 DA 28 00 00 26 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [07:48:25]RAPDU: 90 00 [07:48:25]wFMCommunicate OK [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 0D 03 02 [07:48:25]Write to MH i2c: E2 08 00 0E 0B 80 0D 03 02 00 00 00 00 94 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 0B 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 0B 00 0E 0B 00 E3 CC 4D FB 1C EA 67 42 90 00 3B [07:48:25]RAPDU: E3 CC 4D FB 1C EA 67 42 90 00 [07:48:25]wFMCommunicate OK [07:48:25]SAM_PROTO_SignData done [07:48:25]FM_MakeSignedData done [07:48:25]CreateOFDProtocolMessage [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 11 00 00 [07:48:25]Write to MH i2c: E2 08 00 0F 0B 80 11 00 00 00 00 00 00 94 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 17 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 17 00 0F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E7 [07:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:48:25]wFMCommunicate OK [07:48:25]CreateOFDProtocolMessage done [07:48:25]OFDSenderStorePacket 148669 [07:48:25]StoreOFDPacket docnum=148669 [07:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 BD 7F 07 01 C9 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 CA C6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BD 44 02 00 35 04 06 00 07 7B C8 45 DA 28 E3 CC 4D FB 1C EA 67 42 [07:48:25]CheckFolder [07:48:25]dirname=/storage/ofd_packets [07:48:25]CheckFolder done [07:48:25]ProducePacketName [07:48:25]name=ofd_packets/00148669 [07:48:25]NVStorageSaveData ofd_packets/00148669 [07:48:25]File name is /storage/ofd_packets/00148669 [07:48:25]Write 301 bytes [07:48:25]NVStorageSaveData done [07:48:25]OFDSenderStorePacket done [07:48:25]KKMCreateOFDPacket done [07:48:25]NVStorageSaveData kkm_last_timestamp [07:48:25]File name is /storage/kkm_last_timestamp [07:48:25]Write 4 bytes [07:48:25]NVStorageSaveData done [07:48:25]ExternCall_PrintAddStr [07:48:25]wPrintStart [07:48:25]Write to MH i2c: 01 00 00 10 0B 1B [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: 01 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: 01 07 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 FF 0F 30 [07:48:25]RasterBufferAndPrint [07:48:25]line Счет N : (1)979592 [07:48:25]line ИНН: 02508201610067 [07:48:25]line Контрольно-Кассовый Чек [07:48:25]line ПРОДАЖА [07:48:25]line ТРК (МРК, ГНК) : 22 [07:48:25]line Товар: 2710124130 [07:48:25]line Аи-92-К-5 [07:48:25]line 2.850 * 66.90 [07:48:25]line = 190.67 [07:48:25]line НДС 12% НСП 1% [07:48:25]line > о реализуемом товаре [07:48:25]line ОКРУГЛЕНИЕ: -0.67 [07:48:25]line ИТОГО: 190.00 [07:48:25]line Внесено: 190.00 [07:48:25]line СДАЧА: 0.00 [07:48:25]line НСП 1% : 1.69 [07:48:25]line НДС 12% : 20.25 [07:48:25]line Наличными: 190.00 [07:48:25]line Безнал.: 0.00 [07:48:25]line Место: АЗС № 68 "Партнер Нефть" [07:48:25]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [07:48:25]line СНО: Общий режим [07:48:25]line Чек 8 04.06.2024 07:48 [07:48:25]line Смена: 368 ФФД: 1.0 [07:48:25]line ЗНМ: 0300000035 [07:48:25]line РНМ: 0000000000092720 [07:48:25]line Версия ККМ: 001 [07:48:25]line ФМ: 0000000000875057 [07:48:25]line ФД: 148669 [07:48:25]line ФПД: 8228222392872 [07:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T074826&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148669&fm=8228222392872&tin=02508201610067®Number=0000000000092720&sum=19000 [07:48:25]written 0, free lines is 4095 [07:48:25]OFD Sender: Processing packet 148669 [packets to send 100, broken 99] [07:48:25]ProducePacketName [07:48:25]name=ofd_packets/00148669 [07:48:25]OFD Sender: To server: pG, [07:48:25]CommunicateWithHost lk.salyk.kg:30040 [07:48:26]ConnectInit lk.salyk.kg [07:48:26]Connected sock=10 [07:48:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 BD 7F 07 01 C9 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 CA C6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BD 44 02 00 35 04 06 00 07 7B C8 45 DA 28 E3 CC 4D FB 1C EA 67 42 [07:48:26]Write to MH i2c: 01 00 00 3B 0B 46 [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: 01 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: 01 07 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 62 0C BB [07:48:26]RasterBufferAndPrint [07:48:26]line [07:48:26]line [07:48:26]line [07:48:26]line [07:48:26]line [07:48:26]written 0, free lines is 3174 [07:48:26]MH_Cut [07:48:26]Write to MH i2c: D1 01 00 42 0B 01 1F [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: D1 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: D1 01 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: D1 01 00 42 0B 00 1E [07:48:26]Write to MH i2c: 01 00 00 43 0B 4E [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 93 1F 47 00 BD 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BD 44 02 00 F4 03 04 00 EF 6D 5E 66 B6 04 01 00 00 42 09 C7 2F DC 97 78 70 [07:48:26]CommunicateWithHost err = 0 [07:48:26]CheckOFDResponse [07:48:26]1017 (14) - 77093643461234 [07:48:26]1041 (16) - 0000000000875057 [07:48:26]1040 (4) - 148669 [07:48:26]1012 (4) - 04.06.2024 01:29 [07:48:26]1206 (1) - 0 [07:48:26]OFD Sender: Remove packet 148669 [07:48:26]ProducePacketName [07:48:26]name=ofd_packets/00148669 [07:48:26]NVStorageDeleteData [07:48:26]OFD Sender: No OFD packet to send [07:48:27]*** Cut start [07:48:27]*** Partial cut [07:48:27]*** CUTSNS_PIN = 1 [07:48:27]*** CUTSNS_PIN = 0 [07:48:27]*** Brake cut motor [07:48:28]Read from MH i2c: 01 [07:48:28]MH_I2C_Read... [07:48:28]*** Stop cut motor [07:48:28]*** Cut end [07:48:28]Read from MH i2c: 01 07 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: 01 07 00 43 0B 00 00 00 00 00 FF 0F 63 [07:48:28]process_action close_receipt done [07:48:28]requested_data is exist [07:48:28]produce_requested_data [07:48:28]requested_item fm.sn is exist - process it [07:48:28]wFMCommunicate request_size=4 [07:48:28]MH_SAM_APDU [07:48:28]CAPDU: 80 11 00 00 [07:48:28]Write to MH i2c: E2 08 00 44 0B 80 11 00 00 00 00 00 00 C9 [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 [07:48:28]MH_I2C_Read... [07:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:28]Read from MH i2c: E2 17 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 17 00 44 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1C [07:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:48:28]wFMCommunicate OK [07:48:28]requested_item fd.num is exist - process it [07:48:28]SAM_PROTO_GetFieldsCounters [07:48:28]wFMCommunicate request_size=4 [07:48:28]MH_SAM_APDU [07:48:28]CAPDU: 80 13 00 00 [07:48:28]Write to MH i2c: E2 08 00 45 0B 80 13 00 00 00 00 00 00 CC [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:28]Read from MH i2c: E2 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 62 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 62 00 45 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BD 44 02 00 0E 04 04 00 70 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 74 [07:48:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BD 44 02 00 0E 04 04 00 70 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 [07:48:28]wFMCommunicate OK [07:48:28]SAM_PROTO_GetFieldsCounters done [07:48:28]requested_item shift.num is exist - process it [07:48:28]requested_item shift.opened is exist - process it [07:48:28]req_shift_opened [07:48:28]FM_GetShiftState [07:48:28]SAM_PROTO_GetShiftState [07:48:28]wFMCommunicate request_size=4 [07:48:28]MH_SAM_APDU [07:48:28]CAPDU: 80 13 01 00 [07:48:28]Write to MH i2c: E2 08 00 46 0B 80 13 01 00 00 00 00 00 CE [07:48:28]Write i2c OK [07:48:28]MH_I2C_Read... [07:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:28]Read from MH i2c: E2 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 0E 00 [07:48:28]MH_I2C_Read... [07:48:28]Read from MH i2c: E2 0E 00 46 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 91 [07:48:28]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:48:28]wFMCommunicate OK [07:48:28]SAM_PROTO_GetShiftState done [07:48:28]FM_GetShiftState done [07:48:28]req_shift_opened done [07:48:28]requested_item shift.open_date is exist - process it [07:48:28]req_shift_open_date [07:48:28]req_shift_open_date done [07:48:28]produce_requested_data done [07:48:28]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148669,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [07:48:28]process_action_free close_receipt [07:48:28]json_value_free [07:48:28]json_value_free done [07:48:28]process_json_proto returns [07:48:28]Send response to host [07:48:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148669,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [07:48:28]free response buf [07:48:28]execute_script done [07:48:28]execute_script returns [07:48:28]free content buf [07:48:28]Sock 7.Close socket [07:48:28]Sock 7.Thread stoped [07:48:31]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:46]accept exits with 9 [07:50:46]New connection [07:50:46]New thread 3066666340 created [07:50:46]Thread 3066809700 joined [07:50:46]Waiting for new connection... [07:50:46] Sock 9.Parse request [07:50:46]Sock 9.Check first char [07:50:46]Sock 9.First char is OK [07:50:46]request: POST /json_proto HTTP/1.0 [07:50:46]Method: POST [07:50:46]URL: /json_proto [07:50:46]Method is POST - this is cgi request [07:50:46]url: /json_proto [07:50:46]query_string will be loaded in cgi processing [07:50:46]execute_cgi json_proto POST (null) [07:50:46]execute_cgi path=json_proto method=POST [07:50:46]POST find Content-Length [07:50:46]Host: 172.17.38.4:8080 [07:50:46]Content-Length: 679 [07:50:46]Content-Type: application/json [07:50:46] [07:50:46]POST finish read [07:50:46]Found Content-Length = 679 [07:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [07:50:46]execute_script... [07:50: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)979593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [07:50:46]POST & json_proto [07:50:46]process_json_proto [07:50:46]json parsed OK: [07:50:46]protocol is kg_v1.0 [07:50:46]action value=close_receipt [07:50:46]process_action close_receipt [07:50:46]cmd_close_receipt [07:50:46]MH_GetDate [07:50:46]Write to MH i2c: F0 00 00 47 0B 41 [07:50:46]Write i2c OK [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: F0 [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: F0 09 00 [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: F0 09 00 47 0B 00 59 C7 5E 66 CC 51 87 64 36 [07:50:46]GetLastDocTimeStamp 1717487306 [07:50:46]current date 1717487449 [07:50:46]FM_GetShiftState [07:50:46]SAM_PROTO_GetShiftState [07:50:46]wFMCommunicate request_size=4 [07:50:46]MH_SAM_APDU [07:50:46]CAPDU: 80 13 01 00 [07:50:46]Write to MH i2c: E2 08 00 48 0B 80 13 01 00 00 00 00 00 D0 [07:50:46]Write i2c OK [07:50:46]MH_I2C_Read... [07:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:46]Read from MH i2c: E2 [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: E2 0E 00 [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: E2 0E 00 48 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 93 [07:50:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:50:46]wFMCommunicate OK [07:50:46]SAM_PROTO_GetShiftState done [07:50:46]FM_GetShiftState done [07:50:46]opened in 1717460629 [07:50:46]opened+sec_in_day 1717547029 [07:50:46]quantity*price = 100018 [07:50:46]sum+1 = 100020 [07:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 9 04.06.2024 07:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148670 ФПД: 269460409290010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075049&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148670&fm=269460409290010&tin=02508201610067®Number=0000000000092720&sum=100000 [07:50:47]StoreToDocumentArchive [07:50:47]shift 368 fd 148670 [07:50:47]save to /storage/0368/doc_00148670 [07:50:47]save last doc name /storage/0368/doc_00148670 to /storage/kkm_last_doc_name [07:50:47]save OK [07:50:47]Clear old archive folders... [07:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:50:47]tlvbuf is 015EA350 [07:50:47]SAM_PROTO_ClearQueue [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 09 00 00 [07:50:47]Write to MH i2c: E2 08 00 55 0B 80 09 00 00 00 00 00 00 D2 [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [07:50:47]RAPDU: 90 00 [07:50:47]wFMCommunicate OK [07:50:47]SAM_PROTO_ClearQueue done [07:50:47]KKMCreateOFDPacket [07:50:47]OFDProtocolAddRootSTLVToBuf [07:50:47]FM_MakeSignedData [07:50:47]FM_MakeSignedData [07:50:47]SAM_PROTO_SignData [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 0D 01 02 [07:50:47]Write to MH i2c: E2 08 00 56 0B 80 0D 01 02 00 00 00 00 DA [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 03 00 56 0B 00 90 00 D5 [07:50:47]RAPDU: 90 00 [07:50:47]wFMCommunicate OK [07:50:47]wFMCommunicate request_size=255 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 59 C7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BE 44 02 00 35 04 06 00 F5 12 A3 FA [07:50:47]Write to MH i2c: E2 02 01 57 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 59 C7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BE 44 02 00 35 04 06 00 F5 12 A3 FA 00 00 41 [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:48]Read from MH i2c: E2 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: E2 03 00 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: E2 03 00 57 0B 00 90 00 D6 [07:50:48]RAPDU: 90 00 [07:50:48]wFMCommunicate OK [07:50:48]wFMCommunicate request_size=7 [07:50:48]MH_SAM_APDU [07:50:48]CAPDU: 80 0D 02 02 02 0D 1A [07:50:48]Write to MH i2c: E2 0A 00 58 0B 80 0D 02 02 02 00 0D 1A 00 00 08 [07:50:48]Write i2c OK [07:50:48]MH_I2C_Read... [07:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:48]Read from MH i2c: E2 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: E2 03 00 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: E2 03 00 58 0B 00 90 00 D7 [07:50:48]RAPDU: 90 00 [07:50:48]wFMCommunicate OK [07:50:48]wFMCommunicate request_size=4 [07:50:48]MH_SAM_APDU [07:50:48]CAPDU: 80 0D 03 02 [07:50:48]Write to MH i2c: E2 08 00 59 0B 80 0D 03 02 00 00 00 00 DF [07:50:48]Write i2c OK [07:50:48]MH_I2C_Read... [07:50:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:48]Read from MH i2c: E2 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: E2 0B 00 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: E2 0B 00 59 0B 00 E6 6C 0A F0 BB E2 08 74 90 00 45 [07:50:48]RAPDU: E6 6C 0A F0 BB E2 08 74 90 00 [07:50:48]wFMCommunicate OK [07:50:48]SAM_PROTO_SignData done [07:50:48]FM_MakeSignedData done [07:50:48]CreateOFDProtocolMessage [07:50:48]wFMCommunicate request_size=4 [07:50:48]MH_SAM_APDU [07:50:48]CAPDU: 80 11 00 00 [07:50:48]Write to MH i2c: E2 08 00 5A 0B 80 11 00 00 00 00 00 00 DF [07:50:48]Write i2c OK [07:50:48]MH_I2C_Read... [07:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:48]Read from MH i2c: E2 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: E2 17 00 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: E2 17 00 5A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 32 [07:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:50:48]wFMCommunicate OK [07:50:48]CreateOFDProtocolMessage done [07:50:48]OFDSenderStorePacket 148670 [07:50:48]StoreOFDPacket docnum=148670 [07:50:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 5A 1F 04 01 4A B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 59 C7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BE 44 02 00 35 04 06 00 F5 12 A3 FA 0D 1A E6 6C 0A F0 BB E2 08 74 [07:50:48]CheckFolder [07:50:48]dirname=/storage/ofd_packets [07:50:48]CheckFolder done [07:50:48]ProducePacketName [07:50:48]name=ofd_packets/00148670 [07:50:48]NVStorageSaveData ofd_packets/00148670 [07:50:48]File name is /storage/ofd_packets/00148670 [07:50:48]Write 298 bytes [07:50:48]NVStorageSaveData done [07:50:48]OFDSenderStorePacket done [07:50:48]KKMCreateOFDPacket done [07:50:48]NVStorageSaveData kkm_last_timestamp [07:50:48]File name is /storage/kkm_last_timestamp [07:50:48]Write 4 bytes [07:50:48]NVStorageSaveData done [07:50:48]ExternCall_PrintAddStr [07:50:48]wPrintStart [07:50:48]Write to MH i2c: 01 00 00 5B 0B 66 [07:50:48]Write i2c OK [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: 01 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: 01 07 00 [07:50:48]MH_I2C_Read... [07:50:48]Read from MH i2c: 01 07 00 5B 0B 00 00 00 00 00 FF 0F 7B [07:50:48]RasterBufferAndPrint [07:50:48]line Счет N : (1)979593 [07:50:48]line ИНН: 02508201610067 [07:50:48]line Контрольно-Кассовый Чек [07:50:48]line ПРОДАЖА [07:50:48]line ТРК (МРК, ГНК) : 52 [07:50:48]line Товар: 2710194210 [07:50:48]line ДТ-К-5 [07:50:48]line 13.720 * 72.90 [07:50:48]line = 1000.19 [07:50:48]line НДС 12% НСП 1% [07:50:48]line > о реализуемом товаре [07:50:48]line ОКРУГЛЕНИЕ: -0.19 [07:50:48]line ИТОГО: 1000.00 [07:50:48]line Внесено: 1000.00 [07:50:48]line СДАЧА: 0.00 [07:50:48]line НСП 1% : 8.85 [07:50:48]line НДС 12% : 106.21 [07:50:48]line Наличными: 1000.00 [07:50:48]line Безнал.: 0.00 [07:50:48]line Место: АЗС № 68 "Партнер Нефть" [07:50:48]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [07:50:48]line СНО: Общий режим [07:50:48]line Чек 9 04.06.2024 07:50 [07:50:48]line Смена: 368 ФФД: 1.0 [07:50:48]line ЗНМ: 0300000035 [07:50:48]line РНМ: 0000000000092720 [07:50:48]line Версия ККМ: 001 [07:50:48]line ФМ: 0000000000875057 [07:50:48]line ФД: 148670 [07:50:48]line ФПД: 269460409290010 [07:50:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075049&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148670&fm=269460409290010&tin=02508201610067®Number=0000000000092720&sum=100000 [07:50:48]OFD Sender: Processing packet 148670 [packets to send 100, broken 99] [07:50:48]ProducePacketName [07:50:48]name=ofd_packets/00148670 [07:50:48]OFD Sender: To server: pG, [07:50:48]CommunicateWithHost lk.salyk.kg:30040 [07:50:48]ConnectInit lk.salyk.kg [07:50:48]written 0, free lines is 4095 [07:50:48]Connected sock=10 [07:50:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 5A 1F 04 01 4A B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 59 C7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BE 44 02 00 35 04 06 00 F5 12 A3 FA 0D 1A E6 6C 0A F0 BB E2 08 74 [07:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DE 15 47 00 EE 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BE 44 02 00 F4 03 04 00 7D 6E 5E 66 B6 04 01 00 00 84 4A 9B 7B CD B9 F4 C2 [07:50:48]CommunicateWithHost err = 0 [07:50:48]CheckOFDResponse [07:50:48]1017 (14) - 77093643461234 [07:50:48]1041 (16) - 0000000000875057 [07:50:48]1040 (4) - 148670 [07:50:48]1012 (4) - 04.06.2024 01:31 [07:50:48]1206 (1) - 0 [07:50:48]OFD Sender: Remove packet 148670 [07:50:48]ProducePacketName [07:50:48]name=ofd_packets/00148670 [07:50:48]NVStorageDeleteData [07:50:49]Write to MH i2c: 01 00 00 86 0B 91 [07:50:49]Write i2c OK [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: 01 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: 01 07 00 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: 01 07 00 86 0B 00 00 00 00 00 60 0C 04 [07:50:49]RasterBufferAndPrint [07:50:49]line [07:50:49]line [07:50:49]line [07:50:49]line [07:50:49]line [07:50:49]written 0, free lines is 3172 [07:50:49]MH_Cut [07:50:49]Write to MH i2c: D1 01 00 8D 0B 01 6A [07:50:49]Write i2c OK [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: D1 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: D1 01 00 [07:50:49]MH_I2C_Read... [07:50:49]Read from MH i2c: D1 01 00 8D 0B 00 69 [07:50:49]Write to MH i2c: 01 00 00 8E 0B 99 [07:50:49]Write i2c OK [07:50:49]MH_I2C_Read... [07:50:49]OFD Sender: No OFD packet to send [07:50:50]*** Cut start [07:50:50]*** Partial cut [07:50:50]*** CUTSNS_PIN = 1 [07:50:50]*** CUTSNS_PIN = 0 [07:50:50]*** Brake cut motor [07:50:51]Read from MH i2c: 01 [07:50:51]MH_I2C_Read... [07:50:51]*** Stop cut motor [07:50:51]*** Cut end [07:50:51]Read from MH i2c: 01 07 00 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: 01 07 00 8E 0B 00 00 00 00 00 FF 0F AE [07:50:51]process_action close_receipt done [07:50:51]requested_data is exist [07:50:51]produce_requested_data [07:50:51]requested_item fm.sn is exist - process it [07:50:51]wFMCommunicate request_size=4 [07:50:51]MH_SAM_APDU [07:50:51]CAPDU: 80 11 00 00 [07:50:51]Write to MH i2c: E2 08 00 8F 0B 80 11 00 00 00 00 00 00 14 [07:50:51]Write i2c OK [07:50:51]MH_I2C_Read... [07:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:51]Read from MH i2c: E2 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 17 00 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 17 00 8F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 67 [07:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:50:51]wFMCommunicate OK [07:50:51]requested_item fd.num is exist - process it [07:50:51]SAM_PROTO_GetFieldsCounters [07:50:51]wFMCommunicate request_size=4 [07:50:51]MH_SAM_APDU [07:50:51]CAPDU: 80 13 00 00 [07:50:51]Write to MH i2c: E2 08 00 90 0B 80 13 00 00 00 00 00 00 17 [07:50:51]Write i2c OK [07:50:51]MH_I2C_Read... [07:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:51]Read from MH i2c: E2 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 62 00 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 62 00 90 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BE 44 02 00 0E 04 04 00 70 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 C3 [07:50:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BE 44 02 00 0E 04 04 00 70 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 [07:50:51]wFMCommunicate OK [07:50:51]SAM_PROTO_GetFieldsCounters done [07:50:51]requested_item shift.num is exist - process it [07:50:51]requested_item shift.opened is exist - process it [07:50:51]req_shift_opened [07:50:51]FM_GetShiftState [07:50:51]SAM_PROTO_GetShiftState [07:50:51]wFMCommunicate request_size=4 [07:50:51]MH_SAM_APDU [07:50:51]CAPDU: 80 13 01 00 [07:50:51]Write to MH i2c: E2 08 00 91 0B 80 13 01 00 00 00 00 00 19 [07:50:51]Write i2c OK [07:50:51]MH_I2C_Read... [07:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:51]Read from MH i2c: E2 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 0E 00 [07:50:51]MH_I2C_Read... [07:50:51]Read from MH i2c: E2 0E 00 91 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DC [07:50:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:50:51]wFMCommunicate OK [07:50:51]SAM_PROTO_GetShiftState done [07:50:51]FM_GetShiftState done [07:50:51]req_shift_opened done [07:50:51]requested_item shift.open_date is exist - process it [07:50:51]req_shift_open_date [07:50:51]req_shift_open_date done [07:50:51]produce_requested_data done [07:50:51]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148670,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [07:50:51]process_action_free close_receipt [07:50:51]json_value_free [07:50:51]json_value_free done [07:50:51]process_json_proto returns [07:50:51]Send response to host [07:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148670,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [07:50:51]free response buf [07:50:51]execute_script done [07:50:51]execute_script returns [07:50:51]free content buf [07:50:51]Sock 9.Close socket [07:50:51]Sock 9.Thread stoped [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:01]accept exits with 7 [07:51:01]New connection [07:51:01]New thread 3066809700 created [07:51:01]Thread 3066666340 joined [07:51:01]Waiting for new connection... [07:51:01] Sock 7.Parse request [07:51:01]Sock 7.Check first char [07:51:01]Sock 7.First char is OK [07:51:01]request: POST /json_proto HTTP/1.0 [07:51:01]Method: POST [07:51:01]URL: /json_proto [07:51:01]Method is POST - this is cgi request [07:51:01]url: /json_proto [07:51:01]query_string will be loaded in cgi processing [07:51:01]execute_cgi json_proto POST (null) [07:51:01]execute_cgi path=json_proto method=POST [07:51:01]POST find Content-Length [07:51:01]Host: 172.17.38.4:8080 [07:51:01]Content-Length: 678 [07:51:01]Content-Type: application/json [07:51:01] [07:51:01]POST finish read [07:51:01]Found Content-Length = 678 [07:51:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:01]execute_script... [07:51: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)979594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:01]POST & json_proto [07:51:01]process_json_proto [07:51:01]json parsed OK: [07:51:01]protocol is kg_v1.0 [07:51:01]action value=close_receipt [07:51:01]process_action close_receipt [07:51:01]cmd_close_receipt [07:51:01]MH_GetDate [07:51:01]Write to MH i2c: F0 00 00 92 0B 8C [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: F0 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: F0 09 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: F0 09 00 92 0B 00 68 C7 5E 66 CC 51 87 64 90 [07:51:01]GetLastDocTimeStamp 1717487449 [07:51:01]current date 1717487464 [07:51:01]FM_GetShiftState [07:51:01]SAM_PROTO_GetShiftState [07:51:01]wFMCommunicate request_size=4 [07:51:01]MH_SAM_APDU [07:51:01]CAPDU: 80 13 01 00 [07:51:01]Write to MH i2c: E2 08 00 93 0B 80 13 01 00 00 00 00 00 1B [07:51:01]Write i2c OK [07:51:01]MH_I2C_Read... [07:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:01]Read from MH i2c: E2 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: E2 0E 00 [07:51:01]MH_I2C_Read... [07:51:01]Read from MH i2c: E2 0E 00 93 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DE [07:51:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:51:01]wFMCommunicate OK [07:51:01]SAM_PROTO_GetShiftState done [07:51:01]FM_GetShiftState done [07:51:01]opened in 1717460629 [07:51:01]opened+sec_in_day 1717547029 [07:51:01]quantity*price = 70044 [07:51:01]sum+1 = 70045 [07:51: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 10 04.06.2024 07:51 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148671 ФПД: 137807468075186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075104&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148671&fm=137807468075186&tin=02508201610067®Number=0000000000092720&sum=70000 [07:51:02]StoreToDocumentArchive [07:51:02]shift 368 fd 148671 [07:51:02]save to /storage/0368/doc_00148671 [07:51:02]save last doc name /storage/0368/doc_00148671 to /storage/kkm_last_doc_name [07:51:02]save OK [07:51:02]Clear old archive folders... [07:51:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:51:02]tlvbuf is 015EADC0 [07:51:02]SAM_PROTO_ClearQueue [07:51:02]wFMCommunicate request_size=4 [07:51:02]MH_SAM_APDU [07:51:02]CAPDU: 80 09 00 00 [07:51:02]Write to MH i2c: E2 08 00 A0 0B 80 09 00 00 00 00 00 00 1D [07:51:02]Write i2c OK [07:51:02]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [07:51:03]RAPDU: 90 00 [07:51:03]wFMCommunicate OK [07:51:03]SAM_PROTO_ClearQueue done [07:51:03]KKMCreateOFDPacket [07:51:03]OFDProtocolAddRootSTLVToBuf [07:51:03]FM_MakeSignedData [07:51:03]FM_MakeSignedData [07:51:03]SAM_PROTO_SignData [07:51:03]wFMCommunicate request_size=4 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 0D 01 02 [07:51:03]Write to MH i2c: E2 08 00 A1 0B 80 0D 01 02 00 00 00 00 25 [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 A1 0B 00 90 00 20 [07:51:03]RAPDU: 90 00 [07:51:03]wFMCommunicate OK [07:51:03]wFMCommunicate request_size=255 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 68 C7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BF 44 02 00 35 04 06 00 7D [07:51:03]Write to MH i2c: E2 02 01 A2 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 68 C7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BF 44 02 00 35 04 06 00 7D 00 00 AF [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 A2 0B 00 90 00 21 [07:51:03]RAPDU: 90 00 [07:51:03]wFMCommunicate OK [07:51:03]wFMCommunicate request_size=10 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 0D 02 02 05 55 CD 2E 98 B2 [07:51:03]Write to MH i2c: E2 0D 00 A3 0B 80 0D 02 02 05 00 55 CD 2E 98 B2 00 00 CC [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 03 00 A3 0B 00 90 00 22 [07:51:03]RAPDU: 90 00 [07:51:03]wFMCommunicate OK [07:51:03]wFMCommunicate request_size=4 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 0D 03 02 [07:51:03]Write to MH i2c: E2 08 00 A4 0B 80 0D 03 02 00 00 00 00 2A [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 0B 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 0B 00 A4 0B 00 FB A9 D1 C1 28 1C CD 18 90 00 8A [07:51:03]RAPDU: FB A9 D1 C1 28 1C CD 18 90 00 [07:51:03]wFMCommunicate OK [07:51:03]SAM_PROTO_SignData done [07:51:03]FM_MakeSignedData done [07:51:03]CreateOFDProtocolMessage [07:51:03]wFMCommunicate request_size=4 [07:51:03]MH_SAM_APDU [07:51:03]CAPDU: 80 11 00 00 [07:51:03]Write to MH i2c: E2 08 00 A5 0B 80 11 00 00 00 00 00 00 2A [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:03]Read from MH i2c: E2 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 17 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: E2 17 00 A5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7D [07:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:51:03]wFMCommunicate OK [07:51:03]CreateOFDProtocolMessage done [07:51:03]OFDSenderStorePacket 148671 [07:51:03]StoreOFDPacket docnum=148671 [07:51:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E6 48 07 01 D3 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 68 C7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BF 44 02 00 35 04 06 00 7D 55 CD 2E 98 B2 FB A9 D1 C1 28 1C CD 18 [07:51:03]CheckFolder [07:51:03]dirname=/storage/ofd_packets [07:51:03]CheckFolder done [07:51:03]ProducePacketName [07:51:03]name=ofd_packets/00148671 [07:51:03]NVStorageSaveData ofd_packets/00148671 [07:51:03]File name is /storage/ofd_packets/00148671 [07:51:03]Write 301 bytes [07:51:03]NVStorageSaveData done [07:51:03]OFDSenderStorePacket done [07:51:03]KKMCreateOFDPacket done [07:51:03]NVStorageSaveData kkm_last_timestamp [07:51:03]File name is /storage/kkm_last_timestamp [07:51:03]Write 4 bytes [07:51:03]NVStorageSaveData done [07:51:03]OFD Sender: Processing packet 148671 [packets to send 100, broken 99] [07:51:03]ProducePacketName [07:51:03]name=ofd_packets/00148671 [07:51:03]OFD Sender: To server: pG, [07:51:03]CommunicateWithHost lk.salyk.kg:30040 [07:51:03]ConnectInit lk.salyk.kg [07:51:03]ExternCall_PrintAddStr [07:51:03]wPrintStart [07:51:03]Write to MH i2c: 01 00 00 A6 0B B1 [07:51:03]Write i2c OK [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: 01 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: 01 07 00 [07:51:03]MH_I2C_Read... [07:51:03]Read from MH i2c: 01 07 00 A6 0B 00 00 00 00 00 FF 0F C6 [07:51:03]RasterBufferAndPrint [07:51:03]line Счет N : (1)979594 [07:51:03]line ИНН: 02508201610067 [07:51:03]line Контрольно-Кассовый Чек [07:51:03]line ПРОДАЖА [07:51:03]line ТРК (МРК, ГНК) : 31 [07:51:03]line Товар: 2710124130 [07:51:03]line Аи-92-К-5 [07:51:03]line 10.470 * 66.90 [07:51:03]line = 700.44 [07:51:03]line НДС 12% НСП 1% [07:51:03]line > о реализуемом товаре [07:51:03]line ОКРУГЛЕНИЕ: -0.44 [07:51:03]line ИТОГО: 700.00 [07:51:03]line Внесено: 700.00 [07:51:03]line СДАЧА: 0.00 [07:51:03]line НСП 1% : 6.20 [07:51:03]line НДС 12% : 74.38 [07:51:03]line Наличными: 700.00 [07:51:03]line Безнал.: 0.00 [07:51:03]line Место: АЗС № 68 "Партнер Нефть" [07:51:03]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [07:51:03]line СНО: Общий режим [07:51:03]line Чек 10 04.06.2024 07:51 [07:51:03]line Смена: 368 ФФД: 1.0 [07:51:03]line ЗНМ: 0300000035 [07:51:03]line РНМ: 0000000000092720 [07:51:03]line Версия ККМ: 001 [07:51:03]line ФМ: 0000000000875057 [07:51:03]line ФД: 148671 [07:51:03]line ФПД: 137807468075186 [07:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075104&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148671&fm=137807468075186&tin=02508201610067®Number=0000000000092720&sum=70000 [07:51:03]Connected sock=11 [07:51:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E6 48 07 01 D3 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 68 C7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BF 44 02 00 35 04 06 00 7D 55 CD 2E 98 B2 FB A9 D1 C1 28 1C written 0, free lines is 4095 [07:51:03]CD 18 [07:51:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 91 8B 47 00 54 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BF 44 02 00 F4 03 04 00 8C 6E 5E 66 B6 04 01 00 00 47 16 E4 B6 D7 EC 0D 65 [07:51:04]CommunicateWithHost err = 0 [07:51:04]CheckOFDResponse [07:51:04]1017 (14) - 77093643461234 [07:51:04]1041 (16) - 0000000000875057 [07:51:04]1040 (4) - 148671 [07:51:04]1012 (4) - 04.06.2024 01:31 [07:51:04]1206 (1) - 0 [07:51:04]OFD Sender: Remove packet 148671 [07:51:04]ProducePacketName [07:51:04]name=ofd_packets/00148671 [07:51:04]NVStorageDeleteData [07:51:04]Write to MH i2c: 01 00 00 D1 0B DC [07:51:04]Write i2c OK [07:51:04]MH_I2C_Read... [07:51:04]Read from MH i2c: 01 [07:51:04]MH_I2C_Read... [07:51:04]Read from MH i2c: 01 07 00 [07:51:04]MH_I2C_Read... [07:51:04]Read from MH i2c: 01 07 00 D1 0B 00 00 00 00 00 59 0C 48 [07:51:04]RasterBufferAndPrint [07:51:04]line [07:51:04]line [07:51:04]line [07:51:04]line [07:51:04]line [07:51:04]written 0, free lines is 3166 [07:51:04]MH_Cut [07:51:04]Write to MH i2c: D1 01 00 D8 0B 01 B5 [07:51:04]Write i2c OK [07:51:04]MH_I2C_Read... [07:51:04]Read from MH i2c: D1 [07:51:04]MH_I2C_Read... [07:51:04]Read from MH i2c: D1 01 00 [07:51:04]MH_I2C_Read... [07:51:04]Read from MH i2c: D1 01 00 D8 0B 00 B4 [07:51:04]Write to MH i2c: 01 00 00 D9 0B E4 [07:51:04]Write i2c OK [07:51:04]MH_I2C_Read... [07:51:04]OFD Sender: No OFD packet to send [07:51:05]*** Cut start [07:51:05]*** Partial cut [07:51:05]*** CUTSNS_PIN = 1 [07:51:05]*** CUTSNS_PIN = 0 [07:51:05]*** Brake cut motor [07:51:06]Read from MH i2c: 01 [07:51:06]MH_I2C_Read... [07:51:06]*** Stop cut motor [07:51:06]*** Cut end [07:51:06]Read from MH i2c: 01 07 00 [07:51:06]MH_I2C_Read... [07:51:06]Read from MH i2c: 01 07 00 D9 0B 00 00 00 00 00 FF 0F F9 [07:51:06]process_action close_receipt done [07:51:06]requested_data is exist [07:51:06]produce_requested_data [07:51:06]requested_item fm.sn is exist - process it [07:51:06]wFMCommunicate request_size=4 [07:51:06]MH_SAM_APDU [07:51:06]CAPDU: 80 11 00 00 [07:51:06]Write to MH i2c: E2 08 00 DA 0B 80 11 00 00 00 00 00 00 5F [07:51:06]Write i2c OK [07:51:06]MH_I2C_Read... [07:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:06]Read from MH i2c: E2 [07:51:06]MH_I2C_Read... [07:51:06]Read from MH i2c: E2 17 00 [07:51:06]MH_I2C_Read... [07:51:06]Read from MH i2c: E2 17 00 DA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B2 [07:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:51:06]wFMCommunicate OK [07:51:06]requested_item fd.num is exist - process it [07:51:06]SAM_PROTO_GetFieldsCounters [07:51:06]wFMCommunicate request_size=4 [07:51:06]MH_SAM_APDU [07:51:06]CAPDU: 80 13 00 00 [07:51:06]Write to MH i2c: E2 08 00 DB 0B 80 13 00 00 00 00 00 00 62 [07:51:06]Write i2c OK [07:51:06]MH_I2C_Read... [07:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:06]Read from MH i2c: E2 [07:51:06]MH_I2C_Read... [07:51:06]Read from MH i2c: E2 62 00 [07:51:06]MH_I2C_Read... [07:51:06]Read from MH i2c: E2 62 00 DB 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BF 44 02 00 0E 04 04 00 70 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 12 [07:51:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BF 44 02 00 0E 04 04 00 70 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 [07:51:06]wFMCommunicate OK [07:51:06]SAM_PROTO_GetFieldsCounters done [07:51:06]requested_item shift.num is exist - process it [07:51:06]requested_item shift.opened is exist - process it [07:51:06]req_shift_opened [07:51:06]FM_GetShiftState [07:51:06]SAM_PROTO_GetShiftState [07:51:06]wFMCommunicate request_size=4 [07:51:06]MH_SAM_APDU [07:51:06]CAPDU: 80 13 01 00 [07:51:06]Write to MH i2c: E2 08 00 DC 0B 80 13 01 00 00 00 00 00 64 [07:51:06]Write i2c OK [07:51:06]MH_I2C_Read... [07:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:06]Read from MH i2c: E2 [07:51:06]MH_I2C_Read... [07:51:06]Read from MH i2c: E2 0E 00 [07:51:06]MH_I2C_Read... [07:51:06]Read from MH i2c: E2 0E 00 DC 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 27 [07:51:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:51:06]wFMCommunicate OK [07:51:06]SAM_PROTO_GetShiftState done [07:51:06]FM_GetShiftState done [07:51:06]req_shift_opened done [07:51:06]requested_item shift.open_date is exist - process it [07:51:06]req_shift_open_date [07:51:06]req_shift_open_date done [07:51:06]produce_requested_data done [07:51:06]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148671,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [07:51:06]process_action_free close_receipt [07:51:06]json_value_free [07:51:06]json_value_free done [07:51:06]process_json_proto returns [07:51:06]Send response to host [07:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148671,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [07:51:06]free response buf [07:51:06]execute_script done [07:51:06]execute_script returns [07:51:06]free content buf [07:51:06]Sock 7.Close socket [07:51:06]Sock 7.Thread stoped [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:27]accept exits with 9 [07:54:27]New connection [07:54:27]New thread 3066666340 created [07:54:27]Thread 3066809700 joined [07:54:27]Waiting for new connection... [07:54:27] Sock 9.Parse request [07:54:27]Sock 9.Check first char [07:54:27]Sock 9.First char is OK [07:54:27]request: POST /json_proto HTTP/1.0 [07:54:27]Method: POST [07:54:27]URL: /json_proto [07:54:27]Method is POST - this is cgi request [07:54:27]url: /json_proto [07:54:27]query_string will be loaded in cgi processing [07:54:27]execute_cgi json_proto POST (null) [07:54:27]execute_cgi path=json_proto method=POST [07:54:27]POST find Content-Length [07:54:27]Host: 172.17.38.4:8080 [07:54:27]Content-Length: 790 [07:54:27]Content-Type: application/json [07:54:27] [07:54:27]POST finish read [07:54:27]Found Content-Length = 790 [07:54:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:27]execute_script... [07:54:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:27]POST & json_proto [07:54:27]process_json_proto [07:54:27]json parsed OK: [07:54:27]protocol is kg_v1.0 [07:54:27]action value=close_receipt [07:54:27]process_action close_receipt [07:54:27]cmd_close_receipt [07:54:27]MH_GetDate [07:54:27]Write to MH i2c: F0 00 00 DD 0B D7 [07:54:27]Write i2c OK [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: F0 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: F0 09 00 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: F0 09 00 DD 0B 00 35 C8 5E 66 CC 51 87 64 A9 [07:54:27]GetLastDocTimeStamp 1717487464 [07:54:27]current date 1717487669 [07:54:27]FM_GetShiftState [07:54:27]SAM_PROTO_GetShiftState [07:54:27]wFMCommunicate request_size=4 [07:54:27]MH_SAM_APDU [07:54:27]CAPDU: 80 13 01 00 [07:54:27]Write to MH i2c: E2 08 00 DE 0B 80 13 01 00 00 00 00 00 66 [07:54:27]Write i2c OK [07:54:27]MH_I2C_Read... [07:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:27]Read from MH i2c: E2 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: E2 0E 00 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: E2 0E 00 DE 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 29 [07:54:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:54:27]wFMCommunicate OK [07:54:27]SAM_PROTO_GetShiftState done [07:54:27]FM_GetShiftState done [07:54:27]opened in 1717460629 [07:54:27]opened+sec_in_day 1717547029 [07:54:27]quantity*price = 30038 [07:54:27]sum+1 = 30039 [07:54:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 11 04.06.2024 07:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148672 ФПД: 162075798762718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075429&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148672&fm=162075798762718&tin=02508201610067®Number=0000000000092720&sum=30038 [07:54:28]StoreToDocumentArchive [07:54:28]shift 368 fd 148672 [07:54:28]save to /storage/0368/doc_00148672 [07:54:28]save last doc name /storage/0368/doc_00148672 to /storage/kkm_last_doc_name [07:54:28]save OK [07:54:28]Clear old archive folders... [07:54:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:28]tlvbuf is 0158E860 [07:54:28]SAM_PROTO_ClearQueue [07:54:28]wFMCommunicate request_size=4 [07:54:28]MH_SAM_APDU [07:54:28]CAPDU: 80 09 00 00 [07:54:28]Write to MH i2c: E2 08 00 EB 0B 80 09 00 00 00 00 00 00 68 [07:54:28]Write i2c OK [07:54:28]MH_I2C_Read... [07:54:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:28]Read from MH i2c: E2 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 03 00 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 03 00 EB 0B 00 90 00 6A [07:54:28]RAPDU: 90 00 [07:54:28]wFMCommunicate OK [07:54:28]SAM_PROTO_ClearQueue done [07:54:28]KKMCreateOFDPacket [07:54:28]OFDProtocolAddRootSTLVToBuf [07:54:28]FM_MakeSignedData [07:54:28]FM_MakeSignedData [07:54:28]SAM_PROTO_SignData [07:54:28]wFMCommunicate request_size=4 [07:54:28]MH_SAM_APDU [07:54:28]CAPDU: 80 0D 01 02 [07:54:28]Write to MH i2c: E2 08 00 EC 0B 80 0D 01 02 00 00 00 00 70 [07:54:28]Write i2c OK [07:54:28]MH_I2C_Read... [07:54:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:28]Read from MH i2c: E2 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 03 00 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 03 00 EC 0B 00 90 00 6B [07:54:28]RAPDU: 90 00 [07:54:28]wFMCommunicate OK [07:54:28]wFMCommunicate request_size=255 [07:54:28]MH_SAM_APDU [07:54:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 35 C8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C0 44 02 00 35 04 06 00 93 [07:54:28]Write to MH i2c: E2 02 01 ED 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0B 00 00 00 F4 03 04 00 35 C8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C0 44 02 00 35 04 06 00 93 00 00 10 [07:54:28]Write i2c OK [07:54:28]MH_I2C_Read... [07:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:28]Read from MH i2c: E2 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 03 00 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 03 00 ED 0B 00 90 00 6C [07:54:28]RAPDU: 90 00 [07:54:28]wFMCommunicate OK [07:54:28]wFMCommunicate request_size=10 [07:54:28]MH_SAM_APDU [07:54:28]CAPDU: 80 0D 02 02 05 68 36 69 74 DE [07:54:28]Write to MH i2c: E2 0D 00 EE 0B 80 0D 02 02 05 00 68 36 69 74 DE 00 00 D6 [07:54:28]Write i2c OK [07:54:28]MH_I2C_Read... [07:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:29]Read from MH i2c: E2 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 03 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 03 00 EE 0B 00 90 00 6D [07:54:29]RAPDU: 90 00 [07:54:29]wFMCommunicate OK [07:54:29]wFMCommunicate request_size=4 [07:54:29]MH_SAM_APDU [07:54:29]CAPDU: 80 0D 03 02 [07:54:29]Write to MH i2c: E2 08 00 EF 0B 80 0D 03 02 00 00 00 00 75 [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:29]Read from MH i2c: E2 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 0B 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 0B 00 EF 0B 00 92 5B B2 05 8B FD 85 2E 90 00 55 [07:54:29]RAPDU: 92 5B B2 05 8B FD 85 2E 90 00 [07:54:29]wFMCommunicate OK [07:54:29]SAM_PROTO_SignData done [07:54:29]FM_MakeSignedData done [07:54:29]CreateOFDProtocolMessage [07:54:29]wFMCommunicate request_size=4 [07:54:29]MH_SAM_APDU [07:54:29]CAPDU: 80 11 00 00 [07:54:29]Write to MH i2c: E2 08 00 F0 0B 80 11 00 00 00 00 00 00 75 [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:29]Read from MH i2c: E2 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 17 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 17 00 F0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C8 [07:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:54:29]wFMCommunicate OK [07:54:29]CreateOFDProtocolMessage done [07:54:29]OFDSenderStorePacket 148672 [07:54:29]StoreOFDPacket docnum=148672 [07:54:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CE 05 07 01 D7 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 35 C8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C0 44 02 00 35 04 06 00 93 68 36 69 74 DE 92 5B B2 05 8B FD 85 2E [07:54:29]CheckFolder [07:54:29]dirname=/storage/ofd_packets [07:54:29]CheckFolder done [07:54:29]ProducePacketName [07:54:29]name=ofd_packets/00148672 [07:54:29]NVStorageSaveData ofd_packets/00148672 [07:54:29]File name is /storage/ofd_packets/00148672 [07:54:29]Write 301 bytes [07:54:29]NVStorageSaveData done [07:54:29]OFDSenderStorePacket done [07:54:29]KKMCreateOFDPacket done [07:54:29]NVStorageSaveData kkm_last_timestamp [07:54:29]File name is /storage/kkm_last_timestamp [07:54:29]Write 4 bytes [07:54:29]NVStorageSaveData done [07:54:29]ExternCall_PrintAddStr [07:54:29]wPrintStart [07:54:29]Write to MH i2c: 01 00 00 F1 0B FC [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: 01 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: 01 07 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: 01 07 00 F1 0B 00 00 00 00 00 FF 0F 11 [07:54:29]RasterBufferAndPrint [07:54:29]line Счет N : (1)979595 [07:54:29]line ИНН: 02508201610067 [07:54:29]line Контрольно-Кассовый Чек [07:54:29]line ПРОДАЖА [07:54:29]line ТРК (МРК, ГНК) : 41 [07:54:29]line Товар: 2710124130 [07:54:29]line Аи-92-К-5 [07:54:29]line 4.490 * 66.90 [07:54:29]line = 300.38 [07:54:29]line НДС 12% НСП 1% [07:54:29]line > о реализуемом товаре [07:54:29]line ИТОГО: 300.38 [07:54:29]line НСП 1% : 2.66 [07:54:29]line НДС 12% : 31.90 [07:54:29]line Наличными: 0.00 [07:54:29]line Безнал.: 300.38 [07:54:29]line Место: АЗС № 68 "Партнер Нефть" [07:54:29]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [07:54:29]line СНО: Общий режим [07:54:29]line Чек 11 04.06.2024 07:54 [07:54:29]line Смена: 368 ФФД: 1.0 [07:54:29]line ЗНМ: 0300000035 [07:54:29]line РНМ: 0000000000092720 [07:54:29]line Версия ККМ: 001 [07:54:29]line Платежная система: KICB Банк [07:54:29]line ФМ: 0000000000875057 [07:54:29]line ФД: 148672 [07:54:29]line ФПД: 162075798762718 [07:54:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075429&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148672&fm=162075798762718&tin=02508201610067®Number=0000000000092720&sum=30038 [07:54:29]OFD Sender: Processing packet 148672 [packets to send 100, broken 99] [07:54:29]ProducePacketName [07:54:29]name=ofd_packets/00148672 [07:54:29]OFD Sender: To server: pG, [07:54:29]CommunicateWithHost lk.salyk.kg:30040 [07:54:29]ConnectInit lk.salyk.kg [07:54:29]written 0, free lines is 4095 [07:54:29]Connected sock=10 [07:54:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CE 05 07 01 D7 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 35 C8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C0 44 02 00 35 04 06 00 93 68 36 69 74 DE 92 5B B2 05 8B FD 85 2E [07:54:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 93 CD 47 00 C8 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 38 37 35 30 35 37 10 04 04 00 C0 44 02 00 F4 03 04 00 5A 6F 5E 66 B6 04 01 00 00 97 EC 16 19 8D 97 42 AA [07:54:29]CommunicateWithHost err = 0 [07:54:29]CheckOFDResponse [07:54:29]1017 (14) - 77093643461234 [07:54:29]1041 (16) - 0000000000875057 [07:54:29]1040 (4) - 148672 [07:54:29]1012 (4) - 04.06.2024 01:35 [07:54:29]1206 (1) - 0 [07:54:29]OFD Sender: Remove packet 148672 [07:54:29]ProducePacketName [07:54:29]name=ofd_packets/00148672 [07:54:29]NVStorageDeleteData [07:54:29]Write to MH i2c: 01 00 00 1B 0C 27 [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: 01 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: 01 07 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: 01 07 00 1B 0C 00 00 00 00 00 76 0C B0 [07:54:29]RasterBufferAndPrint [07:54:29]line [07:54:29]line [07:54:29]line [07:54:29]line [07:54:29]line [07:54:29]written 0, free lines is 3194 [07:54:29]MH_Cut [07:54:29]Write to MH i2c: D1 01 00 22 0C 01 00 [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: D1 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: D1 01 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: D1 01 00 22 0C 00 FF [07:54:29]Write to MH i2c: 01 00 00 23 0C 2F [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:30]OFD Sender: No OFD packet to send [07:54:31]*** Cut start [07:54:31]*** Partial cut [07:54:31]*** CUTSNS_PIN = 1 [07:54:31]*** CUTSNS_PIN = 0 [07:54:31]*** Brake cut motor [07:54:31]Read from MH i2c: 01 [07:54:31]MH_I2C_Read... [07:54:31]*** Stop cut motor [07:54:31]*** Cut end [07:54:31]Read from MH i2c: 01 07 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 07 00 23 0C 00 00 00 00 00 FF 0F 44 [07:54:31]process_action close_receipt done [07:54:31]requested_data is exist [07:54:31]produce_requested_data [07:54:31]requested_item fm.sn is exist - process it [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 11 00 00 [07:54:31]Write to MH i2c: E2 08 00 24 0C 80 11 00 00 00 00 00 00 AA [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 17 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 17 00 24 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FD [07:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:54:31]wFMCommunicate OK [07:54:31]requested_item fd.num is exist - process it [07:54:31]SAM_PROTO_GetFieldsCounters [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 13 00 00 [07:54:31]Write to MH i2c: E2 08 00 25 0C 80 13 00 00 00 00 00 00 AD [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:32]Read from MH i2c: E2 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: E2 62 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: E2 62 00 25 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C0 44 02 00 0E 04 04 00 70 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 61 [07:54:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C0 44 02 00 0E 04 04 00 70 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 [07:54:32]wFMCommunicate OK [07:54:32]SAM_PROTO_GetFieldsCounters done [07:54:32]requested_item shift.num is exist - process it [07:54:32]requested_item shift.opened is exist - process it [07:54:32]req_shift_opened [07:54:32]FM_GetShiftState [07:54:32]SAM_PROTO_GetShiftState [07:54:32]wFMCommunicate request_size=4 [07:54:32]MH_SAM_APDU [07:54:32]CAPDU: 80 13 01 00 [07:54:32]Write to MH i2c: E2 08 00 26 0C 80 13 01 00 00 00 00 00 AF [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:32]Read from MH i2c: E2 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: E2 0E 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: E2 0E 00 26 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 72 [07:54:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:54:32]wFMCommunicate OK [07:54:32]SAM_PROTO_GetShiftState done [07:54:32]FM_GetShiftState done [07:54:32]req_shift_opened done [07:54:32]requested_item shift.open_date is exist - process it [07:54:32]req_shift_open_date [07:54:32]req_shift_open_date done [07:54:32]produce_requested_data done [07:54:32]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148672,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [07:54:32]process_action_free close_receipt [07:54:32]json_value_free [07:54:32]json_value_free done [07:54:32]process_json_proto returns [07:54:32]Send response to host [07:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148672,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [07:54:32]free response buf [07:54:32]execute_script done [07:54:32]execute_script returns [07:54:32]free content buf [07:54:32]Sock 9.Close socket [07:54:32]Sock 9.Thread stoped [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:40]accept exits with 7 [07:54:40]New connection [07:54:40]New thread 3066809700 created [07:54:40]Thread 3066666340 joined [07:54:40]Waiting for new connection... [07:54:40] Sock 7.Parse request [07:54:40]Sock 7.Check first char [07:54:40]Sock 7.First char is OK [07:54:40]request: POST /json_proto HTTP/1.0 [07:54:40]Method: POST [07:54:40]URL: /json_proto [07:54:40]Method is POST - this is cgi request [07:54:40]url: /json_proto [07:54:40]query_string will be loaded in cgi processing [07:54:40]execute_cgi json_proto POST (null) [07:54:40]execute_cgi path=json_proto method=POST [07:54:40]POST find Content-Length [07:54:40]Host: 172.17.38.4:8080 [07:54:40]Content-Length: 677 [07:54:40]Content-Type: application/json [07:54:40] [07:54:40]POST finish read [07:54:40]Found Content-Length = 677 [07:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:40]execute_script... [07:54: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)979596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:40]POST & json_proto [07:54:40]process_json_proto [07:54:40]json parsed OK: [07:54:40]protocol is kg_v1.0 [07:54:40]action value=close_receipt [07:54:40]process_action close_receipt [07:54:40]cmd_close_receipt [07:54:40]MH_GetDate [07:54:40]Write to MH i2c: F0 00 00 27 0C 22 [07:54:40]Write i2c OK [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: F0 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: F0 09 00 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: F0 09 00 27 0C 00 42 C8 5E 66 CC 51 87 64 01 [07:54:40]GetLastDocTimeStamp 1717487669 [07:54:40]current date 1717487682 [07:54:40]FM_GetShiftState [07:54:40]SAM_PROTO_GetShiftState [07:54:40]wFMCommunicate request_size=4 [07:54:40]MH_SAM_APDU [07:54:40]CAPDU: 80 13 01 00 [07:54:40]Write to MH i2c: E2 08 00 28 0C 80 13 01 00 00 00 00 00 B1 [07:54:40]Write i2c OK [07:54:40]MH_I2C_Read... [07:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:40]Read from MH i2c: E2 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: E2 0E 00 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: E2 0E 00 28 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 74 [07:54:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:54:40]wFMCommunicate OK [07:54:40]SAM_PROTO_GetShiftState done [07:54:40]FM_GetShiftState done [07:54:40]opened in 1717460629 [07:54:40]opened+sec_in_day 1717547029 [07:54:40]quantity*price = 20003 [07:54:40]sum+1 = 20004 [07:54:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 12 04.06.2024 07:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148673 ФПД: 149721287719352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075442&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148673&fm=149721287719352&tin=02508201610067®Number=0000000000092720&sum=20000 [07:54:41]StoreToDocumentArchive [07:54:41]shift 368 fd 148673 [07:54:41]save to /storage/0368/doc_00148673 [07:54:41]save last doc name /storage/0368/doc_00148673 to /storage/kkm_last_doc_name [07:54:41]save OK [07:54:41]Clear old archive folders... [07:54:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:41]tlvbuf is 015FDB00 [07:54:41]SAM_PROTO_ClearQueue [07:54:41]wFMCommunicate request_size=4 [07:54:41]MH_SAM_APDU [07:54:41]CAPDU: 80 09 00 00 [07:54:41]Write to MH i2c: E2 08 00 35 0C 80 09 00 00 00 00 00 00 B3 [07:54:41]Write i2c OK [07:54:41]MH_I2C_Read... [07:54:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:41]Read from MH i2c: E2 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: E2 03 00 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: E2 03 00 35 0C 00 90 00 B5 [07:54:41]RAPDU: 90 00 [07:54:41]wFMCommunicate OK [07:54:41]SAM_PROTO_ClearQueue done [07:54:41]KKMCreateOFDPacket [07:54:41]OFDProtocolAddRootSTLVToBuf [07:54:41]FM_MakeSignedData [07:54:41]FM_MakeSignedData [07:54:41]SAM_PROTO_SignData [07:54:41]wFMCommunicate request_size=4 [07:54:41]MH_SAM_APDU [07:54:41]CAPDU: 80 0D 01 02 [07:54:41]Write to MH i2c: E2 08 00 36 0C 80 0D 01 02 00 00 00 00 BB [07:54:41]Write i2c OK [07:54:41]MH_I2C_Read... [07:54:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:41]Read from MH i2c: E2 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: E2 03 00 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: E2 03 00 36 0C 00 90 00 B6 [07:54:41]RAPDU: 90 00 [07:54:41]wFMCommunicate OK [07:54:41]wFMCommunicate request_size=255 [07:54:41]MH_SAM_APDU [07:54:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 00 00 00 F4 03 04 00 42 C8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C1 44 02 00 35 04 06 00 88 [07:54:41]Write to MH i2c: E2 02 01 37 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 00 00 00 F4 03 04 00 42 C8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C1 44 02 00 35 04 06 00 88 00 00 E1 [07:54:41]Write i2c OK [07:54:41]MH_I2C_Read... [07:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:41]Read from MH i2c: E2 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: E2 03 00 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: E2 03 00 37 0C 00 90 00 B7 [07:54:41]RAPDU: 90 00 [07:54:41]wFMCommunicate OK [07:54:41]wFMCommunicate request_size=10 [07:54:41]MH_SAM_APDU [07:54:41]CAPDU: 80 0D 02 02 05 2B B4 2B 79 B8 [07:54:41]Write to MH i2c: E2 0D 00 38 0C 80 0D 02 02 05 00 2B B4 2B 79 B8 00 00 03 [07:54:41]Write i2c OK [07:54:41]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 03 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 03 00 38 0C 00 90 00 B8 [07:54:42]RAPDU: 90 00 [07:54:42]wFMCommunicate OK [07:54:42]wFMCommunicate request_size=4 [07:54:42]MH_SAM_APDU [07:54:42]CAPDU: 80 0D 03 02 [07:54:42]Write to MH i2c: E2 08 00 39 0C 80 0D 03 02 00 00 00 00 C0 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 0B 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 0B 00 39 0C 00 72 10 31 FA 9B E3 16 CA 90 00 CC [07:54:42]RAPDU: 72 10 31 FA 9B E3 16 CA 90 00 [07:54:42]wFMCommunicate OK [07:54:42]SAM_PROTO_SignData done [07:54:42]FM_MakeSignedData done [07:54:42]CreateOFDProtocolMessage [07:54:42]wFMCommunicate request_size=4 [07:54:42]MH_SAM_APDU [07:54:42]CAPDU: 80 11 00 00 [07:54:42]Write to MH i2c: E2 08 00 3A 0C 80 11 00 00 00 00 00 00 C0 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 17 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 17 00 3A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 13 [07:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:54:42]wFMCommunicate OK [07:54:42]CreateOFDProtocolMessage done [07:54:42]OFDSenderStorePacket 148673 [07:54:42]StoreOFDPacket docnum=148673 [07:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 48 37 07 01 CB AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 00 00 00 F4 03 04 00 42 C8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C1 44 02 00 35 04 06 00 88 2B B4 2B 79 B8 72 10 31 FA 9B E3 16 CA [07:54:42]CheckFolder [07:54:42]dirname=/storage/ofd_packets [07:54:42]CheckFolder done [07:54:42]ProducePacketName [07:54:42]name=ofd_packets/00148673 [07:54:42]NVStorageSaveData ofd_packets/00148673 [07:54:42]File name is /storage/ofd_packets/00148673 [07:54:42]Write 301 bytes [07:54:42]NVStorageSaveData done [07:54:42]OFDSenderStorePacket done [07:54:42]KKMCreateOFDPacket done [07:54:42]NVStorageSaveData kkm_last_timestamp [07:54:42]File name is /storage/kkm_last_timestamp [07:54:42]Write 4 bytes [07:54:42]NVStorageSaveData done [07:54:42]ExternCall_PrintAddStr [07:54:42]wPrintStart [07:54:42]Write to MH i2c: 01 00 00 3B 0C 47 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 07 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 FF 0F 5C [07:54:42]RasterBufferAndPrint [07:54:42]line Счет N : (1)979596 [07:54:42]line ИНН: 02508201610067 [07:54:42]line Контрольно-Кассовый Чек [07:54:42]line ПРОДАЖА [07:54:42]line ТРК (МРК, ГНК) : 31 [07:54:42]line Товар: 2710124130 [07:54:42]line Аи-92-К-5 [07:54:42]line 2.990 * 66.90 [07:54:42]line = 200.03 [07:54:42]line НДС 12% НСП 1% [07:54:42]line > о реализуемом товаре [07:54:42]line ОКРУГЛЕНИЕ: -0.03 [07:54:42]line ИТОГО: 200.00 [07:54:42]line Внесено: 200.00 [07:54:42]line СДАЧА: 0.00 [07:54:42]line НСП 1% : 1.77 [07:54:42]line НДС 12% : 21.24 [07:54:42]line Наличными: 200.00 [07:54:42]line Безнал.: 0.00 [07:54:42]line Место: АЗС № 68 "Партнер Нефть" [07:54:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [07:54:42]line СНО: Общий режим [07:54:42]line Чек 12 04.06.2024 07:54 [07:54:42]line Смена: 368 ФФД: 1.0 [07:54:42]line ЗНМ: 0300000035 [07:54:42]line РНМ: 0000000000092720 [07:54:42]line Версия ККМ: 001 [07:54:42]line ФМ: 0000000000875057 [07:54:42]line ФД: 148673 [07:54:42]line ФПД: 149721287719352 [07:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075442&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148673&fm=149721287719352&tin=02508201610067®Number=0000000000092720&sum=20000 [07:54:42]written 0, free lines is 4095 [07:54:42]OFD Sender: Processing packet 148673 [packets to send 100, broken 99] [07:54:42]ProducePacketName [07:54:42]name=ofd_packets/00148673 [07:54:42]OFD Sender: To server: pG, [07:54:42]CommunicateWithHost lk.salyk.kg:30040 [07:54:42]ConnectInit lk.salyk.kg [07:54:42]Connected sock=11 [07:54:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 48 37 07 01 CB AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 00 00 00 F4 03 04 00 42 C8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C1 44 02 00 35 04 06 00 88 2B B4 2B 79 B8 72 10 31 FA 9B E3 16 CA [07:54:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 0D A6 47 00 1B 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 38 37 35 30 35 37 10 04 04 00 C1 44 02 00 F4 03 04 00 67 6F 5E 66 B6 04 01 00 00 E9 C2 03 08 6A 15 F9 7E [07:54:42]CommunicateWithHost err = 0 [07:54:42]CheckOFDResponse [07:54:42]1017 (14) - 77093643461234 [07:54:42]1041 (16) - 0000000000875057 [07:54:42]1040 (4) - 148673 [07:54:42]1012 (4) - 04.06.2024 01:35 [07:54:42]1206 (1) - 0 [07:54:42]OFD Sender: Remove packet 148673 [07:54:42]ProducePacketName [07:54:42]name=ofd_packets/00148673 [07:54:42]NVStorageDeleteData [07:54:42]Write to MH i2c: 01 00 00 66 0C 72 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 07 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 07 00 66 0C 00 00 00 00 00 69 0C EE [07:54:42]RasterBufferAndPrint [07:54:42]line [07:54:42]line [07:54:42]line [07:54:42]line [07:54:42]line [07:54:42]written 0, free lines is 3181 [07:54:42]MH_Cut [07:54:42]Write to MH i2c: D1 01 00 6D 0C 01 4B [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: D1 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: D1 01 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: D1 01 00 6D 0C 00 4A [07:54:42]Write to MH i2c: 01 00 00 6E 0C 7A [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:43]OFD Sender: No OFD packet to send [07:54:43]*** Cut start [07:54:43]*** Partial cut [07:54:43]*** CUTSNS_PIN = 1 [07:54:43]*** CUTSNS_PIN = 0 [07:54:44]*** Brake cut motor [07:54:44]Read from MH i2c: 01 [07:54:44]MH_I2C_Read... [07:54:44]*** Stop cut motor [07:54:44]*** Cut end [07:54:44]Read from MH i2c: 01 07 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: 01 07 00 6E 0C 00 00 00 00 00 FF 0F 8F [07:54:44]process_action close_receipt done [07:54:44]requested_data is exist [07:54:44]produce_requested_data [07:54:44]requested_item fm.sn is exist - process it [07:54:44]wFMCommunicate request_size=4 [07:54:44]MH_SAM_APDU [07:54:44]CAPDU: 80 11 00 00 [07:54:44]Write to MH i2c: E2 08 00 6F 0C 80 11 00 00 00 00 00 00 F5 [07:54:44]Write i2c OK [07:54:44]MH_I2C_Read... [07:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:44]Read from MH i2c: E2 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 17 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 17 00 6F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 48 [07:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:54:44]wFMCommunicate OK [07:54:44]requested_item fd.num is exist - process it [07:54:44]SAM_PROTO_GetFieldsCounters [07:54:44]wFMCommunicate request_size=4 [07:54:44]MH_SAM_APDU [07:54:44]CAPDU: 80 13 00 00 [07:54:44]Write to MH i2c: E2 08 00 70 0C 80 13 00 00 00 00 00 00 F8 [07:54:44]Write i2c OK [07:54:44]MH_I2C_Read... [07:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:44]Read from MH i2c: E2 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 62 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 62 00 70 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C1 44 02 00 0E 04 04 00 70 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 B0 [07:54:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C1 44 02 00 0E 04 04 00 70 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 [07:54:44]wFMCommunicate OK [07:54:44]SAM_PROTO_GetFieldsCounters done [07:54:44]requested_item shift.num is exist - process it [07:54:44]requested_item shift.opened is exist - process it [07:54:44]req_shift_opened [07:54:44]FM_GetShiftState [07:54:44]SAM_PROTO_GetShiftState [07:54:44]wFMCommunicate request_size=4 [07:54:44]MH_SAM_APDU [07:54:44]CAPDU: 80 13 01 00 [07:54:44]Write to MH i2c: E2 08 00 71 0C 80 13 01 00 00 00 00 00 FA [07:54:44]Write i2c OK [07:54:44]MH_I2C_Read... [07:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:44]Read from MH i2c: E2 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 0E 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 0E 00 71 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BD [07:54:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:54:44]wFMCommunicate OK [07:54:44]SAM_PROTO_GetShiftState done [07:54:44]FM_GetShiftState done [07:54:44]req_shift_opened done [07:54:44]requested_item shift.open_date is exist - process it [07:54:44]req_shift_open_date [07:54:44]req_shift_open_date done [07:54:44]produce_requested_data done [07:54:44]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148673,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [07:54:44]process_action_free close_receipt [07:54:44]json_value_free [07:54:44]json_value_free done [07:54:44]process_json_proto returns [07:54:44]Send response to host [07:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148673,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [07:54:44]free response buf [07:54:44]execute_script done [07:54:44]execute_script returns [07:54:44]free content buf [07:54:44]Sock 7.Close socket [07:54:44]Sock 7.Thread stoped [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:20]accept exits with 9 [07:58:20]New connection [07:58:20]New thread 3066666340 created [07:58:20]Thread 3066809700 joined [07:58:20]Waiting for new connection... [07:58:20] Sock 9.Parse request [07:58:20]Sock 9.Check first char [07:58:20]Sock 9.First char is OK [07:58:20]request: POST /json_proto HTTP/1.0 [07:58:20]Method: POST [07:58:20]URL: /json_proto [07:58:20]Method is POST - this is cgi request [07:58:20]url: /json_proto [07:58:20]query_string will be loaded in cgi processing [07:58:20]execute_cgi json_proto POST (null) [07:58:20]execute_cgi path=json_proto method=POST [07:58:20]POST find Content-Length [07:58:20]Host: 172.17.38.4:8080 [07:58:20]Content-Length: 1188 [07:58:20]Content-Type: application/json [07:58:20] [07:58:20]POST finish read [07:58:20]Found Content-Length = 1188 [07:58: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979597\u000A04.06.2024 07:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A32008\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:20]execute_script... [07:58: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979597\u000A04.06.2024 07:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A32008\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:20]POST & json_proto [07:58:20]process_json_proto [07:58:20]json parsed OK: [07:58:20]protocol is kg_v1.0 [07:58:20]action value=print_text [07:58:20]process_action print_text [07:58:20]cmd_print_text [07:58:20]ExternCall_PrintAddStr [07:58:20]wPrintStart [07:58:20]Write to MH i2c: 01 00 00 72 0C 7E [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 07 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 07 00 72 0C 00 00 00 00 00 FF 0F 93 [07:58:20]RasterBufferAndPrint [07:58:20]line *****ТОВАРНЫЙ ЧЕК***** [07:58:20]line АЗС 68 [07:58:20]line Партнер нефть [07:58:20]line 02508201610067 [07:58:20]line Кассир : Аскаров Н. [07:58:20]line Счет N : (1)979597 [07:58:20]line 04.06.2024 07:39 [07:58:20]line ПРОДАЖА [07:58:20]line ТРК (МРК, ГНК): 12 [07:58:20]line Вид ГСМ : 2710124130 [07:58:20]line Аи-92-К-5 [07:58:20]line 10.000 x 66.90 [07:58:20]line ИТОГ: 669.00 [07:58:20]line Тип оплаты: Талоны: Топливная Карта [07:58:20]line 32008 [07:58:20]line ______________________ [07:58:20]line (подпись) [07:58:20]written 0, free lines is 4095 [07:58:20]Write to MH i2c: 01 00 00 86 0C 92 [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 07 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 07 00 86 0C 00 00 00 00 00 11 0E B8 [07:58:20]RasterBufferAndPrint [07:58:20]line [07:58:20]line [07:58:20]line [07:58:20]line [07:58:20]line [07:58:20]written 0, free lines is 3603 [07:58:20]MH_Cut [07:58:20]Write to MH i2c: D1 01 00 8D 0C 01 6B [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: D1 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: D1 01 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: D1 01 00 8D 0C 00 6A [07:58:20]Write to MH i2c: 01 00 00 8E 0C 9A [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** Cut start [07:58:20]*** Partial cut [07:58:20]*** CUTSNS_PIN = 1 [07:58:21]*** CUTSNS_PIN = 0 [07:58:21]*** Brake cut motor [07:58:21]Read from MH i2c: 01 [07:58:21]MH_I2C_Read... [07:58:21]*** Stop cut motor [07:58:21]*** Cut end [07:58:21]Read from MH i2c: 01 07 00 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: 01 07 00 8E 0C 00 00 00 00 00 FF 0F AF [07:58:21]process_action print_text done [07:58:21]requested_data is exist [07:58:21]produce_requested_data [07:58:21]requested_item fm.sn is exist - process it [07:58:21]wFMCommunicate request_size=4 [07:58:21]MH_SAM_APDU [07:58:21]CAPDU: 80 11 00 00 [07:58:21]Write to MH i2c: E2 08 00 8F 0C 80 11 00 00 00 00 00 00 15 [07:58:21]Write i2c OK [07:58:21]MH_I2C_Read... [07:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:21]Read from MH i2c: E2 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: E2 17 00 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: E2 17 00 8F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 68 [07:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [07:58:21]wFMCommunicate OK [07:58:21]requested_item fd.num is exist - process it [07:58:21]SAM_PROTO_GetFieldsCounters [07:58:21]wFMCommunicate request_size=4 [07:58:21]MH_SAM_APDU [07:58:21]CAPDU: 80 13 00 00 [07:58:21]Write to MH i2c: E2 08 00 90 0C 80 13 00 00 00 00 00 00 18 [07:58:21]Write i2c OK [07:58:21]MH_I2C_Read... [07:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:21]Read from MH i2c: E2 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: E2 62 00 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: E2 62 00 90 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C1 44 02 00 0E 04 04 00 70 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 D0 [07:58:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C1 44 02 00 0E 04 04 00 70 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 [07:58:21]wFMCommunicate OK [07:58:21]SAM_PROTO_GetFieldsCounters done [07:58:21]requested_item shift.num is exist - process it [07:58:21]requested_item shift.opened is exist - process it [07:58:21]req_shift_opened [07:58:21]FM_GetShiftState [07:58:21]SAM_PROTO_GetShiftState [07:58:21]wFMCommunicate request_size=4 [07:58:21]MH_SAM_APDU [07:58:21]CAPDU: 80 13 01 00 [07:58:21]Write to MH i2c: E2 08 00 91 0C 80 13 01 00 00 00 00 00 1A [07:58:21]Write i2c OK [07:58:21]MH_I2C_Read... [07:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:21]Read from MH i2c: E2 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: E2 0E 00 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: E2 0E 00 91 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DD [07:58:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [07:58:21]wFMCommunicate OK [07:58:21]SAM_PROTO_GetShiftState done [07:58:21]FM_GetShiftState done [07:58:21]req_shift_opened done [07:58:21]requested_item shift.open_date is exist - process it [07:58:21]req_shift_open_date [07:58:21]req_shift_open_date done [07:58:21]produce_requested_data done [07:58:21]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148673,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [07:58:21]process_action_free print_text [07:58:21]json_value_free [07:58:21]json_value_free done [07:58:21]process_json_proto returns [07:58:21]Send response to host [07:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148673,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [07:58:21]free response buf [07:58:21]execute_script done [07:58:21]execute_script returns [07:58:21]free content buf [07:58:21]Sock 9.Close socket [07:58:21]Sock 9.Thread stoped [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:39]int [07:58:39]Write to MH i2c: 01 00 00 92 0C 9E [07:58:39]*** FLAG_PRN_KEY set [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 07 00 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 07 00 92 0C 00 08 00 00 00 FF 0F BB [07:58:39]state=0 [07:58:39]Key pressed [07:58:39]Feed [07:58:39]Write to MH i2c: D8 00 00 93 0C 76 [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: D8 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: D8 01 00 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: D8 01 00 93 0C 00 77 [07:58:39]int [07:58:39]Write to MH i2c: 01 00 00 94 0C A0 [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 07 00 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 07 00 94 0C 00 48 00 00 00 3C 00 2B [07:58:39]state=2 [07:58:39]Key pressed [07:58:39]int [07:58:39]Write to MH i2c: 01 00 00 95 0C A1 [07:58:39]*** FLAG_PRN_KEY reset [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 07 00 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 07 00 95 0C 00 00 00 00 00 F5 0F AC [07:58:39]state=2 [07:58:39]Stop feed [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:27]accept exits with 7 [08:00:27]New connection [08:00:27]New thread 3066809700 created [08:00:27]Thread 3066666340 joined [08:00:27]Waiting for new connection... [08:00:27] Sock 7.Parse request [08:00:27]Sock 7.Check first char [08:00:27]Sock 7.First char is OK [08:00:27]request: POST /json_proto HTTP/1.0 [08:00:27]Method: POST [08:00:27]URL: /json_proto [08:00:27]Method is POST - this is cgi request [08:00:27]url: /json_proto [08:00:27]query_string will be loaded in cgi processing [08:00:27]execute_cgi json_proto POST (null) [08:00:27]execute_cgi path=json_proto method=POST [08:00:27]POST find Content-Length [08:00:27]Host: 172.17.38.4:8080 [08:00:27]Content-Length: 670 [08:00:27]Content-Type: application/json [08:00:27] [08:00:27]POST finish read [08:00:27]Found Content-Length = 670 [08:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 4.420, "sum" : 300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:27]execute_script... [08:00: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)979598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 4.420, "sum" : 300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:27]POST & json_proto [08:00:27]process_json_proto [08:00:27]json parsed OK: [08:00:27]protocol is kg_v1.0 [08:00:27]action value=close_receipt [08:00:27]process_action close_receipt [08:00:27]cmd_close_receipt [08:00:27]MH_GetDate [08:00:27]Write to MH i2c: F0 00 00 96 0C 91 [08:00:27]Write i2c OK [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: F0 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: F0 09 00 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: F0 09 00 96 0C 00 9D C9 5E 66 CC 51 87 64 CC [08:00:27]GetLastDocTimeStamp 1717487682 [08:00:27]current date 1717488029 [08:00:27]FM_GetShiftState [08:00:27]SAM_PROTO_GetShiftState [08:00:27]wFMCommunicate request_size=4 [08:00:27]MH_SAM_APDU [08:00:27]CAPDU: 80 13 01 00 [08:00:27]Write to MH i2c: E2 08 00 97 0C 80 13 01 00 00 00 00 00 20 [08:00:27]Write i2c OK [08:00:27]MH_I2C_Read... [08:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:27]Read from MH i2c: E2 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: E2 0E 00 [08:00:27]MH_I2C_Read... [08:00:27]Read from MH i2c: E2 0E 00 97 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E3 [08:00:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:00:27]wFMCommunicate OK [08:00:27]SAM_PROTO_GetShiftState done [08:00:27]FM_GetShiftState done [08:00:27]opened in 1717460629 [08:00:27]opened+sec_in_day 1717547029 [08:00:27]quantity*price = 30011 [08:00:27]sum+1 = 30013 [08:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 13 04.06.2024 08:00 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148674 ФПД: 5435946641660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080029&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148674&fm=5435946641660&tin=02508201610067®Number=0000000000092720&sum=30000 [08:00:28]StoreToDocumentArchive [08:00:28]shift 368 fd 148674 [08:00:28]save to /storage/0368/doc_00148674 [08:00:28]save last doc name /storage/0368/doc_00148674 to /storage/kkm_last_doc_name [08:00:28]save OK [08:00:28]Clear old archive folders... [08:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:00:28]tlvbuf is 015EA2C0 [08:00:28]SAM_PROTO_ClearQueue [08:00:28]wFMCommunicate request_size=4 [08:00:28]MH_SAM_APDU [08:00:28]CAPDU: 80 09 00 00 [08:00:28]Write to MH i2c: E2 08 00 A4 0C 80 09 00 00 00 00 00 00 22 [08:00:28]Write i2c OK [08:00:28]MH_I2C_Read... [08:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:28]Read from MH i2c: E2 [08:00:28]MH_I2C_Read... [08:00:28]Read from MH i2c: E2 03 00 [08:00:28]MH_I2C_Read... [08:00:28]Read from MH i2c: E2 03 00 A4 0C 00 90 00 24 [08:00:28]RAPDU: 90 00 [08:00:28]wFMCommunicate OK [08:00:28]SAM_PROTO_ClearQueue done [08:00:28]KKMCreateOFDPacket [08:00:28]OFDProtocolAddRootSTLVToBuf [08:00:28]FM_MakeSignedData [08:00:28]FM_MakeSignedData [08:00:28]SAM_PROTO_SignData [08:00:28]wFMCommunicate request_size=4 [08:00:28]MH_SAM_APDU [08:00:28]CAPDU: 80 0D 01 02 [08:00:28]Write to MH i2c: E2 08 00 A5 0C 80 0D 01 02 00 00 00 00 2A [08:00:28]Write i2c OK [08:00:28]MH_I2C_Read... [08:00:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:28]Read from MH i2c: E2 [08:00:28]MH_I2C_Read... [08:00:28]Read from MH i2c: E2 03 00 [08:00:28]MH_I2C_Read... [08:00:28]Read from MH i2c: E2 03 00 A5 0C 00 90 00 25 [08:00:28]RAPDU: 90 00 [08:00:28]wFMCommunicate OK [08:00:28]wFMCommunicate request_size=255 [08:00:28]MH_SAM_APDU [08:00: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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D C9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C2 44 02 00 35 04 06 00 [08:00:28]Write to MH i2c: E2 02 01 A6 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D C9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C2 44 02 00 35 04 06 00 00 00 F6 [08:00:28]Write i2c OK [08:00:28]MH_I2C_Read... [08:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:28]Read from MH i2c: E2 [08:00:28]MH_I2C_Read... [08:00:28]Read from MH i2c: E2 03 00 [08:00:28]MH_I2C_Read... [08:00:28]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [08:00:28]RAPDU: 90 00 [08:00:28]wFMCommunicate OK [08:00:28]wFMCommunicate request_size=11 [08:00:28]MH_SAM_APDU [08:00:28]CAPDU: 80 0D 02 02 06 04 F1 A7 AB 28 FC [08:00:28]Write to MH i2c: E2 0E 00 A7 0C 80 0D 02 02 06 00 04 F1 A7 AB 28 FC 00 00 A4 [08:00:28]Write i2c OK [08:00:28]MH_I2C_Read... [08:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:28]Read from MH i2c: E2 [08:00:28]MH_I2C_Read... [08:00:28]Read from MH i2c: E2 03 00 [08:00:28]MH_I2C_Read... [08:00:28]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [08:00:28]RAPDU: 90 00 [08:00:28]wFMCommunicate OK [08:00:28]wFMCommunicate request_size=4 [08:00:28]MH_SAM_APDU [08:00:28]CAPDU: 80 0D 03 02 [08:00:28]Write to MH i2c: E2 08 00 A8 0C 80 0D 03 02 00 00 00 00 2F [08:00:28]Write i2c OK [08:00:28]MH_I2C_Read... [08:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:28]Read from MH i2c: E2 [08:00:28]MH_I2C_Read... [08:00:28]Read from MH i2c: E2 0B 00 [08:00:28]MH_I2C_Read... [08:00:28]Read from MH i2c: E2 0B 00 A8 0C 00 D5 F1 BB 8F B9 52 38 DD 90 00 60 [08:00:28]RAPDU: D5 F1 BB 8F B9 52 38 DD 90 00 [08:00:28]wFMCommunicate OK [08:00:28]SAM_PROTO_SignData done [08:00:28]FM_MakeSignedData done [08:00:28]CreateOFDProtocolMessage [08:00:28]wFMCommunicate request_size=4 [08:00:28]MH_SAM_APDU [08:00:28]CAPDU: 80 11 00 00 [08:00:28]Write to MH i2c: E2 08 00 A9 0C 80 11 00 00 00 00 00 00 2F [08:00:28]Write i2c OK [08:00:28]MH_I2C_Read... [08:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:29]Read from MH i2c: E2 [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: E2 17 00 [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: E2 17 00 A9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 82 [08:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:00:29]wFMCommunicate OK [08:00:29]CreateOFDProtocolMessage done [08:00:29]OFDSenderStorePacket 148674 [08:00:29]StoreOFDPacket docnum=148674 [08:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 99 60 08 01 3F CE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D C9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C2 44 02 00 35 04 06 00 04 F1 A7 AB 28 FC D5 F1 BB 8F B9 52 38 DD [08:00:29]CheckFolder [08:00:29]dirname=/storage/ofd_packets [08:00:29]CheckFolder done [08:00:29]ProducePacketName [08:00:29]name=ofd_packets/00148674 [08:00:29]NVStorageSaveData ofd_packets/00148674 [08:00:29]File name is /storage/ofd_packets/00148674 [08:00:29]Write 302 bytes [08:00:29]NVStorageSaveData done [08:00:29]OFDSenderStorePacket done [08:00:29]KKMCreateOFDPacket done [08:00:29]NVStorageSaveData kkm_last_timestamp [08:00:29]File name is /storage/kkm_last_timestamp [08:00:29]Write 4 bytes [08:00:29]NVStorageSaveData done [08:00:29]ExternCall_PrintAddStr [08:00:29]wPrintStart [08:00:29]Write to MH i2c: 01 00 00 AA 0C B6 [08:00:29]Write i2c OK [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: 01 [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: 01 07 00 [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 FF 0F CB [08:00:29]RasterBufferAndPrint [08:00:29]line Счет N : (1)979598 [08:00:29]line ИНН: 02508201610067 [08:00:29]line Контрольно-Кассовый Чек [08:00:29]line ПРОДАЖА [08:00:29]line ТРК (МРК, ГНК) : 43 [08:00:29]line Товар: 2710124130 [08:00:29]line SUPER 92-К-5 [08:00:29]line 4.420 * 67.90 [08:00:29]line = 300.12 [08:00:29]line НДС 12% НСП 1% [08:00:29]line > о реализуемом товаре [08:00:29]line ОКРУГЛЕНИЕ: -0.12 [08:00:29]line ИТОГО: 300.00 [08:00:29]line Внесено: 300.00 [08:00:29]line СДАЧА: 0.00 [08:00:29]line НСП 1% : 2.66 [08:00:29]line НДС 12% : 31.87 [08:00:29]line Наличными: 300.00 [08:00:29]line Безнал.: 0.00 [08:00:29]line Место: АЗС № 68 "Партнер Нефть" [08:00:29]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:00:29]line СНО: Общий режим [08:00:29]line Чек 13 04.06.2024 08:00 [08:00:29]line Смена: 368 ФФД: 1.0 [08:00:29]line ЗНМ: 0300000035 [08:00:29]line РНМ: 0000000000092720 [08:00:29]line Версия ККМ: 001 [08:00:29]line ФМ: 0000000000875057 [08:00:29]line ФД: 148674 [08:00:29]line ФПД: 5435946641660 [08:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080029&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148674&fm=5435946641660&tin=02508201610067®Number=0000000000092720&sum=30000 [08:00:29]OFD Sender: Processing packet 148674 [packets to send 100, broken 99] [08:00:29]ProducePacketName [08:00:29]name=ofd_packets/00148674 [08:00:29]OFD Sender: To server: pG, [08:00:29]CommunicateWithHost lk.salyk.kg:30040 [08:00:29]ConnectInit lk.salyk.kg [08:00:29]written 0, free lines is 4095 [08:00:29]Connected sock=10 [08:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 99 60 08 01 3F CE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D C9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C2 44 02 00 35 04 06 00 04 F1 A7 AB 28 FC D5 F1 BB 8F B9 52 38 DD [08:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 29 60 47 00 23 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C2 44 02 00 F4 03 04 00 C2 70 5E 66 B6 04 01 00 00 14 13 9C 69 D8 83 5B 94 [08:00:29]CommunicateWithHost err = 0 [08:00:29]CheckOFDResponse [08:00:29]1017 (14) - 77093643461234 [08:00:29]1041 (16) - 0000000000875057 [08:00:29]1040 (4) - 148674 [08:00:29]1012 (4) - 04.06.2024 01:41 [08:00:29]1206 (1) - 0 [08:00:29]OFD Sender: Remove packet 148674 [08:00:29]ProducePacketName [08:00:29]name=ofd_packets/00148674 [08:00:29]NVStorageDeleteData [08:00:29]Write to MH i2c: 01 00 00 D5 0C E1 [08:00:29]Write i2c OK [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: 01 [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: 01 07 00 [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: 01 07 00 D5 0C 00 00 00 00 00 6C 0C 60 [08:00:29]RasterBufferAndPrint [08:00:29]line [08:00:29]line [08:00:29]line [08:00:29]line [08:00:29]line [08:00:29]written 0, free lines is 3183 [08:00:29]MH_Cut [08:00:29]Write to MH i2c: D1 01 00 DC 0C 01 BA [08:00:29]Write i2c OK [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: D1 [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: D1 01 00 [08:00:29]MH_I2C_Read... [08:00:29]Read from MH i2c: D1 01 00 DC 0C 00 B9 [08:00:29]Write to MH i2c: 01 00 00 DD 0C E9 [08:00:29]Write i2c OK [08:00:29]MH_I2C_Read... [08:00:30]OFD Sender: No OFD packet to send [08:00:31]*** Cut start [08:00:31]*** Partial cut [08:00:31]*** CUTSNS_PIN = 1 [08:00:31]*** CUTSNS_PIN = 0 [08:00:31]*** Brake cut motor [08:00:31]Read from MH i2c: 01 [08:00:31]MH_I2C_Read... [08:00:31]*** Stop cut motor [08:00:31]*** Cut end [08:00:31]Read from MH i2c: 01 07 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: 01 07 00 DD 0C 00 00 00 00 00 FF 0F FE [08:00:31]process_action close_receipt done [08:00:31]requested_data is exist [08:00:31]produce_requested_data [08:00:31]requested_item fm.sn is exist - process it [08:00:31]wFMCommunicate request_size=4 [08:00:31]MH_SAM_APDU [08:00:31]CAPDU: 80 11 00 00 [08:00:31]Write to MH i2c: E2 08 00 DE 0C 80 11 00 00 00 00 00 00 64 [08:00:31]Write i2c OK [08:00:31]MH_I2C_Read... [08:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:31]Read from MH i2c: E2 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 17 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 17 00 DE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B7 [08:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:00:31]wFMCommunicate OK [08:00:31]requested_item fd.num is exist - process it [08:00:31]SAM_PROTO_GetFieldsCounters [08:00:31]wFMCommunicate request_size=4 [08:00:31]MH_SAM_APDU [08:00:31]CAPDU: 80 13 00 00 [08:00:31]Write to MH i2c: E2 08 00 DF 0C 80 13 00 00 00 00 00 00 67 [08:00:31]Write i2c OK [08:00:31]MH_I2C_Read... [08:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:31]Read from MH i2c: E2 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 62 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 62 00 DF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C2 44 02 00 0E 04 04 00 70 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 23 [08:00:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C2 44 02 00 0E 04 04 00 70 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:00:31]wFMCommunicate OK [08:00:31]SAM_PROTO_GetFieldsCounters done [08:00:31]requested_item shift.num is exist - process it [08:00:31]requested_item shift.opened is exist - process it [08:00:31]req_shift_opened [08:00:31]FM_GetShiftState [08:00:31]SAM_PROTO_GetShiftState [08:00:31]wFMCommunicate request_size=4 [08:00:31]MH_SAM_APDU [08:00:31]CAPDU: 80 13 01 00 [08:00:31]Write to MH i2c: E2 08 00 E0 0C 80 13 01 00 00 00 00 00 69 [08:00:31]Write i2c OK [08:00:31]MH_I2C_Read... [08:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:31]Read from MH i2c: E2 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 0E 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 0E 00 E0 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2C [08:00:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:00:31]wFMCommunicate OK [08:00:31]SAM_PROTO_GetShiftState done [08:00:31]FM_GetShiftState done [08:00:31]req_shift_opened done [08:00:31]requested_item shift.open_date is exist - process it [08:00:31]req_shift_open_date [08:00:31]req_shift_open_date done [08:00:31]produce_requested_data done [08:00:31]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148674,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:00:31]process_action_free close_receipt [08:00:31]json_value_free [08:00:31]json_value_free done [08:00:31]process_json_proto returns [08:00:31]Send response to host [08:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148674,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:00:31]free response buf [08:00:31]execute_script done [08:00:31]execute_script returns [08:00:31]free content buf [08:00:31]Sock 7.Close socket [08:00:31]Sock 7.Thread stoped [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:36]accept exits with 9 [08:04:36]New connection [08:04:36]New thread 3066666340 created [08:04:36]Thread 3066809700 joined [08:04:36]Waiting for new connection... [08:04:36] Sock 9.Parse request [08:04:36]Sock 9.Check first char [08:04:36]Sock 9.First char is OK [08:04:36]request: POST /json_proto HTTP/1.0 [08:04:36]Method: POST [08:04:36]URL: /json_proto [08:04:36]Method is POST - this is cgi request [08:04:36]url: /json_proto [08:04:36]query_string will be loaded in cgi processing [08:04:36]execute_cgi json_proto POST (null) [08:04:36]execute_cgi path=json_proto method=POST [08:04:36]POST find Content-Length [08:04:36]Host: 172.17.38.4:8080 [08:04:36]Content-Length: 682 [08:04:36]Content-Type: application/json [08:04:36] [08:04:36]POST finish read [08:04:36]Found Content-Length = 682 [08:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:36]execute_script... [08:04: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)979599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:36]POST & json_proto [08:04:36]process_json_proto [08:04:36]json parsed OK: [08:04:36]protocol is kg_v1.0 [08:04:36]action value=close_receipt [08:04:36]process_action close_receipt [08:04:36]cmd_close_receipt [08:04:36]MH_GetDate [08:04:36]Write to MH i2c: F0 00 00 E1 0C DC [08:04:36]Write i2c OK [08:04:36]MH_I2C_Read... [08:04:36]Read from MH i2c: F0 [08:04:36]MH_I2C_Read... [08:04:36]Read from MH i2c: F0 09 00 [08:04:36]MH_I2C_Read... [08:04:36]Read from MH i2c: F0 09 00 E1 0C 00 96 CA 5E 66 CC 51 87 64 11 [08:04:36]GetLastDocTimeStamp 1717488029 [08:04:36]current date 1717488278 [08:04:36]FM_GetShiftState [08:04:36]SAM_PROTO_GetShiftState [08:04:36]wFMCommunicate request_size=4 [08:04:36]MH_SAM_APDU [08:04:36]CAPDU: 80 13 01 00 [08:04:36]Write to MH i2c: E2 08 00 E2 0C 80 13 01 00 00 00 00 00 6B [08:04:36]Write i2c OK [08:04:36]MH_I2C_Read... [08:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:36]Read from MH i2c: E2 [08:04:36]MH_I2C_Read... [08:04:36]Read from MH i2c: E2 0E 00 [08:04:36]MH_I2C_Read... [08:04:36]Read from MH i2c: E2 0E 00 E2 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2E [08:04:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:04:36]wFMCommunicate OK [08:04:36]SAM_PROTO_GetShiftState done [08:04:36]FM_GetShiftState done [08:04:36]opened in 1717460629 [08:04:36]opened+sec_in_day 1717547029 [08:04:36]quantity*price = 100015 [08:04:36]sum+1 = 100017 [08:04:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 14 04.06.2024 08:04 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148675 ФПД: 175134666559093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080438&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148675&fm=175134666559093&tin=02508201610067®Number=0000000000092720&sum=100000 [08:04:37]StoreToDocumentArchive [08:04:37]shift 368 fd 148675 [08:04:37]save to /storage/0368/doc_00148675 [08:04:37]save last doc name /storage/0368/doc_00148675 to /storage/kkm_last_doc_name [08:04:37]save OK [08:04:37]Clear old archive folders... [08:04:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:37]tlvbuf is 015E2E60 [08:04:37]SAM_PROTO_ClearQueue [08:04:37]wFMCommunicate request_size=4 [08:04:37]MH_SAM_APDU [08:04:37]CAPDU: 80 09 00 00 [08:04:37]Write to MH i2c: E2 08 00 EF 0C 80 09 00 00 00 00 00 00 6D [08:04:37]Write i2c OK [08:04:37]MH_I2C_Read... [08:04:37]Read from MH i2c: E2 [08:04:37]MH_I2C_Read... [08:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:37]Read from MH i2c: E2 03 00 [08:04:37]MH_I2C_Read... [08:04:37]Read from MH i2c: E2 03 00 EF 0C 00 90 00 6F [08:04:37]RAPDU: 90 00 [08:04:37]wFMCommunicate OK [08:04:37]SAM_PROTO_ClearQueue done [08:04:37]KKMCreateOFDPacket [08:04:37]OFDProtocolAddRootSTLVToBuf [08:04:37]FM_MakeSignedData [08:04:37]FM_MakeSignedData [08:04:37]SAM_PROTO_SignData [08:04:37]wFMCommunicate request_size=4 [08:04:37]MH_SAM_APDU [08:04:37]CAPDU: 80 0D 01 02 [08:04:37]Write to MH i2c: E2 08 00 F0 0C 80 0D 01 02 00 00 00 00 75 [08:04:37]Write i2c OK [08:04:37]MH_I2C_Read... [08:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:37]Read from MH i2c: E2 [08:04:37]MH_I2C_Read... [08:04:37]Read from MH i2c: E2 03 00 [08:04:37]MH_I2C_Read... [08:04:37]Read from MH i2c: E2 03 00 F0 0C 00 90 00 70 [08:04:37]RAPDU: 90 00 [08:04:37]wFMCommunicate OK [08:04:37]wFMCommunicate request_size=255 [08:04:37]MH_SAM_APDU [08:04: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 96 CA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C3 44 02 00 35 04 06 00 9F [08:04:37]Write to MH i2c: E2 02 01 F1 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 96 CA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C3 44 02 00 35 04 06 00 9F 00 00 44 [08:04:37]Write i2c OK [08:04:37]MH_I2C_Read... [08:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:38]Read from MH i2c: E2 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 03 00 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [08:04:38]RAPDU: 90 00 [08:04:38]wFMCommunicate OK [08:04:38]wFMCommunicate request_size=10 [08:04:38]MH_SAM_APDU [08:04:38]CAPDU: 80 0D 02 02 05 48 B7 96 8E 75 [08:04:38]Write to MH i2c: E2 0D 00 F2 0C 80 0D 02 02 05 00 48 B7 96 8E 75 00 00 1A [08:04:38]Write i2c OK [08:04:38]MH_I2C_Read... [08:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:38]Read from MH i2c: E2 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 03 00 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [08:04:38]RAPDU: 90 00 [08:04:38]wFMCommunicate OK [08:04:38]wFMCommunicate request_size=4 [08:04:38]MH_SAM_APDU [08:04:38]CAPDU: 80 0D 03 02 [08:04:38]Write to MH i2c: E2 08 00 F3 0C 80 0D 03 02 00 00 00 00 7A [08:04:38]Write i2c OK [08:04:38]MH_I2C_Read... [08:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:38]Read from MH i2c: E2 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 0B 00 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 0B 00 F3 0C 00 34 BE BB 13 9D 01 E0 1E 90 00 D7 [08:04:38]RAPDU: 34 BE BB 13 9D 01 E0 1E 90 00 [08:04:38]wFMCommunicate OK [08:04:38]SAM_PROTO_SignData done [08:04:38]FM_MakeSignedData done [08:04:38]CreateOFDProtocolMessage [08:04:38]wFMCommunicate request_size=4 [08:04:38]MH_SAM_APDU [08:04:38]CAPDU: 80 11 00 00 [08:04:38]Write to MH i2c: E2 08 00 F4 0C 80 11 00 00 00 00 00 00 7A [08:04:38]Write i2c OK [08:04:38]MH_I2C_Read... [08:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:38]Read from MH i2c: E2 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 17 00 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 17 00 F4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CD [08:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:04:38]wFMCommunicate OK [08:04:38]CreateOFDProtocolMessage done [08:04:38]OFDSenderStorePacket 148675 [08:04:38]StoreOFDPacket docnum=148675 [08:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 80 EE 07 01 44 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 96 CA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C3 44 02 00 35 04 06 00 9F 48 B7 96 8E 75 34 BE BB 13 9D 01 E0 1E [08:04:38]CheckFolder [08:04:38]dirname=/storage/ofd_packets [08:04:38]CheckFolder done [08:04:38]ProducePacketName [08:04:38]name=ofd_packets/00148675 [08:04:38]NVStorageSaveData ofd_packets/00148675 [08:04:38]File name is /storage/ofd_packets/00148675 [08:04:38]Write 301 bytes [08:04:38]NVStorageSaveData done [08:04:38]OFDSenderStorePacket done [08:04:38]KKMCreateOFDPacket done [08:04:38]NVStorageSaveData kkm_last_timestamp [08:04:38]File name is /storage/kkm_last_timestamp [08:04:38]Write 4 bytes [08:04:38]NVStorageSaveData done [08:04:38]ExternCall_PrintAddStr [08:04:38]wPrintStart [08:04:38]Write to MH i2c: 01 00 00 F5 0C 01 [08:04:38]Write i2c OK [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: 01 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: 01 07 00 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 FF 0F 16 [08:04:38]RasterBufferAndPrint [08:04:38]line Счет N : (1)979599 [08:04:38]line ИНН: 02508201610067 [08:04:38]line Контрольно-Кассовый Чек [08:04:38]line ПРОДАЖА [08:04:38]line ТРК (МРК, ГНК) : 41 [08:04:38]line Товар: 2710124130 [08:04:38]line Аи-92-К-5 [08:04:38]line 14.950 * 66.90 [08:04:38]line = 1000.16 [08:04:38]line НДС 12% НСП 1% [08:04:38]line > о реализуемом товаре [08:04:38]line ОКРУГЛЕНИЕ: -0.16 [08:04:38]line ИТОГО: 1000.00 [08:04:38]line Внесено: 1000.00 [08:04:38]line СДАЧА: 0.00 [08:04:38]line НСП 1% : 8.85 [08:04:38]line НДС 12% : 106.21 [08:04:38]line Наличными: 1000.00 [08:04:38]line Безнал.: 0.00 [08:04:38]line Место: АЗС № 68 "Партнер Нефть" [08:04:38]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:04:38]line СНО: Общий режим [08:04:38]line Чек 14 04.06.2024 08:04 [08:04:38]line Смена: 368 ФФД: 1.0 [08:04:38]line ЗНМ: 0300000035 [08:04:38]line РНМ: 0000000000092720 [08:04:38]line Версия ККМ: 001 [08:04:38]line ФМ: 0000000000875057 [08:04:38]line ФД: 148675 [08:04:38]line ФПД: 175134666559093 [08:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080438&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148675&fm=175134666559093&tin=02508201610067®Number=0000000000092720&sum=100000 [08:04:38]OFD Sender: Processing packet 148675 [packets to send 100, broken 99] [08:04:38]ProducePacketName [08:04:38]name=ofd_packets/00148675 [08:04:38]OFD Sender: To server: pG, [08:04:38]CommunicateWithHost lk.salyk.kg:30040 [08:04:38]ConnectInit lk.salyk.kg [08:04:38]written 0, free lines is 4095 [08:04:38]Connected sock=10 [08:04:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 80 EE 07 01 44 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 96 CA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C3 44 02 00 35 04 06 00 9F 48 B7 96 8E 75 34 BE BB 13 9D 01 E0 1E [08:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C5 F7 47 00 BA 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 38 37 35 30 35 37 10 04 04 00 C3 44 02 00 F4 03 04 00 BB 71 5E 66 B6 04 01 00 00 18 19 42 1E F8 E0 48 2A [08:04:38]CommunicateWithHost err = 0 [08:04:38]CheckOFDResponse [08:04:38]1017 (14) - 77093643461234 [08:04:38]1041 (16) - 0000000000875057 [08:04:38]1040 (4) - 148675 [08:04:38]1012 (4) - 04.06.2024 01:45 [08:04:38]1206 (1) - 0 [08:04:38]OFD Sender: Remove packet 148675 [08:04:38]ProducePacketName [08:04:38]name=ofd_packets/00148675 [08:04:38]NVStorageDeleteData [08:04:39]Write to MH i2c: 01 00 00 20 0D 2D [08:04:39]Write i2c OK [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: 01 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: 01 07 00 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: 01 07 00 20 0D 00 00 00 00 00 69 0C A9 [08:04:39]RasterBufferAndPrint [08:04:39]line [08:04:39]line [08:04:39]line [08:04:39]line [08:04:39]line [08:04:39]written 0, free lines is 3181 [08:04:39]MH_Cut [08:04:39]Write to MH i2c: D1 01 00 27 0D 01 06 [08:04:39]Write i2c OK [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: D1 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: D1 01 00 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: D1 01 00 27 0D 00 05 [08:04:39]Write to MH i2c: 01 00 00 28 0D 35 [08:04:39]Write i2c OK [08:04:39]MH_I2C_Read... [08:04:39]OFD Sender: No OFD packet to send [08:04:40]*** Cut start [08:04:40]*** Partial cut [08:04:40]*** CUTSNS_PIN = 1 [08:04:40]*** CUTSNS_PIN = 0 [08:04:40]*** Brake cut motor [08:04:40]Read from MH i2c: 01 [08:04:40]MH_I2C_Read... [08:04:40]*** Stop cut motor [08:04:40]*** Cut end [08:04:40]Read from MH i2c: 01 07 00 [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: 01 07 00 28 0D 00 00 00 00 00 FF 0F 4A [08:04:40]process_action close_receipt done [08:04:40]requested_data is exist [08:04:40]produce_requested_data [08:04:40]requested_item fm.sn is exist - process it [08:04:40]wFMCommunicate request_size=4 [08:04:40]MH_SAM_APDU [08:04:40]CAPDU: 80 11 00 00 [08:04:40]Write to MH i2c: E2 08 00 29 0D 80 11 00 00 00 00 00 00 B0 [08:04:40]Write i2c OK [08:04:40]MH_I2C_Read... [08:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:41]Read from MH i2c: E2 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 17 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 17 00 29 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 03 [08:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:04:41]wFMCommunicate OK [08:04:41]requested_item fd.num is exist - process it [08:04:41]SAM_PROTO_GetFieldsCounters [08:04:41]wFMCommunicate request_size=4 [08:04:41]MH_SAM_APDU [08:04:41]CAPDU: 80 13 00 00 [08:04:41]Write to MH i2c: E2 08 00 2A 0D 80 13 00 00 00 00 00 00 B3 [08:04:41]Write i2c OK [08:04:41]MH_I2C_Read... [08:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:41]Read from MH i2c: E2 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 62 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 62 00 2A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C3 44 02 00 0E 04 04 00 70 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 73 [08:04:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C3 44 02 00 0E 04 04 00 70 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:04:41]wFMCommunicate OK [08:04:41]SAM_PROTO_GetFieldsCounters done [08:04:41]requested_item shift.num is exist - process it [08:04:41]requested_item shift.opened is exist - process it [08:04:41]req_shift_opened [08:04:41]FM_GetShiftState [08:04:41]SAM_PROTO_GetShiftState [08:04:41]wFMCommunicate request_size=4 [08:04:41]MH_SAM_APDU [08:04:41]CAPDU: 80 13 01 00 [08:04:41]Write to MH i2c: E2 08 00 2B 0D 80 13 01 00 00 00 00 00 B5 [08:04:41]Write i2c OK [08:04:41]MH_I2C_Read... [08:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:41]Read from MH i2c: E2 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 0E 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 0E 00 2B 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 78 [08:04:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:04:41]wFMCommunicate OK [08:04:41]SAM_PROTO_GetShiftState done [08:04:41]FM_GetShiftState done [08:04:41]req_shift_opened done [08:04:41]requested_item shift.open_date is exist - process it [08:04:41]req_shift_open_date [08:04:41]req_shift_open_date done [08:04:41]produce_requested_data done [08:04:41]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148675,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:04:41]process_action_free close_receipt [08:04:41]json_value_free [08:04:41]json_value_free done [08:04:41]process_json_proto returns [08:04:41]Send response to host [08:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148675,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:04:41]free response buf [08:04:41]execute_script done [08:04:41]execute_script returns [08:04:41]free content buf [08:04:41]Sock 9.Close socket [08:04:41]Sock 9.Thread stoped [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]accept exits with 7 [08:04:59]New connection [08:04:59]New thread 3066809700 created [08:04:59]Thread 3066666340 joined [08:04:59]Waiting for new connection... [08:04:59] Sock 7.Parse request [08:04:59]Sock 7.Check first char [08:04:59]Sock 7.First char is OK [08:04:59]request: POST /json_proto HTTP/1.0 [08:04:59]Method: POST [08:04:59]URL: /json_proto [08:04:59]Method is POST - this is cgi request [08:04:59]url: /json_proto [08:04:59]query_string will be loaded in cgi processing [08:04:59]execute_cgi json_proto POST (null) [08:04:59]execute_cgi path=json_proto method=POST [08:04:59]POST find Content-Length [08:04:59]Host: 172.17.38.4:8080 [08:04:59]Content-Length: 677 [08:04:59]Content-Type: application/json [08:04:59] [08:04:59]POST finish read [08:04:59]Found Content-Length = 677 [08:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:59]execute_script... [08:04: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)979600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:59]POST & json_proto [08:04:59]process_json_proto [08:04:59]json parsed OK: [08:04:59]protocol is kg_v1.0 [08:04:59]action value=close_receipt [08:04:59]process_action close_receipt [08:04:59]cmd_close_receipt [08:04:59]MH_GetDate [08:04:59]Write to MH i2c: F0 00 00 2C 0D 28 [08:04:59]Write i2c OK [08:04:59]MH_I2C_Read... [08:04:59]Read from MH i2c: F0 [08:04:59]MH_I2C_Read... [08:04:59]Read from MH i2c: F0 09 00 [08:04:59]MH_I2C_Read... [08:04:59]Read from MH i2c: F0 09 00 2C 0D 00 AD CA 5E 66 CC 51 87 64 74 [08:04:59]GetLastDocTimeStamp 1717488278 [08:04:59]current date 1717488301 [08:04:59]FM_GetShiftState [08:04:59]SAM_PROTO_GetShiftState [08:04:59]wFMCommunicate request_size=4 [08:04:59]MH_SAM_APDU [08:04:59]CAPDU: 80 13 01 00 [08:04:59]Write to MH i2c: E2 08 00 2D 0D 80 13 01 00 00 00 00 00 B7 [08:04:59]Write i2c OK [08:04:59]MH_I2C_Read... [08:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:59]Read from MH i2c: E2 [08:04:59]MH_I2C_Read... [08:04:59]Read from MH i2c: E2 0E 00 [08:04:59]MH_I2C_Read... [08:04:59]Read from MH i2c: E2 0E 00 2D 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7A [08:04:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:04:59]wFMCommunicate OK [08:04:59]SAM_PROTO_GetShiftState done [08:04:59]FM_GetShiftState done [08:04:59]opened in 1717460629 [08:04:59]opened+sec_in_day 1717547029 [08:04:59]quantity*price = 50041 [08:04:59]sum+1 = 50042 [08:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 15 04.06.2024 08:05 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148676 ФПД: 23697931950184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080501&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148676&fm=23697931950184&tin=02508201610067®Number=0000000000092720&sum=50000 [08:05:00]StoreToDocumentArchive [08:05:00]shift 368 fd 148676 [08:05:00]save to /storage/0368/doc_00148676 [08:05:00]save last doc name /storage/0368/doc_00148676 to /storage/kkm_last_doc_name [08:05:00]save OK [08:05:00]Clear old archive folders... [08:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:00]tlvbuf is 015EAC30 [08:05:00]SAM_PROTO_ClearQueue [08:05:00]wFMCommunicate request_size=4 [08:05:00]MH_SAM_APDU [08:05:00]CAPDU: 80 09 00 00 [08:05:00]Write to MH i2c: E2 08 00 3A 0D 80 09 00 00 00 00 00 00 B9 [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:00]Read from MH i2c: E2 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 3A 0D 00 90 00 BB [08:05:00]RAPDU: 90 00 [08:05:00]wFMCommunicate OK [08:05:00]SAM_PROTO_ClearQueue done [08:05:00]KKMCreateOFDPacket [08:05:00]OFDProtocolAddRootSTLVToBuf [08:05:00]FM_MakeSignedData [08:05:00]FM_MakeSignedData [08:05:00]SAM_PROTO_SignData [08:05:00]wFMCommunicate request_size=4 [08:05:00]MH_SAM_APDU [08:05:00]CAPDU: 80 0D 01 02 [08:05:00]Write to MH i2c: E2 08 00 3B 0D 80 0D 01 02 00 00 00 00 C1 [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:00]Read from MH i2c: E2 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 3B 0D 00 90 00 BC [08:05:00]RAPDU: 90 00 [08:05:00]wFMCommunicate OK [08:05:00]wFMCommunicate request_size=255 [08:05:00]MH_SAM_APDU [08:05:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AD CA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C4 44 02 00 35 04 06 00 15 [08:05:00]Write to MH i2c: E2 02 01 3C 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AD CA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C4 44 02 00 35 04 06 00 15 00 00 25 [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:00]Read from MH i2c: E2 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 3C 0D 00 90 00 BD [08:05:00]RAPDU: 90 00 [08:05:00]wFMCommunicate OK [08:05:00]wFMCommunicate request_size=10 [08:05:00]MH_SAM_APDU [08:05:00]CAPDU: 80 0D 02 02 05 8D 9A D0 D8 68 [08:05:00]Write to MH i2c: E2 0D 00 3D 0D 80 0D 02 02 05 00 8D 9A D0 D8 68 00 00 05 [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:00]Read from MH i2c: E2 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 3D 0D 00 90 00 BE [08:05:00]RAPDU: 90 00 [08:05:00]wFMCommunicate OK [08:05:00]wFMCommunicate request_size=4 [08:05:00]MH_SAM_APDU [08:05:00]CAPDU: 80 0D 03 02 [08:05:00]Write to MH i2c: E2 08 00 3E 0D 80 0D 03 02 00 00 00 00 C6 [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:00]Read from MH i2c: E2 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 0B 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 0B 00 3E 0D 00 3A 85 F9 E0 97 09 A4 EC 90 00 8F [08:05:00]RAPDU: 3A 85 F9 E0 97 09 A4 EC 90 00 [08:05:00]wFMCommunicate OK [08:05:00]SAM_PROTO_SignData done [08:05:00]FM_MakeSignedData done [08:05:00]CreateOFDProtocolMessage [08:05:00]wFMCommunicate request_size=4 [08:05:00]MH_SAM_APDU [08:05:00]CAPDU: 80 11 00 00 [08:05:00]Write to MH i2c: E2 08 00 3F 0D 80 11 00 00 00 00 00 00 C6 [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:00]Read from MH i2c: E2 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 17 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 17 00 3F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 19 [08:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:05:00]wFMCommunicate OK [08:05:00]CreateOFDProtocolMessage done [08:05:00]OFDSenderStorePacket 148676 [08:05:00]StoreOFDPacket docnum=148676 [08:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5A C1 07 01 44 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AD CA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C4 44 02 00 35 04 06 00 15 8D 9A D0 D8 68 3A 85 F9 E0 97 09 A4 EC [08:05:00]CheckFolder [08:05:00]dirname=/storage/ofd_packets [08:05:00]CheckFolder done [08:05:00]ProducePacketName [08:05:00]name=ofd_packets/00148676 [08:05:00]NVStorageSaveData ofd_packets/00148676 [08:05:00]File name is /storage/ofd_packets/00148676 [08:05:00]Write 301 bytes [08:05:00]NVStorageSaveData done [08:05:00]OFDSenderStorePacket done [08:05:00]KKMCreateOFDPacket done [08:05:00]NVStorageSaveData kkm_last_timestamp [08:05:00]File name is /storage/kkm_last_timestamp [08:05:00]Write 4 bytes [08:05:00]NVStorageSaveData done [08:05:00]ExternCall_PrintAddStr [08:05:00]wPrintStart [08:05:00]Write to MH i2c: 01 00 00 40 0D 4D [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: 01 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: 01 07 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: 01 07 00 40 0D 00 00 00 00 00 FF 0F 62 [08:05:00]RasterBufferAndPrint [08:05:00]line Счет N : (1)979600 [08:05:00]line ИНН: 02508201610067 [08:05:00]line Контрольно-Кассовый Чек [08:05:00]line ПРОДАЖА [08:05:00]line ТРК (МРК, ГНК) : 22 [08:05:00]line Товар: 2710124130 [08:05:00]line Аи-92-К-5 [08:05:00]line 7.480 * 66.90 [08:05:00]line = 500.41 [08:05:00]line НДС 12% НСП 1% [08:05:00]line > о реализуемом товаре [08:05:00]line ОКРУГЛЕНИЕ: -0.41 [08:05:00]line ИТОГО: 500.00 [08:05:00]line Внесено: 500.00 [08:05:00]line СДАЧА: 0.00 [08:05:00]line НСП 1% : 4.43 [08:05:00]line НДС 12% : 53.14 [08:05:00]line Наличными: 500.00 [08:05:00]line Безнал.: 0.00 [08:05:00]line Место: АЗС № 68 "Партнер Нефть" [08:05:00]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:05:00]line СНО: Общий режим [08:05:00]line Чек 15 04.06.2024 08:05 [08:05:00]line Смена: 368 ФФД: 1.0 [08:05:00]line ЗНМ: 0300000035 [08:05:00]line РНМ: 0000000000092720 [08:05:00]line Версия ККМ: 001 [08:05:00]line ФМ: 0000000000875057 [08:05:00]line ФД: 148676 [08:05:00]line ФПД: 23697931950184 [08:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080501&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148676&fm=23697931950184&tin=02508201610067®Number=0000000000092720&sum=50000 [08:05:01]OFD Sender: Processing packet 148676 [packets to send 100, broken 99] [08:05:01]ProducePacketName [08:05:01]name=ofd_packets/00148676 [08:05:01]OFD Sender: To server: pG, [08:05:01]CommunicateWithHost lk.salyk.kg:30040 [08:05:01]ConnectInit lk.salyk.kg [08:05:01]written 0, free lines is 4095 [08:05:01]Connected sock=10 [08:05:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5A C1 07 01 44 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AD CA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C4 44 02 00 35 04 06 00 15 8D 9A D0 D8 68 3A 85 F9 E0 97 09 A4 EC [08:05:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 EF 9F 47 00 65 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 38 37 35 30 35 37 10 04 04 00 C4 44 02 00 F4 03 04 00 D2 71 5E 66 B6 04 01 00 00 4B DB 37 3B 0D 83 95 1E [08:05:01]CommunicateWithHost err = 0 [08:05:01]CheckOFDResponse [08:05:01]1017 (14) - 77093643461234 [08:05:01]1041 (16) - 0000000000875057 [08:05:01]1040 (4) - 148676 [08:05:01]1012 (4) - 04.06.2024 01:45 [08:05:01]1206 (1) - 0 [08:05:01]OFD Sender: Remove packet 148676 [08:05:01]ProducePacketName [08:05:01]name=ofd_packets/00148676 [08:05:01]NVStorageDeleteData [08:05:01]Write to MH i2c: 01 00 00 6B 0D 78 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: 01 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: 01 07 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: 01 07 00 6B 0D 00 00 00 00 00 6D 0C F8 [08:05:01]RasterBufferAndPrint [08:05:01]line [08:05:01]line [08:05:01]line [08:05:01]line [08:05:01]line [08:05:01]written 0, free lines is 3184 [08:05:01]MH_Cut [08:05:01]Write to MH i2c: D1 01 00 72 0D 01 51 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: D1 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: D1 01 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: D1 01 00 72 0D 00 50 [08:05:01]Write to MH i2c: 01 00 00 73 0D 80 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:02]OFD Sender: No OFD packet to send [08:05:02]*** Cut start [08:05:02]*** Partial cut [08:05:02]*** CUTSNS_PIN = 1 [08:05:03]*** CUTSNS_PIN = 0 [08:05:03]*** Brake cut motor [08:05:03]Read from MH i2c: 01 [08:05:03]MH_I2C_Read... [08:05:03]*** Stop cut motor [08:05:03]*** Cut end [08:05:03]Read from MH i2c: 01 07 00 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: 01 07 00 73 0D 00 00 00 00 00 FF 0F 95 [08:05:03]process_action close_receipt done [08:05:03]requested_data is exist [08:05:03]produce_requested_data [08:05:03]requested_item fm.sn is exist - process it [08:05:03]wFMCommunicate request_size=4 [08:05:03]MH_SAM_APDU [08:05:03]CAPDU: 80 11 00 00 [08:05:03]Write to MH i2c: E2 08 00 74 0D 80 11 00 00 00 00 00 00 FB [08:05:03]Write i2c OK [08:05:03]MH_I2C_Read... [08:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:03]Read from MH i2c: E2 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 17 00 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 17 00 74 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4E [08:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:05:03]wFMCommunicate OK [08:05:03]requested_item fd.num is exist - process it [08:05:03]SAM_PROTO_GetFieldsCounters [08:05:03]wFMCommunicate request_size=4 [08:05:03]MH_SAM_APDU [08:05:03]CAPDU: 80 13 00 00 [08:05:03]Write to MH i2c: E2 08 00 75 0D 80 13 00 00 00 00 00 00 FE [08:05:03]Write i2c OK [08:05:03]MH_I2C_Read... [08:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:03]Read from MH i2c: E2 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 62 00 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 62 00 75 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C4 44 02 00 0E 04 04 00 70 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 C2 [08:05:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C4 44 02 00 0E 04 04 00 70 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:05:03]wFMCommunicate OK [08:05:03]SAM_PROTO_GetFieldsCounters done [08:05:03]requested_item shift.num is exist - process it [08:05:03]requested_item shift.opened is exist - process it [08:05:03]req_shift_opened [08:05:03]FM_GetShiftState [08:05:03]SAM_PROTO_GetShiftState [08:05:03]wFMCommunicate request_size=4 [08:05:03]MH_SAM_APDU [08:05:03]CAPDU: 80 13 01 00 [08:05:03]Write to MH i2c: E2 08 00 76 0D 80 13 01 00 00 00 00 00 00 [08:05:03]Write i2c OK [08:05:03]MH_I2C_Read... [08:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:03]Read from MH i2c: E2 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 0E 00 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 0E 00 76 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C3 [08:05:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:05:03]wFMCommunicate OK [08:05:03]SAM_PROTO_GetShiftState done [08:05:03]FM_GetShiftState done [08:05:03]req_shift_opened done [08:05:03]requested_item shift.open_date is exist - process it [08:05:03]req_shift_open_date [08:05:03]req_shift_open_date done [08:05:03]produce_requested_data done [08:05:03]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148676,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:05:03]process_action_free close_receipt [08:05:03]json_value_free [08:05:03]json_value_free done [08:05:03]process_json_proto returns [08:05:03]Send response to host [08:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148676,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:05:03]free response buf [08:05:03]execute_script done [08:05:03]execute_script returns [08:05:03]free content buf [08:05:03]Sock 7.Close socket [08:05:03]Sock 7.Thread stoped [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:01]accept exits with 9 [08:12:01]New connection [08:12:01]New thread 3066666340 created [08:12:01]Thread 3066809700 joined [08:12:01]Waiting for new connection... [08:12:01] Sock 9.Parse request [08:12:01]Sock 9.Check first char [08:12:01]Sock 9.First char is OK [08:12:01]request: POST /json_proto HTTP/1.0 [08:12:01]Method: POST [08:12:01]URL: /json_proto [08:12:01]Method is POST - this is cgi request [08:12:01]url: /json_proto [08:12:01]query_string will be loaded in cgi processing [08:12:01]execute_cgi json_proto POST (null) [08:12:01]execute_cgi path=json_proto method=POST [08:12:01]POST find Content-Length [08:12:01]Host: 172.17.38.4:8080 [08:12:01]Content-Length: 790 [08:12:01]Content-Type: application/json [08:12:01] [08:12:01]POST finish read [08:12:01]Found Content-Length = 790 [08:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:01]execute_script... [08:12: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)979601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:01]POST & json_proto [08:12:01]process_json_proto [08:12:01]json parsed OK: [08:12:01]protocol is kg_v1.0 [08:12:01]action value=close_receipt [08:12:01]process_action close_receipt [08:12:01]cmd_close_receipt [08:12:01]MH_GetDate [08:12:01]Write to MH i2c: F0 00 00 77 0D 73 [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: F0 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: F0 09 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: F0 09 00 77 0D 00 53 CC 5E 66 CC 51 87 64 67 [08:12:01]GetLastDocTimeStamp 1717488301 [08:12:01]current date 1717488723 [08:12:01]FM_GetShiftState [08:12:01]SAM_PROTO_GetShiftState [08:12:01]wFMCommunicate request_size=4 [08:12:01]MH_SAM_APDU [08:12:01]CAPDU: 80 13 01 00 [08:12:01]Write to MH i2c: E2 08 00 78 0D 80 13 01 00 00 00 00 00 02 [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:01]Read from MH i2c: E2 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 0E 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 0E 00 78 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C5 [08:12:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:12:01]wFMCommunicate OK [08:12:01]SAM_PROTO_GetShiftState done [08:12:01]FM_GetShiftState done [08:12:01]opened in 1717460629 [08:12:01]opened+sec_in_day 1717547029 [08:12:01]quantity*price = 50041 [08:12:01]sum+1 = 50042 [08:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 16 04.06.2024 08:12 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148677 ФПД: 168102110329443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081203&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148677&fm=168102110329443&tin=02508201610067®Number=0000000000092720&sum=50041 [08:12:02]StoreToDocumentArchive [08:12:02]shift 368 fd 148677 [08:12:02]save to /storage/0368/doc_00148677 [08:12:02]save last doc name /storage/0368/doc_00148677 to /storage/kkm_last_doc_name [08:12:02]save OK [08:12:02]Clear old archive folders... [08:12:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:02]tlvbuf is 015AF170 [08:12:02]SAM_PROTO_ClearQueue [08:12:02]wFMCommunicate request_size=4 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 09 00 00 [08:12:02]Write to MH i2c: E2 08 00 85 0D 80 09 00 00 00 00 00 00 04 [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:02]Read from MH i2c: E2 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 85 0D 00 90 00 06 [08:12:02]RAPDU: 90 00 [08:12:02]wFMCommunicate OK [08:12:02]SAM_PROTO_ClearQueue done [08:12:02]KKMCreateOFDPacket [08:12:02]OFDProtocolAddRootSTLVToBuf [08:12:02]FM_MakeSignedData [08:12:02]FM_MakeSignedData [08:12:02]SAM_PROTO_SignData [08:12:02]wFMCommunicate request_size=4 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 0D 01 02 [08:12:02]Write to MH i2c: E2 08 00 86 0D 80 0D 01 02 00 00 00 00 0C [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]OFD Sender: No OFD packet to send [08:12:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:02]Read from MH i2c: E2 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 86 0D 00 90 00 07 [08:12:02]RAPDU: 90 00 [08:12:02]wFMCommunicate OK [08:12:02]wFMCommunicate request_size=255 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 10 00 00 00 F4 03 04 00 53 CC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C5 44 02 00 35 04 06 00 98 [08:12:02]Write to MH i2c: E2 02 01 87 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 10 00 00 00 F4 03 04 00 53 CC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C5 44 02 00 35 04 06 00 98 00 00 EF [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:02]Read from MH i2c: E2 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 87 0D 00 90 00 08 [08:12:02]RAPDU: 90 00 [08:12:02]wFMCommunicate OK [08:12:02]wFMCommunicate request_size=10 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 0D 02 02 05 E3 52 92 7A 63 [08:12:02]Write to MH i2c: E2 0D 00 88 0D 80 0D 02 02 05 00 E3 52 92 7A 63 00 00 BD [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:02]Read from MH i2c: E2 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 88 0D 00 90 00 09 [08:12:02]RAPDU: 90 00 [08:12:02]wFMCommunicate OK [08:12:02]wFMCommunicate request_size=4 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 0D 03 02 [08:12:02]Write to MH i2c: E2 08 00 89 0D 80 0D 03 02 00 00 00 00 11 [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:02]Read from MH i2c: E2 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 0B 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 0B 00 89 0D 00 84 63 07 20 5E 94 98 50 90 00 FA [08:12:02]RAPDU: 84 63 07 20 5E 94 98 50 90 00 [08:12:02]wFMCommunicate OK [08:12:02]SAM_PROTO_SignData done [08:12:02]FM_MakeSignedData done [08:12:02]CreateOFDProtocolMessage [08:12:02]wFMCommunicate request_size=4 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 11 00 00 [08:12:02]Write to MH i2c: E2 08 00 8A 0D 80 11 00 00 00 00 00 00 11 [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:02]Read from MH i2c: E2 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 17 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 17 00 8A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 64 [08:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:12:02]wFMCommunicate OK [08:12:02]CreateOFDProtocolMessage done [08:12:02]OFDSenderStorePacket 148677 [08:12:02]StoreOFDPacket docnum=148677 [08:12:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 BD A7 07 01 54 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 10 00 00 00 F4 03 04 00 53 CC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C5 44 02 00 35 04 06 00 98 E3 52 92 7A 63 84 63 07 20 5E 94 98 50 [08:12:02]CheckFolder [08:12:02]dirname=/storage/ofd_packets [08:12:02]CheckFolder done [08:12:02]ProducePacketName [08:12:02]name=ofd_packets/00148677 [08:12:02]NVStorageSaveData ofd_packets/00148677 [08:12:02]File name is /storage/ofd_packets/00148677 [08:12:02]Write 301 bytes [08:12:02]NVStorageSaveData done [08:12:02]OFDSenderStorePacket done [08:12:02]KKMCreateOFDPacket done [08:12:02]NVStorageSaveData kkm_last_timestamp [08:12:02]File name is /storage/kkm_last_timestamp [08:12:02]Write 4 bytes [08:12:02]NVStorageSaveData done [08:12:02]ExternCall_PrintAddStr [08:12:02]wPrintStart [08:12:02]Write to MH i2c: 01 00 00 8B 0D 98 [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: 01 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: 01 07 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: 01 07 00 8B 0D 00 00 00 00 00 FF 0F AD [08:12:02]RasterBufferAndPrint [08:12:02]line Счет N : (1)979601 [08:12:02]line ИНН: 02508201610067 [08:12:02]line Контрольно-Кассовый Чек [08:12:02]line ПРОДАЖА [08:12:02]line ТРК (МРК, ГНК) : 22 [08:12:02]line Товар: 2710124130 [08:12:02]line Аи-92-К-5 [08:12:02]line 7.480 * 66.90 [08:12:02]line = 500.41 [08:12:02]line НДС 12% НСП 1% [08:12:02]line > о реализуемом товаре [08:12:02]line ИТОГО: 500.41 [08:12:02]line НСП 1% : 4.43 [08:12:02]line НДС 12% : 53.14 [08:12:02]line Наличными: 0.00 [08:12:02]line Безнал.: 500.41 [08:12:02]line Место: АЗС № 68 "Партнер Нефть" [08:12:03]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:12:03]line СНО: Общий режим [08:12:03]line Чек 16 04.06.2024 08:12 [08:12:03]line Смена: 368 ФФД: 1.0 [08:12:03]line ЗНМ: 0300000035 [08:12:03]line РНМ: 0000000000092720 [08:12:03]line Версия ККМ: 001 [08:12:03]line Платежная система: KICB Банк [08:12:03]line ФМ: 0000000000875057 [08:12:03]line ФД: 148677 [08:12:03]line ФПД: 168102110329443 [08:12:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081203&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148677&fm=168102110329443&tin=02508201610067®Number=0000000000092720&sum=50041 [08:12:03]OFD Sender: Processing packet 148677 [packets to send 100, broken 99] [08:12:03]ProducePacketName [08:12:03]name=ofd_packets/00148677 [08:12:03]OFD Sender: To server: pG, [08:12:03]CommunicateWithHost lk.salyk.kg:30040 [08:12:03]ConnectInit lk.salyk.kg [08:12:03]written 0, free lines is 4095 [08:12:03]Connected sock=10 [08:12:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 BD A7 07 01 54 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 10 00 00 00 F4 03 04 00 53 CC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C5 44 02 00 35 04 06 00 98 E3 52 92 7A 63 84 63 07 20 5E 94 98 50 [08:12:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 73 78 47 00 0C F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C5 44 02 00 F4 03 04 00 78 73 5E 66 B6 04 01 00 00 6A 6E A1 B6 7F DB A4 40 [08:12:03]CommunicateWithHost err = 0 [08:12:03]CheckOFDResponse [08:12:03]1017 (14) - 77093643461234 [08:12:03]1041 (16) - 0000000000875057 [08:12:03]1040 (4) - 148677 [08:12:03]1012 (4) - 04.06.2024 01:52 [08:12:03]1206 (1) - 0 [08:12:03]OFD Sender: Remove packet 148677 [08:12:03]ProducePacketName [08:12:03]name=ofd_packets/00148677 [08:12:03]NVStorageDeleteData [08:12:03]Write to MH i2c: 01 00 00 B5 0D C2 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: 01 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: 01 07 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: 01 07 00 B5 0D 00 00 00 00 00 81 0C 56 [08:12:03]RasterBufferAndPrint [08:12:03]line [08:12:03]line [08:12:03]line [08:12:03]line [08:12:03]line [08:12:03]written 0, free lines is 3206 [08:12:03]MH_Cut [08:12:03]Write to MH i2c: D1 01 00 BC 0D 01 9B [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: D1 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: D1 01 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: D1 01 00 BC 0D 00 9A [08:12:03]Write to MH i2c: 01 00 00 BD 0D CA [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:04]OFD Sender: No OFD packet to send [08:12:05]*** Cut start [08:12:05]*** Partial cut [08:12:05]*** CUTSNS_PIN = 1 [08:12:05]*** CUTSNS_PIN = 0 [08:12:05]*** Brake cut motor [08:12:05]Read from MH i2c: 01 [08:12:05]MH_I2C_Read... [08:12:05]*** Stop cut motor [08:12:05]*** Cut end [08:12:05]Read from MH i2c: 01 07 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: 01 07 00 BD 0D 00 00 00 00 00 FF 0F DF [08:12:05]process_action close_receipt done [08:12:05]requested_data is exist [08:12:05]produce_requested_data [08:12:05]requested_item fm.sn is exist - process it [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 11 00 00 [08:12:05]Write to MH i2c: E2 08 00 BE 0D 80 11 00 00 00 00 00 00 45 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 17 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 17 00 BE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 98 [08:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:12:05]wFMCommunicate OK [08:12:05]requested_item fd.num is exist - process it [08:12:05]SAM_PROTO_GetFieldsCounters [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 13 00 00 [08:12:05]Write to MH i2c: E2 08 00 BF 0D 80 13 00 00 00 00 00 00 48 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 62 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 62 00 BF 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C5 44 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [08:12:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C5 44 02 00 0E 04 04 00 70 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:12:05]wFMCommunicate OK [08:12:05]SAM_PROTO_GetFieldsCounters done [08:12:05]requested_item shift.num is exist - process it [08:12:05]requested_item shift.opened is exist - process it [08:12:05]req_shift_opened [08:12:05]FM_GetShiftState [08:12:05]SAM_PROTO_GetShiftState [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 13 01 00 [08:12:05]Write to MH i2c: E2 08 00 C0 0D 80 13 01 00 00 00 00 00 4A [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 0E 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 0E 00 C0 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0D [08:12:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:12:05]wFMCommunicate OK [08:12:05]SAM_PROTO_GetShiftState done [08:12:05]FM_GetShiftState done [08:12:05]req_shift_opened done [08:12:05]requested_item shift.open_date is exist - process it [08:12:05]req_shift_open_date [08:12:05]req_shift_open_date done [08:12:05]produce_requested_data done [08:12:05]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148677,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:12:05]process_action_free close_receipt [08:12:05]json_value_free [08:12:05]json_value_free done [08:12:05]process_json_proto returns [08:12:05]Send response to host [08:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148677,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:12:05]free response buf [08:12:05]execute_script done [08:12:05]execute_script returns [08:12:05]free content buf [08:12:05]Sock 9.Close socket [08:12:05]Sock 9.Thread stoped [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:46]accept exits with 7 [08:16:46]New connection [08:16:46]New thread 3066809700 created [08:16:46]Thread 3066666340 joined [08:16:46]Waiting for new connection... [08:16:46] Sock 7.Parse request [08:16:46]Sock 7.Check first char [08:16:46]Sock 7.First char is OK [08:16:46]request: POST /json_proto HTTP/1.0 [08:16:46]Method: POST [08:16:46]URL: /json_proto [08:16:46]Method is POST - this is cgi request [08:16:46]url: /json_proto [08:16:46]query_string will be loaded in cgi processing [08:16:46]execute_cgi json_proto POST (null) [08:16:46]execute_cgi path=json_proto method=POST [08:16:46]POST find Content-Length [08:16:46]Host: 172.17.38.4:8080 [08:16:46]Content-Length: 790 [08:16:46]Content-Type: application/json [08:16:46] [08:16:46]POST finish read [08:16:46]Found Content-Length = 790 [08:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:46]execute_script... [08:16: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)979602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:46]POST & json_proto [08:16:46]process_json_proto [08:16:46]json parsed OK: [08:16:46]protocol is kg_v1.0 [08:16:46]action value=close_receipt [08:16:46]process_action close_receipt [08:16:46]cmd_close_receipt [08:16:46]MH_GetDate [08:16:46]Write to MH i2c: F0 00 00 C1 0D BD [08:16:46]Write i2c OK [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: F0 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: F0 09 00 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: F0 09 00 C1 0D 00 70 CD 5E 66 CC 51 87 64 CF [08:16:46]GetLastDocTimeStamp 1717488723 [08:16:46]current date 1717489008 [08:16:46]FM_GetShiftState [08:16:46]SAM_PROTO_GetShiftState [08:16:46]wFMCommunicate request_size=4 [08:16:46]MH_SAM_APDU [08:16:46]CAPDU: 80 13 01 00 [08:16:46]Write to MH i2c: E2 08 00 C2 0D 80 13 01 00 00 00 00 00 4C [08:16:46]Write i2c OK [08:16:46]MH_I2C_Read... [08:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:46]Read from MH i2c: E2 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: E2 0E 00 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: E2 0E 00 C2 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0F [08:16:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:16:46]wFMCommunicate OK [08:16:46]SAM_PROTO_GetShiftState done [08:16:46]FM_GetShiftState done [08:16:46]opened in 1717460629 [08:16:46]opened+sec_in_day 1717547029 [08:16:46]quantity*price = 50041 [08:16:46]sum+1 = 50042 [08:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 17 04.06.2024 08:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148678 ФПД: 72283526474133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081648&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148678&fm=72283526474133&tin=02508201610067®Number=0000000000092720&sum=50041 [08:16:47]StoreToDocumentArchive [08:16:47]shift 368 fd 148678 [08:16:47]save to /storage/0368/doc_00148678 [08:16:47]save last doc name /storage/0368/doc_00148678 to /storage/kkm_last_doc_name [08:16:47]save OK [08:16:47]Clear old archive folders... [08:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:47]tlvbuf is B6E9E560 [08:16:47]SAM_PROTO_ClearQueue [08:16:47]wFMCommunicate request_size=4 [08:16:47]MH_SAM_APDU [08:16:47]CAPDU: 80 09 00 00 [08:16:47]Write to MH i2c: E2 08 00 CF 0D 80 09 00 00 00 00 00 00 4E [08:16:47]Write i2c OK [08:16:47]MH_I2C_Read... [08:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:47]Read from MH i2c: E2 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 03 00 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 03 00 CF 0D 00 90 00 50 [08:16:47]RAPDU: 90 00 [08:16:47]wFMCommunicate OK [08:16:47]SAM_PROTO_ClearQueue done [08:16:47]KKMCreateOFDPacket [08:16:47]OFDProtocolAddRootSTLVToBuf [08:16:47]FM_MakeSignedData [08:16:47]FM_MakeSignedData [08:16:47]SAM_PROTO_SignData [08:16:47]wFMCommunicate request_size=4 [08:16:47]MH_SAM_APDU [08:16:47]CAPDU: 80 0D 01 02 [08:16:47]Write to MH i2c: E2 08 00 D0 0D 80 0D 01 02 00 00 00 00 56 [08:16:47]Write i2c OK [08:16:47]MH_I2C_Read... [08:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:47]Read from MH i2c: E2 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 03 00 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 03 00 D0 0D 00 90 00 51 [08:16:47]RAPDU: 90 00 [08:16:47]wFMCommunicate OK [08:16:47]wFMCommunicate request_size=255 [08:16:47]MH_SAM_APDU [08:16:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 11 00 00 00 F4 03 04 00 70 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C6 44 02 00 35 04 06 00 41 [08:16:47]Write to MH i2c: E2 02 01 D1 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 11 00 00 00 F4 03 04 00 70 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C6 44 02 00 35 04 06 00 41 00 00 02 [08:16:47]Write i2c OK [08:16:47]MH_I2C_Read... [08:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:47]Read from MH i2c: E2 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 03 00 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 03 00 D1 0D 00 90 00 52 [08:16:47]RAPDU: 90 00 [08:16:47]wFMCommunicate OK [08:16:47]wFMCommunicate request_size=10 [08:16:47]MH_SAM_APDU [08:16:47]CAPDU: 80 0D 02 02 05 BD D1 EB 29 95 [08:16:47]Write to MH i2c: E2 0D 00 D2 0D 80 0D 02 02 05 00 BD D1 EB 29 95 00 00 9A [08:16:47]Write i2c OK [08:16:47]MH_I2C_Read... [08:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:47]Read from MH i2c: E2 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 03 00 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [08:16:47]RAPDU: 90 00 [08:16:47]wFMCommunicate OK [08:16:47]wFMCommunicate request_size=4 [08:16:47]MH_SAM_APDU [08:16:47]CAPDU: 80 0D 03 02 [08:16:47]Write to MH i2c: E2 08 00 D3 0D 80 0D 03 02 00 00 00 00 5B [08:16:47]Write i2c OK [08:16:47]MH_I2C_Read... [08:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:47]Read from MH i2c: E2 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 0B 00 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 0B 00 D3 0D 00 8C FF EE 34 24 69 67 64 90 00 61 [08:16:47]RAPDU: 8C FF EE 34 24 69 67 64 90 00 [08:16:47]wFMCommunicate OK [08:16:47]SAM_PROTO_SignData done [08:16:47]FM_MakeSignedData done [08:16:47]CreateOFDProtocolMessage [08:16:47]wFMCommunicate request_size=4 [08:16:47]MH_SAM_APDU [08:16:47]CAPDU: 80 11 00 00 [08:16:47]Write to MH i2c: E2 08 00 D4 0D 80 11 00 00 00 00 00 00 5B [08:16:47]Write i2c OK [08:16:47]MH_I2C_Read... [08:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:47]Read from MH i2c: E2 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 17 00 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: E2 17 00 D4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AE [08:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:16:47]wFMCommunicate OK [08:16:47]CreateOFDProtocolMessage done [08:16:47]OFDSenderStorePacket 148678 [08:16:47]StoreOFDPacket docnum=148678 [08:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 30 26 07 01 49 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 11 00 00 00 F4 03 04 00 70 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C6 44 02 00 35 04 06 00 41 BD D1 EB 29 95 8C FF EE 34 24 69 67 64 [08:16:47]CheckFolder [08:16:47]dirname=/storage/ofd_packets [08:16:47]CheckFolder done [08:16:47]ProducePacketName [08:16:47]name=ofd_packets/00148678 [08:16:47]NVStorageSaveData ofd_packets/00148678 [08:16:47]File name is /storage/ofd_packets/00148678 [08:16:47]Write 301 bytes [08:16:47]NVStorageSaveData done [08:16:47]OFDSenderStorePacket done [08:16:47]KKMCreateOFDPacket done [08:16:47]NVStorageSaveData kkm_last_timestamp [08:16:47]File name is /storage/kkm_last_timestamp [08:16:47]Write 4 bytes [08:16:47]NVStorageSaveData done [08:16:47]ExternCall_PrintAddStr [08:16:47]wPrintStart [08:16:47]Write to MH i2c: 01 00 00 D5 0D E2 [08:16:47]Write i2c OK [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: 01 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: 01 07 00 [08:16:47]MH_I2C_Read... [08:16:47]Read from MH i2c: 01 07 00 D5 0D 00 00 00 00 00 FF 0F F7 [08:16:47]RasterBufferAndPrint [08:16:47]line Счет N : (1)979602 [08:16:47]line ИНН: 02508201610067 [08:16:47]line Контрольно-Кассовый Чек [08:16:47]line ПРОДАЖА [08:16:47]line ТРК (МРК, ГНК) : 31 [08:16:47]line Товар: 2710124130 [08:16:47]line Аи-92-К-5 [08:16:47]line 7.480 * 66.90 [08:16:47]line = 500.41 [08:16:47]line НДС 12% НСП 1% [08:16:47]line > о реализуемом товаре [08:16:47]line ИТОГО: 500.41 [08:16:47]line НСП 1% : 4.43 [08:16:47]line НДС 12% : 53.14 [08:16:47]line Наличными: 0.00 [08:16:47]line Безнал.: 500.41 [08:16:47]line Место: АЗС № 68 "Партнер Нефть" [08:16:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:16:47]line СНО: Общий режим [08:16:47]line Чек 17 04.06.2024 08:16 [08:16:47]line Смена: 368 ФФД: 1.0 [08:16:47]line ЗНМ: 0300000035 [08:16:47]line РНМ: 0000000000092720 [08:16:47]line Версия ККМ: 001 [08:16:47]line Платежная система: KICB Банк [08:16:47]line ФМ: 0000000000875057 [08:16:47]line ФД: 148678 [08:16:47]line ФПД: 72283526474133 [08:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081648&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148678&fm=72283526474133&tin=02508201610067®Number=0000000000092720&sum=50041 [08:16:48]written 0, free lines is 4095 [08:16:48]OFD Sender: Processing packet 148678 [packets to send 100, broken 99] [08:16:48]ProducePacketName [08:16:48]name=ofd_packets/00148678 [08:16:48]OFD Sender: To server: pG, [08:16:48]CommunicateWithHost lk.salyk.kg:30040 [08:16:48]ConnectInit lk.salyk.kg [08:16:48]Connected sock=10 [08:16:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 30 26 07 01 49 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 11 00 00 00 F4 03 04 00 70 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C6 44 02 00 35 04 06 00 41 BD D1 EB 29 95 8C FF EE 34 24 69 67 64 [08:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1E 8C 47 00 F3 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C6 44 02 00 F4 03 04 00 94 74 5E 66 B6 04 01 00 00 5A 65 17 C8 4D B7 A6 70 [08:16:48]CommunicateWithHost err = 0 [08:16:48]CheckOFDResponse [08:16:48]1017 (14) - 77093643461234 [08:16:48]1041 (16) - 0000000000875057 [08:16:48]1040 (4) - 148678 [08:16:48]1012 (4) - 04.06.2024 01:57 [08:16:48]1206 (1) - 0 [08:16:48]OFD Sender: Remove packet 148678 [08:16:48]ProducePacketName [08:16:48]name=ofd_packets/00148678 [08:16:48]NVStorageDeleteData [08:16:48]Write to MH i2c: 01 00 00 FF 0D 0C [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: 01 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: 01 07 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: 01 07 00 FF 0D 00 00 00 00 00 7B 0C 9A [08:16:48]RasterBufferAndPrint [08:16:48]line [08:16:48]line [08:16:48]line [08:16:48]line [08:16:48]line [08:16:48]written 0, free lines is 3199 [08:16:48]MH_Cut [08:16:48]Write to MH i2c: D1 01 00 06 0E 01 E6 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: D1 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: D1 01 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: D1 01 00 06 0E 00 E5 [08:16:48]Write to MH i2c: 01 00 00 07 0E 15 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]OFD Sender: No OFD packet to send [08:16:49]*** Cut start [08:16:49]*** Partial cut [08:16:49]*** CUTSNS_PIN = 1 [08:16:49]*** CUTSNS_PIN = 0 [08:16:50]*** Brake cut motor [08:16:50]Read from MH i2c: 01 [08:16:50]MH_I2C_Read... [08:16:50]*** Stop cut motor [08:16:50]*** Cut end [08:16:50]Read from MH i2c: 01 07 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 07 0E 00 00 00 00 00 FF 0F 2A [08:16:50]process_action close_receipt done [08:16:50]requested_data is exist [08:16:50]produce_requested_data [08:16:50]requested_item fm.sn is exist - process it [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 11 00 00 [08:16:50]Write to MH i2c: E2 08 00 08 0E 80 11 00 00 00 00 00 00 90 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 17 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 17 00 08 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E3 [08:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:16:50]wFMCommunicate OK [08:16:50]requested_item fd.num is exist - process it [08:16:50]SAM_PROTO_GetFieldsCounters [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 13 00 00 [08:16:50]Write to MH i2c: E2 08 00 09 0E 80 13 00 00 00 00 00 00 93 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 62 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 62 00 09 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C6 44 02 00 0E 04 04 00 70 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 5F [08:16:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C6 44 02 00 0E 04 04 00 70 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:16:50]wFMCommunicate OK [08:16:50]SAM_PROTO_GetFieldsCounters done [08:16:50]requested_item shift.num is exist - process it [08:16:50]requested_item shift.opened is exist - process it [08:16:50]req_shift_opened [08:16:50]FM_GetShiftState [08:16:50]SAM_PROTO_GetShiftState [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 13 01 00 [08:16:50]Write to MH i2c: E2 08 00 0A 0E 80 13 01 00 00 00 00 00 95 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 0E 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 0E 00 0A 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 58 [08:16:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:16:50]wFMCommunicate OK [08:16:50]SAM_PROTO_GetShiftState done [08:16:50]FM_GetShiftState done [08:16:50]req_shift_opened done [08:16:50]requested_item shift.open_date is exist - process it [08:16:50]req_shift_open_date [08:16:50]req_shift_open_date done [08:16:50]produce_requested_data done [08:16:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148678,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:16:50]process_action_free close_receipt [08:16:50]json_value_free [08:16:50]json_value_free done [08:16:50]process_json_proto returns [08:16:50]Send response to host [08:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148678,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:16:50]free response buf [08:16:50]execute_script done [08:16:50]execute_script returns [08:16:50]free content buf [08:16:50]Sock 7.Close socket [08:16:50]Sock 7.Thread stoped [08:16:51]accept exits with 9 [08:16:51]New connection [08:16:51]New thread 3066666340 created [08:16:51]Thread 3066809700 joined [08:16:51]Waiting for new connection... [08:16:51] Sock 9.Parse request [08:16:51]Sock 9.Check first char [08:16:51]Sock 9.First char is OK [08:16:51]request: POST /json_proto HTTP/1.0 [08:16:51]Method: POST [08:16:51]URL: /json_proto [08:16:51]Method is POST - this is cgi request [08:16:51]url: /json_proto [08:16:51]query_string will be loaded in cgi processing [08:16:51]execute_cgi json_proto POST (null) [08:16:51]execute_cgi path=json_proto method=POST [08:16:51]POST find Content-Length [08:16:51]Host: 172.17.38.4:8080 [08:16:51]Content-Length: 674 [08:16:51]Content-Type: application/json [08:16:51] [08:16:51]POST finish read [08:16:51]Found Content-Length = 674 [08:16:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [08:16:51]execute_script... [08:16: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)979603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [08:16:51]POST & json_proto [08:16:51]process_json_proto [08:16:51]json parsed OK: [08:16:51]protocol is kg_v1.0 [08:16:51]action value=close_receipt [08:16:51]process_action close_receipt [08:16:51]cmd_close_receipt [08:16:51]MH_GetDate [08:16:51]Write to MH i2c: F0 00 00 0B 0E 08 [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: F0 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: F0 09 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: F0 09 00 0B 0E 00 75 CD 5E 66 CC 51 87 64 1F [08:16:51]GetLastDocTimeStamp 1717489008 [08:16:51]current date 1717489013 [08:16:51]FM_GetShiftState [08:16:51]SAM_PROTO_GetShiftState [08:16:51]wFMCommunicate request_size=4 [08:16:51]MH_SAM_APDU [08:16:51]CAPDU: 80 13 01 00 [08:16:51]Write to MH i2c: E2 08 00 0C 0E 80 13 01 00 00 00 00 00 97 [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: E2 [08:16:51]MH_I2C_Read... [08:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:51]Read from MH i2c: E2 0E 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: E2 0E 00 0C 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5A [08:16:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:16:51]wFMCommunicate OK [08:16:51]SAM_PROTO_GetShiftState done [08:16:51]FM_GetShiftState done [08:16:51]opened in 1717460629 [08:16:51]opened+sec_in_day 1717547029 [08:16:51]quantity*price = 60069 [08:16:51]sum+1 = 60071 [08:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 18 04.06.2024 08:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148679 ФПД: 70951749183798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081653&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148679&fm=70951749183798&tin=02508201610067®Number=0000000000092720&sum=60000 [08:16:52]StoreToDocumentArchive [08:16:52]shift 368 fd 148679 [08:16:52]save to /storage/0368/doc_00148679 [08:16:52]save last doc name /storage/0368/doc_00148679 to /storage/kkm_last_doc_name [08:16:52]save OK [08:16:52]Clear old archive folders... [08:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:16:52]tlvbuf is 015EAFA0 [08:16:52]SAM_PROTO_ClearQueue [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 09 00 00 [08:16:52]Write to MH i2c: E2 08 00 19 0E 80 09 00 00 00 00 00 00 99 [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:52]Read from MH i2c: E2 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 03 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 03 00 19 0E 00 90 00 9B [08:16:52]RAPDU: 90 00 [08:16:52]wFMCommunicate OK [08:16:52]SAM_PROTO_ClearQueue done [08:16:52]KKMCreateOFDPacket [08:16:52]OFDProtocolAddRootSTLVToBuf [08:16:52]FM_MakeSignedData [08:16:52]FM_MakeSignedData [08:16:52]SAM_PROTO_SignData [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 0D 01 02 [08:16:52]Write to MH i2c: E2 08 00 1A 0E 80 0D 01 02 00 00 00 00 A1 [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:52]Read from MH i2c: E2 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 03 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 03 00 1A 0E 00 90 00 9C [08:16:52]RAPDU: 90 00 [08:16:52]wFMCommunicate OK [08:16:52]wFMCommunicate request_size=255 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 75 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C7 44 02 00 35 04 06 00 40 87 BD CE [08:16:52]Write to MH i2c: E2 02 01 1B 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 75 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C7 44 02 00 35 04 06 00 40 87 BD CE 00 00 04 [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:53]Read from MH i2c: E2 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 03 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 03 00 1B 0E 00 90 00 9D [08:16:53]RAPDU: 90 00 [08:16:53]wFMCommunicate OK [08:16:53]wFMCommunicate request_size=7 [08:16:53]MH_SAM_APDU [08:16:53]CAPDU: 80 0D 02 02 02 69 36 [08:16:53]Write to MH i2c: E2 0A 00 1C 0E 80 0D 02 02 02 00 69 36 00 00 47 [08:16:53]Write i2c OK [08:16:53]MH_I2C_Read... [08:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:53]Read from MH i2c: E2 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 03 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [08:16:53]RAPDU: 90 00 [08:16:53]wFMCommunicate OK [08:16:53]wFMCommunicate request_size=4 [08:16:53]MH_SAM_APDU [08:16:53]CAPDU: 80 0D 03 02 [08:16:53]Write to MH i2c: E2 08 00 1D 0E 80 0D 03 02 00 00 00 00 A6 [08:16:53]Write i2c OK [08:16:53]MH_I2C_Read... [08:16:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:53]Read from MH i2c: E2 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 0B 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 0B 00 1D 0E 00 F9 DE A2 64 A9 F6 C0 65 90 00 48 [08:16:53]RAPDU: F9 DE A2 64 A9 F6 C0 65 90 00 [08:16:53]wFMCommunicate OK [08:16:53]SAM_PROTO_SignData done [08:16:53]FM_MakeSignedData done [08:16:53]CreateOFDProtocolMessage [08:16:53]wFMCommunicate request_size=4 [08:16:53]MH_SAM_APDU [08:16:53]CAPDU: 80 11 00 00 [08:16:53]Write to MH i2c: E2 08 00 1E 0E 80 11 00 00 00 00 00 00 A6 [08:16:53]Write i2c OK [08:16:53]MH_I2C_Read... [08:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:53]Read from MH i2c: E2 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 17 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 17 00 1E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F9 [08:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:16:53]wFMCommunicate OK [08:16:53]CreateOFDProtocolMessage done [08:16:53]OFDSenderStorePacket 148679 [08:16:53]StoreOFDPacket docnum=148679 [08:16:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 D4 97 04 01 8E E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 75 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C7 44 02 00 35 04 06 00 40 87 BD CE 69 36 F9 DE A2 64 A9 F6 C0 65 [08:16:53]CheckFolder [08:16:53]dirname=/storage/ofd_packets [08:16:53]CheckFolder done [08:16:53]ProducePacketName [08:16:53]name=ofd_packets/00148679 [08:16:53]NVStorageSaveData ofd_packets/00148679 [08:16:53]File name is /storage/ofd_packets/00148679 [08:16:53]Write 298 bytes [08:16:53]NVStorageSaveData done [08:16:53]OFDSenderStorePacket done [08:16:53]KKMCreateOFDPacket done [08:16:53]NVStorageSaveData kkm_last_timestamp [08:16:53]File name is /storage/kkm_last_timestamp [08:16:53]Write 4 bytes [08:16:53]NVStorageSaveData done [08:16:53]ExternCall_PrintAddStr [08:16:53]wPrintStart [08:16:53]Write to MH i2c: 01 00 00 1F 0E 2D [08:16:53]OFD Sender: Processing packet 148679 [packets to send 100, broken 99] [08:16:53]ProducePacketName [08:16:53]name=ofd_packets/00148679 [08:16:53]OFD Sender: To server: pG, [08:16:53]CommunicateWithHost lk.salyk.kg:30040 [08:16:53]ConnectInit lk.salyk.kg [08:16:53]Write i2c OK [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: 01 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: 01 07 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: 01 07 00 1F 0E 00 00 00 00 00 FF 0F 42 [08:16:53]RasterBufferAndPrint [08:16:53]line Счет N : (1)979603 [08:16:53]line ИНН: 02508201610067 [08:16:53]line Контрольно-Кассовый Чек [08:16:53]line ПРОДАЖА [08:16:53]line ТРК (МРК, ГНК) : 11 [08:16:53]line Товар: 2710194210 [08:16:53]line ДТ-К-5 [08:16:53]line 8.240 * 72.90 [08:16:53]line = 600.70 [08:16:53]line НДС 12% НСП 1% [08:16:53]line > о реализуемом товаре [08:16:53]line ОКРУГЛЕНИЕ: -0.70 [08:16:53]line ИТОГО: 600.00 [08:16:53]line Внесено: 600.00 [08:16:53]line СДАЧА: 0.00 [08:16:53]line НСП 1% : 5.32 [08:16:53]line НДС 12% : 63.79 [08:16:53]line Наличными: 600.00 [08:16:53]line Безнал.: 0.00 [08:16:53]line Место: АЗС № 68 "Партнер Нефть" [08:16:53]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:16:53]line СНО: Общий режим [08:16:53]line Чек 18 04.06.2024 08:16 [08:16:53]line Смена: 368 ФФД: 1.0 [08:16:53]line ЗНМ: 0300000035 [08:16:53]line РНМ: 0000000000092720 [08:16:53]line Версия ККМ: 001 [08:16:53]line ФМ: 0000000000875057 [08:16:53]line ФД: 148679 [08:16:53]line ФПД: 70951749183798 [08:16:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081653&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148679&fm=70951749183798&tin=02508201610067®Number=0000000000092720&sum=60000 [08:16:53]Connected sock=10 [08:16:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 D4 97 04 01 8E E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 75 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C7 44 02 00 35 04 06 00 40 87 BD CE 69 36 F9 DE A2 64 A9 F6 C0 65 [08:16:53]written 0, free lines is 4095 [08:16:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D2 7C 47 00 A0 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 38 37 35 30 35 37 10 04 04 00 C7 44 02 00 F4 03 04 00 9A 74 5E 66 B6 04 01 00 00 FB 5E B3 87 83 50 A9 6B [08:16:53]CommunicateWithHost err = 0 [08:16:53]CheckOFDResponse [08:16:53]1017 (14) - 77093643461234 [08:16:53]1041 (16) - 0000000000875057 [08:16:53]1040 (4) - 148679 [08:16:53]1012 (4) - 04.06.2024 01:57 [08:16:53]1206 (1) - 0 [08:16:53]OFD Sender: Remove packet 148679 [08:16:53]ProducePacketName [08:16:53]name=ofd_packets/00148679 [08:16:53]NVStorageDeleteData [08:16:54]Write to MH i2c: 01 00 00 4A 0E 58 [08:16:54]Write i2c OK [08:16:54]MH_I2C_Read... [08:16:54]Read from MH i2c: 01 [08:16:54]MH_I2C_Read... [08:16:54]Read from MH i2c: 01 07 00 [08:16:54]MH_I2C_Read... [08:16:54]Read from MH i2c: 01 07 00 4A 0E 00 00 00 00 00 70 0C DB [08:16:54]RasterBufferAndPrint [08:16:54]line [08:16:54]line [08:16:54]line [08:16:54]line [08:16:54]line [08:16:54]written 0, free lines is 3190 [08:16:54]MH_Cut [08:16:54]Write to MH i2c: D1 01 00 51 0E 01 31 [08:16:54]Write i2c OK [08:16:54]MH_I2C_Read... [08:16:54]Read from MH i2c: D1 [08:16:54]MH_I2C_Read... [08:16:54]Read from MH i2c: D1 01 00 [08:16:54]MH_I2C_Read... [08:16:54]Read from MH i2c: D1 01 00 51 0E 00 30 [08:16:54]Write to MH i2c: 01 00 00 52 0E 60 [08:16:54]Write i2c OK [08:16:54]MH_I2C_Read... [08:16:54]OFD Sender: No OFD packet to send [08:16:55]*** Cut start [08:16:55]*** Partial cut [08:16:55]*** CUTSNS_PIN = 1 [08:16:55]*** CUTSNS_PIN = 0 [08:16:55]*** Brake cut motor [08:16:56]Read from MH i2c: 01 [08:16:56]MH_I2C_Read... [08:16:56]*** Stop cut motor [08:16:56]*** Cut end [08:16:56]Read from MH i2c: 01 07 00 [08:16:56]MH_I2C_Read... [08:16:56]Read from MH i2c: 01 07 00 52 0E 00 00 00 00 00 FF 0F 75 [08:16:56]process_action close_receipt done [08:16:56]requested_data is exist [08:16:56]produce_requested_data [08:16:56]requested_item fm.sn is exist - process it [08:16:56]wFMCommunicate request_size=4 [08:16:56]MH_SAM_APDU [08:16:56]CAPDU: 80 11 00 00 [08:16:56]Write to MH i2c: E2 08 00 53 0E 80 11 00 00 00 00 00 00 DB [08:16:56]Write i2c OK [08:16:56]MH_I2C_Read... [08:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:56]Read from MH i2c: E2 [08:16:56]MH_I2C_Read... [08:16:56]Read from MH i2c: E2 17 00 [08:16:56]MH_I2C_Read... [08:16:56]Read from MH i2c: E2 17 00 53 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2E [08:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:16:56]wFMCommunicate OK [08:16:56]requested_item fd.num is exist - process it [08:16:56]SAM_PROTO_GetFieldsCounters [08:16:56]wFMCommunicate request_size=4 [08:16:56]MH_SAM_APDU [08:16:56]CAPDU: 80 13 00 00 [08:16:56]Write to MH i2c: E2 08 00 54 0E 80 13 00 00 00 00 00 00 DE [08:16:56]Write i2c OK [08:16:56]MH_I2C_Read... [08:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:56]Read from MH i2c: E2 [08:16:56]MH_I2C_Read... [08:16:56]Read from MH i2c: E2 62 00 [08:16:56]MH_I2C_Read... [08:16:56]Read from MH i2c: E2 62 00 54 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C7 44 02 00 0E 04 04 00 70 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 AE [08:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C7 44 02 00 0E 04 04 00 70 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:16:56]wFMCommunicate OK [08:16:56]SAM_PROTO_GetFieldsCounters done [08:16:56]requested_item shift.num is exist - process it [08:16:56]requested_item shift.opened is exist - process it [08:16:56]req_shift_opened [08:16:56]FM_GetShiftState [08:16:56]SAM_PROTO_GetShiftState [08:16:56]wFMCommunicate request_size=4 [08:16:56]MH_SAM_APDU [08:16:56]CAPDU: 80 13 01 00 [08:16:56]Write to MH i2c: E2 08 00 55 0E 80 13 01 00 00 00 00 00 E0 [08:16:56]Write i2c OK [08:16:56]MH_I2C_Read... [08:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:56]Read from MH i2c: E2 [08:16:56]MH_I2C_Read... [08:16:56]Read from MH i2c: E2 0E 00 [08:16:56]MH_I2C_Read... [08:16:56]Read from MH i2c: E2 0E 00 55 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A3 [08:16:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:16:56]wFMCommunicate OK [08:16:56]SAM_PROTO_GetShiftState done [08:16:56]FM_GetShiftState done [08:16:56]req_shift_opened done [08:16:56]requested_item shift.open_date is exist - process it [08:16:56]req_shift_open_date [08:16:56]req_shift_open_date done [08:16:56]produce_requested_data done [08:16:56]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148679,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:16:56]process_action_free close_receipt [08:16:56]json_value_free [08:16:56]json_value_free done [08:16:56]process_json_proto returns [08:16:56]Send response to host [08:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148679,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:16:56]free response buf [08:16:56]execute_script done [08:16:56]execute_script returns [08:16:56]free content buf [08:16:56]Sock 9.Close socket [08:16:56]Sock 9.Thread stoped [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:25]accept exits with 7 [08:18:25]New connection [08:18:25]New thread 3066809700 created [08:18:25]Thread 3066666340 joined [08:18:25]Waiting for new connection... [08:18:25] Sock 7.Parse request [08:18:25]Sock 7.Check first char [08:18:25]Sock 7.First char is OK [08:18:25]request: POST /json_proto HTTP/1.0 [08:18:25]Method: POST [08:18:25]URL: /json_proto [08:18:25]Method is POST - this is cgi request [08:18:25]url: /json_proto [08:18:25]query_string will be loaded in cgi processing [08:18:25]execute_cgi json_proto POST (null) [08:18:25]execute_cgi path=json_proto method=POST [08:18:25]POST find Content-Length [08:18:25]Host: 172.17.38.4:8080 [08:18:25]Content-Length: 653 [08:18:25]Content-Type: application/json [08:18:25] [08:18:25]POST finish read [08:18:25]Found Content-Length = 653 [08:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11897", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:25]execute_script... [08:18:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11897", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:25]POST & json_proto [08:18:25]process_json_proto [08:18:25]json parsed OK: [08:18:25]protocol is kg_v1.0 [08:18:25]action value=close_receipt [08:18:25]process_action close_receipt [08:18:25]cmd_close_receipt [08:18:25]MH_GetDate [08:18:25]Write to MH i2c: F0 00 00 56 0E 53 [08:18:25]Write i2c OK [08:18:25]MH_I2C_Read... [08:18:25]Read from MH i2c: F0 [08:18:25]MH_I2C_Read... [08:18:25]Read from MH i2c: F0 09 00 [08:18:25]MH_I2C_Read... [08:18:25]Read from MH i2c: F0 09 00 56 0E 00 D3 CD 5E 66 CC 51 87 64 C8 [08:18:25]GetLastDocTimeStamp 1717489013 [08:18:25]current date 1717489107 [08:18:25]FM_GetShiftState [08:18:25]SAM_PROTO_GetShiftState [08:18:25]wFMCommunicate request_size=4 [08:18:25]MH_SAM_APDU [08:18:25]CAPDU: 80 13 01 00 [08:18:25]Write to MH i2c: E2 08 00 57 0E 80 13 01 00 00 00 00 00 E2 [08:18:25]Write i2c OK [08:18:25]MH_I2C_Read... [08:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:25]Read from MH i2c: E2 [08:18:25]MH_I2C_Read... [08:18:25]Read from MH i2c: E2 0E 00 [08:18:25]MH_I2C_Read... [08:18:25]Read from MH i2c: E2 0E 00 57 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A5 [08:18:25]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:18:25]wFMCommunicate OK [08:18:25]SAM_PROTO_GetShiftState done [08:18:25]FM_GetShiftState done [08:18:25]opened in 1717460629 [08:18:25]opened+sec_in_day 1717547029 [08:18:25]quantity*price = 9500 [08:18:25]sum+1 = 9501 [08:18:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 19 04.06.2024 08:18 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148680 ФПД: 119497708962421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081827&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148680&fm=119497708962421&tin=02508201610067®Number=0000000000092720&sum=9500 0 [08:18:26]StoreToDocumentArchive [08:18:26]shift 368 fd 148680 [08:18:26]save to /storage/0368/doc_00148680 [08:18:26]save last doc name /storage/0368/doc_00148680 to /storage/kkm_last_doc_name [08:18:26]save OK [08:18:26]Clear old archive folders... [08:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=293 [08:18:26]tlvbuf is B6E9E620 [08:18:26]SAM_PROTO_ClearQueue [08:18:26]wFMCommunicate request_size=4 [08:18:26]MH_SAM_APDU [08:18:26]CAPDU: 80 09 00 00 [08:18:26]Write to MH i2c: E2 08 00 64 0E 80 09 00 00 00 00 00 00 E4 [08:18:26]Write i2c OK [08:18:26]MH_I2C_Read... [08:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:26]Read from MH i2c: E2 [08:18:26]MH_I2C_Read... [08:18:26]Read from MH i2c: E2 03 00 [08:18:26]MH_I2C_Read... [08:18:26]Read from MH i2c: E2 03 00 64 0E 00 90 00 E6 [08:18:26]RAPDU: 90 00 [08:18:26]wFMCommunicate OK [08:18:26]SAM_PROTO_ClearQueue done [08:18:26]KKMCreateOFDPacket [08:18:26]OFDProtocolAddRootSTLVToBuf [08:18:26]FM_MakeSignedData [08:18:26]FM_MakeSignedData [08:18:26]SAM_PROTO_SignData [08:18:26]wFMCommunicate request_size=4 [08:18:26]MH_SAM_APDU [08:18:26]CAPDU: 80 0D 01 02 [08:18:26]Write to MH i2c: E2 08 00 65 0E 80 0D 01 02 00 00 00 00 EC [08:18:26]Write i2c OK [08:18:26]MH_I2C_Read... [08:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:26]Read from MH i2c: E2 [08:18:26]MH_I2C_Read... [08:18:26]Read from MH i2c: E2 03 00 [08:18:26]MH_I2C_Read... [08:18:26]Read from MH i2c: E2 03 00 65 0E 00 90 00 E7 [08:18:26]RAPDU: 90 00 [08:18:26]wFMCommunicate OK [08:18:26]wFMCommunicate request_size=255 [08:18:26]MH_SAM_APDU [08:18:26]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D3 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [08:18:26]Write to MH i2c: E2 02 01 66 0E 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D3 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 74 [08:18:26]Write i2c OK [08:18:26]MH_I2C_Read... [08:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:26]Read from MH i2c: E2 [08:18:26]MH_I2C_Read... [08:18:26]Read from MH i2c: E2 03 00 [08:18:26]MH_I2C_Read... [08:18:26]Read from MH i2c: E2 03 00 66 0E 00 90 00 E8 [08:18:26]RAPDU: 90 00 [08:18:26]wFMCommunicate OK [08:18:26]wFMCommunicate request_size=52 [08:18:26]MH_SAM_APDU [08:18:26]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C8 44 02 00 35 04 06 00 6C AE BA 7E 82 75 [08:18:26]Write to MH i2c: E2 37 00 67 0E 80 0D 02 02 2F 00 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C8 44 02 00 35 04 06 00 6C AE BA 7E 82 75 00 00 04 [08:18:26]Write i2c OK [08:18:26]MH_I2C_Read... [08:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:26]Read from MH i2c: E2 [08:18:26]MH_I2C_Read... [08:18:26]Read from MH i2c: E2 03 00 [08:18:26]MH_I2C_Read... [08:18:26]Read from MH i2c: E2 03 00 67 0E 00 90 00 E9 [08:18:26]RAPDU: 90 00 [08:18:26]wFMCommunicate OK [08:18:26]wFMCommunicate request_size=4 [08:18:26]MH_SAM_APDU [08:18:26]CAPDU: 80 0D 03 02 [08:18:26]Write to MH i2c: E2 08 00 68 0E 80 0D 03 02 00 00 00 00 F1 [08:18:26]Write i2c OK [08:18:26]MH_I2C_Read... [08:18:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:27]Read from MH i2c: E2 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 0B 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 0B 00 68 0E 00 F8 82 F6 8D 62 D4 78 2A 90 00 C7 [08:18:27]RAPDU: F8 82 F6 8D 62 D4 78 2A 90 00 [08:18:27]wFMCommunicate OK [08:18:27]SAM_PROTO_SignData done [08:18:27]FM_MakeSignedData done [08:18:27]CreateOFDProtocolMessage [08:18:27]wFMCommunicate request_size=4 [08:18:27]MH_SAM_APDU [08:18:27]CAPDU: 80 11 00 00 [08:18:27]Write to MH i2c: E2 08 00 69 0E 80 11 00 00 00 00 00 00 F1 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:27]Read from MH i2c: E2 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 17 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: E2 17 00 69 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 44 [08:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:18:27]wFMCommunicate OK [08:18:27]CreateOFDProtocolMessage done [08:18:27]OFDSenderStorePacket 148680 [08:18:27]StoreOFDPacket docnum=148680 [08:18:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 39 01 00 00 F1 84 31 01 A2 AC 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D3 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C8 44 02 00 35 04 06 00 6C AE BA 7E 82 75 F8 82 F6 8D 62 D4 78 2A [08:18:27]CheckFolder [08:18:27]dirname=/storage/ofd_packets [08:18:27]CheckFolder done [08:18:27]ProducePacketName [08:18:27]name=ofd_packets/00148680 [08:18:27]NVStorageSaveData ofd_packets/00148680 [08:18:27]File name is /storage/ofd_packets/00148680 [08:18:27]Write 343 bytes [08:18:27]NVStorageSaveData done [08:18:27]OFDSenderStorePacket done [08:18:27]KKMCreateOFDPacket done [08:18:27]NVStorageSaveData kkm_last_timestamp [08:18:27]File name is /storage/kkm_last_timestamp [08:18:27]Write 4 bytes [08:18:27]NVStorageSaveData done [08:18:27]ExternCall_PrintAddStr [08:18:27]wPrintStart [08:18:27]Write to MH i2c: 01 00 00 6A 0E 78 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 07 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 07 00 6A 0E 00 00 00 00 00 FF 0F 8D [08:18:27]RasterBufferAndPrint [08:18:27]line Счет N : (3)11897 [08:18:27]line ИНН: 02508201610067 [08:18:27]line Контрольно-Кассовый Чек [08:18:27]line ПРОДАЖА [08:18:27]line Товар: 4700000480050 [08:18:27]line Напиток Nitro Energy эн green ж/б 0,45л [08:18:27]line 1.000 * 95.00 [08:18:27]line = 95.00 [08:18:27]line НДС 12% НСП 1% [08:18:27]line > о реализуемом товаре [08:18:27]line ИТОГО: 95.00 [08:18:27]line НСП 1% : 0.84 [08:18:27]line НДС 12% : 10.09 [08:18:27]line Наличными: 95.00 [08:18:27]line Безнал.: 0.00 [08:18:27]line Место: АЗС № 68 "Партнер Нефть" [08:18:27]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:18:27]line СНО: Общий режим [08:18:27]line Чек 19 04.06.2024 08:18 [08:18:27]line Смена: 368 ФФД: 1.0 [08:18:27]line ЗНМ: 0300000035 [08:18:27]line РНМ: 0000000000092720 [08:18:27]line Версия ККМ: 001 [08:18:27]line ФМ: 0000000000875057 [08:18:27]line ФД: 148680 [08:18:27]line ФПД: 119497708962421 [08:18:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081827&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148680&fm=119497708962421&tin=02508201610067®Number=0000000000092720&sum=9500 [08:18:27]line 0 [08:18:27]OFD Sender: Processing packet 148680 [packets to send 100, broken 99] [08:18:27]ProducePacketName [08:18:27]name=ofd_packets/00148680 [08:18:27]OFD Sender: To server: pG, [08:18:27]CommunicateWithHost lk.salyk.kg:30040 [08:18:27]ConnectInit lk.salyk.kg [08:18:27]written 0, free lines is 4095 [08:18:27]Connected sock=10 [08:18:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 39 01 00 00 F1 84 31 01 A2 AC 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D3 CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C8 44 02 00 35 04 06 00 6C AE BA 7E 82 75 F8 82 F6 8D 62 D4 78 2A [08:18:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C3 43 47 00 D2 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C8 44 02 00 F4 03 04 00 F8 74 5E 66 B6 04 01 00 00 42 11 7F 87 36 46 1F 48 [08:18:27]CommunicateWithHost err = 0 [08:18:27]CheckOFDResponse [08:18:27]1017 (14) - 77093643461234 [08:18:27]1041 (16) - 0000000000875057 [08:18:27]1040 (4) - 148680 [08:18:27]1012 (4) - 04.06.2024 01:59 [08:18:27]1206 (1) - 0 [08:18:27]OFD Sender: Remove packet 148680 [08:18:27]ProducePacketName [08:18:27]name=ofd_packets/00148680 [08:18:27]NVStorageDeleteData [08:18:27]Write to MH i2c: 01 00 00 93 0E A1 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 07 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 07 00 93 0E 00 00 00 00 00 78 0C 2C [08:18:27]RasterBufferAndPrint [08:18:27]line [08:18:27]line [08:18:27]line [08:18:27]line [08:18:27]line [08:18:27]written 0, free lines is 3198 [08:18:27]MH_Cut [08:18:27]Write to MH i2c: D1 01 00 9A 0E 01 7A [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: D1 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: D1 01 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: D1 01 00 9A 0E 00 79 [08:18:27]Write to MH i2c: 01 00 00 9B 0E A9 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:28]OFD Sender: No OFD packet to send [08:18:29]*** Cut start [08:18:29]*** Partial cut [08:18:29]*** CUTSNS_PIN = 1 [08:18:29]*** CUTSNS_PIN = 0 [08:18:29]*** Brake cut motor [08:18:29]Read from MH i2c: 01 [08:18:29]MH_I2C_Read... [08:18:29]*** Stop cut motor [08:18:29]*** Cut end [08:18:29]Read from MH i2c: 01 07 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: 01 07 00 9B 0E 00 00 00 00 00 FF 0F BE [08:18:29]process_action close_receipt done [08:18:29]requested_data is exist [08:18:29]produce_requested_data [08:18:29]requested_item fm.sn is exist - process it [08:18:29]wFMCommunicate request_size=4 [08:18:29]MH_SAM_APDU [08:18:29]CAPDU: 80 11 00 00 [08:18:29]Write to MH i2c: E2 08 00 9C 0E 80 11 00 00 00 00 00 00 24 [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:29]Read from MH i2c: E2 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 17 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 17 00 9C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 77 [08:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:18:29]wFMCommunicate OK [08:18:29]requested_item fd.num is exist - process it [08:18:29]SAM_PROTO_GetFieldsCounters [08:18:29]wFMCommunicate request_size=4 [08:18:29]MH_SAM_APDU [08:18:29]CAPDU: 80 13 00 00 [08:18:29]Write to MH i2c: E2 08 00 9D 0E 80 13 00 00 00 00 00 00 27 [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:29]Read from MH i2c: E2 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 62 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 62 00 9D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C8 44 02 00 0E 04 04 00 70 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 FB [08:18:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C8 44 02 00 0E 04 04 00 70 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 [08:18:29]wFMCommunicate OK [08:18:29]SAM_PROTO_GetFieldsCounters done [08:18:29]requested_item shift.num is exist - process it [08:18:29]requested_item shift.opened is exist - process it [08:18:29]req_shift_opened [08:18:29]FM_GetShiftState [08:18:29]SAM_PROTO_GetShiftState [08:18:29]wFMCommunicate request_size=4 [08:18:29]MH_SAM_APDU [08:18:29]CAPDU: 80 13 01 00 [08:18:29]Write to MH i2c: E2 08 00 9E 0E 80 13 01 00 00 00 00 00 29 [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 0E 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 0E 00 9E 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EC [08:18:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:18:30]wFMCommunicate OK [08:18:30]SAM_PROTO_GetShiftState done [08:18:30]FM_GetShiftState done [08:18:30]req_shift_opened done [08:18:30]requested_item shift.open_date is exist - process it [08:18:30]req_shift_open_date [08:18:30]req_shift_open_date done [08:18:30]produce_requested_data done [08:18:30]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148680,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:18:30]process_action_free close_receipt [08:18:30]json_value_free [08:18:30]json_value_free done [08:18:30]process_json_proto returns [08:18:30]Send response to host [08:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148680,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:18:30]free response buf [08:18:30]execute_script done [08:18:30]execute_script returns [08:18:30]free content buf [08:18:30]Sock 7.Close socket [08:18:30]Sock 7.Thread stoped [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:52]accept exits with 9 [08:18:52]New connection [08:18:52]New thread 3066666340 created [08:18:52]Thread 3066809700 joined [08:18:52]Waiting for new connection... [08:18:52] Sock 9.Parse request [08:18:52]Sock 9.Check first char [08:18:52]Sock 9.First char is OK [08:18:52]request: POST /json_proto HTTP/1.0 [08:18:52]Method: POST [08:18:52]URL: /json_proto [08:18:52]Method is POST - this is cgi request [08:18:52]url: /json_proto [08:18:52]query_string will be loaded in cgi processing [08:18:52]execute_cgi json_proto POST (null) [08:18:52]execute_cgi path=json_proto method=POST [08:18:52]POST find Content-Length [08:18:52]Host: 172.17.38.4:8080 [08:18:52]Content-Length: 787 [08:18:52]Content-Type: application/json [08:18:52] [08:18:52]POST finish read [08:18:52]Found Content-Length = 787 [08:18:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.180, "sum" : 450.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 450.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:52]execute_script... [08:18: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)979604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.180, "sum" : 450.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 450.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:52]POST & json_proto [08:18:52]process_json_proto [08:18:52]json parsed OK: [08:18:52]protocol is kg_v1.0 [08:18:52]action value=close_receipt [08:18:52]process_action close_receipt [08:18:52]cmd_close_receipt [08:18:52]MH_GetDate [08:18:52]Write to MH i2c: F0 00 00 9F 0E 9C [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: F0 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: F0 09 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: F0 09 00 9F 0E 00 EF CD 5E 66 CC 51 87 64 2D [08:18:52]GetLastDocTimeStamp 1717489107 [08:18:52]current date 1717489135 [08:18:52]FM_GetShiftState [08:18:52]SAM_PROTO_GetShiftState [08:18:52]wFMCommunicate request_size=4 [08:18:52]MH_SAM_APDU [08:18:52]CAPDU: 80 13 01 00 [08:18:52]Write to MH i2c: E2 08 00 A0 0E 80 13 01 00 00 00 00 00 2B [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 0E 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 0E 00 A0 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EE [08:18:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:18:52]wFMCommunicate OK [08:18:52]SAM_PROTO_GetShiftState done [08:18:52]FM_GetShiftState done [08:18:52]opened in 1717460629 [08:18:52]opened+sec_in_day 1717547029 [08:18:52]quantity*price = 45052 [08:18:52]sum+1 = 45053 [08:18:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.52 НСП 1% : 3.99 НДС 12% : 47.84 Наличными: 0.00 Безнал.: 450.52 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 20 04.06.2024 08:18 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148681 ФПД: 231249730211335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081855&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148681&fm=231249730211335&tin=02508201610067®Number=0000000000092720&sum=45052 [08:18:53]StoreToDocumentArchive [08:18:53]shift 368 fd 148681 [08:18:53]save to /storage/0368/doc_00148681 [08:18:53]save last doc name /storage/0368/doc_00148681 to /storage/kkm_last_doc_name [08:18:53]save OK [08:18:53]Clear old archive folders... [08:18:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:18:53]tlvbuf is 015A7D20 [08:18:53]SAM_PROTO_ClearQueue [08:18:53]wFMCommunicate request_size=4 [08:18:53]MH_SAM_APDU [08:18:53]CAPDU: 80 09 00 00 [08:18:53]Write to MH i2c: E2 08 00 AD 0E 80 09 00 00 00 00 00 00 2D [08:18:53]Write i2c OK [08:18:53]MH_I2C_Read... [08:18:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:53]Read from MH i2c: E2 [08:18:53]MH_I2C_Read... [08:18:53]Read from MH i2c: E2 03 00 [08:18:53]MH_I2C_Read... [08:18:53]Read from MH i2c: E2 03 00 AD 0E 00 90 00 2F [08:18:53]RAPDU: 90 00 [08:18:53]wFMCommunicate OK [08:18:53]SAM_PROTO_ClearQueue done [08:18:53]KKMCreateOFDPacket [08:18:53]OFDProtocolAddRootSTLVToBuf [08:18:53]FM_MakeSignedData [08:18:53]FM_MakeSignedData [08:18:53]SAM_PROTO_SignData [08:18:53]wFMCommunicate request_size=4 [08:18:53]MH_SAM_APDU [08:18:53]CAPDU: 80 0D 01 02 [08:18:53]Write to MH i2c: E2 08 00 AE 0E 80 0D 01 02 00 00 00 00 35 [08:18:53]Write i2c OK [08:18:53]MH_I2C_Read... [08:18:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:53]Read from MH i2c: E2 [08:18:53]MH_I2C_Read... [08:18:53]Read from MH i2c: E2 03 00 [08:18:53]MH_I2C_Read... [08:18:53]Read from MH i2c: E2 03 00 AE 0E 00 90 00 30 [08:18:53]RAPDU: 90 00 [08:18:53]wFMCommunicate OK [08:18:53]wFMCommunicate request_size=255 [08:18:53]MH_SAM_APDU [08:18:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 FC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EF CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C9 44 02 00 35 04 06 00 D2 52 06 06 [08:18:53]Write to MH i2c: E2 02 01 AF 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 FC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EF CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C9 44 02 00 35 04 06 00 D2 52 06 06 00 00 F6 [08:18:53]Write i2c OK [08:18:53]MH_I2C_Read... [08:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:54]Read from MH i2c: E2 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 03 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 03 00 AF 0E 00 90 00 31 [08:18:54]RAPDU: 90 00 [08:18:54]wFMCommunicate OK [08:18:54]wFMCommunicate request_size=7 [08:18:54]MH_SAM_APDU [08:18:54]CAPDU: 80 0D 02 02 02 0E 07 [08:18:54]Write to MH i2c: E2 0A 00 B0 0E 80 0D 02 02 02 00 0E 07 00 00 51 [08:18:54]Write i2c OK [08:18:54]MH_I2C_Read... [08:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:54]Read from MH i2c: E2 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 03 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 03 00 B0 0E 00 90 00 32 [08:18:54]RAPDU: 90 00 [08:18:54]wFMCommunicate OK [08:18:54]wFMCommunicate request_size=4 [08:18:54]MH_SAM_APDU [08:18:54]CAPDU: 80 0D 03 02 [08:18:54]Write to MH i2c: E2 08 00 B1 0E 80 0D 03 02 00 00 00 00 3A [08:18:54]Write i2c OK [08:18:54]MH_I2C_Read... [08:18:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:54]Read from MH i2c: E2 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 0B 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 0B 00 B1 0E 00 D3 BC 1A 3E B4 BE A5 C5 90 00 FE [08:18:54]RAPDU: D3 BC 1A 3E B4 BE A5 C5 90 00 [08:18:54]wFMCommunicate OK [08:18:54]SAM_PROTO_SignData done [08:18:54]FM_MakeSignedData done [08:18:54]CreateOFDProtocolMessage [08:18:54]wFMCommunicate request_size=4 [08:18:54]MH_SAM_APDU [08:18:54]CAPDU: 80 11 00 00 [08:18:54]Write to MH i2c: E2 08 00 B2 0E 80 11 00 00 00 00 00 00 3A [08:18:54]Write i2c OK [08:18:54]MH_I2C_Read... [08:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:54]Read from MH i2c: E2 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 17 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 17 00 B2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8D [08:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:18:54]wFMCommunicate OK [08:18:54]CreateOFDProtocolMessage done [08:18:54]OFDSenderStorePacket 148681 [08:18:54]StoreOFDPacket docnum=148681 [08:18:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 5F 2A 04 01 40 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 FC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EF CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C9 44 02 00 35 04 06 00 D2 52 06 06 0E 07 D3 BC 1A 3E B4 BE A5 C5 [08:18:54]CheckFolder [08:18:54]dirname=/storage/ofd_packets [08:18:54]CheckFolder done [08:18:54]ProducePacketName [08:18:54]name=ofd_packets/00148681 [08:18:54]NVStorageSaveData ofd_packets/00148681 [08:18:54]File name is /storage/ofd_packets/00148681 [08:18:54]Write 298 bytes [08:18:54]NVStorageSaveData done [08:18:54]OFDSenderStorePacket done [08:18:54]KKMCreateOFDPacket done [08:18:54]NVStorageSaveData kkm_last_timestamp [08:18:54]File name is /storage/kkm_last_timestamp [08:18:54]Write 4 bytes [08:18:54]NVStorageSaveData done [08:18:54]ExternCall_PrintAddStr [08:18:54]wPrintStart [08:18:54]Write to MH i2c: 01 00 00 B3 0E C1 [08:18:54]Write i2c OK [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: 01 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: 01 07 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: 01 07 00 B3 0E 00 00 00 00 00 FF 0F D6 [08:18:54]RasterBufferAndPrint [08:18:54]line Счет N : (1)979604 [08:18:54]line ИНН: 02508201610067 [08:18:54]line Контрольно-Кассовый Чек [08:18:54]line ПРОДАЖА [08:18:54]line ТРК (МРК, ГНК) : 51 [08:18:54]line Товар: 2710194210 [08:18:54]line ДТ-К-5 [08:18:54]line 6.180 * 72.90 [08:18:54]line = 450.52 [08:18:54]line НДС 12% НСП 1% [08:18:54]line > о реализуемом товаре [08:18:54]line ИТОГО: 450.52 [08:18:54]line НСП 1% : 3.99 [08:18:54]line НДС 12% : 47.84 [08:18:54]line Наличными: 0.00 [08:18:54]line Безнал.: 450.52 [08:18:54]line Место: АЗС № 68 "Партнер Нефть" [08:18:54]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:18:54]line СНО: Общий режим [08:18:54]line Чек 20 04.06.2024 08:18 [08:18:54]line Смена: 368 ФФД: 1.0 [08:18:54]line ЗНМ: 0300000035 [08:18:54]line РНМ: 0000000000092720 [08:18:54]line Версия ККМ: 001 [08:18:54]line Платежная система: KICB Банк [08:18:54]line ФМ: 0000000000875057 [08:18:54]line ФД: 148681 [08:18:54]line ФПД: 231249730211335 [08:18:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081855&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148681&fm=231249730211335&tin=02508201610067®Number=0000000000092720&sum=45052 [08:18:54]OFD Sender: Processing packet 148681 [packets to send 100, broken 99] [08:18:54]ProducePacketName [08:18:54]name=ofd_packets/00148681 [08:18:54]OFD Sender: To server: pG, [08:18:54]CommunicateWithHost lk.salyk.kg:30040 [08:18:54]ConnectInit lk.salyk.kg [08:18:54]written 0, free lines is 4095 [08:18:54]Connected sock=10 [08:18:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 5F 2A 04 01 40 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 FC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 EF CD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C9 44 02 00 35 04 06 00 D2 52 06 06 0E 07 D3 BC 1A 3E B4 BE A5 C5 [08:18:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 47 76 47 00 27 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C9 44 02 00 F4 03 04 00 13 75 5E 66 B6 04 01 00 00 2C 0F 9D 9E DF B4 97 6D [08:18:54]CommunicateWithHost err = 0 [08:18:54]CheckOFDResponse [08:18:54]1017 (14) - 77093643461234 [08:18:54]1041 (16) - 0000000000875057 [08:18:54]1040 (4) - 148681 [08:18:54]1012 (4) - 04.06.2024 01:59 [08:18:54]1206 (1) - 0 [08:18:54]OFD Sender: Remove packet 148681 [08:18:54]ProducePacketName [08:18:54]name=ofd_packets/00148681 [08:18:54]NVStorageDeleteData [08:18:55]Write to MH i2c: 01 00 00 DD 0E EB [08:18:55]Write i2c OK [08:18:55]MH_I2C_Read... [08:18:55]Read from MH i2c: 01 [08:18:55]MH_I2C_Read... [08:18:55]Read from MH i2c: 01 07 00 [08:18:55]MH_I2C_Read... [08:18:55]Read from MH i2c: 01 07 00 DD 0E 00 00 00 00 00 7D 0C 7B [08:18:55]RasterBufferAndPrint [08:18:55]line [08:18:55]line [08:18:55]line [08:18:55]line [08:18:55]line [08:18:55]written 0, free lines is 3201 [08:18:55]MH_Cut [08:18:55]Write to MH i2c: D1 01 00 E4 0E 01 C4 [08:18:55]Write i2c OK [08:18:55]MH_I2C_Read... [08:18:55]Read from MH i2c: D1 [08:18:55]MH_I2C_Read... [08:18:55]Read from MH i2c: D1 01 00 [08:18:55]MH_I2C_Read... [08:18:55]Read from MH i2c: D1 01 00 E4 0E 00 C3 [08:18:55]Write to MH i2c: 01 00 00 E5 0E F3 [08:18:55]Write i2c OK [08:18:55]MH_I2C_Read... [08:18:55]OFD Sender: No OFD packet to send [08:18:56]*** Cut start [08:18:56]*** Partial cut [08:18:56]*** CUTSNS_PIN = 1 [08:18:56]*** CUTSNS_PIN = 0 [08:18:56]*** Brake cut motor [08:18:57]Read from MH i2c: 01 [08:18:57]MH_I2C_Read... [08:18:57]*** Stop cut motor [08:18:57]*** Cut end [08:18:57]Read from MH i2c: 01 07 00 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [08:18:57]process_action close_receipt done [08:18:57]requested_data is exist [08:18:57]produce_requested_data [08:18:57]requested_item fm.sn is exist - process it [08:18:57]wFMCommunicate request_size=4 [08:18:57]MH_SAM_APDU [08:18:57]CAPDU: 80 11 00 00 [08:18:57]Write to MH i2c: E2 08 00 E6 0E 80 11 00 00 00 00 00 00 6E [08:18:57]Write i2c OK [08:18:57]MH_I2C_Read... [08:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:57]Read from MH i2c: E2 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 17 00 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 17 00 E6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C1 [08:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:18:57]wFMCommunicate OK [08:18:57]requested_item fd.num is exist - process it [08:18:57]SAM_PROTO_GetFieldsCounters [08:18:57]wFMCommunicate request_size=4 [08:18:57]MH_SAM_APDU [08:18:57]CAPDU: 80 13 00 00 [08:18:57]Write to MH i2c: E2 08 00 E7 0E 80 13 00 00 00 00 00 00 71 [08:18:57]Write i2c OK [08:18:57]MH_I2C_Read... [08:18:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:57]Read from MH i2c: E2 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 62 00 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 62 00 E7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C9 44 02 00 0E 04 04 00 70 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 49 [08:18:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C9 44 02 00 0E 04 04 00 70 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 [08:18:57]wFMCommunicate OK [08:18:57]SAM_PROTO_GetFieldsCounters done [08:18:57]requested_item shift.num is exist - process it [08:18:57]requested_item shift.opened is exist - process it [08:18:57]req_shift_opened [08:18:57]FM_GetShiftState [08:18:57]SAM_PROTO_GetShiftState [08:18:57]wFMCommunicate request_size=4 [08:18:57]MH_SAM_APDU [08:18:57]CAPDU: 80 13 01 00 [08:18:57]Write to MH i2c: E2 08 00 E8 0E 80 13 01 00 00 00 00 00 73 [08:18:57]Write i2c OK [08:18:57]MH_I2C_Read... [08:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:57]Read from MH i2c: E2 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 0E 00 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 0E 00 E8 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 36 [08:18:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:18:57]wFMCommunicate OK [08:18:57]SAM_PROTO_GetShiftState done [08:18:57]FM_GetShiftState done [08:18:57]req_shift_opened done [08:18:57]requested_item shift.open_date is exist - process it [08:18:57]req_shift_open_date [08:18:57]req_shift_open_date done [08:18:57]produce_requested_data done [08:18:57]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148681,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:18:57]process_action_free close_receipt [08:18:57]json_value_free [08:18:57]json_value_free done [08:18:57]process_json_proto returns [08:18:57]Send response to host [08:18:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148681,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:18:57]free response buf [08:18:57]execute_script done [08:18:57]execute_script returns [08:18:57]free content buf [08:18:57]Sock 9.Close socket [08:18:57]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [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:40]accept exits with 7 [08:32:40]New connection [08:32:40]New thread 3066809700 created [08:32:40]Thread 3066666340 joined [08:32:40]Waiting for new connection... [08:32:40] Sock 7.Parse request [08:32:40]Sock 7.Check first char [08:32:40]Sock 7.First char is OK [08:32:40]request: POST /json_proto HTTP/1.0 [08:32:40]Method: POST [08:32:40]URL: /json_proto [08:32:40]Method is POST - this is cgi request [08:32:40]url: /json_proto [08:32:40]query_string will be loaded in cgi processing [08:32:40]execute_cgi json_proto POST (null) [08:32:40]execute_cgi path=json_proto method=POST [08:32:40]POST find Content-Length [08:32:40]Host: 172.17.38.4:8080 [08:32:40]Content-Length: 679 [08:32:40]Content-Type: application/json [08:32:40] [08:32:40]POST finish read [08:32:40]Found Content-Length = 679 [08:32:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:40]execute_script... [08:32: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)979605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:40]POST & json_proto [08:32:40]process_json_proto [08:32:40]json parsed OK: [08:32:40]protocol is kg_v1.0 [08:32:40]action value=close_receipt [08:32:40]process_action close_receipt [08:32:40]cmd_close_receipt [08:32:40]MH_GetDate [08:32:40]Write to MH i2c: F0 00 00 E9 0E E6 [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: F0 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: F0 09 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: F0 09 00 E9 0E 00 2B D1 5E 66 CC 51 87 64 B7 [08:32:40]GetLastDocTimeStamp 1717489135 [08:32:40]current date 1717489963 [08:32:40]FM_GetShiftState [08:32:40]SAM_PROTO_GetShiftState [08:32:40]wFMCommunicate request_size=4 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 13 01 00 [08:32:40]Write to MH i2c: E2 08 00 EA 0E 80 13 01 00 00 00 00 00 75 [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 0E 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 0E 00 EA 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 38 [08:32:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:32:40]wFMCommunicate OK [08:32:40]SAM_PROTO_GetShiftState done [08:32:40]FM_GetShiftState done [08:32:40]opened in 1717460629 [08:32:40]opened+sec_in_day 1717547029 [08:32:40]quantity*price = 120066 [08:32:40]sum+1 = 120067 [08:32:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.50 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 21 04.06.2024 08:32 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148682 ФПД: 109671848735764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T083243&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148682&fm=109671848735764&tin=02508201610067®Number=0000000000092720&sum=120000 [08:32:42]StoreToDocumentArchive [08:32:42]shift 368 fd 148682 [08:32:42]save to /storage/0368/doc_00148682 [08:32:42]save last doc name /storage/0368/doc_00148682 to /storage/kkm_last_doc_name [08:32:42]save OK [08:32:42]Clear old archive folders... [08:32:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:32:42]tlvbuf is B6F359D0 [08:32:42]SAM_PROTO_ClearQueue [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 09 00 00 [08:32:42]Write to MH i2c: E2 08 00 F7 0E 80 09 00 00 00 00 00 00 77 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 F7 0E 00 90 00 79 [08:32:42]RAPDU: 90 00 [08:32:42]wFMCommunicate OK [08:32:42]SAM_PROTO_ClearQueue done [08:32:42]KKMCreateOFDPacket [08:32:42]OFDProtocolAddRootSTLVToBuf [08:32:42]FM_MakeSignedData [08:32:42]FM_MakeSignedData [08:32:42]SAM_PROTO_SignData [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 0D 01 02 [08:32:42]Write to MH i2c: E2 08 00 F8 0E 80 0D 01 02 00 00 00 00 7F [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 F8 0E 00 90 00 7A [08:32:42]RAPDU: 90 00 [08:32:42]wFMCommunicate OK [08:32:42]wFMCommunicate request_size=255 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2B D1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CA 44 02 00 35 04 06 00 63 BE F7 95 [08:32:42]Write to MH i2c: E2 02 01 F9 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2B D1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CA 44 02 00 35 04 06 00 63 BE F7 95 00 00 31 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 F9 0E 00 90 00 7B [08:32:42]RAPDU: 90 00 [08:32:42]wFMCommunicate OK [08:32:42]wFMCommunicate request_size=7 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 0D 02 02 02 F4 14 [08:32:42]Write to MH i2c: E2 0A 00 FA 0E 80 0D 02 02 02 00 F4 14 00 00 8E [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 FA 0E 00 90 00 7C [08:32:42]RAPDU: 90 00 [08:32:42]wFMCommunicate OK [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 0D 03 02 [08:32:42]Write to MH i2c: E2 08 00 FB 0E 80 0D 03 02 00 00 00 00 84 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 0B 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 0B 00 FB 0E 00 CA 88 F1 7B 0A FD 66 2A 90 00 DA [08:32:42]RAPDU: CA 88 F1 7B 0A FD 66 2A 90 00 [08:32:42]wFMCommunicate OK [08:32:42]SAM_PROTO_SignData done [08:32:42]FM_MakeSignedData done [08:32:42]CreateOFDProtocolMessage [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 11 00 00 [08:32:42]Write to MH i2c: E2 08 00 FC 0E 80 11 00 00 00 00 00 00 84 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 17 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 17 00 FC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D7 [08:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:32:42]wFMCommunicate OK [08:32:42]CreateOFDProtocolMessage done [08:32:42]OFDSenderStorePacket 148682 [08:32:42]StoreOFDPacket docnum=148682 [08:32:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 13 BE 04 01 3A DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2B D1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CA 44 02 00 35 04 06 00 63 BE F7 95 F4 14 CA 88 F1 7B 0A FD 66 2A [08:32:42]CheckFolder [08:32:42]dirname=/storage/ofd_packets [08:32:42]CheckFolder done [08:32:42]ProducePacketName [08:32:42]name=ofd_packets/00148682 [08:32:42]NVStorageSaveData ofd_packets/00148682 [08:32:42]File name is /storage/ofd_packets/00148682 [08:32:42]Write 298 bytes [08:32:42]NVStorageSaveData done [08:32:42]OFDSenderStorePacket done [08:32:42]KKMCreateOFDPacket done [08:32:42]NVStorageSaveData kkm_last_timestamp [08:32:42]File name is /storage/kkm_last_timestamp [08:32:42]Write 4 bytes [08:32:42]NVStorageSaveData done [08:32:42]ExternCall_PrintAddStr [08:32:42]wPrintStart [08:32:42]Write to MH i2c: 01 00 00 FD 0E 0B [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: 01 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: 01 07 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: 01 07 00 FD 0E 00 00 00 00 00 FF 0F 20 [08:32:42]RasterBufferAndPrint [08:32:42]line Счет N : (1)979605 [08:32:42]line ИНН: 02508201610067 [08:32:42]line Контрольно-Кассовый Чек [08:32:42]line ПРОДАЖА [08:32:42]line ТРК (МРК, ГНК) : 11 [08:32:42]line Товар: 2710194210 [08:32:42]line ДТ-К-5 [08:32:42]line 16.470 * 72.90 [08:32:42]line = 1200.66 [08:32:42]line НДС 12% НСП 1% [08:32:42]line > о реализуемом товаре [08:32:42]line ОКРУГЛЕНИЕ: -0.66 [08:32:42]line ИТОГО: 1200.00 [08:32:42]line Внесено: 1200.00 [08:32:42]line СДАЧА: 0.00 [08:32:42]line НСП 1% : 10.62 [08:32:42]line НДС 12% : 127.50 [08:32:42]line Наличными: 1200.00 [08:32:42]line Безнал.: 0.00 [08:32:42]line Место: АЗС № 68 "Партнер Нефть" [08:32:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:32:42]line СНО: Общий режим [08:32:42]line Чек 21 04.06.2024 08:32 [08:32:42]line Смена: 368 ФФД: 1.0 [08:32:42]line ЗНМ: 0300000035 [08:32:42]line РНМ: 0000000000092720 [08:32:42]line Версия ККМ: 001 [08:32:42]line ФМ: 0000000000875057 [08:32:42]line ФД: 148682 [08:32:42]line ФПД: 109671848735764 [08:32:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T083243&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148682&fm=109671848735764&tin=02508201610067®Number=0000000000092720&sum=120000 [08:32:42]written 0, free lines is 4095 [08:32:42]OFD Sender: Processing packet 148682 [packets to send 100, broken 99] [08:32:42]ProducePacketName [08:32:42]name=ofd_packets/00148682 [08:32:42]OFD Sender: To server: pG, [08:32:42]CommunicateWithHost lk.salyk.kg:30040 [08:32:42]ConnectInit lk.salyk.kg [08:32:42]Connected sock=10 [08:32:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 13 BE 04 01 3A DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2B D1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CA 44 02 00 35 04 06 00 63 BE F7 95 F4 14 CA 88 F1 7B 0A FD 66 2A [08:32:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E3 95 47 00 41 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CA 44 02 00 F4 03 04 00 4F 78 5E 66 B6 04 01 00 00 47 B5 87 B0 AF 58 B1 2F [08:32:42]CommunicateWithHost err = 0 [08:32:42]CheckOFDResponse [08:32:42]1017 (14) - 77093643461234 [08:32:42]1041 (16) - 0000000000875057 [08:32:42]1040 (4) - 148682 [08:32:42]1012 (4) - 04.06.2024 02:13 [08:32:42]1206 (1) - 0 [08:32:42]OFD Sender: Remove packet 148682 [08:32:42]ProducePacketName [08:32:42]name=ofd_packets/00148682 [08:32:42]NVStorageDeleteData [08:32:43]Write to MH i2c: 01 00 00 28 0F 37 [08:32:43]Write i2c OK [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: 01 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: 01 07 00 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: 01 07 00 28 0F 00 00 00 00 00 6A 0C B4 [08:32:43]RasterBufferAndPrint [08:32:43]line [08:32:43]line [08:32:43]line [08:32:43]line [08:32:43]line [08:32:43]written 0, free lines is 3181 [08:32:43]MH_Cut [08:32:43]Write to MH i2c: D1 01 00 2F 0F 01 10 [08:32:43]Write i2c OK [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: D1 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: D1 01 00 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: D1 01 00 2F 0F 00 0F [08:32:43]Write to MH i2c: 01 00 00 30 0F 3F [08:32:43]Write i2c OK [08:32:43]MH_I2C_Read... [08:32:43]OFD Sender: No OFD packet to send [08:32:44]*** Cut start [08:32:44]*** Partial cut [08:32:44]*** CUTSNS_PIN = 1 [08:32:44]*** CUTSNS_PIN = 0 [08:32:44]*** Brake cut motor [08:32:44]Read from MH i2c: 01 [08:32:44]MH_I2C_Read... [08:32:44]*** Stop cut motor [08:32:44]*** Cut end [08:32:44]Read from MH i2c: 01 07 00 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: 01 07 00 30 0F 00 00 00 00 00 FF 0F 54 [08:32:44]process_action close_receipt done [08:32:44]requested_data is exist [08:32:44]produce_requested_data [08:32:44]requested_item fm.sn is exist - process it [08:32:44]wFMCommunicate request_size=4 [08:32:44]MH_SAM_APDU [08:32:44]CAPDU: 80 11 00 00 [08:32:44]Write to MH i2c: E2 08 00 31 0F 80 11 00 00 00 00 00 00 BA [08:32:44]Write i2c OK [08:32:44]MH_I2C_Read... [08:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:45]Read from MH i2c: E2 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 17 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 17 00 31 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0D [08:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:32:45]wFMCommunicate OK [08:32:45]requested_item fd.num is exist - process it [08:32:45]SAM_PROTO_GetFieldsCounters [08:32:45]wFMCommunicate request_size=4 [08:32:45]MH_SAM_APDU [08:32:45]CAPDU: 80 13 00 00 [08:32:45]Write to MH i2c: E2 08 00 32 0F 80 13 00 00 00 00 00 00 BD [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:45]Read from MH i2c: E2 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 62 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 62 00 32 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CA 44 02 00 0E 04 04 00 70 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 99 [08:32:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CA 44 02 00 0E 04 04 00 70 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 [08:32:45]wFMCommunicate OK [08:32:45]SAM_PROTO_GetFieldsCounters done [08:32:45]requested_item shift.num is exist - process it [08:32:45]requested_item shift.opened is exist - process it [08:32:45]req_shift_opened [08:32:45]FM_GetShiftState [08:32:45]SAM_PROTO_GetShiftState [08:32:45]wFMCommunicate request_size=4 [08:32:45]MH_SAM_APDU [08:32:45]CAPDU: 80 13 01 00 [08:32:45]Write to MH i2c: E2 08 00 33 0F 80 13 01 00 00 00 00 00 BF [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:45]Read from MH i2c: E2 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 0E 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 0E 00 33 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 82 [08:32:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:32:45]wFMCommunicate OK [08:32:45]SAM_PROTO_GetShiftState done [08:32:45]FM_GetShiftState done [08:32:45]req_shift_opened done [08:32:45]requested_item shift.open_date is exist - process it [08:32:45]req_shift_open_date [08:32:45]req_shift_open_date done [08:32:45]produce_requested_data done [08:32:45]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148682,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:32:45]process_action_free close_receipt [08:32:45]json_value_free [08:32:45]json_value_free done [08:32:45]process_json_proto returns [08:32:45]Send response to host [08:32:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148682,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:32:45]free response buf [08:32:45]execute_script done [08:32:45]execute_script returns [08:32:45]free content buf [08:32:45]Sock 7.Close socket [08:32:45]Sock 7.Thread stoped [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:51]accept exits with 9 [08:35:51]New connection [08:35:51]New thread 3066666340 created [08:35:51]Thread 3066809700 joined [08:35:51]Waiting for new connection... [08:35:51] Sock 9.Parse request [08:35:51]Sock 9.Check first char [08:35:51]Sock 9.First char is OK [08:35:51]request: POST /json_proto HTTP/1.0 [08:35:51]Method: POST [08:35:51]URL: /json_proto [08:35:51]Method is POST - this is cgi request [08:35:51]url: /json_proto [08:35:51]query_string will be loaded in cgi processing [08:35:51]execute_cgi json_proto POST (null) [08:35:51]execute_cgi path=json_proto method=POST [08:35:51]POST find Content-Length [08:35:51]Host: 172.17.38.4:8080 [08:35:51]Content-Length: 677 [08:35:51]Content-Type: application/json [08:35:51] [08:35:51]POST finish read [08:35:51]Found Content-Length = 677 [08:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:51]execute_script... [08:35: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)979606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:51]POST & json_proto [08:35:51]process_json_proto [08:35:51]json parsed OK: [08:35:51]protocol is kg_v1.0 [08:35:51]action value=close_receipt [08:35:51]process_action close_receipt [08:35:51]cmd_close_receipt [08:35:51]MH_GetDate [08:35:51]Write to MH i2c: F0 00 00 34 0F 32 [08:35:51]Write i2c OK [08:35:51]MH_I2C_Read... [08:35:51]Read from MH i2c: F0 [08:35:51]MH_I2C_Read... [08:35:51]Read from MH i2c: F0 09 00 [08:35:51]MH_I2C_Read... [08:35:51]Read from MH i2c: F0 09 00 34 0F 00 E9 D1 5E 66 CC 51 87 64 C1 [08:35:51]GetLastDocTimeStamp 1717489963 [08:35:51]current date 1717490153 [08:35:51]FM_GetShiftState [08:35:51]SAM_PROTO_GetShiftState [08:35:51]wFMCommunicate request_size=4 [08:35:51]MH_SAM_APDU [08:35:51]CAPDU: 80 13 01 00 [08:35:51]Write to MH i2c: E2 08 00 35 0F 80 13 01 00 00 00 00 00 C1 [08:35:51]Write i2c OK [08:35:51]MH_I2C_Read... [08:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:51]Read from MH i2c: E2 [08:35:51]MH_I2C_Read... [08:35:51]Read from MH i2c: E2 0E 00 [08:35:51]MH_I2C_Read... [08:35:51]Read from MH i2c: E2 0E 00 35 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 84 [08:35:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:35:51]wFMCommunicate OK [08:35:51]SAM_PROTO_GetShiftState done [08:35:51]FM_GetShiftState done [08:35:51]opened in 1717460629 [08:35:51]opened+sec_in_day 1717547029 [08:35:51]quantity*price = 30038 [08:35:51]sum+1 = 30039 [08:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 22 04.06.2024 08:35 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148683 ФПД: 129398016335828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T083553&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148683&fm=129398016335828&tin=02508201610067®Number=0000000000092720&sum=30000 [08:35:52]StoreToDocumentArchive [08:35:52]shift 368 fd 148683 [08:35:52]save to /storage/0368/doc_00148683 [08:35:52]save last doc name /storage/0368/doc_00148683 to /storage/kkm_last_doc_name [08:35:52]save OK [08:35:52]Clear old archive folders... [08:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:52]tlvbuf is 015AE970 [08:35:52]SAM_PROTO_ClearQueue [08:35:52]wFMCommunicate request_size=4 [08:35:52]MH_SAM_APDU [08:35:52]CAPDU: 80 09 00 00 [08:35:52]Write to MH i2c: E2 08 00 42 0F 80 09 00 00 00 00 00 00 C3 [08:35:52]Write i2c OK [08:35:52]MH_I2C_Read... [08:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:52]Read from MH i2c: E2 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 03 00 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 03 00 42 0F 00 90 00 C5 [08:35:52]RAPDU: 90 00 [08:35:52]wFMCommunicate OK [08:35:52]SAM_PROTO_ClearQueue done [08:35:52]KKMCreateOFDPacket [08:35:52]OFDProtocolAddRootSTLVToBuf [08:35:52]FM_MakeSignedData [08:35:52]FM_MakeSignedData [08:35:52]SAM_PROTO_SignData [08:35:52]wFMCommunicate request_size=4 [08:35:52]MH_SAM_APDU [08:35:52]CAPDU: 80 0D 01 02 [08:35:52]Write to MH i2c: E2 08 00 43 0F 80 0D 01 02 00 00 00 00 CB [08:35:52]Write i2c OK [08:35:52]MH_I2C_Read... [08:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:52]Read from MH i2c: E2 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 03 00 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 03 00 43 0F 00 90 00 C6 [08:35:52]RAPDU: 90 00 [08:35:52]wFMCommunicate OK [08:35:52]wFMCommunicate request_size=255 [08:35:52]MH_SAM_APDU [08:35:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E9 D1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CB 44 02 00 35 04 06 00 75 [08:35:52]Write to MH i2c: E2 02 01 44 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 E9 D1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CB 44 02 00 35 04 06 00 75 00 00 D4 [08:35:52]Write i2c OK [08:35:52]MH_I2C_Read... [08:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:52]Read from MH i2c: E2 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 03 00 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 03 00 44 0F 00 90 00 C7 [08:35:52]RAPDU: 90 00 [08:35:52]wFMCommunicate OK [08:35:52]wFMCommunicate request_size=10 [08:35:52]MH_SAM_APDU [08:35:52]CAPDU: 80 0D 02 02 05 AF D2 CC 5F D4 [08:35:52]Write to MH i2c: E2 0D 00 45 0F 80 0D 02 02 05 00 AF D2 CC 5F D4 00 00 58 [08:35:52]Write i2c OK [08:35:52]MH_I2C_Read... [08:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:52]Read from MH i2c: E2 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 03 00 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 03 00 45 0F 00 90 00 C8 [08:35:52]RAPDU: 90 00 [08:35:52]wFMCommunicate OK [08:35:52]wFMCommunicate request_size=4 [08:35:52]MH_SAM_APDU [08:35:52]CAPDU: 80 0D 03 02 [08:35:52]Write to MH i2c: E2 08 00 46 0F 80 0D 03 02 00 00 00 00 D0 [08:35:52]Write i2c OK [08:35:52]MH_I2C_Read... [08:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:52]Read from MH i2c: E2 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 0B 00 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 0B 00 46 0F 00 A0 CC 93 D8 94 6E 84 EB 90 00 19 [08:35:52]RAPDU: A0 CC 93 D8 94 6E 84 EB 90 00 [08:35:52]wFMCommunicate OK [08:35:52]SAM_PROTO_SignData done [08:35:52]FM_MakeSignedData done [08:35:52]CreateOFDProtocolMessage [08:35:52]wFMCommunicate request_size=4 [08:35:52]MH_SAM_APDU [08:35:52]CAPDU: 80 11 00 00 [08:35:52]Write to MH i2c: E2 08 00 47 0F 80 11 00 00 00 00 00 00 D0 [08:35:52]Write i2c OK [08:35:52]MH_I2C_Read... [08:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:53]Read from MH i2c: E2 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 17 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 17 00 47 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 23 [08:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:35:53]wFMCommunicate OK [08:35:53]CreateOFDProtocolMessage done [08:35:53]OFDSenderStorePacket 148683 [08:35:53]StoreOFDPacket docnum=148683 [08:35:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 DA FC 07 01 6D 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 E9 D1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CB 44 02 00 35 04 06 00 75 AF D2 CC 5F D4 A0 CC 93 D8 94 6E 84 EB [08:35:53]CheckFolder [08:35:53]dirname=/storage/ofd_packets [08:35:53]CheckFolder done [08:35:53]ProducePacketName [08:35:53]name=ofd_packets/00148683 [08:35:53]NVStorageSaveData ofd_packets/00148683 [08:35:53]File name is /storage/ofd_packets/00148683 [08:35:53]Write 301 bytes [08:35:53]NVStorageSaveData done [08:35:53]OFDSenderStorePacket done [08:35:53]KKMCreateOFDPacket done [08:35:53]NVStorageSaveData kkm_last_timestamp [08:35:53]File name is /storage/kkm_last_timestamp [08:35:53]Write 4 bytes [08:35:53]NVStorageSaveData done [08:35:53]ExternCall_PrintAddStr [08:35:53]wPrintStart [08:35:53]Write to MH i2c: 01 00 00 48 0F 57 [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 07 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 07 00 48 0F 00 00 00 00 00 FF 0F 6C [08:35:53]RasterBufferAndPrint [08:35:53]line Счет N : (1)979606 [08:35:53]line ИНН: 02508201610067 [08:35:53]line Контрольно-Кассовый Чек [08:35:53]line ПРОДАЖА [08:35:53]line ТРК (МРК, ГНК) : 12 [08:35:53]line Товар: 2710124130 [08:35:53]line Аи-92-К-5 [08:35:53]line 4.490 * 66.90 [08:35:53]line = 300.38 [08:35:53]line НДС 12% НСП 1% [08:35:53]line > о реализуемом товаре [08:35:53]line ОКРУГЛЕНИЕ: -0.38 [08:35:53]line ИТОГО: 300.00 [08:35:53]line Внесено: 300.00 [08:35:53]line СДАЧА: 0.00 [08:35:53]line НСП 1% : 2.66 [08:35:53]line НДС 12% : 31.90 [08:35:53]line Наличными: 300.00 [08:35:53]line Безнал.: 0.00 [08:35:53]line Место: АЗС № 68 "Партнер Нефть" [08:35:53]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:35:53]line СНО: Общий режим [08:35:53]line Чек 22 04.06.2024 08:35 [08:35:53]line Смена: 368 ФФД: 1.0 [08:35:53]line ЗНМ: 0300000035 [08:35:53]line РНМ: 0000000000092720 [08:35:53]line Версия ККМ: 001 [08:35:53]line ФМ: 0000000000875057 [08:35:53]line ФД: 148683 [08:35:53]line ФПД: 129398016335828 [08:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T083553&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148683&fm=129398016335828&tin=02508201610067®Number=0000000000092720&sum=30000 [08:35:53]OFD Sender: Processing packet 148683 [packets to send 100, broken 99] [08:35:53]ProducePacketName [08:35:53]name=ofd_packets/00148683 [08:35:53]OFD Sender: To server: pG, [08:35:53]CommunicateWithHost lk.salyk.kg:30040 [08:35:53]ConnectInit lk.salyk.kg [08:35:53]written 0, free lines is 4095 [08:35:53]Connected sock=10 [08:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 DA FC 07 01 6D 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 E9 D1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CB 44 02 00 35 04 06 00 75 AF D2 CC 5F D4 A0 CC 93 D8 94 6E 84 EB [08:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C7 DD 47 00 A3 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CB 44 02 00 F4 03 04 00 0E 79 5E 66 B6 04 01 00 00 03 89 A4 8E 2A AA 26 3C [08:35:53]CommunicateWithHost err = 0 [08:35:53]CheckOFDResponse [08:35:53]1017 (14) - 77093643461234 [08:35:53]1041 (16) - 0000000000875057 [08:35:53]1040 (4) - 148683 [08:35:53]1012 (4) - 04.06.2024 02:16 [08:35:53]1206 (1) - 0 [08:35:53]OFD Sender: Remove packet 148683 [08:35:53]ProducePacketName [08:35:53]name=ofd_packets/00148683 [08:35:53]NVStorageDeleteData [08:35:53]Write to MH i2c: 01 00 00 73 0F 82 [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 07 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: 01 07 00 73 0F 00 00 00 00 00 6F 0C 04 [08:35:53]RasterBufferAndPrint [08:35:53]line [08:35:53]line [08:35:53]line [08:35:53]line [08:35:53]line [08:35:53]written 0, free lines is 3186 [08:35:53]MH_Cut [08:35:53]Write to MH i2c: D1 01 00 7A 0F 01 5B [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: D1 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: D1 01 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: D1 01 00 7A 0F 00 5A [08:35:53]Write to MH i2c: 01 00 00 7B 0F 8A [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:54]OFD Sender: No OFD packet to send [08:35:55]*** Cut start [08:35:55]*** Partial cut [08:35:55]*** CUTSNS_PIN = 1 [08:35:55]*** CUTSNS_PIN = 0 [08:35:55]*** Brake cut motor [08:35:55]Read from MH i2c: 01 [08:35:55]MH_I2C_Read... [08:35:55]*** Stop cut motor [08:35:55]*** Cut end [08:35:55]Read from MH i2c: 01 07 00 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: 01 07 00 7B 0F 00 00 00 00 00 FF 0F 9F [08:35:55]process_action close_receipt done [08:35:55]requested_data is exist [08:35:55]produce_requested_data [08:35:55]requested_item fm.sn is exist - process it [08:35:55]wFMCommunicate request_size=4 [08:35:55]MH_SAM_APDU [08:35:55]CAPDU: 80 11 00 00 [08:35:55]Write to MH i2c: E2 08 00 7C 0F 80 11 00 00 00 00 00 00 05 [08:35:55]Write i2c OK [08:35:55]MH_I2C_Read... [08:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:55]Read from MH i2c: E2 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: E2 17 00 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: E2 17 00 7C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 58 [08:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:35:55]wFMCommunicate OK [08:35:55]requested_item fd.num is exist - process it [08:35:55]SAM_PROTO_GetFieldsCounters [08:35:55]wFMCommunicate request_size=4 [08:35:55]MH_SAM_APDU [08:35:55]CAPDU: 80 13 00 00 [08:35:55]Write to MH i2c: E2 08 00 7D 0F 80 13 00 00 00 00 00 00 08 [08:35:55]Write i2c OK [08:35:55]MH_I2C_Read... [08:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:55]Read from MH i2c: E2 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: E2 62 00 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: E2 62 00 7D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CB 44 02 00 0E 04 04 00 70 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 E8 [08:35:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CB 44 02 00 0E 04 04 00 70 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 [08:35:55]wFMCommunicate OK [08:35:55]SAM_PROTO_GetFieldsCounters done [08:35:55]requested_item shift.num is exist - process it [08:35:55]requested_item shift.opened is exist - process it [08:35:55]req_shift_opened [08:35:55]FM_GetShiftState [08:35:55]SAM_PROTO_GetShiftState [08:35:55]wFMCommunicate request_size=4 [08:35:55]MH_SAM_APDU [08:35:55]CAPDU: 80 13 01 00 [08:35:55]Write to MH i2c: E2 08 00 7E 0F 80 13 01 00 00 00 00 00 0A [08:35:55]Write i2c OK [08:35:55]MH_I2C_Read... [08:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:55]Read from MH i2c: E2 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: E2 0E 00 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 0E 00 7E 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CD [08:35:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:35:56]wFMCommunicate OK [08:35:56]SAM_PROTO_GetShiftState done [08:35:56]FM_GetShiftState done [08:35:56]req_shift_opened done [08:35:56]requested_item shift.open_date is exist - process it [08:35:56]req_shift_open_date [08:35:56]req_shift_open_date done [08:35:56]produce_requested_data done [08:35:56]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148683,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:35:56]process_action_free close_receipt [08:35:56]json_value_free [08:35:56]json_value_free done [08:35:56]process_json_proto returns [08:35:56]Send response to host [08:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148683,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:35:56]free response buf [08:35:56]execute_script done [08:35:56]execute_script returns [08:35:56]free content buf [08:35:56]Sock 9.Close socket [08:35:56]Sock 9.Thread stoped [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:48]accept exits with 7 [08:40:48]New connection [08:40:48]New thread 3066809700 created [08:40:48]Thread 3066666340 joined [08:40:48]Waiting for new connection... [08:40:48] Sock 7.Parse request [08:40:48]Sock 7.Check first char [08:40:48]Sock 7.First char is OK [08:40:48]request: POST /json_proto HTTP/1.0 [08:40:48]Method: POST [08:40:48]URL: /json_proto [08:40:48]Method is POST - this is cgi request [08:40:48]url: /json_proto [08:40:48]query_string will be loaded in cgi processing [08:40:48]execute_cgi json_proto POST (null) [08:40:48]execute_cgi path=json_proto method=POST [08:40:48]POST find Content-Length [08:40:48]Host: 172.17.38.4:8080 [08:40:48]Content-Length: 679 [08:40:48]Content-Type: application/json [08:40:48] [08:40:48]POST finish read [08:40:48]Found Content-Length = 679 [08:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [08:40:48]execute_script... [08:40:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [08:40:48]POST & json_proto [08:40:48]process_json_proto [08:40:48]json parsed OK: [08:40:48]protocol is kg_v1.0 [08:40:48]action value=close_receipt [08:40:48]process_action close_receipt [08:40:48]cmd_close_receipt [08:40:48]MH_GetDate [08:40:48]Write to MH i2c: F0 00 00 7F 0F 7D [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: F0 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: F0 09 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: F0 09 00 7F 0F 00 12 D3 5E 66 CC 51 87 64 37 [08:40:48]GetLastDocTimeStamp 1717490153 [08:40:48]current date 1717490450 [08:40:48]FM_GetShiftState [08:40:48]SAM_PROTO_GetShiftState [08:40:48]wFMCommunicate request_size=4 [08:40:48]MH_SAM_APDU [08:40:48]CAPDU: 80 13 01 00 [08:40:48]Write to MH i2c: E2 08 00 80 0F 80 13 01 00 00 00 00 00 0C [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:48]Read from MH i2c: E2 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: E2 0E 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: E2 0E 00 80 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CF [08:40:48]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:40:48]wFMCommunicate OK [08:40:48]SAM_PROTO_GetShiftState done [08:40:48]FM_GetShiftState done [08:40:48]opened in 1717460629 [08:40:48]opened+sec_in_day 1717547029 [08:40:48]quantity*price = 100018 [08:40:48]sum+1 = 100020 [08:40: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 23 04.06.2024 08:40 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148684 ФПД: 89397401025956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T084050&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148684&fm=89397401025956&tin=02508201610067®Number=0000000000092720&sum=100000 [08:40:49]StoreToDocumentArchive [08:40:49]shift 368 fd 148684 [08:40:49]save to /storage/0368/doc_00148684 [08:40:49]save last doc name /storage/0368/doc_00148684 to /storage/kkm_last_doc_name [08:40:49]save OK [08:40:49]Clear old archive folders... [08:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:40:49]tlvbuf is 015A7860 [08:40:49]SAM_PROTO_ClearQueue [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 09 00 00 [08:40:49]Write to MH i2c: E2 08 00 8D 0F 80 09 00 00 00 00 00 00 0E [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 8D 0F 00 90 00 10 [08:40:49]RAPDU: 90 00 [08:40:49]wFMCommunicate OK [08:40:49]SAM_PROTO_ClearQueue done [08:40:49]KKMCreateOFDPacket [08:40:49]OFDProtocolAddRootSTLVToBuf [08:40:49]FM_MakeSignedData [08:40:49]FM_MakeSignedData [08:40:49]SAM_PROTO_SignData [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 0D 01 02 [08:40:49]Write to MH i2c: E2 08 00 8E 0F 80 0D 01 02 00 00 00 00 16 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 03 00 8E 0F 00 90 00 11 [08:40:49]RAPDU: 90 00 [08:40:49]wFMCommunicate OK [08:40:49]wFMCommunicate request_size=255 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 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 17 00 00 00 F4 03 04 00 12 D3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CC 44 02 00 35 04 06 00 51 4E 74 54 [08:40:49]Write to MH i2c: E2 02 01 8F 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 17 00 00 00 F4 03 04 00 12 D3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CC 44 02 00 35 04 06 00 51 4E 74 54 00 00 21 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:50]Read from MH i2c: E2 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: E2 03 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: E2 03 00 8F 0F 00 90 00 12 [08:40:50]RAPDU: 90 00 [08:40:50]wFMCommunicate OK [08:40:50]wFMCommunicate request_size=7 [08:40:50]MH_SAM_APDU [08:40:50]CAPDU: 80 0D 02 02 02 FD A4 [08:40:50]Write to MH i2c: E2 0A 00 90 0F 80 0D 02 02 02 00 FD A4 00 00 BE [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:50]Read from MH i2c: E2 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: E2 03 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: E2 03 00 90 0F 00 90 00 13 [08:40:50]RAPDU: 90 00 [08:40:50]wFMCommunicate OK [08:40:50]wFMCommunicate request_size=4 [08:40:50]MH_SAM_APDU [08:40:50]CAPDU: 80 0D 03 02 [08:40:50]Write to MH i2c: E2 08 00 91 0F 80 0D 03 02 00 00 00 00 1B [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:50]Read from MH i2c: E2 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: E2 0B 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: E2 0B 00 91 0F 00 4A 86 19 CE D3 C0 2C A0 90 00 32 [08:40:50]RAPDU: 4A 86 19 CE D3 C0 2C A0 90 00 [08:40:50]wFMCommunicate OK [08:40:50]SAM_PROTO_SignData done [08:40:50]FM_MakeSignedData done [08:40:50]CreateOFDProtocolMessage [08:40:50]wFMCommunicate request_size=4 [08:40:50]MH_SAM_APDU [08:40:50]CAPDU: 80 11 00 00 [08:40:50]Write to MH i2c: E2 08 00 92 0F 80 11 00 00 00 00 00 00 1B [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:50]Read from MH i2c: E2 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: E2 17 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: E2 17 00 92 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6E [08:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:40:50]wFMCommunicate OK [08:40:50]CreateOFDProtocolMessage done [08:40:50]OFDSenderStorePacket 148684 [08:40:50]StoreOFDPacket docnum=148684 [08:40:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 28 9D 04 01 8D A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 17 00 00 00 F4 03 04 00 12 D3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CC 44 02 00 35 04 06 00 51 4E 74 54 FD A4 4A 86 19 CE D3 C0 2C A0 [08:40:50]CheckFolder [08:40:50]dirname=/storage/ofd_packets [08:40:50]CheckFolder done [08:40:50]ProducePacketName [08:40:50]name=ofd_packets/00148684 [08:40:50]NVStorageSaveData ofd_packets/00148684 [08:40:50]File name is /storage/ofd_packets/00148684 [08:40:50]Write 298 bytes [08:40:50]NVStorageSaveData done [08:40:50]OFDSenderStorePacket done [08:40:50]KKMCreateOFDPacket done [08:40:50]NVStorageSaveData kkm_last_timestamp [08:40:50]File name is /storage/kkm_last_timestamp [08:40:50]Write 4 bytes [08:40:50]NVStorageSaveData done [08:40:50]ExternCall_PrintAddStr [08:40:50]wPrintStart [08:40:50]Write to MH i2c: 01 00 00 93 0F A2 [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 93 0F 00 00 00 00 00 FF 0F B7 [08:40:50]RasterBufferAndPrint [08:40:50]line Счет N : (1)979607 [08:40:50]line ИНН: 02508201610067 [08:40:50]line Контрольно-Кассовый Чек [08:40:50]line ПРОДАЖА [08:40:50]line ТРК (МРК, ГНК) : 51 [08:40:50]line Товар: 2710194210 [08:40:50]line ДТ-К-5 [08:40:50]line 13.720 * 72.90 [08:40:50]line = 1000.19 [08:40:50]line НДС 12% НСП 1% [08:40:50]line > о реализуемом товаре [08:40:50]line ОКРУГЛЕНИЕ: -0.19 [08:40:50]line ИТОГО: 1000.00 [08:40:50]line Внесено: 1000.00 [08:40:50]line СДАЧА: 0.00 [08:40:50]line НСП 1% : 8.85 [08:40:50]line НДС 12% : 106.21 [08:40:50]line Наличными: 1000.00 [08:40:50]line Безнал.: 0.00 [08:40:50]line Место: АЗС № 68 "Партнер Нефть" [08:40:50]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:40:50]line СНО: Общий режим [08:40:50]line Чек 23 04.06.2024 08:40 [08:40:50]line Смена: 368 ФФД: 1.0 [08:40:50]line ЗНМ: 0300000035 [08:40:50]line РНМ: 0000000000092720 [08:40:50]line Версия ККМ: 001 [08:40:50]line ФМ: 0000000000875057 [08:40:50]line ФД: 148684 [08:40:50]line ФПД: 89397401025956 [08:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T084050&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148684&fm=89397401025956&tin=02508201610067®Number=0000000000092720&sum=100000 [08:40:50]OFD Sender: Processing packet 148684 [packets to send 100, broken 99] [08:40:50]ProducePacketName [08:40:50]name=ofd_packets/00148684 [08:40:50]OFD Sender: To server: pG, [08:40:50]CommunicateWithHost lk.salyk.kg:30040 [08:40:50]ConnectInit lk.salyk.kg [08:40:50]written 0, free lines is 4095 [08:40:50]Connected sock=10 [08:40:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 28 9D 04 01 8D A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 17 00 00 00 F4 03 04 00 12 D3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CC 44 02 00 35 04 06 00 51 4E 74 54 FD A4 4A 86 19 CE D3 C0 2C A0 [08:40:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 29 3F 47 00 1D 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 38 37 35 30 35 37 10 04 04 00 CC 44 02 00 F4 03 04 00 37 7A 5E 66 B6 04 01 00 00 4F 90 3F 8D 58 DA 22 8D [08:40:50]CommunicateWithHost err = 0 [08:40:50]CheckOFDResponse [08:40:50]1017 (14) - 77093643461234 [08:40:50]1041 (16) - 0000000000875057 [08:40:50]1040 (4) - 148684 [08:40:50]1012 (4) - 04.06.2024 02:21 [08:40:50]1206 (1) - 0 [08:40:50]OFD Sender: Remove packet 148684 [08:40:50]ProducePacketName [08:40:50]name=ofd_packets/00148684 [08:40:50]NVStorageDeleteData [08:40:50]Write to MH i2c: 01 00 00 BE 0F CD [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 BE 0F 00 00 00 00 00 6A 0C 4A [08:40:50]RasterBufferAndPrint [08:40:50]line [08:40:50]line [08:40:50]line [08:40:50]line [08:40:50]line [08:40:50]written 0, free lines is 3182 [08:40:50]MH_Cut [08:40:50]Write to MH i2c: D1 01 00 C5 0F 01 A6 [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: D1 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: D1 01 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: D1 01 00 C5 0F 00 A5 [08:40:50]Write to MH i2c: 01 00 00 C6 0F D5 [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:51]OFD Sender: No OFD packet to send [08:40:52]*** Cut start [08:40:52]*** Partial cut [08:40:52]*** CUTSNS_PIN = 1 [08:40:52]*** CUTSNS_PIN = 0 [08:40:52]*** Brake cut motor [08:40:52]Read from MH i2c: 01 [08:40:52]MH_I2C_Read... [08:40:52]*** Stop cut motor [08:40:52]*** Cut end [08:40:52]Read from MH i2c: 01 07 00 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 FF 0F EA [08:40:52]process_action close_receipt done [08:40:52]requested_data is exist [08:40:52]produce_requested_data [08:40:52]requested_item fm.sn is exist - process it [08:40:52]wFMCommunicate request_size=4 [08:40:52]MH_SAM_APDU [08:40:52]CAPDU: 80 11 00 00 [08:40:52]Write to MH i2c: E2 08 00 C7 0F 80 11 00 00 00 00 00 00 50 [08:40:52]Write i2c OK [08:40:52]MH_I2C_Read... [08:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:52]Read from MH i2c: E2 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 17 00 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 17 00 C7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A3 [08:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:40:52]wFMCommunicate OK [08:40:52]requested_item fd.num is exist - process it [08:40:52]SAM_PROTO_GetFieldsCounters [08:40:52]wFMCommunicate request_size=4 [08:40:52]MH_SAM_APDU [08:40:52]CAPDU: 80 13 00 00 [08:40:52]Write to MH i2c: E2 08 00 C8 0F 80 13 00 00 00 00 00 00 53 [08:40:52]Write i2c OK [08:40:52]MH_I2C_Read... [08:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:53]Read from MH i2c: E2 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 62 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 62 00 C8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CC 44 02 00 0E 04 04 00 70 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 37 [08:40:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CC 44 02 00 0E 04 04 00 70 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 [08:40:53]wFMCommunicate OK [08:40:53]SAM_PROTO_GetFieldsCounters done [08:40:53]requested_item shift.num is exist - process it [08:40:53]requested_item shift.opened is exist - process it [08:40:53]req_shift_opened [08:40:53]FM_GetShiftState [08:40:53]SAM_PROTO_GetShiftState [08:40:53]wFMCommunicate request_size=4 [08:40:53]MH_SAM_APDU [08:40:53]CAPDU: 80 13 01 00 [08:40:53]Write to MH i2c: E2 08 00 C9 0F 80 13 01 00 00 00 00 00 55 [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:53]Read from MH i2c: E2 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 0E 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 0E 00 C9 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 18 [08:40:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:40:53]wFMCommunicate OK [08:40:53]SAM_PROTO_GetShiftState done [08:40:53]FM_GetShiftState done [08:40:53]req_shift_opened done [08:40:53]requested_item shift.open_date is exist - process it [08:40:53]req_shift_open_date [08:40:53]req_shift_open_date done [08:40:53]produce_requested_data done [08:40:53]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148684,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:40:53]process_action_free close_receipt [08:40:53]json_value_free [08:40:53]json_value_free done [08:40:53]process_json_proto returns [08:40:53]Send response to host [08:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148684,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:40:53]free response buf [08:40:53]execute_script done [08:40:53]execute_script returns [08:40:53]free content buf [08:40:53]Sock 7.Close socket [08:40:53]Sock 7.Thread stoped [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41: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:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]accept exits with 9 [08:50:16]New connection [08:50:16]New thread 3066666340 created [08:50:16]Thread 3066809700 joined [08:50:16]Waiting for new connection... [08:50:16] Sock 9.Parse request [08:50:16]Sock 9.Check first char [08:50:16]Sock 9.First char is OK [08:50:16]request: POST /json_proto HTTP/1.0 [08:50:16]Method: POST [08:50:16]URL: /json_proto [08:50:16]Method is POST - this is cgi request [08:50:16]url: /json_proto [08:50:16]query_string will be loaded in cgi processing [08:50:16]execute_cgi json_proto POST (null) [08:50:16]execute_cgi path=json_proto method=POST [08:50:16]POST find Content-Length [08:50:16]Host: 172.17.38.4:8080 [08:50:16]Content-Length: 677 [08:50:16]Content-Type: application/json [08:50:16] [08:50:16]POST finish read [08:50:16]Found Content-Length = 677 [08:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:16]execute_script... [08:50:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:16]POST & json_proto [08:50:16]process_json_proto [08:50:16]json parsed OK: [08:50:16]protocol is kg_v1.0 [08:50:16]action value=close_receipt [08:50:16]process_action close_receipt [08:50:16]cmd_close_receipt [08:50:16]MH_GetDate [08:50:16]Write to MH i2c: F0 00 00 CA 0F C8 [08:50:16]Write i2c OK [08:50:16]MH_I2C_Read... [08:50:16]Read from MH i2c: F0 [08:50:16]MH_I2C_Read... [08:50:16]Read from MH i2c: F0 09 00 [08:50:16]MH_I2C_Read... [08:50:16]Read from MH i2c: F0 09 00 CA 0F 00 4B D5 5E 66 CC 51 87 64 BD [08:50:16]GetLastDocTimeStamp 1717490450 [08:50:16]current date 1717491019 [08:50:16]FM_GetShiftState [08:50:16]SAM_PROTO_GetShiftState [08:50:16]wFMCommunicate request_size=4 [08:50:16]MH_SAM_APDU [08:50:16]CAPDU: 80 13 01 00 [08:50:16]Write to MH i2c: E2 08 00 CB 0F 80 13 01 00 00 00 00 00 57 [08:50:16]Write i2c OK [08:50:16]MH_I2C_Read... [08:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:16]Read from MH i2c: E2 [08:50:16]MH_I2C_Read... [08:50:16]Read from MH i2c: E2 0E 00 [08:50:16]MH_I2C_Read... [08:50:16]Read from MH i2c: E2 0E 00 CB 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1A [08:50:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:50:16]wFMCommunicate OK [08:50:16]SAM_PROTO_GetShiftState done [08:50:16]FM_GetShiftState done [08:50:16]opened in 1717460629 [08:50:16]opened+sec_in_day 1717547029 [08:50:16]quantity*price = 20003 [08:50:16]sum+1 = 20004 [08:50: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 24 04.06.2024 08:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148685 ФПД: 127034907877164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085019&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148685&fm=127034907877164&tin=02508201610067®Number=0000000000092720&sum=20000 [08:50:17]StoreToDocumentArchive [08:50:17]shift 368 fd 148685 [08:50:17]save to /storage/0368/doc_00148685 [08:50:17]save last doc name /storage/0368/doc_00148685 to /storage/kkm_last_doc_name [08:50:17]save OK [08:50:17]Clear old archive folders... [08:50:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:17]tlvbuf is 015EAF00 [08:50:17]SAM_PROTO_ClearQueue [08:50:17]wFMCommunicate request_size=4 [08:50:17]MH_SAM_APDU [08:50:17]CAPDU: 80 09 00 00 [08:50:17]Write to MH i2c: E2 08 00 D8 0F 80 09 00 00 00 00 00 00 59 [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:17]Read from MH i2c: E2 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 03 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 03 00 D8 0F 00 90 00 5B [08:50:17]RAPDU: 90 00 [08:50:17]wFMCommunicate OK [08:50:17]SAM_PROTO_ClearQueue done [08:50:17]KKMCreateOFDPacket [08:50:17]OFDProtocolAddRootSTLVToBuf [08:50:17]FM_MakeSignedData [08:50:17]FM_MakeSignedData [08:50:17]SAM_PROTO_SignData [08:50:17]wFMCommunicate request_size=4 [08:50:17]MH_SAM_APDU [08:50:17]CAPDU: 80 0D 01 02 [08:50:17]Write to MH i2c: E2 08 00 D9 0F 80 0D 01 02 00 00 00 00 61 [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:17]Read from MH i2c: E2 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 03 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 03 00 D9 0F 00 90 00 5C [08:50:17]RAPDU: 90 00 [08:50:17]wFMCommunicate OK [08:50:17]wFMCommunicate request_size=255 [08:50:17]MH_SAM_APDU [08:50:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 4B D5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CD 44 02 00 35 04 06 00 73 [08:50:17]Write to MH i2c: E2 02 01 DA 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 4B D5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CD 44 02 00 35 04 06 00 73 00 00 A0 [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 DA 0F 00 90 00 5D [08:50:18]RAPDU: 90 00 [08:50:18]wFMCommunicate OK [08:50:18]wFMCommunicate request_size=10 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 0D 02 02 05 89 9E 8E DF 2C [08:50:18]Write to MH i2c: E2 0D 00 DB 0F 80 0D 02 02 05 00 89 9E 8E DF 2C 00 00 2E [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [08:50:18]RAPDU: 90 00 [08:50:18]wFMCommunicate OK [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 0D 03 02 [08:50:18]Write to MH i2c: E2 08 00 DC 0F 80 0D 03 02 00 00 00 00 66 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 0B 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 0B 00 DC 0F 00 6B F8 16 F7 B7 D1 36 DC 90 00 71 [08:50:18]RAPDU: 6B F8 16 F7 B7 D1 36 DC 90 00 [08:50:18]wFMCommunicate OK [08:50:18]SAM_PROTO_SignData done [08:50:18]FM_MakeSignedData done [08:50:18]CreateOFDProtocolMessage [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 11 00 00 [08:50:18]Write to MH i2c: E2 08 00 DD 0F 80 11 00 00 00 00 00 00 66 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 17 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 17 00 DD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B9 [08:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:50:18]wFMCommunicate OK [08:50:18]CreateOFDProtocolMessage done [08:50:18]OFDSenderStorePacket 148685 [08:50:18]StoreOFDPacket docnum=148685 [08:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 90 F4 07 01 40 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 4B D5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CD 44 02 00 35 04 06 00 73 89 9E 8E DF 2C 6B F8 16 F7 B7 D1 36 DC [08:50:18]CheckFolder [08:50:18]dirname=/storage/ofd_packets [08:50:18]CheckFolder done [08:50:18]ProducePacketName [08:50:18]name=ofd_packets/00148685 [08:50:18]NVStorageSaveData ofd_packets/00148685 [08:50:18]File name is /storage/ofd_packets/00148685 [08:50:18]Write 301 bytes [08:50:18]NVStorageSaveData done [08:50:18]OFDSenderStorePacket done [08:50:18]KKMCreateOFDPacket done [08:50:18]NVStorageSaveData kkm_last_timestamp [08:50:18]File name is /storage/kkm_last_timestamp [08:50:18]Write 4 bytes [08:50:18]NVStorageSaveData done [08:50:18]ExternCall_PrintAddStr [08:50:18]wPrintStart [08:50:18]Write to MH i2c: 01 00 00 DE 0F ED [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: 01 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: 01 07 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: 01 07 00 DE 0F 00 00 00 00 00 FF 0F 02 [08:50:18]RasterBufferAndPrint [08:50:18]line Счет N : (1)979608 [08:50:18]line ИНН: 02508201610067 [08:50:18]line Контрольно-Кассовый Чек [08:50:18]line ПРОДАЖА [08:50:18]line ТРК (МРК, ГНК) : 41 [08:50:18]line Товар: 2710124130 [08:50:18]line Аи-92-К-5 [08:50:18]line 2.990 * 66.90 [08:50:18]line = 200.03 [08:50:18]line НДС 12% НСП 1% [08:50:18]line > о реализуемом товаре [08:50:18]line ОКРУГЛЕНИЕ: -0.03 [08:50:18]line ИТОГО: 200.00 [08:50:18]line Внесено: 200.00 [08:50:18]line СДАЧА: 0.00 [08:50:18]line НСП 1% : 1.77 [08:50:18]line НДС 12% : 21.24 [08:50:18]line Наличными: 200.00 [08:50:18]line Безнал.: 0.00 [08:50:18]line Место: АЗС № 68 "Партнер Нефть" [08:50:18]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:50:18]line СНО: Общий режим [08:50:18]line Чек 24 04.06.2024 08:50 [08:50:18]line Смена: 368 ФФД: 1.0 [08:50:18]line ЗНМ: 0300000035 [08:50:18]line РНМ: 0000000000092720 [08:50:18]line Версия ККМ: 001 [08:50:18]line ФМ: 0000000000875057 [08:50:18]line ФД: 148685 [08:50:18]line ФПД: 127034907877164 [08:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085019&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148685&fm=127034907877164&tin=02508201610067®Number=0000000000092720&sum=20000 [08:50:18]OFD Sender: Processing packet 148685 [packets to send 100, broken 99] [08:50:18]ProducePacketName [08:50:18]name=ofd_packets/00148685 [08:50:18]OFD Sender: To server: pG, [08:50:18]CommunicateWithHost lk.salyk.kg:30040 [08:50:18]ConnectInit lk.salyk.kg [08:50:18]written 0, free lines is 4095 [08:50:18]Connected sock=11 [08:50:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 90 F4 07 01 40 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 4B D5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CD 44 02 00 35 04 06 00 73 89 9E 8E DF 2C 6B F8 16 F7 B7 D1 36 DC [08:50:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E8 45 47 00 6F 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CD 44 02 00 F4 03 04 00 6F 7C 5E 66 B6 04 01 00 00 5B C5 41 22 C8 6C 03 32 [08:50:18]CommunicateWithHost err = 0 [08:50:18]CheckOFDResponse [08:50:18]1017 (14) - 77093643461234 [08:50:18]1041 (16) - 0000000000875057 [08:50:18]1040 (4) - 148685 [08:50:18]1012 (4) - 04.06.2024 02:31 [08:50:18]1206 (1) - 0 [08:50:18]OFD Sender: Remove packet 148685 [08:50:18]ProducePacketName [08:50:18]name=ofd_packets/00148685 [08:50:18]NVStorageDeleteData [08:50:19]Write to MH i2c: 01 00 00 09 10 19 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 09 10 00 00 00 00 00 5F 0C 8B [08:50:19]RasterBufferAndPrint [08:50:19]line [08:50:19]line [08:50:19]line [08:50:19]line [08:50:19]line [08:50:19]written 0, free lines is 3170 [08:50:19]MH_Cut [08:50:19]Write to MH i2c: D1 01 00 10 10 01 F2 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: D1 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: D1 01 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: D1 01 00 10 10 00 F1 [08:50:19]Write to MH i2c: 01 00 00 11 10 21 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]OFD Sender: No OFD packet to send [08:50:20]*** Cut start [08:50:20]*** Partial cut [08:50:20]*** CUTSNS_PIN = 1 [08:50:20]*** CUTSNS_PIN = 0 [08:50:20]*** Brake cut motor [08:50:21]Read from MH i2c: 01 [08:50:21]MH_I2C_Read... [08:50:21]*** Stop cut motor [08:50:21]*** Cut end [08:50:21]Read from MH i2c: 01 07 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: 01 07 00 11 10 00 00 00 00 00 FF 0F 36 [08:50:21]process_action close_receipt done [08:50:21]requested_data is exist [08:50:21]produce_requested_data [08:50:21]requested_item fm.sn is exist - process it [08:50:21]wFMCommunicate request_size=4 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 11 00 00 [08:50:21]Write to MH i2c: E2 08 00 12 10 80 11 00 00 00 00 00 00 9C [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 17 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 17 00 12 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EF [08:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:50:21]wFMCommunicate OK [08:50:21]requested_item fd.num is exist - process it [08:50:21]SAM_PROTO_GetFieldsCounters [08:50:21]wFMCommunicate request_size=4 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 13 00 00 [08:50:21]Write to MH i2c: E2 08 00 13 10 80 13 00 00 00 00 00 00 9F [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 62 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 62 00 13 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CD 44 02 00 0E 04 04 00 70 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 87 [08:50:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CD 44 02 00 0E 04 04 00 70 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 [08:50:21]wFMCommunicate OK [08:50:21]SAM_PROTO_GetFieldsCounters done [08:50:21]requested_item shift.num is exist - process it [08:50:21]requested_item shift.opened is exist - process it [08:50:21]req_shift_opened [08:50:21]FM_GetShiftState [08:50:21]SAM_PROTO_GetShiftState [08:50:21]wFMCommunicate request_size=4 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 13 01 00 [08:50:21]Write to MH i2c: E2 08 00 14 10 80 13 01 00 00 00 00 00 A1 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 0E 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 0E 00 14 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 64 [08:50:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:50:21]wFMCommunicate OK [08:50:21]SAM_PROTO_GetShiftState done [08:50:21]FM_GetShiftState done [08:50:21]req_shift_opened done [08:50:21]requested_item shift.open_date is exist - process it [08:50:21]req_shift_open_date [08:50:21]req_shift_open_date done [08:50:21]produce_requested_data done [08:50:21]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148685,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:50:21]process_action_free close_receipt [08:50:21]json_value_free [08:50:21]json_value_free done [08:50:21]process_json_proto returns [08:50:21]Send response to host [08:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148685,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:50:21]free response buf [08:50:21]execute_script done [08:50:21]execute_script returns [08:50:21]free content buf [08:50:21]Sock 9.Close socket [08:50:21]Sock 9.Thread stoped [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:36]accept exits with 7 [08:52:36]New connection [08:52:36]New thread 3066809700 created [08:52:36]Thread 3066666340 joined [08:52:36]Waiting for new connection... [08:52:36] Sock 7.Parse request [08:52:36]Sock 7.Check first char [08:52:36]Sock 7.First char is OK [08:52:36]request: POST /json_proto HTTP/1.0 [08:52:36]Method: POST [08:52:36]URL: /json_proto [08:52:36]Method is POST - this is cgi request [08:52:36]url: /json_proto [08:52:36]query_string will be loaded in cgi processing [08:52:36]execute_cgi json_proto POST (null) [08:52:36]execute_cgi path=json_proto method=POST [08:52:36]POST find Content-Length [08:52:36]Host: 172.17.38.4:8080 [08:52:36]Content-Length: 679 [08:52:36]Content-Type: application/json [08:52:36] [08:52:36]POST finish read [08:52:36]Found Content-Length = 679 [08:52:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [08:52:36]execute_script... [08:52: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)979609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [08:52:36]POST & json_proto [08:52:36]process_json_proto [08:52:36]json parsed OK: [08:52:36]protocol is kg_v1.0 [08:52:36]action value=close_receipt [08:52:36]process_action close_receipt [08:52:36]cmd_close_receipt [08:52:36]MH_GetDate [08:52:36]Write to MH i2c: F0 00 00 15 10 14 [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: F0 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: F0 09 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: F0 09 00 15 10 00 D7 D5 5E 66 CC 51 87 64 95 [08:52:36]GetLastDocTimeStamp 1717491019 [08:52:36]current date 1717491159 [08:52:36]FM_GetShiftState [08:52:36]SAM_PROTO_GetShiftState [08:52:36]wFMCommunicate request_size=4 [08:52:36]MH_SAM_APDU [08:52:36]CAPDU: 80 13 01 00 [08:52:36]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:36]Read from MH i2c: E2 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: E2 0E 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 66 [08:52:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:52:36]wFMCommunicate OK [08:52:36]SAM_PROTO_GetShiftState done [08:52:36]FM_GetShiftState done [08:52:36]opened in 1717460629 [08:52:36]opened+sec_in_day 1717547029 [08:52:36]quantity*price = 100018 [08:52:36]sum+1 = 100020 [08:52:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 25 04.06.2024 08:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148686 ФПД: 24424919940104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085239&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148686&fm=24424919940104&tin=02508201610067®Number=0000000000092720&sum=100000 [08:52:37]StoreToDocumentArchive [08:52:37]shift 368 fd 148686 [08:52:37]save to /storage/0368/doc_00148686 [08:52:37]save last doc name /storage/0368/doc_00148686 to /storage/kkm_last_doc_name [08:52:37]save OK [08:52:37]Clear old archive folders... [08:52:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:52:37]tlvbuf is 015EAAA0 [08:52:37]SAM_PROTO_ClearQueue [08:52:37]wFMCommunicate request_size=4 [08:52:37]MH_SAM_APDU [08:52:37]CAPDU: 80 09 00 00 [08:52:37]Write to MH i2c: E2 08 00 23 10 80 09 00 00 00 00 00 00 A5 [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:37]Read from MH i2c: E2 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 03 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 03 00 23 10 00 90 00 A7 [08:52:37]RAPDU: 90 00 [08:52:37]wFMCommunicate OK [08:52:37]SAM_PROTO_ClearQueue done [08:52:37]KKMCreateOFDPacket [08:52:37]OFDProtocolAddRootSTLVToBuf [08:52:37]FM_MakeSignedData [08:52:37]FM_MakeSignedData [08:52:37]SAM_PROTO_SignData [08:52:37]wFMCommunicate request_size=4 [08:52:37]MH_SAM_APDU [08:52:37]CAPDU: 80 0D 01 02 [08:52:37]Write to MH i2c: E2 08 00 24 10 80 0D 01 02 00 00 00 00 AD [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:37]Read from MH i2c: E2 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 03 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 03 00 24 10 00 90 00 A8 [08:52:37]RAPDU: 90 00 [08:52:37]wFMCommunicate OK [08:52:37]wFMCommunicate request_size=255 [08:52:37]MH_SAM_APDU [08:52:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 D7 D5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CE 44 02 00 35 04 06 00 16 36 DE AD [08:52:37]Write to MH i2c: E2 02 01 25 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 D7 D5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CE 44 02 00 35 04 06 00 16 36 DE AD 00 00 F3 [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [08:52:38]RAPDU: 90 00 [08:52:38]wFMCommunicate OK [08:52:38]wFMCommunicate request_size=7 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 0D 02 02 02 3C 08 [08:52:38]Write to MH i2c: E2 0A 00 26 10 80 0D 02 02 02 00 3C 08 00 00 F8 [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [08:52:38]RAPDU: 90 00 [08:52:38]wFMCommunicate OK [08:52:38]wFMCommunicate request_size=4 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 0D 03 02 [08:52:38]Write to MH i2c: E2 08 00 27 10 80 0D 03 02 00 00 00 00 B2 [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 0B 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 0B 00 27 10 00 73 1C 69 A4 D7 BF 86 1E 90 00 89 [08:52:38]RAPDU: 73 1C 69 A4 D7 BF 86 1E 90 00 [08:52:38]wFMCommunicate OK [08:52:38]SAM_PROTO_SignData done [08:52:38]FM_MakeSignedData done [08:52:38]CreateOFDProtocolMessage [08:52:38]wFMCommunicate request_size=4 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 11 00 00 [08:52:38]Write to MH i2c: E2 08 00 28 10 80 11 00 00 00 00 00 00 B2 [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 17 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 17 00 28 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 05 [08:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:52:38]wFMCommunicate OK [08:52:38]CreateOFDProtocolMessage done [08:52:38]OFDSenderStorePacket 148686 [08:52:38]StoreOFDPacket docnum=148686 [08:52:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 E5 F0 04 01 D4 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 D7 D5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CE 44 02 00 35 04 06 00 16 36 DE AD 3C 08 73 1C 69 A4 D7 BF 86 1E [08:52:38]CheckFolder [08:52:38]dirname=/storage/ofd_packets [08:52:38]CheckFolder done [08:52:38]ProducePacketName [08:52:38]name=ofd_packets/00148686 [08:52:38]NVStorageSaveData ofd_packets/00148686 [08:52:38]File name is /storage/ofd_packets/00148686 [08:52:38]Write 298 bytes [08:52:38]NVStorageSaveData done [08:52:38]OFDSenderStorePacket done [08:52:38]KKMCreateOFDPacket done [08:52:38]NVStorageSaveData kkm_last_timestamp [08:52:38]File name is /storage/kkm_last_timestamp [08:52:38]Write 4 bytes [08:52:38]NVStorageSaveData done [08:52:38]ExternCall_PrintAddStr [08:52:38]wPrintStart [08:52:38]Write to MH i2c: 01 00 00 29 10 39 [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: 01 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: 01 07 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: 01 07 00 29 10 00 00 00 00 00 FF 0F 4E [08:52:38]RasterBufferAndPrint [08:52:38]line Счет N : (1)979609 [08:52:38]line ИНН: 02508201610067 [08:52:38]line Контрольно-Кассовый Чек [08:52:38]line ПРОДАЖА [08:52:38]line ТРК (МРК, ГНК) : 51 [08:52:38]line Товар: 2710194210 [08:52:38]line ДТ-К-5 [08:52:38]line 13.720 * 72.90 [08:52:38]line = 1000.19 [08:52:38]line НДС 12% НСП 1% [08:52:38]line > о реализуемом товаре [08:52:38]line ОКРУГЛЕНИЕ: -0.19 [08:52:38]line ИТОГО: 1000.00 [08:52:38]line Внесено: 1000.00 [08:52:38]line СДАЧА: 0.00 [08:52:38]line НСП 1% : 8.85 [08:52:38]line НДС 12% : 106.21 [08:52:38]line Наличными: 1000.00 [08:52:38]line Безнал.: 0.00 [08:52:38]line Место: АЗС № 68 "Партнер Нефть" [08:52:38]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:52:38]line СНО: Общий режим [08:52:38]line Чек 25 04.06.2024 08:52 [08:52:38]line Смена: 368 ФФД: 1.0 [08:52:38]line ЗНМ: 0300000035 [08:52:38]line РНМ: 0000000000092720 [08:52:38]line Версия ККМ: 001 [08:52:38]line ФМ: 0000000000875057 [08:52:38]line ФД: 148686 [08:52:38]line ФПД: 24424919940104 [08:52:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085239&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148686&fm=24424919940104&tin=02508201610067®Number=0000000000092720&sum=100000 [08:52:38]OFD Sender: Processing packet 148686 [packets to send 100, broken 99] [08:52:38]ProducePacketName [08:52:38]name=ofd_packets/00148686 [08:52:38]OFD Sender: To server: pG, [08:52:38]CommunicateWithHost lk.salyk.kg:30040 [08:52:38]ConnectInit lk.salyk.kg [08:52:38]written 0, free lines is 4095 [08:52:38]Connected sock=10 [08:52:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 E5 F0 04 01 D4 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 D7 D5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CE 44 02 00 35 04 06 00 16 36 DE AD 3C 08 73 1C 69 A4 D7 BF 86 1E [08:52:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 79 ED 47 00 CD 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 38 37 35 30 35 37 10 04 04 00 CE 44 02 00 F4 03 04 00 FB 7C 5E 66 B6 04 01 00 00 0D 80 49 FC 0D ED 95 40 [08:52:38]CommunicateWithHost err = 0 [08:52:38]CheckOFDResponse [08:52:38]1017 (14) - 77093643461234 [08:52:38]1041 (16) - 0000000000875057 [08:52:38]1040 (4) - 148686 [08:52:38]1012 (4) - 04.06.2024 02:33 [08:52:38]1206 (1) - 0 [08:52:38]OFD Sender: Remove packet 148686 [08:52:38]ProducePacketName [08:52:38]name=ofd_packets/00148686 [08:52:38]NVStorageDeleteData [08:52:38]Write to MH i2c: 01 00 00 54 10 64 [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: 01 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: 01 07 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: 01 07 00 54 10 00 00 00 00 00 67 0C DE [08:52:38]RasterBufferAndPrint [08:52:38]line [08:52:38]line [08:52:38]line [08:52:38]line [08:52:38]line [08:52:38]written 0, free lines is 3179 [08:52:38]MH_Cut [08:52:38]Write to MH i2c: D1 01 00 5B 10 01 3D [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: D1 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: D1 01 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: D1 01 00 5B 10 00 3C [08:52:38]Write to MH i2c: 01 00 00 5C 10 6C [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:39]OFD Sender: No OFD packet to send [08:52:40]*** Cut start [08:52:40]*** Partial cut [08:52:40]*** CUTSNS_PIN = 1 [08:52:40]*** CUTSNS_PIN = 0 [08:52:40]*** Brake cut motor [08:52:40]Read from MH i2c: 01 [08:52:40]MH_I2C_Read... [08:52:40]*** Stop cut motor [08:52:40]*** Cut end [08:52:40]Read from MH i2c: 01 07 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: 01 07 00 5C 10 00 00 00 00 00 FF 0F 81 [08:52:40]process_action close_receipt done [08:52:40]requested_data is exist [08:52:40]produce_requested_data [08:52:40]requested_item fm.sn is exist - process it [08:52:40]wFMCommunicate request_size=4 [08:52:40]MH_SAM_APDU [08:52:40]CAPDU: 80 11 00 00 [08:52:40]Write to MH i2c: E2 08 00 5D 10 80 11 00 00 00 00 00 00 E7 [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:40]Read from MH i2c: E2 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 17 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 17 00 5D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3A [08:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:52:40]wFMCommunicate OK [08:52:40]requested_item fd.num is exist - process it [08:52:40]SAM_PROTO_GetFieldsCounters [08:52:40]wFMCommunicate request_size=4 [08:52:40]MH_SAM_APDU [08:52:40]CAPDU: 80 13 00 00 [08:52:40]Write to MH i2c: E2 08 00 5E 10 80 13 00 00 00 00 00 00 EA [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 62 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 62 00 5E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CE 44 02 00 0E 04 04 00 70 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 D6 [08:52:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CE 44 02 00 0E 04 04 00 70 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 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_GetFieldsCounters done [08:52:41]requested_item shift.num is exist - process it [08:52:41]requested_item shift.opened is exist - process it [08:52:41]req_shift_opened [08:52:41]FM_GetShiftState [08:52:41]SAM_PROTO_GetShiftState [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 13 01 00 [08:52:41]Write to MH i2c: E2 08 00 5F 10 80 13 01 00 00 00 00 00 EC [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0E 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0E 00 5F 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AF [08:52:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_GetShiftState done [08:52:41]FM_GetShiftState done [08:52:41]req_shift_opened done [08:52:41]requested_item shift.open_date is exist - process it [08:52:41]req_shift_open_date [08:52:41]req_shift_open_date done [08:52:41]produce_requested_data done [08:52:41]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148686,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:52:41]process_action_free close_receipt [08:52:41]json_value_free [08:52:41]json_value_free done [08:52:41]process_json_proto returns [08:52:41]Send response to host [08:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148686,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:52:41]free response buf [08:52:41]execute_script done [08:52:41]execute_script returns [08:52:41]free content buf [08:52:41]Sock 7.Close socket [08:52:41]Sock 7.Thread stoped [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:27]accept exits with 9 [08:55:27]New connection [08:55:27]New thread 3066666340 created [08:55:27]Thread 3066809700 joined [08:55:27]Waiting for new connection... [08:55:27] Sock 9.Parse request [08:55:27]Sock 9.Check first char [08:55:27]Sock 9.First char is OK [08:55:27]request: POST /json_proto HTTP/1.0 [08:55:27]Method: POST [08:55:27]URL: /json_proto [08:55:27]Method is POST - this is cgi request [08:55:27]url: /json_proto [08:55:27]query_string will be loaded in cgi processing [08:55:27]execute_cgi json_proto POST (null) [08:55:27]execute_cgi path=json_proto method=POST [08:55:27]POST find Content-Length [08:55:27]Host: 172.17.38.4:8080 [08:55:27]Content-Length: 677 [08:55:27]Content-Type: application/json [08:55:27] [08:55:27]POST finish read [08:55:27]Found Content-Length = 677 [08:55:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.650, "sum" : 110.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 110.00, "total" : 110.00, "payments": [ { "type": 0, "sum" : 110.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:27]execute_script... [08:55: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)979610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.650, "sum" : 110.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 110.00, "total" : 110.00, "payments": [ { "type": 0, "sum" : 110.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:27]POST & json_proto [08:55:27]process_json_proto [08:55:27]json parsed OK: [08:55:27]protocol is kg_v1.0 [08:55:27]action value=close_receipt [08:55:27]process_action close_receipt [08:55:27]cmd_close_receipt [08:55:27]MH_GetDate [08:55:27]Write to MH i2c: F0 00 00 60 10 5F [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: F0 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: F0 09 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: F0 09 00 60 10 00 82 D6 5E 66 CC 51 87 64 8C [08:55:27]GetLastDocTimeStamp 1717491159 [08:55:27]current date 1717491330 [08:55:27]FM_GetShiftState [08:55:27]SAM_PROTO_GetShiftState [08:55:27]wFMCommunicate request_size=4 [08:55:27]MH_SAM_APDU [08:55:27]CAPDU: 80 13 01 00 [08:55:27]Write to MH i2c: E2 08 00 61 10 80 13 01 00 00 00 00 00 EE [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:27]Read from MH i2c: E2 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 0E 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 0E 00 61 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B1 [08:55:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:55:27]wFMCommunicate OK [08:55:27]SAM_PROTO_GetShiftState done [08:55:27]FM_GetShiftState done [08:55:27]opened in 1717460629 [08:55:27]opened+sec_in_day 1717547029 [08:55:27]quantity*price = 11038 [08:55:27]sum+1 = 11040 [08:55:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 110.00 Внесено: 110.00 СДАЧА: 0.00 НСП 1% : 0.98 НДС 12% : 11.72 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 26 04.06.2024 08:55 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148687 ФПД: 185446357461334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085530&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148687&fm=185446357461334&tin=02508201610067®Number=0000000000092720&sum=11000 [08:55:28]StoreToDocumentArchive [08:55:28]shift 368 fd 148687 [08:55:28]save to /storage/0368/doc_00148687 [08:55:28]save last doc name /storage/0368/doc_00148687 to /storage/kkm_last_doc_name [08:55:28]save OK [08:55:28]Clear old archive folders... [08:55:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:28]tlvbuf is 01605740 [08:55:28]SAM_PROTO_ClearQueue [08:55:28]wFMCommunicate request_size=4 [08:55:28]MH_SAM_APDU [08:55:28]CAPDU: 80 09 00 00 [08:55:28]Write to MH i2c: E2 08 00 6E 10 80 09 00 00 00 00 00 00 F0 [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:28]Read from MH i2c: E2 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 03 00 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 03 00 6E 10 00 90 00 F2 [08:55:28]RAPDU: 90 00 [08:55:28]wFMCommunicate OK [08:55:28]SAM_PROTO_ClearQueue done [08:55:28]KKMCreateOFDPacket [08:55:28]OFDProtocolAddRootSTLVToBuf [08:55:28]FM_MakeSignedData [08:55:28]FM_MakeSignedData [08:55:28]SAM_PROTO_SignData [08:55:28]wFMCommunicate request_size=4 [08:55:28]MH_SAM_APDU [08:55:28]CAPDU: 80 0D 01 02 [08:55:28]Write to MH i2c: E2 08 00 6F 10 80 0D 01 02 00 00 00 00 F8 [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:28]Read from MH i2c: E2 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 03 00 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 03 00 6F 10 00 90 00 F3 [08:55:28]RAPDU: 90 00 [08:55:28]wFMCommunicate OK [08:55:28]wFMCommunicate request_size=255 [08:55:28]MH_SAM_APDU [08:55:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 82 D6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CF 44 02 00 35 04 06 00 A8 [08:55:28]Write to MH i2c: E2 02 01 70 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 82 D6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CF 44 02 00 35 04 06 00 A8 00 00 9D [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:29]Read from MH i2c: E2 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: E2 03 00 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [08:55:29]RAPDU: 90 00 [08:55:29]wFMCommunicate OK [08:55:29]wFMCommunicate request_size=10 [08:55:29]MH_SAM_APDU [08:55:29]CAPDU: 80 0D 02 02 05 A9 98 42 E9 56 [08:55:29]Write to MH i2c: E2 0D 00 71 10 80 0D 02 02 05 00 A9 98 42 E9 56 00 00 C7 [08:55:29]Write i2c OK [08:55:29]MH_I2C_Read... [08:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:29]Read from MH i2c: E2 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: E2 03 00 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [08:55:29]RAPDU: 90 00 [08:55:29]wFMCommunicate OK [08:55:29]wFMCommunicate request_size=4 [08:55:29]MH_SAM_APDU [08:55:29]CAPDU: 80 0D 03 02 [08:55:29]Write to MH i2c: E2 08 00 72 10 80 0D 03 02 00 00 00 00 FD [08:55:29]Write i2c OK [08:55:29]MH_I2C_Read... [08:55:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:29]Read from MH i2c: E2 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: E2 0B 00 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: E2 0B 00 72 10 00 C6 24 2E 7D 61 54 0E 3C 90 00 92 [08:55:29]RAPDU: C6 24 2E 7D 61 54 0E 3C 90 00 [08:55:29]wFMCommunicate OK [08:55:29]SAM_PROTO_SignData done [08:55:29]FM_MakeSignedData done [08:55:29]CreateOFDProtocolMessage [08:55:29]wFMCommunicate request_size=4 [08:55:29]MH_SAM_APDU [08:55:29]CAPDU: 80 11 00 00 [08:55:29]Write to MH i2c: E2 08 00 73 10 80 11 00 00 00 00 00 00 FD [08:55:29]Write i2c OK [08:55:29]MH_I2C_Read... [08:55:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:29]Read from MH i2c: E2 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: E2 17 00 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: E2 17 00 73 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 50 [08:55:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:55:29]wFMCommunicate OK [08:55:29]CreateOFDProtocolMessage done [08:55:29]OFDSenderStorePacket 148687 [08:55:29]StoreOFDPacket docnum=148687 [08:55:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 38 8D 07 01 1B 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 35 FF 03 08 00 03 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 82 D6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CF 44 02 00 35 04 06 00 A8 A9 98 42 E9 56 C6 24 2E 7D 61 54 0E 3C [08:55:29]CheckFolder [08:55:29]dirname=/storage/ofd_packets [08:55:29]CheckFolder done [08:55:29]ProducePacketName [08:55:29]name=ofd_packets/00148687 [08:55:29]NVStorageSaveData ofd_packets/00148687 [08:55:29]File name is /storage/ofd_packets/00148687 [08:55:29]Write 301 bytes [08:55:29]NVStorageSaveData done [08:55:29]OFDSenderStorePacket done [08:55:29]KKMCreateOFDPacket done [08:55:29]NVStorageSaveData kkm_last_timestamp [08:55:29]File name is /storage/kkm_last_timestamp [08:55:29]Write 4 bytes [08:55:29]NVStorageSaveData done [08:55:29]ExternCall_PrintAddStr [08:55:29]wPrintStart [08:55:29]Write to MH i2c: 01 00 00 74 10 84 [08:55:29]Write i2c OK [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: 01 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: 01 07 00 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: 01 07 00 74 10 00 00 00 00 00 FF 0F 99 [08:55:29]RasterBufferAndPrint [08:55:29]line Счет N : (1)979610 [08:55:29]line ИНН: 02508201610067 [08:55:29]line Контрольно-Кассовый Чек [08:55:29]line ПРОДАЖА [08:55:29]line ТРК (МРК, ГНК) : 31 [08:55:29]line Товар: 2710124130 [08:55:29]line Аи-92-К-5 [08:55:29]line 1.650 * 66.90 [08:55:29]line = 110.39 [08:55:29]line НДС 12% НСП 1% [08:55:29]line > о реализуемом товаре [08:55:29]line ОКРУГЛЕНИЕ: -0.39 [08:55:29]line ИТОГО: 110.00 [08:55:29]line Внесено: 110.00 [08:55:29]line СДАЧА: 0.00 [08:55:29]line НСП 1% : 0.98 [08:55:29]line НДС 12% : 11.72 [08:55:29]line Наличными: 110.00 [08:55:29]line Безнал.: 0.00 [08:55:29]line Место: АЗС № 68 "Партнер Нефть" [08:55:29]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [08:55:29]line СНО: Общий режим [08:55:29]line Чек 26 04.06.2024 08:55 [08:55:29]line Смена: 368 ФФД: 1.0 [08:55:29]line ЗНМ: 0300000035 [08:55:29]line РНМ: 0000000000092720 [08:55:29]line Версия ККМ: 001 [08:55:29]line ФМ: 0000000000875057 [08:55:29]line ФД: 148687 [08:55:29]line ФПД: 185446357461334 [08:55:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085530&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148687&fm=185446357461334&tin=02508201610067®Number=0000000000092720&sum=11000 [08:55:29]OFD Sender: Processing packet 148687 [packets to send 100, broken 99] [08:55:29]ProducePacketName [08:55:29]name=ofd_packets/00148687 [08:55:29]OFD Sender: To server: pG, [08:55:29]CommunicateWithHost lk.salyk.kg:30040 [08:55:29]ConnectInit lk.salyk.kg [08:55:29]written 0, free lines is 4095 [08:55:29]Connected sock=10 [08:55:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 38 8D 07 01 1B 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 35 FF 03 08 00 03 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 82 D6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CF 44 02 00 35 04 06 00 A8 A9 98 42 E9 56 C6 24 2E 7D 61 54 0E 3C [08:55:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 0A 2F 47 00 34 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CF 44 02 00 F4 03 04 00 A6 7D 5E 66 B6 04 01 00 00 6B DD 60 CB 5E E4 26 40 [08:55:29]CommunicateWithHost err = 0 [08:55:29]CheckOFDResponse [08:55:29]1017 (14) - 77093643461234 [08:55:29]1041 (16) - 0000000000875057 [08:55:29]1040 (4) - 148687 [08:55:29]1012 (4) - 04.06.2024 02:36 [08:55:29]1206 (1) - 0 [08:55:29]OFD Sender: Remove packet 148687 [08:55:29]ProducePacketName [08:55:29]name=ofd_packets/00148687 [08:55:29]NVStorageDeleteData [08:55:30]Write to MH i2c: 01 00 00 9F 10 AF [08:55:30]Write i2c OK [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: 01 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: 01 07 00 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: 01 07 00 9F 10 00 00 00 00 00 69 0C 2B [08:55:30]RasterBufferAndPrint [08:55:30]line [08:55:30]line [08:55:30]line [08:55:30]line [08:55:30]line [08:55:30]written 0, free lines is 3181 [08:55:30]MH_Cut [08:55:30]Write to MH i2c: D1 01 00 A6 10 01 88 [08:55:30]Write i2c OK [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: D1 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: D1 01 00 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: D1 01 00 A6 10 00 87 [08:55:30]Write to MH i2c: 01 00 00 A7 10 B7 [08:55:30]Write i2c OK [08:55:30]MH_I2C_Read... [08:55:30]OFD Sender: No OFD packet to send [08:55:31]*** Cut start [08:55:31]*** Partial cut [08:55:31]*** CUTSNS_PIN = 1 [08:55:31]*** CUTSNS_PIN = 0 [08:55:31]*** Brake cut motor [08:55:32]Read from MH i2c: 01 [08:55:32]MH_I2C_Read... [08:55:32]*** Stop cut motor [08:55:32]*** Cut end [08:55:32]Read from MH i2c: 01 07 00 [08:55:32]MH_I2C_Read... [08:55:32]Read from MH i2c: 01 07 00 A7 10 00 00 00 00 00 FF 0F CC [08:55:32]process_action close_receipt done [08:55:32]requested_data is exist [08:55:32]produce_requested_data [08:55:32]requested_item fm.sn is exist - process it [08:55:32]wFMCommunicate request_size=4 [08:55:32]MH_SAM_APDU [08:55:32]CAPDU: 80 11 00 00 [08:55:32]Write to MH i2c: E2 08 00 A8 10 80 11 00 00 00 00 00 00 32 [08:55:32]Write i2c OK [08:55:32]MH_I2C_Read... [08:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:32]Read from MH i2c: E2 [08:55:32]MH_I2C_Read... [08:55:32]Read from MH i2c: E2 17 00 [08:55:32]MH_I2C_Read... [08:55:32]Read from MH i2c: E2 17 00 A8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 85 [08:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [08:55:32]wFMCommunicate OK [08:55:32]requested_item fd.num is exist - process it [08:55:32]SAM_PROTO_GetFieldsCounters [08:55:32]wFMCommunicate request_size=4 [08:55:32]MH_SAM_APDU [08:55:32]CAPDU: 80 13 00 00 [08:55:32]Write to MH i2c: E2 08 00 A9 10 80 13 00 00 00 00 00 00 35 [08:55:32]Write i2c OK [08:55:32]MH_I2C_Read... [08:55:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:32]Read from MH i2c: E2 [08:55:32]MH_I2C_Read... [08:55:32]Read from MH i2c: E2 62 00 [08:55:32]MH_I2C_Read... [08:55:32]Read from MH i2c: E2 62 00 A9 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CF 44 02 00 0E 04 04 00 70 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 25 [08:55:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CF 44 02 00 0E 04 04 00 70 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 [08:55:32]wFMCommunicate OK [08:55:32]SAM_PROTO_GetFieldsCounters done [08:55:32]requested_item shift.num is exist - process it [08:55:32]requested_item shift.opened is exist - process it [08:55:32]req_shift_opened [08:55:32]FM_GetShiftState [08:55:32]SAM_PROTO_GetShiftState [08:55:32]wFMCommunicate request_size=4 [08:55:32]MH_SAM_APDU [08:55:32]CAPDU: 80 13 01 00 [08:55:32]Write to MH i2c: E2 08 00 AA 10 80 13 01 00 00 00 00 00 37 [08:55:32]Write i2c OK [08:55:32]MH_I2C_Read... [08:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:32]Read from MH i2c: E2 [08:55:32]MH_I2C_Read... [08:55:32]Read from MH i2c: E2 0E 00 [08:55:32]MH_I2C_Read... [08:55:32]Read from MH i2c: E2 0E 00 AA 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FA [08:55:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [08:55:32]wFMCommunicate OK [08:55:32]SAM_PROTO_GetShiftState done [08:55:32]FM_GetShiftState done [08:55:32]req_shift_opened done [08:55:32]requested_item shift.open_date is exist - process it [08:55:32]req_shift_open_date [08:55:32]req_shift_open_date done [08:55:32]produce_requested_data done [08:55:32]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148687,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [08:55:32]process_action_free close_receipt [08:55:32]json_value_free [08:55:32]json_value_free done [08:55:32]process_json_proto returns [08:55:32]Send response to host [08:55:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148687,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [08:55:32]free response buf [08:55:32]execute_script done [08:55:32]execute_script returns [08:55:32]free content buf [08:55:32]Sock 9.Close socket [08:55:32]Sock 9.Thread stoped [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:20]accept exits with 7 [09:04:20]New connection [09:04:20]New thread 3066809700 created [09:04:20]Thread 3066666340 joined [09:04:20]Waiting for new connection... [09:04:20] Sock 7.Parse request [09:04:20]Sock 7.Check first char [09:04:20]Sock 7.First char is OK [09:04:20]request: POST /json_proto HTTP/1.0 [09:04:20]Method: POST [09:04:20]URL: /json_proto [09:04:20]Method is POST - this is cgi request [09:04:20]url: /json_proto [09:04:20]query_string will be loaded in cgi processing [09:04:20]execute_cgi json_proto POST (null) [09:04:20]execute_cgi path=json_proto method=POST [09:04:20]POST find Content-Length [09:04:20]Host: 172.17.38.4:8080 [09:04:20]Content-Length: 677 [09:04:20]Content-Type: application/json [09:04:20] [09:04:20]POST finish read [09:04:20]Found Content-Length = 677 [09:04:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [09:04:20]execute_script... [09:04: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)979611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [09:04:20]POST & json_proto [09:04:20]process_json_proto [09:04:20]json parsed OK: [09:04:20]protocol is kg_v1.0 [09:04:20]action value=close_receipt [09:04:20]process_action close_receipt [09:04:20]cmd_close_receipt [09:04:20]MH_GetDate [09:04:20]Write to MH i2c: F0 00 00 AB 10 AA [09:04:20]Write i2c OK [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: F0 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: F0 09 00 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: F0 09 00 AB 10 00 96 D8 5E 66 CC 51 87 64 ED [09:04:20]GetLastDocTimeStamp 1717491330 [09:04:20]current date 1717491862 [09:04:20]FM_GetShiftState [09:04:20]SAM_PROTO_GetShiftState [09:04:20]wFMCommunicate request_size=4 [09:04:20]MH_SAM_APDU [09:04:20]CAPDU: 80 13 01 00 [09:04:20]Write to MH i2c: E2 08 00 AC 10 80 13 01 00 00 00 00 00 39 [09:04:20]Write i2c OK [09:04:20]MH_I2C_Read... [09:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:20]Read from MH i2c: E2 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 0E 00 [09:04:20]MH_I2C_Read... [09:04:20]Read from MH i2c: E2 0E 00 AC 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FC [09:04:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:04:20]wFMCommunicate OK [09:04:20]SAM_PROTO_GetShiftState done [09:04:20]FM_GetShiftState done [09:04:20]opened in 1717460629 [09:04:20]opened+sec_in_day 1717547029 [09:04:20]quantity*price = 22010 [09:04:20]sum+1 = 22011 [09:04:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 27 04.06.2024 09:04 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148688 ФПД: 161553914827629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090422&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148688&fm=161553914827629&tin=02508201610067®Number=0000000000092720&sum=22000 [09:04:21]StoreToDocumentArchive [09:04:21]shift 368 fd 148688 [09:04:21]save to /storage/0368/doc_00148688 [09:04:21]save last doc name /storage/0368/doc_00148688 to /storage/kkm_last_doc_name [09:04:21]save OK [09:04:21]Clear old archive folders... [09:04:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:21]tlvbuf is 01605EF0 [09:04:21]SAM_PROTO_ClearQueue [09:04:21]wFMCommunicate request_size=4 [09:04:21]MH_SAM_APDU [09:04:21]CAPDU: 80 09 00 00 [09:04:21]Write to MH i2c: E2 08 00 B9 10 80 09 00 00 00 00 00 00 3B [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:21]Read from MH i2c: E2 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 03 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 03 00 B9 10 00 90 00 3D [09:04:21]RAPDU: 90 00 [09:04:21]wFMCommunicate OK [09:04:21]SAM_PROTO_ClearQueue done [09:04:21]KKMCreateOFDPacket [09:04:21]OFDProtocolAddRootSTLVToBuf [09:04:21]FM_MakeSignedData [09:04:21]FM_MakeSignedData [09:04:21]SAM_PROTO_SignData [09:04:21]wFMCommunicate request_size=4 [09:04:21]MH_SAM_APDU [09:04:21]CAPDU: 80 0D 01 02 [09:04:21]Write to MH i2c: E2 08 00 BA 10 80 0D 01 02 00 00 00 00 43 [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:21]Read from MH i2c: E2 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 03 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 03 00 BA 10 00 90 00 3E [09:04:21]RAPDU: 90 00 [09:04:21]wFMCommunicate OK [09:04:21]wFMCommunicate request_size=255 [09:04:21]MH_SAM_APDU [09:04:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 96 D8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D0 44 02 00 35 04 06 00 92 [09:04:21]Write to MH i2c: E2 02 01 BB 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 1B 00 00 00 F4 03 04 00 96 D8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D0 44 02 00 35 04 06 00 92 00 00 96 [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:21]Read from MH i2c: E2 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 03 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 03 00 BB 10 00 90 00 3F [09:04:21]RAPDU: 90 00 [09:04:21]wFMCommunicate OK [09:04:21]wFMCommunicate request_size=10 [09:04:21]MH_SAM_APDU [09:04:21]CAPDU: 80 0D 02 02 05 EE B3 B4 93 6D [09:04:21]Write to MH i2c: E2 0D 00 BC 10 80 0D 02 02 05 00 EE B3 B4 93 6D 00 00 A5 [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:21]Read from MH i2c: E2 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 03 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 03 00 BC 10 00 90 00 40 [09:04:21]RAPDU: 90 00 [09:04:21]wFMCommunicate OK [09:04:21]wFMCommunicate request_size=4 [09:04:21]MH_SAM_APDU [09:04:21]CAPDU: 80 0D 03 02 [09:04:21]Write to MH i2c: E2 08 00 BD 10 80 0D 03 02 00 00 00 00 48 [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:21]Read from MH i2c: E2 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 0B 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 0B 00 BD 10 00 39 98 2D 32 61 0C 04 66 90 00 50 [09:04:21]RAPDU: 39 98 2D 32 61 0C 04 66 90 00 [09:04:21]wFMCommunicate OK [09:04:21]SAM_PROTO_SignData done [09:04:21]FM_MakeSignedData done [09:04:21]CreateOFDProtocolMessage [09:04:21]wFMCommunicate request_size=4 [09:04:21]MH_SAM_APDU [09:04:21]CAPDU: 80 11 00 00 [09:04:21]Write to MH i2c: E2 08 00 BE 10 80 11 00 00 00 00 00 00 48 [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:21]Read from MH i2c: E2 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 17 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: E2 17 00 BE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9B [09:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:04:21]wFMCommunicate OK [09:04:21]CreateOFDProtocolMessage done [09:04:21]OFDSenderStorePacket 148688 [09:04:21]StoreOFDPacket docnum=148688 [09:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B1 0B 07 01 84 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 96 D8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D0 44 02 00 35 04 06 00 92 EE B3 B4 93 6D 39 98 2D 32 61 0C 04 66 [09:04:21]CheckFolder [09:04:21]dirname=/storage/ofd_packets [09:04:21]CheckFolder done [09:04:21]ProducePacketName [09:04:21]name=ofd_packets/00148688 [09:04:21]NVStorageSaveData ofd_packets/00148688 [09:04:21]File name is /storage/ofd_packets/00148688 [09:04:21]Write 301 bytes [09:04:21]NVStorageSaveData done [09:04:21]OFDSenderStorePacket done [09:04:21]KKMCreateOFDPacket done [09:04:21]NVStorageSaveData kkm_last_timestamp [09:04:21]File name is /storage/kkm_last_timestamp [09:04:21]Write 4 bytes [09:04:21]NVStorageSaveData done [09:04:21]ExternCall_PrintAddStr [09:04:21]wPrintStart [09:04:21]Write to MH i2c: 01 00 00 BF 10 CF [09:04:21]Write i2c OK [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: 01 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: 01 07 00 [09:04:21]MH_I2C_Read... [09:04:21]Read from MH i2c: 01 07 00 BF 10 00 00 00 00 00 FF 0F E4 [09:04:21]RasterBufferAndPrint [09:04:21]line Счет N : (1)979611 [09:04:21]line ИНН: 02508201610067 [09:04:21]line Контрольно-Кассовый Чек [09:04:21]line ПРОДАЖА [09:04:21]line ТРК (МРК, ГНК) : 31 [09:04:21]line Товар: 2710124130 [09:04:21]line Аи-92-К-5 [09:04:21]line 3.290 * 66.90 [09:04:21]line = 220.10 [09:04:21]line НДС 12% НСП 1% [09:04:21]line > о реализуемом товаре [09:04:21]line ОКРУГЛЕНИЕ: -0.10 [09:04:21]line ИТОГО: 220.00 [09:04:21]line Внесено: 220.00 [09:04:21]line СДАЧА: 0.00 [09:04:21]line НСП 1% : 1.95 [09:04:21]line НДС 12% : 23.37 [09:04:21]line Наличными: 220.00 [09:04:21]line Безнал.: 0.00 [09:04:21]line Место: АЗС № 68 "Партнер Нефть" [09:04:21]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:04:21]line СНО: Общий режим [09:04:21]line Чек 27 04.06.2024 09:04 [09:04:21]line Смена: 368 ФФД: 1.0 [09:04:21]line ЗНМ: 0300000035 [09:04:21]line РНМ: 0000000000092720 [09:04:21]line Версия ККМ: 001 [09:04:21]line ФМ: 0000000000875057 [09:04:21]line ФД: 148688 [09:04:21]line ФПД: 161553914827629 [09:04:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090422&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148688&fm=161553914827629&tin=02508201610067®Number=0000000000092720&sum=22000 [09:04:22]OFD Sender: Processing packet 148688 [packets to send 100, broken 99] [09:04:22]ProducePacketName [09:04:22]name=ofd_packets/00148688 [09:04:22]OFD Sender: To server: pG, [09:04:22]CommunicateWithHost lk.salyk.kg:30040 [09:04:22]ConnectInit lk.salyk.kg [09:04:22]written 0, free lines is 4095 [09:04:22]Connected sock=10 [09:04:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B1 0B 07 01 84 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 96 D8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D0 44 02 00 35 04 06 00 92 EE B3 B4 93 6D 39 98 2D 32 61 0C 04 66 [09:04:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D6 74 47 00 58 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D0 44 02 00 F4 03 04 00 BB 7F 5E 66 B6 04 01 00 00 2B 4E A3 23 A3 55 7C EE [09:04:22]CommunicateWithHost err = 0 [09:04:22]CheckOFDResponse [09:04:22]1017 (14) - 77093643461234 [09:04:22]1041 (16) - 0000000000875057 [09:04:22]1040 (4) - 148688 [09:04:22]1012 (4) - 04.06.2024 02:45 [09:04:22]1206 (1) - 0 [09:04:22]OFD Sender: Remove packet 148688 [09:04:22]ProducePacketName [09:04:22]name=ofd_packets/00148688 [09:04:22]NVStorageDeleteData [09:04:22]Write to MH i2c: 01 00 00 EA 10 FA [09:04:22]Write i2c OK [09:04:22]MH_I2C_Read... [09:04:22]Read from MH i2c: 01 [09:04:22]MH_I2C_Read... [09:04:22]Read from MH i2c: 01 07 00 [09:04:22]MH_I2C_Read... [09:04:22]Read from MH i2c: 01 07 00 EA 10 00 00 00 00 00 67 0C 74 [09:04:22]RasterBufferAndPrint [09:04:22]line [09:04:22]line [09:04:22]line [09:04:22]line [09:04:22]line [09:04:22]written 0, free lines is 3179 [09:04:22]MH_Cut [09:04:22]Write to MH i2c: D1 01 00 F1 10 01 D3 [09:04:22]Write i2c OK [09:04:22]MH_I2C_Read... [09:04:22]Read from MH i2c: D1 [09:04:22]MH_I2C_Read... [09:04:22]Read from MH i2c: D1 01 00 [09:04:22]MH_I2C_Read... [09:04:22]Read from MH i2c: D1 01 00 F1 10 00 D2 [09:04:22]Write to MH i2c: 01 00 00 F2 10 02 [09:04:22]Write i2c OK [09:04:22]MH_I2C_Read... [09:04:23]OFD Sender: No OFD packet to send [09:04:23]*** Cut start [09:04:23]*** Partial cut [09:04:23]*** CUTSNS_PIN = 1 [09:04:24]*** CUTSNS_PIN = 0 [09:04:24]*** Brake cut motor [09:04:24]Read from MH i2c: 01 [09:04:24]MH_I2C_Read... [09:04:24]*** Stop cut motor [09:04:24]*** Cut end [09:04:24]Read from MH i2c: 01 07 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: 01 07 00 F2 10 00 00 00 00 00 FF 0F 17 [09:04:24]process_action close_receipt done [09:04:24]requested_data is exist [09:04:24]produce_requested_data [09:04:24]requested_item fm.sn is exist - process it [09:04:24]wFMCommunicate request_size=4 [09:04:24]MH_SAM_APDU [09:04:24]CAPDU: 80 11 00 00 [09:04:24]Write to MH i2c: E2 08 00 F3 10 80 11 00 00 00 00 00 00 7D [09:04:24]Write i2c OK [09:04:24]MH_I2C_Read... [09:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:24]Read from MH i2c: E2 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 17 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 17 00 F3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D0 [09:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:04:24]wFMCommunicate OK [09:04:24]requested_item fd.num is exist - process it [09:04:24]SAM_PROTO_GetFieldsCounters [09:04:24]wFMCommunicate request_size=4 [09:04:24]MH_SAM_APDU [09:04:24]CAPDU: 80 13 00 00 [09:04:24]Write to MH i2c: E2 08 00 F4 10 80 13 00 00 00 00 00 00 80 [09:04:24]Write i2c OK [09:04:24]MH_I2C_Read... [09:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:24]Read from MH i2c: E2 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 62 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 62 00 F4 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D0 44 02 00 0E 04 04 00 70 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 74 [09:04:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D0 44 02 00 0E 04 04 00 70 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:04:24]wFMCommunicate OK [09:04:24]SAM_PROTO_GetFieldsCounters done [09:04:24]requested_item shift.num is exist - process it [09:04:24]requested_item shift.opened is exist - process it [09:04:24]req_shift_opened [09:04:24]FM_GetShiftState [09:04:24]SAM_PROTO_GetShiftState [09:04:24]wFMCommunicate request_size=4 [09:04:24]MH_SAM_APDU [09:04:24]CAPDU: 80 13 01 00 [09:04:24]Write to MH i2c: E2 08 00 F5 10 80 13 01 00 00 00 00 00 82 [09:04:24]Write i2c OK [09:04:24]MH_I2C_Read... [09:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:24]Read from MH i2c: E2 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 0E 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 0E 00 F5 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 45 [09:04:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:04:24]wFMCommunicate OK [09:04:24]SAM_PROTO_GetShiftState done [09:04:24]FM_GetShiftState done [09:04:24]req_shift_opened done [09:04:24]requested_item shift.open_date is exist - process it [09:04:24]req_shift_open_date [09:04:24]req_shift_open_date done [09:04:24]produce_requested_data done [09:04:24]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148688,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:04:24]process_action_free close_receipt [09:04:24]json_value_free [09:04:24]json_value_free done [09:04:24]process_json_proto returns [09:04:24]Send response to host [09:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148688,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:04:24]free response buf [09:04:24]execute_script done [09:04:24]execute_script returns [09:04:24]free content buf [09:04:24]Sock 7.Close socket [09:04:24]Sock 7.Thread stoped [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:38]OFD Sender: No OFD packet to send [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:01]accept exits with 9 [09:08:01]New connection [09:08:01]New thread 3066666340 created [09:08:01]Thread 3066809700 joined [09:08:01]Waiting for new connection... [09:08:01] Sock 9.Parse request [09:08:01]Sock 9.Check first char [09:08:01]Sock 9.First char is OK [09:08:01]request: POST /json_proto HTTP/1.0 [09:08:01]Method: POST [09:08:01]URL: /json_proto [09:08:01]Method is POST - this is cgi request [09:08:01]url: /json_proto [09:08:01]query_string will be loaded in cgi processing [09:08:01]execute_cgi json_proto POST (null) [09:08:01]execute_cgi path=json_proto method=POST [09:08:01]POST find Content-Length [09:08:01]Host: 172.17.38.4:8080 [09:08:01]Content-Length: 627 [09:08:01]Content-Type: application/json [09:08:01] [09:08:01]POST finish read [09:08:01]Found Content-Length = 627 [09:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11898", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:01]execute_script... [09:08:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11898", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:01]POST & json_proto [09:08:01]process_json_proto [09:08:01]json parsed OK: [09:08:01]protocol is kg_v1.0 [09:08:01]action value=close_receipt [09:08:01]process_action close_receipt [09:08:01]cmd_close_receipt [09:08:01]MH_GetDate [09:08:01]Write to MH i2c: F0 00 00 F6 10 F5 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: F0 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: F0 09 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: F0 09 00 F6 10 00 73 D9 5E 66 CC 51 87 64 16 [09:08:01]GetLastDocTimeStamp 1717491862 [09:08:01]current date 1717492083 [09:08:01]FM_GetShiftState [09:08:01]SAM_PROTO_GetShiftState [09:08:01]wFMCommunicate request_size=4 [09:08:01]MH_SAM_APDU [09:08:01]CAPDU: 80 13 01 00 [09:08:01]Write to MH i2c: E2 08 00 F7 10 80 13 01 00 00 00 00 00 84 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:01]Read from MH i2c: E2 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 0E 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: E2 0E 00 F7 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 47 [09:08:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:08:01]wFMCommunicate OK [09:08:01]SAM_PROTO_GetShiftState done [09:08:01]FM_GetShiftState done [09:08:01]opened in 1717460629 [09:08:01]opened+sec_in_day 1717547029 [09:08:01]quantity*price = 13500 [09:08:01]sum+1 = 13501 [09:08:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 28 04.06.2024 09:08 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148689 ФПД: 259594007975152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090803&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148689&fm=259594007975152&tin=02508201610067®Number=0000000000092720&sum=13500 0 [09:08:02]StoreToDocumentArchive [09:08:02]shift 368 fd 148689 [09:08:02]save to /storage/0368/doc_00148689 [09:08:02]save last doc name /storage/0368/doc_00148689 to /storage/kkm_last_doc_name [09:08:02]save OK [09:08:02]Clear old archive folders... [09:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:08:02]tlvbuf is 015C7990 [09:08:02]SAM_PROTO_ClearQueue [09:08:02]wFMCommunicate request_size=4 [09:08:02]MH_SAM_APDU [09:08:02]CAPDU: 80 09 00 00 [09:08:02]Write to MH i2c: E2 08 00 04 11 80 09 00 00 00 00 00 00 87 [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:02]Read from MH i2c: E2 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 03 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 03 00 04 11 00 90 00 89 [09:08:02]RAPDU: 90 00 [09:08:02]wFMCommunicate OK [09:08:02]SAM_PROTO_ClearQueue done [09:08:02]KKMCreateOFDPacket [09:08:02]OFDProtocolAddRootSTLVToBuf [09:08:02]FM_MakeSignedData [09:08:02]FM_MakeSignedData [09:08:02]SAM_PROTO_SignData [09:08:02]wFMCommunicate request_size=4 [09:08:02]MH_SAM_APDU [09:08:02]CAPDU: 80 0D 01 02 [09:08:02]Write to MH i2c: E2 08 00 05 11 80 0D 01 02 00 00 00 00 8F [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:02]Read from MH i2c: E2 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 03 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 03 00 05 11 00 90 00 8A [09:08:02]RAPDU: 90 00 [09:08:02]wFMCommunicate OK [09:08:02]wFMCommunicate request_size=255 [09:08:02]MH_SAM_APDU [09:08:02]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 73 D9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 [09:08:02]Write to MH i2c: E2 02 01 06 11 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 73 D9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 00 00 82 [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:02]Read from MH i2c: E2 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 03 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 03 00 06 11 00 90 00 8B [09:08:02]RAPDU: 90 00 [09:08:02]wFMCommunicate OK [09:08:02]wFMCommunicate request_size=39 [09:08:02]MH_SAM_APDU [09:08:02]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D1 44 02 00 35 04 06 00 EC 19 70 A1 94 F0 [09:08:02]Write to MH i2c: E2 2A 00 07 11 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D1 44 02 00 35 04 06 00 EC 19 70 A1 94 F0 00 00 FE [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:02]Read from MH i2c: E2 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 03 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 03 00 07 11 00 90 00 8C [09:08:02]RAPDU: 90 00 [09:08:02]wFMCommunicate OK [09:08:02]wFMCommunicate request_size=4 [09:08:02]MH_SAM_APDU [09:08:02]CAPDU: 80 0D 03 02 [09:08:02]Write to MH i2c: E2 08 00 08 11 80 0D 03 02 00 00 00 00 94 [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:02]Read from MH i2c: E2 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 0B 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 0B 00 08 11 00 08 78 6D 5A 14 F7 2B 5D 90 00 6F [09:08:02]RAPDU: 08 78 6D 5A 14 F7 2B 5D 90 00 [09:08:02]wFMCommunicate OK [09:08:02]SAM_PROTO_SignData done [09:08:02]FM_MakeSignedData done [09:08:02]CreateOFDProtocolMessage [09:08:02]wFMCommunicate request_size=4 [09:08:02]MH_SAM_APDU [09:08:02]CAPDU: 80 11 00 00 [09:08:02]Write to MH i2c: E2 08 00 09 11 80 11 00 00 00 00 00 00 94 [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:02]Read from MH i2c: E2 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 17 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 17 00 09 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E7 [09:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:08:02]wFMCommunicate OK [09:08:02]CreateOFDProtocolMessage done [09:08:02]OFDSenderStorePacket 148689 [09:08:02]StoreOFDPacket docnum=148689 [09:08:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2C 01 00 00 A4 76 24 01 36 61 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 73 D9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D1 44 02 00 35 04 06 00 EC 19 70 A1 94 F0 08 78 6D 5A 14 F7 2B 5D [09:08:02]CheckFolder [09:08:02]dirname=/storage/ofd_packets [09:08:02]CheckFolder done [09:08:02]ProducePacketName [09:08:02]name=ofd_packets/00148689 [09:08:02]NVStorageSaveData ofd_packets/00148689 [09:08:02]File name is /storage/ofd_packets/00148689 [09:08:02]Write 330 bytes [09:08:02]NVStorageSaveData done [09:08:02]OFDSenderStorePacket done [09:08:02]KKMCreateOFDPacket done [09:08:02]NVStorageSaveData kkm_last_timestamp [09:08:02]File name is /storage/kkm_last_timestamp [09:08:02]Write 4 bytes [09:08:02]NVStorageSaveData done [09:08:02]ExternCall_PrintAddStr [09:08:02]wPrintStart [09:08:02]Write to MH i2c: 01 00 00 0A 11 1B [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: 01 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: 01 07 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: 01 07 00 0A 11 00 00 00 00 00 FF 0F 30 [09:08:02]RasterBufferAndPrint [09:08:02]line Счет N : (3)11898 [09:08:02]line ИНН: 02508201610067 [09:08:02]line Контрольно-Кассовый Чек [09:08:02]line ПРОДАЖА [09:08:02]line Товар: 48741231 [09:08:02]line Сигареты Winston Super Slims Silver [09:08:02]line 1.000 * 135.00 [09:08:02]line = 135.00 [09:08:02]line НДС 12% НСП 1% [09:08:02]line > о реализуемом товаре [09:08:02]line ИТОГО: 135.00 [09:08:02]line НСП 1% : 1.19 [09:08:02]line НДС 12% : 14.34 [09:08:02]line Наличными: 135.00 [09:08:02]line Безнал.: 0.00 [09:08:02]line Место: АЗС № 68 "Партнер Нефть" [09:08:02]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:08:02]line СНО: Общий режим [09:08:02]line Чек 28 04.06.2024 09:08 [09:08:02]line Смена: 368 ФФД: 1.0 [09:08:02]line ЗНМ: 0300000035 [09:08:02]line РНМ: 0000000000092720 [09:08:02]line Версия ККМ: 001 [09:08:02]line ФМ: 0000000000875057 [09:08:02]line ФД: 148689 [09:08:02]line ФПД: 259594007975152 [09:08:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090803&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148689&fm=259594007975152&tin=02508201610067®Number=0000000000092720&sum=13500 [09:08:03]line 0 [09:08:03]OFD Sender: Processing packet 148689 [packets to send 100, broken 99] [09:08:03]ProducePacketName [09:08:03]name=ofd_packets/00148689 [09:08:03]OFD Sender: To server: pG, [09:08:03]CommunicateWithHost lk.salyk.kg:30040 [09:08:03]ConnectInit lk.salyk.kg [09:08:03]written 0, free lines is 4095 [09:08:03]Connected sock=10 [09:08:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2C 01 00 00 A4 76 24 01 36 61 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 73 D9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D1 44 02 00 35 04 06 00 EC 19 70 A1 94 F0 08 78 6D 5A 14 F7 2B 5D [09:08:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 51 0A 47 00 39 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 38 37 35 30 35 37 10 04 04 00 D1 44 02 00 F4 03 04 00 98 80 5E 66 B6 04 01 00 00 8C 57 DC 41 C2 E5 F7 10 [09:08:03]CommunicateWithHost err = 0 [09:08:03]CheckOFDResponse [09:08:03]1017 (14) - 77093643461234 [09:08:03]1041 (16) - 0000000000875057 [09:08:03]1040 (4) - 148689 [09:08:03]1012 (4) - 04.06.2024 02:48 [09:08:03]1206 (1) - 0 [09:08:03]OFD Sender: Remove packet 148689 [09:08:03]ProducePacketName [09:08:03]name=ofd_packets/00148689 [09:08:03]NVStorageDeleteData [09:08:03]Write to MH i2c: 01 00 00 33 11 44 [09:08:03]Write i2c OK [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: 01 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: 01 07 00 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: 01 07 00 33 11 00 00 00 00 00 61 0C B8 [09:08:03]RasterBufferAndPrint [09:08:03]line [09:08:03]line [09:08:03]line [09:08:03]line [09:08:03]line [09:08:03]written 0, free lines is 3175 [09:08:03]MH_Cut [09:08:03]Write to MH i2c: D1 01 00 3A 11 01 1D [09:08:03]Write i2c OK [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: D1 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: D1 01 00 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: D1 01 00 3A 11 00 1C [09:08:03]Write to MH i2c: 01 00 00 3B 11 4C [09:08:03]Write i2c OK [09:08:03]MH_I2C_Read... [09:08:04]OFD Sender: No OFD packet to send [09:08:05]*** Cut start [09:08:05]*** Partial cut [09:08:05]*** CUTSNS_PIN = 1 [09:08:05]*** CUTSNS_PIN = 0 [09:08:05]*** Brake cut motor [09:08:05]Read from MH i2c: 01 [09:08:05]MH_I2C_Read... [09:08:05]*** Stop cut motor [09:08:05]*** Cut end [09:08:05]Read from MH i2c: 01 07 00 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: 01 07 00 3B 11 00 00 00 00 00 FF 0F 61 [09:08:05]process_action close_receipt done [09:08:05]requested_data is exist [09:08:05]produce_requested_data [09:08:05]requested_item fm.sn is exist - process it [09:08:05]wFMCommunicate request_size=4 [09:08:05]MH_SAM_APDU [09:08:05]CAPDU: 80 11 00 00 [09:08:05]Write to MH i2c: E2 08 00 3C 11 80 11 00 00 00 00 00 00 C7 [09:08:05]Write i2c OK [09:08:05]MH_I2C_Read... [09:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:05]Read from MH i2c: E2 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 17 00 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 17 00 3C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1A [09:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:08:05]wFMCommunicate OK [09:08:05]requested_item fd.num is exist - process it [09:08:05]SAM_PROTO_GetFieldsCounters [09:08:05]wFMCommunicate request_size=4 [09:08:05]MH_SAM_APDU [09:08:05]CAPDU: 80 13 00 00 [09:08:05]Write to MH i2c: E2 08 00 3D 11 80 13 00 00 00 00 00 00 CA [09:08:05]Write i2c OK [09:08:05]MH_I2C_Read... [09:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:05]Read from MH i2c: E2 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 62 00 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 62 00 3D 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D1 44 02 00 0E 04 04 00 70 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 C2 [09:08:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D1 44 02 00 0E 04 04 00 70 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:08:05]wFMCommunicate OK [09:08:05]SAM_PROTO_GetFieldsCounters done [09:08:05]requested_item shift.num is exist - process it [09:08:05]requested_item shift.opened is exist - process it [09:08:05]req_shift_opened [09:08:05]FM_GetShiftState [09:08:05]SAM_PROTO_GetShiftState [09:08:05]wFMCommunicate request_size=4 [09:08:05]MH_SAM_APDU [09:08:05]CAPDU: 80 13 01 00 [09:08:05]Write to MH i2c: E2 08 00 3E 11 80 13 01 00 00 00 00 00 CC [09:08:05]Write i2c OK [09:08:05]MH_I2C_Read... [09:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:05]Read from MH i2c: E2 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 0E 00 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 0E 00 3E 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8F [09:08:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:08:05]wFMCommunicate OK [09:08:05]SAM_PROTO_GetShiftState done [09:08:05]FM_GetShiftState done [09:08:05]req_shift_opened done [09:08:05]requested_item shift.open_date is exist - process it [09:08:05]req_shift_open_date [09:08:05]req_shift_open_date done [09:08:05]produce_requested_data done [09:08:05]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148689,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:08:05]process_action_free close_receipt [09:08:05]json_value_free [09:08:05]json_value_free done [09:08:05]process_json_proto returns [09:08:05]Send response to host [09:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148689,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:08:05]free response buf [09:08:05]execute_script done [09:08:05]execute_script returns [09:08:05]free content buf [09:08:05]Sock 9.Close socket [09:08:05]Sock 9.Thread stoped [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:11]accept exits with 7 [09:09:11]New connection [09:09:11]New thread 3066809700 created [09:09:11]Thread 3066666340 joined [09:09:11]Waiting for new connection... [09:09:11] Sock 7.Parse request [09:09:11]Sock 7.Check first char [09:09:11]Sock 7.First char is OK [09:09:11]request: POST /json_proto HTTP/1.0 [09:09:11]Method: POST [09:09:11]URL: /json_proto [09:09:11]Method is POST - this is cgi request [09:09:11]url: /json_proto [09:09:11]query_string will be loaded in cgi processing [09:09:11]execute_cgi json_proto POST (null) [09:09:11]execute_cgi path=json_proto method=POST [09:09:11]POST find Content-Length [09:09:11]Host: 172.17.38.4:8080 [09:09:11]Content-Length: 678 [09:09:11]Content-Type: application/json [09:09:11] [09:09:11]POST finish read [09:09:11]Found Content-Length = 678 [09:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.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" ] } } [09:09:11]execute_script... [09:09: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)979612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.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" ] } } [09:09:11]POST & json_proto [09:09:11]process_json_proto [09:09:11]json parsed OK: [09:09:11]protocol is kg_v1.0 [09:09:11]action value=close_receipt [09:09:11]process_action close_receipt [09:09:11]cmd_close_receipt [09:09:11]MH_GetDate [09:09:11]Write to MH i2c: F0 00 00 3F 11 3F [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: F0 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: F0 09 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: F0 09 00 3F 11 00 B9 D9 5E 66 CC 51 87 64 A6 [09:09:11]GetLastDocTimeStamp 1717492083 [09:09:11]current date 1717492153 [09:09:11]FM_GetShiftState [09:09:11]SAM_PROTO_GetShiftState [09:09:11]wFMCommunicate request_size=4 [09:09:11]MH_SAM_APDU [09:09:11]CAPDU: 80 13 01 00 [09:09:11]Write to MH i2c: E2 08 00 40 11 80 13 01 00 00 00 00 00 CE [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:11]Read from MH i2c: E2 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 0E 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 0E 00 40 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 91 [09:09:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:09:11]wFMCommunicate OK [09:09:11]SAM_PROTO_GetShiftState done [09:09:11]FM_GetShiftState done [09:09:11]opened in 1717460629 [09:09:11]opened+sec_in_day 1717547029 [09:09:11]quantity*price = 67033 [09:09:11]sum+1 = 67035 [09:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 29 04.06.2024 09:09 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148690 ФПД: 207128747367838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090914&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148690&fm=207128747367838&tin=02508201610067®Number=0000000000092720&sum=67000 [09:09:12]StoreToDocumentArchive [09:09:12]shift 368 fd 148690 [09:09:12]save to /storage/0368/doc_00148690 [09:09:12]save last doc name /storage/0368/doc_00148690 to /storage/kkm_last_doc_name [09:09:12]save OK [09:09:12]Clear old archive folders... [09:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:12]tlvbuf is B6E85350 [09:09:12]SAM_PROTO_ClearQueue [09:09:12]wFMCommunicate request_size=4 [09:09:12]MH_SAM_APDU [09:09:12]CAPDU: 80 09 00 00 [09:09:12]Write to MH i2c: E2 08 00 4D 11 80 09 00 00 00 00 00 00 D0 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:12]Read from MH i2c: E2 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 03 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 03 00 4D 11 00 90 00 D2 [09:09:12]RAPDU: 90 00 [09:09:12]wFMCommunicate OK [09:09:12]SAM_PROTO_ClearQueue done [09:09:12]KKMCreateOFDPacket [09:09:12]OFDProtocolAddRootSTLVToBuf [09:09:12]FM_MakeSignedData [09:09:12]FM_MakeSignedData [09:09:12]SAM_PROTO_SignData [09:09:12]wFMCommunicate request_size=4 [09:09:12]MH_SAM_APDU [09:09:12]CAPDU: 80 0D 01 02 [09:09:12]Write to MH i2c: E2 08 00 4E 11 80 0D 01 02 00 00 00 00 D8 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:12]Read from MH i2c: E2 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 03 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 03 00 4E 11 00 90 00 D3 [09:09:12]RAPDU: 90 00 [09:09:12]wFMCommunicate OK [09:09:12]wFMCommunicate request_size=255 [09:09:12]MH_SAM_APDU [09:09:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 BA D9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D2 44 02 00 35 04 06 00 BC [09:09:12]Write to MH i2c: E2 02 01 4F 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 BA D9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D2 44 02 00 35 04 06 00 BC 00 00 B6 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:12]Read from MH i2c: E2 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 03 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 03 00 4F 11 00 90 00 D4 [09:09:12]RAPDU: 90 00 [09:09:12]wFMCommunicate OK [09:09:12]wFMCommunicate request_size=10 [09:09:12]MH_SAM_APDU [09:09:12]CAPDU: 80 0D 02 02 05 61 EB 68 DD 9E [09:09:12]Write to MH i2c: E2 0D 00 50 11 80 0D 02 02 05 00 61 EB 68 DD 9E 00 00 14 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:12]Read from MH i2c: E2 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 03 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 03 00 50 11 00 90 00 D5 [09:09:12]RAPDU: 90 00 [09:09:12]wFMCommunicate OK [09:09:12]wFMCommunicate request_size=4 [09:09:12]MH_SAM_APDU [09:09:12]CAPDU: 80 0D 03 02 [09:09:12]Write to MH i2c: E2 08 00 51 11 80 0D 03 02 00 00 00 00 DD [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 0B 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 0B 00 51 11 00 E3 48 DC 22 6C F4 34 6D 90 00 08 [09:09:13]RAPDU: E3 48 DC 22 6C F4 34 6D 90 00 [09:09:13]wFMCommunicate OK [09:09:13]SAM_PROTO_SignData done [09:09:13]FM_MakeSignedData done [09:09:13]CreateOFDProtocolMessage [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 11 00 00 [09:09:13]Write to MH i2c: E2 08 00 52 11 80 11 00 00 00 00 00 00 DD [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 17 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 17 00 52 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 30 [09:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:09:13]wFMCommunicate OK [09:09:13]CreateOFDProtocolMessage done [09:09:13]OFDSenderStorePacket 148690 [09:09:13]StoreOFDPacket docnum=148690 [09:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 98 C9 07 01 A1 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 35 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 1D 00 00 00 F4 03 04 00 BA D9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D2 44 02 00 35 04 06 00 BC 61 EB 68 DD 9E E3 48 DC 22 6C F4 34 6D [09:09:13]CheckFolder [09:09:13]dirname=/storage/ofd_packets [09:09:13]CheckFolder done [09:09:13]ProducePacketName [09:09:13]name=ofd_packets/00148690 [09:09:13]NVStorageSaveData ofd_packets/00148690 [09:09:13]File name is /storage/ofd_packets/00148690 [09:09:13]Write 301 bytes [09:09:13]NVStorageSaveData done [09:09:13]OFDSenderStorePacket done [09:09:13]KKMCreateOFDPacket done [09:09:13]NVStorageSaveData kkm_last_timestamp [09:09:13]File name is /storage/kkm_last_timestamp [09:09:13]Write 4 bytes [09:09:13]NVStorageSaveData done [09:09:13]ExternCall_PrintAddStr [09:09:13]wPrintStart [09:09:13]Write to MH i2c: 01 00 00 53 11 64 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 07 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 07 00 53 11 00 00 00 00 00 FF 0F 79 [09:09:13]RasterBufferAndPrint [09:09:13]line Счет N : (1)979612 [09:09:13]line ИНН: 02508201610067 [09:09:13]line Контрольно-Кассовый Чек [09:09:13]line ПРОДАЖА [09:09:13]line ТРК (МРК, ГНК) : 12 [09:09:13]line Товар: 2710124130 [09:09:13]line Аи-92-К-5 [09:09:13]line 10.020 * 66.90 [09:09:13]line = 670.34 [09:09:13]line НДС 12% НСП 1% [09:09:13]line > о реализуемом товаре [09:09:13]line ОКРУГЛЕНИЕ: -0.34 [09:09:13]line ИТОГО: 670.00 [09:09:13]line Внесено: 670.00 [09:09:13]line СДАЧА: 0.00 [09:09:13]line НСП 1% : 5.93 [09:09:13]line НДС 12% : 71.19 [09:09:13]line Наличными: 670.00 [09:09:13]line Безнал.: 0.00 [09:09:13]line Место: АЗС № 68 "Партнер Нефть" [09:09:13]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:09:13]line СНО: Общий режим [09:09:13]line Чек 29 04.06.2024 09:09 [09:09:13]line Смена: 368 ФФД: 1.0 [09:09:13]line ЗНМ: 0300000035 [09:09:13]line РНМ: 0000000000092720 [09:09:13]line Версия ККМ: 001 [09:09:13]line ФМ: 0000000000875057 [09:09:13]line ФД: 148690 [09:09:13]line ФПД: 207128747367838 [09:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T090914&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148690&fm=207128747367838&tin=02508201610067®Number=0000000000092720&sum=67000 [09:09:13]OFD Sender: Processing packet 148690 [packets to send 100, broken 99] [09:09:13]ProducePacketName [09:09:13]name=ofd_packets/00148690 [09:09:13]OFD Sender: To server: pG, [09:09:13]CommunicateWithHost lk.salyk.kg:30040 [09:09:13]ConnectInit lk.salyk.kg [09:09:13]written 0, free lines is 4095 [09:09:13]Connected sock=10 [09:09:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 98 C9 07 01 A1 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 35 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 1D 00 00 00 F4 03 04 00 BA D9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D2 44 02 00 35 04 06 00 BC 61 EB 68 DD 9E E3 48 DC 22 6C F4 34 6D [09:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 11 AE 47 00 29 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D2 44 02 00 F4 03 04 00 DE 80 5E 66 B6 04 01 00 00 59 0A 0D 0D 69 63 7E 52 [09:09:13]CommunicateWithHost err = 0 [09:09:13]CheckOFDResponse [09:09:13]1017 (14) - 77093643461234 [09:09:13]1041 (16) - 0000000000875057 [09:09:13]1040 (4) - 148690 [09:09:13]1012 (4) - 04.06.2024 02:50 [09:09:13]1206 (1) - 0 [09:09:13]OFD Sender: Remove packet 148690 [09:09:13]ProducePacketName [09:09:13]name=ofd_packets/00148690 [09:09:13]NVStorageDeleteData [09:09:13]Write to MH i2c: 01 00 00 7E 11 8F [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 07 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 07 00 7E 11 00 00 00 00 00 68 0C 0A [09:09:13]RasterBufferAndPrint [09:09:13]line [09:09:13]line [09:09:13]line [09:09:13]line [09:09:13]line [09:09:13]written 0, free lines is 3180 [09:09:13]MH_Cut [09:09:13]Write to MH i2c: D1 01 00 85 11 01 68 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: D1 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: D1 01 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: D1 01 00 85 11 00 67 [09:09:13]Write to MH i2c: 01 00 00 86 11 97 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:14]OFD Sender: No OFD packet to send [09:09:15]*** Cut start [09:09:15]*** Partial cut [09:09:15]*** CUTSNS_PIN = 1 [09:09:15]*** CUTSNS_PIN = 0 [09:09:15]*** Brake cut motor [09:09:15]Read from MH i2c: 01 [09:09:15]MH_I2C_Read... [09:09:15]*** Stop cut motor [09:09:15]*** Cut end [09:09:15]Read from MH i2c: 01 07 00 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: 01 07 00 86 11 00 00 00 00 00 FF 0F AC [09:09:15]process_action close_receipt done [09:09:15]requested_data is exist [09:09:15]produce_requested_data [09:09:15]requested_item fm.sn is exist - process it [09:09:15]wFMCommunicate request_size=4 [09:09:15]MH_SAM_APDU [09:09:15]CAPDU: 80 11 00 00 [09:09:15]Write to MH i2c: E2 08 00 87 11 80 11 00 00 00 00 00 00 12 [09:09:15]Write i2c OK [09:09:15]MH_I2C_Read... [09:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:15]Read from MH i2c: E2 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: E2 17 00 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: E2 17 00 87 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 65 [09:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:09:15]wFMCommunicate OK [09:09:15]requested_item fd.num is exist - process it [09:09:15]SAM_PROTO_GetFieldsCounters [09:09:15]wFMCommunicate request_size=4 [09:09:15]MH_SAM_APDU [09:09:15]CAPDU: 80 13 00 00 [09:09:15]Write to MH i2c: E2 08 00 88 11 80 13 00 00 00 00 00 00 15 [09:09:15]Write i2c OK [09:09:15]MH_I2C_Read... [09:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:16]Read from MH i2c: E2 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 62 00 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 62 00 88 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D2 44 02 00 0E 04 04 00 70 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 11 [09:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D2 44 02 00 0E 04 04 00 70 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:09:16]wFMCommunicate OK [09:09:16]SAM_PROTO_GetFieldsCounters done [09:09:16]requested_item shift.num is exist - process it [09:09:16]requested_item shift.opened is exist - process it [09:09:16]req_shift_opened [09:09:16]FM_GetShiftState [09:09:16]SAM_PROTO_GetShiftState [09:09:16]wFMCommunicate request_size=4 [09:09:16]MH_SAM_APDU [09:09:16]CAPDU: 80 13 01 00 [09:09:16]Write to MH i2c: E2 08 00 89 11 80 13 01 00 00 00 00 00 17 [09:09:16]Write i2c OK [09:09:16]MH_I2C_Read... [09:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:16]Read from MH i2c: E2 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 0E 00 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 0E 00 89 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DA [09:09:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:09:16]wFMCommunicate OK [09:09:16]SAM_PROTO_GetShiftState done [09:09:16]FM_GetShiftState done [09:09:16]req_shift_opened done [09:09:16]requested_item shift.open_date is exist - process it [09:09:16]req_shift_open_date [09:09:16]req_shift_open_date done [09:09:16]produce_requested_data done [09:09:16]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148690,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:09:16]process_action_free close_receipt [09:09:16]json_value_free [09:09:16]json_value_free done [09:09:16]process_json_proto returns [09:09:16]Send response to host [09:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148690,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:09:16]free response buf [09:09:16]execute_script done [09:09:16]execute_script returns [09:09:16]free content buf [09:09:16]Sock 7.Close socket [09:09:16]Sock 7.Thread stoped [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:37]accept exits with 9 [09:11:37]New connection [09:11:37]New thread 3066666340 created [09:11:37]Thread 3066809700 joined [09:11:37]Waiting for new connection... [09:11:37] Sock 9.Parse request [09:11:37]Sock 9.Check first char [09:11:37]Sock 9.First char is OK [09:11:37]request: POST /json_proto HTTP/1.0 [09:11:37]Method: POST [09:11:37]URL: /json_proto [09:11:37]Method is POST - this is cgi request [09:11:37]url: /json_proto [09:11:37]query_string will be loaded in cgi processing [09:11:37]execute_cgi json_proto POST (null) [09:11:37]execute_cgi path=json_proto method=POST [09:11:37]POST find Content-Length [09:11:37]Host: 172.17.38.4:8080 [09:11:37]Content-Length: 682 [09:11:37]Content-Type: application/json [09:11:37] [09:11:37]POST finish read [09:11:37]Found Content-Length = 682 [09:11:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:37]execute_script... [09: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)979613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:37]POST & json_proto [09:11:37]process_json_proto [09:11:37]json parsed OK: [09:11:37]protocol is kg_v1.0 [09:11:37]action value=close_receipt [09:11:37]process_action close_receipt [09:11:37]cmd_close_receipt [09:11:37]MH_GetDate [09:11:37]Write to MH i2c: F0 00 00 8A 11 8A [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: F0 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: F0 09 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: F0 09 00 8A 11 00 4C DA 5E 66 CC 51 87 64 85 [09:11:37]GetLastDocTimeStamp 1717492154 [09:11:37]current date 1717492300 [09:11:37]FM_GetShiftState [09:11:37]SAM_PROTO_GetShiftState [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 13 01 00 [09:11:37]Write to MH i2c: E2 08 00 8B 11 80 13 01 00 00 00 00 00 19 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 0E 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 0E 00 8B 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DC [09:11:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:11:37]wFMCommunicate OK [09:11:37]SAM_PROTO_GetShiftState done [09:11:37]FM_GetShiftState done [09:11:37]opened in 1717460629 [09:11:37]opened+sec_in_day 1717547029 [09:11:37]quantity*price = 100015 [09:11:37]sum+1 = 100017 [09:11:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 30 04.06.2024 09:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148691 ФПД: 195713543540667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T091140&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148691&fm=195713543540667&tin=02508201610067®Number=0000000000092720&sum=100000 [09:11:38]StoreToDocumentArchive [09:11:38]shift 368 fd 148691 [09:11:38]save to /storage/0368/doc_00148691 [09:11:38]save last doc name /storage/0368/doc_00148691 to /storage/kkm_last_doc_name [09:11:38]save OK [09:11:38]Clear old archive folders... [09:11:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:38]tlvbuf is 015E5970 [09:11:38]SAM_PROTO_ClearQueue [09:11:38]wFMCommunicate request_size=4 [09:11:38]MH_SAM_APDU [09:11:38]CAPDU: 80 09 00 00 [09:11:38]Write to MH i2c: E2 08 00 98 11 80 09 00 00 00 00 00 00 1B [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 98 11 00 90 00 1D [09:11:39]RAPDU: 90 00 [09:11:39]wFMCommunicate OK [09:11:39]SAM_PROTO_ClearQueue done [09:11:39]KKMCreateOFDPacket [09:11:39]OFDProtocolAddRootSTLVToBuf [09:11:39]FM_MakeSignedData [09:11:39]FM_MakeSignedData [09:11:39]SAM_PROTO_SignData [09:11:39]wFMCommunicate request_size=4 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 0D 01 02 [09:11:39]Write to MH i2c: E2 08 00 99 11 80 0D 01 02 00 00 00 00 23 [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 99 11 00 90 00 1E [09:11:39]RAPDU: 90 00 [09:11:39]wFMCommunicate OK [09:11:39]wFMCommunicate request_size=255 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 4C DA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D3 44 02 00 35 04 06 00 B2 [09:11:39]Write to MH i2c: E2 02 01 9A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 4C DA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D3 44 02 00 35 04 06 00 B2 00 00 EB [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 9A 11 00 90 00 1F [09:11:39]RAPDU: 90 00 [09:11:39]wFMCommunicate OK [09:11:39]wFMCommunicate request_size=10 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 0D 02 02 05 00 1C 3D 8F BB [09:11:39]Write to MH i2c: E2 0D 00 9B 11 80 0D 02 02 05 00 00 1C 3D 8F BB 00 00 D3 [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [09:11:39]RAPDU: 90 00 [09:11:39]wFMCommunicate OK [09:11:39]wFMCommunicate request_size=4 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 0D 03 02 [09:11:39]Write to MH i2c: E2 08 00 9C 11 80 0D 03 02 00 00 00 00 28 [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:39]OFD Sender: No OFD packet to send [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 0B 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 0B 00 9C 11 00 E5 96 B5 BE CF DD 5D 6C 90 00 8C [09:11:39]RAPDU: E5 96 B5 BE CF DD 5D 6C 90 00 [09:11:39]wFMCommunicate OK [09:11:39]SAM_PROTO_SignData done [09:11:39]FM_MakeSignedData done [09:11:39]CreateOFDProtocolMessage [09:11:39]wFMCommunicate request_size=4 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 11 00 00 [09:11:39]Write to MH i2c: E2 08 00 9D 11 80 11 00 00 00 00 00 00 28 [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 17 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 17 00 9D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7B [09:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:11:39]wFMCommunicate OK [09:11:39]CreateOFDProtocolMessage done [09:11:39]OFDSenderStorePacket 148691 [09:11:39]StoreOFDPacket docnum=148691 [09:11:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C0 37 07 01 84 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 4C DA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D3 44 02 00 35 04 06 00 B2 00 1C 3D 8F BB E5 96 B5 BE CF DD 5D 6C [09:11:39]CheckFolder [09:11:39]dirname=/storage/ofd_packets [09:11:39]CheckFolder done [09:11:39]ProducePacketName [09:11:39]name=ofd_packets/00148691 [09:11:39]NVStorageSaveData ofd_packets/00148691 [09:11:39]File name is /storage/ofd_packets/00148691 [09:11:39]Write 301 bytes [09:11:39]NVStorageSaveData done [09:11:39]OFDSenderStorePacket done [09:11:39]KKMCreateOFDPacket done [09:11:39]NVStorageSaveData kkm_last_timestamp [09:11:39]File name is /storage/kkm_last_timestamp [09:11:39]Write 4 bytes [09:11:39]NVStorageSaveData done [09:11:39]ExternCall_PrintAddStr [09:11:39]wPrintStart [09:11:39]Write to MH i2c: 01 00 00 9E 11 AF [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: 01 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: 01 07 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: 01 07 00 9E 11 00 00 00 00 00 FF 0F C4 [09:11:39]RasterBufferAndPrint [09:11:39]line Счет N : (1)979613 [09:11:39]line ИНН: 02508201610067 [09:11:39]line Контрольно-Кассовый Чек [09:11:39]line ПРОДАЖА [09:11:39]line ТРК (МРК, ГНК) : 12 [09:11:39]line Товар: 2710124130 [09:11:39]line Аи-92-К-5 [09:11:39]line 14.950 * 66.90 [09:11:39]line = 1000.16 [09:11:39]line НДС 12% НСП 1% [09:11:39]line > о реализуемом товаре [09:11:39]line ОКРУГЛЕНИЕ: -0.16 [09:11:39]line ИТОГО: 1000.00 [09:11:39]line Внесено: 1000.00 [09:11:39]line СДАЧА: 0.00 [09:11:39]line НСП 1% : 8.85 [09:11:39]line НДС 12% : 106.21 [09:11:39]line Наличными: 1000.00 [09:11:39]line Безнал.: 0.00 [09:11:39]line Место: АЗС № 68 "Партнер Нефть" [09:11:39]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:11:39]line СНО: Общий режим [09:11:39]line Чек 30 04.06.2024 09:11 [09:11:39]line Смена: 368 ФФД: 1.0 [09:11:39]line ЗНМ: 0300000035 [09:11:39]line РНМ: 0000000000092720 [09:11:39]line Версия ККМ: 001 [09:11:39]line ФМ: 0000000000875057 [09:11:39]line ФД: 148691 [09:11:39]line ФПД: 195713543540667 [09:11:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T091140&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148691&fm=195713543540667&tin=02508201610067®Number=0000000000092720&sum=100000 [09:11:39]OFD Sender: Processing packet 148691 [packets to send 100, broken 99] [09:11:39]ProducePacketName [09:11:39]name=ofd_packets/00148691 [09:11:39]OFD Sender: To server: pG, [09:11:39]CommunicateWithHost lk.salyk.kg:30040 [09:11:39]ConnectInit lk.salyk.kg [09:11:39]written 0, free lines is 4095 [09:11:39]Connected sock=10 [09:11:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C0 37 07 01 84 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 4C DA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D3 44 02 00 35 04 06 00 B2 00 1C 3D 8F BB E5 96 B5 BE CF DD 5D 6C [09:11:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D5 A9 47 00 20 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 38 37 35 30 35 37 10 04 04 00 D3 44 02 00 F4 03 04 00 70 81 5E 66 B6 04 01 00 00 ED 86 D5 DC BC 6A 10 C1 [09:11:40]CommunicateWithHost err = 0 [09:11:40]CheckOFDResponse [09:11:40]1017 (14) - 77093643461234 [09:11:40]1041 (16) - 0000000000875057 [09:11:40]1040 (4) - 148691 [09:11:40]1012 (4) - 04.06.2024 02:52 [09:11:40]1206 (1) - 0 [09:11:40]OFD Sender: Remove packet 148691 [09:11:40]ProducePacketName [09:11:40]name=ofd_packets/00148691 [09:11:40]NVStorageDeleteData [09:11:40]Write to MH i2c: 01 00 00 C9 11 DA [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: 01 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: 01 07 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: 01 07 00 C9 11 00 00 00 00 00 62 0C 4F [09:11:40]RasterBufferAndPrint [09:11:40]line [09:11:40]line [09:11:40]line [09:11:40]line [09:11:40]line [09:11:40]written 0, free lines is 3174 [09:11:40]MH_Cut [09:11:40]Write to MH i2c: D1 01 00 D0 11 01 B3 [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: D1 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: D1 01 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: D1 01 00 D0 11 00 B2 [09:11:40]Write to MH i2c: 01 00 00 D1 11 E2 [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]OFD Sender: No OFD packet to send [09:11:41]*** Cut start [09:11:41]*** Partial cut [09:11:41]*** CUTSNS_PIN = 1 [09:11:41]*** CUTSNS_PIN = 0 [09:11:41]*** Brake cut motor [09:11:42]Read from MH i2c: 01 [09:11:42]MH_I2C_Read... [09:11:42]*** Stop cut motor [09:11:42]*** Cut end [09:11:42]Read from MH i2c: 01 07 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: 01 07 00 D1 11 00 00 00 00 00 FF 0F F7 [09:11:42]process_action close_receipt done [09:11:42]requested_data is exist [09:11:42]produce_requested_data [09:11:42]requested_item fm.sn is exist - process it [09:11:42]wFMCommunicate request_size=4 [09:11:42]MH_SAM_APDU [09:11:42]CAPDU: 80 11 00 00 [09:11:42]Write to MH i2c: E2 08 00 D2 11 80 11 00 00 00 00 00 00 5D [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 17 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 17 00 D2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B0 [09:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:11:42]wFMCommunicate OK [09:11:42]requested_item fd.num is exist - process it [09:11:42]SAM_PROTO_GetFieldsCounters [09:11:42]wFMCommunicate request_size=4 [09:11:42]MH_SAM_APDU [09:11:42]CAPDU: 80 13 00 00 [09:11:42]Write to MH i2c: E2 08 00 D3 11 80 13 00 00 00 00 00 00 60 [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 62 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 62 00 D3 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D3 44 02 00 0E 04 04 00 70 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 60 [09:11:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D3 44 02 00 0E 04 04 00 70 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:11:42]wFMCommunicate OK [09:11:42]SAM_PROTO_GetFieldsCounters done [09:11:42]requested_item shift.num is exist - process it [09:11:42]requested_item shift.opened is exist - process it [09:11:42]req_shift_opened [09:11:42]FM_GetShiftState [09:11:42]SAM_PROTO_GetShiftState [09:11:42]wFMCommunicate request_size=4 [09:11:42]MH_SAM_APDU [09:11:42]CAPDU: 80 13 01 00 [09:11:42]Write to MH i2c: E2 08 00 D4 11 80 13 01 00 00 00 00 00 62 [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 0E 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 0E 00 D4 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 25 [09:11:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:11:42]wFMCommunicate OK [09:11:42]SAM_PROTO_GetShiftState done [09:11:42]FM_GetShiftState done [09:11:42]req_shift_opened done [09:11:42]requested_item shift.open_date is exist - process it [09:11:42]req_shift_open_date [09:11:42]req_shift_open_date done [09:11:42]produce_requested_data done [09:11:42]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148691,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:11:42]process_action_free close_receipt [09:11:42]json_value_free [09:11:42]json_value_free done [09:11:42]process_json_proto returns [09:11:42]Send response to host [09:11:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148691,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:11:42]free response buf [09:11:42]execute_script done [09:11:42]execute_script returns [09:11:42]free content buf [09:11:42]Sock 9.Close socket [09:11:42]Sock 9.Thread stoped [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:04]accept exits with 7 [09:16:04]New connection [09:16:04]New thread 3066809700 created [09:16:04]Thread 3066666340 joined [09:16:04]Waiting for new connection... [09:16:04] Sock 7.Parse request [09:16:04]Sock 7.Check first char [09:16:04]Sock 7.First char is OK [09:16:04]request: POST /json_proto HTTP/1.0 [09:16:04]Method: POST [09:16:04]URL: /json_proto [09:16:04]Method is POST - this is cgi request [09:16:04]url: /json_proto [09:16:04]query_string will be loaded in cgi processing [09:16:04]execute_cgi json_proto POST (null) [09:16:04]execute_cgi path=json_proto method=POST [09:16:04]POST find Content-Length [09:16:04]Host: 172.17.38.4:8080 [09:16:04]Content-Length: 678 [09:16:04]Content-Type: application/json [09:16:04] [09:16:04]POST finish read [09:16:04]Found Content-Length = 678 [09:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:04]execute_script... [09:16:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:04]POST & json_proto [09:16:04]process_json_proto [09:16:04]json parsed OK: [09:16:04]protocol is kg_v1.0 [09:16:04]action value=close_receipt [09:16:04]process_action close_receipt [09:16:04]cmd_close_receipt [09:16:04]MH_GetDate [09:16:04]Write to MH i2c: F0 00 00 D5 11 D5 [09:16:04]Write i2c OK [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: F0 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: F0 09 00 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: F0 09 00 D5 11 00 57 DB 5E 66 CC 51 87 64 DC [09:16:04]GetLastDocTimeStamp 1717492300 [09:16:04]current date 1717492567 [09:16:04]FM_GetShiftState [09:16:04]SAM_PROTO_GetShiftState [09:16:04]wFMCommunicate request_size=4 [09:16:04]MH_SAM_APDU [09:16:04]CAPDU: 80 13 01 00 [09:16:04]Write to MH i2c: E2 08 00 D6 11 80 13 01 00 00 00 00 00 64 [09:16:04]Write i2c OK [09:16:04]MH_I2C_Read... [09:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:04]Read from MH i2c: E2 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: E2 0E 00 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: E2 0E 00 D6 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 27 [09:16:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:16:04]wFMCommunicate OK [09:16:04]SAM_PROTO_GetShiftState done [09:16:04]FM_GetShiftState done [09:16:04]opened in 1717460629 [09:16:04]opened+sec_in_day 1717547029 [09:16:04]quantity*price = 70044 [09:16:04]sum+1 = 70045 [09:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 31 04.06.2024 09:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148692 ФПД: 94937408139028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T091607&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148692&fm=94937408139028&tin=02508201610067®Number=0000000000092720&sum=70000 [09:16:05]StoreToDocumentArchive [09:16:05]shift 368 fd 148692 [09:16:05]save to /storage/0368/doc_00148692 [09:16:05]save last doc name /storage/0368/doc_00148692 to /storage/kkm_last_doc_name [09:16:05]save OK [09:16:05]Clear old archive folders... [09:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:05]tlvbuf is B6E9E550 [09:16:05]SAM_PROTO_ClearQueue [09:16:05]wFMCommunicate request_size=4 [09:16:05]MH_SAM_APDU [09:16:05]CAPDU: 80 09 00 00 [09:16:05]Write to MH i2c: E2 08 00 E3 11 80 09 00 00 00 00 00 00 66 [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:05]Read from MH i2c: E2 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 03 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 03 00 E3 11 00 90 00 68 [09:16:05]RAPDU: 90 00 [09:16:05]wFMCommunicate OK [09:16:05]SAM_PROTO_ClearQueue done [09:16:05]KKMCreateOFDPacket [09:16:05]OFDProtocolAddRootSTLVToBuf [09:16:05]FM_MakeSignedData [09:16:05]FM_MakeSignedData [09:16:05]SAM_PROTO_SignData [09:16:05]wFMCommunicate request_size=4 [09:16:05]MH_SAM_APDU [09:16:05]CAPDU: 80 0D 01 02 [09:16:05]Write to MH i2c: E2 08 00 E4 11 80 0D 01 02 00 00 00 00 6E [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:05]Read from MH i2c: E2 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 03 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 03 00 E4 11 00 90 00 69 [09:16:05]RAPDU: 90 00 [09:16:05]wFMCommunicate OK [09:16:05]wFMCommunicate request_size=255 [09:16:05]MH_SAM_APDU [09:16:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 57 DB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D4 44 02 00 35 04 06 00 56 [09:16:05]Write to MH i2c: E2 02 01 E5 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1F 00 00 00 F4 03 04 00 57 DB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D4 44 02 00 35 04 06 00 56 00 00 FE [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:06]OFD Sender: No OFD packet to send [09:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 E5 11 00 90 00 6A [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=10 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 02 02 05 58 56 7C EF 14 [09:16:06]Write to MH i2c: E2 0D 00 E6 11 80 0D 02 02 05 00 58 56 7C EF 14 00 00 A8 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 E6 11 00 90 00 6B [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 03 02 [09:16:06]Write to MH i2c: E2 08 00 E7 11 80 0D 03 02 00 00 00 00 73 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 0B 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 0B 00 E7 11 00 9D C5 5F 04 C1 94 61 81 90 00 70 [09:16:06]RAPDU: 9D C5 5F 04 C1 94 61 81 90 00 [09:16:06]wFMCommunicate OK [09:16:06]SAM_PROTO_SignData done [09:16:06]FM_MakeSignedData done [09:16:06]CreateOFDProtocolMessage [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 11 00 00 [09:16:06]Write to MH i2c: E2 08 00 E8 11 80 11 00 00 00 00 00 00 73 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 17 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 17 00 E8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C6 [09:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:16:06]wFMCommunicate OK [09:16:06]CreateOFDProtocolMessage done [09:16:06]OFDSenderStorePacket 148692 [09:16:06]StoreOFDPacket docnum=148692 [09:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 62 CC 07 01 11 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 57 DB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D4 44 02 00 35 04 06 00 56 58 56 7C EF 14 9D C5 5F 04 C1 94 61 81 [09:16:06]CheckFolder [09:16:06]dirname=/storage/ofd_packets [09:16:06]CheckFolder done [09:16:06]ProducePacketName [09:16:06]name=ofd_packets/00148692 [09:16:06]NVStorageSaveData ofd_packets/00148692 [09:16:06]File name is /storage/ofd_packets/00148692 [09:16:06]Write 301 bytes [09:16:06]NVStorageSaveData done [09:16:06]OFDSenderStorePacket done [09:16:06]KKMCreateOFDPacket done [09:16:06]NVStorageSaveData kkm_last_timestamp [09:16:06]File name is /storage/kkm_last_timestamp [09:16:06]Write 4 bytes [09:16:06]NVStorageSaveData done [09:16:06]ExternCall_PrintAddStr [09:16:06]wPrintStart [09:16:06]Write to MH i2c: 01 00 00 E9 11 FA [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 07 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 07 00 E9 11 00 00 00 00 00 FF 0F 0F [09:16:06]RasterBufferAndPrint [09:16:06]line Счет N : (1)979614 [09:16:06]line ИНН: 02508201610067 [09:16:06]line Контрольно-Кассовый Чек [09:16:06]line ПРОДАЖА [09:16:06]line ТРК (МРК, ГНК) : 31 [09:16:06]line Товар: 2710124130 [09:16:06]line Аи-92-К-5 [09:16:06]line 10.470 * 66.90 [09:16:06]line = 700.44 [09:16:06]line НДС 12% НСП 1% [09:16:06]line > о реализуемом товаре [09:16:06]line ОКРУГЛЕНИЕ: -0.44 [09:16:06]line ИТОГО: 700.00 [09:16:06]line Внесено: 700.00 [09:16:06]line СДАЧА: 0.00 [09:16:06]line НСП 1% : 6.20 [09:16:06]line НДС 12% : 74.38 [09:16:06]line Наличными: 700.00 [09:16:06]line Безнал.: 0.00 [09:16:06]line Место: АЗС № 68 "Партнер Нефть" [09:16:06]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:16:06]line СНО: Общий режим [09:16:06]line Чек 31 04.06.2024 09:16 [09:16:06]line Смена: 368 ФФД: 1.0 [09:16:06]line ЗНМ: 0300000035 [09:16:06]line РНМ: 0000000000092720 [09:16:06]line Версия ККМ: 001 [09:16:06]line ФМ: 0000000000875057 [09:16:06]line ФД: 148692 [09:16:06]line ФПД: 94937408139028 [09:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T091607&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148692&fm=94937408139028&tin=02508201610067®Number=0000000000092720&sum=70000 [09:16:06]OFD Sender: Processing packet 148692 [packets to send 100, broken 99] [09:16:06]ProducePacketName [09:16:06]name=ofd_packets/00148692 [09:16:06]OFD Sender: To server: pG, [09:16:06]CommunicateWithHost lk.salyk.kg:30040 [09:16:06]ConnectInit lk.salyk.kg [09:16:06]written 0, free lines is 4095 [09:16:06]Connected sock=10 [09:16:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 62 CC 07 01 11 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 57 DB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D4 44 02 00 35 04 06 00 56 58 56 7C EF 14 9D C5 5F 04 C1 94 61 81 [09:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BA 3C 47 00 D5 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 38 37 35 30 35 37 10 04 04 00 D4 44 02 00 F4 03 04 00 7B 82 5E 66 B6 04 01 00 00 80 61 ED F9 3E 04 D4 75 [09:16:07]CommunicateWithHost err = 0 [09:16:07]CheckOFDResponse [09:16:07]1017 (14) - 77093643461234 [09:16:07]1041 (16) - 0000000000875057 [09:16:07]1040 (4) - 148692 [09:16:07]1012 (4) - 04.06.2024 02:56 [09:16:07]1206 (1) - 0 [09:16:07]OFD Sender: Remove packet 148692 [09:16:07]ProducePacketName [09:16:07]name=ofd_packets/00148692 [09:16:07]NVStorageDeleteData [09:16:07]Write to MH i2c: 01 00 00 14 12 26 [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 07 00 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 07 00 14 12 00 00 00 00 00 57 0C 90 [09:16:07]RasterBufferAndPrint [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]written 0, free lines is 3164 [09:16:07]MH_Cut [09:16:07]Write to MH i2c: D1 01 00 1B 12 01 FF [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 01 00 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 01 00 1B 12 00 FE [09:16:07]Write to MH i2c: 01 00 00 1C 12 2E [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]OFD Sender: No OFD packet to send [09:16:08]*** Cut start [09:16:08]*** Partial cut [09:16:08]*** CUTSNS_PIN = 1 [09:16:08]*** CUTSNS_PIN = 0 [09:16:08]*** Brake cut motor [09:16:09]Read from MH i2c: 01 [09:16:09]MH_I2C_Read... [09:16:09]*** Stop cut motor [09:16:09]*** Cut end [09:16:09]Read from MH i2c: 01 07 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 07 00 1C 12 00 00 00 00 00 FF 0F 43 [09:16:09]process_action close_receipt done [09:16:09]requested_data is exist [09:16:09]produce_requested_data [09:16:09]requested_item fm.sn is exist - process it [09:16:09]wFMCommunicate request_size=4 [09:16:09]MH_SAM_APDU [09:16:09]CAPDU: 80 11 00 00 [09:16:09]Write to MH i2c: E2 08 00 1D 12 80 11 00 00 00 00 00 00 A9 [09:16:09]Write i2c OK [09:16:09]MH_I2C_Read... [09:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:09]Read from MH i2c: E2 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 17 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 17 00 1D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FC [09:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:16:09]wFMCommunicate OK [09:16:09]requested_item fd.num is exist - process it [09:16:09]SAM_PROTO_GetFieldsCounters [09:16:09]wFMCommunicate request_size=4 [09:16:09]MH_SAM_APDU [09:16:09]CAPDU: 80 13 00 00 [09:16:09]Write to MH i2c: E2 08 00 1E 12 80 13 00 00 00 00 00 00 AC [09:16:09]Write i2c OK [09:16:09]MH_I2C_Read... [09:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:09]Read from MH i2c: E2 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 62 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 62 00 1E 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D4 44 02 00 0E 04 04 00 70 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 B0 [09:16:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D4 44 02 00 0E 04 04 00 70 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:16:09]wFMCommunicate OK [09:16:09]SAM_PROTO_GetFieldsCounters done [09:16:09]requested_item shift.num is exist - process it [09:16:09]requested_item shift.opened is exist - process it [09:16:09]req_shift_opened [09:16:09]FM_GetShiftState [09:16:09]SAM_PROTO_GetShiftState [09:16:09]wFMCommunicate request_size=4 [09:16:09]MH_SAM_APDU [09:16:09]CAPDU: 80 13 01 00 [09:16:09]Write to MH i2c: E2 08 00 1F 12 80 13 01 00 00 00 00 00 AE [09:16:09]Write i2c OK [09:16:09]MH_I2C_Read... [09:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:09]Read from MH i2c: E2 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 0E 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 0E 00 1F 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 71 [09:16:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:16:09]wFMCommunicate OK [09:16:09]SAM_PROTO_GetShiftState done [09:16:09]FM_GetShiftState done [09:16:09]req_shift_opened done [09:16:09]requested_item shift.open_date is exist - process it [09:16:09]req_shift_open_date [09:16:09]req_shift_open_date done [09:16:09]produce_requested_data done [09:16:09]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148692,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:16:09]process_action_free close_receipt [09:16:09]json_value_free [09:16:09]json_value_free done [09:16:09]process_json_proto returns [09:16:09]Send response to host [09:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148692,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:16:09]free response buf [09:16:09]execute_script done [09:16:09]execute_script returns [09:16:09]free content buf [09:16:09]Sock 7.Close socket [09:16:09]Sock 7.Thread stoped [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:50]accept exits with 9 [09:18:50]New connection [09:18:50]New thread 3066666340 created [09:18:50]Thread 3066809700 joined [09:18:50]Waiting for new connection... [09:18:50] Sock 9.Parse request [09:18:50]Sock 9.Check first char [09:18:50]Sock 9.First char is OK [09:18:50]request: POST /json_proto HTTP/1.0 [09:18:50]Method: POST [09:18:50]URL: /json_proto [09:18:50]Method is POST - this is cgi request [09:18:50]url: /json_proto [09:18:50]query_string will be loaded in cgi processing [09:18:50]execute_cgi json_proto POST (null) [09:18:50]execute_cgi path=json_proto method=POST [09:18:50]POST find Content-Length [09:18:50]Host: 172.17.38.4:8080 [09:18:50]Content-Length: 677 [09:18:50]Content-Type: application/json [09:18:50] [09:18:50]POST finish read [09:18:50]Found Content-Length = 677 [09:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:50]execute_script... [09:18: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)979615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:50]POST & json_proto [09:18:50]process_json_proto [09:18:50]json parsed OK: [09:18:50]protocol is kg_v1.0 [09:18:50]action value=close_receipt [09:18:50]process_action close_receipt [09:18:50]cmd_close_receipt [09:18:50]MH_GetDate [09:18:50]Write to MH i2c: F0 00 00 20 12 21 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: F0 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: F0 09 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: F0 09 00 20 12 00 FC DB 5E 66 CC 51 87 64 CD [09:18:50]GetLastDocTimeStamp 1717492567 [09:18:50]current date 1717492732 [09:18:50]FM_GetShiftState [09:18:50]SAM_PROTO_GetShiftState [09:18:50]wFMCommunicate request_size=4 [09:18:50]MH_SAM_APDU [09:18:50]CAPDU: 80 13 01 00 [09:18:50]Write to MH i2c: E2 08 00 21 12 80 13 01 00 00 00 00 00 B0 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 0E 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 0E 00 21 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 73 [09:18:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:18:50]wFMCommunicate OK [09:18:50]SAM_PROTO_GetShiftState done [09:18:50]FM_GetShiftState done [09:18:50]opened in 1717460629 [09:18:50]opened+sec_in_day 1717547029 [09:18:50]quantity*price = 50041 [09:18:50]sum+1 = 50042 [09:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 32 04.06.2024 09:18 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148693 ФПД: 52077684289365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T091852&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148693&fm=52077684289365&tin=02508201610067®Number=0000000000092720&sum=50000 [09:18:51]StoreToDocumentArchive [09:18:51]shift 368 fd 148693 [09:18:51]save to /storage/0368/doc_00148693 [09:18:51]save last doc name /storage/0368/doc_00148693 to /storage/kkm_last_doc_name [09:18:51]save OK [09:18:51]Clear old archive folders... [09:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:51]tlvbuf is 015C31D0 [09:18:51]SAM_PROTO_ClearQueue [09:18:51]wFMCommunicate request_size=4 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 09 00 00 [09:18:51]Write to MH i2c: E2 08 00 2E 12 80 09 00 00 00 00 00 00 B2 [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 2E 12 00 90 00 B4 [09:18:51]RAPDU: 90 00 [09:18:51]wFMCommunicate OK [09:18:51]SAM_PROTO_ClearQueue done [09:18:51]KKMCreateOFDPacket [09:18:51]OFDProtocolAddRootSTLVToBuf [09:18:51]FM_MakeSignedData [09:18:51]FM_MakeSignedData [09:18:51]SAM_PROTO_SignData [09:18:51]wFMCommunicate request_size=4 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 0D 01 02 [09:18:51]Write to MH i2c: E2 08 00 2F 12 80 0D 01 02 00 00 00 00 BA [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 2F 12 00 90 00 B5 [09:18:51]RAPDU: 90 00 [09:18:51]wFMCommunicate OK [09:18:51]wFMCommunicate request_size=255 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FC DB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D5 44 02 00 35 04 06 00 2F [09:18:51]Write to MH i2c: E2 02 01 30 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FC DB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D5 44 02 00 35 04 06 00 2F 00 00 BA [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 30 12 00 90 00 B6 [09:18:51]RAPDU: 90 00 [09:18:51]wFMCommunicate OK [09:18:51]wFMCommunicate request_size=10 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 0D 02 02 05 5D 47 DF 6F 55 [09:18:51]Write to MH i2c: E2 0D 00 31 12 80 0D 02 02 05 00 5D 47 DF 6F 55 00 00 0E [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 03 00 31 12 00 90 00 B7 [09:18:51]RAPDU: 90 00 [09:18:51]wFMCommunicate OK [09:18:51]wFMCommunicate request_size=4 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 0D 03 02 [09:18:51]Write to MH i2c: E2 08 00 32 12 80 0D 03 02 00 00 00 00 BF [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 0B 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 0B 00 32 12 00 84 89 FB 84 34 FA 4B AA 90 00 6F [09:18:51]RAPDU: 84 89 FB 84 34 FA 4B AA 90 00 [09:18:51]wFMCommunicate OK [09:18:51]SAM_PROTO_SignData done [09:18:51]FM_MakeSignedData done [09:18:51]CreateOFDProtocolMessage [09:18:51]wFMCommunicate request_size=4 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 11 00 00 [09:18:51]Write to MH i2c: E2 08 00 33 12 80 11 00 00 00 00 00 00 BF [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 17 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 17 00 33 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 12 [09:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:18:51]wFMCommunicate OK [09:18:51]CreateOFDProtocolMessage done [09:18:51]OFDSenderStorePacket 148693 [09:18:51]StoreOFDPacket docnum=148693 [09:18:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7F 1E 07 01 92 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FC DB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D5 44 02 00 35 04 06 00 2F 5D 47 DF 6F 55 84 89 FB 84 34 FA 4B AA [09:18:51]CheckFolder [09:18:51]dirname=/storage/ofd_packets [09:18:51]CheckFolder done [09:18:51]ProducePacketName [09:18:51]name=ofd_packets/00148693 [09:18:51]NVStorageSaveData ofd_packets/00148693 [09:18:51]File name is /storage/ofd_packets/00148693 [09:18:51]Write 301 bytes [09:18:51]NVStorageSaveData done [09:18:51]OFDSenderStorePacket done [09:18:51]KKMCreateOFDPacket done [09:18:51]NVStorageSaveData kkm_last_timestamp [09:18:51]File name is /storage/kkm_last_timestamp [09:18:51]Write 4 bytes [09:18:51]NVStorageSaveData done [09:18:51]ExternCall_PrintAddStr [09:18:51]wPrintStart [09:18:51]Write to MH i2c: 01 00 00 34 12 46 [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 07 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 07 00 34 12 00 00 00 00 00 FF 0F 5B [09:18:51]RasterBufferAndPrint [09:18:51]line Счет N : (1)979615 [09:18:51]line ИНН: 02508201610067 [09:18:51]line Контрольно-Кассовый Чек [09:18:51]line ПРОДАЖА [09:18:51]line ТРК (МРК, ГНК) : 31 [09:18:51]line Товар: 2710124130 [09:18:51]line Аи-92-К-5 [09:18:51]line 7.480 * 66.90 [09:18:51]line = 500.41 [09:18:51]line НДС 12% НСП 1% [09:18:51]line > о реализуемом товаре [09:18:51]line ОКРУГЛЕНИЕ: -0.41 [09:18:51]line ИТОГО: 500.00 [09:18:51]line Внесено: 500.00 [09:18:51]line СДАЧА: 0.00 [09:18:51]line НСП 1% : 4.43 [09:18:51]line НДС 12% : 53.14 [09:18:51]line Наличными: 500.00 [09:18:51]line Безнал.: 0.00 [09:18:51]line Место: АЗС № 68 "Партнер Нефть" [09:18:51]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:18:51]line СНО: Общий режим [09:18:51]line Чек 32 04.06.2024 09:18 [09:18:51]line Смена: 368 ФФД: 1.0 [09:18:51]line ЗНМ: 0300000035 [09:18:51]line РНМ: 0000000000092720 [09:18:51]line Версия ККМ: 001 [09:18:51]line ФМ: 0000000000875057 [09:18:51]line ФД: 148693 [09:18:51]line ФПД: 52077684289365 [09:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T091852&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148693&fm=52077684289365&tin=02508201610067®Number=0000000000092720&sum=50000 [09:18:52]OFD Sender: Processing packet 148693 [packets to send 100, broken 99] [09:18:52]ProducePacketName [09:18:52]name=ofd_packets/00148693 [09:18:52]OFD Sender: To server: pG, [09:18:52]CommunicateWithHost lk.salyk.kg:30040 [09:18:52]ConnectInit lk.salyk.kg [09:18:52]written 0, free lines is 4095 [09:18:52]Connected sock=10 [09:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7F 1E 07 01 92 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FC DB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D5 44 02 00 35 04 06 00 2F 5D 47 DF 6F 55 84 89 FB 84 34 FA 4B AA [09:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C4 E2 47 00 84 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D5 44 02 00 F4 03 04 00 21 83 5E 66 B6 04 01 00 00 30 ED 38 8C ED 43 8A B0 [09:18:52]CommunicateWithHost err = 0 [09:18:52]CheckOFDResponse [09:18:52]1017 (14) - 77093643461234 [09:18:52]1041 (16) - 0000000000875057 [09:18:52]1040 (4) - 148693 [09:18:52]1012 (4) - 04.06.2024 02:59 [09:18:52]1206 (1) - 0 [09:18:52]OFD Sender: Remove packet 148693 [09:18:52]ProducePacketName [09:18:52]name=ofd_packets/00148693 [09:18:52]NVStorageDeleteData [09:18:52]Write to MH i2c: 01 00 00 5F 12 71 [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: 01 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: 01 07 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: 01 07 00 5F 12 00 00 00 00 00 65 0C E9 [09:18:52]RasterBufferAndPrint [09:18:52]line [09:18:52]line [09:18:52]line [09:18:52]line [09:18:52]line [09:18:52]written 0, free lines is 3177 [09:18:52]MH_Cut [09:18:52]Write to MH i2c: D1 01 00 66 12 01 4A [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: D1 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: D1 01 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: D1 01 00 66 12 00 49 [09:18:52]Write to MH i2c: 01 00 00 67 12 79 [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]OFD Sender: No OFD packet to send [09:18:53]*** Cut start [09:18:53]*** Partial cut [09:18:53]*** CUTSNS_PIN = 1 [09:18:53]*** CUTSNS_PIN = 0 [09:18:54]*** Brake cut motor [09:18:54]Read from MH i2c: 01 [09:18:54]MH_I2C_Read... [09:18:54]*** Stop cut motor [09:18:54]*** Cut end [09:18:54]Read from MH i2c: 01 07 00 [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: 01 07 00 67 12 00 00 00 00 00 FF 0F 8E [09:18:54]process_action close_receipt done [09:18:54]requested_data is exist [09:18:54]produce_requested_data [09:18:54]requested_item fm.sn is exist - process it [09:18:54]wFMCommunicate request_size=4 [09:18:54]MH_SAM_APDU [09:18:54]CAPDU: 80 11 00 00 [09:18:54]Write to MH i2c: E2 08 00 68 12 80 11 00 00 00 00 00 00 F4 [09:18:54]Write i2c OK [09:18:54]MH_I2C_Read... [09:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:54]Read from MH i2c: E2 [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: E2 17 00 [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: E2 17 00 68 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 47 [09:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:18:54]wFMCommunicate OK [09:18:54]requested_item fd.num is exist - process it [09:18:54]SAM_PROTO_GetFieldsCounters [09:18:54]wFMCommunicate request_size=4 [09:18:54]MH_SAM_APDU [09:18:54]CAPDU: 80 13 00 00 [09:18:54]Write to MH i2c: E2 08 00 69 12 80 13 00 00 00 00 00 00 F7 [09:18:54]Write i2c OK [09:18:54]MH_I2C_Read... [09:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:54]Read from MH i2c: E2 [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: E2 62 00 [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: E2 62 00 69 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D5 44 02 00 0E 04 04 00 70 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 FF [09:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D5 44 02 00 0E 04 04 00 70 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:18:54]wFMCommunicate OK [09:18:54]SAM_PROTO_GetFieldsCounters done [09:18:54]requested_item shift.num is exist - process it [09:18:54]requested_item shift.opened is exist - process it [09:18:54]req_shift_opened [09:18:54]FM_GetShiftState [09:18:54]SAM_PROTO_GetShiftState [09:18:54]wFMCommunicate request_size=4 [09:18:54]MH_SAM_APDU [09:18:54]CAPDU: 80 13 01 00 [09:18:54]Write to MH i2c: E2 08 00 6A 12 80 13 01 00 00 00 00 00 F9 [09:18:54]Write i2c OK [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: E2 [09:18:54]MH_I2C_Read... [09:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:54]Read from MH i2c: E2 0E 00 [09:18:54]MH_I2C_Read... [09:18:54]Read from MH i2c: E2 0E 00 6A 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BC [09:18:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:18:54]wFMCommunicate OK [09:18:54]SAM_PROTO_GetShiftState done [09:18:54]FM_GetShiftState done [09:18:54]req_shift_opened done [09:18:54]requested_item shift.open_date is exist - process it [09:18:54]req_shift_open_date [09:18:54]req_shift_open_date done [09:18:54]produce_requested_data done [09:18:54]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148693,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:18:54]process_action_free close_receipt [09:18:54]json_value_free [09:18:54]json_value_free done [09:18:54]process_json_proto returns [09:18:54]Send response to host [09:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148693,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:18:54]free response buf [09:18:54]execute_script done [09:18:54]execute_script returns [09:18:54]free content buf [09:18:54]Sock 9.Close socket [09:18:54]Sock 9.Thread stoped [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:45]accept exits with 7 [09:21:45]New connection [09:21:45]New thread 3066809700 created [09:21:45]Thread 3066666340 joined [09:21:45]Waiting for new connection... [09:21:45] Sock 7.Parse request [09:21:45]Sock 7.Check first char [09:21:45]Sock 7.First char is OK [09:21:45]request: POST /json_proto HTTP/1.0 [09:21:45]Method: POST [09:21:45]URL: /json_proto [09:21:45]Method is POST - this is cgi request [09:21:45]url: /json_proto [09:21:45]query_string will be loaded in cgi processing [09:21:45]execute_cgi json_proto POST (null) [09:21:45]execute_cgi path=json_proto method=POST [09:21:45]POST find Content-Length [09:21:45]Host: 172.17.38.4:8080 [09:21:45]Content-Length: 682 [09:21:45]Content-Type: application/json [09:21:45] [09:21:45]POST finish read [09:21:45]Found Content-Length = 682 [09:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:45]execute_script... [09:21: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)979616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:45]POST & json_proto [09:21:45]process_json_proto [09:21:45]json parsed OK: [09:21:45]protocol is kg_v1.0 [09:21:45]action value=close_receipt [09:21:45]process_action close_receipt [09:21:45]cmd_close_receipt [09:21:45]MH_GetDate [09:21:45]Write to MH i2c: F0 00 00 6B 12 6C [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: F0 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: F0 09 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: F0 09 00 6B 12 00 AB DC 5E 66 CC 51 87 64 C8 [09:21:45]GetLastDocTimeStamp 1717492732 [09:21:45]current date 1717492907 [09:21:45]FM_GetShiftState [09:21:45]SAM_PROTO_GetShiftState [09:21:45]wFMCommunicate request_size=4 [09:21:45]MH_SAM_APDU [09:21:45]CAPDU: 80 13 01 00 [09:21:45]Write to MH i2c: E2 08 00 6C 12 80 13 01 00 00 00 00 00 FB [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:45]Read from MH i2c: E2 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 0E 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 0E 00 6C 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BE [09:21:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:21:45]wFMCommunicate OK [09:21:45]SAM_PROTO_GetShiftState done [09:21:45]FM_GetShiftState done [09:21:45]opened in 1717460629 [09:21:45]opened+sec_in_day 1717547029 [09:21:45]quantity*price = 120018 [09:21:45]sum+1 = 120020 [09:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 33 04.06.2024 09:21 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148694 ФПД: 10109279987507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092147&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148694&fm=10109279987507&tin=02508201610067®Number=0000000000092720&sum=120000 [09:21:46]StoreToDocumentArchive [09:21:46]shift 368 fd 148694 [09:21:46]save to /storage/0368/doc_00148694 [09:21:46]save last doc name /storage/0368/doc_00148694 to /storage/kkm_last_doc_name [09:21:46]save OK [09:21:46]Clear old archive folders... [09:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:46]tlvbuf is B6EB75C0 [09:21:46]SAM_PROTO_ClearQueue [09:21:46]wFMCommunicate request_size=4 [09:21:46]MH_SAM_APDU [09:21:46]CAPDU: 80 09 00 00 [09:21:46]Write to MH i2c: E2 08 00 79 12 80 09 00 00 00 00 00 00 FD [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 03 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [09:21:46]RAPDU: 90 00 [09:21:46]wFMCommunicate OK [09:21:46]SAM_PROTO_ClearQueue done [09:21:46]KKMCreateOFDPacket [09:21:46]OFDProtocolAddRootSTLVToBuf [09:21:46]FM_MakeSignedData [09:21:46]FM_MakeSignedData [09:21:46]SAM_PROTO_SignData [09:21:46]wFMCommunicate request_size=4 [09:21:46]MH_SAM_APDU [09:21:46]CAPDU: 80 0D 01 02 [09:21:46]Write to MH i2c: E2 08 00 7A 12 80 0D 01 02 00 00 00 00 05 [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 03 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 03 00 7A 12 00 90 00 00 [09:21:46]RAPDU: 90 00 [09:21:46]wFMCommunicate OK [09:21:46]wFMCommunicate request_size=255 [09:21:46]MH_SAM_APDU [09:21:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AB DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D6 44 02 00 35 04 06 00 09 [09:21:46]Write to MH i2c: E2 02 01 7B 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AB DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D6 44 02 00 35 04 06 00 09 00 00 98 [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 03 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 03 00 7B 12 00 90 00 01 [09:21:46]RAPDU: 90 00 [09:21:46]wFMCommunicate OK [09:21:46]wFMCommunicate request_size=10 [09:21:46]MH_SAM_APDU [09:21:46]CAPDU: 80 0D 02 02 05 31 C0 0A E7 33 [09:21:46]Write to MH i2c: E2 0D 00 7C 12 80 0D 02 02 05 00 31 C0 0A E7 33 00 00 27 [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 03 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 03 00 7C 12 00 90 00 02 [09:21:46]RAPDU: 90 00 [09:21:46]wFMCommunicate OK [09:21:46]wFMCommunicate request_size=4 [09:21:46]MH_SAM_APDU [09:21:46]CAPDU: 80 0D 03 02 [09:21:46]Write to MH i2c: E2 08 00 7D 12 80 0D 03 02 00 00 00 00 0A [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 0B 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 0B 00 7D 12 00 FE F4 BA B4 75 9F 24 D8 90 00 7B [09:21:46]RAPDU: FE F4 BA B4 75 9F 24 D8 90 00 [09:21:46]wFMCommunicate OK [09:21:46]SAM_PROTO_SignData done [09:21:46]FM_MakeSignedData done [09:21:46]CreateOFDProtocolMessage [09:21:46]wFMCommunicate request_size=4 [09:21:46]MH_SAM_APDU [09:21:46]CAPDU: 80 11 00 00 [09:21:46]Write to MH i2c: E2 08 00 7E 12 80 11 00 00 00 00 00 00 0A [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 17 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 17 00 7E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5D [09:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:21:46]wFMCommunicate OK [09:21:46]CreateOFDProtocolMessage done [09:21:46]OFDSenderStorePacket 148694 [09:21:46]StoreOFDPacket docnum=148694 [09:21:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B4 F7 07 01 13 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AB DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D6 44 02 00 35 04 06 00 09 31 C0 0A E7 33 FE F4 BA B4 75 9F 24 D8 [09:21:46]CheckFolder [09:21:46]dirname=/storage/ofd_packets [09:21:46]CheckFolder done [09:21:46]ProducePacketName [09:21:46]name=ofd_packets/00148694 [09:21:46]NVStorageSaveData ofd_packets/00148694 [09:21:46]File name is /storage/ofd_packets/00148694 [09:21:46]Write 301 bytes [09:21:46]NVStorageSaveData done [09:21:46]OFDSenderStorePacket done [09:21:46]KKMCreateOFDPacket done [09:21:46]NVStorageSaveData kkm_last_timestamp [09:21:46]File name is /storage/kkm_last_timestamp [09:21:46]Write 4 bytes [09:21:46]NVStorageSaveData done [09:21:46]ExternCall_PrintAddStr [09:21:46]wPrintStart [09:21:46]Write to MH i2c: 01 00 00 7F 12 91 [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: 01 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: 01 07 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: 01 07 00 7F 12 00 00 00 00 00 FF 0F A6 [09:21:46]RasterBufferAndPrint [09:21:46]line Счет N : (1)979616 [09:21:46]line ИНН: 02508201610067 [09:21:46]line Контрольно-Кассовый Чек [09:21:46]line ПРОДАЖА [09:21:46]line ТРК (МРК, ГНК) : 31 [09:21:46]line Товар: 2710124130 [09:21:46]line Аи-92-К-5 [09:21:46]line 17.940 * 66.90 [09:21:46]line = 1200.19 [09:21:46]line НДС 12% НСП 1% [09:21:46]line > о реализуемом товаре [09:21:46]line ОКРУГЛЕНИЕ: -0.19 [09:21:46]line ИТОГО: 1200.00 [09:21:46]line Внесено: 1200.00 [09:21:46]line СДАЧА: 0.00 [09:21:46]line НСП 1% : 10.62 [09:21:46]line НДС 12% : 127.45 [09:21:46]line Наличными: 1200.00 [09:21:46]line Безнал.: 0.00 [09:21:46]line Место: АЗС № 68 "Партнер Нефть" [09:21:46]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:21:46]line СНО: Общий режим [09:21:46]line Чек 33 04.06.2024 09:21 [09:21:46]line Смена: 368 ФФД: 1.0 [09:21:46]line ЗНМ: 0300000035 [09:21:46]line РНМ: 0000000000092720 [09:21:46]line Версия ККМ: 001 [09:21:46]line ФМ: 0000000000875057 [09:21:46]line ФД: 148694 [09:21:46]line ФПД: 10109279987507 [09:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092147&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148694&fm=10109279987507&tin=02508201610067®Number=0000000000092720&sum=120000 [09:21:47]OFD Sender: Processing packet 148694 [packets to send 100, broken 99] [09:21:47]ProducePacketName [09:21:47]name=ofd_packets/00148694 [09:21:47]OFD Sender: To server: pG, [09:21:47]CommunicateWithHost lk.salyk.kg:30040 [09:21:47]ConnectInit lk.salyk.kg [09:21:47]written 0, free lines is 4095 [09:21:47]Connected sock=10 [09:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B4 F7 07 01 13 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AB DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D6 44 02 00 35 04 06 00 09 31 C0 0A E7 33 FE F4 BA B4 75 9F 24 D8 [09:21:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 95 A7 47 00 ED 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 38 37 35 30 35 37 10 04 04 00 D6 44 02 00 F4 03 04 00 D0 83 5E 66 B6 04 01 00 00 2A AA 61 7E AC E7 4F 36 [09:21:47]CommunicateWithHost err = 0 [09:21:47]CheckOFDResponse [09:21:47]1017 (14) - 77093643461234 [09:21:47]1041 (16) - 0000000000875057 [09:21:47]1040 (4) - 148694 [09:21:47]1012 (4) - 04.06.2024 03:02 [09:21:47]1206 (1) - 0 [09:21:47]OFD Sender: Remove packet 148694 [09:21:47]ProducePacketName [09:21:47]name=ofd_packets/00148694 [09:21:47]NVStorageDeleteData [09:21:47]Write to MH i2c: 01 00 00 AA 12 BC [09:21:47]Write i2c OK [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: 01 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: 01 07 00 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: 01 07 00 AA 12 00 00 00 00 00 5F 0C 2E [09:21:47]RasterBufferAndPrint [09:21:47]line [09:21:47]line [09:21:47]line [09:21:47]line [09:21:47]line [09:21:47]written 0, free lines is 3171 [09:21:47]MH_Cut [09:21:47]Write to MH i2c: D1 01 00 B1 12 01 95 [09:21:47]Write i2c OK [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: D1 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: D1 01 00 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: D1 01 00 B1 12 00 94 [09:21:47]Write to MH i2c: 01 00 00 B2 12 C4 [09:21:47]Write i2c OK [09:21:47]MH_I2C_Read... [09:21:48]OFD Sender: No OFD packet to send [09:21:49]*** Cut start [09:21:49]*** Partial cut [09:21:49]*** CUTSNS_PIN = 1 [09:21:49]*** CUTSNS_PIN = 0 [09:21:49]*** Brake cut motor [09:21:49]Read from MH i2c: 01 [09:21:49]MH_I2C_Read... [09:21:49]*** Stop cut motor [09:21:49]*** Cut end [09:21:49]Read from MH i2c: 01 07 00 [09:21:49]MH_I2C_Read... [09:21:49]Read from MH i2c: 01 07 00 B2 12 00 00 00 00 00 FF 0F D9 [09:21:49]process_action close_receipt done [09:21:49]requested_data is exist [09:21:49]produce_requested_data [09:21:49]requested_item fm.sn is exist - process it [09:21:49]wFMCommunicate request_size=4 [09:21:49]MH_SAM_APDU [09:21:49]CAPDU: 80 11 00 00 [09:21:49]Write to MH i2c: E2 08 00 B3 12 80 11 00 00 00 00 00 00 3F [09:21:49]Write i2c OK [09:21:49]MH_I2C_Read... [09:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:49]Read from MH i2c: E2 [09:21:49]MH_I2C_Read... [09:21:49]Read from MH i2c: E2 17 00 [09:21:49]MH_I2C_Read... [09:21:49]Read from MH i2c: E2 17 00 B3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 92 [09:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:21:49]wFMCommunicate OK [09:21:49]requested_item fd.num is exist - process it [09:21:49]SAM_PROTO_GetFieldsCounters [09:21:49]wFMCommunicate request_size=4 [09:21:49]MH_SAM_APDU [09:21:49]CAPDU: 80 13 00 00 [09:21:49]Write to MH i2c: E2 08 00 B4 12 80 13 00 00 00 00 00 00 42 [09:21:49]Write i2c OK [09:21:49]MH_I2C_Read... [09:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:49]Read from MH i2c: E2 [09:21:49]MH_I2C_Read... [09:21:49]Read from MH i2c: E2 62 00 [09:21:49]MH_I2C_Read... [09:21:49]Read from MH i2c: E2 62 00 B4 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D6 44 02 00 0E 04 04 00 70 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 4E [09:21:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D6 44 02 00 0E 04 04 00 70 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:21:49]wFMCommunicate OK [09:21:49]SAM_PROTO_GetFieldsCounters done [09:21:49]requested_item shift.num is exist - process it [09:21:49]requested_item shift.opened is exist - process it [09:21:49]req_shift_opened [09:21:49]FM_GetShiftState [09:21:49]SAM_PROTO_GetShiftState [09:21:49]wFMCommunicate request_size=4 [09:21:49]MH_SAM_APDU [09:21:49]CAPDU: 80 13 01 00 [09:21:49]Write to MH i2c: E2 08 00 B5 12 80 13 01 00 00 00 00 00 44 [09:21:49]Write i2c OK [09:21:49]MH_I2C_Read... [09:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:49]Read from MH i2c: E2 [09:21:49]MH_I2C_Read... [09:21:49]Read from MH i2c: E2 0E 00 [09:21:49]MH_I2C_Read... [09:21:49]Read from MH i2c: E2 0E 00 B5 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 07 [09:21:49]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:21:49]wFMCommunicate OK [09:21:49]SAM_PROTO_GetShiftState done [09:21:49]FM_GetShiftState done [09:21:49]req_shift_opened done [09:21:49]requested_item shift.open_date is exist - process it [09:21:49]req_shift_open_date [09:21:49]req_shift_open_date done [09:21:49]produce_requested_data done [09:21:49]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148694,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:21:49]process_action_free close_receipt [09:21:49]json_value_free [09:21:49]json_value_free done [09:21:49]process_json_proto returns [09:21:49]Send response to host [09:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148694,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:21:49]free response buf [09:21:49]execute_script done [09:21:49]execute_script returns [09:21:49]free content buf [09:21:49]Sock 7.Close socket [09:21:49]Sock 7.Thread stoped [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:06]accept exits with 9 [09:22:06]New connection [09:22:06]New thread 3066666340 created [09:22:06]Thread 3066809700 joined [09:22:06]Waiting for new connection... [09:22:06] Sock 9.Parse request [09:22:06]Sock 9.Check first char [09:22:06]Sock 9.First char is OK [09:22:06]request: POST /json_proto HTTP/1.0 [09:22:06]Method: POST [09:22:06]URL: /json_proto [09:22:06]Method is POST - this is cgi request [09:22:06]url: /json_proto [09:22:06]query_string will be loaded in cgi processing [09:22:06]execute_cgi json_proto POST (null) [09:22:06]execute_cgi path=json_proto method=POST [09:22:06]POST find Content-Length [09:22:06]Host: 172.17.38.4:8080 [09:22:06]Content-Length: 679 [09:22:06]Content-Type: application/json [09:22:06] [09:22:06]POST finish read [09:22:06]Found Content-Length = 679 [09:22:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [09:22:06]execute_script... [09:22: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)979617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [09:22:06]POST & json_proto [09:22:06]process_json_proto [09:22:06]json parsed OK: [09:22:06]protocol is kg_v1.0 [09:22:06]action value=close_receipt [09:22:06]process_action close_receipt [09:22:06]cmd_close_receipt [09:22:06]MH_GetDate [09:22:06]Write to MH i2c: F0 00 00 B6 12 B7 [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: F0 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: F0 09 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: F0 09 00 B6 12 00 C1 DC 5E 66 CC 51 87 64 29 [09:22:06]GetLastDocTimeStamp 1717492907 [09:22:06]current date 1717492929 [09:22:06]FM_GetShiftState [09:22:06]SAM_PROTO_GetShiftState [09:22:06]wFMCommunicate request_size=4 [09:22:06]MH_SAM_APDU [09:22:06]CAPDU: 80 13 01 00 [09:22:06]Write to MH i2c: E2 08 00 B7 12 80 13 01 00 00 00 00 00 46 [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:06]Read from MH i2c: E2 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 0E 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 0E 00 B7 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 09 [09:22:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:22:06]wFMCommunicate OK [09:22:06]SAM_PROTO_GetShiftState done [09:22:06]FM_GetShiftState done [09:22:06]opened in 1717460629 [09:22:06]opened+sec_in_day 1717547029 [09:22:06]quantity*price = 300056 [09:22:06]sum+1 = 300057 [09:22:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 34 04.06.2024 09:22 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148695 ФПД: 99432771713849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092209&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148695&fm=99432771713849&tin=02508201610067®Number=0000000000092720&sum=300000 [09:22:08]StoreToDocumentArchive [09:22:08]shift 368 fd 148695 [09:22:08]save to /storage/0368/doc_00148695 [09:22:08]save last doc name /storage/0368/doc_00148695 to /storage/kkm_last_doc_name [09:22:08]save OK [09:22:08]Clear old archive folders... [09:22:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:22:08]tlvbuf is 015D3910 [09:22:08]SAM_PROTO_ClearQueue [09:22:08]wFMCommunicate request_size=4 [09:22:08]MH_SAM_APDU [09:22:08]CAPDU: 80 09 00 00 [09:22:08]Write to MH i2c: E2 08 00 C4 12 80 09 00 00 00 00 00 00 48 [09:22:08]Write i2c OK [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 [09:22:08]MH_I2C_Read... [09:22:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:08]Read from MH i2c: E2 03 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 03 00 C4 12 00 90 00 4A [09:22:08]RAPDU: 90 00 [09:22:08]wFMCommunicate OK [09:22:08]SAM_PROTO_ClearQueue done [09:22:08]KKMCreateOFDPacket [09:22:08]OFDProtocolAddRootSTLVToBuf [09:22:08]FM_MakeSignedData [09:22:08]FM_MakeSignedData [09:22:08]SAM_PROTO_SignData [09:22:08]wFMCommunicate request_size=4 [09:22:08]MH_SAM_APDU [09:22:08]CAPDU: 80 0D 01 02 [09:22:08]Write to MH i2c: E2 08 00 C5 12 80 0D 01 02 00 00 00 00 50 [09:22:08]Write i2c OK [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 [09:22:08]MH_I2C_Read... [09:22:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:08]Read from MH i2c: E2 03 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 03 00 C5 12 00 90 00 4B [09:22:08]RAPDU: 90 00 [09:22:08]wFMCommunicate OK [09:22:08]wFMCommunicate request_size=255 [09:22:08]MH_SAM_APDU [09:22:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 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 22 00 00 00 F4 03 04 00 C1 DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D7 44 02 00 35 04 06 00 5A 6E FF 09 [09:22:08]Write to MH i2c: E2 02 01 C6 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 22 00 00 00 F4 03 04 00 C1 DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D7 44 02 00 35 04 06 00 5A 6E FF 09 00 00 82 [09:22:08]Write i2c OK [09:22:08]MH_I2C_Read... [09:22:08]OFD Sender: No OFD packet to send [09:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:08]Read from MH i2c: E2 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 03 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 03 00 C6 12 00 90 00 4C [09:22:08]RAPDU: 90 00 [09:22:08]wFMCommunicate OK [09:22:08]wFMCommunicate request_size=7 [09:22:08]MH_SAM_APDU [09:22:08]CAPDU: 80 0D 02 02 02 7B 39 [09:22:08]Write to MH i2c: E2 0A 00 C7 12 80 0D 02 02 02 00 7B 39 00 00 0B [09:22:08]Write i2c OK [09:22:08]MH_I2C_Read... [09:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:08]Read from MH i2c: E2 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 03 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 03 00 C7 12 00 90 00 4D [09:22:08]RAPDU: 90 00 [09:22:08]wFMCommunicate OK [09:22:08]wFMCommunicate request_size=4 [09:22:08]MH_SAM_APDU [09:22:08]CAPDU: 80 0D 03 02 [09:22:08]Write to MH i2c: E2 08 00 C8 12 80 0D 03 02 00 00 00 00 55 [09:22:08]Write i2c OK [09:22:08]MH_I2C_Read... [09:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:08]Read from MH i2c: E2 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 0B 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 0B 00 C8 12 00 E5 BA 30 6C AE BF B6 42 90 00 F6 [09:22:08]RAPDU: E5 BA 30 6C AE BF B6 42 90 00 [09:22:08]wFMCommunicate OK [09:22:08]SAM_PROTO_SignData done [09:22:08]FM_MakeSignedData done [09:22:08]CreateOFDProtocolMessage [09:22:08]wFMCommunicate request_size=4 [09:22:08]MH_SAM_APDU [09:22:08]CAPDU: 80 11 00 00 [09:22:08]Write to MH i2c: E2 08 00 C9 12 80 11 00 00 00 00 00 00 55 [09:22:08]Write i2c OK [09:22:08]MH_I2C_Read... [09:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:08]Read from MH i2c: E2 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 17 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 17 00 C9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A8 [09:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:22:08]wFMCommunicate OK [09:22:08]CreateOFDProtocolMessage done [09:22:08]OFDSenderStorePacket 148695 [09:22:08]StoreOFDPacket docnum=148695 [09:22:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 0F 83 04 01 89 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 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 22 00 00 00 F4 03 04 00 C1 DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D7 44 02 00 35 04 06 00 5A 6E FF 09 7B 39 E5 BA 30 6C AE BF B6 42 [09:22:08]CheckFolder [09:22:08]dirname=/storage/ofd_packets [09:22:08]CheckFolder done [09:22:08]ProducePacketName [09:22:08]name=ofd_packets/00148695 [09:22:08]NVStorageSaveData ofd_packets/00148695 [09:22:08]File name is /storage/ofd_packets/00148695 [09:22:08]Write 298 bytes [09:22:08]NVStorageSaveData done [09:22:08]OFDSenderStorePacket done [09:22:08]KKMCreateOFDPacket done [09:22:08]NVStorageSaveData kkm_last_timestamp [09:22:08]File name is /storage/kkm_last_timestamp [09:22:08]Write 4 bytes [09:22:08]NVStorageSaveData done [09:22:08]ExternCall_PrintAddStr [09:22:08]wPrintStart [09:22:08]Write to MH i2c: 01 00 00 CA 12 DC [09:22:08]Write i2c OK [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: 01 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: 01 07 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: 01 07 00 CA 12 00 00 00 00 00 FF 0F F1 [09:22:08]RasterBufferAndPrint [09:22:08]line Счет N : (1)979617 [09:22:08]line ИНН: 02508201610067 [09:22:08]line Контрольно-Кассовый Чек [09:22:08]line ПРОДАЖА [09:22:08]line ТРК (МРК, ГНК) : 51 [09:22:08]line Товар: 2710194210 [09:22:08]line ДТ-К-5 [09:22:08]line 41.160 * 72.90 [09:22:08]line = 3000.56 [09:22:08]line НДС 12% НСП 1% [09:22:08]line > о реализуемом товаре [09:22:08]line ОКРУГЛЕНИЕ: -0.56 [09:22:08]line ИТОГО: 3000.00 [09:22:08]line Внесено: 3000.00 [09:22:08]line СДАЧА: 0.00 [09:22:08]line НСП 1% : 26.55 [09:22:08]line НДС 12% : 318.64 [09:22:08]line Наличными: 3000.00 [09:22:08]line Безнал.: 0.00 [09:22:08]line Место: АЗС № 68 "Партнер Нефть" [09:22:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:22:08]line СНО: Общий режим [09:22:08]line Чек 34 04.06.2024 09:22 [09:22:08]line Смена: 368 ФФД: 1.0 [09:22:08]line ЗНМ: 0300000035 [09:22:08]line РНМ: 0000000000092720 [09:22:08]line Версия ККМ: 001 [09:22:08]line ФМ: 0000000000875057 [09:22:08]line ФД: 148695 [09:22:08]line ФПД: 99432771713849 [09:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092209&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148695&fm=99432771713849&tin=02508201610067®Number=0000000000092720&sum=300000 [09:22:08]OFD Sender: Processing packet 148695 [packets to send 100, broken 99] [09:22:08]ProducePacketName [09:22:08]name=ofd_packets/00148695 [09:22:08]OFD Sender: To server: pG, [09:22:08]CommunicateWithHost lk.salyk.kg:30040 [09:22:08]ConnectInit lk.salyk.kg [09:22:08]written 0, free lines is 4095 [09:22:08]Connected sock=10 [09:22:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 0F 83 04 01 89 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 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 22 00 00 00 F4 03 04 00 C1 DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D7 44 02 00 35 04 06 00 5A 6E FF 09 7B 39 E5 BA 30 6C AE BF B6 42 [09:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F7 F0 47 00 FD 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 38 37 35 30 35 37 10 04 04 00 D7 44 02 00 F4 03 04 00 E5 83 5E 66 B6 04 01 00 00 6E 30 8F 18 66 F2 46 0F [09:22:09]CommunicateWithHost err = 0 [09:22:09]CheckOFDResponse [09:22:09]1017 (14) - 77093643461234 [09:22:09]1041 (16) - 0000000000875057 [09:22:09]1040 (4) - 148695 [09:22:09]1012 (4) - 04.06.2024 03:03 [09:22:09]1206 (1) - 0 [09:22:09]OFD Sender: Remove packet 148695 [09:22:09]ProducePacketName [09:22:09]name=ofd_packets/00148695 [09:22:09]NVStorageDeleteData [09:22:09]Write to MH i2c: 01 00 00 F5 12 07 [09:22:09]Write i2c OK [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: 01 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: 01 07 00 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: 01 07 00 F5 12 00 00 00 00 00 66 0C 80 [09:22:09]RasterBufferAndPrint [09:22:09]line [09:22:09]line [09:22:09]line [09:22:09]line [09:22:09]line [09:22:09]written 0, free lines is 3178 [09:22:09]MH_Cut [09:22:09]Write to MH i2c: D1 01 00 FC 12 01 E0 [09:22:09]Write i2c OK [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: D1 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: D1 01 00 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: D1 01 00 FC 12 00 DF [09:22:09]Write to MH i2c: 01 00 00 FD 12 0F [09:22:09]Write i2c OK [09:22:09]MH_I2C_Read... [09:22:09]OFD Sender: No OFD packet to send [09:22:10]*** Cut start [09:22:10]*** Partial cut [09:22:10]*** CUTSNS_PIN = 1 [09:22:10]*** CUTSNS_PIN = 0 [09:22:10]*** Brake cut motor [09:22:11]Read from MH i2c: 01 [09:22:11]MH_I2C_Read... [09:22:11]*** Stop cut motor [09:22:11]*** Cut end [09:22:11]Read from MH i2c: 01 07 00 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: 01 07 00 FD 12 00 00 00 00 00 FF 0F 24 [09:22:11]process_action close_receipt done [09:22:11]requested_data is exist [09:22:11]produce_requested_data [09:22:11]requested_item fm.sn is exist - process it [09:22:11]wFMCommunicate request_size=4 [09:22:11]MH_SAM_APDU [09:22:11]CAPDU: 80 11 00 00 [09:22:11]Write to MH i2c: E2 08 00 FE 12 80 11 00 00 00 00 00 00 8A [09:22:11]Write i2c OK [09:22:11]MH_I2C_Read... [09:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:11]Read from MH i2c: E2 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: E2 17 00 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: E2 17 00 FE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DD [09:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:22:11]wFMCommunicate OK [09:22:11]requested_item fd.num is exist - process it [09:22:11]SAM_PROTO_GetFieldsCounters [09:22:11]wFMCommunicate request_size=4 [09:22:11]MH_SAM_APDU [09:22:11]CAPDU: 80 13 00 00 [09:22:11]Write to MH i2c: E2 08 00 FF 12 80 13 00 00 00 00 00 00 8D [09:22:11]Write i2c OK [09:22:11]MH_I2C_Read... [09:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:11]Read from MH i2c: E2 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: E2 62 00 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: E2 62 00 FF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D7 44 02 00 0E 04 04 00 70 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 9D [09:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D7 44 02 00 0E 04 04 00 70 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:22:11]wFMCommunicate OK [09:22:11]SAM_PROTO_GetFieldsCounters done [09:22:11]requested_item shift.num is exist - process it [09:22:11]requested_item shift.opened is exist - process it [09:22:11]req_shift_opened [09:22:11]FM_GetShiftState [09:22:11]SAM_PROTO_GetShiftState [09:22:11]wFMCommunicate request_size=4 [09:22:11]MH_SAM_APDU [09:22:11]CAPDU: 80 13 01 00 [09:22:11]Write to MH i2c: E2 08 00 00 13 80 13 01 00 00 00 00 00 90 [09:22:11]Write i2c OK [09:22:11]MH_I2C_Read... [09:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:11]Read from MH i2c: E2 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: E2 0E 00 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: E2 0E 00 00 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 53 [09:22:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:22:11]wFMCommunicate OK [09:22:11]SAM_PROTO_GetShiftState done [09:22:11]FM_GetShiftState done [09:22:11]req_shift_opened done [09:22:11]requested_item shift.open_date is exist - process it [09:22:11]req_shift_open_date [09:22:11]req_shift_open_date done [09:22:11]produce_requested_data done [09:22:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148695,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:22:11]process_action_free close_receipt [09:22:11]json_value_free [09:22:11]json_value_free done [09:22:11]process_json_proto returns [09:22:11]Send response to host [09:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148695,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:22:11]free response buf [09:22:11]execute_script done [09:22:11]execute_script returns [09:22:11]free content buf [09:22:11]Sock 9.Close socket [09:22:11]Sock 9.Thread stoped [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:21]accept exits with 7 [09:22:21]New connection [09:22:21]New thread 3066809700 created [09:22:21]Thread 3066666340 joined [09:22:21]Waiting for new connection... [09:22:21] Sock 7.Parse request [09:22:21]Sock 7.Check first char [09:22:21]Sock 7.First char is OK [09:22:21]request: POST /json_proto HTTP/1.0 [09:22:21]Method: POST [09:22:21]URL: /json_proto [09:22:21]Method is POST - this is cgi request [09:22:21]url: /json_proto [09:22:21]query_string will be loaded in cgi processing [09:22:21]execute_cgi json_proto POST (null) [09:22:21]execute_cgi path=json_proto method=POST [09:22:21]POST find Content-Length [09:22:21]Host: 172.17.38.4:8080 [09:22:21]Content-Length: 670 [09:22:21]Content-Type: application/json [09:22:21] [09:22:21]POST finish read [09:22:21]Found Content-Length = 670 [09:22:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [09:22:21]execute_script... [09:22: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)979618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [09:22:21]POST & json_proto [09:22:21]process_json_proto [09:22:21]json parsed OK: [09:22:21]protocol is kg_v1.0 [09:22:21]action value=close_receipt [09:22:21]process_action close_receipt [09:22:21]cmd_close_receipt [09:22:21]MH_GetDate [09:22:21]Write to MH i2c: F0 00 00 01 13 03 [09:22:21]Write i2c OK [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: F0 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: F0 09 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: F0 09 00 01 13 00 D0 DC 5E 66 CC 51 87 64 84 [09:22:21]GetLastDocTimeStamp 1717492929 [09:22:21]current date 1717492944 [09:22:21]FM_GetShiftState [09:22:21]SAM_PROTO_GetShiftState [09:22:21]wFMCommunicate request_size=4 [09:22:21]MH_SAM_APDU [09:22:21]CAPDU: 80 13 01 00 [09:22:21]Write to MH i2c: E2 08 00 02 13 80 13 01 00 00 00 00 00 92 [09:22:21]Write i2c OK [09:22:21]MH_I2C_Read... [09:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:21]Read from MH i2c: E2 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 0E 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 0E 00 02 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 55 [09:22:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:22:21]wFMCommunicate OK [09:22:21]SAM_PROTO_GetShiftState done [09:22:21]FM_GetShiftState done [09:22:21]opened in 1717460629 [09:22:21]opened+sec_in_day 1717547029 [09:22:21]quantity*price = 50042 [09:22:21]sum+1 = 50043 [09:22:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 35 04.06.2024 09:22 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148696 ФПД: 250173129399847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092224&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148696&fm=250173129399847&tin=02508201610067®Number=0000000000092720&sum=50000 [09:22:22]StoreToDocumentArchive [09:22:22]shift 368 fd 148696 [09:22:22]save to /storage/0368/doc_00148696 [09:22:22]save last doc name /storage/0368/doc_00148696 to /storage/kkm_last_doc_name [09:22:22]save OK [09:22:22]Clear old archive folders... [09:22:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:22:22]tlvbuf is B6D850D0 [09:22:22]SAM_PROTO_ClearQueue [09:22:22]wFMCommunicate request_size=4 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 09 00 00 [09:22:22]Write to MH i2c: E2 08 00 0F 13 80 09 00 00 00 00 00 00 94 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:22]Read from MH i2c: E2 03 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 0F 13 00 90 00 96 [09:22:22]RAPDU: 90 00 [09:22:22]wFMCommunicate OK [09:22:22]SAM_PROTO_ClearQueue done [09:22:22]KKMCreateOFDPacket [09:22:22]OFDProtocolAddRootSTLVToBuf [09:22:22]FM_MakeSignedData [09:22:22]FM_MakeSignedData [09:22:22]SAM_PROTO_SignData [09:22:22]wFMCommunicate request_size=4 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 0D 01 02 [09:22:22]Write to MH i2c: E2 08 00 10 13 80 0D 01 02 00 00 00 00 9C [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 10 13 00 90 00 97 [09:22:22]RAPDU: 90 00 [09:22:22]wFMCommunicate OK [09:22:22]wFMCommunicate request_size=255 [09:22:22]MH_SAM_APDU [09:22: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 23 00 00 00 F4 03 04 00 D0 DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D8 44 02 00 35 04 06 00 [09:22:22]Write to MH i2c: E2 02 01 11 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 23 00 00 00 F4 03 04 00 D0 DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D8 44 02 00 35 04 06 00 00 00 DB [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 11 13 00 90 00 98 [09:22:22]RAPDU: 90 00 [09:22:22]wFMCommunicate OK [09:22:22]wFMCommunicate request_size=11 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 0D 02 02 06 E3 87 F8 82 9E 27 [09:22:22]Write to MH i2c: E2 0E 00 12 13 80 0D 02 02 06 00 E3 87 F8 82 9E 27 00 00 54 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 12 13 00 90 00 99 [09:22:22]RAPDU: 90 00 [09:22:22]wFMCommunicate OK [09:22:22]wFMCommunicate request_size=4 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 0D 03 02 [09:22:22]Write to MH i2c: E2 08 00 13 13 80 0D 03 02 00 00 00 00 A1 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:23]Read from MH i2c: E2 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 0B 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 0B 00 13 13 00 87 D7 34 88 8D 46 DC 27 90 00 92 [09:22:23]RAPDU: 87 D7 34 88 8D 46 DC 27 90 00 [09:22:23]wFMCommunicate OK [09:22:23]SAM_PROTO_SignData done [09:22:23]FM_MakeSignedData done [09:22:23]CreateOFDProtocolMessage [09:22:23]wFMCommunicate request_size=4 [09:22:23]MH_SAM_APDU [09:22:23]CAPDU: 80 11 00 00 [09:22:23]Write to MH i2c: E2 08 00 14 13 80 11 00 00 00 00 00 00 A1 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:23]Read from MH i2c: E2 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 17 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 17 00 14 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F4 [09:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:22:23]wFMCommunicate OK [09:22:23]CreateOFDProtocolMessage done [09:22:23]OFDSenderStorePacket 148696 [09:22:23]StoreOFDPacket docnum=148696 [09:22:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 FD D5 08 01 F0 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 23 00 00 00 F4 03 04 00 D0 DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D8 44 02 00 35 04 06 00 E3 87 F8 82 9E 27 87 D7 34 88 8D 46 DC 27 [09:22:23]CheckFolder [09:22:23]dirname=/storage/ofd_packets [09:22:23]CheckFolder done [09:22:23]ProducePacketName [09:22:23]name=ofd_packets/00148696 [09:22:23]NVStorageSaveData ofd_packets/00148696 [09:22:23]File name is /storage/ofd_packets/00148696 [09:22:23]Write 302 bytes [09:22:23]NVStorageSaveData done [09:22:23]OFDSenderStorePacket done [09:22:23]KKMCreateOFDPacket done [09:22:23]NVStorageSaveData kkm_last_timestamp [09:22:23]File name is /storage/kkm_last_timestamp [09:22:23]Write 4 bytes [09:22:23]NVStorageSaveData done [09:22:23]ExternCall_PrintAddStr [09:22:23]wPrintStart [09:22:23]Write to MH i2c: 01 00 00 15 13 28 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: 01 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: 01 07 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: 01 07 00 15 13 00 00 00 00 00 FF 0F 3D [09:22:23]RasterBufferAndPrint [09:22:23]line Счет N : (1)979618 [09:22:23]line ИНН: 02508201610067 [09:22:23]line Контрольно-Кассовый Чек [09:22:23]line ПРОДАЖА [09:22:23]line ТРК (МРК, ГНК) : 43 [09:22:23]line Товар: 2710124130 [09:22:23]line SUPER 92-К-5 [09:22:23]line 7.370 * 67.90 [09:22:23]line = 500.42 [09:22:23]line НДС 12% НСП 1% [09:22:23]line > о реализуемом товаре [09:22:23]line ОКРУГЛЕНИЕ: -0.42 [09:22:23]line ИТОГО: 500.00 [09:22:23]line Внесено: 500.00 [09:22:23]line СДАЧА: 0.00 [09:22:23]line НСП 1% : 4.43 [09:22:23]line НДС 12% : 53.14 [09:22:23]line Наличными: 500.00 [09:22:23]line Безнал.: 0.00 [09:22:23]line Место: АЗС № 68 "Партнер Нефть" [09:22:23]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:22:23]line СНО: Общий режим [09:22:23]line Чек 35 04.06.2024 09:22 [09:22:23]line Смена: 368 ФФД: 1.0 [09:22:23]line ЗНМ: 0300000035 [09:22:23]line РНМ: 0000000000092720 [09:22:23]line Версия ККМ: 001 [09:22:23]line ФМ: 0000000000875057 [09:22:23]line ФД: 148696 [09:22:23]line ФПД: 250173129399847 [09:22:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092224&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148696&fm=250173129399847&tin=02508201610067®Number=0000000000092720&sum=50000 [09:22:23]OFD Sender: Processing packet 148696 [packets to send 100, broken 99] [09:22:23]ProducePacketName [09:22:23]name=ofd_packets/00148696 [09:22:23]OFD Sender: To server: pG, [09:22:23]CommunicateWithHost lk.salyk.kg:30040 [09:22:23]ConnectInit lk.salyk.kg [09:22:23]written 0, free lines is 4095 [09:22:23]Connected sock=10 [09:22:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 FD D5 08 01 F0 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 23 00 00 00 F4 03 04 00 D0 DC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D8 44 02 00 35 04 06 00 E3 87 F8 82 9E 27 87 D7 34 88 8D 46 DC 27 [09:22:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 09 70 47 00 AE 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 38 37 35 30 35 37 10 04 04 00 D8 44 02 00 F4 03 04 00 F4 83 5E 66 B6 04 01 00 00 28 A5 B0 46 85 64 F7 2A [09:22:23]CommunicateWithHost err = 0 [09:22:23]CheckOFDResponse [09:22:23]1017 (14) - 77093643461234 [09:22:23]1041 (16) - 0000000000875057 [09:22:23]1040 (4) - 148696 [09:22:23]1012 (4) - 04.06.2024 03:03 [09:22:23]1206 (1) - 0 [09:22:23]OFD Sender: Remove packet 148696 [09:22:23]ProducePacketName [09:22:23]name=ofd_packets/00148696 [09:22:23]NVStorageDeleteData [09:22:23]Write to MH i2c: 01 00 00 40 13 53 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: 01 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: 01 07 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: 01 07 00 40 13 00 00 00 00 00 6F 0C D5 [09:22:23]RasterBufferAndPrint [09:22:23]line [09:22:23]line [09:22:23]line [09:22:23]line [09:22:23]line [09:22:23]written 0, free lines is 3186 [09:22:23]MH_Cut [09:22:23]Write to MH i2c: D1 01 00 47 13 01 2C [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: D1 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: D1 01 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: D1 01 00 47 13 00 2B [09:22:23]Write to MH i2c: 01 00 00 48 13 5B [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:24]OFD Sender: No OFD packet to send [09:22:25]*** Cut start [09:22:25]*** Partial cut [09:22:25]*** CUTSNS_PIN = 1 [09:22:25]*** CUTSNS_PIN = 0 [09:22:25]*** Brake cut motor [09:22:25]Read from MH i2c: 01 [09:22:25]MH_I2C_Read... [09:22:25]*** Stop cut motor [09:22:25]*** Cut end [09:22:25]Read from MH i2c: 01 07 00 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: 01 07 00 48 13 00 00 00 00 00 FF 0F 70 [09:22:25]process_action close_receipt done [09:22:25]requested_data is exist [09:22:25]produce_requested_data [09:22:25]requested_item fm.sn is exist - process it [09:22:25]wFMCommunicate request_size=4 [09:22:25]MH_SAM_APDU [09:22:25]CAPDU: 80 11 00 00 [09:22:25]Write to MH i2c: E2 08 00 49 13 80 11 00 00 00 00 00 00 D6 [09:22:25]Write i2c OK [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 [09:22:25]MH_I2C_Read... [09:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:25]Read from MH i2c: E2 17 00 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 17 00 49 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 29 [09:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:22:25]wFMCommunicate OK [09:22:25]requested_item fd.num is exist - process it [09:22:25]SAM_PROTO_GetFieldsCounters [09:22:25]wFMCommunicate request_size=4 [09:22:25]MH_SAM_APDU [09:22:25]CAPDU: 80 13 00 00 [09:22:25]Write to MH i2c: E2 08 00 4A 13 80 13 00 00 00 00 00 00 D9 [09:22:25]Write i2c OK [09:22:25]MH_I2C_Read... [09:22:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:25]Read from MH i2c: E2 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 62 00 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 62 00 4A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D8 44 02 00 0E 04 04 00 70 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 ED [09:22:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D8 44 02 00 0E 04 04 00 70 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:22:26]wFMCommunicate OK [09:22:26]SAM_PROTO_GetFieldsCounters done [09:22:26]requested_item shift.num is exist - process it [09:22:26]requested_item shift.opened is exist - process it [09:22:26]req_shift_opened [09:22:26]FM_GetShiftState [09:22:26]SAM_PROTO_GetShiftState [09:22:26]wFMCommunicate request_size=4 [09:22:26]MH_SAM_APDU [09:22:26]CAPDU: 80 13 01 00 [09:22:26]Write to MH i2c: E2 08 00 4B 13 80 13 01 00 00 00 00 00 DB [09:22:26]Write i2c OK [09:22:26]MH_I2C_Read... [09:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:26]Read from MH i2c: E2 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: E2 0E 00 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: E2 0E 00 4B 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9E [09:22:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:22:26]wFMCommunicate OK [09:22:26]SAM_PROTO_GetShiftState done [09:22:26]FM_GetShiftState done [09:22:26]req_shift_opened done [09:22:26]requested_item shift.open_date is exist - process it [09:22:26]req_shift_open_date [09:22:26]req_shift_open_date done [09:22:26]produce_requested_data done [09:22:26]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148696,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:22:26]process_action_free close_receipt [09:22:26]json_value_free [09:22:26]json_value_free done [09:22:26]process_json_proto returns [09:22:26]Send response to host [09:22:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148696,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:22:26]free response buf [09:22:26]execute_script done [09:22:26]execute_script returns [09:22:26]free content buf [09:22:26]Sock 7.Close socket [09:22:26]Sock 7.Thread stoped [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:10]accept exits with 9 [09:23:10]New connection [09:23:10]New thread 3066666340 created [09:23:10]Thread 3066809700 joined [09:23:10]Waiting for new connection... [09:23:10] Sock 9.Parse request [09:23:10]Sock 9.Check first char [09:23:10]Sock 9.First char is OK [09:23:10]request: POST /json_proto HTTP/1.0 [09:23:10]Method: POST [09:23:10]URL: /json_proto [09:23:10]Method is POST - this is cgi request [09:23:10]url: /json_proto [09:23:10]query_string will be loaded in cgi processing [09:23:10]execute_cgi json_proto POST (null) [09:23:10]execute_cgi path=json_proto method=POST [09:23:10]POST find Content-Length [09:23:10]Host: 172.17.38.4:8080 [09:23:10]Content-Length: 674 [09:23:10]Content-Type: application/json [09:23:10] [09:23:10]POST finish read [09:23:10]Found Content-Length = 674 [09:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [09:23:10]execute_script... [09:23: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)979619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [09:23:10]POST & json_proto [09:23:10]process_json_proto [09:23:10]json parsed OK: [09:23:10]protocol is kg_v1.0 [09:23:10]action value=close_receipt [09:23:10]process_action close_receipt [09:23:10]cmd_close_receipt [09:23:10]MH_GetDate [09:23:10]Write to MH i2c: F0 00 00 4C 13 4E [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: F0 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: F0 09 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: F0 09 00 4C 13 00 01 DD 5E 66 CC 51 87 64 01 [09:23:10]GetLastDocTimeStamp 1717492944 [09:23:10]current date 1717492993 [09:23:10]FM_GetShiftState [09:23:10]SAM_PROTO_GetShiftState [09:23:10]wFMCommunicate request_size=4 [09:23:10]MH_SAM_APDU [09:23:10]CAPDU: 80 13 01 00 [09:23:10]Write to MH i2c: E2 08 00 4D 13 80 13 01 00 00 00 00 00 DD [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:10]Read from MH i2c: E2 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 0E 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 0E 00 4D 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A0 [09:23:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:23:10]wFMCommunicate OK [09:23:10]SAM_PROTO_GetShiftState done [09:23:10]FM_GetShiftState done [09:23:10]opened in 1717460629 [09:23:10]opened+sec_in_day 1717547029 [09:23:10]quantity*price = 50009 [09:23:10]sum+1 = 50010 [09:23:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 36 04.06.2024 09:23 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148697 ФПД: 223354590557174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092313&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148697&fm=223354590557174&tin=02508201610067®Number=0000000000092720&sum=50000 [09:23:11]StoreToDocumentArchive [09:23:11]shift 368 fd 148697 [09:23:11]save to /storage/0368/doc_00148697 [09:23:11]save last doc name /storage/0368/doc_00148697 to /storage/kkm_last_doc_name [09:23:11]save OK [09:23:11]Clear old archive folders... [09:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:23:11]tlvbuf is 015D3000 [09:23:11]SAM_PROTO_ClearQueue [09:23:11]wFMCommunicate request_size=4 [09:23:11]MH_SAM_APDU [09:23:11]CAPDU: 80 09 00 00 [09:23:11]Write to MH i2c: E2 08 00 5A 13 80 09 00 00 00 00 00 00 DF [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:11]Read from MH i2c: E2 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 03 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 03 00 5A 13 00 90 00 E1 [09:23:11]RAPDU: 90 00 [09:23:11]wFMCommunicate OK [09:23:11]SAM_PROTO_ClearQueue done [09:23:11]KKMCreateOFDPacket [09:23:11]OFDProtocolAddRootSTLVToBuf [09:23:11]FM_MakeSignedData [09:23:11]FM_MakeSignedData [09:23:11]SAM_PROTO_SignData [09:23:11]wFMCommunicate request_size=4 [09:23:11]MH_SAM_APDU [09:23:11]CAPDU: 80 0D 01 02 [09:23:11]Write to MH i2c: E2 08 00 5B 13 80 0D 01 02 00 00 00 00 E7 [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:11]Read from MH i2c: E2 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 03 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 03 00 5B 13 00 90 00 E2 [09:23:11]RAPDU: 90 00 [09:23:11]wFMCommunicate OK [09:23:11]wFMCommunicate request_size=255 [09:23:11]MH_SAM_APDU [09:23:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 24 00 00 00 F4 03 04 00 01 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D9 44 02 00 35 04 06 00 CB 23 CB 07 [09:23:11]Write to MH i2c: E2 02 01 5C 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 24 00 00 00 F4 03 04 00 01 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D9 44 02 00 35 04 06 00 CB 23 CB 07 00 00 A2 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 5C 13 00 90 00 E3 [09:23:12]RAPDU: 90 00 [09:23:12]wFMCommunicate OK [09:23:12]wFMCommunicate request_size=7 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 0D 02 02 02 73 F6 [09:23:12]Write to MH i2c: E2 0A 00 5D 13 80 0D 02 02 02 00 73 F6 00 00 57 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 5D 13 00 90 00 E4 [09:23:12]RAPDU: 90 00 [09:23:12]wFMCommunicate OK [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 0D 03 02 [09:23:12]Write to MH i2c: E2 08 00 5E 13 80 0D 03 02 00 00 00 00 EC [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 0B 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 0B 00 5E 13 00 D2 D5 EF 95 3D 5B 9F E5 90 00 34 [09:23:12]RAPDU: D2 D5 EF 95 3D 5B 9F E5 90 00 [09:23:12]wFMCommunicate OK [09:23:12]SAM_PROTO_SignData done [09:23:12]FM_MakeSignedData done [09:23:12]CreateOFDProtocolMessage [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 11 00 00 [09:23:12]Write to MH i2c: E2 08 00 5F 13 80 11 00 00 00 00 00 00 EC [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 17 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 17 00 5F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3F [09:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:23:12]wFMCommunicate OK [09:23:12]CreateOFDProtocolMessage done [09:23:12]OFDSenderStorePacket 148697 [09:23:12]StoreOFDPacket docnum=148697 [09:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 C0 70 04 01 0A 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 24 00 00 00 F4 03 04 00 01 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D9 44 02 00 35 04 06 00 CB 23 CB 07 73 F6 D2 D5 EF 95 3D 5B 9F E5 [09:23:12]CheckFolder [09:23:12]dirname=/storage/ofd_packets [09:23:12]CheckFolder done [09:23:12]ProducePacketName [09:23:12]name=ofd_packets/00148697 [09:23:12]NVStorageSaveData ofd_packets/00148697 [09:23:12]File name is /storage/ofd_packets/00148697 [09:23:12]Write 298 bytes [09:23:12]NVStorageSaveData done [09:23:12]OFDSenderStorePacket done [09:23:12]KKMCreateOFDPacket done [09:23:12]NVStorageSaveData kkm_last_timestamp [09:23:12]File name is /storage/kkm_last_timestamp [09:23:12]Write 4 bytes [09:23:12]NVStorageSaveData done [09:23:12]ExternCall_PrintAddStr [09:23:12]wPrintStart [09:23:12]Write to MH i2c: 01 00 00 60 13 73 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 60 13 00 00 00 00 00 FF 0F 88 [09:23:12]RasterBufferAndPrint [09:23:12]line Счет N : (1)979619 [09:23:12]line ИНН: 02508201610067 [09:23:12]line Контрольно-Кассовый Чек [09:23:12]line ПРОДАЖА [09:23:12]line ТРК (МРК, ГНК) : 52 [09:23:12]line Товар: 2710194210 [09:23:12]line ДТ-К-5 [09:23:12]line 6.860 * 72.90 [09:23:12]line = 500.09 [09:23:12]line НДС 12% НСП 1% [09:23:12]line > о реализуемом товаре [09:23:12]line ОКРУГЛЕНИЕ: -0.09 [09:23:12]line ИТОГО: 500.00 [09:23:12]line Внесено: 500.00 [09:23:12]line СДАЧА: 0.00 [09:23:12]line НСП 1% : 4.43 [09:23:12]line НДС 12% : 53.11 [09:23:12]line Наличными: 500.00 [09:23:12]line Безнал.: 0.00 [09:23:12]line Место: АЗС № 68 "Партнер Нефть" [09:23:12]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:23:12]line СНО: Общий режим [09:23:12]line Чек 36 04.06.2024 09:23 [09:23:12]line Смена: 368 ФФД: 1.0 [09:23:12]line ЗНМ: 0300000035 [09:23:12]line РНМ: 0000000000092720 [09:23:12]line Версия ККМ: 001 [09:23:12]line ФМ: 0000000000875057 [09:23:12]line ФД: 148697 [09:23:12]line ФПД: 223354590557174 [09:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092313&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148697&fm=223354590557174&tin=02508201610067®Number=0000000000092720&sum=50000 [09:23:12]OFD Sender: Processing packet 148697 [packets to send 100, broken 99] [09:23:12]ProducePacketName [09:23:12]name=ofd_packets/00148697 [09:23:12]OFD Sender: To server: pG, [09:23:12]CommunicateWithHost lk.salyk.kg:30040 [09:23:12]ConnectInit lk.salyk.kg [09:23:12]written 0, free lines is 4095 [09:23:12]Connected sock=10 [09:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 C0 70 04 01 0A 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 24 00 00 00 F4 03 04 00 01 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D9 44 02 00 35 04 06 00 CB 23 CB 07 73 F6 D2 D5 EF 95 3D 5B 9F E5 [09:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 6B 14 47 00 26 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D9 44 02 00 F4 03 04 00 25 84 5E 66 B6 04 01 00 00 06 4F 59 4F 35 D6 E4 7F [09:23:13]CommunicateWithHost err = 0 [09:23:13]CheckOFDResponse [09:23:13]1017 (14) - 77093643461234 [09:23:13]1041 (16) - 0000000000875057 [09:23:13]1040 (4) - 148697 [09:23:13]1012 (4) - 04.06.2024 03:04 [09:23:13]1206 (1) - 0 [09:23:13]OFD Sender: Remove packet 148697 [09:23:13]ProducePacketName [09:23:13]name=ofd_packets/00148697 [09:23:13]NVStorageDeleteData [09:23:13]Write to MH i2c: 01 00 00 8B 13 9E [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: 01 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: 01 07 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: 01 07 00 8B 13 00 00 00 00 00 5C 0C 0D [09:23:13]RasterBufferAndPrint [09:23:13]line [09:23:13]line [09:23:13]line [09:23:13]line [09:23:13]line [09:23:13]written 0, free lines is 3168 [09:23:13]MH_Cut [09:23:13]Write to MH i2c: D1 01 00 92 13 01 77 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: D1 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: D1 01 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: D1 01 00 92 13 00 76 [09:23:13]Write to MH i2c: 01 00 00 93 13 A6 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]OFD Sender: No OFD packet to send [09:23:14]*** Cut start [09:23:14]*** Partial cut [09:23:14]*** CUTSNS_PIN = 1 [09:23:14]*** CUTSNS_PIN = 0 [09:23:14]*** Brake cut motor [09:23:15]Read from MH i2c: 01 [09:23:15]MH_I2C_Read... [09:23:15]*** Stop cut motor [09:23:15]*** Cut end [09:23:15]Read from MH i2c: 01 07 00 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: 01 07 00 93 13 00 00 00 00 00 FF 0F BB [09:23:15]process_action close_receipt done [09:23:15]requested_data is exist [09:23:15]produce_requested_data [09:23:15]requested_item fm.sn is exist - process it [09:23:15]wFMCommunicate request_size=4 [09:23:15]MH_SAM_APDU [09:23:15]CAPDU: 80 11 00 00 [09:23:15]Write to MH i2c: E2 08 00 94 13 80 11 00 00 00 00 00 00 21 [09:23:15]Write i2c OK [09:23:15]MH_I2C_Read... [09:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:15]Read from MH i2c: E2 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 17 00 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 17 00 94 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 74 [09:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:23:15]wFMCommunicate OK [09:23:15]requested_item fd.num is exist - process it [09:23:15]SAM_PROTO_GetFieldsCounters [09:23:15]wFMCommunicate request_size=4 [09:23:15]MH_SAM_APDU [09:23:15]CAPDU: 80 13 00 00 [09:23:15]Write to MH i2c: E2 08 00 95 13 80 13 00 00 00 00 00 00 24 [09:23:15]Write i2c OK [09:23:15]MH_I2C_Read... [09:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:15]Read from MH i2c: E2 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 62 00 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 62 00 95 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D9 44 02 00 0E 04 04 00 70 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 3C [09:23:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D9 44 02 00 0E 04 04 00 70 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 [09:23:15]wFMCommunicate OK [09:23:15]SAM_PROTO_GetFieldsCounters done [09:23:15]requested_item shift.num is exist - process it [09:23:15]requested_item shift.opened is exist - process it [09:23:15]req_shift_opened [09:23:15]FM_GetShiftState [09:23:15]SAM_PROTO_GetShiftState [09:23:15]wFMCommunicate request_size=4 [09:23:15]MH_SAM_APDU [09:23:15]CAPDU: 80 13 01 00 [09:23:15]Write to MH i2c: E2 08 00 96 13 80 13 01 00 00 00 00 00 26 [09:23:15]Write i2c OK [09:23:15]MH_I2C_Read... [09:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:15]Read from MH i2c: E2 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 0E 00 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 0E 00 96 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E9 [09:23:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:23:15]wFMCommunicate OK [09:23:15]SAM_PROTO_GetShiftState done [09:23:15]FM_GetShiftState done [09:23:15]req_shift_opened done [09:23:15]requested_item shift.open_date is exist - process it [09:23:15]req_shift_open_date [09:23:15]req_shift_open_date done [09:23:15]produce_requested_data done [09:23:15]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148697,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:23:15]process_action_free close_receipt [09:23:15]json_value_free [09:23:15]json_value_free done [09:23:15]process_json_proto returns [09:23:15]Send response to host [09:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148697,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:23:15]free response buf [09:23:15]execute_script done [09:23:15]execute_script returns [09:23:15]free content buf [09:23:15]Sock 9.Close socket [09:23:15]Sock 9.Thread stoped [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:32]accept exits with 7 [09:23:32]New connection [09:23:32]New thread 3066809700 created [09:23:32]Thread 3066666340 joined [09:23:32]Waiting for new connection... [09:23:32] Sock 7.Parse request [09:23:32]Sock 7.Check first char [09:23:32]Sock 7.First char is OK [09:23:32]request: POST /json_proto HTTP/1.0 [09:23:32]Method: POST [09:23:32]URL: /json_proto [09:23:32]Method is POST - this is cgi request [09:23:32]url: /json_proto [09:23:32]query_string will be loaded in cgi processing [09:23:32]execute_cgi json_proto POST (null) [09:23:32]execute_cgi path=json_proto method=POST [09:23:32]POST find Content-Length [09:23:32]Host: 172.17.38.4:8080 [09:23:32]Content-Length: 677 [09:23:32]Content-Type: application/json [09:23:32] [09:23:32]POST finish read [09:23:32]Found Content-Length = 677 [09:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:32]execute_script... [09:23:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:32]POST & json_proto [09:23:32]process_json_proto [09:23:32]json parsed OK: [09:23:32]protocol is kg_v1.0 [09:23:32]action value=close_receipt [09:23:32]process_action close_receipt [09:23:32]cmd_close_receipt [09:23:32]MH_GetDate [09:23:32]Write to MH i2c: F0 00 00 97 13 99 [09:23:32]Write i2c OK [09:23:32]MH_I2C_Read... [09:23:32]Read from MH i2c: F0 [09:23:32]MH_I2C_Read... [09:23:32]Read from MH i2c: F0 09 00 [09:23:32]MH_I2C_Read... [09:23:32]Read from MH i2c: F0 09 00 97 13 00 17 DD 5E 66 CC 51 87 64 62 [09:23:32]GetLastDocTimeStamp 1717492993 [09:23:32]current date 1717493015 [09:23:32]FM_GetShiftState [09:23:32]SAM_PROTO_GetShiftState [09:23:32]wFMCommunicate request_size=4 [09:23:32]MH_SAM_APDU [09:23:32]CAPDU: 80 13 01 00 [09:23:32]Write to MH i2c: E2 08 00 98 13 80 13 01 00 00 00 00 00 28 [09:23:32]Write i2c OK [09:23:32]MH_I2C_Read... [09:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:33]Read from MH i2c: E2 [09:23:33]MH_I2C_Read... [09:23:33]Read from MH i2c: E2 0E 00 [09:23:33]MH_I2C_Read... [09:23:33]Read from MH i2c: E2 0E 00 98 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EB [09:23:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:23:33]wFMCommunicate OK [09:23:33]SAM_PROTO_GetShiftState done [09:23:33]FM_GetShiftState done [09:23:33]opened in 1717460629 [09:23:33]opened+sec_in_day 1717547029 [09:23:33]quantity*price = 50041 [09:23:33]sum+1 = 50042 [09:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 37 04.06.2024 09:23 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148698 ФПД: 38631489225894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092335&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148698&fm=38631489225894&tin=02508201610067®Number=0000000000092720&sum=50000 [09:23:34]StoreToDocumentArchive [09:23:34]shift 368 fd 148698 [09:23:34]save to /storage/0368/doc_00148698 [09:23:34]save last doc name /storage/0368/doc_00148698 to /storage/kkm_last_doc_name [09:23:34]save OK [09:23:34]Clear old archive folders... [09:23:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:34]tlvbuf is 015C7300 [09:23:34]SAM_PROTO_ClearQueue [09:23:34]wFMCommunicate request_size=4 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 09 00 00 [09:23:34]Write to MH i2c: E2 08 00 A5 13 80 09 00 00 00 00 00 00 2A [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 A5 13 00 90 00 2C [09:23:34]RAPDU: 90 00 [09:23:34]wFMCommunicate OK [09:23:34]SAM_PROTO_ClearQueue done [09:23:34]KKMCreateOFDPacket [09:23:34]OFDProtocolAddRootSTLVToBuf [09:23:34]FM_MakeSignedData [09:23:34]FM_MakeSignedData [09:23:34]SAM_PROTO_SignData [09:23:34]wFMCommunicate request_size=4 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 0D 01 02 [09:23:34]Write to MH i2c: E2 08 00 A6 13 80 0D 01 02 00 00 00 00 32 [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 A6 13 00 90 00 2D [09:23:34]RAPDU: 90 00 [09:23:34]wFMCommunicate OK [09:23:34]wFMCommunicate request_size=255 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 17 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DA 44 02 00 35 04 06 00 23 [09:23:34]Write to MH i2c: E2 02 01 A7 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 17 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DA 44 02 00 35 04 06 00 23 00 00 4D [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 A7 13 00 90 00 2E [09:23:34]RAPDU: 90 00 [09:23:34]wFMCommunicate OK [09:23:34]wFMCommunicate request_size=10 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 0D 02 02 05 22 98 31 44 A6 [09:23:34]Write to MH i2c: E2 0D 00 A8 13 80 0D 02 02 05 00 22 98 31 44 A6 00 00 14 [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 A8 13 00 90 00 2F [09:23:34]RAPDU: 90 00 [09:23:34]wFMCommunicate OK [09:23:34]wFMCommunicate request_size=4 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 0D 03 02 [09:23:34]Write to MH i2c: E2 08 00 A9 13 80 0D 03 02 00 00 00 00 37 [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 0B 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 0B 00 A9 13 00 83 7A FC 26 B4 9F 1B F7 90 00 BC [09:23:34]RAPDU: 83 7A FC 26 B4 9F 1B F7 90 00 [09:23:34]wFMCommunicate OK [09:23:34]SAM_PROTO_SignData done [09:23:34]FM_MakeSignedData done [09:23:34]CreateOFDProtocolMessage [09:23:34]wFMCommunicate request_size=4 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 11 00 00 [09:23:34]Write to MH i2c: E2 08 00 AA 13 80 11 00 00 00 00 00 00 37 [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 17 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 17 00 AA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8A [09:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:23:34]wFMCommunicate OK [09:23:34]CreateOFDProtocolMessage done [09:23:34]OFDSenderStorePacket 148698 [09:23:34]StoreOFDPacket docnum=148698 [09:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F3 45 07 01 B1 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 17 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DA 44 02 00 35 04 06 00 23 22 98 31 44 A6 83 7A FC 26 B4 9F 1B F7 [09:23:34]CheckFolder [09:23:34]dirname=/storage/ofd_packets [09:23:34]CheckFolder done [09:23:34]ProducePacketName [09:23:34]name=ofd_packets/00148698 [09:23:34]NVStorageSaveData ofd_packets/00148698 [09:23:34]File name is /storage/ofd_packets/00148698 [09:23:34]Write 301 bytes [09:23:34]NVStorageSaveData done [09:23:34]OFDSenderStorePacket done [09:23:34]KKMCreateOFDPacket done [09:23:34]NVStorageSaveData kkm_last_timestamp [09:23:34]File name is /storage/kkm_last_timestamp [09:23:34]Write 4 bytes [09:23:34]NVStorageSaveData done [09:23:34]ExternCall_PrintAddStr [09:23:34]wPrintStart [09:23:34]OFD Sender: Processing packet 148698 [packets to send 100, broken 99] [09:23:34]ProducePacketName [09:23:34]name=ofd_packets/00148698 [09:23:34]OFD Sender: To server: pG, [09:23:34]CommunicateWithHost lk.salyk.kg:30040 [09:23:34]ConnectInit lk.salyk.kg [09:23:34]Write to MH i2c: 01 00 00 AB 13 BE [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: 01 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: 01 07 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: 01 07 00 AB 13 00 00 00 00 00 FF 0F D3 [09:23:34]RasterBufferAndPrint [09:23:34]line Счет N : (1)979620 [09:23:34]line ИНН: 02508201610067 [09:23:34]line Контрольно-Кассовый Чек [09:23:34]line ПРОДАЖА [09:23:34]line ТРК (МРК, ГНК) : 12 [09:23:34]line Товар: 2710124130 [09:23:34]line Аи-92-К-5 [09:23:34]line 7.480 * 66.90 [09:23:34]line = 500.41 [09:23:34]line НДС 12% НСП 1% [09:23:34]line > о реализуемом товаре [09:23:34]line ОКРУГЛЕНИЕ: -0.41 [09:23:34]line ИТОГО: 500.00 [09:23:34]line Внесено: 500.00 [09:23:34]line СДАЧА: 0.00 [09:23:34]line НСП 1% : 4.43 [09:23:34]line НДС 12% : 53.14 [09:23:34]line Наличными: 500.00 [09:23:34]line Безнал.: 0.00 [09:23:34]line Место: АЗС № 68 "Партнер Нефть" [09:23:34]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:23:34]line СНО: Общий режим [09:23:34]line Чек 37 04.06.2024 09:23 [09:23:34]line Смена: 368 ФФД: 1.0 [09:23:35]line ЗНМ: 0300000035 [09:23:35]line РНМ: 0000000000092720 [09:23:35]line Версия ККМ: 001 [09:23:35]line ФМ: 0000000000875057 [09:23:35]line ФД: 148698 [09:23:35]line ФПД: 38631489225894 [09:23:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092335&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148698&fm=38631489225894&tin=02508201610067®Number=0000000000092720&sum=50000 [09:23:35]Connected sock=11 [09:23:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F3 45 07 01 B1 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 17 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DA 44 02 00 35 04 06 00 23 22 98 31 44 A6 83 7A FC 26 B4 9F 1B F7 [09:23:35]written 0, free lines is 4095 [09:23:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CD 03 47 00 71 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 38 37 35 30 35 37 10 04 04 00 DA 44 02 00 F4 03 04 00 3B 84 5E 66 B6 04 01 00 00 A7 22 CD 68 9C 1A AB 04 [09:23:35]CommunicateWithHost err = 0 [09:23:35]CheckOFDResponse [09:23:35]1017 (14) - 77093643461234 [09:23:35]1041 (16) - 0000000000875057 [09:23:35]1040 (4) - 148698 [09:23:35]1012 (4) - 04.06.2024 03:04 [09:23:35]1206 (1) - 0 [09:23:35]OFD Sender: Remove packet 148698 [09:23:35]ProducePacketName [09:23:35]name=ofd_packets/00148698 [09:23:35]NVStorageDeleteData [09:23:35]Write to MH i2c: 01 00 00 D6 13 E9 [09:23:35]Write i2c OK [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: 01 [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: 01 07 00 [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: 01 07 00 D6 13 00 00 00 00 00 61 0C 5D [09:23:35]RasterBufferAndPrint [09:23:35]line [09:23:35]line [09:23:35]line [09:23:35]line [09:23:35]line [09:23:35]written 0, free lines is 3173 [09:23:35]MH_Cut [09:23:35]Write to MH i2c: D1 01 00 DD 13 01 C2 [09:23:35]Write i2c OK [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: D1 [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: D1 01 00 [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: D1 01 00 DD 13 00 C1 [09:23:35]Write to MH i2c: 01 00 00 DE 13 F1 [09:23:35]Write i2c OK [09:23:35]MH_I2C_Read... [09:23:35]OFD Sender: No OFD packet to send [09:23:36]*** Cut start [09:23:36]*** Partial cut [09:23:36]*** CUTSNS_PIN = 1 [09:23:36]*** CUTSNS_PIN = 0 [09:23:37]*** Brake cut motor [09:23:37]Read from MH i2c: 01 [09:23:37]MH_I2C_Read... [09:23:37]*** Stop cut motor [09:23:37]*** Cut end [09:23:37]Read from MH i2c: 01 07 00 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: 01 07 00 DE 13 00 00 00 00 00 FF 0F 06 [09:23:37]process_action close_receipt done [09:23:37]requested_data is exist [09:23:37]produce_requested_data [09:23:37]requested_item fm.sn is exist - process it [09:23:37]wFMCommunicate request_size=4 [09:23:37]MH_SAM_APDU [09:23:37]CAPDU: 80 11 00 00 [09:23:37]Write to MH i2c: E2 08 00 DF 13 80 11 00 00 00 00 00 00 6C [09:23:37]Write i2c OK [09:23:37]MH_I2C_Read... [09:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:37]Read from MH i2c: E2 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: E2 17 00 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: E2 17 00 DF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BF [09:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:23:37]wFMCommunicate OK [09:23:37]requested_item fd.num is exist - process it [09:23:37]SAM_PROTO_GetFieldsCounters [09:23:37]wFMCommunicate request_size=4 [09:23:37]MH_SAM_APDU [09:23:37]CAPDU: 80 13 00 00 [09:23:37]Write to MH i2c: E2 08 00 E0 13 80 13 00 00 00 00 00 00 6F [09:23:37]Write i2c OK [09:23:37]MH_I2C_Read... [09:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:37]Read from MH i2c: E2 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: E2 62 00 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: E2 62 00 E0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DA 44 02 00 0E 04 04 00 70 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 8B [09:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DA 44 02 00 0E 04 04 00 70 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 [09:23:37]wFMCommunicate OK [09:23:37]SAM_PROTO_GetFieldsCounters done [09:23:37]requested_item shift.num is exist - process it [09:23:37]requested_item shift.opened is exist - process it [09:23:37]req_shift_opened [09:23:37]FM_GetShiftState [09:23:37]SAM_PROTO_GetShiftState [09:23:37]wFMCommunicate request_size=4 [09:23:37]MH_SAM_APDU [09:23:37]CAPDU: 80 13 01 00 [09:23:37]Write to MH i2c: E2 08 00 E1 13 80 13 01 00 00 00 00 00 71 [09:23:37]Write i2c OK [09:23:37]MH_I2C_Read... [09:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:37]Read from MH i2c: E2 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: E2 0E 00 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: E2 0E 00 E1 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 34 [09:23:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:23:37]wFMCommunicate OK [09:23:37]SAM_PROTO_GetShiftState done [09:23:37]FM_GetShiftState done [09:23:37]req_shift_opened done [09:23:37]requested_item shift.open_date is exist - process it [09:23:37]req_shift_open_date [09:23:37]req_shift_open_date done [09:23:37]produce_requested_data done [09:23:37]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148698,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:23:37]process_action_free close_receipt [09:23:37]json_value_free [09:23:37]json_value_free done [09:23:37]process_json_proto returns [09:23:37]Send response to host [09:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148698,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:23:37]free response buf [09:23:37]execute_script done [09:23:37]execute_script returns [09:23:37]free content buf [09:23:37]Sock 7.Close socket [09:23:37]Sock 7.Thread stoped [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:32]accept exits with 9 [09:25:32]New connection [09:25:32]New thread 3066666340 created [09:25:32]Thread 3066809700 joined [09:25:32]Waiting for new connection... [09:25:32] Sock 9.Parse request [09:25:32]Sock 9.Check first char [09:25:32]Sock 9.First char is OK [09:25:32]request: POST /json_proto HTTP/1.0 [09:25:32]Method: POST [09:25:32]URL: /json_proto [09:25:32]Method is POST - this is cgi request [09:25:32]url: /json_proto [09:25:32]query_string will be loaded in cgi processing [09:25:32]execute_cgi json_proto POST (null) [09:25:32]execute_cgi path=json_proto method=POST [09:25:32]POST find Content-Length [09:25:32]Host: 172.17.38.4:8080 [09:25:32]Content-Length: 677 [09:25:32]Content-Type: application/json [09:25:32] [09:25:32]POST finish read [09:25:32]Found Content-Length = 677 [09:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:32]execute_script... [09:25: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)979621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:32]POST & json_proto [09:25:32]process_json_proto [09:25:32]json parsed OK: [09:25:32]protocol is kg_v1.0 [09:25:32]action value=close_receipt [09:25:32]process_action close_receipt [09:25:32]cmd_close_receipt [09:25:32]MH_GetDate [09:25:32]Write to MH i2c: F0 00 00 E2 13 E4 [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: F0 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: F0 09 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: F0 09 00 E2 13 00 8F DD 5E 66 CC 51 87 64 25 [09:25:32]GetLastDocTimeStamp 1717493015 [09:25:32]current date 1717493135 [09:25:32]FM_GetShiftState [09:25:32]SAM_PROTO_GetShiftState [09:25:32]wFMCommunicate request_size=4 [09:25:32]MH_SAM_APDU [09:25:32]CAPDU: 80 13 01 00 [09:25:32]Write to MH i2c: E2 08 00 E3 13 80 13 01 00 00 00 00 00 73 [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:32]Read from MH i2c: E2 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 0E 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 0E 00 E3 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 36 [09:25:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:25:32]wFMCommunicate OK [09:25:32]SAM_PROTO_GetShiftState done [09:25:32]FM_GetShiftState done [09:25:32]opened in 1717460629 [09:25:32]opened+sec_in_day 1717547029 [09:25:32]quantity*price = 40006 [09:25:32]sum+1 = 40007 [09:25:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 38 04.06.2024 09:25 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148699 ФПД: 204630244669124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092535&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148699&fm=204630244669124&tin=02508201610067®Number=0000000000092720&sum=40000 [09:25:33]StoreToDocumentArchive [09:25:33]shift 368 fd 148699 [09:25:33]save to /storage/0368/doc_00148699 [09:25:33]save last doc name /storage/0368/doc_00148699 to /storage/kkm_last_doc_name [09:25:33]save OK [09:25:33]Clear old archive folders... [09:25:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:33]tlvbuf is B6EB7C90 [09:25:33]SAM_PROTO_ClearQueue [09:25:33]wFMCommunicate request_size=4 [09:25:33]MH_SAM_APDU [09:25:33]CAPDU: 80 09 00 00 [09:25:33]Write to MH i2c: E2 08 00 F0 13 80 09 00 00 00 00 00 00 75 [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:33]Read from MH i2c: E2 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 03 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 03 00 F0 13 00 90 00 77 [09:25:33]RAPDU: 90 00 [09:25:33]wFMCommunicate OK [09:25:33]SAM_PROTO_ClearQueue done [09:25:33]KKMCreateOFDPacket [09:25:33]OFDProtocolAddRootSTLVToBuf [09:25:33]FM_MakeSignedData [09:25:33]FM_MakeSignedData [09:25:33]SAM_PROTO_SignData [09:25:33]wFMCommunicate request_size=4 [09:25:33]MH_SAM_APDU [09:25:33]CAPDU: 80 0D 01 02 [09:25:33]Write to MH i2c: E2 08 00 F1 13 80 0D 01 02 00 00 00 00 7D [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:33]Read from MH i2c: E2 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 03 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 03 00 F1 13 00 90 00 78 [09:25:33]RAPDU: 90 00 [09:25:33]wFMCommunicate OK [09:25:33]wFMCommunicate request_size=255 [09:25:33]MH_SAM_APDU [09:25:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 8F DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DB 44 02 00 35 04 06 00 BA [09:25:33]Write to MH i2c: E2 02 01 F2 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 8F DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DB 44 02 00 35 04 06 00 BA 00 00 78 [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:34]Read from MH i2c: E2 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 03 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 03 00 F2 13 00 90 00 79 [09:25:34]RAPDU: 90 00 [09:25:34]wFMCommunicate OK [09:25:34]wFMCommunicate request_size=10 [09:25:34]MH_SAM_APDU [09:25:34]CAPDU: 80 0D 02 02 05 1C 31 0B 36 C4 [09:25:34]Write to MH i2c: E2 0D 00 F3 13 80 0D 02 02 05 00 1C 31 0B 36 C4 00 00 DC [09:25:34]Write i2c OK [09:25:34]MH_I2C_Read... [09:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:34]Read from MH i2c: E2 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 03 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 03 00 F3 13 00 90 00 7A [09:25:34]RAPDU: 90 00 [09:25:34]wFMCommunicate OK [09:25:34]wFMCommunicate request_size=4 [09:25:34]MH_SAM_APDU [09:25:34]CAPDU: 80 0D 03 02 [09:25:34]Write to MH i2c: E2 08 00 F4 13 80 0D 03 02 00 00 00 00 82 [09:25:34]Write i2c OK [09:25:34]MH_I2C_Read... [09:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:34]Read from MH i2c: E2 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 0B 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 0B 00 F4 13 00 D1 ED 2E FF 46 6D 01 27 90 00 49 [09:25:34]RAPDU: D1 ED 2E FF 46 6D 01 27 90 00 [09:25:34]wFMCommunicate OK [09:25:34]SAM_PROTO_SignData done [09:25:34]FM_MakeSignedData done [09:25:34]CreateOFDProtocolMessage [09:25:34]wFMCommunicate request_size=4 [09:25:34]MH_SAM_APDU [09:25:34]CAPDU: 80 11 00 00 [09:25:34]Write to MH i2c: E2 08 00 F5 13 80 11 00 00 00 00 00 00 82 [09:25:34]Write i2c OK [09:25:34]MH_I2C_Read... [09:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:34]Read from MH i2c: E2 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 17 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 17 00 F5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D5 [09:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:25:34]wFMCommunicate OK [09:25:34]CreateOFDProtocolMessage done [09:25:34]OFDSenderStorePacket 148699 [09:25:34]StoreOFDPacket docnum=148699 [09:25:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 60 C1 07 01 84 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 8F DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DB 44 02 00 35 04 06 00 BA 1C 31 0B 36 C4 D1 ED 2E FF 46 6D 01 27 [09:25:34]CheckFolder [09:25:34]dirname=/storage/ofd_packets [09:25:34]CheckFolder done [09:25:34]ProducePacketName [09:25:34]name=ofd_packets/00148699 [09:25:34]NVStorageSaveData ofd_packets/00148699 [09:25:34]File name is /storage/ofd_packets/00148699 [09:25:34]Write 301 bytes [09:25:34]NVStorageSaveData done [09:25:34]OFDSenderStorePacket done [09:25:34]KKMCreateOFDPacket done [09:25:34]NVStorageSaveData kkm_last_timestamp [09:25:34]File name is /storage/kkm_last_timestamp [09:25:34]Write 4 bytes [09:25:34]NVStorageSaveData done [09:25:34]ExternCall_PrintAddStr [09:25:34]wPrintStart [09:25:34]Write to MH i2c: 01 00 00 F6 13 09 [09:25:34]Write i2c OK [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: 01 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: 01 07 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: 01 07 00 F6 13 00 00 00 00 00 FF 0F 1E [09:25:34]RasterBufferAndPrint [09:25:34]line Счет N : (1)979621 [09:25:34]line ИНН: 02508201610067 [09:25:34]line Контрольно-Кассовый Чек [09:25:34]line ПРОДАЖА [09:25:34]line ТРК (МРК, ГНК) : 31 [09:25:34]line Товар: 2710124130 [09:25:34]line Аи-92-К-5 [09:25:34]line 5.980 * 66.90 [09:25:34]line = 400.06 [09:25:34]line НДС 12% НСП 1% [09:25:34]line > о реализуемом товаре [09:25:34]line ОКРУГЛЕНИЕ: -0.06 [09:25:34]line ИТОГО: 400.00 [09:25:34]line Внесено: 400.00 [09:25:34]line СДАЧА: 0.00 [09:25:34]line НСП 1% : 3.54 [09:25:34]line НДС 12% : 42.48 [09:25:34]line Наличными: 400.00 [09:25:34]line Безнал.: 0.00 [09:25:34]line Место: АЗС № 68 "Партнер Нефть" [09:25:34]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:25:34]line СНО: Общий режим [09:25:34]line Чек 38 04.06.2024 09:25 [09:25:34]line Смена: 368 ФФД: 1.0 [09:25:34]line ЗНМ: 0300000035 [09:25:34]line РНМ: 0000000000092720 [09:25:34]line Версия ККМ: 001 [09:25:34]line ФМ: 0000000000875057 [09:25:34]line ФД: 148699 [09:25:34]line ФПД: 204630244669124 [09:25:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092535&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148699&fm=204630244669124&tin=02508201610067®Number=0000000000092720&sum=40000 [09:25:34]OFD Sender: Processing packet 148699 [packets to send 100, broken 99] [09:25:34]ProducePacketName [09:25:34]name=ofd_packets/00148699 [09:25:34]OFD Sender: To server: pG, [09:25:34]CommunicateWithHost lk.salyk.kg:30040 [09:25:34]ConnectInit lk.salyk.kg [09:25:34]written 0, free lines is 4095 [09:25:34]Connected sock=10 [09:25:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 60 C1 07 01 84 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 8F DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DB 44 02 00 35 04 06 00 BA 1C 31 0B 36 C4 D1 ED 2E FF 46 6D 01 27 [09:25:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C8 6A 47 00 04 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DB 44 02 00 F4 03 04 00 B3 84 5E 66 B6 04 01 00 00 43 0E FF 19 F8 1A FD 14 [09:25:34]CommunicateWithHost err = 0 [09:25:34]CheckOFDResponse [09:25:35]1017 (14) - 77093643461234 [09:25:35]1041 (16) - 0000000000875057 [09:25:35]1040 (4) - 148699 [09:25:35]1012 (4) - 04.06.2024 03:06 [09:25:35]1206 (1) - 0 [09:25:35]OFD Sender: Remove packet 148699 [09:25:35]ProducePacketName [09:25:35]name=ofd_packets/00148699 [09:25:35]NVStorageDeleteData [09:25:35]Write to MH i2c: 01 00 00 21 14 35 [09:25:35]Write i2c OK [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: 01 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: 01 07 00 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: 01 07 00 21 14 00 00 00 00 00 5D 0C A5 [09:25:35]RasterBufferAndPrint [09:25:35]line [09:25:35]line [09:25:35]line [09:25:35]line [09:25:35]line [09:25:35]written 0, free lines is 3169 [09:25:35]MH_Cut [09:25:35]Write to MH i2c: D1 01 00 28 14 01 0E [09:25:35]Write i2c OK [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: D1 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: D1 01 00 [09:25:35]MH_I2C_Read... [09:25:35]Read from MH i2c: D1 01 00 28 14 00 0D [09:25:35]Write to MH i2c: 01 00 00 29 14 3D [09:25:35]Write i2c OK [09:25:35]MH_I2C_Read... [09:25:35]OFD Sender: No OFD packet to send [09:25:36]*** Cut start [09:25:36]*** Partial cut [09:25:36]*** CUTSNS_PIN = 1 [09:25:36]*** CUTSNS_PIN = 0 [09:25:36]*** Brake cut motor [09:25:37]Read from MH i2c: 01 [09:25:37]MH_I2C_Read... [09:25:37]*** Stop cut motor [09:25:37]*** Cut end [09:25:37]Read from MH i2c: 01 07 00 [09:25:37]MH_I2C_Read... [09:25:37]Read from MH i2c: 01 07 00 29 14 00 00 00 00 00 FF 0F 52 [09:25:37]process_action close_receipt done [09:25:37]requested_data is exist [09:25:37]produce_requested_data [09:25:37]requested_item fm.sn is exist - process it [09:25:37]wFMCommunicate request_size=4 [09:25:37]MH_SAM_APDU [09:25:37]CAPDU: 80 11 00 00 [09:25:37]Write to MH i2c: E2 08 00 2A 14 80 11 00 00 00 00 00 00 B8 [09:25:37]Write i2c OK [09:25:37]MH_I2C_Read... [09:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:37]Read from MH i2c: E2 [09:25:37]MH_I2C_Read... [09:25:37]Read from MH i2c: E2 17 00 [09:25:37]MH_I2C_Read... [09:25:37]Read from MH i2c: E2 17 00 2A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0B [09:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:25:37]wFMCommunicate OK [09:25:37]requested_item fd.num is exist - process it [09:25:37]SAM_PROTO_GetFieldsCounters [09:25:37]wFMCommunicate request_size=4 [09:25:37]MH_SAM_APDU [09:25:37]CAPDU: 80 13 00 00 [09:25:37]Write to MH i2c: E2 08 00 2B 14 80 13 00 00 00 00 00 00 BB [09:25:37]Write i2c OK [09:25:37]MH_I2C_Read... [09:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:37]Read from MH i2c: E2 [09:25:37]MH_I2C_Read... [09:25:37]Read from MH i2c: E2 62 00 [09:25:37]MH_I2C_Read... [09:25:37]Read from MH i2c: E2 62 00 2B 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DB 44 02 00 0E 04 04 00 70 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 DB [09:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DB 44 02 00 0E 04 04 00 70 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 [09:25:37]wFMCommunicate OK [09:25:37]SAM_PROTO_GetFieldsCounters done [09:25:37]requested_item shift.num is exist - process it [09:25:37]requested_item shift.opened is exist - process it [09:25:37]req_shift_opened [09:25:37]FM_GetShiftState [09:25:37]SAM_PROTO_GetShiftState [09:25:37]wFMCommunicate request_size=4 [09:25:37]MH_SAM_APDU [09:25:37]CAPDU: 80 13 01 00 [09:25:37]Write to MH i2c: E2 08 00 2C 14 80 13 01 00 00 00 00 00 BD [09:25:37]Write i2c OK [09:25:37]MH_I2C_Read... [09:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:37]Read from MH i2c: E2 [09:25:37]MH_I2C_Read... [09:25:37]Read from MH i2c: E2 0E 00 [09:25:37]MH_I2C_Read... [09:25:37]Read from MH i2c: E2 0E 00 2C 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 80 [09:25:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:25:37]wFMCommunicate OK [09:25:37]SAM_PROTO_GetShiftState done [09:25:37]FM_GetShiftState done [09:25:37]req_shift_opened done [09:25:37]requested_item shift.open_date is exist - process it [09:25:37]req_shift_open_date [09:25:37]req_shift_open_date done [09:25:37]produce_requested_data done [09:25:37]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148699,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:25:37]process_action_free close_receipt [09:25:37]json_value_free [09:25:37]json_value_free done [09:25:37]process_json_proto returns [09:25:37]Send response to host [09:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148699,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:25:37]free response buf [09:25:37]execute_script done [09:25:37]execute_script returns [09:25:37]free content buf [09:25:37]Sock 9.Close socket [09:25:37]Sock 9.Thread stoped [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:27]accept exits with 7 [09:26:27]New connection [09:26:27]New thread 3066809700 created [09:26:27]Thread 3066666340 joined [09:26:27]Waiting for new connection... [09:26:27] Sock 7.Parse request [09:26:27]Sock 7.Check first char [09:26:27]Sock 7.First char is OK [09:26:27]request: POST /json_proto HTTP/1.0 [09:26:27]Method: POST [09:26:27]URL: /json_proto [09:26:27]Method is POST - this is cgi request [09:26:27]url: /json_proto [09:26:27]query_string will be loaded in cgi processing [09:26:27]execute_cgi json_proto POST (null) [09:26:27]execute_cgi path=json_proto method=POST [09:26:27]POST find Content-Length [09:26:27]Host: 172.17.38.4:8080 [09:26:27]Content-Length: 677 [09:26:27]Content-Type: application/json [09:26:27] [09:26:27]POST finish read [09:26:27]Found Content-Length = 677 [09:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:27]execute_script... [09:26: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)979622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:27]POST & json_proto [09:26:27]process_json_proto [09:26:27]json parsed OK: [09:26:27]protocol is kg_v1.0 [09:26:27]action value=close_receipt [09:26:27]process_action close_receipt [09:26:27]cmd_close_receipt [09:26:27]MH_GetDate [09:26:27]Write to MH i2c: F0 00 00 2D 14 30 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: F0 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: F0 09 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: F0 09 00 2D 14 00 C6 DD 5E 66 CC 51 87 64 A8 [09:26:27]GetLastDocTimeStamp 1717493135 [09:26:27]current date 1717493190 [09:26:27]FM_GetShiftState [09:26:27]SAM_PROTO_GetShiftState [09:26:27]wFMCommunicate request_size=4 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 13 01 00 [09:26:27]Write to MH i2c: E2 08 00 2E 14 80 13 01 00 00 00 00 00 BF [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 0E 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 0E 00 2E 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 82 [09:26:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:26:27]wFMCommunicate OK [09:26:27]SAM_PROTO_GetShiftState done [09:26:27]FM_GetShiftState done [09:26:27]opened in 1717460629 [09:26:27]opened+sec_in_day 1717547029 [09:26:27]quantity*price = 30038 [09:26:27]sum+1 = 30039 [09:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 39 04.06.2024 09:26 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148700 ФПД: 83986645217706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092630&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148700&fm=83986645217706&tin=02508201610067®Number=0000000000092720&sum=30000 [09:26:28]StoreToDocumentArchive [09:26:28]shift 368 fd 148700 [09:26:28]save to /storage/0368/doc_00148700 [09:26:28]save last doc name /storage/0368/doc_00148700 to /storage/kkm_last_doc_name [09:26:28]save OK [09:26:28]Clear old archive folders... [09:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:28]tlvbuf is 015E5940 [09:26:28]SAM_PROTO_ClearQueue [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 09 00 00 [09:26:28]Write to MH i2c: E2 08 00 3B 14 80 09 00 00 00 00 00 00 C1 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 3B 14 00 90 00 C3 [09:26:28]RAPDU: 90 00 [09:26:28]wFMCommunicate OK [09:26:28]SAM_PROTO_ClearQueue done [09:26:28]KKMCreateOFDPacket [09:26:28]OFDProtocolAddRootSTLVToBuf [09:26:28]FM_MakeSignedData [09:26:28]FM_MakeSignedData [09:26:28]SAM_PROTO_SignData [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 0D 01 02 [09:26:28]Write to MH i2c: E2 08 00 3C 14 80 0D 01 02 00 00 00 00 C9 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 3C 14 00 90 00 C4 [09:26:28]RAPDU: 90 00 [09:26:28]wFMCommunicate OK [09:26:28]wFMCommunicate request_size=255 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 C6 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DC 44 02 00 35 04 06 00 4C [09:26:28]Write to MH i2c: E2 02 01 3D 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 C6 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DC 44 02 00 35 04 06 00 4C 00 00 B4 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 03 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 03 00 3D 14 00 90 00 C5 [09:26:29]RAPDU: 90 00 [09:26:29]wFMCommunicate OK [09:26:29]wFMCommunicate request_size=10 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 0D 02 02 05 62 AA 27 71 AA [09:26:29]Write to MH i2c: E2 0D 00 3E 14 80 0D 02 02 05 00 62 AA 27 71 AA 00 00 24 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 03 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 03 00 3E 14 00 90 00 C6 [09:26:29]RAPDU: 90 00 [09:26:29]wFMCommunicate OK [09:26:29]wFMCommunicate request_size=4 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 0D 03 02 [09:26:29]Write to MH i2c: E2 08 00 3F 14 80 0D 03 02 00 00 00 00 CE [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 0B 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 0B 00 3F 14 00 10 84 4E 20 29 EA D7 77 90 00 32 [09:26:29]RAPDU: 10 84 4E 20 29 EA D7 77 90 00 [09:26:29]wFMCommunicate OK [09:26:29]SAM_PROTO_SignData done [09:26:29]FM_MakeSignedData done [09:26:29]CreateOFDProtocolMessage [09:26:29]wFMCommunicate request_size=4 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 11 00 00 [09:26:29]Write to MH i2c: E2 08 00 40 14 80 11 00 00 00 00 00 00 CE [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 17 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 17 00 40 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 21 [09:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:26:29]wFMCommunicate OK [09:26:29]CreateOFDProtocolMessage done [09:26:29]OFDSenderStorePacket 148700 [09:26:29]StoreOFDPacket docnum=148700 [09:26:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 1C 07 01 4C 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 C6 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DC 44 02 00 35 04 06 00 4C 62 AA 27 71 AA 10 84 4E 20 29 EA D7 77 [09:26:29]CheckFolder [09:26:29]dirname=/storage/ofd_packets [09:26:29]CheckFolder done [09:26:29]ProducePacketName [09:26:29]name=ofd_packets/00148700 [09:26:29]NVStorageSaveData ofd_packets/00148700 [09:26:29]File name is /storage/ofd_packets/00148700 [09:26:29]Write 301 bytes [09:26:29]NVStorageSaveData done [09:26:29]OFDSenderStorePacket done [09:26:29]KKMCreateOFDPacket done [09:26:29]NVStorageSaveData kkm_last_timestamp [09:26:29]File name is /storage/kkm_last_timestamp [09:26:29]Write 4 bytes [09:26:29]NVStorageSaveData done [09:26:29]ExternCall_PrintAddStr [09:26:29]wPrintStart [09:26:29]Write to MH i2c: 01 00 00 41 14 55 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 41 14 00 00 00 00 00 FF 0F 6A [09:26:29]RasterBufferAndPrint [09:26:29]line Счет N : (1)979622 [09:26:29]line ИНН: 02508201610067 [09:26:29]line Контрольно-Кассовый Чек [09:26:29]line ПРОДАЖА [09:26:29]line ТРК (МРК, ГНК) : 41 [09:26:29]line Товар: 2710124130 [09:26:29]line Аи-92-К-5 [09:26:29]line 4.490 * 66.90 [09:26:29]line = 300.38 [09:26:29]line НДС 12% НСП 1% [09:26:29]line > о реализуемом товаре [09:26:29]line ОКРУГЛЕНИЕ: -0.38 [09:26:29]line ИТОГО: 300.00 [09:26:29]line Внесено: 300.00 [09:26:29]line СДАЧА: 0.00 [09:26:29]line НСП 1% : 2.66 [09:26:29]line НДС 12% : 31.90 [09:26:29]line Наличными: 300.00 [09:26:29]line Безнал.: 0.00 [09:26:29]line Место: АЗС № 68 "Партнер Нефть" [09:26:29]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:26:29]line СНО: Общий режим [09:26:29]line Чек 39 04.06.2024 09:26 [09:26:29]line Смена: 368 ФФД: 1.0 [09:26:29]line ЗНМ: 0300000035 [09:26:29]line РНМ: 0000000000092720 [09:26:29]line Версия ККМ: 001 [09:26:29]line ФМ: 0000000000875057 [09:26:29]line ФД: 148700 [09:26:29]line ФПД: 83986645217706 [09:26:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092630&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148700&fm=83986645217706&tin=02508201610067®Number=0000000000092720&sum=30000 [09:26:29]OFD Sender: Processing packet 148700 [packets to send 100, broken 99] [09:26:29]ProducePacketName [09:26:29]name=ofd_packets/00148700 [09:26:29]OFD Sender: To server: pG, [09:26:29]CommunicateWithHost lk.salyk.kg:30040 [09:26:29]ConnectInit lk.salyk.kg [09:26:29]written 0, free lines is 4095 [09:26:29]Connected sock=10 [09:26:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 1C 07 01 4C 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 C6 DD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DC 44 02 00 35 04 06 00 4C 62 AA 27 71 AA 10 84 4E 20 29 EA D7 77 [09:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A6 43 47 00 A0 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 38 37 35 30 35 37 10 04 04 00 DC 44 02 00 F4 03 04 00 EA 84 5E 66 B6 04 01 00 00 C7 B2 2D 59 03 2D 2E 52 [09:26:29]CommunicateWithHost err = 0 [09:26:29]CheckOFDResponse [09:26:29]1017 (14) - 77093643461234 [09:26:29]1041 (16) - 0000000000875057 [09:26:29]1040 (4) - 148700 [09:26:29]1012 (4) - 04.06.2024 03:07 [09:26:29]1206 (1) - 0 [09:26:29]OFD Sender: Remove packet 148700 [09:26:29]ProducePacketName [09:26:29]name=ofd_packets/00148700 [09:26:29]NVStorageDeleteData [09:26:29]Write to MH i2c: 01 00 00 6C 14 80 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 6C 14 00 00 00 00 00 60 0C F3 [09:26:29]RasterBufferAndPrint [09:26:29]line [09:26:29]line [09:26:29]line [09:26:29]line [09:26:29]line [09:26:29]written 0, free lines is 3172 [09:26:29]MH_Cut [09:26:29]Write to MH i2c: D1 01 00 73 14 01 59 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: D1 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: D1 01 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: D1 01 00 73 14 00 58 [09:26:29]Write to MH i2c: 01 00 00 74 14 88 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:30]OFD Sender: No OFD packet to send [09:26:31]*** Cut start [09:26:31]*** Partial cut [09:26:31]*** CUTSNS_PIN = 1 [09:26:31]*** CUTSNS_PIN = 0 [09:26:31]*** Brake cut motor [09:26:31]Read from MH i2c: 01 [09:26:31]MH_I2C_Read... [09:26:31]*** Stop cut motor [09:26:31]*** Cut end [09:26:31]Read from MH i2c: 01 07 00 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: 01 07 00 74 14 00 00 00 00 00 FF 0F 9D [09:26:31]process_action close_receipt done [09:26:31]requested_data is exist [09:26:31]produce_requested_data [09:26:31]requested_item fm.sn is exist - process it [09:26:31]wFMCommunicate request_size=4 [09:26:31]MH_SAM_APDU [09:26:31]CAPDU: 80 11 00 00 [09:26:31]Write to MH i2c: E2 08 00 75 14 80 11 00 00 00 00 00 00 03 [09:26:31]Write i2c OK [09:26:31]MH_I2C_Read... [09:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:31]Read from MH i2c: E2 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 17 00 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 17 00 75 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 56 [09:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:26:31]wFMCommunicate OK [09:26:31]requested_item fd.num is exist - process it [09:26:31]SAM_PROTO_GetFieldsCounters [09:26:31]wFMCommunicate request_size=4 [09:26:31]MH_SAM_APDU [09:26:31]CAPDU: 80 13 00 00 [09:26:31]Write to MH i2c: E2 08 00 76 14 80 13 00 00 00 00 00 00 06 [09:26:31]Write i2c OK [09:26:31]MH_I2C_Read... [09:26:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:32]Read from MH i2c: E2 [09:26:32]MH_I2C_Read... [09:26:32]Read from MH i2c: E2 62 00 [09:26:32]MH_I2C_Read... [09:26:32]Read from MH i2c: E2 62 00 76 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DC 44 02 00 0E 04 04 00 70 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 2A [09:26:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DC 44 02 00 0E 04 04 00 70 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 [09:26:32]wFMCommunicate OK [09:26:32]SAM_PROTO_GetFieldsCounters done [09:26:32]requested_item shift.num is exist - process it [09:26:32]requested_item shift.opened is exist - process it [09:26:32]req_shift_opened [09:26:32]FM_GetShiftState [09:26:32]SAM_PROTO_GetShiftState [09:26:32]wFMCommunicate request_size=4 [09:26:32]MH_SAM_APDU [09:26:32]CAPDU: 80 13 01 00 [09:26:32]Write to MH i2c: E2 08 00 77 14 80 13 01 00 00 00 00 00 08 [09:26:32]Write i2c OK [09:26:32]MH_I2C_Read... [09:26:32]Read from MH i2c: E2 [09:26:32]MH_I2C_Read... [09:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:32]Read from MH i2c: E2 0E 00 [09:26:32]MH_I2C_Read... [09:26:32]Read from MH i2c: E2 0E 00 77 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CB [09:26:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:26:32]wFMCommunicate OK [09:26:32]SAM_PROTO_GetShiftState done [09:26:32]FM_GetShiftState done [09:26:32]req_shift_opened done [09:26:32]requested_item shift.open_date is exist - process it [09:26:32]req_shift_open_date [09:26:32]req_shift_open_date done [09:26:32]produce_requested_data done [09:26:32]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148700,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:26:32]process_action_free close_receipt [09:26:32]json_value_free [09:26:32]json_value_free done [09:26:32]process_json_proto returns [09:26:32]Send response to host [09:26:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148700,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:26:32]free response buf [09:26:32]execute_script done [09:26:32]execute_script returns [09:26:32]free content buf [09:26:32]Sock 7.Close socket [09:26:32]Sock 7.Thread stoped [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:32]accept exits with 9 [09:27:32]New connection [09:27:32]New thread 3066666340 created [09:27:32]Thread 3066809700 joined [09:27:32]Waiting for new connection... [09:27:32] Sock 9.Parse request [09:27:32]Sock 9.Check first char [09:27:32]Sock 9.First char is OK [09:27:32]request: POST /json_proto HTTP/1.0 [09:27:32]Method: POST [09:27:32]URL: /json_proto [09:27:32]Method is POST - this is cgi request [09:27:32]url: /json_proto [09:27:32]query_string will be loaded in cgi processing [09:27:32]execute_cgi json_proto POST (null) [09:27:32]execute_cgi path=json_proto method=POST [09:27:32]POST find Content-Length [09:27:32]Host: 172.17.38.4:8080 [09:27:32]Content-Length: 677 [09:27:32]Content-Type: application/json [09:27:32] [09:27:32]POST finish read [09:27:32]Found Content-Length = 677 [09:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:32]execute_script... [09:27: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)979623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:32]POST & json_proto [09:27:32]process_json_proto [09:27:32]json parsed OK: [09:27:32]protocol is kg_v1.0 [09:27:32]action value=close_receipt [09:27:32]process_action close_receipt [09:27:32]cmd_close_receipt [09:27:32]MH_GetDate [09:27:32]Write to MH i2c: F0 00 00 78 14 7B [09:27:32]Write i2c OK [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: F0 [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: F0 09 00 [09:27:32]MH_I2C_Read... [09:27:32]Read from MH i2c: F0 09 00 78 14 00 07 DE 5E 66 CC 51 87 64 35 [09:27:32]GetLastDocTimeStamp 1717493190 [09:27:32]current date 1717493255 [09:27:32]FM_GetShiftState [09:27:32]SAM_PROTO_GetShiftState [09:27:32]wFMCommunicate request_size=4 [09:27:32]MH_SAM_APDU [09:27:32]CAPDU: 80 13 01 00 [09:27:32]Write to MH i2c: E2 08 00 79 14 80 13 01 00 00 00 00 00 0A [09:27:32]Write i2c OK [09:27:32]MH_I2C_Read... [09:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:33]Read from MH i2c: E2 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 0E 00 [09:27:33]MH_I2C_Read... [09:27:33]Read from MH i2c: E2 0E 00 79 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CD [09:27:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:27:33]wFMCommunicate OK [09:27:33]SAM_PROTO_GetShiftState done [09:27:33]FM_GetShiftState done [09:27:33]opened in 1717460629 [09:27:33]opened+sec_in_day 1717547029 [09:27:33]quantity*price = 17059 [09:27:33]sum+1 = 17061 [09:27:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.12 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 40 04.06.2024 09:27 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148701 ФПД: 165689017727547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092735&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148701&fm=165689017727547&tin=02508201610067®Number=0000000000092720&sum=17000 [09:27:34]StoreToDocumentArchive [09:27:34]shift 368 fd 148701 [09:27:34]save to /storage/0368/doc_00148701 [09:27:34]save last doc name /storage/0368/doc_00148701 to /storage/kkm_last_doc_name [09:27:34]save OK [09:27:34]Clear old archive folders... [09:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:34]tlvbuf is 015A7980 [09:27:34]SAM_PROTO_ClearQueue [09:27:34]wFMCommunicate request_size=4 [09:27:34]MH_SAM_APDU [09:27:34]CAPDU: 80 09 00 00 [09:27:34]Write to MH i2c: E2 08 00 86 14 80 09 00 00 00 00 00 00 0C [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 86 14 00 90 00 0E [09:27:34]RAPDU: 90 00 [09:27:34]wFMCommunicate OK [09:27:34]SAM_PROTO_ClearQueue done [09:27:34]KKMCreateOFDPacket [09:27:34]OFDProtocolAddRootSTLVToBuf [09:27:34]FM_MakeSignedData [09:27:34]FM_MakeSignedData [09:27:34]SAM_PROTO_SignData [09:27:34]wFMCommunicate request_size=4 [09:27:34]MH_SAM_APDU [09:27:34]CAPDU: 80 0D 01 02 [09:27:34]Write to MH i2c: E2 08 00 87 14 80 0D 01 02 00 00 00 00 14 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 87 14 00 90 00 0F [09:27:34]RAPDU: 90 00 [09:27:34]wFMCommunicate OK [09:27:34]wFMCommunicate request_size=255 [09:27:34]MH_SAM_APDU [09:27:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 07 DE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DD 44 02 00 35 04 06 00 96 [09:27:34]Write to MH i2c: E2 02 01 88 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 07 DE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DD 44 02 00 35 04 06 00 96 00 00 3B [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 88 14 00 90 00 10 [09:27:34]RAPDU: 90 00 [09:27:34]wFMCommunicate OK [09:27:34]wFMCommunicate request_size=10 [09:27:34]MH_SAM_APDU [09:27:34]CAPDU: 80 0D 02 02 05 B1 7B 0B 7A 3B [09:27:34]Write to MH i2c: E2 0D 00 89 14 80 0D 02 02 05 00 B1 7B 0B 7A 3B 00 00 0D [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 03 00 89 14 00 90 00 11 [09:27:34]RAPDU: 90 00 [09:27:34]wFMCommunicate OK [09:27:34]wFMCommunicate request_size=4 [09:27:34]MH_SAM_APDU [09:27:34]CAPDU: 80 0D 03 02 [09:27:34]Write to MH i2c: E2 08 00 8A 14 80 0D 03 02 00 00 00 00 19 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 0B 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 0B 00 8A 14 00 E8 C6 14 44 E2 5D 36 4B 90 00 E0 [09:27:34]RAPDU: E8 C6 14 44 E2 5D 36 4B 90 00 [09:27:34]wFMCommunicate OK [09:27:34]SAM_PROTO_SignData done [09:27:34]FM_MakeSignedData done [09:27:34]CreateOFDProtocolMessage [09:27:34]wFMCommunicate request_size=4 [09:27:34]MH_SAM_APDU [09:27:34]CAPDU: 80 11 00 00 [09:27:34]Write to MH i2c: E2 08 00 8B 14 80 11 00 00 00 00 00 00 19 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:34]Read from MH i2c: E2 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 17 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: E2 17 00 8B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6C [09:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:27:34]wFMCommunicate OK [09:27:34]CreateOFDProtocolMessage done [09:27:34]OFDSenderStorePacket 148701 [09:27:34]StoreOFDPacket docnum=148701 [09:27:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C4 F6 07 01 0F 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 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 07 DE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DD 44 02 00 35 04 06 00 96 B1 7B 0B 7A 3B E8 C6 14 44 E2 5D 36 4B [09:27:34]CheckFolder [09:27:34]dirname=/storage/ofd_packets [09:27:34]CheckFolder done [09:27:34]ProducePacketName [09:27:34]name=ofd_packets/00148701 [09:27:34]NVStorageSaveData ofd_packets/00148701 [09:27:34]File name is /storage/ofd_packets/00148701 [09:27:34]Write 301 bytes [09:27:34]NVStorageSaveData done [09:27:34]OFDSenderStorePacket done [09:27:34]KKMCreateOFDPacket done [09:27:34]NVStorageSaveData kkm_last_timestamp [09:27:34]File name is /storage/kkm_last_timestamp [09:27:34]Write 4 bytes [09:27:34]NVStorageSaveData done [09:27:34]ExternCall_PrintAddStr [09:27:34]wPrintStart [09:27:34]Write to MH i2c: 01 00 00 8C 14 A0 [09:27:34]Write i2c OK [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: 01 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: 01 07 00 [09:27:34]MH_I2C_Read... [09:27:34]Read from MH i2c: 01 07 00 8C 14 00 00 00 00 00 FF 0F B5 [09:27:34]RasterBufferAndPrint [09:27:34]line Счет N : (1)979623 [09:27:34]line ИНН: 02508201610067 [09:27:34]line Контрольно-Кассовый Чек [09:27:34]line ПРОДАЖА [09:27:34]line ТРК (МРК, ГНК) : 31 [09:27:34]line Товар: 2710124130 [09:27:34]line Аи-92-К-5 [09:27:34]line 2.550 * 66.90 [09:27:34]line = 170.60 [09:27:34]line НДС 12% НСП 1% [09:27:34]line > о реализуемом товаре [09:27:34]line ОКРУГЛЕНИЕ: -0.60 [09:27:34]line ИТОГО: 170.00 [09:27:34]line Внесено: 170.00 [09:27:34]line СДАЧА: 0.00 [09:27:34]line НСП 1% : 1.51 [09:27:34]line НДС 12% : 18.12 [09:27:34]line Наличными: 170.00 [09:27:34]line Безнал.: 0.00 [09:27:34]line Место: АЗС № 68 "Партнер Нефть" [09:27:34]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:27:34]line СНО: Общий режим [09:27:34]line Чек 40 04.06.2024 09:27 [09:27:34]line Смена: 368 ФФД: 1.0 [09:27:34]line ЗНМ: 0300000035 [09:27:34]line РНМ: 0000000000092720 [09:27:34]line Версия ККМ: 001 [09:27:34]line ФМ: 0000000000875057 [09:27:34]line ФД: 148701 [09:27:34]line ФПД: 165689017727547 [09:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092735&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148701&fm=165689017727547&tin=02508201610067®Number=0000000000092720&sum=17000 [09:27:35]OFD Sender: Processing packet 148701 [packets to send 100, broken 99] [09:27:35]ProducePacketName [09:27:35]name=ofd_packets/00148701 [09:27:35]OFD Sender: To server: pG, [09:27:35]CommunicateWithHost lk.salyk.kg:30040 [09:27:35]ConnectInit lk.salyk.kg [09:27:35]written 0, free lines is 4095 [09:27:35]Write to MH i2c: 01 00 00 B7 14 CB [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: 01 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: 01 07 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: 01 07 00 B7 14 00 00 00 00 00 5B 0C 39 [09:27:35]RasterBufferAndPrint [09:27:35]line [09:27:35]line [09:27:35]line [09:27:35]line [09:27:35]line [09:27:35]written 0, free lines is 3166 [09:27:35]MH_Cut [09:27:35]Write to MH i2c: D1 01 00 BE 14 01 A4 [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: D1 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: D1 01 00 [09:27:35]MH_I2C_Read... [09:27:35]Read from MH i2c: D1 01 00 BE 14 00 A3 [09:27:35]Write to MH i2c: 01 00 00 BF 14 D3 [09:27:35]Write i2c OK [09:27:35]MH_I2C_Read... [09:27:36]Connected sock=10 [09:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C4 F6 07 01 0F 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 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 07 DE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DD 44 02 00 35 04 06 00 96 B1 7B 0B 7A 3B E8 C6 14 44 E2 5D 36 4B [09:27:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C5 CB 47 00 8B C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DD 44 02 00 F4 03 04 00 2D 85 5E 66 B6 04 01 00 00 D5 A5 3D BD 0E 71 86 9A [09:27:36]CommunicateWithHost err = 0 [09:27:36]CheckOFDResponse [09:27:36]1017 (14) - 77093643461234 [09:27:36]1041 (16) - 0000000000875057 [09:27:36]1040 (4) - 148701 [09:27:36]1012 (4) - 04.06.2024 03:08 [09:27:36]1206 (1) - 0 [09:27:36]OFD Sender: Remove packet 148701 [09:27:36]ProducePacketName [09:27:36]name=ofd_packets/00148701 [09:27:36]NVStorageDeleteData [09:27:36]*** Cut start [09:27:36]*** Partial cut [09:27:36]*** CUTSNS_PIN = 1 [09:27:36]*** CUTSNS_PIN = 0 [09:27:36]OFD Sender: No OFD packet to send [09:27:37]*** Brake cut motor [09:27:37]Read from MH i2c: 01 [09:27:37]MH_I2C_Read... [09:27:37]*** Stop cut motor [09:27:37]*** Cut end [09:27:37]Read from MH i2c: 01 07 00 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: 01 07 00 BF 14 00 00 00 00 00 FF 0F E8 [09:27:37]process_action close_receipt done [09:27:37]requested_data is exist [09:27:37]produce_requested_data [09:27:37]requested_item fm.sn is exist - process it [09:27:37]wFMCommunicate request_size=4 [09:27:37]MH_SAM_APDU [09:27:37]CAPDU: 80 11 00 00 [09:27:37]Write to MH i2c: E2 08 00 C0 14 80 11 00 00 00 00 00 00 4E [09:27:37]Write i2c OK [09:27:37]MH_I2C_Read... [09:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:37]Read from MH i2c: E2 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 17 00 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 17 00 C0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A1 [09:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:27:37]wFMCommunicate OK [09:27:37]requested_item fd.num is exist - process it [09:27:37]SAM_PROTO_GetFieldsCounters [09:27:37]wFMCommunicate request_size=4 [09:27:37]MH_SAM_APDU [09:27:37]CAPDU: 80 13 00 00 [09:27:37]Write to MH i2c: E2 08 00 C1 14 80 13 00 00 00 00 00 00 51 [09:27:37]Write i2c OK [09:27:37]MH_I2C_Read... [09:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:37]Read from MH i2c: E2 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 62 00 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 62 00 C1 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DD 44 02 00 0E 04 04 00 70 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 79 [09:27:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DD 44 02 00 0E 04 04 00 70 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 [09:27:37]wFMCommunicate OK [09:27:37]SAM_PROTO_GetFieldsCounters done [09:27:37]requested_item shift.num is exist - process it [09:27:37]requested_item shift.opened is exist - process it [09:27:37]req_shift_opened [09:27:37]FM_GetShiftState [09:27:37]SAM_PROTO_GetShiftState [09:27:37]wFMCommunicate request_size=4 [09:27:37]MH_SAM_APDU [09:27:37]CAPDU: 80 13 01 00 [09:27:37]Write to MH i2c: E2 08 00 C2 14 80 13 01 00 00 00 00 00 53 [09:27:37]Write i2c OK [09:27:37]MH_I2C_Read... [09:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:37]Read from MH i2c: E2 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 0E 00 [09:27:37]MH_I2C_Read... [09:27:37]Read from MH i2c: E2 0E 00 C2 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 16 [09:27:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:27:37]wFMCommunicate OK [09:27:37]SAM_PROTO_GetShiftState done [09:27:37]FM_GetShiftState done [09:27:37]req_shift_opened done [09:27:37]requested_item shift.open_date is exist - process it [09:27:37]req_shift_open_date [09:27:37]req_shift_open_date done [09:27:37]produce_requested_data done [09:27:37]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148701,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:27:37]process_action_free close_receipt [09:27:37]json_value_free [09:27:37]json_value_free done [09:27:37]process_json_proto returns [09:27:37]Send response to host [09:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148701,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:27:37]free response buf [09:27:37]execute_script done [09:27:37]execute_script returns [09:27:37]free content buf [09:27:37]Sock 9.Close socket [09:27:37]Sock 9.Thread stoped [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:56]accept exits with 7 [09:29:56]New connection [09:29:56]New thread 3066809700 created [09:29:56]Thread 3066666340 joined [09:29:56]Waiting for new connection... [09:29:56] Sock 7.Parse request [09:29:56]Sock 7.Check first char [09:29:56]Sock 7.First char is OK [09:29:56]request: POST /json_proto HTTP/1.0 [09:29:56]Method: POST [09:29:56]URL: /json_proto [09:29:56]Method is POST - this is cgi request [09:29:56]url: /json_proto [09:29:56]query_string will be loaded in cgi processing [09:29:56]execute_cgi json_proto POST (null) [09:29:56]execute_cgi path=json_proto method=POST [09:29:56]POST find Content-Length [09:29:56]Host: 172.17.38.4:8080 [09:29:56]Content-Length: 677 [09:29:56]Content-Type: application/json [09:29:56] [09:29:56]POST finish read [09:29:56]Found Content-Length = 677 [09:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:56]execute_script... [09:29: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)979624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:56]POST & json_proto [09:29:56]process_json_proto [09:29:56]json parsed OK: [09:29:56]protocol is kg_v1.0 [09:29:56]action value=close_receipt [09:29:56]process_action close_receipt [09:29:56]cmd_close_receipt [09:29:56]MH_GetDate [09:29:56]Write to MH i2c: F0 00 00 C3 14 C6 [09:29:56]Write i2c OK [09:29:56]MH_I2C_Read... [09:29:56]Read from MH i2c: F0 [09:29:56]MH_I2C_Read... [09:29:56]Read from MH i2c: F0 09 00 [09:29:56]MH_I2C_Read... [09:29:56]Read from MH i2c: F0 09 00 C3 14 00 97 DE 5E 66 CC 51 87 64 10 [09:29:56]GetLastDocTimeStamp 1717493255 [09:29:56]current date 1717493399 [09:29:56]FM_GetShiftState [09:29:56]SAM_PROTO_GetShiftState [09:29:56]wFMCommunicate request_size=4 [09:29:56]MH_SAM_APDU [09:29:56]CAPDU: 80 13 01 00 [09:29:56]Write to MH i2c: E2 08 00 C4 14 80 13 01 00 00 00 00 00 55 [09:29:56]Write i2c OK [09:29:56]MH_I2C_Read... [09:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:56]Read from MH i2c: E2 [09:29:56]MH_I2C_Read... [09:29:56]Read from MH i2c: E2 0E 00 [09:29:56]MH_I2C_Read... [09:29:56]Read from MH i2c: E2 0E 00 C4 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 18 [09:29:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:29:56]wFMCommunicate OK [09:29:56]SAM_PROTO_GetShiftState done [09:29:56]FM_GetShiftState done [09:29:56]opened in 1717460629 [09:29:56]opened+sec_in_day 1717547029 [09:29:56]quantity*price = 30038 [09:29:56]sum+1 = 30039 [09:29: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 41 04.06.2024 09:29 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148702 ФПД: 179351839700026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092959&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148702&fm=179351839700026&tin=02508201610067®Number=0000000000092720&sum=30000 [09:29:58]StoreToDocumentArchive [09:29:58]shift 368 fd 148702 [09:29:58]save to /storage/0368/doc_00148702 [09:29:58]save last doc name /storage/0368/doc_00148702 to /storage/kkm_last_doc_name [09:29:58]save OK [09:29:58]Clear old archive folders... [09:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:58]tlvbuf is 015AE840 [09:29:58]SAM_PROTO_ClearQueue [09:29:58]wFMCommunicate request_size=4 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 09 00 00 [09:29:58]Write to MH i2c: E2 08 00 D1 14 80 09 00 00 00 00 00 00 57 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 D1 14 00 90 00 59 [09:29:58]RAPDU: 90 00 [09:29:58]wFMCommunicate OK [09:29:58]SAM_PROTO_ClearQueue done [09:29:58]KKMCreateOFDPacket [09:29:58]OFDProtocolAddRootSTLVToBuf [09:29:58]FM_MakeSignedData [09:29:58]FM_MakeSignedData [09:29:58]SAM_PROTO_SignData [09:29:58]wFMCommunicate request_size=4 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 0D 01 02 [09:29:58]Write to MH i2c: E2 08 00 D2 14 80 0D 01 02 00 00 00 00 5F [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 D2 14 00 90 00 5A [09:29:58]RAPDU: 90 00 [09:29:58]wFMCommunicate OK [09:29:58]wFMCommunicate request_size=255 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 97 DE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DE 44 02 00 35 04 06 00 A3 [09:29:58]Write to MH i2c: E2 02 01 D3 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 97 DE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DE 44 02 00 35 04 06 00 A3 00 00 77 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 D3 14 00 90 00 5B [09:29:58]RAPDU: 90 00 [09:29:58]wFMCommunicate OK [09:29:58]wFMCommunicate request_size=10 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 0D 02 02 05 1E 9A B1 F4 3A [09:29:58]Write to MH i2c: E2 0D 00 D4 14 80 0D 02 02 05 00 1E 9A B1 F4 3A 00 00 03 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 03 00 D4 14 00 90 00 5C [09:29:58]RAPDU: 90 00 [09:29:58]wFMCommunicate OK [09:29:58]wFMCommunicate request_size=4 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 0D 03 02 [09:29:58]Write to MH i2c: E2 08 00 D5 14 80 0D 03 02 00 00 00 00 64 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 0B 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 0B 00 D5 14 00 9F 3C B3 22 B1 7F F7 1D 90 00 59 [09:29:58]RAPDU: 9F 3C B3 22 B1 7F F7 1D 90 00 [09:29:58]wFMCommunicate OK [09:29:58]SAM_PROTO_SignData done [09:29:58]FM_MakeSignedData done [09:29:58]CreateOFDProtocolMessage [09:29:58]wFMCommunicate request_size=4 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 11 00 00 [09:29:58]Write to MH i2c: E2 08 00 D6 14 80 11 00 00 00 00 00 00 64 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 17 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 17 00 D6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B7 [09:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:29:58]wFMCommunicate OK [09:29:58]CreateOFDProtocolMessage done [09:29:58]OFDSenderStorePacket 148702 [09:29:58]StoreOFDPacket docnum=148702 [09:29:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 81 6E 07 01 2F BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 97 DE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DE 44 02 00 35 04 06 00 A3 1E 9A B1 F4 3A 9F 3C B3 22 B1 7F F7 1D [09:29:58]CheckFolder [09:29:58]dirname=/storage/ofd_packets [09:29:58]CheckFolder done [09:29:58]ProducePacketName [09:29:58]name=ofd_packets/00148702 [09:29:58]NVStorageSaveData ofd_packets/00148702 [09:29:58]File name is /storage/ofd_packets/00148702 [09:29:58]Write 301 bytes [09:29:58]NVStorageSaveData done [09:29:58]OFDSenderStorePacket done [09:29:58]KKMCreateOFDPacket done [09:29:58]NVStorageSaveData kkm_last_timestamp [09:29:58]File name is /storage/kkm_last_timestamp [09:29:58]Write 4 bytes [09:29:58]NVStorageSaveData done [09:29:58]ExternCall_PrintAddStr [09:29:58]wPrintStart [09:29:58]Write to MH i2c: 01 00 00 D7 14 EB [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: 01 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: 01 07 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: 01 07 00 D7 14 00 00 00 00 00 FF 0F 00 [09:29:58]RasterBufferAndPrint [09:29:58]line Счет N : (1)979624 [09:29:58]line ИНН: 02508201610067 [09:29:58]line Контрольно-Кассовый Чек [09:29:58]line ПРОДАЖА [09:29:58]line ТРК (МРК, ГНК) : 41 [09:29:58]line Товар: 2710124130 [09:29:58]line Аи-92-К-5 [09:29:58]line 4.490 * 66.90 [09:29:58]line = 300.38 [09:29:58]line НДС 12% НСП 1% [09:29:58]line > о реализуемом товаре [09:29:58]line ОКРУГЛЕНИЕ: -0.38 [09:29:58]line ИТОГО: 300.00 [09:29:58]line Внесено: 300.00 [09:29:58]line СДАЧА: 0.00 [09:29:58]line НСП 1% : 2.66 [09:29:58]line НДС 12% : 31.90 [09:29:58]line Наличными: 300.00 [09:29:58]line Безнал.: 0.00 [09:29:58]line Место: АЗС № 68 "Партнер Нефть" [09:29:58]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:29:58]line СНО: Общий режим [09:29:58]line Чек 41 04.06.2024 09:29 [09:29:58]line Смена: 368 ФФД: 1.0 [09:29:58]line ЗНМ: 0300000035 [09:29:58]line РНМ: 0000000000092720 [09:29:58]line Версия ККМ: 001 [09:29:58]line ФМ: 0000000000875057 [09:29:58]line ФД: 148702 [09:29:58]line ФПД: 179351839700026 [09:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092959&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148702&fm=179351839700026&tin=02508201610067®Number=0000000000092720&sum=30000 [09:29:58]OFD Sender: Processing packet 148702 [packets to send 100, broken 99] [09:29:58]ProducePacketName [09:29:58]name=ofd_packets/00148702 [09:29:58]OFD Sender: To server: pG, [09:29:58]CommunicateWithHost lk.salyk.kg:30040 [09:29:58]ConnectInit lk.salyk.kg [09:29:58]written 0, free lines is 4095 [09:29:58]Connected sock=10 [09:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 81 6E 07 01 2F BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 97 DE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DE 44 02 00 35 04 06 00 A3 1E 9A B1 F4 3A 9F 3C B3 22 B1 7F F7 1D [09:29:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 84 52 47 00 9A 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 38 37 35 30 35 37 10 04 04 00 DE 44 02 00 F4 03 04 00 BB 85 5E 66 B6 04 01 00 00 9D 2D F1 31 2D 44 F8 1D [09:29:59]CommunicateWithHost err = 0 [09:29:59]CheckOFDResponse [09:29:59]1017 (14) - 77093643461234 [09:29:59]1041 (16) - 0000000000875057 [09:29:59]1040 (4) - 148702 [09:29:59]1012 (4) - 04.06.2024 03:10 [09:29:59]1206 (1) - 0 [09:29:59]OFD Sender: Remove packet 148702 [09:29:59]ProducePacketName [09:29:59]name=ofd_packets/00148702 [09:29:59]NVStorageDeleteData [09:29:59]Write to MH i2c: 01 00 00 02 15 17 [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 07 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: 01 07 00 02 15 00 00 00 00 00 65 0C 8F [09:29:59]RasterBufferAndPrint [09:29:59]line [09:29:59]line [09:29:59]line [09:29:59]line [09:29:59]line [09:29:59]written 0, free lines is 3176 [09:29:59]MH_Cut [09:29:59]Write to MH i2c: D1 01 00 09 15 01 F0 [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: D1 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: D1 01 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: D1 01 00 09 15 00 EF [09:29:59]Write to MH i2c: 01 00 00 0A 15 1F [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]OFD Sender: No OFD packet to send [09:30:00]*** Cut start [09:30:00]*** Partial cut [09:30:00]*** CUTSNS_PIN = 1 [09:30:00]*** CUTSNS_PIN = 0 [09:30:00]*** Brake cut motor [09:30:01]Read from MH i2c: 01 [09:30:01]*** Stop cut motor [09:30:01]*** Cut end [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: 01 07 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 FF 0F 34 [09:30:01]process_action close_receipt done [09:30:01]requested_data is exist [09:30:01]produce_requested_data [09:30:01]requested_item fm.sn is exist - process it [09:30:01]wFMCommunicate request_size=4 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 11 00 00 [09:30:01]Write to MH i2c: E2 08 00 0B 15 80 11 00 00 00 00 00 00 9A [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 17 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 17 00 0B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 ED [09:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:30:01]wFMCommunicate OK [09:30:01]requested_item fd.num is exist - process it [09:30:01]SAM_PROTO_GetFieldsCounters [09:30:01]wFMCommunicate request_size=4 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 13 00 00 [09:30:01]Write to MH i2c: E2 08 00 0C 15 80 13 00 00 00 00 00 00 9D [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 62 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 62 00 0C 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DE 44 02 00 0E 04 04 00 70 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 C9 [09:30:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DE 44 02 00 0E 04 04 00 70 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 [09:30:01]wFMCommunicate OK [09:30:01]SAM_PROTO_GetFieldsCounters done [09:30:01]requested_item shift.num is exist - process it [09:30:01]requested_item shift.opened is exist - process it [09:30:01]req_shift_opened [09:30:01]FM_GetShiftState [09:30:01]SAM_PROTO_GetShiftState [09:30:01]wFMCommunicate request_size=4 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 13 01 00 [09:30:01]Write to MH i2c: E2 08 00 0D 15 80 13 01 00 00 00 00 00 9F [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 0E 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 0E 00 0D 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 62 [09:30:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:30:01]wFMCommunicate OK [09:30:01]SAM_PROTO_GetShiftState done [09:30:01]FM_GetShiftState done [09:30:01]req_shift_opened done [09:30:01]requested_item shift.open_date is exist - process it [09:30:01]req_shift_open_date [09:30:01]req_shift_open_date done [09:30:01]produce_requested_data done [09:30:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148702,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:30:01]process_action_free close_receipt [09:30:01]json_value_free [09:30:01]json_value_free done [09:30:01]process_json_proto returns [09:30:01]Send response to host [09:30:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148702,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:30:01]free response buf [09:30:01]execute_script done [09:30:01]execute_script returns [09:30:01]free content buf [09:30:01]Sock 7.Close socket [09:30:01]Sock 7.Thread stoped [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:36]accept exits with 9 [09:33:36]New connection [09:33:36]New thread 3066666340 created [09:33:36]Thread 3066809700 joined [09:33:36]Waiting for new connection... [09:33:36] Sock 9.Parse request [09:33:36]Sock 9.Check first char [09:33:36]Sock 9.First char is OK [09:33:36]request: POST /json_proto HTTP/1.0 [09:33:36]Method: POST [09:33:36]URL: /json_proto [09:33:36]Method is POST - this is cgi request [09:33:36]url: /json_proto [09:33:36]query_string will be loaded in cgi processing [09:33:36]execute_cgi json_proto POST (null) [09:33:36]execute_cgi path=json_proto method=POST [09:33:36]POST find Content-Length [09:33:36]Host: 172.17.38.4:8080 [09:33:36]Content-Length: 682 [09:33:36]Content-Type: application/json [09:33:36] [09:33:36]POST finish read [09:33:36]Found Content-Length = 682 [09:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:36]execute_script... [09:33: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)979625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:36]POST & json_proto [09:33:36]process_json_proto [09:33:36]json parsed OK: [09:33:36]protocol is kg_v1.0 [09:33:36]action value=close_receipt [09:33:36]process_action close_receipt [09:33:36]cmd_close_receipt [09:33:36]MH_GetDate [09:33:36]Write to MH i2c: F0 00 00 0E 15 12 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: F0 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: F0 09 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: F0 09 00 0E 15 00 72 DF 5E 66 CC 51 87 64 38 [09:33:36]GetLastDocTimeStamp 1717493399 [09:33:36]current date 1717493618 [09:33:36]FM_GetShiftState [09:33:36]SAM_PROTO_GetShiftState [09:33:36]wFMCommunicate request_size=4 [09:33:36]MH_SAM_APDU [09:33:36]CAPDU: 80 13 01 00 [09:33:36]Write to MH i2c: E2 08 00 0F 15 80 13 01 00 00 00 00 00 A1 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:36]Read from MH i2c: E2 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 0E 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 0E 00 0F 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 64 [09:33:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:33:36]wFMCommunicate OK [09:33:36]SAM_PROTO_GetShiftState done [09:33:36]FM_GetShiftState done [09:33:36]opened in 1717460629 [09:33:36]opened+sec_in_day 1717547029 [09:33:36]quantity*price = 100015 [09:33:36]sum+1 = 100017 [09:33:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 42 04.06.2024 09:33 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148703 ФПД: 788217982828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093338&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148703&fm=788217982828&tin=02508201610067®Number=0000000000092720&sum=100000 [09:33:37]StoreToDocumentArchive [09:33:37]shift 368 fd 148703 [09:33:37]save to /storage/0368/doc_00148703 [09:33:37]save last doc name /storage/0368/doc_00148703 to /storage/kkm_last_doc_name [09:33:37]save OK [09:33:37]Clear old archive folders... [09:33:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:37]tlvbuf is 015AE2C0 [09:33:37]SAM_PROTO_ClearQueue [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 09 00 00 [09:33:37]Write to MH i2c: E2 08 00 1C 15 80 09 00 00 00 00 00 00 A3 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [09:33:37]RAPDU: 90 00 [09:33:37]wFMCommunicate OK [09:33:37]SAM_PROTO_ClearQueue done [09:33:37]KKMCreateOFDPacket [09:33:37]OFDProtocolAddRootSTLVToBuf [09:33:37]FM_MakeSignedData [09:33:37]FM_MakeSignedData [09:33:37]SAM_PROTO_SignData [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 0D 01 02 [09:33:37]Write to MH i2c: E2 08 00 1D 15 80 0D 01 02 00 00 00 00 AB [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [09:33:37]RAPDU: 90 00 [09:33:37]wFMCommunicate OK [09:33:37]wFMCommunicate request_size=255 [09:33:37]MH_SAM_APDU [09:33: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 72 DF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DF 44 02 00 35 04 06 00 00 [09:33:37]Write to MH i2c: E2 02 01 1E 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 72 DF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DF 44 02 00 35 04 06 00 00 00 00 04 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 1E 15 00 90 00 A7 [09:33:37]RAPDU: 90 00 [09:33:37]wFMCommunicate OK [09:33:37]wFMCommunicate request_size=10 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 0D 02 02 05 B7 85 73 EF 6C [09:33:37]Write to MH i2c: E2 0D 00 1F 15 80 0D 02 02 05 00 B7 85 73 EF 6C 00 00 C2 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 1F 15 00 90 00 A8 [09:33:37]RAPDU: 90 00 [09:33:37]wFMCommunicate OK [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 0D 03 02 [09:33:37]Write to MH i2c: E2 08 00 20 15 80 0D 03 02 00 00 00 00 B0 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 0B 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 0B 00 20 15 00 E3 F8 9E 6F B4 8C 18 49 90 00 3A [09:33:37]RAPDU: E3 F8 9E 6F B4 8C 18 49 90 00 [09:33:37]wFMCommunicate OK [09:33:37]SAM_PROTO_SignData done [09:33:37]FM_MakeSignedData done [09:33:37]CreateOFDProtocolMessage [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 11 00 00 [09:33:37]Write to MH i2c: E2 08 00 21 15 80 11 00 00 00 00 00 00 B0 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 17 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 17 00 21 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 03 [09:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:33:37]wFMCommunicate OK [09:33:37]CreateOFDProtocolMessage done [09:33:37]OFDSenderStorePacket 148703 [09:33:37]StoreOFDPacket docnum=148703 [09:33:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CA FD 07 01 58 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 72 DF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DF 44 02 00 35 04 06 00 00 B7 85 73 EF 6C E3 F8 9E 6F B4 8C 18 49 [09:33:37]CheckFolder [09:33:37]dirname=/storage/ofd_packets [09:33:37]CheckFolder done [09:33:37]ProducePacketName [09:33:37]name=ofd_packets/00148703 [09:33:37]NVStorageSaveData ofd_packets/00148703 [09:33:37]File name is /storage/ofd_packets/00148703 [09:33:37]Write 301 bytes [09:33:37]NVStorageSaveData done [09:33:37]OFDSenderStorePacket done [09:33:37]KKMCreateOFDPacket done [09:33:37]NVStorageSaveData kkm_last_timestamp [09:33:37]File name is /storage/kkm_last_timestamp [09:33:37]Write 4 bytes [09:33:37]NVStorageSaveData done [09:33:37]ExternCall_PrintAddStr [09:33:37]wPrintStart [09:33:37]Write to MH i2c: 01 00 00 22 15 37 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: 01 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: 01 07 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: 01 07 00 22 15 00 00 00 00 00 FF 0F 4C [09:33:37]RasterBufferAndPrint [09:33:37]line Счет N : (1)979625 [09:33:37]line ИНН: 02508201610067 [09:33:37]line Контрольно-Кассовый Чек [09:33:37]line ПРОДАЖА [09:33:37]line ТРК (МРК, ГНК) : 31 [09:33:37]line Товар: 2710124130 [09:33:37]line Аи-92-К-5 [09:33:37]line 14.950 * 66.90 [09:33:37]line = 1000.16 [09:33:37]line НДС 12% НСП 1% [09:33:37]line > о реализуемом товаре [09:33:37]line ОКРУГЛЕНИЕ: -0.16 [09:33:37]line ИТОГО: 1000.00 [09:33:37]line Внесено: 1000.00 [09:33:37]line СДАЧА: 0.00 [09:33:37]line НСП 1% : 8.85 [09:33:37]line НДС 12% : 106.21 [09:33:37]line Наличными: 1000.00 [09:33:37]line Безнал.: 0.00 [09:33:37]line Место: АЗС № 68 "Партнер Нефть" [09:33:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:33:37]line СНО: Общий режим [09:33:37]line Чек 42 04.06.2024 09:33 [09:33:37]line Смена: 368 ФФД: 1.0 [09:33:37]line ЗНМ: 0300000035 [09:33:37]line РНМ: 0000000000092720 [09:33:37]line Версия ККМ: 001 [09:33:37]line ФМ: 0000000000875057 [09:33:37]line ФД: 148703 [09:33:37]line ФПД: 788217982828 [09:33:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093338&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148703&fm=788217982828&tin=02508201610067®Number=0000000000092720&sum=100000 [09:33:38]OFD Sender: Processing packet 148703 [packets to send 100, broken 99] [09:33:38]ProducePacketName [09:33:38]name=ofd_packets/00148703 [09:33:38]OFD Sender: To server: pG, [09:33:38]CommunicateWithHost lk.salyk.kg:30040 [09:33:38]ConnectInit lk.salyk.kg [09:33:38]written 0, free lines is 4095 [09:33:38]Connected sock=10 [09:33:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CA FD 07 01 58 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 72 DF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DF 44 02 00 35 04 06 00 00 B7 85 73 EF 6C E3 F8 9E 6F B4 8C 18 49 [09:33:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 0F DC 47 00 F0 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 38 37 35 30 35 37 10 04 04 00 DF 44 02 00 F4 03 04 00 97 86 5E 66 B6 04 01 00 00 02 25 DC 35 55 7B 21 F0 [09:33:38]CommunicateWithHost err = 0 [09:33:38]CheckOFDResponse [09:33:38]1017 (14) - 77093643461234 [09:33:38]1041 (16) - 0000000000875057 [09:33:38]1040 (4) - 148703 [09:33:38]1012 (4) - 04.06.2024 03:14 [09:33:38]1206 (1) - 0 [09:33:38]OFD Sender: Remove packet 148703 [09:33:38]ProducePacketName [09:33:38]name=ofd_packets/00148703 [09:33:38]NVStorageDeleteData [09:33:38]Write to MH i2c: 01 00 00 4D 15 62 [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 07 00 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 07 00 4D 15 00 00 00 00 00 5F 0C D4 [09:33:38]RasterBufferAndPrint [09:33:38]line [09:33:38]line [09:33:38]line [09:33:38]line [09:33:38]line [09:33:38]written 0, free lines is 3171 [09:33:38]MH_Cut [09:33:38]Write to MH i2c: D1 01 00 54 15 01 3B [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: D1 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: D1 01 00 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: D1 01 00 54 15 00 3A [09:33:38]Write to MH i2c: 01 00 00 55 15 6A [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]OFD Sender: No OFD packet to send [09:33:39]*** Cut start [09:33:39]*** Partial cut [09:33:39]*** CUTSNS_PIN = 1 [09:33:39]*** CUTSNS_PIN = 0 [09:33:40]*** Brake cut motor [09:33:40]Read from MH i2c: 01 [09:33:40]MH_I2C_Read... [09:33:40]*** Stop cut motor [09:33:40]*** Cut end [09:33:40]Read from MH i2c: 01 07 00 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: 01 07 00 55 15 00 00 00 00 00 FF 0F 7F [09:33:40]process_action close_receipt done [09:33:40]requested_data is exist [09:33:40]produce_requested_data [09:33:40]requested_item fm.sn is exist - process it [09:33:40]wFMCommunicate request_size=4 [09:33:40]MH_SAM_APDU [09:33:40]CAPDU: 80 11 00 00 [09:33:40]Write to MH i2c: E2 08 00 56 15 80 11 00 00 00 00 00 00 E5 [09:33:40]Write i2c OK [09:33:40]MH_I2C_Read... [09:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:40]Read from MH i2c: E2 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 17 00 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 17 00 56 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 38 [09:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:33:40]wFMCommunicate OK [09:33:40]requested_item fd.num is exist - process it [09:33:40]SAM_PROTO_GetFieldsCounters [09:33:40]wFMCommunicate request_size=4 [09:33:40]MH_SAM_APDU [09:33:40]CAPDU: 80 13 00 00 [09:33:40]Write to MH i2c: E2 08 00 57 15 80 13 00 00 00 00 00 00 E8 [09:33:40]Write i2c OK [09:33:40]MH_I2C_Read... [09:33:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:40]Read from MH i2c: E2 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 62 00 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 62 00 57 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DF 44 02 00 0E 04 04 00 70 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 18 [09:33:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DF 44 02 00 0E 04 04 00 70 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 [09:33:40]wFMCommunicate OK [09:33:40]SAM_PROTO_GetFieldsCounters done [09:33:40]requested_item shift.num is exist - process it [09:33:40]requested_item shift.opened is exist - process it [09:33:40]req_shift_opened [09:33:40]FM_GetShiftState [09:33:40]SAM_PROTO_GetShiftState [09:33:40]wFMCommunicate request_size=4 [09:33:40]MH_SAM_APDU [09:33:40]CAPDU: 80 13 01 00 [09:33:40]Write to MH i2c: E2 08 00 58 15 80 13 01 00 00 00 00 00 EA [09:33:40]Write i2c OK [09:33:40]MH_I2C_Read... [09:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:40]Read from MH i2c: E2 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 0E 00 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 0E 00 58 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AD [09:33:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:33:40]wFMCommunicate OK [09:33:40]SAM_PROTO_GetShiftState done [09:33:40]FM_GetShiftState done [09:33:40]req_shift_opened done [09:33:40]requested_item shift.open_date is exist - process it [09:33:40]req_shift_open_date [09:33:40]req_shift_open_date done [09:33:40]produce_requested_data done [09:33:40]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148703,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:33:40]process_action_free close_receipt [09:33:40]json_value_free [09:33:40]json_value_free done [09:33:40]process_json_proto returns [09:33:40]Send response to host [09:33:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148703,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:33:40]free response buf [09:33:40]execute_script done [09:33:40]execute_script returns [09:33:40]free content buf [09:33:40]Sock 9.Close socket [09:33:40]Sock 9.Thread stoped [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:52]accept exits with 7 [09:34:52]New connection [09:34:52]New thread 3066809700 created [09:34:52]Thread 3066666340 joined [09:34:52]Waiting for new connection... [09:34:52] Sock 7.Parse request [09:34:52]Sock 7.Check first char [09:34:52]Sock 7.First char is OK [09:34:52]request: POST /json_proto HTTP/1.0 [09:34:52]Method: POST [09:34:52]URL: /json_proto [09:34:52]Method is POST - this is cgi request [09:34:52]url: /json_proto [09:34:52]query_string will be loaded in cgi processing [09:34:52]execute_cgi json_proto POST (null) [09:34:52]execute_cgi path=json_proto method=POST [09:34:52]POST find Content-Length [09:34:52]Host: 172.17.38.4:8080 [09:34:52]Content-Length: 677 [09:34:52]Content-Type: application/json [09:34:52] [09:34:52]POST finish read [09:34:52]Found Content-Length = 677 [09:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:52]execute_script... [09:34: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)979626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:52]POST & json_proto [09:34:52]process_json_proto [09:34:52]json parsed OK: [09:34:52]protocol is kg_v1.0 [09:34:52]action value=close_receipt [09:34:52]process_action close_receipt [09:34:52]cmd_close_receipt [09:34:52]MH_GetDate [09:34:52]Write to MH i2c: F0 00 00 59 15 5D [09:34:52]Write i2c OK [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: F0 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: F0 09 00 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: F0 09 00 59 15 00 BF DF 5E 66 CC 51 87 64 D0 [09:34:52]GetLastDocTimeStamp 1717493618 [09:34:52]current date 1717493695 [09:34:52]FM_GetShiftState [09:34:52]SAM_PROTO_GetShiftState [09:34:52]wFMCommunicate request_size=4 [09:34:52]MH_SAM_APDU [09:34:52]CAPDU: 80 13 01 00 [09:34:52]Write to MH i2c: E2 08 00 5A 15 80 13 01 00 00 00 00 00 EC [09:34:52]Write i2c OK [09:34:52]MH_I2C_Read... [09:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:52]Read from MH i2c: E2 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: E2 0E 00 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: E2 0E 00 5A 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AF [09:34:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:34:52]wFMCommunicate OK [09:34:52]SAM_PROTO_GetShiftState done [09:34:52]FM_GetShiftState done [09:34:52]opened in 1717460629 [09:34:52]opened+sec_in_day 1717547029 [09:34:52]quantity*price = 30038 [09:34:52]sum+1 = 30039 [09:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 43 04.06.2024 09:34 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148704 ФПД: 156622562208573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093455&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148704&fm=156622562208573&tin=02508201610067®Number=0000000000092720&sum=30000 [09:34:53]StoreToDocumentArchive [09:34:53]shift 368 fd 148704 [09:34:53]save to /storage/0368/doc_00148704 [09:34:53]save last doc name /storage/0368/doc_00148704 to /storage/kkm_last_doc_name [09:34:53]save OK [09:34:53]Clear old archive folders... [09:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:53]tlvbuf is 015ECEF0 [09:34:53]SAM_PROTO_ClearQueue [09:34:53]wFMCommunicate request_size=4 [09:34:53]MH_SAM_APDU [09:34:53]CAPDU: 80 09 00 00 [09:34:53]Write to MH i2c: E2 08 00 67 15 80 09 00 00 00 00 00 00 EE [09:34:53]Write i2c OK [09:34:53]MH_I2C_Read... [09:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:53]Read from MH i2c: E2 [09:34:53]MH_I2C_Read... [09:34:53]Read from MH i2c: E2 03 00 [09:34:53]MH_I2C_Read... [09:34:53]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [09:34:53]RAPDU: 90 00 [09:34:53]wFMCommunicate OK [09:34:53]SAM_PROTO_ClearQueue done [09:34:53]KKMCreateOFDPacket [09:34:53]OFDProtocolAddRootSTLVToBuf [09:34:53]FM_MakeSignedData [09:34:53]FM_MakeSignedData [09:34:53]SAM_PROTO_SignData [09:34:53]wFMCommunicate request_size=4 [09:34:53]MH_SAM_APDU [09:34:53]CAPDU: 80 0D 01 02 [09:34:53]Write to MH i2c: E2 08 00 68 15 80 0D 01 02 00 00 00 00 F6 [09:34:53]Write i2c OK [09:34:53]MH_I2C_Read... [09:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:53]Read from MH i2c: E2 [09:34:53]MH_I2C_Read... [09:34:53]Read from MH i2c: E2 03 00 [09:34:53]MH_I2C_Read... [09:34:53]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [09:34:53]RAPDU: 90 00 [09:34:53]wFMCommunicate OK [09:34:53]wFMCommunicate request_size=255 [09:34:53]MH_SAM_APDU [09:34:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 BF DF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E0 44 02 00 35 04 06 00 8E [09:34:53]Write to MH i2c: E2 02 01 69 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 BF DF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E0 44 02 00 35 04 06 00 8E 00 00 26 [09:34:53]Write i2c OK [09:34:53]MH_I2C_Read... [09:34:53]OFD Sender: No OFD packet to send [09:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 69 15 00 90 00 F2 [09:34:54]RAPDU: 90 00 [09:34:54]wFMCommunicate OK [09:34:54]wFMCommunicate request_size=10 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 0D 02 02 05 72 88 2F 2B 3D [09:34:54]Write to MH i2c: E2 0D 00 6A 15 80 0D 02 02 05 00 72 88 2F 2B 3D 00 00 94 [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 6A 15 00 90 00 F3 [09:34:54]RAPDU: 90 00 [09:34:54]wFMCommunicate OK [09:34:54]wFMCommunicate request_size=4 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 0D 03 02 [09:34:54]Write to MH i2c: E2 08 00 6B 15 80 0D 03 02 00 00 00 00 FB [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 0B 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 0B 00 6B 15 00 F0 31 ED AD 56 8D 11 E0 90 00 8B [09:34:54]RAPDU: F0 31 ED AD 56 8D 11 E0 90 00 [09:34:54]wFMCommunicate OK [09:34:54]SAM_PROTO_SignData done [09:34:54]FM_MakeSignedData done [09:34:54]CreateOFDProtocolMessage [09:34:54]wFMCommunicate request_size=4 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 11 00 00 [09:34:54]Write to MH i2c: E2 08 00 6C 15 80 11 00 00 00 00 00 00 FB [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 17 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 17 00 6C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4E [09:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:34:54]wFMCommunicate OK [09:34:54]CreateOFDProtocolMessage done [09:34:54]OFDSenderStorePacket 148704 [09:34:54]StoreOFDPacket docnum=148704 [09:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 2F 87 07 01 03 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2B 00 00 00 F4 03 04 00 BF DF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E0 44 02 00 35 04 06 00 8E 72 88 2F 2B 3D F0 31 ED AD 56 8D 11 E0 [09:34:54]CheckFolder [09:34:54]dirname=/storage/ofd_packets [09:34:54]CheckFolder done [09:34:54]ProducePacketName [09:34:54]name=ofd_packets/00148704 [09:34:54]NVStorageSaveData ofd_packets/00148704 [09:34:54]File name is /storage/ofd_packets/00148704 [09:34:54]Write 301 bytes [09:34:54]NVStorageSaveData done [09:34:54]OFDSenderStorePacket done [09:34:54]KKMCreateOFDPacket done [09:34:54]NVStorageSaveData kkm_last_timestamp [09:34:54]File name is /storage/kkm_last_timestamp [09:34:54]Write 4 bytes [09:34:54]NVStorageSaveData done [09:34:54]ExternCall_PrintAddStr [09:34:54]wPrintStart [09:34:54]Write to MH i2c: 01 00 00 6D 15 82 [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: 01 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: 01 07 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: 01 07 00 6D 15 00 00 00 00 00 FF 0F 97 [09:34:54]RasterBufferAndPrint [09:34:54]line Счет N : (1)979626 [09:34:54]line ИНН: 02508201610067 [09:34:54]line Контрольно-Кассовый Чек [09:34:54]line ПРОДАЖА [09:34:54]line ТРК (МРК, ГНК) : 12 [09:34:54]line Товар: 2710124130 [09:34:54]line Аи-92-К-5 [09:34:54]line 4.490 * 66.90 [09:34:54]line = 300.38 [09:34:54]line НДС 12% НСП 1% [09:34:54]line > о реализуемом товаре [09:34:54]line ОКРУГЛЕНИЕ: -0.38 [09:34:54]line ИТОГО: 300.00 [09:34:54]line Внесено: 300.00 [09:34:54]line СДАЧА: 0.00 [09:34:54]line НСП 1% : 2.66 [09:34:54]line НДС 12% : 31.90 [09:34:54]line Наличными: 300.00 [09:34:54]line Безнал.: 0.00 [09:34:54]line Место: АЗС № 68 "Партнер Нефть" [09:34:54]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:34:54]line СНО: Общий режим [09:34:54]line Чек 43 04.06.2024 09:34 [09:34:54]line Смена: 368 ФФД: 1.0 [09:34:54]line ЗНМ: 0300000035 [09:34:54]line РНМ: 0000000000092720 [09:34:54]line Версия ККМ: 001 [09:34:54]line ФМ: 0000000000875057 [09:34:54]line ФД: 148704 [09:34:54]line ФПД: 156622562208573 [09:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093455&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148704&fm=156622562208573&tin=02508201610067®Number=0000000000092720&sum=30000 [09:34:54]OFD Sender: Processing packet 148704 [packets to send 100, broken 99] [09:34:54]ProducePacketName [09:34:54]name=ofd_packets/00148704 [09:34:54]OFD Sender: To server: pG, [09:34:54]CommunicateWithHost lk.salyk.kg:30040 [09:34:54]ConnectInit lk.salyk.kg [09:34:54]written 0, free lines is 4095 [09:34:54]Connected sock=10 [09:34:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 2F 87 07 01 03 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2B 00 00 00 F4 03 04 00 BF DF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E0 44 02 00 35 04 06 00 8E 72 88 2F 2B 3D F0 31 ED AD 56 8D 11 E0 [09:34:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B7 54 47 00 88 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 38 37 35 30 35 37 10 04 04 00 E0 44 02 00 F4 03 04 00 E3 86 5E 66 B6 04 01 00 00 DF 94 4E D8 BB 90 1E 71 [09:34:54]CommunicateWithHost err = 0 [09:34:54]CheckOFDResponse [09:34:54]1017 (14) - 77093643461234 [09:34:54]1041 (16) - 0000000000875057 [09:34:54]1040 (4) - 148704 [09:34:54]1012 (4) - 04.06.2024 03:15 [09:34:54]1206 (1) - 0 [09:34:54]OFD Sender: Remove packet 148704 [09:34:54]ProducePacketName [09:34:54]name=ofd_packets/00148704 [09:34:54]NVStorageDeleteData [09:34:55]Write to MH i2c: 01 00 00 98 15 AD [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 07 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 07 00 98 15 00 00 00 00 00 5F 0C 1F [09:34:55]RasterBufferAndPrint [09:34:55]line [09:34:55]line [09:34:55]line [09:34:55]line [09:34:55]line [09:34:55]written 0, free lines is 3170 [09:34:55]MH_Cut [09:34:55]Write to MH i2c: D1 01 00 9F 15 01 86 [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: D1 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: D1 01 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: D1 01 00 9F 15 00 85 [09:34:55]Write to MH i2c: 01 00 00 A0 15 B5 [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]OFD Sender: No OFD packet to send [09:34:56]*** Cut start [09:34:56]*** Partial cut [09:34:56]*** CUTSNS_PIN = 1 [09:34:56]*** CUTSNS_PIN = 0 [09:34:56]*** Brake cut motor [09:34:57]Read from MH i2c: 01 [09:34:57]MH_I2C_Read... [09:34:57]*** Stop cut motor [09:34:57]*** Cut end [09:34:57]Read from MH i2c: 01 07 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: 01 07 00 A0 15 00 00 00 00 00 FF 0F CA [09:34:57]process_action close_receipt done [09:34:57]requested_data is exist [09:34:57]produce_requested_data [09:34:57]requested_item fm.sn is exist - process it [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 11 00 00 [09:34:57]Write to MH i2c: E2 08 00 A1 15 80 11 00 00 00 00 00 00 30 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 17 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 17 00 A1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 83 [09:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:34:57]wFMCommunicate OK [09:34:57]requested_item fd.num is exist - process it [09:34:57]SAM_PROTO_GetFieldsCounters [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 13 00 00 [09:34:57]Write to MH i2c: E2 08 00 A2 15 80 13 00 00 00 00 00 00 33 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 62 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 62 00 A2 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E0 44 02 00 0E 04 04 00 70 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 67 [09:34:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E0 44 02 00 0E 04 04 00 70 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 [09:34:57]wFMCommunicate OK [09:34:57]SAM_PROTO_GetFieldsCounters done [09:34:57]requested_item shift.num is exist - process it [09:34:57]requested_item shift.opened is exist - process it [09:34:57]req_shift_opened [09:34:57]FM_GetShiftState [09:34:57]SAM_PROTO_GetShiftState [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 13 01 00 [09:34:57]Write to MH i2c: E2 08 00 A3 15 80 13 01 00 00 00 00 00 35 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 0E 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 0E 00 A3 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F8 [09:34:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:34:57]wFMCommunicate OK [09:34:57]SAM_PROTO_GetShiftState done [09:34:57]FM_GetShiftState done [09:34:57]req_shift_opened done [09:34:57]requested_item shift.open_date is exist - process it [09:34:57]req_shift_open_date [09:34:57]req_shift_open_date done [09:34:57]produce_requested_data done [09:34:57]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148704,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:34:57]process_action_free close_receipt [09:34:57]json_value_free [09:34:57]json_value_free done [09:34:57]process_json_proto returns [09:34:57]Send response to host [09:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148704,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:34:57]free response buf [09:34:57]execute_script done [09:34:57]execute_script returns [09:34:57]free content buf [09:34:57]Sock 7.Close socket [09:34:57]Sock 7.Thread stoped [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:24]accept exits with 9 [09:36:24]New connection [09:36:24]New thread 3066666340 created [09:36:24]Thread 3066809700 joined [09:36:24]Waiting for new connection... [09:36:24] Sock 9.Parse request [09:36:24]Sock 9.Check first char [09:36:24]Sock 9.First char is OK [09:36:24]request: POST /json_proto HTTP/1.0 [09:36:24]Method: POST [09:36:24]URL: /json_proto [09:36:24]Method is POST - this is cgi request [09:36:24]url: /json_proto [09:36:24]query_string will be loaded in cgi processing [09:36:24]execute_cgi json_proto POST (null) [09:36:24]execute_cgi path=json_proto method=POST [09:36:24]POST find Content-Length [09:36:24]Host: 172.17.38.4:8080 [09:36:24]Content-Length: 677 [09:36:24]Content-Type: application/json [09:36:24] [09:36:24]POST finish read [09:36:24]Found Content-Length = 677 [09:36:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:24]execute_script... [09:36: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)979628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:24]POST & json_proto [09:36:24]process_json_proto [09:36:24]json parsed OK: [09:36:24]protocol is kg_v1.0 [09:36:24]action value=close_receipt [09:36:24]process_action close_receipt [09:36:24]cmd_close_receipt [09:36:24]MH_GetDate [09:36:24]Write to MH i2c: F0 00 00 A4 15 A8 [09:36:24]Write i2c OK [09:36:24]MH_I2C_Read... [09:36:24]Read from MH i2c: F0 [09:36:24]MH_I2C_Read... [09:36:24]Read from MH i2c: F0 09 00 [09:36:24]MH_I2C_Read... [09:36:24]Read from MH i2c: F0 09 00 A4 15 00 1B E0 5E 66 CC 51 87 64 78 [09:36:24]GetLastDocTimeStamp 1717493695 [09:36:24]current date 1717493787 [09:36:24]FM_GetShiftState [09:36:24]SAM_PROTO_GetShiftState [09:36:24]wFMCommunicate request_size=4 [09:36:24]MH_SAM_APDU [09:36:24]CAPDU: 80 13 01 00 [09:36:24]Write to MH i2c: E2 08 00 A5 15 80 13 01 00 00 00 00 00 37 [09:36:24]Write i2c OK [09:36:24]MH_I2C_Read... [09:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:24]Read from MH i2c: E2 [09:36:24]MH_I2C_Read... [09:36:24]Read from MH i2c: E2 0E 00 [09:36:24]MH_I2C_Read... [09:36:24]Read from MH i2c: E2 0E 00 A5 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FA [09:36:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:36:24]wFMCommunicate OK [09:36:24]SAM_PROTO_GetShiftState done [09:36:24]FM_GetShiftState done [09:36:24]opened in 1717460629 [09:36:24]opened+sec_in_day 1717547029 [09:36:24]quantity*price = 50041 [09:36:24]sum+1 = 50042 [09:36: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 44 04.06.2024 09:36 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148705 ФПД: 103014758357780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093627&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148705&fm=103014758357780&tin=02508201610067®Number=0000000000092720&sum=50000 [09:36:26]StoreToDocumentArchive [09:36:26]shift 368 fd 148705 [09:36:26]save to /storage/0368/doc_00148705 [09:36:26]save last doc name /storage/0368/doc_00148705 to /storage/kkm_last_doc_name [09:36:26]save OK [09:36:26]Clear old archive folders... [09:36:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:26]tlvbuf is B6E9E4A0 [09:36:26]SAM_PROTO_ClearQueue [09:36:26]wFMCommunicate request_size=4 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 09 00 00 [09:36:26]Write to MH i2c: E2 08 00 B2 15 80 09 00 00 00 00 00 00 39 [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [09:36:26]RAPDU: 90 00 [09:36:26]wFMCommunicate OK [09:36:26]SAM_PROTO_ClearQueue done [09:36:26]KKMCreateOFDPacket [09:36:26]OFDProtocolAddRootSTLVToBuf [09:36:26]FM_MakeSignedData [09:36:26]FM_MakeSignedData [09:36:26]SAM_PROTO_SignData [09:36:26]wFMCommunicate request_size=4 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 0D 01 02 [09:36:26]Write to MH i2c: E2 08 00 B3 15 80 0D 01 02 00 00 00 00 41 [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [09:36:26]RAPDU: 90 00 [09:36:26]wFMCommunicate OK [09:36:26]wFMCommunicate request_size=255 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1B E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E1 44 02 00 35 04 06 00 5D [09:36:26]Write to MH i2c: E2 02 01 B4 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1B E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E1 44 02 00 35 04 06 00 5D 00 00 AB [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 B4 15 00 90 00 3D [09:36:26]RAPDU: 90 00 [09:36:26]wFMCommunicate OK [09:36:26]wFMCommunicate request_size=10 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 0D 02 02 05 B0 FE 14 1B 14 [09:36:26]Write to MH i2c: E2 0D 00 B5 15 80 0D 02 02 05 00 B0 FE 14 1B 14 00 00 3F [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 03 00 B5 15 00 90 00 3E [09:36:26]RAPDU: 90 00 [09:36:26]wFMCommunicate OK [09:36:26]wFMCommunicate request_size=4 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 0D 03 02 [09:36:26]Write to MH i2c: E2 08 00 B6 15 80 0D 03 02 00 00 00 00 46 [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 0B 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 0B 00 B6 15 00 D7 DC 79 05 06 77 1B C0 90 00 D0 [09:36:26]RAPDU: D7 DC 79 05 06 77 1B C0 90 00 [09:36:26]wFMCommunicate OK [09:36:26]SAM_PROTO_SignData done [09:36:26]FM_MakeSignedData done [09:36:26]CreateOFDProtocolMessage [09:36:26]wFMCommunicate request_size=4 [09:36:26]MH_SAM_APDU [09:36:26]CAPDU: 80 11 00 00 [09:36:26]Write to MH i2c: E2 08 00 B7 15 80 11 00 00 00 00 00 00 46 [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:26]Read from MH i2c: E2 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 17 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: E2 17 00 B7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 99 [09:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:36:26]wFMCommunicate OK [09:36:26]CreateOFDProtocolMessage done [09:36:26]OFDSenderStorePacket 148705 [09:36:26]StoreOFDPacket docnum=148705 [09:36:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 88 CD 07 01 B6 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1B E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E1 44 02 00 35 04 06 00 5D B0 FE 14 1B 14 D7 DC 79 05 06 77 1B C0 [09:36:26]CheckFolder [09:36:26]dirname=/storage/ofd_packets [09:36:26]CheckFolder done [09:36:26]ProducePacketName [09:36:26]name=ofd_packets/00148705 [09:36:26]NVStorageSaveData ofd_packets/00148705 [09:36:26]File name is /storage/ofd_packets/00148705 [09:36:26]Write 301 bytes [09:36:26]NVStorageSaveData done [09:36:26]OFDSenderStorePacket done [09:36:26]KKMCreateOFDPacket done [09:36:26]NVStorageSaveData kkm_last_timestamp [09:36:26]File name is /storage/kkm_last_timestamp [09:36:26]Write 4 bytes [09:36:26]NVStorageSaveData done [09:36:26]ExternCall_PrintAddStr [09:36:26]wPrintStart [09:36:26]Write to MH i2c: 01 00 00 B8 15 CD [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: 01 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: 01 07 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: 01 07 00 B8 15 00 00 00 00 00 FF 0F E2 [09:36:26]RasterBufferAndPrint [09:36:26]line Счет N : (1)979628 [09:36:26]line ИНН: 02508201610067 [09:36:26]line Контрольно-Кассовый Чек [09:36:26]line ПРОДАЖА [09:36:26]line ТРК (МРК, ГНК) : 31 [09:36:26]line Товар: 2710124130 [09:36:26]line Аи-92-К-5 [09:36:26]line 7.480 * 66.90 [09:36:26]line = 500.41 [09:36:26]line НДС 12% НСП 1% [09:36:26]line > о реализуемом товаре [09:36:26]line ОКРУГЛЕНИЕ: -0.41 [09:36:26]line ИТОГО: 500.00 [09:36:26]line Внесено: 500.00 [09:36:26]line СДАЧА: 0.00 [09:36:26]line НСП 1% : 4.43 [09:36:26]line НДС 12% : 53.14 [09:36:26]line Наличными: 500.00 [09:36:26]line Безнал.: 0.00 [09:36:26]line Место: АЗС № 68 "Партнер Нефть" [09:36:26]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:36:26]line СНО: Общий режим [09:36:26]line Чек 44 04.06.2024 09:36 [09:36:26]line Смена: 368 ФФД: 1.0 [09:36:26]line ЗНМ: 0300000035 [09:36:26]line РНМ: 0000000000092720 [09:36:26]line Версия ККМ: 001 [09:36:26]line ФМ: 0000000000875057 [09:36:26]line ФД: 148705 [09:36:26]line ФПД: 103014758357780 [09:36:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093627&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148705&fm=103014758357780&tin=02508201610067®Number=0000000000092720&sum=50000 [09:36:26]OFD Sender: Processing packet 148705 [packets to send 100, broken 99] [09:36:26]ProducePacketName [09:36:26]name=ofd_packets/00148705 [09:36:26]OFD Sender: To server: pG, [09:36:26]CommunicateWithHost lk.salyk.kg:30040 [09:36:26]ConnectInit lk.salyk.kg [09:36:26]written 0, free lines is 4095 [09:36:26]Connected sock=10 [09:36:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 88 CD 07 01 B6 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1B E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E1 44 02 00 35 04 06 00 5D B0 FE 14 1B 14 D7 DC 79 05 06 77 1B C0 [09:36:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 48 DA 47 00 61 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 38 37 35 30 35 37 10 04 04 00 E1 44 02 00 F4 03 04 00 3F 87 5E 66 B6 04 01 00 00 9E B9 53 47 D9 D7 99 B2 [09:36:27]CommunicateWithHost err = 0 [09:36:27]CheckOFDResponse [09:36:27]1017 (14) - 77093643461234 [09:36:27]1041 (16) - 0000000000875057 [09:36:27]1040 (4) - 148705 [09:36:27]1012 (4) - 04.06.2024 03:17 [09:36:27]1206 (1) - 0 [09:36:27]OFD Sender: Remove packet 148705 [09:36:27]ProducePacketName [09:36:27]name=ofd_packets/00148705 [09:36:27]NVStorageDeleteData [09:36:27]Write to MH i2c: 01 00 00 E3 15 F8 [09:36:27]Write i2c OK [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: 01 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: 01 07 00 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: 01 07 00 E3 15 00 00 00 00 00 5D 0C 68 [09:36:27]RasterBufferAndPrint [09:36:27]line [09:36:27]line [09:36:27]line [09:36:27]line [09:36:27]line [09:36:27]written 0, free lines is 3169 [09:36:27]MH_Cut [09:36:27]Write to MH i2c: D1 01 00 EA 15 01 D1 [09:36:27]Write i2c OK [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: D1 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: D1 01 00 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: D1 01 00 EA 15 00 D0 [09:36:27]Write to MH i2c: 01 00 00 EB 15 00 [09:36:27]Write i2c OK [09:36:27]MH_I2C_Read... [09:36:27]OFD Sender: No OFD packet to send [09:36:28]*** Cut start [09:36:28]*** Partial cut [09:36:28]*** CUTSNS_PIN = 1 [09:36:28]*** CUTSNS_PIN = 0 [09:36:28]*** Brake cut motor [09:36:29]Read from MH i2c: 01 [09:36:29]MH_I2C_Read... [09:36:29]*** Stop cut motor [09:36:29]*** Cut end [09:36:29]Read from MH i2c: 01 07 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: 01 07 00 EB 15 00 00 00 00 00 FF 0F 15 [09:36:29]process_action close_receipt done [09:36:29]requested_data is exist [09:36:29]produce_requested_data [09:36:29]requested_item fm.sn is exist - process it [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 11 00 00 [09:36:29]Write to MH i2c: E2 08 00 EC 15 80 11 00 00 00 00 00 00 7B [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 17 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 17 00 EC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CE [09:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:36:29]wFMCommunicate OK [09:36:29]requested_item fd.num is exist - process it [09:36:29]SAM_PROTO_GetFieldsCounters [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 13 00 00 [09:36:29]Write to MH i2c: E2 08 00 ED 15 80 13 00 00 00 00 00 00 7E [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 62 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 62 00 ED 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E1 44 02 00 0E 04 04 00 70 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 B6 [09:36:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E1 44 02 00 0E 04 04 00 70 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 [09:36:29]wFMCommunicate OK [09:36:29]SAM_PROTO_GetFieldsCounters done [09:36:29]requested_item shift.num is exist - process it [09:36:29]requested_item shift.opened is exist - process it [09:36:29]req_shift_opened [09:36:29]FM_GetShiftState [09:36:29]SAM_PROTO_GetShiftState [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 13 01 00 [09:36:29]Write to MH i2c: E2 08 00 EE 15 80 13 01 00 00 00 00 00 80 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 0E 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 0E 00 EE 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 43 [09:36:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:36:29]wFMCommunicate OK [09:36:29]SAM_PROTO_GetShiftState done [09:36:29]FM_GetShiftState done [09:36:29]req_shift_opened done [09:36:29]requested_item shift.open_date is exist - process it [09:36:29]req_shift_open_date [09:36:29]req_shift_open_date done [09:36:29]produce_requested_data done [09:36:29]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148705,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:36:29]process_action_free close_receipt [09:36:29]json_value_free [09:36:29]json_value_free done [09:36:29]process_json_proto returns [09:36:29]Send response to host [09:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148705,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:36:29]free response buf [09:36:29]execute_script done [09:36:29]execute_script returns [09:36:29]free content buf [09:36:29]Sock 9.Close socket [09:36:29]Sock 9.Thread stoped [09:36:31]accept exits with 7 [09:36:31]New connection [09:36:31]New thread 3066809700 created [09:36:31]Thread 3066666340 joined [09:36:31]Waiting for new connection... [09:36:31] Sock 7.Parse request [09:36:31]Sock 7.Check first char [09:36:31]Sock 7.First char is OK [09:36:31]request: POST /json_proto HTTP/1.0 [09:36:31]Method: POST [09:36:31]URL: /json_proto [09:36:31]Method is POST - this is cgi request [09:36:31]url: /json_proto [09:36:31]query_string will be loaded in cgi processing [09:36:31]execute_cgi json_proto POST (null) [09:36:31]execute_cgi path=json_proto method=POST [09:36:31]POST find Content-Length [09:36:31]Host: 172.17.38.4:8080 [09:36:31]Content-Length: 677 [09:36:31]Content-Type: application/json [09:36:31] [09:36:31]POST finish read [09:36:31]Found Content-Length = 677 [09:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:31]execute_script... [09:36: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)979629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:31]POST & json_proto [09:36:31]process_json_proto [09:36:31]json parsed OK: [09:36:31]protocol is kg_v1.0 [09:36:31]action value=close_receipt [09:36:31]process_action close_receipt [09:36:31]cmd_close_receipt [09:36:31]MH_GetDate [09:36:31]Write to MH i2c: F0 00 00 EF 15 F3 [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: F0 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: F0 09 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: F0 09 00 EF 15 00 22 E0 5E 66 CC 51 87 64 CA [09:36:31]GetLastDocTimeStamp 1717493787 [09:36:31]current date 1717493794 [09:36:31]FM_GetShiftState [09:36:31]SAM_PROTO_GetShiftState [09:36:31]wFMCommunicate request_size=4 [09:36:31]MH_SAM_APDU [09:36:31]CAPDU: 80 13 01 00 [09:36:31]Write to MH i2c: E2 08 00 F0 15 80 13 01 00 00 00 00 00 82 [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:31]Read from MH i2c: E2 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 0E 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 0E 00 F0 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 45 [09:36:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:36:31]wFMCommunicate OK [09:36:31]SAM_PROTO_GetShiftState done [09:36:31]FM_GetShiftState done [09:36:31]opened in 1717460629 [09:36:31]opened+sec_in_day 1717547029 [09:36:31]quantity*price = 50041 [09:36:31]sum+1 = 50042 [09:36: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 45 04.06.2024 09:36 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148706 ФПД: 27295807697484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093634&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148706&fm=27295807697484&tin=02508201610067®Number=0000000000092720&sum=50000 [09:36:33]StoreToDocumentArchive [09:36:33]shift 368 fd 148706 [09:36:33]save to /storage/0368/doc_00148706 [09:36:33]save last doc name /storage/0368/doc_00148706 to /storage/kkm_last_doc_name [09:36:33]save OK [09:36:33]Clear old archive folders... [09:36:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:33]tlvbuf is 01629100 [09:36:33]SAM_PROTO_ClearQueue [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 09 00 00 [09:36:33]Write to MH i2c: E2 08 00 FD 15 80 09 00 00 00 00 00 00 84 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]SAM_PROTO_ClearQueue done [09:36:33]KKMCreateOFDPacket [09:36:33]OFDProtocolAddRootSTLVToBuf [09:36:33]FM_MakeSignedData [09:36:33]FM_MakeSignedData [09:36:33]SAM_PROTO_SignData [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 0D 01 02 [09:36:33]Write to MH i2c: E2 08 00 FE 15 80 0D 01 02 00 00 00 00 8C [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]wFMCommunicate request_size=255 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 22 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E2 44 02 00 35 04 06 00 18 [09:36:33]Write to MH i2c: E2 02 01 FF 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 22 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E2 44 02 00 35 04 06 00 18 00 00 BA [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 FF 15 00 90 00 88 [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]wFMCommunicate request_size=10 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 0D 02 02 05 D3 4C EB F2 4C [09:36:33]Write to MH i2c: E2 0D 00 00 16 80 0D 02 02 05 00 D3 4C EB F2 4C 00 00 E2 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 00 16 00 90 00 8A [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 0D 03 02 [09:36:33]Write to MH i2c: E2 08 00 01 16 80 0D 03 02 00 00 00 00 92 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 0B 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 0B 00 01 16 00 EC EC F2 41 82 5E E1 56 90 00 B5 [09:36:33]RAPDU: EC EC F2 41 82 5E E1 56 90 00 [09:36:33]wFMCommunicate OK [09:36:33]SAM_PROTO_SignData done [09:36:33]FM_MakeSignedData done [09:36:33]CreateOFDProtocolMessage [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 11 00 00 [09:36:33]Write to MH i2c: E2 08 00 02 16 80 11 00 00 00 00 00 00 92 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 17 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 17 00 02 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E5 [09:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:36:33]wFMCommunicate OK [09:36:33]CreateOFDProtocolMessage done [09:36:33]OFDSenderStorePacket 148706 [09:36:33]StoreOFDPacket docnum=148706 [09:36:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 76 48 07 01 6E 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 22 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E2 44 02 00 35 04 06 00 18 D3 4C EB F2 4C EC EC F2 41 82 5E E1 56 [09:36:33]CheckFolder [09:36:33]dirname=/storage/ofd_packets [09:36:33]CheckFolder done [09:36:33]ProducePacketName [09:36:33]name=ofd_packets/00148706 [09:36:33]NVStorageSaveData ofd_packets/00148706 [09:36:33]File name is /storage/ofd_packets/00148706 [09:36:33]Write 301 bytes [09:36:33]NVStorageSaveData done [09:36:33]OFDSenderStorePacket done [09:36:33]KKMCreateOFDPacket done [09:36:33]NVStorageSaveData kkm_last_timestamp [09:36:33]File name is /storage/kkm_last_timestamp [09:36:33]Write 4 bytes [09:36:33]NVStorageSaveData done [09:36:33]ExternCall_PrintAddStr [09:36:33]wPrintStart [09:36:33]Write to MH i2c: 01 00 00 03 16 19 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: 01 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: 01 07 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: 01 07 00 03 16 00 00 00 00 00 FF 0F 2E [09:36:33]RasterBufferAndPrint [09:36:33]line Счет N : (1)979629 [09:36:33]line ИНН: 02508201610067 [09:36:33]line Контрольно-Кассовый Чек [09:36:33]line ПРОДАЖА [09:36:33]line ТРК (МРК, ГНК) : 41 [09:36:33]line Товар: 2710124130 [09:36:33]line Аи-92-К-5 [09:36:33]line 7.480 * 66.90 [09:36:33]line = 500.41 [09:36:33]line НДС 12% НСП 1% [09:36:33]line > о реализуемом товаре [09:36:33]line ОКРУГЛЕНИЕ: -0.41 [09:36:33]line ИТОГО: 500.00 [09:36:33]line Внесено: 500.00 [09:36:33]line СДАЧА: 0.00 [09:36:33]line НСП 1% : 4.43 [09:36:33]line НДС 12% : 53.14 [09:36:33]line Наличными: 500.00 [09:36:33]line Безнал.: 0.00 [09:36:33]line Место: АЗС № 68 "Партнер Нефть" [09:36:33]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:36:33]line СНО: Общий режим [09:36:33]line Чек 45 04.06.2024 09:36 [09:36:33]line Смена: 368 ФФД: 1.0 [09:36:33]line ЗНМ: 0300000035 [09:36:33]line РНМ: 0000000000092720 [09:36:33]line Версия ККМ: 001 [09:36:33]line ФМ: 0000000000875057 [09:36:33]line ФД: 148706 [09:36:33]line ФПД: 27295807697484 [09:36:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093634&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148706&fm=27295807697484&tin=02508201610067®Number=0000000000092720&sum=50000 [09:36:33]written 0, free lines is 4095 [09:36:33]OFD Sender: Processing packet 148706 [packets to send 100, broken 99] [09:36:33]ProducePacketName [09:36:33]name=ofd_packets/00148706 [09:36:33]OFD Sender: To server: pG, [09:36:33]CommunicateWithHost lk.salyk.kg:30040 [09:36:33]ConnectInit lk.salyk.kg [09:36:33]Connected sock=11 [09:36:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 76 48 07 01 6E 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 22 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E2 44 02 00 35 04 06 00 18 D3 4C EB F2 4C EC EC F2 41 82 5E E1 56 [09:36:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 6D AC 47 00 55 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 38 37 35 30 35 37 10 04 04 00 E2 44 02 00 F4 03 04 00 46 87 5E 66 B6 04 01 00 00 08 10 69 15 0A 39 85 9E [09:36:33]CommunicateWithHost err = 0 [09:36:33]CheckOFDResponse [09:36:33]1017 (14) - 77093643461234 [09:36:33]1041 (16) - 0000000000875057 [09:36:33]1040 (4) - 148706 [09:36:33]1012 (4) - 04.06.2024 03:17 [09:36:33]1206 (1) - 0 [09:36:33]OFD Sender: Remove packet 148706 [09:36:33]ProducePacketName [09:36:33]name=ofd_packets/00148706 [09:36:33]NVStorageDeleteData [09:36:34]Write to MH i2c: 01 00 00 2E 16 44 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 07 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 07 00 2E 16 00 00 00 00 00 66 0C BD [09:36:34]RasterBufferAndPrint [09:36:34]line [09:36:34]line [09:36:34]line [09:36:34]line [09:36:34]line [09:36:34]written 0, free lines is 3180 [09:36:34]MH_Cut [09:36:34]Write to MH i2c: D1 01 00 35 16 01 1D [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: D1 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: D1 01 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: D1 01 00 35 16 00 1C [09:36:34]Write to MH i2c: 01 00 00 36 16 4C [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]OFD Sender: No OFD packet to send [09:36:35]*** Cut start [09:36:35]*** Partial cut [09:36:35]*** CUTSNS_PIN = 1 [09:36:35]*** CUTSNS_PIN = 0 [09:36:35]*** Brake cut motor [09:36:35]Read from MH i2c: 01 [09:36:36]MH_I2C_Read... [09:36:36]*** Stop cut motor [09:36:36]*** Cut end [09:36:36]Read from MH i2c: 01 07 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: 01 07 00 36 16 00 00 00 00 00 FF 0F 61 [09:36:36]process_action close_receipt done [09:36:36]requested_data is exist [09:36:36]produce_requested_data [09:36:36]requested_item fm.sn is exist - process it [09:36:36]wFMCommunicate request_size=4 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 11 00 00 [09:36:36]Write to MH i2c: E2 08 00 37 16 80 11 00 00 00 00 00 00 C7 [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 17 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 17 00 37 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1A [09:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:36:36]wFMCommunicate OK [09:36:36]requested_item fd.num is exist - process it [09:36:36]SAM_PROTO_GetFieldsCounters [09:36:36]wFMCommunicate request_size=4 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 13 00 00 [09:36:36]Write to MH i2c: E2 08 00 38 16 80 13 00 00 00 00 00 00 CA [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 62 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 62 00 38 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E2 44 02 00 0E 04 04 00 70 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 06 [09:36:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E2 44 02 00 0E 04 04 00 70 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 [09:36:36]wFMCommunicate OK [09:36:36]SAM_PROTO_GetFieldsCounters done [09:36:36]requested_item shift.num is exist - process it [09:36:36]requested_item shift.opened is exist - process it [09:36:36]req_shift_opened [09:36:36]FM_GetShiftState [09:36:36]SAM_PROTO_GetShiftState [09:36:36]wFMCommunicate request_size=4 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 13 01 00 [09:36:36]Write to MH i2c: E2 08 00 39 16 80 13 01 00 00 00 00 00 CC [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 0E 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 0E 00 39 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8F [09:36:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:36:36]wFMCommunicate OK [09:36:36]SAM_PROTO_GetShiftState done [09:36:36]FM_GetShiftState done [09:36:36]req_shift_opened done [09:36:36]requested_item shift.open_date is exist - process it [09:36:36]req_shift_open_date [09:36:36]req_shift_open_date done [09:36:36]produce_requested_data done [09:36:36]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148706,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:36:36]process_action_free close_receipt [09:36:36]json_value_free [09:36:36]json_value_free done [09:36:36]process_json_proto returns [09:36:36]Send response to host [09:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148706,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:36:36]free response buf [09:36:36]execute_script done [09:36:36]execute_script returns [09:36:36]free content buf [09:36:36]Sock 7.Close socket [09:36:36]Sock 7.Thread stoped [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:06]accept exits with 9 [09:37:06]New connection [09:37:06]New thread 3066666340 created [09:37:06]Thread 3066809700 joined [09:37:06]Waiting for new connection... [09:37:06] Sock 9.Parse request [09:37:06]Sock 9.Check first char [09:37:06]Sock 9.First char is OK [09:37:06]request: POST /json_proto HTTP/1.0 [09:37:06]Method: POST [09:37:06]URL: /json_proto [09:37:06]Method is POST - this is cgi request [09:37:06]url: /json_proto [09:37:06]query_string will be loaded in cgi processing [09:37:06]execute_cgi json_proto POST (null) [09:37:06]execute_cgi path=json_proto method=POST [09:37:06]POST find Content-Length [09:37:06]Host: 172.17.38.4:8080 [09:37:06]Content-Length: 677 [09:37:06]Content-Type: application/json [09:37:06] [09:37:06]POST finish read [09:37:06]Found Content-Length = 677 [09:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:06]execute_script... [09:37: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)979630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:06]POST & json_proto [09:37:06]process_json_proto [09:37:06]json parsed OK: [09:37:06]protocol is kg_v1.0 [09:37:06]action value=close_receipt [09:37:06]process_action close_receipt [09:37:06]cmd_close_receipt [09:37:06]MH_GetDate [09:37:06]Write to MH i2c: F0 00 00 3A 16 3F [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 09 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 09 00 3A 16 00 44 E0 5E 66 CC 51 87 64 38 [09:37:06]GetLastDocTimeStamp 1717493794 [09:37:06]current date 1717493828 [09:37:06]FM_GetShiftState [09:37:06]SAM_PROTO_GetShiftState [09:37:06]wFMCommunicate request_size=4 [09:37:06]MH_SAM_APDU [09:37:06]CAPDU: 80 13 01 00 [09:37:06]Write to MH i2c: E2 08 00 3B 16 80 13 01 00 00 00 00 00 CE [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 3B 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 91 [09:37:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:37:06]wFMCommunicate OK [09:37:06]SAM_PROTO_GetShiftState done [09:37:06]FM_GetShiftState done [09:37:06]opened in 1717460629 [09:37:06]opened+sec_in_day 1717547029 [09:37:06]quantity*price = 50041 [09:37:06]sum+1 = 50042 [09:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 46 04.06.2024 09:37 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148707 ФПД: 209895478161822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093708&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148707&fm=209895478161822&tin=02508201610067®Number=0000000000092720&sum=50000 [09:37:07]StoreToDocumentArchive [09:37:07]shift 368 fd 148707 [09:37:07]save to /storage/0368/doc_00148707 [09:37:07]save last doc name /storage/0368/doc_00148707 to /storage/kkm_last_doc_name [09:37:07]save OK [09:37:07]Clear old archive folders... [09:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:07]tlvbuf is 015A7DA0 [09:37:07]SAM_PROTO_ClearQueue [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 09 00 00 [09:37:07]Write to MH i2c: E2 08 00 48 16 80 09 00 00 00 00 00 00 D0 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 48 16 00 90 00 D2 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_ClearQueue done [09:37:07]KKMCreateOFDPacket [09:37:07]OFDProtocolAddRootSTLVToBuf [09:37:07]FM_MakeSignedData [09:37:07]FM_MakeSignedData [09:37:07]SAM_PROTO_SignData [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 01 02 [09:37:07]Write to MH i2c: E2 08 00 49 16 80 0D 01 02 00 00 00 00 D8 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 49 16 00 90 00 D3 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=255 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 44 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E3 44 02 00 35 04 06 00 BE [09:37:07]Write to MH i2c: E2 02 01 4A 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 44 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E3 44 02 00 35 04 06 00 BE 00 00 D0 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 4A 16 00 90 00 D4 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=10 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 02 02 05 E6 19 6A 71 9E [09:37:07]Write to MH i2c: E2 0D 00 4B 16 80 0D 02 02 05 00 E6 19 6A 71 9E 00 00 5D [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 4B 16 00 90 00 D5 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 03 02 [09:37:07]Write to MH i2c: E2 08 00 4C 16 80 0D 03 02 00 00 00 00 DD [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0B 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0B 00 4C 16 00 2F 93 13 30 16 7E 39 16 90 00 C6 [09:37:07]RAPDU: 2F 93 13 30 16 7E 39 16 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_SignData done [09:37:07]FM_MakeSignedData done [09:37:07]CreateOFDProtocolMessage [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 11 00 00 [09:37:07]Write to MH i2c: E2 08 00 4D 16 80 11 00 00 00 00 00 00 DD [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 17 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 17 00 4D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 30 [09:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:37:07]wFMCommunicate OK [09:37:07]CreateOFDProtocolMessage done [09:37:07]OFDSenderStorePacket 148707 [09:37:07]StoreOFDPacket docnum=148707 [09:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F4 9C 07 01 EE 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 44 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E3 44 02 00 35 04 06 00 BE E6 19 6A 71 9E 2F 93 13 30 16 7E 39 16 [09:37:07]CheckFolder [09:37:07]dirname=/storage/ofd_packets [09:37:07]CheckFolder done [09:37:07]ProducePacketName [09:37:07]name=ofd_packets/00148707 [09:37:07]NVStorageSaveData ofd_packets/00148707 [09:37:07]File name is /storage/ofd_packets/00148707 [09:37:07]Write 301 bytes [09:37:07]NVStorageSaveData done [09:37:07]OFDSenderStorePacket done [09:37:07]KKMCreateOFDPacket done [09:37:07]NVStorageSaveData kkm_last_timestamp [09:37:07]File name is /storage/kkm_last_timestamp [09:37:07]Write 4 bytes [09:37:07]NVStorageSaveData done [09:37:07]OFD Sender: Processing packet 148707 [packets to send 100, broken 99] [09:37:07]ProducePacketName [09:37:07]name=ofd_packets/00148707 [09:37:07]OFD Sender: To server: pG, [09:37:07]CommunicateWithHost lk.salyk.kg:30040 [09:37:07]ConnectInit lk.salyk.kg [09:37:07]ExternCall_PrintAddStr [09:37:07]wPrintStart [09:37:07]Write to MH i2c: 01 00 00 4E 16 64 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 07 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 07 00 4E 16 00 00 00 00 00 FF 0F 79 [09:37:07]RasterBufferAndPrint [09:37:07]line Счет N : (1)979630 [09:37:07]line ИНН: 02508201610067 [09:37:07]line Контрольно-Кассовый Чек [09:37:07]line ПРОДАЖА [09:37:07]line ТРК (МРК, ГНК) : 12 [09:37:07]line Товар: 2710124130 [09:37:07]line Аи-92-К-5 [09:37:07]line 7.480 * 66.90 [09:37:07]line = 500.41 [09:37:07]line НДС 12% НСП 1% [09:37:07]line > о реализуемом товаре [09:37:07]line ОКРУГЛЕНИЕ: -0.41 [09:37:07]line ИТОГО: 500.00 [09:37:07]line Внесено: 500.00 [09:37:07]line СДАЧА: 0.00 [09:37:07]line НСП 1% : 4.43 [09:37:07]line НДС 12% : 53.14 [09:37:07]line Наличными: 500.00 [09:37:07]line Безнал.: 0.00 [09:37:07]line Место: АЗС № 68 "Партнер Нефть" [09:37:07]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:37:07]line СНО: Общий режим [09:37:07]line Чек 46 04.06.2024 09:37 [09:37:07]line Смена: 368 ФФД: 1.0 [09:37:08]line ЗНМ: 0300000035 [09:37:08]line РНМ: 0000000000092720 [09:37:08]line Версия ККМ: 001 [09:37:08]line ФМ: 0000000000875057 [09:37:08]line ФД: 148707 [09:37:08]line ФПД: 209895478161822 [09:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093708&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148707&fm=209895478161822&tin=02508201610067®Number=0000000000092720&sum=50000 [09:37:08]Connected sock=11 [09:37:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F4 9C 07 01 EE 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 44 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E3 44 02 00 35 04 06 00 BE E6 19 6A 71 9E 2F 93 13 30 16 7E 39 16 [09:37:08]written 0, free lines is 4095 [09:37:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BE D5 47 00 C0 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E3 44 02 00 F4 03 04 00 68 87 5E 66 B6 04 01 00 00 27 B4 67 50 C1 03 24 8F [09:37:08]CommunicateWithHost err = 0 [09:37:08]CheckOFDResponse [09:37:08]1017 (14) - 77093643461234 [09:37:08]1041 (16) - 0000000000875057 [09:37:08]1040 (4) - 148707 [09:37:08]1012 (4) - 04.06.2024 03:18 [09:37:08]1206 (1) - 0 [09:37:08]OFD Sender: Remove packet 148707 [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00148707 [09:37:08]NVStorageDeleteData [09:37:08]Write to MH i2c: 01 00 00 79 16 8F [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 79 16 00 00 00 00 00 61 0C 03 [09:37:08]RasterBufferAndPrint [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]written 0, free lines is 3173 [09:37:08]MH_Cut [09:37:08]Write to MH i2c: D1 01 00 80 16 01 68 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 01 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 01 00 80 16 00 67 [09:37:08]Write to MH i2c: 01 00 00 81 16 97 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]OFD Sender: No OFD packet to send [09:37:09]*** Cut start [09:37:09]*** Partial cut [09:37:09]*** CUTSNS_PIN = 1 [09:37:09]*** CUTSNS_PIN = 0 [09:37:10]*** Brake cut motor [09:37:10]Read from MH i2c: 01 [09:37:10]MH_I2C_Read... [09:37:10]*** Stop cut motor [09:37:10]*** Cut end [09:37:10]Read from MH i2c: 01 07 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 07 00 81 16 00 00 00 00 00 FF 0F AC [09:37:10]process_action close_receipt done [09:37:10]requested_data is exist [09:37:10]produce_requested_data [09:37:10]requested_item fm.sn is exist - process it [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 11 00 00 [09:37:10]Write to MH i2c: E2 08 00 82 16 80 11 00 00 00 00 00 00 12 [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 17 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 17 00 82 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 65 [09:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:37:10]wFMCommunicate OK [09:37:10]requested_item fd.num is exist - process it [09:37:10]SAM_PROTO_GetFieldsCounters [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 13 00 00 [09:37:10]Write to MH i2c: E2 08 00 83 16 80 13 00 00 00 00 00 00 15 [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 62 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 62 00 83 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E3 44 02 00 0E 04 04 00 70 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 55 [09:37:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E3 44 02 00 0E 04 04 00 70 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 [09:37:10]wFMCommunicate OK [09:37:10]SAM_PROTO_GetFieldsCounters done [09:37:10]requested_item shift.num is exist - process it [09:37:10]requested_item shift.opened is exist - process it [09:37:10]req_shift_opened [09:37:10]FM_GetShiftState [09:37:10]SAM_PROTO_GetShiftState [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 13 01 00 [09:37:10]Write to MH i2c: E2 08 00 84 16 80 13 01 00 00 00 00 00 17 [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 0E 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 0E 00 84 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DA [09:37:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:37:10]wFMCommunicate OK [09:37:10]SAM_PROTO_GetShiftState done [09:37:10]FM_GetShiftState done [09:37:10]req_shift_opened done [09:37:10]requested_item shift.open_date is exist - process it [09:37:10]req_shift_open_date [09:37:10]req_shift_open_date done [09:37:10]produce_requested_data done [09:37:10]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148707,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:37:10]process_action_free close_receipt [09:37:10]json_value_free [09:37:10]json_value_free done [09:37:10]process_json_proto returns [09:37:10]Send response to host [09:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148707,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:37:10]free response buf [09:37:10]execute_script done [09:37:10]execute_script returns [09:37:10]free content buf [09:37:10]Sock 9.Close socket [09:37:10]Sock 9.Thread stoped [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:50]accept exits with 7 [09:39:50]New connection [09:39:50]New thread 3066809700 created [09:39:50]Thread 3066666340 joined [09:39:50]Waiting for new connection... [09:39:50] Sock 7.Parse request [09:39:50]Sock 7.Check first char [09:39:50]Sock 7.First char is OK [09:39:50]request: POST /json_proto HTTP/1.0 [09:39:50]Method: POST [09:39:50]URL: /json_proto [09:39:50]Method is POST - this is cgi request [09:39:50]url: /json_proto [09:39:50]query_string will be loaded in cgi processing [09:39:50]execute_cgi json_proto POST (null) [09:39:50]execute_cgi path=json_proto method=POST [09:39:50]POST find Content-Length [09:39:50]Host: 172.17.38.4:8080 [09:39:50]Content-Length: 965 [09:39:50]Content-Type: application/json [09:39:50] [09:39:50]POST finish read [09:39:50]Found Content-Length = 965 [09:39:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 23.92 \u0441\u043E\u043C", "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:50]execute_script... [09:39: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)979631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 23.92 \u0441\u043E\u043C", "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:50]POST & json_proto [09:39:50]process_json_proto [09:39:50]json parsed OK: [09:39:50]protocol is kg_v1.0 [09:39:50]action value=close_receipt [09:39:50]process_action close_receipt [09:39:50]cmd_close_receipt [09:39:50]MH_GetDate [09:39:50]Write to MH i2c: F0 00 00 85 16 8A [09:39:50]Write i2c OK [09:39:50]MH_I2C_Read... [09:39:50]Read from MH i2c: F0 [09:39:50]MH_I2C_Read... [09:39:50]Read from MH i2c: F0 09 00 [09:39:50]MH_I2C_Read... [09:39:50]Read from MH i2c: F0 09 00 85 16 00 E9 E0 5E 66 CC 51 87 64 28 [09:39:50]GetLastDocTimeStamp 1717493828 [09:39:50]current date 1717493993 [09:39:50]FM_GetShiftState [09:39:50]SAM_PROTO_GetShiftState [09:39:50]wFMCommunicate request_size=4 [09:39:50]MH_SAM_APDU [09:39:50]CAPDU: 80 13 01 00 [09:39:50]Write to MH i2c: E2 08 00 86 16 80 13 01 00 00 00 00 00 19 [09:39:50]Write i2c OK [09:39:50]MH_I2C_Read... [09:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:50]Read from MH i2c: E2 [09:39:50]MH_I2C_Read... [09:39:50]Read from MH i2c: E2 0E 00 [09:39:50]MH_I2C_Read... [09:39:50]Read from MH i2c: E2 0E 00 86 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DC [09:39:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:39:50]wFMCommunicate OK [09:39:50]SAM_PROTO_GetShiftState done [09:39:50]FM_GetShiftState done [09:39:50]opened in 1717460629 [09:39:50]opened+sec_in_day 1717547029 [09:39:50]quantity*price = 160024 [09:39:50]sum+1 = 160026 [09:39:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 47 04.06.2024 09:39 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа S-92 номер 68 сэкономлено 23.92 сом ФМ: 0000000000875057 ФД: 148708 ФПД: 50407664084224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093953&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148708&fm=50407664084224&tin=02508201610067®Number=0000000000092720&sum=160000 [09:39:52]StoreToDocumentArchive [09:39:52]shift 368 fd 148708 [09:39:52]save to /storage/0368/doc_00148708 [09:39:52]save last doc name /storage/0368/doc_00148708 to /storage/kkm_last_doc_name [09:39:52]save OK [09:39:52]Clear old archive folders... [09:39:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:39:52]tlvbuf is B6E9ED70 [09:39:52]SAM_PROTO_ClearQueue [09:39:52]wFMCommunicate request_size=4 [09:39:52]MH_SAM_APDU [09:39:52]CAPDU: 80 09 00 00 [09:39:52]Write to MH i2c: E2 08 00 93 16 80 09 00 00 00 00 00 00 1B [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:52]Read from MH i2c: E2 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 03 00 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 03 00 93 16 00 90 00 1D [09:39:52]RAPDU: 90 00 [09:39:52]wFMCommunicate OK [09:39:52]SAM_PROTO_ClearQueue done [09:39:52]KKMCreateOFDPacket [09:39:52]OFDProtocolAddRootSTLVToBuf [09:39:52]FM_MakeSignedData [09:39:52]FM_MakeSignedData [09:39:52]SAM_PROTO_SignData [09:39:52]wFMCommunicate request_size=4 [09:39:52]MH_SAM_APDU [09:39:52]CAPDU: 80 0D 01 02 [09:39:52]Write to MH i2c: E2 08 00 94 16 80 0D 01 02 00 00 00 00 23 [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:52]Read from MH i2c: E2 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 03 00 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 03 00 94 16 00 90 00 1E [09:39:52]RAPDU: 90 00 [09:39:52]wFMCommunicate OK [09:39:52]wFMCommunicate request_size=255 [09:39:52]MH_SAM_APDU [09:39:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E9 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E4 44 02 00 35 04 06 00 [09:39:52]Write to MH i2c: E2 02 01 95 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E9 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E4 44 02 00 35 04 06 00 00 00 C8 [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:52]Read from MH i2c: E2 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 03 00 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 03 00 95 16 00 90 00 1F [09:39:52]RAPDU: 90 00 [09:39:52]wFMCommunicate OK [09:39:52]wFMCommunicate request_size=11 [09:39:52]MH_SAM_APDU [09:39:52]CAPDU: 80 0D 02 02 06 2D D8 72 E9 65 00 [09:39:52]Write to MH i2c: E2 0E 00 96 16 80 0D 02 02 06 00 2D D8 72 E9 65 00 00 00 F7 [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:52]Read from MH i2c: E2 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 03 00 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 03 00 96 16 00 90 00 20 [09:39:52]RAPDU: 90 00 [09:39:52]wFMCommunicate OK [09:39:52]wFMCommunicate request_size=4 [09:39:52]MH_SAM_APDU [09:39:52]CAPDU: 80 0D 03 02 [09:39:52]Write to MH i2c: E2 08 00 97 16 80 0D 03 02 00 00 00 00 28 [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:52]Read from MH i2c: E2 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 0B 00 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 0B 00 97 16 00 7F 4F 8D 71 C6 BB 20 E5 90 00 7B [09:39:52]RAPDU: 7F 4F 8D 71 C6 BB 20 E5 90 00 [09:39:52]wFMCommunicate OK [09:39:52]SAM_PROTO_SignData done [09:39:52]FM_MakeSignedData done [09:39:52]CreateOFDProtocolMessage [09:39:52]wFMCommunicate request_size=4 [09:39:52]MH_SAM_APDU [09:39:52]CAPDU: 80 11 00 00 [09:39:52]Write to MH i2c: E2 08 00 98 16 80 11 00 00 00 00 00 00 28 [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:52]Read from MH i2c: E2 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 17 00 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: E2 17 00 98 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7B [09:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:39:52]wFMCommunicate OK [09:39:52]CreateOFDProtocolMessage done [09:39:52]OFDSenderStorePacket 148708 [09:39:52]StoreOFDPacket docnum=148708 [09:39:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 59 D1 08 01 3D 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E9 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E4 44 02 00 35 04 06 00 2D D8 72 E9 65 00 7F 4F 8D 71 C6 BB 20 E5 [09:39:52]CheckFolder [09:39:52]dirname=/storage/ofd_packets [09:39:52]CheckFolder done [09:39:52]ProducePacketName [09:39:52]name=ofd_packets/00148708 [09:39:52]NVStorageSaveData ofd_packets/00148708 [09:39:52]File name is /storage/ofd_packets/00148708 [09:39:52]Write 302 bytes [09:39:52]NVStorageSaveData done [09:39:52]OFDSenderStorePacket done [09:39:52]KKMCreateOFDPacket done [09:39:52]NVStorageSaveData kkm_last_timestamp [09:39:52]File name is /storage/kkm_last_timestamp [09:39:52]Write 4 bytes [09:39:52]NVStorageSaveData done [09:39:52]ExternCall_PrintAddStr [09:39:52]wPrintStart [09:39:52]Write to MH i2c: 01 00 00 99 16 AF [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: 01 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: 01 07 00 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: 01 07 00 99 16 00 00 00 00 00 FF 0F C4 [09:39:52]RasterBufferAndPrint [09:39:52]line Счет N : (1)979631 [09:39:52]line ИНН: 02508201610067 [09:39:52]line Контрольно-Кассовый Чек [09:39:52]line ПРОДАЖА [09:39:52]line ТРК (МРК, ГНК) : 43 [09:39:52]line Товар: 2710124130 [09:39:52]line SUPER 92-К-5 [09:39:52]line 23.920 * 66.90 [09:39:52]line = 1600.25 [09:39:52]line НДС 12% НСП 1% [09:39:52]line > о реализуемом товаре [09:39:52]line ОКРУГЛЕНИЕ: -0.25 [09:39:52]line ИТОГО: 1600.00 [09:39:52]line Внесено: 1600.00 [09:39:52]line СДАЧА: 0.00 [09:39:52]line НСП 1% : 14.16 [09:39:52]line НДС 12% : 169.94 [09:39:52]line Наличными: 1600.00 [09:39:52]line Безнал.: 0.00 [09:39:52]line Место: АЗС № 68 "Партнер Нефть" [09:39:52]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:39:52]line СНО: Общий режим [09:39:52]line Чек 47 04.06.2024 09:39 [09:39:52]line Смена: 368 ФФД: 1.0 [09:39:52]line ЗНМ: 0300000035 [09:39:52]line РНМ: 0000000000092720 [09:39:52]line Версия ККМ: 001 [09:39:52]line [09:39:52]line Дисконтная программа [09:39:52]line S-92 [09:39:52]line номер 68 [09:39:52]line сэкономлено 23.92 сом [09:39:52]line ФМ: 0000000000875057 [09:39:52]line ФД: 148708 [09:39:52]line ФПД: 50407664084224 [09:39:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093953&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148708&fm=50407664084224&tin=02508201610067®Number=0000000000092720&sum=160000 [09:39:52]OFD Sender: Processing packet 148708 [packets to send 100, broken 99] [09:39:52]ProducePacketName [09:39:52]name=ofd_packets/00148708 [09:39:52]OFD Sender: To server: pG, [09:39:52]CommunicateWithHost lk.salyk.kg:30040 [09:39:52]ConnectInit lk.salyk.kg [09:39:52]written 0, free lines is 4095 [09:39:52]Connected sock=10 [09:39:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 59 D1 08 01 3D 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E9 E0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E4 44 02 00 35 04 06 00 2D D8 72 E9 65 00 7F 4F 8D 71 C6 BB 20 E5 [09:39:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A2 53 47 00 6E 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E4 44 02 00 F4 03 04 00 0D 88 5E 66 B6 04 01 00 00 BC 75 CE 1A B5 EB EF 82 [09:39:53]CommunicateWithHost err = 0 [09:39:53]CheckOFDResponse [09:39:53]1017 (14) - 77093643461234 [09:39:53]1041 (16) - 0000000000875057 [09:39:53]1040 (4) - 148708 [09:39:53]1012 (4) - 04.06.2024 03:20 [09:39:53]1206 (1) - 0 [09:39:53]OFD Sender: Remove packet 148708 [09:39:53]ProducePacketName [09:39:53]name=ofd_packets/00148708 [09:39:53]NVStorageDeleteData [09:39:53]Write to MH i2c: 01 00 00 C9 16 DF [09:39:53]Write i2c OK [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: 01 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: 01 07 00 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: 01 07 00 C9 16 00 00 00 00 00 EC 0B DD [09:39:53]RasterBufferAndPrint [09:39:53]line [09:39:53]line [09:39:53]line [09:39:53]line [09:39:53]line [09:39:53]written 0, free lines is 3055 [09:39:53]MH_Cut [09:39:53]Write to MH i2c: D1 01 00 D0 16 01 B8 [09:39:53]Write i2c OK [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: D1 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: D1 01 00 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: D1 01 00 D0 16 00 B7 [09:39:53]Write to MH i2c: 01 00 00 D1 16 E7 [09:39:53]Write i2c OK [09:39:53]MH_I2C_Read... [09:39:53]OFD Sender: No OFD packet to send [09:39:54]*** Cut start [09:39:54]*** Partial cut [09:39:54]*** CUTSNS_PIN = 1 [09:39:54]*** CUTSNS_PIN = 0 [09:39:55]*** Brake cut motor [09:39:55]Read from MH i2c: 01 [09:39:55]MH_I2C_Read... [09:39:55]*** Stop cut motor [09:39:55]*** Cut end [09:39:55]Read from MH i2c: 01 07 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: 01 07 00 D1 16 00 00 00 00 00 FF 0F FC [09:39:55]process_action close_receipt done [09:39:55]requested_data is exist [09:39:55]produce_requested_data [09:39:55]requested_item fm.sn is exist - process it [09:39:55]wFMCommunicate request_size=4 [09:39:55]MH_SAM_APDU [09:39:55]CAPDU: 80 11 00 00 [09:39:55]Write to MH i2c: E2 08 00 D2 16 80 11 00 00 00 00 00 00 62 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:55]Read from MH i2c: E2 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 17 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 17 00 D2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B5 [09:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:39:55]wFMCommunicate OK [09:39:55]requested_item fd.num is exist - process it [09:39:55]SAM_PROTO_GetFieldsCounters [09:39:55]wFMCommunicate request_size=4 [09:39:55]MH_SAM_APDU [09:39:55]CAPDU: 80 13 00 00 [09:39:55]Write to MH i2c: E2 08 00 D3 16 80 13 00 00 00 00 00 00 65 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:55]Read from MH i2c: E2 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 62 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 62 00 D3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E4 44 02 00 0E 04 04 00 70 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 A9 [09:39:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E4 44 02 00 0E 04 04 00 70 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 [09:39:55]wFMCommunicate OK [09:39:55]SAM_PROTO_GetFieldsCounters done [09:39:55]requested_item shift.num is exist - process it [09:39:55]requested_item shift.opened is exist - process it [09:39:55]req_shift_opened [09:39:55]FM_GetShiftState [09:39:55]SAM_PROTO_GetShiftState [09:39:55]wFMCommunicate request_size=4 [09:39:55]MH_SAM_APDU [09:39:55]CAPDU: 80 13 01 00 [09:39:55]Write to MH i2c: E2 08 00 D4 16 80 13 01 00 00 00 00 00 67 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:55]Read from MH i2c: E2 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 0E 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 0E 00 D4 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2A [09:39:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:39:55]wFMCommunicate OK [09:39:55]SAM_PROTO_GetShiftState done [09:39:55]FM_GetShiftState done [09:39:55]req_shift_opened done [09:39:55]requested_item shift.open_date is exist - process it [09:39:55]req_shift_open_date [09:39:55]req_shift_open_date done [09:39:55]produce_requested_data done [09:39:55]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148708,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:39:55]process_action_free close_receipt [09:39:55]json_value_free [09:39:55]json_value_free done [09:39:55]process_json_proto returns [09:39:55]Send response to host [09:39:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148708,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:39:55]free response buf [09:39:55]execute_script done [09:39:55]execute_script returns [09:39:55]free content buf [09:39:55]Sock 7.Close socket [09:39:55]Sock 7.Thread stoped [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:41:59]accept exits with 9 [09:41:59]New connection [09:41:59]New thread 3066666340 created [09:41:59]Thread 3066809700 joined [09:41:59]Waiting for new connection... [09:41:59] Sock 9.Parse request [09:41:59]Sock 9.Check first char [09:41:59]Sock 9.First char is OK [09:41:59]request: POST /json_proto HTTP/1.0 [09:41:59]Method: POST [09:41:59]URL: /json_proto [09:41:59]Method is POST - this is cgi request [09:41:59]url: /json_proto [09:41:59]query_string will be loaded in cgi processing [09:41:59]execute_cgi json_proto POST (null) [09:41:59]execute_cgi path=json_proto method=POST [09:41:59]POST find Content-Length [09:41:59]Host: 172.17.38.4:8080 [09:41:59]Content-Length: 677 [09:41:59]Content-Type: application/json [09:41:59] [09:41:59]POST finish read [09:41:59]Found Content-Length = 677 [09:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:59]execute_script... [09:41:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:59]POST & json_proto [09:41:59]process_json_proto [09:41:59]json parsed OK: [09:41:59]protocol is kg_v1.0 [09:41:59]action value=close_receipt [09:41:59]process_action close_receipt [09:41:59]cmd_close_receipt [09:41:59]MH_GetDate [09:41:59]Write to MH i2c: F0 00 00 D5 16 DA [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: F0 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: F0 09 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: F0 09 00 D5 16 00 6A E1 5E 66 CC 51 87 64 FA [09:41:59]GetLastDocTimeStamp 1717493993 [09:41:59]current date 1717494122 [09:41:59]FM_GetShiftState [09:41:59]SAM_PROTO_GetShiftState [09:41:59]wFMCommunicate request_size=4 [09:41:59]MH_SAM_APDU [09:41:59]CAPDU: 80 13 01 00 [09:41:59]Write to MH i2c: E2 08 00 D6 16 80 13 01 00 00 00 00 00 69 [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:59]Read from MH i2c: E2 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 0E 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 0E 00 D6 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2C [09:41:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:41:59]wFMCommunicate OK [09:41:59]SAM_PROTO_GetShiftState done [09:41:59]FM_GetShiftState done [09:41:59]opened in 1717460629 [09:41:59]opened+sec_in_day 1717547029 [09:41:59]quantity*price = 40006 [09:41:59]sum+1 = 40007 [09:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 48 04.06.2024 09:42 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148709 ФПД: 87649957437686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094202&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148709&fm=87649957437686&tin=02508201610067®Number=0000000000092720&sum=40000 [09:42:00]StoreToDocumentArchive [09:42:00]shift 368 fd 148709 [09:42:00]save to /storage/0368/doc_00148709 [09:42:00]save last doc name /storage/0368/doc_00148709 to /storage/kkm_last_doc_name [09:42:00]save OK [09:42:00]Clear old archive folders... [09:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:00]tlvbuf is 015AC030 [09:42:00]SAM_PROTO_ClearQueue [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 09 00 00 [09:42:00]Write to MH i2c: E2 08 00 E3 16 80 09 00 00 00 00 00 00 6B [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]SAM_PROTO_ClearQueue done [09:42:00]KKMCreateOFDPacket [09:42:00]OFDProtocolAddRootSTLVToBuf [09:42:00]FM_MakeSignedData [09:42:00]FM_MakeSignedData [09:42:00]SAM_PROTO_SignData [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 01 02 [09:42:00]Write to MH i2c: E2 08 00 E4 16 80 0D 01 02 00 00 00 00 73 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]wFMCommunicate request_size=255 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 6A E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E5 44 02 00 35 04 06 00 4F [09:42:00]Write to MH i2c: E2 02 01 E5 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 6A E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E5 44 02 00 35 04 06 00 4F 00 00 F6 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 E5 16 00 90 00 6F [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]wFMCommunicate request_size=10 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 02 02 05 B7 98 93 E0 F6 [09:42:00]Write to MH i2c: E2 0D 00 E6 16 80 0D 02 02 05 00 B7 98 93 E0 F6 00 00 38 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 E6 16 00 90 00 70 [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 03 02 [09:42:00]Write to MH i2c: E2 08 00 E7 16 80 0D 03 02 00 00 00 00 78 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 0B 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 0B 00 E7 16 00 54 9A 7D FE F2 4A 82 77 90 00 17 [09:42:00]RAPDU: 54 9A 7D FE F2 4A 82 77 90 00 [09:42:00]wFMCommunicate OK [09:42:00]SAM_PROTO_SignData done [09:42:00]FM_MakeSignedData done [09:42:00]CreateOFDProtocolMessage [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 11 00 00 [09:42:00]Write to MH i2c: E2 08 00 E8 16 80 11 00 00 00 00 00 00 78 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:01]Read from MH i2c: E2 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 17 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 17 00 E8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CB [09:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:42:01]wFMCommunicate OK [09:42:01]CreateOFDProtocolMessage done [09:42:01]OFDSenderStorePacket 148709 [09:42:01]StoreOFDPacket docnum=148709 [09:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 45 88 07 01 66 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 6A E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E5 44 02 00 35 04 06 00 4F B7 98 93 E0 F6 54 9A 7D FE F2 4A 82 77 [09:42:01]CheckFolder [09:42:01]dirname=/storage/ofd_packets [09:42:01]CheckFolder done [09:42:01]ProducePacketName [09:42:01]name=ofd_packets/00148709 [09:42:01]NVStorageSaveData ofd_packets/00148709 [09:42:01]File name is /storage/ofd_packets/00148709 [09:42:01]Write 301 bytes [09:42:01]NVStorageSaveData done [09:42:01]OFDSenderStorePacket done [09:42:01]KKMCreateOFDPacket done [09:42:01]NVStorageSaveData kkm_last_timestamp [09:42:01]File name is /storage/kkm_last_timestamp [09:42:01]Write 4 bytes [09:42:01]NVStorageSaveData done [09:42:01]ExternCall_PrintAddStr [09:42:01]wPrintStart [09:42:01]Write to MH i2c: 01 00 00 E9 16 FF [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 E9 16 00 00 00 00 00 FF 0F 14 [09:42:01]RasterBufferAndPrint [09:42:01]line Счет N : (1)979632 [09:42:01]line ИНН: 02508201610067 [09:42:01]line Контрольно-Кассовый Чек [09:42:01]line ПРОДАЖА [09:42:01]line ТРК (МРК, ГНК) : 12 [09:42:01]line Товар: 2710124130 [09:42:01]line Аи-92-К-5 [09:42:01]line 5.980 * 66.90 [09:42:01]line = 400.06 [09:42:01]line НДС 12% НСП 1% [09:42:01]line > о реализуемом товаре [09:42:01]line ОКРУГЛЕНИЕ: -0.06 [09:42:01]line ИТОГО: 400.00 [09:42:01]line Внесено: 400.00 [09:42:01]line СДАЧА: 0.00 [09:42:01]line НСП 1% : 3.54 [09:42:01]line НДС 12% : 42.48 [09:42:01]line Наличными: 400.00 [09:42:01]line Безнал.: 0.00 [09:42:01]line Место: АЗС № 68 "Партнер Нефть" [09:42:01]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:42:01]line СНО: Общий режим [09:42:01]line Чек 48 04.06.2024 09:42 [09:42:01]line Смена: 368 ФФД: 1.0 [09:42:01]line ЗНМ: 0300000035 [09:42:01]line РНМ: 0000000000092720 [09:42:01]line Версия ККМ: 001 [09:42:01]line ФМ: 0000000000875057 [09:42:01]line ФД: 148709 [09:42:01]line ФПД: 87649957437686 [09:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094202&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148709&fm=87649957437686&tin=02508201610067®Number=0000000000092720&sum=40000 [09:42:01]OFD Sender: Processing packet 148709 [packets to send 100, broken 99] [09:42:01]ProducePacketName [09:42:01]name=ofd_packets/00148709 [09:42:01]OFD Sender: To server: pG, [09:42:01]CommunicateWithHost lk.salyk.kg:30040 [09:42:01]ConnectInit lk.salyk.kg [09:42:01]written 0, free lines is 4095 [09:42:01]Connected sock=10 [09:42:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 45 88 07 01 66 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 6A E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E5 44 02 00 35 04 06 00 4F B7 98 93 E0 F6 54 9A 7D FE F2 4A 82 77 [09:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3B 6F 47 00 BA 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E5 44 02 00 F4 03 04 00 8E 88 5E 66 B6 04 01 00 00 06 5D F1 EC 0B 3D AF FE [09:42:01]CommunicateWithHost err = 0 [09:42:01]CheckOFDResponse [09:42:01]1017 (14) - 77093643461234 [09:42:01]1041 (16) - 0000000000875057 [09:42:01]1040 (4) - 148709 [09:42:01]1012 (4) - 04.06.2024 03:22 [09:42:01]1206 (1) - 0 [09:42:01]OFD Sender: Remove packet 148709 [09:42:01]ProducePacketName [09:42:01]name=ofd_packets/00148709 [09:42:01]NVStorageDeleteData [09:42:01]Write to MH i2c: 01 00 00 14 17 2B [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 14 17 00 00 00 00 00 68 0C A6 [09:42:01]RasterBufferAndPrint [09:42:01]line [09:42:01]line [09:42:01]line [09:42:01]line [09:42:01]line [09:42:01]written 0, free lines is 3179 [09:42:01]MH_Cut [09:42:01]Write to MH i2c: D1 01 00 1B 17 01 04 [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: D1 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: D1 01 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: D1 01 00 1B 17 00 03 [09:42:01]Write to MH i2c: 01 00 00 1C 17 33 [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:02]OFD Sender: No OFD packet to send [09:42:03]*** Cut start [09:42:03]*** Partial cut [09:42:03]*** CUTSNS_PIN = 1 [09:42:03]*** CUTSNS_PIN = 0 [09:42:03]*** Brake cut motor [09:42:03]Read from MH i2c: 01 [09:42:03]MH_I2C_Read... [09:42:03]*** Stop cut motor [09:42:03]*** Cut end [09:42:03]Read from MH i2c: 01 07 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 FF 0F 48 [09:42:03]process_action close_receipt done [09:42:03]requested_data is exist [09:42:03]produce_requested_data [09:42:03]requested_item fm.sn is exist - process it [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 11 00 00 [09:42:03]Write to MH i2c: E2 08 00 1D 17 80 11 00 00 00 00 00 00 AE [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 17 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 17 00 1D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 01 [09:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:42:03]wFMCommunicate OK [09:42:03]requested_item fd.num is exist - process it [09:42:03]SAM_PROTO_GetFieldsCounters [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 13 00 00 [09:42:03]Write to MH i2c: E2 08 00 1E 17 80 13 00 00 00 00 00 00 B1 [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 62 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 62 00 1E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E5 44 02 00 0E 04 04 00 70 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 F9 [09:42:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E5 44 02 00 0E 04 04 00 70 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 [09:42:03]wFMCommunicate OK [09:42:03]SAM_PROTO_GetFieldsCounters done [09:42:03]requested_item shift.num is exist - process it [09:42:03]requested_item shift.opened is exist - process it [09:42:03]req_shift_opened [09:42:03]FM_GetShiftState [09:42:03]SAM_PROTO_GetShiftState [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 13 01 00 [09:42:03]Write to MH i2c: E2 08 00 1F 17 80 13 01 00 00 00 00 00 B3 [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:04]Read from MH i2c: E2 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: E2 0E 00 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: E2 0E 00 1F 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 76 [09:42:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:42:04]wFMCommunicate OK [09:42:04]SAM_PROTO_GetShiftState done [09:42:04]FM_GetShiftState done [09:42:04]req_shift_opened done [09:42:04]requested_item shift.open_date is exist - process it [09:42:04]req_shift_open_date [09:42:04]req_shift_open_date done [09:42:04]produce_requested_data done [09:42:04]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148709,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:42:04]process_action_free close_receipt [09:42:04]json_value_free [09:42:04]json_value_free done [09:42:04]process_json_proto returns [09:42:04]Send response to host [09:42:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148709,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:42:04]free response buf [09:42:04]execute_script done [09:42:04]execute_script returns [09:42:04]free content buf [09:42:04]Sock 9.Close socket [09:42:04]Sock 9.Thread stoped [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:37]accept exits with 7 [09:42:37]New connection [09:42:37]New thread 3066809700 created [09:42:37]Thread 3066666340 joined [09:42:37]Waiting for new connection... [09:42:37] Sock 7.Parse request [09:42:37]Sock 7.Check first char [09:42:37]Sock 7.First char is OK [09:42:37]request: POST /json_proto HTTP/1.0 [09:42:37]Method: POST [09:42:37]URL: /json_proto [09:42:37]Method is POST - this is cgi request [09:42:37]url: /json_proto [09:42:37]query_string will be loaded in cgi processing [09:42:37]execute_cgi json_proto POST (null) [09:42:37]execute_cgi path=json_proto method=POST [09:42:37]POST find Content-Length [09:42:37]Host: 172.17.38.4:8080 [09:42:37]Content-Length: 677 [09:42:37]Content-Type: application/json [09:42:37] [09:42:37]POST finish read [09:42:37]Found Content-Length = 677 [09:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:37]execute_script... [09:42: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)979633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:37]POST & json_proto [09:42:37]process_json_proto [09:42:37]json parsed OK: [09:42:37]protocol is kg_v1.0 [09:42:37]action value=close_receipt [09:42:37]process_action close_receipt [09:42:37]cmd_close_receipt [09:42:37]MH_GetDate [09:42:37]Write to MH i2c: F0 00 00 20 17 26 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: F0 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: F0 09 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: F0 09 00 20 17 00 90 E1 5E 66 CC 51 87 64 6C [09:42:37]GetLastDocTimeStamp 1717494122 [09:42:37]current date 1717494160 [09:42:37]FM_GetShiftState [09:42:37]SAM_PROTO_GetShiftState [09:42:37]wFMCommunicate request_size=4 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 13 01 00 [09:42:37]Write to MH i2c: E2 08 00 21 17 80 13 01 00 00 00 00 00 B5 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 0E 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 0E 00 21 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 78 [09:42:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:42:37]wFMCommunicate OK [09:42:37]SAM_PROTO_GetShiftState done [09:42:37]FM_GetShiftState done [09:42:37]opened in 1717460629 [09:42:37]opened+sec_in_day 1717547029 [09:42:37]quantity*price = 30038 [09:42:37]sum+1 = 30039 [09:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 49 04.06.2024 09:42 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148710 ФПД: 260397332784008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094240&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148710&fm=260397332784008&tin=02508201610067®Number=0000000000092720&sum=30000 [09:42:38]StoreToDocumentArchive [09:42:38]shift 368 fd 148710 [09:42:38]save to /storage/0368/doc_00148710 [09:42:38]save last doc name /storage/0368/doc_00148710 to /storage/kkm_last_doc_name [09:42:38]save OK [09:42:38]Clear old archive folders... [09:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:38]tlvbuf is 015A7D90 [09:42:38]SAM_PROTO_ClearQueue [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 09 00 00 [09:42:38]Write to MH i2c: E2 08 00 2E 17 80 09 00 00 00 00 00 00 B7 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:38]Read from MH i2c: E2 03 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 03 00 2E 17 00 90 00 B9 [09:42:38]RAPDU: 90 00 [09:42:38]wFMCommunicate OK [09:42:38]SAM_PROTO_ClearQueue done [09:42:38]KKMCreateOFDPacket [09:42:38]OFDProtocolAddRootSTLVToBuf [09:42:38]FM_MakeSignedData [09:42:38]FM_MakeSignedData [09:42:38]SAM_PROTO_SignData [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 0D 01 02 [09:42:38]Write to MH i2c: E2 08 00 2F 17 80 0D 01 02 00 00 00 00 BF [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 2F 17 00 90 00 BA [09:42:39]RAPDU: 90 00 [09:42:39]wFMCommunicate OK [09:42:39]wFMCommunicate request_size=255 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 90 E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E6 44 02 00 35 04 06 00 EC [09:42:39]Write to MH i2c: E2 02 01 30 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 90 E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E6 44 02 00 35 04 06 00 EC 00 00 2C [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 30 17 00 90 00 BB [09:42:39]RAPDU: 90 00 [09:42:39]wFMCommunicate OK [09:42:39]wFMCommunicate request_size=10 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 0D 02 02 05 D4 7A 85 63 88 [09:42:39]Write to MH i2c: E2 0D 00 31 17 80 0D 02 02 05 00 D4 7A 85 63 88 00 00 8A [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 31 17 00 90 00 BC [09:42:39]RAPDU: 90 00 [09:42:39]wFMCommunicate OK [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 0D 03 02 [09:42:39]Write to MH i2c: E2 08 00 32 17 80 0D 03 02 00 00 00 00 C4 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 0B 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 0B 00 32 17 00 DF 54 27 EE EC 6B 79 90 90 00 6D [09:42:39]RAPDU: DF 54 27 EE EC 6B 79 90 90 00 [09:42:39]wFMCommunicate OK [09:42:39]SAM_PROTO_SignData done [09:42:39]FM_MakeSignedData done [09:42:39]CreateOFDProtocolMessage [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 11 00 00 [09:42:39]Write to MH i2c: E2 08 00 33 17 80 11 00 00 00 00 00 00 C4 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 17 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 17 00 33 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 17 [09:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:42:39]wFMCommunicate OK [09:42:39]CreateOFDProtocolMessage done [09:42:39]OFDSenderStorePacket 148710 [09:42:39]StoreOFDPacket docnum=148710 [09:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F2 9C 07 01 16 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 90 E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E6 44 02 00 35 04 06 00 EC D4 7A 85 63 88 DF 54 27 EE EC 6B 79 90 [09:42:39]CheckFolder [09:42:39]dirname=/storage/ofd_packets [09:42:39]CheckFolder done [09:42:39]ProducePacketName [09:42:39]name=ofd_packets/00148710 [09:42:39]NVStorageSaveData ofd_packets/00148710 [09:42:39]File name is /storage/ofd_packets/00148710 [09:42:39]Write 301 bytes [09:42:39]NVStorageSaveData done [09:42:39]OFDSenderStorePacket done [09:42:39]KKMCreateOFDPacket done [09:42:39]NVStorageSaveData kkm_last_timestamp [09:42:39]File name is /storage/kkm_last_timestamp [09:42:39]Write 4 bytes [09:42:39]NVStorageSaveData done [09:42:39]ExternCall_PrintAddStr [09:42:39]wPrintStart [09:42:39]Write to MH i2c: 01 00 00 34 17 4B [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 07 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 07 00 34 17 00 00 00 00 00 FF 0F 60 [09:42:39]RasterBufferAndPrint [09:42:39]line Счет N : (1)979633 [09:42:39]line ИНН: 02508201610067 [09:42:39]line Контрольно-Кассовый Чек [09:42:39]line ПРОДАЖА [09:42:39]line ТРК (МРК, ГНК) : 22 [09:42:39]line Товар: 2710124130 [09:42:39]line Аи-92-К-5 [09:42:39]line 4.490 * 66.90 [09:42:39]line = 300.38 [09:42:39]line НДС 12% НСП 1% [09:42:39]line > о реализуемом товаре [09:42:39]line ОКРУГЛЕНИЕ: -0.38 [09:42:39]line ИТОГО: 300.00 [09:42:39]line Внесено: 300.00 [09:42:39]line СДАЧА: 0.00 [09:42:39]line НСП 1% : 2.66 [09:42:39]line НДС 12% : 31.90 [09:42:39]line Наличными: 300.00 [09:42:39]line Безнал.: 0.00 [09:42:39]line Место: АЗС № 68 "Партнер Нефть" [09:42:39]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:42:39]line СНО: Общий режим [09:42:39]line Чек 49 04.06.2024 09:42 [09:42:39]line Смена: 368 ФФД: 1.0 [09:42:39]line ЗНМ: 0300000035 [09:42:39]line РНМ: 0000000000092720 [09:42:39]line Версия ККМ: 001 [09:42:39]line ФМ: 0000000000875057 [09:42:39]line ФД: 148710 [09:42:39]line ФПД: 260397332784008 [09:42:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094240&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148710&fm=260397332784008&tin=02508201610067®Number=0000000000092720&sum=30000 [09:42:39]OFD Sender: Processing packet 148710 [packets to send 100, broken 99] [09:42:39]ProducePacketName [09:42:39]name=ofd_packets/00148710 [09:42:39]OFD Sender: To server: pG, [09:42:39]CommunicateWithHost lk.salyk.kg:30040 [09:42:39]ConnectInit lk.salyk.kg [09:42:39]written 0, free lines is 4095 [09:42:39]Connected sock=10 [09:42:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F2 9C 07 01 16 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 90 E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E6 44 02 00 35 04 06 00 EC D4 7A 85 63 88 DF 54 27 EE EC 6B 79 90 [09:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CD DE 47 00 8E C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E6 44 02 00 F4 03 04 00 B4 88 5E 66 B6 04 01 00 00 4E AD 72 DF 4D 51 48 E4 [09:42:40]CommunicateWithHost err = 0 [09:42:40]CheckOFDResponse [09:42:40]1017 (14) - 77093643461234 [09:42:40]1041 (16) - 0000000000875057 [09:42:40]1040 (4) - 148710 [09:42:40]1012 (4) - 04.06.2024 03:23 [09:42:40]1206 (1) - 0 [09:42:40]OFD Sender: Remove packet 148710 [09:42:40]ProducePacketName [09:42:40]name=ofd_packets/00148710 [09:42:40]NVStorageDeleteData [09:42:40]Write to MH i2c: 01 00 00 5F 17 76 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 5F 17 00 00 00 00 00 70 0C F9 [09:42:40]RasterBufferAndPrint [09:42:40]line [09:42:40]line [09:42:40]line [09:42:40]line [09:42:40]line [09:42:40]written 0, free lines is 3187 [09:42:40]MH_Cut [09:42:40]Write to MH i2c: D1 01 00 66 17 01 4F [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: D1 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: D1 01 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: D1 01 00 66 17 00 4E [09:42:40]Write to MH i2c: 01 00 00 67 17 7E [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]OFD Sender: No OFD packet to send [09:42:41]*** Cut start [09:42:41]*** Partial cut [09:42:41]*** CUTSNS_PIN = 1 [09:42:41]*** CUTSNS_PIN = 0 [09:42:41]*** Brake cut motor [09:42:42]Read from MH i2c: 01 [09:42:42]MH_I2C_Read... [09:42:42]*** Stop cut motor [09:42:42]*** Cut end [09:42:42]Read from MH i2c: 01 07 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 67 17 00 00 00 00 00 FF 0F 93 [09:42:42]process_action close_receipt done [09:42:42]requested_data is exist [09:42:42]produce_requested_data [09:42:42]requested_item fm.sn is exist - process it [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 11 00 00 [09:42:42]Write to MH i2c: E2 08 00 68 17 80 11 00 00 00 00 00 00 F9 [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 17 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 17 00 68 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4C [09:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:42:42]wFMCommunicate OK [09:42:42]requested_item fd.num is exist - process it [09:42:42]SAM_PROTO_GetFieldsCounters [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 13 00 00 [09:42:42]Write to MH i2c: E2 08 00 69 17 80 13 00 00 00 00 00 00 FC [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 62 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 62 00 69 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E6 44 02 00 0E 04 04 00 70 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 48 [09:42:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E6 44 02 00 0E 04 04 00 70 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 [09:42:42]wFMCommunicate OK [09:42:42]SAM_PROTO_GetFieldsCounters done [09:42:42]requested_item shift.num is exist - process it [09:42:42]requested_item shift.opened is exist - process it [09:42:42]req_shift_opened [09:42:42]FM_GetShiftState [09:42:42]SAM_PROTO_GetShiftState [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 13 01 00 [09:42:42]Write to MH i2c: E2 08 00 6A 17 80 13 01 00 00 00 00 00 FE [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 0E 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 0E 00 6A 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C1 [09:42:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:42:42]wFMCommunicate OK [09:42:42]SAM_PROTO_GetShiftState done [09:42:42]FM_GetShiftState done [09:42:42]req_shift_opened done [09:42:42]requested_item shift.open_date is exist - process it [09:42:42]req_shift_open_date [09:42:42]req_shift_open_date done [09:42:42]produce_requested_data done [09:42:42]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148710,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:42:42]process_action_free close_receipt [09:42:42]json_value_free [09:42:42]json_value_free done [09:42:42]process_json_proto returns [09:42:42]Send response to host [09:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148710,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:42:42]free response buf [09:42:42]execute_script done [09:42:42]execute_script returns [09:42:42]free content buf [09:42:42]Sock 7.Close socket [09:42:42]Sock 7.Thread stoped [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:08]accept exits with 9 [09:43:08]New connection [09:43:08]New thread 3066666340 created [09:43:08]Thread 3066809700 joined [09:43:08]Waiting for new connection... [09:43:08] Sock 9.Parse request [09:43:08]Sock 9.Check first char [09:43:08]Sock 9.First char is OK [09:43:08]request: POST /json_proto HTTP/1.0 [09:43:08]Method: POST [09:43:08]URL: /json_proto [09:43:08]Method is POST - this is cgi request [09:43:08]url: /json_proto [09:43:08]query_string will be loaded in cgi processing [09:43:08]execute_cgi json_proto POST (null) [09:43:08]execute_cgi path=json_proto method=POST [09:43:08]POST find Content-Length [09:43:08]Host: 172.17.38.4:8080 [09:43:08]Content-Length: 677 [09:43:08]Content-Type: application/json [09:43:08] [09:43:08]POST finish read [09:43:08]Found Content-Length = 677 [09:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:08]execute_script... [09:43: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)979634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:08]POST & json_proto [09:43:08]process_json_proto [09:43:08]json parsed OK: [09:43:08]protocol is kg_v1.0 [09:43:08]action value=close_receipt [09:43:08]process_action close_receipt [09:43:08]cmd_close_receipt [09:43:08]MH_GetDate [09:43:08]Write to MH i2c: F0 00 00 6B 17 71 [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: F0 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: F0 09 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: F0 09 00 6B 17 00 AE E1 5E 66 CC 51 87 64 D5 [09:43:08]GetLastDocTimeStamp 1717494160 [09:43:08]current date 1717494190 [09:43:08]FM_GetShiftState [09:43:08]SAM_PROTO_GetShiftState [09:43:08]wFMCommunicate request_size=4 [09:43:08]MH_SAM_APDU [09:43:08]CAPDU: 80 13 01 00 [09:43:08]Write to MH i2c: E2 08 00 6C 17 80 13 01 00 00 00 00 00 00 [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:08]Read from MH i2c: E2 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 0E 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 0E 00 6C 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C3 [09:43:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:43:08]wFMCommunicate OK [09:43:08]SAM_PROTO_GetShiftState done [09:43:08]FM_GetShiftState done [09:43:08]opened in 1717460629 [09:43:08]opened+sec_in_day 1717547029 [09:43:08]quantity*price = 20003 [09:43:08]sum+1 = 20004 [09:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 50 04.06.2024 09:43 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148711 ФПД: 7013528113049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094310&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148711&fm=7013528113049&tin=02508201610067®Number=0000000000092720&sum=20000 [09:43:09]StoreToDocumentArchive [09:43:09]shift 368 fd 148711 [09:43:09]save to /storage/0368/doc_00148711 [09:43:09]save last doc name /storage/0368/doc_00148711 to /storage/kkm_last_doc_name [09:43:09]save OK [09:43:09]Clear old archive folders... [09:43:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:09]tlvbuf is B6E9E540 [09:43:09]SAM_PROTO_ClearQueue [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 09 00 00 [09:43:09]Write to MH i2c: E2 08 00 79 17 80 09 00 00 00 00 00 00 02 [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 79 17 00 90 00 04 [09:43:09]RAPDU: 90 00 [09:43:09]wFMCommunicate OK [09:43:09]SAM_PROTO_ClearQueue done [09:43:09]KKMCreateOFDPacket [09:43:09]OFDProtocolAddRootSTLVToBuf [09:43:09]FM_MakeSignedData [09:43:09]FM_MakeSignedData [09:43:09]SAM_PROTO_SignData [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 0D 01 02 [09:43:09]Write to MH i2c: E2 08 00 7A 17 80 0D 01 02 00 00 00 00 0A [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 7A 17 00 90 00 05 [09:43:09]RAPDU: 90 00 [09:43:09]wFMCommunicate OK [09:43:09]wFMCommunicate request_size=255 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 AE E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E7 44 02 00 35 04 06 00 06 [09:43:09]Write to MH i2c: E2 02 01 7B 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 AE E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E7 44 02 00 35 04 06 00 06 00 00 7F [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 7B 17 00 90 00 06 [09:43:09]RAPDU: 90 00 [09:43:09]wFMCommunicate OK [09:43:09]wFMCommunicate request_size=10 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 0D 02 02 05 60 F6 DA 0F 99 [09:43:09]Write to MH i2c: E2 0D 00 7C 17 80 0D 02 02 05 00 60 F6 DA 0F 99 00 00 EF [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 7C 17 00 90 00 07 [09:43:09]RAPDU: 90 00 [09:43:09]wFMCommunicate OK [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 0D 03 02 [09:43:09]Write to MH i2c: E2 08 00 7D 17 80 0D 03 02 00 00 00 00 0F [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 0B 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 0B 00 7D 17 00 1D DC 56 5A 73 FE E7 50 90 00 61 [09:43:09]RAPDU: 1D DC 56 5A 73 FE E7 50 90 00 [09:43:09]wFMCommunicate OK [09:43:09]SAM_PROTO_SignData done [09:43:09]FM_MakeSignedData done [09:43:09]CreateOFDProtocolMessage [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 11 00 00 [09:43:09]Write to MH i2c: E2 08 00 7E 17 80 11 00 00 00 00 00 00 0F [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 17 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 17 00 7E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 62 [09:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:43:09]wFMCommunicate OK [09:43:09]CreateOFDProtocolMessage done [09:43:09]OFDSenderStorePacket 148711 [09:43:09]StoreOFDPacket docnum=148711 [09:43:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C7 4B 07 01 83 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 AE E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E7 44 02 00 35 04 06 00 06 60 F6 DA 0F 99 1D DC 56 5A 73 FE E7 50 [09:43:09]CheckFolder [09:43:09]dirname=/storage/ofd_packets [09:43:09]CheckFolder done [09:43:09]ProducePacketName [09:43:09]name=ofd_packets/00148711 [09:43:09]NVStorageSaveData ofd_packets/00148711 [09:43:09]File name is /storage/ofd_packets/00148711 [09:43:09]Write 301 bytes [09:43:09]NVStorageSaveData done [09:43:09]OFDSenderStorePacket done [09:43:09]KKMCreateOFDPacket done [09:43:09]NVStorageSaveData kkm_last_timestamp [09:43:09]File name is /storage/kkm_last_timestamp [09:43:09]Write 4 bytes [09:43:09]NVStorageSaveData done [09:43:09]ExternCall_PrintAddStr [09:43:09]wPrintStart [09:43:09]Write to MH i2c: 01 00 00 7F 17 96 [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: 01 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: 01 07 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: 01 07 00 7F 17 00 00 00 00 00 FF 0F AB [09:43:09]RasterBufferAndPrint [09:43:09]line Счет N : (1)979634 [09:43:09]line ИНН: 02508201610067 [09:43:09]line Контрольно-Кассовый Чек [09:43:09]line ПРОДАЖА [09:43:09]line ТРК (МРК, ГНК) : 12 [09:43:09]line Товар: 2710124130 [09:43:09]line Аи-92-К-5 [09:43:09]line 2.990 * 66.90 [09:43:09]line = 200.03 [09:43:09]line НДС 12% НСП 1% [09:43:09]line > о реализуемом товаре [09:43:09]line ОКРУГЛЕНИЕ: -0.03 [09:43:09]line ИТОГО: 200.00 [09:43:09]line Внесено: 200.00 [09:43:09]line СДАЧА: 0.00 [09:43:09]line НСП 1% : 1.77 [09:43:09]line НДС 12% : 21.24 [09:43:09]line Наличными: 200.00 [09:43:09]line Безнал.: 0.00 [09:43:09]line Место: АЗС № 68 "Партнер Нефть" [09:43:09]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:43:09]line СНО: Общий режим [09:43:09]line Чек 50 04.06.2024 09:43 [09:43:09]line Смена: 368 ФФД: 1.0 [09:43:09]line ЗНМ: 0300000035 [09:43:09]line РНМ: 0000000000092720 [09:43:09]line Версия ККМ: 001 [09:43:10]line ФМ: 0000000000875057 [09:43:10]line ФД: 148711 [09:43:10]line ФПД: 7013528113049 [09:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094310&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148711&fm=7013528113049&tin=02508201610067®Number=0000000000092720&sum=20000 [09:43:10]OFD Sender: Processing packet 148711 [packets to send 100, broken 99] [09:43:10]ProducePacketName [09:43:10]name=ofd_packets/00148711 [09:43:10]OFD Sender: To server: pG, [09:43:10]CommunicateWithHost lk.salyk.kg:30040 [09:43:10]ConnectInit lk.salyk.kg [09:43:10]written 0, free lines is 4095 [09:43:10]Connected sock=10 [09:43:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C7 4B 07 01 83 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 AE E1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E7 44 02 00 35 04 06 00 06 60 F6 DA 0F 99 1D DC 56 5A 73 FE E7 50 [09:43:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 11 2F 47 00 3F 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 38 37 35 30 35 37 10 04 04 00 E7 44 02 00 F4 03 04 00 D3 88 5E 66 B6 04 01 00 00 17 6F 1C DB D2 35 5C C0 [09:43:10]CommunicateWithHost err = 0 [09:43:10]CheckOFDResponse [09:43:10]1017 (14) - 77093643461234 [09:43:10]1041 (16) - 0000000000875057 [09:43:10]1040 (4) - 148711 [09:43:10]1012 (4) - 04.06.2024 03:24 [09:43:10]1206 (1) - 0 [09:43:10]OFD Sender: Remove packet 148711 [09:43:10]ProducePacketName [09:43:10]name=ofd_packets/00148711 [09:43:10]NVStorageDeleteData [09:43:10]Write to MH i2c: 01 00 00 AA 17 C1 [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: 01 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: 01 07 00 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: 01 07 00 AA 17 00 00 00 00 00 63 0C 37 [09:43:10]RasterBufferAndPrint [09:43:10]line [09:43:10]line [09:43:10]line [09:43:10]line [09:43:10]line [09:43:10]written 0, free lines is 3175 [09:43:10]MH_Cut [09:43:10]Write to MH i2c: D1 01 00 B1 17 01 9A [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: D1 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: D1 01 00 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: D1 01 00 B1 17 00 99 [09:43:10]Write to MH i2c: 01 00 00 B2 17 C9 [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]OFD Sender: No OFD packet to send [09:43:11]*** Cut start [09:43:11]*** Partial cut [09:43:11]*** CUTSNS_PIN = 1 [09:43:11]*** CUTSNS_PIN = 0 [09:43:12]*** Brake cut motor [09:43:12]Read from MH i2c: 01 [09:43:12]MH_I2C_Read... [09:43:12]*** Stop cut motor [09:43:12]*** Cut end [09:43:12]Read from MH i2c: 01 07 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: 01 07 00 B2 17 00 00 00 00 00 FF 0F DE [09:43:12]process_action close_receipt done [09:43:12]requested_data is exist [09:43:12]produce_requested_data [09:43:12]requested_item fm.sn is exist - process it [09:43:12]wFMCommunicate request_size=4 [09:43:12]MH_SAM_APDU [09:43:12]CAPDU: 80 11 00 00 [09:43:12]Write to MH i2c: E2 08 00 B3 17 80 11 00 00 00 00 00 00 44 [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:12]Read from MH i2c: E2 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 17 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 17 00 B3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 97 [09:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:43:12]wFMCommunicate OK [09:43:12]requested_item fd.num is exist - process it [09:43:12]SAM_PROTO_GetFieldsCounters [09:43:12]wFMCommunicate request_size=4 [09:43:12]MH_SAM_APDU [09:43:12]CAPDU: 80 13 00 00 [09:43:12]Write to MH i2c: E2 08 00 B4 17 80 13 00 00 00 00 00 00 47 [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:12]Read from MH i2c: E2 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 62 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 62 00 B4 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E7 44 02 00 0E 04 04 00 70 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 97 [09:43:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E7 44 02 00 0E 04 04 00 70 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 [09:43:12]wFMCommunicate OK [09:43:12]SAM_PROTO_GetFieldsCounters done [09:43:12]requested_item shift.num is exist - process it [09:43:12]requested_item shift.opened is exist - process it [09:43:12]req_shift_opened [09:43:12]FM_GetShiftState [09:43:12]SAM_PROTO_GetShiftState [09:43:12]wFMCommunicate request_size=4 [09:43:12]MH_SAM_APDU [09:43:12]CAPDU: 80 13 01 00 [09:43:12]Write to MH i2c: E2 08 00 B5 17 80 13 01 00 00 00 00 00 49 [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:12]Read from MH i2c: E2 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 0E 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 0E 00 B5 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0C [09:43:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:43:12]wFMCommunicate OK [09:43:12]SAM_PROTO_GetShiftState done [09:43:12]FM_GetShiftState done [09:43:12]req_shift_opened done [09:43:12]requested_item shift.open_date is exist - process it [09:43:12]req_shift_open_date [09:43:12]req_shift_open_date done [09:43:12]produce_requested_data done [09:43:12]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148711,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:43:12]process_action_free close_receipt [09:43:12]json_value_free [09:43:12]json_value_free done [09:43:12]process_json_proto returns [09:43:12]Send response to host [09:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148711,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:43:12]free response buf [09:43:12]execute_script done [09:43:12]execute_script returns [09:43:12]free content buf [09:43:12]Sock 9.Close socket [09:43:12]Sock 9.Thread stoped [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:43]recv_with_timeout no data received [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:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:39]accept exits with 7 [09:46:39]New connection [09:46:39]New thread 3066809700 created [09:46:39]Thread 3066666340 joined [09:46:39]Waiting for new connection... [09:46:39] Sock 7.Parse request [09:46:39]Sock 7.Check first char [09:46:39]Sock 7.First char is OK [09:46:39]request: POST /json_proto HTTP/1.0 [09:46:39]Method: POST [09:46:39]URL: /json_proto [09:46:39]Method is POST - this is cgi request [09:46:39]url: /json_proto [09:46:39]query_string will be loaded in cgi processing [09:46:39]execute_cgi json_proto POST (null) [09:46:39]execute_cgi path=json_proto method=POST [09:46:39]POST find Content-Length [09:46:39]Host: 172.17.38.4:8080 [09:46:39]Content-Length: 790 [09:46:39]Content-Type: application/json [09:46:39] [09:46:39]POST finish read [09:46:39]Found Content-Length = 790 [09:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:39]execute_script... [09:46:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:39]POST & json_proto [09:46:39]process_json_proto [09:46:39]json parsed OK: [09:46:39]protocol is kg_v1.0 [09:46:39]action value=close_receipt [09:46:39]process_action close_receipt [09:46:39]cmd_close_receipt [09:46:39]MH_GetDate [09:46:39]Write to MH i2c: F0 00 00 B6 17 BC [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: F0 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: F0 09 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: F0 09 00 B6 17 00 82 E2 5E 66 CC 51 87 64 F5 [09:46:39]GetLastDocTimeStamp 1717494190 [09:46:39]current date 1717494402 [09:46:39]FM_GetShiftState [09:46:39]SAM_PROTO_GetShiftState [09:46:39]wFMCommunicate request_size=4 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 13 01 00 [09:46:39]Write to MH i2c: E2 08 00 B7 17 80 13 01 00 00 00 00 00 4B [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 0E 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 0E 00 B7 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0E [09:46:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:46:39]wFMCommunicate OK [09:46:39]SAM_PROTO_GetShiftState done [09:46:39]FM_GetShiftState done [09:46:39]opened in 1717460629 [09:46:39]opened+sec_in_day 1717547029 [09:46:39]quantity*price = 150028 [09:46:39]sum+1 = 150029 [09:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 51 04.06.2024 09:46 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148712 ФПД: 213549010136646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094642&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148712&fm=213549010136646&tin=02508201610067®Number=0000000000092720&sum=150028 [09:46:40]StoreToDocumentArchive [09:46:40]shift 368 fd 148712 [09:46:40]save to /storage/0368/doc_00148712 [09:46:40]save last doc name /storage/0368/doc_00148712 to /storage/kkm_last_doc_name [09:46:40]save OK [09:46:40]Clear old archive folders... [09:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:46:40]tlvbuf is 01605A30 [09:46:40]SAM_PROTO_ClearQueue [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 09 00 00 [09:46:40]Write to MH i2c: E2 08 00 C4 17 80 09 00 00 00 00 00 00 4D [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 C4 17 00 90 00 4F [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]SAM_PROTO_ClearQueue done [09:46:40]KKMCreateOFDPacket [09:46:40]OFDProtocolAddRootSTLVToBuf [09:46:40]FM_MakeSignedData [09:46:40]FM_MakeSignedData [09:46:40]SAM_PROTO_SignData [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 01 02 [09:46:40]Write to MH i2c: E2 08 00 C5 17 80 0D 01 02 00 00 00 00 55 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 C5 17 00 90 00 50 [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=255 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 82 E2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E8 44 02 00 35 04 06 00 C2 38 C0 E4 [09:46:40]Write to MH i2c: E2 02 01 C6 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 82 E2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E8 44 02 00 35 04 06 00 C2 38 C0 E4 00 00 46 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:41]OFD Sender: No OFD packet to send [09:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 C6 17 00 90 00 51 [09:46:41]RAPDU: 90 00 [09:46:41]wFMCommunicate OK [09:46:41]wFMCommunicate request_size=7 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 0D 02 02 02 2E 46 [09:46:41]Write to MH i2c: E2 0A 00 C7 17 80 0D 02 02 02 00 2E 46 00 00 D0 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 C7 17 00 90 00 52 [09:46:41]RAPDU: 90 00 [09:46:41]wFMCommunicate OK [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 0D 03 02 [09:46:41]Write to MH i2c: E2 08 00 C8 17 80 0D 03 02 00 00 00 00 5A [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 0B 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 0B 00 C8 17 00 16 D7 72 6B D5 C9 C5 D8 90 00 60 [09:46:41]RAPDU: 16 D7 72 6B D5 C9 C5 D8 90 00 [09:46:41]wFMCommunicate OK [09:46:41]SAM_PROTO_SignData done [09:46:41]FM_MakeSignedData done [09:46:41]CreateOFDProtocolMessage [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 11 00 00 [09:46:41]Write to MH i2c: E2 08 00 C9 17 80 11 00 00 00 00 00 00 5A [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 17 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 17 00 C9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AD [09:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:46:41]wFMCommunicate OK [09:46:41]CreateOFDProtocolMessage done [09:46:41]OFDSenderStorePacket 148712 [09:46:41]StoreOFDPacket docnum=148712 [09:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 9A 31 04 01 8D 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 82 E2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E8 44 02 00 35 04 06 00 C2 38 C0 E4 2E 46 16 D7 72 6B D5 C9 C5 D8 [09:46:41]CheckFolder [09:46:41]dirname=/storage/ofd_packets [09:46:41]CheckFolder done [09:46:41]ProducePacketName [09:46:41]name=ofd_packets/00148712 [09:46:41]NVStorageSaveData ofd_packets/00148712 [09:46:41]File name is /storage/ofd_packets/00148712 [09:46:41]Write 298 bytes [09:46:41]NVStorageSaveData done [09:46:41]OFDSenderStorePacket done [09:46:41]KKMCreateOFDPacket done [09:46:41]NVStorageSaveData kkm_last_timestamp [09:46:41]File name is /storage/kkm_last_timestamp [09:46:41]Write 4 bytes [09:46:41]NVStorageSaveData done [09:46:41]ExternCall_PrintAddStr [09:46:41]wPrintStart [09:46:41]Write to MH i2c: 01 00 00 CA 17 E1 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 CA 17 00 00 00 00 00 FF 0F F6 [09:46:41]RasterBufferAndPrint [09:46:41]line Счет N : (1)979635 [09:46:41]line ИНН: 02508201610067 [09:46:41]line Контрольно-Кассовый Чек [09:46:41]line ПРОДАЖА [09:46:41]line ТРК (МРК, ГНК) : 51 [09:46:41]line Товар: 2710194210 [09:46:41]line ДТ-К-5 [09:46:41]line 20.580 * 72.90 [09:46:41]line = 1500.28 [09:46:41]line НДС 12% НСП 1% [09:46:41]line > о реализуемом товаре [09:46:41]line ИТОГО: 1500.28 [09:46:41]line НСП 1% : 13.28 [09:46:41]line НДС 12% : 159.32 [09:46:41]line Наличными: 0.00 [09:46:41]line Безнал.: 1500.28 [09:46:41]line Место: АЗС № 68 "Партнер Нефть" [09:46:41]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:46:41]line СНО: Общий режим [09:46:41]line Чек 51 04.06.2024 09:46 [09:46:41]line Смена: 368 ФФД: 1.0 [09:46:41]line ЗНМ: 0300000035 [09:46:41]line РНМ: 0000000000092720 [09:46:41]line Версия ККМ: 001 [09:46:41]line Платежная система: KICB Банк [09:46:41]line ФМ: 0000000000875057 [09:46:41]line ФД: 148712 [09:46:41]line ФПД: 213549010136646 [09:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094642&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148712&fm=213549010136646&tin=02508201610067®Number=0000000000092720&sum=150028 [09:46:41]OFD Sender: Processing packet 148712 [packets to send 100, broken 99] [09:46:41]ProducePacketName [09:46:41]name=ofd_packets/00148712 [09:46:41]OFD Sender: To server: pG, [09:46:41]CommunicateWithHost lk.salyk.kg:30040 [09:46:41]ConnectInit lk.salyk.kg [09:46:41]written 0, free lines is 4095 [09:46:41]Connected sock=10 [09:46:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 9A 31 04 01 8D 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 82 E2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E8 44 02 00 35 04 06 00 C2 38 C0 E4 2E 46 16 D7 72 6B D5 C9 C5 D8 [09:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 01 41 47 00 8F 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E8 44 02 00 F4 03 04 00 A6 89 5E 66 B6 04 01 00 00 5B 87 CA 8B 9D 81 19 44 [09:46:41]CommunicateWithHost err = 0 [09:46:41]CheckOFDResponse [09:46:41]1017 (14) - 77093643461234 [09:46:41]1041 (16) - 0000000000875057 [09:46:41]1040 (4) - 148712 [09:46:41]1012 (4) - 04.06.2024 03:27 [09:46:41]1206 (1) - 0 [09:46:41]OFD Sender: Remove packet 148712 [09:46:41]ProducePacketName [09:46:41]name=ofd_packets/00148712 [09:46:41]NVStorageDeleteData [09:46:42]Write to MH i2c: 01 00 00 F4 17 0B [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 F4 17 00 00 00 00 00 7E 0C 9C [09:46:42]RasterBufferAndPrint [09:46:42]line [09:46:42]line [09:46:42]line [09:46:42]line [09:46:42]line [09:46:42]written 0, free lines is 3201 [09:46:42]MH_Cut [09:46:42]Write to MH i2c: D1 01 00 FB 17 01 E4 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: D1 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: D1 01 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: D1 01 00 FB 17 00 E3 [09:46:42]Write to MH i2c: 01 00 00 FC 17 13 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]OFD Sender: No OFD packet to send [09:46:43]*** Cut start [09:46:43]*** Partial cut [09:46:43]*** CUTSNS_PIN = 1 [09:46:43]*** CUTSNS_PIN = 0 [09:46:43]*** Brake cut motor [09:46:44]Read from MH i2c: 01 [09:46:44]MH_I2C_Read... [09:46:44]*** Stop cut motor [09:46:44]*** Cut end [09:46:44]Read from MH i2c: 01 07 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: 01 07 00 FC 17 00 00 00 00 00 FF 0F 28 [09:46:44]process_action close_receipt done [09:46:44]requested_data is exist [09:46:44]produce_requested_data [09:46:44]requested_item fm.sn is exist - process it [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 11 00 00 [09:46:44]Write to MH i2c: E2 08 00 FD 17 80 11 00 00 00 00 00 00 8E [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 17 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 17 00 FD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E1 [09:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:46:44]wFMCommunicate OK [09:46:44]requested_item fd.num is exist - process it [09:46:44]SAM_PROTO_GetFieldsCounters [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 13 00 00 [09:46:44]Write to MH i2c: E2 08 00 FE 17 80 13 00 00 00 00 00 00 91 [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 62 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 62 00 FE 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E8 44 02 00 0E 04 04 00 70 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 E5 [09:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E8 44 02 00 0E 04 04 00 70 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 [09:46:44]wFMCommunicate OK [09:46:44]SAM_PROTO_GetFieldsCounters done [09:46:44]requested_item shift.num is exist - process it [09:46:44]requested_item shift.opened is exist - process it [09:46:44]req_shift_opened [09:46:44]FM_GetShiftState [09:46:44]SAM_PROTO_GetShiftState [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 13 01 00 [09:46:44]Write to MH i2c: E2 08 00 FF 17 80 13 01 00 00 00 00 00 93 [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 0E 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 0E 00 FF 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 56 [09:46:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:46:44]wFMCommunicate OK [09:46:44]SAM_PROTO_GetShiftState done [09:46:44]FM_GetShiftState done [09:46:44]req_shift_opened done [09:46:44]requested_item shift.open_date is exist - process it [09:46:44]req_shift_open_date [09:46:44]req_shift_open_date done [09:46:44]produce_requested_data done [09:46:44]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148712,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:46:44]process_action_free close_receipt [09:46:44]json_value_free [09:46:44]json_value_free done [09:46:44]process_json_proto returns [09:46:44]Send response to host [09:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148712,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:46:44]free response buf [09:46:44]execute_script done [09:46:44]execute_script returns [09:46:44]free content buf [09:46:44]Sock 7.Close socket [09:46:44]Sock 7.Thread stoped [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:03]accept exits with 9 [09:48:03]New connection [09:48:03]New thread 3066666340 created [09:48:03]Thread 3066809700 joined [09:48:03]Waiting for new connection... [09:48:03] Sock 9.Parse request [09:48:03]Sock 9.Check first char [09:48:03]Sock 9.First char is OK [09:48:03]request: POST /json_proto HTTP/1.0 [09:48:03]Method: POST [09:48:03]URL: /json_proto [09:48:03]Method is POST - this is cgi request [09:48:03]url: /json_proto [09:48:03]query_string will be loaded in cgi processing [09:48:03]execute_cgi json_proto POST (null) [09:48:03]execute_cgi path=json_proto method=POST [09:48:03]POST find Content-Length [09:48:03]Host: 172.17.38.4:8080 [09:48:03]Content-Length: 670 [09:48:03]Content-Type: application/json [09:48:03] [09:48:03]POST finish read [09:48:03]Found Content-Length = 670 [09:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [09:48:03]execute_script... [09:48: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)979636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [09:48:03]POST & json_proto [09:48:03]process_json_proto [09:48:03]json parsed OK: [09:48:03]protocol is kg_v1.0 [09:48:03]action value=close_receipt [09:48:03]process_action close_receipt [09:48:03]cmd_close_receipt [09:48:03]MH_GetDate [09:48:03]Write to MH i2c: F0 00 00 00 18 07 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: F0 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: F0 09 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: F0 09 00 00 18 00 D6 E2 5E 66 CC 51 87 64 94 [09:48:03]GetLastDocTimeStamp 1717494402 [09:48:03]current date 1717494486 [09:48:03]FM_GetShiftState [09:48:03]SAM_PROTO_GetShiftState [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 13 01 00 [09:48:03]Write to MH i2c: E2 08 00 01 18 80 13 01 00 00 00 00 00 96 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 0E 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 0E 00 01 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 59 [09:48:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:48:03]wFMCommunicate OK [09:48:03]SAM_PROTO_GetShiftState done [09:48:03]FM_GetShiftState done [09:48:03]opened in 1717460629 [09:48:03]opened+sec_in_day 1717547029 [09:48:03]quantity*price = 50042 [09:48:03]sum+1 = 50043 [09:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 52 04.06.2024 09:48 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148713 ФПД: 31044886777713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094806&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148713&fm=31044886777713&tin=02508201610067®Number=0000000000092720&sum=50000 [09:48:04]StoreToDocumentArchive [09:48:04]shift 368 fd 148713 [09:48:04]save to /storage/0368/doc_00148713 [09:48:04]save last doc name /storage/0368/doc_00148713 to /storage/kkm_last_doc_name [09:48:04]save OK [09:48:04]Clear old archive folders... [09:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:48:04]tlvbuf is 015F4D90 [09:48:04]SAM_PROTO_ClearQueue [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 09 00 00 [09:48:04]Write to MH i2c: E2 08 00 0E 18 80 09 00 00 00 00 00 00 98 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 0E 18 00 90 00 9A [09:48:04]RAPDU: 90 00 [09:48:04]wFMCommunicate OK [09:48:04]SAM_PROTO_ClearQueue done [09:48:04]KKMCreateOFDPacket [09:48:04]OFDProtocolAddRootSTLVToBuf [09:48:04]FM_MakeSignedData [09:48:04]FM_MakeSignedData [09:48:04]SAM_PROTO_SignData [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 0D 01 02 [09:48:04]Write to MH i2c: E2 08 00 0F 18 80 0D 01 02 00 00 00 00 A0 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:04]Read from MH i2c: E2 03 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 0F 18 00 90 00 9B [09:48:04]RAPDU: 90 00 [09:48:04]wFMCommunicate OK [09:48:04]wFMCommunicate request_size=255 [09:48:04]MH_SAM_APDU [09:48: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 55 50 45 52 20 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 34 00 00 00 F4 03 04 00 D6 E2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E9 44 02 00 35 04 06 00 [09:48:04]Write to MH i2c: E2 02 01 10 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 34 00 00 00 F4 03 04 00 D6 E2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E9 44 02 00 35 04 06 00 00 00 0D [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 10 18 00 90 00 9C [09:48:04]RAPDU: 90 00 [09:48:04]wFMCommunicate OK [09:48:04]wFMCommunicate request_size=11 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 0D 02 02 06 1C 3C 33 72 CF 71 [09:48:04]Write to MH i2c: E2 0E 00 11 18 80 0D 02 02 06 00 1C 3C 33 72 CF 71 00 00 EC [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:05]Read from MH i2c: E2 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 03 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 03 00 11 18 00 90 00 9D [09:48:05]RAPDU: 90 00 [09:48:05]wFMCommunicate OK [09:48:05]wFMCommunicate request_size=4 [09:48:05]MH_SAM_APDU [09:48:05]CAPDU: 80 0D 03 02 [09:48:05]Write to MH i2c: E2 08 00 12 18 80 0D 03 02 00 00 00 00 A5 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:05]Read from MH i2c: E2 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 0B 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 0B 00 12 18 00 2F 58 BD D4 A5 9A 34 40 90 00 71 [09:48:05]RAPDU: 2F 58 BD D4 A5 9A 34 40 90 00 [09:48:05]wFMCommunicate OK [09:48:05]SAM_PROTO_SignData done [09:48:05]FM_MakeSignedData done [09:48:05]CreateOFDProtocolMessage [09:48:05]wFMCommunicate request_size=4 [09:48:05]MH_SAM_APDU [09:48:05]CAPDU: 80 11 00 00 [09:48:05]Write to MH i2c: E2 08 00 13 18 80 11 00 00 00 00 00 00 A5 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:05]Read from MH i2c: E2 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 17 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 17 00 13 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F8 [09:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:48:05]wFMCommunicate OK [09:48:05]CreateOFDProtocolMessage done [09:48:05]OFDSenderStorePacket 148713 [09:48:05]StoreOFDPacket docnum=148713 [09:48:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 AF D7 08 01 45 33 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 34 00 00 00 F4 03 04 00 D6 E2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E9 44 02 00 35 04 06 00 1C 3C 33 72 CF 71 2F 58 BD D4 A5 9A 34 40 [09:48:05]CheckFolder [09:48:05]dirname=/storage/ofd_packets [09:48:05]CheckFolder done [09:48:05]ProducePacketName [09:48:05]name=ofd_packets/00148713 [09:48:05]NVStorageSaveData ofd_packets/00148713 [09:48:05]File name is /storage/ofd_packets/00148713 [09:48:05]Write 302 bytes [09:48:05]NVStorageSaveData done [09:48:05]OFDSenderStorePacket done [09:48:05]KKMCreateOFDPacket done [09:48:05]NVStorageSaveData kkm_last_timestamp [09:48:05]File name is /storage/kkm_last_timestamp [09:48:05]Write 4 bytes [09:48:05]NVStorageSaveData done [09:48:05]ExternCall_PrintAddStr [09:48:05]wPrintStart [09:48:05]Write to MH i2c: 01 00 00 14 18 2C [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 14 18 00 00 00 00 00 FF 0F 41 [09:48:05]RasterBufferAndPrint [09:48:05]line Счет N : (1)979636 [09:48:05]line ИНН: 02508201610067 [09:48:05]line Контрольно-Кассовый Чек [09:48:05]line ПРОДАЖА [09:48:05]line ТРК (МРК, ГНК) : 43 [09:48:05]line Товар: 2710124130 [09:48:05]line SUPER 92-К-5 [09:48:05]line 7.370 * 67.90 [09:48:05]line = 500.42 [09:48:05]line НДС 12% НСП 1% [09:48:05]line > о реализуемом товаре [09:48:05]line ОКРУГЛЕНИЕ: -0.42 [09:48:05]line ИТОГО: 500.00 [09:48:05]line Внесено: 500.00 [09:48:05]line СДАЧА: 0.00 [09:48:05]line НСП 1% : 4.43 [09:48:05]line НДС 12% : 53.14 [09:48:05]line Наличными: 500.00 [09:48:05]line Безнал.: 0.00 [09:48:05]line Место: АЗС № 68 "Партнер Нефть" [09:48:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:48:05]line СНО: Общий режим [09:48:05]line Чек 52 04.06.2024 09:48 [09:48:05]line Смена: 368 ФФД: 1.0 [09:48:05]line ЗНМ: 0300000035 [09:48:05]line РНМ: 0000000000092720 [09:48:05]line Версия ККМ: 001 [09:48:05]line ФМ: 0000000000875057 [09:48:05]line ФД: 148713 [09:48:05]line ФПД: 31044886777713 [09:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094806&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148713&fm=31044886777713&tin=02508201610067®Number=0000000000092720&sum=50000 [09:48:05]OFD Sender: Processing packet 148713 [packets to send 100, broken 99] [09:48:05]ProducePacketName [09:48:05]name=ofd_packets/00148713 [09:48:05]OFD Sender: To server: pG, [09:48:05]CommunicateWithHost lk.salyk.kg:30040 [09:48:05]ConnectInit lk.salyk.kg [09:48:05]written 0, free lines is 4095 [09:48:05]Connected sock=10 [09:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 AF D7 08 01 45 33 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 34 00 00 00 F4 03 04 00 D6 E2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E9 44 02 00 35 04 06 00 1C 3C 33 72 CF 71 2F 58 BD D4 A5 9A 34 40 [09:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 60 02 47 00 50 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E9 44 02 00 F4 03 04 00 FA 89 5E 66 B6 04 01 00 00 82 1C 38 84 88 C2 6E 47 [09:48:05]CommunicateWithHost err = 0 [09:48:05]CheckOFDResponse [09:48:05]1017 (14) - 77093643461234 [09:48:05]1041 (16) - 0000000000875057 [09:48:05]1040 (4) - 148713 [09:48:05]1012 (4) - 04.06.2024 03:28 [09:48:05]1206 (1) - 0 [09:48:05]OFD Sender: Remove packet 148713 [09:48:05]ProducePacketName [09:48:05]name=ofd_packets/00148713 [09:48:05]NVStorageDeleteData [09:48:05]Write to MH i2c: 01 00 00 3F 18 57 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 3F 18 00 00 00 00 00 68 0C D2 [09:48:05]RasterBufferAndPrint [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]written 0, free lines is 3179 [09:48:05]MH_Cut [09:48:05]Write to MH i2c: D1 01 00 46 18 01 30 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 01 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 01 00 46 18 00 2F [09:48:05]Write to MH i2c: 01 00 00 47 18 5F [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:06]OFD Sender: No OFD packet to send [09:48:07]*** Cut start [09:48:07]*** Partial cut [09:48:07]*** CUTSNS_PIN = 1 [09:48:07]*** CUTSNS_PIN = 0 [09:48:07]*** Brake cut motor [09:48:07]Read from MH i2c: 01 [09:48:07]MH_I2C_Read... [09:48:07]*** Stop cut motor [09:48:07]*** Cut end [09:48:07]Read from MH i2c: 01 07 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: 01 07 00 47 18 00 00 00 00 00 FF 0F 74 [09:48:07]process_action close_receipt done [09:48:07]requested_data is exist [09:48:07]produce_requested_data [09:48:07]requested_item fm.sn is exist - process it [09:48:07]wFMCommunicate request_size=4 [09:48:07]MH_SAM_APDU [09:48:07]CAPDU: 80 11 00 00 [09:48:07]Write to MH i2c: E2 08 00 48 18 80 11 00 00 00 00 00 00 DA [09:48:07]Write i2c OK [09:48:07]MH_I2C_Read... [09:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:07]Read from MH i2c: E2 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 17 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 17 00 48 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2D [09:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:48:07]wFMCommunicate OK [09:48:07]requested_item fd.num is exist - process it [09:48:07]SAM_PROTO_GetFieldsCounters [09:48:07]wFMCommunicate request_size=4 [09:48:07]MH_SAM_APDU [09:48:07]CAPDU: 80 13 00 00 [09:48:07]Write to MH i2c: E2 08 00 49 18 80 13 00 00 00 00 00 00 DD [09:48:07]Write i2c OK [09:48:07]MH_I2C_Read... [09:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:08]Read from MH i2c: E2 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 62 00 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 62 00 49 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E9 44 02 00 0E 04 04 00 70 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 35 [09:48:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E9 44 02 00 0E 04 04 00 70 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 [09:48:08]wFMCommunicate OK [09:48:08]SAM_PROTO_GetFieldsCounters done [09:48:08]requested_item shift.num is exist - process it [09:48:08]requested_item shift.opened is exist - process it [09:48:08]req_shift_opened [09:48:08]FM_GetShiftState [09:48:08]SAM_PROTO_GetShiftState [09:48:08]wFMCommunicate request_size=4 [09:48:08]MH_SAM_APDU [09:48:08]CAPDU: 80 13 01 00 [09:48:08]Write to MH i2c: E2 08 00 4A 18 80 13 01 00 00 00 00 00 DF [09:48:08]Write i2c OK [09:48:08]MH_I2C_Read... [09:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:08]Read from MH i2c: E2 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 0E 00 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 0E 00 4A 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A2 [09:48:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:48:08]wFMCommunicate OK [09:48:08]SAM_PROTO_GetShiftState done [09:48:08]FM_GetShiftState done [09:48:08]req_shift_opened done [09:48:08]requested_item shift.open_date is exist - process it [09:48:08]req_shift_open_date [09:48:08]req_shift_open_date done [09:48:08]produce_requested_data done [09:48:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148713,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:48:08]process_action_free close_receipt [09:48:08]json_value_free [09:48:08]json_value_free done [09:48:08]process_json_proto returns [09:48:08]Send response to host [09:48:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148713,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:48:08]free response buf [09:48:08]execute_script done [09:48:08]execute_script returns [09:48:08]free content buf [09:48:08]Sock 9.Close socket [09:48:08]Sock 9.Thread stoped [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:15]accept exits with 7 [09:50:15]New connection [09:50:15]New thread 3066809700 created [09:50:15]Thread 3066666340 joined [09:50:15]Waiting for new connection... [09:50:15] Sock 7.Parse request [09:50:15]Sock 7.Check first char [09:50:15]Sock 7.First char is OK [09:50:15]request: POST /json_proto HTTP/1.0 [09:50:15]Method: POST [09:50:15]URL: /json_proto [09:50:15]Method is POST - this is cgi request [09:50:15]url: /json_proto [09:50:15]query_string will be loaded in cgi processing [09:50:15]execute_cgi json_proto POST (null) [09:50:15]execute_cgi path=json_proto method=POST [09:50:15]POST find Content-Length [09:50:15]Host: 172.17.38.4:8080 [09:50:15]Content-Length: 670 [09:50:15]Content-Type: application/json [09:50:15] [09:50:15]POST finish read [09:50:15]Found Content-Length = 670 [09:50:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 4.420, "sum" : 300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:15]execute_script... [09:50: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)979637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 4.420, "sum" : 300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:15]POST & json_proto [09:50:15]process_json_proto [09:50:15]json parsed OK: [09:50:15]protocol is kg_v1.0 [09:50:15]action value=close_receipt [09:50:15]process_action close_receipt [09:50:15]cmd_close_receipt [09:50:15]MH_GetDate [09:50:15]Write to MH i2c: F0 00 00 4B 18 52 [09:50:15]Write i2c OK [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: F0 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: F0 09 00 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: F0 09 00 4B 18 00 59 E3 5E 66 CC 51 87 64 63 [09:50:15]GetLastDocTimeStamp 1717494486 [09:50:15]current date 1717494617 [09:50:15]FM_GetShiftState [09:50:15]SAM_PROTO_GetShiftState [09:50:15]wFMCommunicate request_size=4 [09:50:15]MH_SAM_APDU [09:50:15]CAPDU: 80 13 01 00 [09:50:15]Write to MH i2c: E2 08 00 4C 18 80 13 01 00 00 00 00 00 E1 [09:50:15]Write i2c OK [09:50:15]MH_I2C_Read... [09:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:15]Read from MH i2c: E2 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: E2 0E 00 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: E2 0E 00 4C 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A4 [09:50:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:50:15]wFMCommunicate OK [09:50:15]SAM_PROTO_GetShiftState done [09:50:15]FM_GetShiftState done [09:50:15]opened in 1717460629 [09:50:15]opened+sec_in_day 1717547029 [09:50:15]quantity*price = 30011 [09:50:15]sum+1 = 30013 [09:50:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 53 04.06.2024 09:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148714 ФПД: 266087340435803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095017&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148714&fm=266087340435803&tin=02508201610067®Number=0000000000092720&sum=30000 [09:50:16]StoreToDocumentArchive [09:50:16]shift 368 fd 148714 [09:50:16]save to /storage/0368/doc_00148714 [09:50:16]save last doc name /storage/0368/doc_00148714 to /storage/kkm_last_doc_name [09:50:16]save OK [09:50:16]Clear old archive folders... [09:50:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:50:16]tlvbuf is 015ABEA0 [09:50:16]SAM_PROTO_ClearQueue [09:50:16]wFMCommunicate request_size=4 [09:50:16]MH_SAM_APDU [09:50:16]CAPDU: 80 09 00 00 [09:50:16]Write to MH i2c: E2 08 00 59 18 80 09 00 00 00 00 00 00 E3 [09:50:16]Write i2c OK [09:50:16]MH_I2C_Read... [09:50:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:16]Read from MH i2c: E2 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 03 00 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 03 00 59 18 00 90 00 E5 [09:50:16]RAPDU: 90 00 [09:50:16]wFMCommunicate OK [09:50:16]SAM_PROTO_ClearQueue done [09:50:16]KKMCreateOFDPacket [09:50:16]OFDProtocolAddRootSTLVToBuf [09:50:16]FM_MakeSignedData [09:50:16]FM_MakeSignedData [09:50:16]SAM_PROTO_SignData [09:50:16]wFMCommunicate request_size=4 [09:50:16]MH_SAM_APDU [09:50:16]CAPDU: 80 0D 01 02 [09:50:16]Write to MH i2c: E2 08 00 5A 18 80 0D 01 02 00 00 00 00 EB [09:50:16]Write i2c OK [09:50:16]MH_I2C_Read... [09:50:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:16]Read from MH i2c: E2 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 03 00 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 03 00 5A 18 00 90 00 E6 [09:50:16]RAPDU: 90 00 [09:50:16]wFMCommunicate OK [09:50:16]wFMCommunicate request_size=255 [09:50:16]MH_SAM_APDU [09:50:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 59 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EA 44 02 00 35 04 06 00 [09:50:16]Write to MH i2c: E2 02 01 5B 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 59 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EA 44 02 00 35 04 06 00 00 00 DD [09:50:16]Write i2c OK [09:50:16]MH_I2C_Read... [09:50:16]OFD Sender: No OFD packet to send [09:50:16]Read from MH i2c: E2 [09:50:16]MH_I2C_Read... [09:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:16]Read from MH i2c: E2 03 00 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 03 00 5B 18 00 90 00 E7 [09:50:16]RAPDU: 90 00 [09:50:16]wFMCommunicate OK [09:50:16]wFMCommunicate request_size=11 [09:50:16]MH_SAM_APDU [09:50:16]CAPDU: 80 0D 02 02 06 F2 01 49 67 E9 5B [09:50:16]Write to MH i2c: E2 0E 00 5C 18 80 0D 02 02 06 00 F2 01 49 67 E9 5B 00 00 E1 [09:50:16]Write i2c OK [09:50:16]MH_I2C_Read... [09:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:16]Read from MH i2c: E2 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 03 00 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 03 00 5C 18 00 90 00 E8 [09:50:16]RAPDU: 90 00 [09:50:16]wFMCommunicate OK [09:50:16]wFMCommunicate request_size=4 [09:50:16]MH_SAM_APDU [09:50:16]CAPDU: 80 0D 03 02 [09:50:16]Write to MH i2c: E2 08 00 5D 18 80 0D 03 02 00 00 00 00 F0 [09:50:16]Write i2c OK [09:50:16]MH_I2C_Read... [09:50:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:16]Read from MH i2c: E2 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 0B 00 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 0B 00 5D 18 00 0A D4 DC AA A8 A2 ED 5A 90 00 E6 [09:50:16]RAPDU: 0A D4 DC AA A8 A2 ED 5A 90 00 [09:50:16]wFMCommunicate OK [09:50:16]SAM_PROTO_SignData done [09:50:16]FM_MakeSignedData done [09:50:16]CreateOFDProtocolMessage [09:50:16]wFMCommunicate request_size=4 [09:50:16]MH_SAM_APDU [09:50:16]CAPDU: 80 11 00 00 [09:50:16]Write to MH i2c: E2 08 00 5E 18 80 11 00 00 00 00 00 00 F0 [09:50:16]Write i2c OK [09:50:16]MH_I2C_Read... [09:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:16]Read from MH i2c: E2 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 17 00 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: E2 17 00 5E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 43 [09:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:50:16]wFMCommunicate OK [09:50:16]CreateOFDProtocolMessage done [09:50:16]OFDSenderStorePacket 148714 [09:50:16]StoreOFDPacket docnum=148714 [09:50:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 14 C6 08 01 7E 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 59 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EA 44 02 00 35 04 06 00 F2 01 49 67 E9 5B 0A D4 DC AA A8 A2 ED 5A [09:50:16]CheckFolder [09:50:16]dirname=/storage/ofd_packets [09:50:16]CheckFolder done [09:50:16]ProducePacketName [09:50:16]name=ofd_packets/00148714 [09:50:16]NVStorageSaveData ofd_packets/00148714 [09:50:16]File name is /storage/ofd_packets/00148714 [09:50:16]Write 302 bytes [09:50:16]NVStorageSaveData done [09:50:16]OFDSenderStorePacket done [09:50:16]KKMCreateOFDPacket done [09:50:16]NVStorageSaveData kkm_last_timestamp [09:50:16]File name is /storage/kkm_last_timestamp [09:50:16]Write 4 bytes [09:50:16]NVStorageSaveData done [09:50:16]ExternCall_PrintAddStr [09:50:16]wPrintStart [09:50:16]Write to MH i2c: 01 00 00 5F 18 77 [09:50:16]Write i2c OK [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: 01 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: 01 07 00 [09:50:16]MH_I2C_Read... [09:50:16]Read from MH i2c: 01 07 00 5F 18 00 00 00 00 00 FF 0F 8C [09:50:16]RasterBufferAndPrint [09:50:16]line Счет N : (1)979637 [09:50:16]line ИНН: 02508201610067 [09:50:16]line Контрольно-Кассовый Чек [09:50:16]line ПРОДАЖА [09:50:16]line ТРК (МРК, ГНК) : 43 [09:50:16]line Товар: 2710124130 [09:50:16]line SUPER 92-К-5 [09:50:16]line 4.420 * 67.90 [09:50:16]line = 300.12 [09:50:16]line НДС 12% НСП 1% [09:50:16]line > о реализуемом товаре [09:50:16]line ОКРУГЛЕНИЕ: -0.12 [09:50:16]line ИТОГО: 300.00 [09:50:16]line Внесено: 300.00 [09:50:16]line СДАЧА: 0.00 [09:50:16]line НСП 1% : 2.66 [09:50:16]line НДС 12% : 31.87 [09:50:16]line Наличными: 300.00 [09:50:16]line Безнал.: 0.00 [09:50:16]line Место: АЗС № 68 "Партнер Нефть" [09:50:16]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:50:16]line СНО: Общий режим [09:50:16]line Чек 53 04.06.2024 09:50 [09:50:16]line Смена: 368 ФФД: 1.0 [09:50:16]line ЗНМ: 0300000035 [09:50:16]line РНМ: 0000000000092720 [09:50:16]line Версия ККМ: 001 [09:50:16]line ФМ: 0000000000875057 [09:50:16]line ФД: 148714 [09:50:16]line ФПД: 266087340435803 [09:50:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095017&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148714&fm=266087340435803&tin=02508201610067®Number=0000000000092720&sum=30000 [09:50:17]OFD Sender: Processing packet 148714 [packets to send 100, broken 99] [09:50:17]ProducePacketName [09:50:17]name=ofd_packets/00148714 [09:50:17]OFD Sender: To server: pG, [09:50:17]CommunicateWithHost lk.salyk.kg:30040 [09:50:17]ConnectInit lk.salyk.kg [09:50:17]written 0, free lines is 4095 [09:50:17]Connected sock=10 [09:50:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 14 C6 08 01 7E 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 59 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EA 44 02 00 35 04 06 00 F2 01 49 67 E9 5B 0A D4 DC AA A8 A2 ED 5A [09:50:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 53 8A 47 00 BB 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EA 44 02 00 F4 03 04 00 7E 8A 5E 66 B6 04 01 00 00 21 65 C2 A4 47 99 71 93 [09:50:17]CommunicateWithHost err = 0 [09:50:17]CheckOFDResponse [09:50:17]1017 (14) - 77093643461234 [09:50:17]1041 (16) - 0000000000875057 [09:50:17]1040 (4) - 148714 [09:50:17]1012 (4) - 04.06.2024 03:31 [09:50:17]1206 (1) - 0 [09:50:17]OFD Sender: Remove packet 148714 [09:50:17]ProducePacketName [09:50:17]name=ofd_packets/00148714 [09:50:17]NVStorageDeleteData [09:50:17]Write to MH i2c: 01 00 00 8A 18 A2 [09:50:17]Write i2c OK [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: 01 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: 01 07 00 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: 01 07 00 8A 18 00 00 00 00 00 6E 0C 23 [09:50:17]RasterBufferAndPrint [09:50:17]line [09:50:17]line [09:50:17]line [09:50:17]line [09:50:17]line [09:50:17]written 0, free lines is 3185 [09:50:17]MH_Cut [09:50:17]Write to MH i2c: D1 01 00 91 18 01 7B [09:50:17]Write i2c OK [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: D1 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: D1 01 00 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: D1 01 00 91 18 00 7A [09:50:17]Write to MH i2c: 01 00 00 92 18 AA [09:50:17]Write i2c OK [09:50:17]MH_I2C_Read... [09:50:17]OFD Sender: No OFD packet to send [09:50:18]*** Cut start [09:50:18]*** Partial cut [09:50:18]*** CUTSNS_PIN = 1 [09:50:18]*** CUTSNS_PIN = 0 [09:50:19]*** Brake cut motor [09:50:19]Read from MH i2c: 01 [09:50:19]MH_I2C_Read... [09:50:19]*** Stop cut motor [09:50:19]*** Cut end [09:50:19]Read from MH i2c: 01 07 00 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: 01 07 00 92 18 00 00 00 00 00 FF 0F BF [09:50:19]process_action close_receipt done [09:50:19]requested_data is exist [09:50:19]produce_requested_data [09:50:19]requested_item fm.sn is exist - process it [09:50:19]wFMCommunicate request_size=4 [09:50:19]MH_SAM_APDU [09:50:19]CAPDU: 80 11 00 00 [09:50:19]Write to MH i2c: E2 08 00 93 18 80 11 00 00 00 00 00 00 25 [09:50:19]Write i2c OK [09:50:19]MH_I2C_Read... [09:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:19]Read from MH i2c: E2 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: E2 17 00 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: E2 17 00 93 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 78 [09:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:50:19]wFMCommunicate OK [09:50:19]requested_item fd.num is exist - process it [09:50:19]SAM_PROTO_GetFieldsCounters [09:50:19]wFMCommunicate request_size=4 [09:50:19]MH_SAM_APDU [09:50:19]CAPDU: 80 13 00 00 [09:50:19]Write to MH i2c: E2 08 00 94 18 80 13 00 00 00 00 00 00 28 [09:50:19]Write i2c OK [09:50:19]MH_I2C_Read... [09:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:19]Read from MH i2c: E2 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: E2 62 00 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: E2 62 00 94 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EA 44 02 00 0E 04 04 00 70 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 84 [09:50:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EA 44 02 00 0E 04 04 00 70 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 [09:50:19]wFMCommunicate OK [09:50:19]SAM_PROTO_GetFieldsCounters done [09:50:19]requested_item shift.num is exist - process it [09:50:19]requested_item shift.opened is exist - process it [09:50:19]req_shift_opened [09:50:19]FM_GetShiftState [09:50:19]SAM_PROTO_GetShiftState [09:50:19]wFMCommunicate request_size=4 [09:50:19]MH_SAM_APDU [09:50:19]CAPDU: 80 13 01 00 [09:50:19]Write to MH i2c: E2 08 00 95 18 80 13 01 00 00 00 00 00 2A [09:50:19]Write i2c OK [09:50:19]MH_I2C_Read... [09:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:19]Read from MH i2c: E2 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: E2 0E 00 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: E2 0E 00 95 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 ED [09:50:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:50:19]wFMCommunicate OK [09:50:19]SAM_PROTO_GetShiftState done [09:50:19]FM_GetShiftState done [09:50:19]req_shift_opened done [09:50:19]requested_item shift.open_date is exist - process it [09:50:19]req_shift_open_date [09:50:19]req_shift_open_date done [09:50:19]produce_requested_data done [09:50:19]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148714,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:50:19]process_action_free close_receipt [09:50:19]json_value_free [09:50:19]json_value_free done [09:50:19]process_json_proto returns [09:50:19]Send response to host [09:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148714,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:50:19]free response buf [09:50:19]execute_script done [09:50:19]execute_script returns [09:50:19]free content buf [09:50:19]Sock 7.Close socket [09:50:19]Sock 7.Thread stoped [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:45]accept exits with 9 [09:51:45]New connection [09:51:45]New thread 3066666340 created [09:51:45]Thread 3066809700 joined [09:51:45]Waiting for new connection... [09:51:45] Sock 9.Parse request [09:51:45]Sock 9.Check first char [09:51:45]Sock 9.First char is OK [09:51:45]request: POST /json_proto HTTP/1.0 [09:51:45]Method: POST [09:51:45]URL: /json_proto [09:51:45]Method is POST - this is cgi request [09:51:45]url: /json_proto [09:51:45]query_string will be loaded in cgi processing [09:51:45]execute_cgi json_proto POST (null) [09:51:45]execute_cgi path=json_proto method=POST [09:51:45]POST find Content-Length [09:51:45]Host: 172.17.38.4:8080 [09:51:45]Content-Length: 677 [09:51:45]Content-Type: application/json [09:51:45] [09:51:45]POST finish read [09:51:45]Found Content-Length = 677 [09:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:45]execute_script... [09:51:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:45]POST & json_proto [09:51:45]process_json_proto [09:51:45]json parsed OK: [09:51:45]protocol is kg_v1.0 [09:51:45]action value=close_receipt [09:51:45]process_action close_receipt [09:51:45]cmd_close_receipt [09:51:45]MH_GetDate [09:51:45]Write to MH i2c: F0 00 00 96 18 9D [09:51:45]Write i2c OK [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: F0 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: F0 09 00 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: F0 09 00 96 18 00 B4 E3 5E 66 CC 51 87 64 09 [09:51:45]GetLastDocTimeStamp 1717494617 [09:51:45]current date 1717494708 [09:51:45]FM_GetShiftState [09:51:45]SAM_PROTO_GetShiftState [09:51:45]wFMCommunicate request_size=4 [09:51:45]MH_SAM_APDU [09:51:45]CAPDU: 80 13 01 00 [09:51:45]Write to MH i2c: E2 08 00 97 18 80 13 01 00 00 00 00 00 2C [09:51:45]Write i2c OK [09:51:45]MH_I2C_Read... [09:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:45]Read from MH i2c: E2 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: E2 0E 00 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: E2 0E 00 97 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EF [09:51:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:51:45]wFMCommunicate OK [09:51:45]SAM_PROTO_GetShiftState done [09:51:45]FM_GetShiftState done [09:51:45]opened in 1717460629 [09:51:45]opened+sec_in_day 1717547029 [09:51:45]quantity*price = 50041 [09:51:45]sum+1 = 50042 [09:51:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 54 04.06.2024 09:51 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148715 ФПД: 58205968052994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095148&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148715&fm=58205968052994&tin=02508201610067®Number=0000000000092720&sum=50000 [09:51:46]StoreToDocumentArchive [09:51:46]shift 368 fd 148715 [09:51:46]save to /storage/0368/doc_00148715 [09:51:46]save last doc name /storage/0368/doc_00148715 to /storage/kkm_last_doc_name [09:51:46]save OK [09:51:46]Clear old archive folders... [09:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:46]tlvbuf is B6E85790 [09:51:46]SAM_PROTO_ClearQueue [09:51:46]wFMCommunicate request_size=4 [09:51:46]MH_SAM_APDU [09:51:46]CAPDU: 80 09 00 00 [09:51:46]Write to MH i2c: E2 08 00 A4 18 80 09 00 00 00 00 00 00 2E [09:51:46]Write i2c OK [09:51:46]MH_I2C_Read... [09:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:46]Read from MH i2c: E2 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 03 00 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 03 00 A4 18 00 90 00 30 [09:51:46]RAPDU: 90 00 [09:51:46]wFMCommunicate OK [09:51:46]SAM_PROTO_ClearQueue done [09:51:46]KKMCreateOFDPacket [09:51:46]OFDProtocolAddRootSTLVToBuf [09:51:46]FM_MakeSignedData [09:51:46]FM_MakeSignedData [09:51:46]SAM_PROTO_SignData [09:51:46]wFMCommunicate request_size=4 [09:51:46]MH_SAM_APDU [09:51:46]CAPDU: 80 0D 01 02 [09:51:46]Write to MH i2c: E2 08 00 A5 18 80 0D 01 02 00 00 00 00 36 [09:51:46]Write i2c OK [09:51:46]MH_I2C_Read... [09:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:46]Read from MH i2c: E2 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 03 00 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 03 00 A5 18 00 90 00 31 [09:51:46]RAPDU: 90 00 [09:51:46]wFMCommunicate OK [09:51:46]wFMCommunicate request_size=255 [09:51:46]MH_SAM_APDU [09:51:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B4 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EB 44 02 00 35 04 06 00 34 [09:51:46]Write to MH i2c: E2 02 01 A6 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B4 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EB 44 02 00 35 04 06 00 34 00 00 27 [09:51:46]Write i2c OK [09:51:46]MH_I2C_Read... [09:51:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:47]Read from MH i2c: E2 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 03 00 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 03 00 A6 18 00 90 00 32 [09:51:47]RAPDU: 90 00 [09:51:47]wFMCommunicate OK [09:51:47]wFMCommunicate request_size=10 [09:51:47]MH_SAM_APDU [09:51:47]CAPDU: 80 0D 02 02 05 F0 22 0C B3 02 [09:51:47]Write to MH i2c: E2 0D 00 A7 18 80 0D 02 02 05 00 F0 22 0C B3 02 00 00 16 [09:51:47]Write i2c OK [09:51:47]MH_I2C_Read... [09:51:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:47]Read from MH i2c: E2 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 03 00 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 03 00 A7 18 00 90 00 33 [09:51:47]RAPDU: 90 00 [09:51:47]wFMCommunicate OK [09:51:47]wFMCommunicate request_size=4 [09:51:47]MH_SAM_APDU [09:51:47]CAPDU: 80 0D 03 02 [09:51:47]Write to MH i2c: E2 08 00 A8 18 80 0D 03 02 00 00 00 00 3B [09:51:47]Write i2c OK [09:51:47]MH_I2C_Read... [09:51:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:47]Read from MH i2c: E2 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 0B 00 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 0B 00 A8 18 00 08 0A 01 43 57 33 BB 3C 90 00 13 [09:51:47]RAPDU: 08 0A 01 43 57 33 BB 3C 90 00 [09:51:47]wFMCommunicate OK [09:51:47]SAM_PROTO_SignData done [09:51:47]FM_MakeSignedData done [09:51:47]CreateOFDProtocolMessage [09:51:47]wFMCommunicate request_size=4 [09:51:47]MH_SAM_APDU [09:51:47]CAPDU: 80 11 00 00 [09:51:47]Write to MH i2c: E2 08 00 A9 18 80 11 00 00 00 00 00 00 3B [09:51:47]Write i2c OK [09:51:47]MH_I2C_Read... [09:51:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:47]Read from MH i2c: E2 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 17 00 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 17 00 A9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8E [09:51:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:51:47]wFMCommunicate OK [09:51:47]CreateOFDProtocolMessage done [09:51:47]OFDSenderStorePacket 148715 [09:51:47]StoreOFDPacket docnum=148715 [09:51:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C0 04 07 01 6F E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B4 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EB 44 02 00 35 04 06 00 34 F0 22 0C B3 02 08 0A 01 43 57 33 BB 3C [09:51:47]CheckFolder [09:51:47]dirname=/storage/ofd_packets [09:51:47]CheckFolder done [09:51:47]ProducePacketName [09:51:47]name=ofd_packets/00148715 [09:51:47]NVStorageSaveData ofd_packets/00148715 [09:51:47]File name is /storage/ofd_packets/00148715 [09:51:47]Write 301 bytes [09:51:47]NVStorageSaveData done [09:51:47]OFDSenderStorePacket done [09:51:47]KKMCreateOFDPacket done [09:51:47]NVStorageSaveData kkm_last_timestamp [09:51:47]File name is /storage/kkm_last_timestamp [09:51:47]Write 4 bytes [09:51:47]NVStorageSaveData done [09:51:47]ExternCall_PrintAddStr [09:51:47]wPrintStart [09:51:47]Write to MH i2c: 01 00 00 AA 18 C2 [09:51:47]Write i2c OK [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: 01 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: 01 07 00 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: 01 07 00 AA 18 00 00 00 00 00 FF 0F D7 [09:51:47]RasterBufferAndPrint [09:51:47]line Счет N : (1)979638 [09:51:47]line ИНН: 02508201610067 [09:51:47]line Контрольно-Кассовый Чек [09:51:47]line ПРОДАЖА [09:51:47]line ТРК (МРК, ГНК) : 31 [09:51:47]line Товар: 2710124130 [09:51:47]line Аи-92-К-5 [09:51:47]line 7.480 * 66.90 [09:51:47]line = 500.41 [09:51:47]line НДС 12% НСП 1% [09:51:47]line > о реализуемом товаре [09:51:47]line ОКРУГЛЕНИЕ: -0.41 [09:51:47]line ИТОГО: 500.00 [09:51:47]line Внесено: 500.00 [09:51:47]line СДАЧА: 0.00 [09:51:47]line НСП 1% : 4.43 [09:51:47]line НДС 12% : 53.14 [09:51:47]line Наличными: 500.00 [09:51:47]line Безнал.: 0.00 [09:51:47]line Место: АЗС № 68 "Партнер Нефть" [09:51:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:51:47]line СНО: Общий режим [09:51:47]line Чек 54 04.06.2024 09:51 [09:51:47]line Смена: 368 ФФД: 1.0 [09:51:47]line ЗНМ: 0300000035 [09:51:47]line РНМ: 0000000000092720 [09:51:47]line Версия ККМ: 001 [09:51:47]line ФМ: 0000000000875057 [09:51:47]line ФД: 148715 [09:51:47]line ФПД: 58205968052994 [09:51:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095148&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148715&fm=58205968052994&tin=02508201610067®Number=0000000000092720&sum=50000 [09:51:47]OFD Sender: Processing packet 148715 [packets to send 100, broken 99] [09:51:47]ProducePacketName [09:51:47]name=ofd_packets/00148715 [09:51:47]OFD Sender: To server: pG, [09:51:47]CommunicateWithHost lk.salyk.kg:30040 [09:51:47]ConnectInit lk.salyk.kg [09:51:47]written 0, free lines is 4095 [09:51:47]Connected sock=10 [09:51:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C0 04 07 01 6F E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B4 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EB 44 02 00 35 04 06 00 34 F0 22 0C B3 02 08 0A 01 43 57 33 BB 3C [09:51:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8E 8F 47 00 FA BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EB 44 02 00 F4 03 04 00 D8 8A 5E 66 B6 04 01 00 00 A7 1A F3 75 DE 35 54 75 [09:51:47]CommunicateWithHost err = 0 [09:51:47]CheckOFDResponse [09:51:47]1017 (14) - 77093643461234 [09:51:47]1041 (16) - 0000000000875057 [09:51:47]1040 (4) - 148715 [09:51:47]1012 (4) - 04.06.2024 03:32 [09:51:47]1206 (1) - 0 [09:51:47]OFD Sender: Remove packet 148715 [09:51:47]ProducePacketName [09:51:47]name=ofd_packets/00148715 [09:51:47]NVStorageDeleteData [09:51:48]Write to MH i2c: 01 00 00 D5 18 ED [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: 01 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: 01 07 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: 01 07 00 D5 18 00 00 00 00 00 6D 0C 6D [09:51:48]RasterBufferAndPrint [09:51:48]line [09:51:48]line [09:51:48]line [09:51:48]line [09:51:48]line [09:51:48]written 0, free lines is 3184 [09:51:48]MH_Cut [09:51:48]Write to MH i2c: D1 01 00 DC 18 01 C6 [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: D1 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: D1 01 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: D1 01 00 DC 18 00 C5 [09:51:48]Write to MH i2c: 01 00 00 DD 18 F5 [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]OFD Sender: No OFD packet to send [09:51:49]*** Cut start [09:51:49]*** Partial cut [09:51:49]*** CUTSNS_PIN = 1 [09:51:49]*** CUTSNS_PIN = 0 [09:51:49]*** Brake cut motor [09:51:50]Read from MH i2c: 01 [09:51:50]MH_I2C_Read... [09:51:50]*** Stop cut motor [09:51:50]*** Cut end [09:51:50]Read from MH i2c: 01 07 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 07 00 DD 18 00 00 00 00 00 FF 0F 0A [09:51:50]process_action close_receipt done [09:51:50]requested_data is exist [09:51:50]produce_requested_data [09:51:50]requested_item fm.sn is exist - process it [09:51:50]wFMCommunicate request_size=4 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 11 00 00 [09:51:50]Write to MH i2c: E2 08 00 DE 18 80 11 00 00 00 00 00 00 70 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 17 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 17 00 DE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C3 [09:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:51:50]wFMCommunicate OK [09:51:50]requested_item fd.num is exist - process it [09:51:50]SAM_PROTO_GetFieldsCounters [09:51:50]wFMCommunicate request_size=4 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 13 00 00 [09:51:50]Write to MH i2c: E2 08 00 DF 18 80 13 00 00 00 00 00 00 73 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 62 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 62 00 DF 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EB 44 02 00 0E 04 04 00 70 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 D3 [09:51:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EB 44 02 00 0E 04 04 00 70 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 [09:51:50]wFMCommunicate OK [09:51:50]SAM_PROTO_GetFieldsCounters done [09:51:50]requested_item shift.num is exist - process it [09:51:50]requested_item shift.opened is exist - process it [09:51:50]req_shift_opened [09:51:50]FM_GetShiftState [09:51:50]SAM_PROTO_GetShiftState [09:51:50]wFMCommunicate request_size=4 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 13 01 00 [09:51:50]Write to MH i2c: E2 08 00 E0 18 80 13 01 00 00 00 00 00 75 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 0E 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 0E 00 E0 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 38 [09:51:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:51:50]wFMCommunicate OK [09:51:50]SAM_PROTO_GetShiftState done [09:51:50]FM_GetShiftState done [09:51:50]req_shift_opened done [09:51:50]requested_item shift.open_date is exist - process it [09:51:50]req_shift_open_date [09:51:50]req_shift_open_date done [09:51:50]produce_requested_data done [09:51:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148715,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:51:50]process_action_free close_receipt [09:51:50]json_value_free [09:51:50]json_value_free done [09:51:50]process_json_proto returns [09:51:50]Send response to host [09:51:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148715,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:51:50]free response buf [09:51:50]execute_script done [09:51:50]execute_script returns [09:51:50]free content buf [09:51:50]Sock 9.Close socket [09:51:50]Sock 9.Thread stoped [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:36]accept exits with 7 [09:52:36]New connection [09:52:36]New thread 3066809700 created [09:52:36]Thread 3066666340 joined [09:52:36]Waiting for new connection... [09:52:36] Sock 7.Parse request [09:52:36]Sock 7.Check first char [09:52:36]Sock 7.First char is OK [09:52:36]request: POST /json_proto HTTP/1.0 [09:52:36]Method: POST [09:52:36]URL: /json_proto [09:52:36]Method is POST - this is cgi request [09:52:36]url: /json_proto [09:52:36]query_string will be loaded in cgi processing [09:52:36]execute_cgi json_proto POST (null) [09:52:36]execute_cgi path=json_proto method=POST [09:52:36]POST find Content-Length [09:52:36]Host: 172.17.38.4:8080 [09:52:36]Content-Length: 674 [09:52:36]Content-Type: application/json [09:52:36] [09:52:36]POST finish read [09:52:36]Found Content-Length = 674 [09:52:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [09:52:36]execute_script... [09:52: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)979639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [09:52:36]POST & json_proto [09:52:36]process_json_proto [09:52:36]json parsed OK: [09:52:36]protocol is kg_v1.0 [09:52:36]action value=close_receipt [09:52:36]process_action close_receipt [09:52:36]cmd_close_receipt [09:52:36]MH_GetDate [09:52:36]Write to MH i2c: F0 00 00 E1 18 E8 [09:52:36]Write i2c OK [09:52:36]MH_I2C_Read... [09:52:36]Read from MH i2c: F0 [09:52:36]MH_I2C_Read... [09:52:36]Read from MH i2c: F0 09 00 [09:52:36]MH_I2C_Read... [09:52:36]Read from MH i2c: F0 09 00 E1 18 00 E6 E3 5E 66 CC 51 87 64 86 [09:52:36]GetLastDocTimeStamp 1717494708 [09:52:36]current date 1717494758 [09:52:36]FM_GetShiftState [09:52:36]SAM_PROTO_GetShiftState [09:52:36]wFMCommunicate request_size=4 [09:52:36]MH_SAM_APDU [09:52:36]CAPDU: 80 13 01 00 [09:52:36]Write to MH i2c: E2 08 00 E2 18 80 13 01 00 00 00 00 00 77 [09:52:36]Write i2c OK [09:52:36]MH_I2C_Read... [09:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:36]Read from MH i2c: E2 [09:52:36]MH_I2C_Read... [09:52:36]Read from MH i2c: E2 0E 00 [09:52:36]MH_I2C_Read... [09:52:36]Read from MH i2c: E2 0E 00 E2 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3A [09:52:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:52:36]wFMCommunicate OK [09:52:36]SAM_PROTO_GetShiftState done [09:52:36]FM_GetShiftState done [09:52:36]opened in 1717460629 [09:52:36]opened+sec_in_day 1717547029 [09:52:36]quantity*price = 60069 [09:52:36]sum+1 = 60071 [09:52:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 55 04.06.2024 09:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148716 ФПД: 249388565317803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095239&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148716&fm=249388565317803&tin=02508201610067®Number=0000000000092720&sum=60000 [09:52:37]StoreToDocumentArchive [09:52:37]shift 368 fd 148716 [09:52:37]save to /storage/0368/doc_00148716 [09:52:37]save last doc name /storage/0368/doc_00148716 to /storage/kkm_last_doc_name [09:52:37]save OK [09:52:37]Clear old archive folders... [09:52:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:52:37]tlvbuf is 015A7B50 [09:52:37]SAM_PROTO_ClearQueue [09:52:37]wFMCommunicate request_size=4 [09:52:37]MH_SAM_APDU [09:52:37]CAPDU: 80 09 00 00 [09:52:37]Write to MH i2c: E2 08 00 EF 18 80 09 00 00 00 00 00 00 79 [09:52:37]Write i2c OK [09:52:37]MH_I2C_Read... [09:52:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:37]Read from MH i2c: E2 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 03 00 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 03 00 EF 18 00 90 00 7B [09:52:37]RAPDU: 90 00 [09:52:37]wFMCommunicate OK [09:52:37]SAM_PROTO_ClearQueue done [09:52:37]KKMCreateOFDPacket [09:52:37]OFDProtocolAddRootSTLVToBuf [09:52:37]FM_MakeSignedData [09:52:37]FM_MakeSignedData [09:52:37]SAM_PROTO_SignData [09:52:37]wFMCommunicate request_size=4 [09:52:37]MH_SAM_APDU [09:52:37]CAPDU: 80 0D 01 02 [09:52:37]Write to MH i2c: E2 08 00 F0 18 80 0D 01 02 00 00 00 00 81 [09:52:37]Write i2c OK [09:52:37]MH_I2C_Read... [09:52:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:37]Read from MH i2c: E2 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 03 00 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 03 00 F0 18 00 90 00 7C [09:52:37]RAPDU: 90 00 [09:52:37]wFMCommunicate OK [09:52:37]wFMCommunicate request_size=255 [09:52:37]MH_SAM_APDU [09:52:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 E7 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EC 44 02 00 35 04 06 00 E2 D1 4C D8 [09:52:37]Write to MH i2c: E2 02 01 F1 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 E7 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EC 44 02 00 35 04 06 00 E2 D1 4C D8 00 00 3B [09:52:37]Write i2c OK [09:52:37]MH_I2C_Read... [09:52:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:37]Read from MH i2c: E2 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 03 00 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 03 00 F1 18 00 90 00 7D [09:52:37]RAPDU: 90 00 [09:52:37]wFMCommunicate OK [09:52:37]wFMCommunicate request_size=7 [09:52:37]MH_SAM_APDU [09:52:37]CAPDU: 80 0D 02 02 02 C8 AB [09:52:37]Write to MH i2c: E2 0A 00 F2 18 80 0D 02 02 02 00 C8 AB 00 00 FB [09:52:37]Write i2c OK [09:52:37]MH_I2C_Read... [09:52:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:37]Read from MH i2c: E2 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 03 00 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 03 00 F2 18 00 90 00 7E [09:52:37]RAPDU: 90 00 [09:52:37]wFMCommunicate OK [09:52:37]wFMCommunicate request_size=4 [09:52:37]MH_SAM_APDU [09:52:37]CAPDU: 80 0D 03 02 [09:52:37]Write to MH i2c: E2 08 00 F3 18 80 0D 03 02 00 00 00 00 86 [09:52:37]Write i2c OK [09:52:37]MH_I2C_Read... [09:52:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:37]Read from MH i2c: E2 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 0B 00 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 0B 00 F3 18 00 5B E8 F3 97 89 BC 30 65 90 00 2E [09:52:37]RAPDU: 5B E8 F3 97 89 BC 30 65 90 00 [09:52:37]wFMCommunicate OK [09:52:37]SAM_PROTO_SignData done [09:52:37]FM_MakeSignedData done [09:52:37]CreateOFDProtocolMessage [09:52:37]wFMCommunicate request_size=4 [09:52:37]MH_SAM_APDU [09:52:37]CAPDU: 80 11 00 00 [09:52:37]Write to MH i2c: E2 08 00 F4 18 80 11 00 00 00 00 00 00 86 [09:52:37]Write i2c OK [09:52:37]MH_I2C_Read... [09:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:37]Read from MH i2c: E2 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 17 00 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 17 00 F4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D9 [09:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:52:37]wFMCommunicate OK [09:52:37]CreateOFDProtocolMessage done [09:52:37]OFDSenderStorePacket 148716 [09:52:37]StoreOFDPacket docnum=148716 [09:52:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 61 D4 04 01 B2 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 E7 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EC 44 02 00 35 04 06 00 E2 D1 4C D8 C8 AB 5B E8 F3 97 89 BC 30 65 [09:52:37]CheckFolder [09:52:37]dirname=/storage/ofd_packets [09:52:37]CheckFolder done [09:52:37]ProducePacketName [09:52:37]name=ofd_packets/00148716 [09:52:37]NVStorageSaveData ofd_packets/00148716 [09:52:37]File name is /storage/ofd_packets/00148716 [09:52:37]Write 298 bytes [09:52:37]NVStorageSaveData done [09:52:37]OFDSenderStorePacket done [09:52:37]KKMCreateOFDPacket done [09:52:37]NVStorageSaveData kkm_last_timestamp [09:52:37]File name is /storage/kkm_last_timestamp [09:52:37]Write 4 bytes [09:52:37]NVStorageSaveData done [09:52:37]ExternCall_PrintAddStr [09:52:37]wPrintStart [09:52:37]Write to MH i2c: 01 00 00 F5 18 0D [09:52:37]Write i2c OK [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: 01 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: 01 07 00 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: 01 07 00 F5 18 00 00 00 00 00 FF 0F 22 [09:52:37]RasterBufferAndPrint [09:52:37]line Счет N : (1)979639 [09:52:37]line ИНН: 02508201610067 [09:52:37]line Контрольно-Кассовый Чек [09:52:37]line ПРОДАЖА [09:52:37]line ТРК (МРК, ГНК) : 51 [09:52:37]line Товар: 2710194210 [09:52:37]line ДТ-К-5 [09:52:37]line 8.240 * 72.90 [09:52:37]line = 600.70 [09:52:37]line НДС 12% НСП 1% [09:52:37]line > о реализуемом товаре [09:52:37]line ОКРУГЛЕНИЕ: -0.70 [09:52:37]line ИТОГО: 600.00 [09:52:37]line Внесено: 600.00 [09:52:37]line СДАЧА: 0.00 [09:52:37]line НСП 1% : 5.32 [09:52:37]line НДС 12% : 63.79 [09:52:37]line Наличными: 600.00 [09:52:37]line Безнал.: 0.00 [09:52:37]line Место: АЗС № 68 "Партнер Нефть" [09:52:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:52:37]line СНО: Общий режим [09:52:37]line Чек 55 04.06.2024 09:52 [09:52:37]line Смена: 368 ФФД: 1.0 [09:52:37]line ЗНМ: 0300000035 [09:52:37]line РНМ: 0000000000092720 [09:52:37]line Версия ККМ: 001 [09:52:37]line ФМ: 0000000000875057 [09:52:37]line ФД: 148716 [09:52:37]line ФПД: 249388565317803 [09:52:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095239&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148716&fm=249388565317803&tin=02508201610067®Number=0000000000092720&sum=60000 [09:52:38]OFD Sender: Processing packet 148716 [packets to send 100, broken 99] [09:52:38]ProducePacketName [09:52:38]name=ofd_packets/00148716 [09:52:38]OFD Sender: To server: pG, [09:52:38]CommunicateWithHost lk.salyk.kg:30040 [09:52:38]ConnectInit lk.salyk.kg [09:52:38]written 0, free lines is 4095 [09:52:38]Connected sock=10 [09:52:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 61 D4 04 01 B2 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 E7 E3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EC 44 02 00 35 04 06 00 E2 D1 4C D8 C8 AB 5B E8 F3 97 89 BC 30 65 [09:52:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 93 3B 47 00 BA 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 38 37 35 30 35 37 10 04 04 00 EC 44 02 00 F4 03 04 00 0B 8B 5E 66 B6 04 01 00 00 42 F6 3F 39 AA E7 37 06 [09:52:38]CommunicateWithHost err = 0 [09:52:38]CheckOFDResponse [09:52:38]1017 (14) - 77093643461234 [09:52:38]1041 (16) - 0000000000875057 [09:52:38]1040 (4) - 148716 [09:52:38]1012 (4) - 04.06.2024 03:33 [09:52:38]1206 (1) - 0 [09:52:38]OFD Sender: Remove packet 148716 [09:52:38]ProducePacketName [09:52:38]name=ofd_packets/00148716 [09:52:38]NVStorageDeleteData [09:52:38]Write to MH i2c: 01 00 00 20 19 39 [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: 01 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: 01 07 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: 01 07 00 20 19 00 00 00 00 00 6B 0C B7 [09:52:38]RasterBufferAndPrint [09:52:38]line [09:52:38]line [09:52:38]line [09:52:38]line [09:52:38]line [09:52:38]written 0, free lines is 3182 [09:52:38]MH_Cut [09:52:38]Write to MH i2c: D1 01 00 27 19 01 12 [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: D1 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: D1 01 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: D1 01 00 27 19 00 11 [09:52:38]Write to MH i2c: 01 00 00 28 19 41 [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:39]OFD Sender: No OFD packet to send [09:52:39]*** Cut start [09:52:39]*** Partial cut [09:52:39]*** CUTSNS_PIN = 1 [09:52:40]*** CUTSNS_PIN = 0 [09:52:40]*** Brake cut motor [09:52:40]Read from MH i2c: 01 [09:52:40]MH_I2C_Read... [09:52:40]*** Stop cut motor [09:52:40]*** Cut end [09:52:40]Read from MH i2c: 01 07 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: 01 07 00 28 19 00 00 00 00 00 FF 0F 56 [09:52:40]process_action close_receipt done [09:52:40]requested_data is exist [09:52:40]produce_requested_data [09:52:40]requested_item fm.sn is exist - process it [09:52:40]wFMCommunicate request_size=4 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 11 00 00 [09:52:40]Write to MH i2c: E2 08 00 29 19 80 11 00 00 00 00 00 00 BC [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 17 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 17 00 29 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0F [09:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:52:40]wFMCommunicate OK [09:52:40]requested_item fd.num is exist - process it [09:52:40]SAM_PROTO_GetFieldsCounters [09:52:40]wFMCommunicate request_size=4 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 13 00 00 [09:52:40]Write to MH i2c: E2 08 00 2A 19 80 13 00 00 00 00 00 00 BF [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 62 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 62 00 2A 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EC 44 02 00 0E 04 04 00 70 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 23 [09:52:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EC 44 02 00 0E 04 04 00 70 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 [09:52:40]wFMCommunicate OK [09:52:40]SAM_PROTO_GetFieldsCounters done [09:52:40]requested_item shift.num is exist - process it [09:52:40]requested_item shift.opened is exist - process it [09:52:40]req_shift_opened [09:52:40]FM_GetShiftState [09:52:40]SAM_PROTO_GetShiftState [09:52:40]wFMCommunicate request_size=4 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 13 01 00 [09:52:40]Write to MH i2c: E2 08 00 2B 19 80 13 01 00 00 00 00 00 C1 [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 0E 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 0E 00 2B 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 84 [09:52:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:52:40]wFMCommunicate OK [09:52:40]SAM_PROTO_GetShiftState done [09:52:40]FM_GetShiftState done [09:52:40]req_shift_opened done [09:52:40]requested_item shift.open_date is exist - process it [09:52:40]req_shift_open_date [09:52:40]req_shift_open_date done [09:52:40]produce_requested_data done [09:52:40]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148716,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:52:40]process_action_free close_receipt [09:52:40]json_value_free [09:52:40]json_value_free done [09:52:40]process_json_proto returns [09:52:40]Send response to host [09:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148716,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:52:40]free response buf [09:52:40]execute_script done [09:52:40]execute_script returns [09:52:40]free content buf [09:52:40]Sock 7.Close socket [09:52:40]Sock 7.Thread stoped [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]accept exits with 9 [09:55:19]New connection [09:55:19]New thread 3066666340 created [09:55:19]Thread 3066809700 joined [09:55:19]Waiting for new connection... [09:55:19] Sock 9.Parse request [09:55:19]Sock 9.Check first char [09:55:19]Sock 9.First char is OK [09:55:19]request: POST /json_proto HTTP/1.0 [09:55:19]Method: POST [09:55:19]URL: /json_proto [09:55:19]Method is POST - this is cgi request [09:55:19]url: /json_proto [09:55:19]query_string will be loaded in cgi processing [09:55:19]execute_cgi json_proto POST (null) [09:55:19]execute_cgi path=json_proto method=POST [09:55:19]POST find Content-Length [09:55:19]Host: 172.17.38.4:8080 [09:55:19]Content-Length: 1151 [09:55:19]Content-Type: application/json [09:55:19] [09:55:19]POST finish read [09:55:19]Found Content-Length = 1151 [09:55:19]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979640\u000A04.06.2024 09:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 3345.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111266\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:19]execute_script... [09:55:19]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979640\u000A04.06.2024 09:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 3345.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111266\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:19]POST & json_proto [09:55:19]process_json_proto [09:55:19]json parsed OK: [09:55:19]protocol is kg_v1.0 [09:55:19]action value=print_text [09:55:19]process_action print_text [09:55:19]cmd_print_text [09:55:19]ExternCall_PrintAddStr [09:55:19]wPrintStart [09:55:19]Write to MH i2c: 01 00 00 2C 19 45 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 07 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 07 00 2C 19 00 00 00 00 00 FF 0F 5A [09:55:19]RasterBufferAndPrint [09:55:19]line *****ТОВАРНЫЙ ЧЕК***** [09:55:19]line АЗС 68 [09:55:19]line Партнер нефть [09:55:19]line 02508201610067 [09:55:19]line Кассир : Аскаров Н. [09:55:19]line Счет N : (1)979640 [09:55:19]line 04.06.2024 09:36 [09:55:19]line ПРОДАЖА [09:55:19]line ТРК (МРК, ГНК): 12 [09:55:19]line Вид ГСМ : 2710124130 [09:55:19]line Аи-92-К-5 [09:55:19]line 50.000 x 66.90 [09:55:19]line ИТОГ: 3345.00 [09:55:19]line Тип оплаты: Талоны: ТК ГПНА Online [09:55:19]line 30111266 [09:55:19]line ______________________ [09:55:19]line (подпись) [09:55:19]written 0, free lines is 4095 [09:55:19]OFD Sender: No OFD packet to send [09:55:19]Write to MH i2c: 01 00 00 40 19 59 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 07 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 07 00 40 19 00 00 00 00 00 11 0E 7F [09:55:19]RasterBufferAndPrint [09:55:19]line [09:55:19]line [09:55:19]line [09:55:19]line [09:55:19]line [09:55:19]written 0, free lines is 3603 [09:55:19]MH_Cut [09:55:19]Write to MH i2c: D1 01 00 47 19 01 32 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: D1 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: D1 01 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: D1 01 00 47 19 00 31 [09:55:19]Write to MH i2c: 01 00 00 48 19 61 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:20]*** Cut start [09:55:20]*** Partial cut [09:55:20]*** CUTSNS_PIN = 1 [09:55:20]*** CUTSNS_PIN = 0 [09:55:20]*** Brake cut motor [09:55:20]Read from MH i2c: 01 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: 01 07 00 [09:55:20]MH_I2C_Read... [09:55:20]*** Stop cut motor [09:55:20]*** Cut end [09:55:20]Read from MH i2c: 01 07 00 48 19 00 00 00 00 00 FF 0F 76 [09:55:20]process_action print_text done [09:55:20]requested_data is exist [09:55:20]produce_requested_data [09:55:20]requested_item fm.sn is exist - process it [09:55:20]wFMCommunicate request_size=4 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 11 00 00 [09:55:20]Write to MH i2c: E2 08 00 49 19 80 11 00 00 00 00 00 00 DC [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:20]Read from MH i2c: E2 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 17 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 17 00 49 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2F [09:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:55:20]wFMCommunicate OK [09:55:20]requested_item fd.num is exist - process it [09:55:20]SAM_PROTO_GetFieldsCounters [09:55:20]wFMCommunicate request_size=4 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 13 00 00 [09:55:20]Write to MH i2c: E2 08 00 4A 19 80 13 00 00 00 00 00 00 DF [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:20]Read from MH i2c: E2 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 62 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 62 00 4A 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EC 44 02 00 0E 04 04 00 70 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 43 [09:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EC 44 02 00 0E 04 04 00 70 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 [09:55:20]wFMCommunicate OK [09:55:20]SAM_PROTO_GetFieldsCounters done [09:55:20]requested_item shift.num is exist - process it [09:55:20]requested_item shift.opened is exist - process it [09:55:20]req_shift_opened [09:55:20]FM_GetShiftState [09:55:20]SAM_PROTO_GetShiftState [09:55:20]wFMCommunicate request_size=4 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 13 01 00 [09:55:20]Write to MH i2c: E2 08 00 4B 19 80 13 01 00 00 00 00 00 E1 [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:20]Read from MH i2c: E2 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 0E 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 0E 00 4B 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A4 [09:55:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:55:20]wFMCommunicate OK [09:55:20]SAM_PROTO_GetShiftState done [09:55:20]FM_GetShiftState done [09:55:20]req_shift_opened done [09:55:20]requested_item shift.open_date is exist - process it [09:55:20]req_shift_open_date [09:55:20]req_shift_open_date done [09:55:20]produce_requested_data done [09:55:20]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148716,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:55:20]process_action_free print_text [09:55:20]json_value_free [09:55:20]json_value_free done [09:55:20]process_json_proto returns [09:55:20]Send response to host [09:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148716,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:55:20]free response buf [09:55:20]execute_script done [09:55:20]execute_script returns [09:55:20]free content buf [09:55:20]Sock 9.Close socket [09:55:20]Sock 9.Thread stoped [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:15]accept exits with 7 [09:56:15]New connection [09:56:15]New thread 3066809700 created [09:56:15]Thread 3066666340 joined [09:56:15]Waiting for new connection... [09:56:15] Sock 7.Parse request [09:56:15]Sock 7.Check first char [09:56:15]Sock 7.First char is OK [09:56:15]request: POST /json_proto HTTP/1.0 [09:56:15]Method: POST [09:56:15]URL: /json_proto [09:56:15]Method is POST - this is cgi request [09:56:15]url: /json_proto [09:56:15]query_string will be loaded in cgi processing [09:56:15]execute_cgi json_proto POST (null) [09:56:15]execute_cgi path=json_proto method=POST [09:56:15]POST find Content-Length [09:56:15]Host: 172.17.38.4:8080 [09:56:15]Content-Length: 679 [09:56:15]Content-Type: application/json [09:56:15] [09:56:15]POST finish read [09:56:15]Found Content-Length = 679 [09:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:15]execute_script... [09:56: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)979641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:15]POST & json_proto [09:56:15]process_json_proto [09:56:15]json parsed OK: [09:56:15]protocol is kg_v1.0 [09:56:15]action value=close_receipt [09:56:15]process_action close_receipt [09:56:15]cmd_close_receipt [09:56:15]MH_GetDate [09:56:15]Write to MH i2c: F0 00 00 4C 19 54 [09:56:15]Write i2c OK [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: F0 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: F0 09 00 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: F0 09 00 4C 19 00 C1 E4 5E 66 CC 51 87 64 CE [09:56:15]GetLastDocTimeStamp 1717494759 [09:56:15]current date 1717494977 [09:56:15]FM_GetShiftState [09:56:15]SAM_PROTO_GetShiftState [09:56:15]wFMCommunicate request_size=4 [09:56:15]MH_SAM_APDU [09:56:15]CAPDU: 80 13 01 00 [09:56:15]Write to MH i2c: E2 08 00 4D 19 80 13 01 00 00 00 00 00 E3 [09:56:15]Write i2c OK [09:56:15]MH_I2C_Read... [09:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:15]Read from MH i2c: E2 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 0E 00 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 0E 00 4D 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A6 [09:56:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:56:15]wFMCommunicate OK [09:56:15]SAM_PROTO_GetShiftState done [09:56:15]FM_GetShiftState done [09:56:15]opened in 1717460629 [09:56:15]opened+sec_in_day 1717547029 [09:56:15]quantity*price = 200037 [09:56:15]sum+1 = 200039 [09:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 56 04.06.2024 09:56 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148717 ФПД: 236388154881791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095618&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148717&fm=236388154881791&tin=02508201610067®Number=0000000000092720&sum=200000 [09:56:16]StoreToDocumentArchive [09:56:16]shift 368 fd 148717 [09:56:16]save to /storage/0368/doc_00148717 [09:56:16]save last doc name /storage/0368/doc_00148717 to /storage/kkm_last_doc_name [09:56:16]save OK [09:56:16]Clear old archive folders... [09:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:56:16]tlvbuf is 015D3520 [09:56:16]SAM_PROTO_ClearQueue [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 09 00 00 [09:56:16]Write to MH i2c: E2 08 00 5A 19 80 09 00 00 00 00 00 00 E5 [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 03 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 03 00 5A 19 00 90 00 E7 [09:56:16]RAPDU: 90 00 [09:56:16]wFMCommunicate OK [09:56:16]SAM_PROTO_ClearQueue done [09:56:16]KKMCreateOFDPacket [09:56:16]OFDProtocolAddRootSTLVToBuf [09:56:16]FM_MakeSignedData [09:56:16]FM_MakeSignedData [09:56:16]SAM_PROTO_SignData [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 0D 01 02 [09:56:16]Write to MH i2c: E2 08 00 5B 19 80 0D 01 02 00 00 00 00 ED [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 03 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 03 00 5B 19 00 90 00 E8 [09:56:16]RAPDU: 90 00 [09:56:16]wFMCommunicate OK [09:56:16]wFMCommunicate request_size=255 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C2 E4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 ED 44 02 00 35 04 06 00 D6 FE 68 00 [09:56:16]Write to MH i2c: E2 02 01 5C 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C2 E4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 ED 44 02 00 35 04 06 00 D6 FE 68 00 00 00 4B [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 03 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 03 00 5C 19 00 90 00 E9 [09:56:16]RAPDU: 90 00 [09:56:16]wFMCommunicate OK [09:56:16]wFMCommunicate request_size=7 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 0D 02 02 02 36 FF [09:56:16]Write to MH i2c: E2 0A 00 5D 19 80 0D 02 02 02 00 36 FF 00 00 29 [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 03 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 03 00 5D 19 00 90 00 EA [09:56:16]RAPDU: 90 00 [09:56:16]wFMCommunicate OK [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 0D 03 02 [09:56:16]Write to MH i2c: E2 08 00 5E 19 80 0D 03 02 00 00 00 00 F2 [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 0B 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 0B 00 5E 19 00 3D 24 66 B3 B7 C4 85 08 90 00 75 [09:56:16]RAPDU: 3D 24 66 B3 B7 C4 85 08 90 00 [09:56:16]wFMCommunicate OK [09:56:16]SAM_PROTO_SignData done [09:56:16]FM_MakeSignedData done [09:56:16]CreateOFDProtocolMessage [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 11 00 00 [09:56:16]Write to MH i2c: E2 08 00 5F 19 80 11 00 00 00 00 00 00 F2 [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 17 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 17 00 5F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 45 [09:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:56:16]wFMCommunicate OK [09:56:16]CreateOFDProtocolMessage done [09:56:16]OFDSenderStorePacket 148717 [09:56:16]StoreOFDPacket docnum=148717 [09:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 AD BE 04 01 E5 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C2 E4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 ED 44 02 00 35 04 06 00 D6 FE 68 00 36 FF 3D 24 66 B3 B7 C4 85 08 [09:56:16]CheckFolder [09:56:16]dirname=/storage/ofd_packets [09:56:16]CheckFolder done [09:56:16]ProducePacketName [09:56:16]name=ofd_packets/00148717 [09:56:16]NVStorageSaveData ofd_packets/00148717 [09:56:16]File name is /storage/ofd_packets/00148717 [09:56:16]Write 298 bytes [09:56:16]NVStorageSaveData done [09:56:16]OFDSenderStorePacket done [09:56:16]KKMCreateOFDPacket done [09:56:16]NVStorageSaveData kkm_last_timestamp [09:56:16]File name is /storage/kkm_last_timestamp [09:56:16]Write 4 bytes [09:56:16]NVStorageSaveData done [09:56:16]ExternCall_PrintAddStr [09:56:16]wPrintStart [09:56:16]Write to MH i2c: 01 00 00 60 19 79 [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: 01 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: 01 07 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: 01 07 00 60 19 00 00 00 00 00 FF 0F 8E [09:56:16]RasterBufferAndPrint [09:56:16]line Счет N : (1)979641 [09:56:16]line ИНН: 02508201610067 [09:56:16]line Контрольно-Кассовый Чек [09:56:16]line ПРОДАЖА [09:56:16]line ТРК (МРК, ГНК) : 21 [09:56:16]line Товар: 2710194210 [09:56:16]line ДТ-К-5 [09:56:16]line 27.440 * 72.90 [09:56:16]line = 2000.38 [09:56:16]line НДС 12% НСП 1% [09:56:16]line > о реализуемом товаре [09:56:16]line ОКРУГЛЕНИЕ: -0.38 [09:56:16]line ИТОГО: 2000.00 [09:56:16]line Внесено: 2000.00 [09:56:16]line СДАЧА: 0.00 [09:56:16]line НСП 1% : 17.70 [09:56:16]line НДС 12% : 212.43 [09:56:16]line Наличными: 2000.00 [09:56:16]line Безнал.: 0.00 [09:56:16]line Место: АЗС № 68 "Партнер Нефть" [09:56:16]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:56:16]line СНО: Общий режим [09:56:16]line Чек 56 04.06.2024 09:56 [09:56:16]line Смена: 368 ФФД: 1.0 [09:56:16]line ЗНМ: 0300000035 [09:56:16]line РНМ: 0000000000092720 [09:56:16]line Версия ККМ: 001 [09:56:16]line ФМ: 0000000000875057 [09:56:16]line ФД: 148717 [09:56:16]line ФПД: 236388154881791 [09:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095618&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148717&fm=236388154881791&tin=02508201610067®Number=0000000000092720&sum=200000 [09:56:17]OFD Sender: Processing packet 148717 [packets to send 100, broken 99] [09:56:17]ProducePacketName [09:56:17]name=ofd_packets/00148717 [09:56:17]OFD Sender: To server: pG, [09:56:17]CommunicateWithHost lk.salyk.kg:30040 [09:56:17]ConnectInit lk.salyk.kg [09:56:17]written 0, free lines is 4095 [09:56:17]Connected sock=10 [09:56:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 AD BE 04 01 E5 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C2 E4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 ED 44 02 00 35 04 06 00 D6 FE 68 00 36 FF 3D 24 66 B3 B7 C4 85 08 [09:56:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 54 5C 47 00 89 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 38 37 35 30 35 37 10 04 04 00 ED 44 02 00 F4 03 04 00 E6 8B 5E 66 B6 04 01 00 00 7B 2B 6C CF F8 92 97 35 [09:56:17]CommunicateWithHost err = 0 [09:56:17]CheckOFDResponse [09:56:17]1017 (14) - 77093643461234 [09:56:17]1041 (16) - 0000000000875057 [09:56:17]1040 (4) - 148717 [09:56:17]1012 (4) - 04.06.2024 03:37 [09:56:17]1206 (1) - 0 [09:56:17]OFD Sender: Remove packet 148717 [09:56:17]ProducePacketName [09:56:17]name=ofd_packets/00148717 [09:56:17]NVStorageDeleteData [09:56:17]Write to MH i2c: 01 00 00 8B 19 A4 [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: 01 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: 01 07 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: 01 07 00 8B 19 00 00 00 00 00 6A 0C 21 [09:56:17]RasterBufferAndPrint [09:56:17]line [09:56:17]line [09:56:17]line [09:56:17]line [09:56:17]line [09:56:17]written 0, free lines is 3181 [09:56:17]MH_Cut [09:56:17]Write to MH i2c: D1 01 00 92 19 01 7D [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: D1 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: D1 01 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: D1 01 00 92 19 00 7C [09:56:17]Write to MH i2c: 01 00 00 93 19 AC [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:18]OFD Sender: No OFD packet to send [09:56:18]*** Cut start [09:56:18]*** Partial cut [09:56:18]*** CUTSNS_PIN = 1 [09:56:19]*** CUTSNS_PIN = 0 [09:56:19]*** Brake cut motor [09:56:19]Read from MH i2c: 01 [09:56:19]MH_I2C_Read... [09:56:19]*** Stop cut motor [09:56:19]*** Cut end [09:56:19]Read from MH i2c: 01 07 00 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: 01 07 00 93 19 00 00 00 00 00 FF 0F C1 [09:56:19]process_action close_receipt done [09:56:19]requested_data is exist [09:56:19]produce_requested_data [09:56:19]requested_item fm.sn is exist - process it [09:56:19]wFMCommunicate request_size=4 [09:56:19]MH_SAM_APDU [09:56:19]CAPDU: 80 11 00 00 [09:56:19]Write to MH i2c: E2 08 00 94 19 80 11 00 00 00 00 00 00 27 [09:56:19]Write i2c OK [09:56:19]MH_I2C_Read... [09:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:19]Read from MH i2c: E2 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: E2 17 00 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: E2 17 00 94 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7A [09:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:56:19]wFMCommunicate OK [09:56:19]requested_item fd.num is exist - process it [09:56:19]SAM_PROTO_GetFieldsCounters [09:56:19]wFMCommunicate request_size=4 [09:56:19]MH_SAM_APDU [09:56:19]CAPDU: 80 13 00 00 [09:56:19]Write to MH i2c: E2 08 00 95 19 80 13 00 00 00 00 00 00 2A [09:56:19]Write i2c OK [09:56:19]MH_I2C_Read... [09:56:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:19]Read from MH i2c: E2 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: E2 62 00 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: E2 62 00 95 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 ED 44 02 00 0E 04 04 00 70 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 92 [09:56:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 ED 44 02 00 0E 04 04 00 70 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 [09:56:19]wFMCommunicate OK [09:56:19]SAM_PROTO_GetFieldsCounters done [09:56:19]requested_item shift.num is exist - process it [09:56:19]requested_item shift.opened is exist - process it [09:56:19]req_shift_opened [09:56:19]FM_GetShiftState [09:56:19]SAM_PROTO_GetShiftState [09:56:19]wFMCommunicate request_size=4 [09:56:19]MH_SAM_APDU [09:56:19]CAPDU: 80 13 01 00 [09:56:19]Write to MH i2c: E2 08 00 96 19 80 13 01 00 00 00 00 00 2C [09:56:19]Write i2c OK [09:56:19]MH_I2C_Read... [09:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:19]Read from MH i2c: E2 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: E2 0E 00 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: E2 0E 00 96 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EF [09:56:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:56:19]wFMCommunicate OK [09:56:19]SAM_PROTO_GetShiftState done [09:56:19]FM_GetShiftState done [09:56:19]req_shift_opened done [09:56:19]requested_item shift.open_date is exist - process it [09:56:19]req_shift_open_date [09:56:19]req_shift_open_date done [09:56:19]produce_requested_data done [09:56:19]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148717,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:56:19]process_action_free close_receipt [09:56:19]json_value_free [09:56:19]json_value_free done [09:56:19]process_json_proto returns [09:56:19]Send response to host [09:56:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148717,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:56:19]free response buf [09:56:19]execute_script done [09:56:19]execute_script returns [09:56:19]free content buf [09:56:19]Sock 7.Close socket [09:56:19]Sock 7.Thread stoped [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:38]accept exits with 9 [09:58:38]New connection [09:58:38]New thread 3066666340 created [09:58:38]Thread 3066809700 joined [09:58:38]Waiting for new connection... [09:58:38] Sock 9.Parse request [09:58:38]Sock 9.Check first char [09:58:38]Sock 9.First char is OK [09:58:38]request: POST /json_proto HTTP/1.0 [09:58:38]Method: POST [09:58:38]URL: /json_proto [09:58:38]Method is POST - this is cgi request [09:58:38]url: /json_proto [09:58:38]query_string will be loaded in cgi processing [09:58:38]execute_cgi json_proto POST (null) [09:58:38]execute_cgi path=json_proto method=POST [09:58:38]POST find Content-Length [09:58:38]Host: 172.17.38.4:8080 [09:58:38]Content-Length: 1151 [09:58:38]Content-Type: application/json [09:58:38] [09:58:38]POST finish read [09:58:38]Found Content-Length = 1151 [09:58:38]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979642\u000A04.06.2024 09:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A30078127\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:38]execute_script... [09:58:38]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979642\u000A04.06.2024 09:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A30078127\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:38]POST & json_proto [09:58:38]process_json_proto [09:58:38]json parsed OK: [09:58:38]protocol is kg_v1.0 [09:58:38]action value=print_text [09:58:38]process_action print_text [09:58:38]cmd_print_text [09:58:38]ExternCall_PrintAddStr [09:58:38]wPrintStart [09:58:38]Write to MH i2c: 01 00 00 97 19 B0 [09:58:38]Write i2c OK [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: 01 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: 01 07 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: 01 07 00 97 19 00 00 00 00 00 FF 0F C5 [09:58:38]RasterBufferAndPrint [09:58:38]line *****ТОВАРНЫЙ ЧЕК***** [09:58:38]line АЗС 68 [09:58:38]line Партнер нефть [09:58:38]line 02508201610067 [09:58:38]line Кассир : Аскаров Н. [09:58:38]line Счет N : (1)979642 [09:58:38]line 04.06.2024 09:39 [09:58:38]line ПРОДАЖА [09:58:38]line ТРК (МРК, ГНК): 31 [09:58:38]line Вид ГСМ : 2710124130 [09:58:38]line Аи-92-К-5 [09:58:38]line 30.000 x 66.90 [09:58:38]line ИТОГ: 2007.00 [09:58:38]line Тип оплаты: Талоны: ТК ГПНА Online [09:58:38]line 30078127 [09:58:38]line ______________________ [09:58:38]line (подпись) [09:58:38]written 0, free lines is 4095 [09:58:39]Write to MH i2c: 01 00 00 AB 19 C4 [09:58:39]Write i2c OK [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: 01 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: 01 07 00 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: 01 07 00 AB 19 00 00 00 00 00 11 0E EA [09:58:39]RasterBufferAndPrint [09:58:39]line [09:58:39]line [09:58:39]line [09:58:39]line [09:58:39]line [09:58:39]written 0, free lines is 3603 [09:58:39]MH_Cut [09:58:39]Write to MH i2c: D1 01 00 B2 19 01 9D [09:58:39]Write i2c OK [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: D1 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: D1 01 00 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: D1 01 00 B2 19 00 9C [09:58:39]Write to MH i2c: 01 00 00 B3 19 CC [09:58:39]Write i2c OK [09:58:39]MH_I2C_Read... [09:58:39]*** Cut start [09:58:39]*** Partial cut [09:58:39]*** CUTSNS_PIN = 1 [09:58:39]*** CUTSNS_PIN = 0 [09:58:40]*** Brake cut motor [09:58:40]Read from MH i2c: 01 [09:58:40]MH_I2C_Read... [09:58:40]*** Stop cut motor [09:58:40]*** Cut end [09:58:40]Read from MH i2c: 01 07 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: 01 07 00 B3 19 00 00 00 00 00 FF 0F E1 [09:58:40]process_action print_text done [09:58:40]requested_data is exist [09:58:40]produce_requested_data [09:58:40]requested_item fm.sn is exist - process it [09:58:40]wFMCommunicate request_size=4 [09:58:40]MH_SAM_APDU [09:58:40]CAPDU: 80 11 00 00 [09:58:40]Write to MH i2c: E2 08 00 B4 19 80 11 00 00 00 00 00 00 47 [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 17 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 17 00 B4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9A [09:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:58:40]wFMCommunicate OK [09:58:40]requested_item fd.num is exist - process it [09:58:40]SAM_PROTO_GetFieldsCounters [09:58:40]wFMCommunicate request_size=4 [09:58:40]MH_SAM_APDU [09:58:40]CAPDU: 80 13 00 00 [09:58:40]Write to MH i2c: E2 08 00 B5 19 80 13 00 00 00 00 00 00 4A [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 62 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 62 00 B5 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 ED 44 02 00 0E 04 04 00 70 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 B2 [09:58:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 ED 44 02 00 0E 04 04 00 70 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 [09:58:40]wFMCommunicate OK [09:58:40]SAM_PROTO_GetFieldsCounters done [09:58:40]requested_item shift.num is exist - process it [09:58:40]requested_item shift.opened is exist - process it [09:58:40]req_shift_opened [09:58:40]FM_GetShiftState [09:58:40]SAM_PROTO_GetShiftState [09:58:40]wFMCommunicate request_size=4 [09:58:40]MH_SAM_APDU [09:58:40]CAPDU: 80 13 01 00 [09:58:40]Write to MH i2c: E2 08 00 B6 19 80 13 01 00 00 00 00 00 4C [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 0E 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 0E 00 B6 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0F [09:58:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:58:40]wFMCommunicate OK [09:58:40]SAM_PROTO_GetShiftState done [09:58:40]FM_GetShiftState done [09:58:40]req_shift_opened done [09:58:40]requested_item shift.open_date is exist - process it [09:58:40]req_shift_open_date [09:58:40]req_shift_open_date done [09:58:40]produce_requested_data done [09:58:40]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148717,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:58:40]process_action_free print_text [09:58:40]json_value_free [09:58:40]json_value_free done [09:58:40]process_json_proto returns [09:58:40]Send response to host [09:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148717,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:58:40]free response buf [09:58:40]execute_script done [09:58:40]execute_script returns [09:58:40]free content buf [09:58:40]Sock 9.Close socket [09:58:40]Sock 9.Thread stoped [09:58:43]OFD Sender: No OFD packet to send [09:58:45]accept exits with 7 [09:58:45]New connection [09:58:45]New thread 3066809700 created [09:58:45]Thread 3066666340 joined [09:58:45]Waiting for new connection... [09:58:45] Sock 7.Parse request [09:58:45]Sock 7.Check first char [09:58:45]Sock 7.First char is OK [09:58:45]request: POST /json_proto HTTP/1.0 [09:58:45]Method: POST [09:58:45]URL: /json_proto [09:58:45]Method is POST - this is cgi request [09:58:45]url: /json_proto [09:58:45]query_string will be loaded in cgi processing [09:58:45]execute_cgi json_proto POST (null) [09:58:45]execute_cgi path=json_proto method=POST [09:58:45]POST find Content-Length [09:58:45]Host: 172.17.38.4:8080 [09:58:45]Content-Length: 677 [09:58:45]Content-Type: application/json [09:58:45] [09:58:45]POST finish read [09:58:45]Found Content-Length = 677 [09:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:45]execute_script... [09:58:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:45]POST & json_proto [09:58:45]process_json_proto [09:58:45]json parsed OK: [09:58:45]protocol is kg_v1.0 [09:58:45]action value=close_receipt [09:58:45]process_action close_receipt [09:58:45]cmd_close_receipt [09:58:45]MH_GetDate [09:58:45]Write to MH i2c: F0 00 00 B7 19 BF [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: F0 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: F0 09 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: F0 09 00 B7 19 00 58 E5 5E 66 CC 51 87 64 D1 [09:58:45]GetLastDocTimeStamp 1717494978 [09:58:45]current date 1717495128 [09:58:45]FM_GetShiftState [09:58:45]SAM_PROTO_GetShiftState [09:58:45]wFMCommunicate request_size=4 [09:58:45]MH_SAM_APDU [09:58:45]CAPDU: 80 13 01 00 [09:58:45]Write to MH i2c: E2 08 00 B8 19 80 13 01 00 00 00 00 00 4E [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:45]Read from MH i2c: E2 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 0E 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 0E 00 B8 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 11 [09:58:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:58:45]wFMCommunicate OK [09:58:45]SAM_PROTO_GetShiftState done [09:58:45]FM_GetShiftState done [09:58:45]opened in 1717460629 [09:58:45]opened+sec_in_day 1717547029 [09:58:45]quantity*price = 50041 [09:58:45]sum+1 = 50042 [09:58:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 57 04.06.2024 09:58 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148718 ФПД: 108985675487149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095848&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148718&fm=108985675487149&tin=02508201610067®Number=0000000000092720&sum=50000 [09:58:46]StoreToDocumentArchive [09:58:46]shift 368 fd 148718 [09:58:46]save to /storage/0368/doc_00148718 [09:58:46]save last doc name /storage/0368/doc_00148718 to /storage/kkm_last_doc_name [09:58:46]save OK [09:58:46]Clear old archive folders... [09:58:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:46]tlvbuf is B6D85010 [09:58:46]SAM_PROTO_ClearQueue [09:58:46]wFMCommunicate request_size=4 [09:58:46]MH_SAM_APDU [09:58:46]CAPDU: 80 09 00 00 [09:58:46]Write to MH i2c: E2 08 00 C5 19 80 09 00 00 00 00 00 00 50 [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 C5 19 00 90 00 52 [09:58:47]RAPDU: 90 00 [09:58:47]wFMCommunicate OK [09:58:47]SAM_PROTO_ClearQueue done [09:58:47]KKMCreateOFDPacket [09:58:47]OFDProtocolAddRootSTLVToBuf [09:58:47]FM_MakeSignedData [09:58:47]FM_MakeSignedData [09:58:47]SAM_PROTO_SignData [09:58:47]wFMCommunicate request_size=4 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 0D 01 02 [09:58:47]Write to MH i2c: E2 08 00 C6 19 80 0D 01 02 00 00 00 00 58 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 C6 19 00 90 00 53 [09:58:47]RAPDU: 90 00 [09:58:47]wFMCommunicate OK [09:58:47]wFMCommunicate request_size=255 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 58 E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EE 44 02 00 35 04 06 00 63 [09:58:47]Write to MH i2c: E2 02 01 C7 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 58 E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EE 44 02 00 35 04 06 00 63 00 00 24 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:47]Read from MH i2c: E2 03 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 C7 19 00 90 00 54 [09:58:47]RAPDU: 90 00 [09:58:47]wFMCommunicate OK [09:58:47]wFMCommunicate request_size=10 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 0D 02 02 05 1F 34 79 17 AD [09:58:47]Write to MH i2c: E2 0D 00 C8 19 80 0D 02 02 05 00 1F 34 79 17 AD 00 00 F5 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 C8 19 00 90 00 55 [09:58:47]RAPDU: 90 00 [09:58:47]wFMCommunicate OK [09:58:47]wFMCommunicate request_size=4 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 0D 03 02 [09:58:47]Write to MH i2c: E2 08 00 C9 19 80 0D 03 02 00 00 00 00 5D [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 0B 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 0B 00 C9 19 00 31 B5 CE 70 4D 31 17 1E 90 00 35 [09:58:47]RAPDU: 31 B5 CE 70 4D 31 17 1E 90 00 [09:58:47]wFMCommunicate OK [09:58:47]SAM_PROTO_SignData done [09:58:47]FM_MakeSignedData done [09:58:47]CreateOFDProtocolMessage [09:58:47]wFMCommunicate request_size=4 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 11 00 00 [09:58:47]Write to MH i2c: E2 08 00 CA 19 80 11 00 00 00 00 00 00 5D [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 17 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 17 00 CA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B0 [09:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:58:47]wFMCommunicate OK [09:58:47]CreateOFDProtocolMessage done [09:58:47]OFDSenderStorePacket 148718 [09:58:47]StoreOFDPacket docnum=148718 [09:58:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 11 43 07 01 6A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 58 E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EE 44 02 00 35 04 06 00 63 1F 34 79 17 AD 31 B5 CE 70 4D 31 17 1E [09:58:47]CheckFolder [09:58:47]dirname=/storage/ofd_packets [09:58:47]CheckFolder done [09:58:47]ProducePacketName [09:58:47]name=ofd_packets/00148718 [09:58:47]NVStorageSaveData ofd_packets/00148718 [09:58:47]File name is /storage/ofd_packets/00148718 [09:58:47]Write 301 bytes [09:58:47]NVStorageSaveData done [09:58:47]OFDSenderStorePacket done [09:58:47]KKMCreateOFDPacket done [09:58:47]NVStorageSaveData kkm_last_timestamp [09:58:47]File name is /storage/kkm_last_timestamp [09:58:47]Write 4 bytes [09:58:47]NVStorageSaveData done [09:58:47]ExternCall_PrintAddStr [09:58:47]wPrintStart [09:58:47]Write to MH i2c: 01 00 00 CB 19 E4 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: 01 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: 01 07 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: 01 07 00 CB 19 00 00 00 00 00 FF 0F F9 [09:58:47]RasterBufferAndPrint [09:58:47]line Счет N : (1)979643 [09:58:47]line ИНН: 02508201610067 [09:58:47]line Контрольно-Кассовый Чек [09:58:47]line ПРОДАЖА [09:58:47]line ТРК (МРК, ГНК) : 22 [09:58:47]line Товар: 2710124130 [09:58:47]line Аи-92-К-5 [09:58:47]line 7.480 * 66.90 [09:58:47]line = 500.41 [09:58:47]line НДС 12% НСП 1% [09:58:47]line > о реализуемом товаре [09:58:47]line ОКРУГЛЕНИЕ: -0.41 [09:58:47]line ИТОГО: 500.00 [09:58:47]line Внесено: 500.00 [09:58:47]line СДАЧА: 0.00 [09:58:47]line НСП 1% : 4.43 [09:58:47]line НДС 12% : 53.14 [09:58:47]line Наличными: 500.00 [09:58:47]line Безнал.: 0.00 [09:58:47]line Место: АЗС № 68 "Партнер Нефть" [09:58:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:58:47]line СНО: Общий режим [09:58:47]line Чек 57 04.06.2024 09:58 [09:58:47]line Смена: 368 ФФД: 1.0 [09:58:47]line ЗНМ: 0300000035 [09:58:47]line РНМ: 0000000000092720 [09:58:47]line Версия ККМ: 001 [09:58:47]line ФМ: 0000000000875057 [09:58:47]line ФД: 148718 [09:58:47]line ФПД: 108985675487149 [09:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095848&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148718&fm=108985675487149&tin=02508201610067®Number=0000000000092720&sum=50000 [09:58:47]OFD Sender: Processing packet 148718 [packets to send 100, broken 99] [09:58:47]ProducePacketName [09:58:47]name=ofd_packets/00148718 [09:58:47]OFD Sender: To server: pG, [09:58:47]CommunicateWithHost lk.salyk.kg:30040 [09:58:47]ConnectInit lk.salyk.kg [09:58:47]written 0, free lines is 4095 [09:58:47]Connected sock=10 [09:58:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 11 43 07 01 6A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 58 E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EE 44 02 00 35 04 06 00 63 1F 34 79 17 AD 31 B5 CE 70 4D 31 17 1E [09:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 26 93 47 00 3E 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 38 37 35 30 35 37 10 04 04 00 EE 44 02 00 F4 03 04 00 7C 8C 5E 66 B6 04 01 00 00 BE AD B1 18 FE B8 80 BC [09:58:48]CommunicateWithHost err = 0 [09:58:48]CheckOFDResponse [09:58:48]1017 (14) - 77093643461234 [09:58:48]1041 (16) - 0000000000875057 [09:58:48]1040 (4) - 148718 [09:58:48]1012 (4) - 04.06.2024 03:39 [09:58:48]1206 (1) - 0 [09:58:48]OFD Sender: Remove packet 148718 [09:58:48]ProducePacketName [09:58:48]name=ofd_packets/00148718 [09:58:48]NVStorageDeleteData [09:58:48]Write to MH i2c: 01 00 00 F6 19 0F [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 07 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 07 00 F6 19 00 00 00 00 00 6A 0C 8C [09:58:48]RasterBufferAndPrint [09:58:48]line [09:58:48]line [09:58:48]line [09:58:48]line [09:58:48]line [09:58:48]written 0, free lines is 3181 [09:58:48]MH_Cut [09:58:48]Write to MH i2c: D1 01 00 FD 19 01 E8 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: D1 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: D1 01 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: D1 01 00 FD 19 00 E7 [09:58:48]Write to MH i2c: 01 00 00 FE 19 17 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]OFD Sender: No OFD packet to send [09:58:49]*** Cut start [09:58:49]*** Partial cut [09:58:49]*** CUTSNS_PIN = 1 [09:58:49]*** CUTSNS_PIN = 0 [09:58:49]*** Brake cut motor [09:58:50]Read from MH i2c: 01 [09:58:50]MH_I2C_Read... [09:58:50]*** Stop cut motor [09:58:50]*** Cut end [09:58:50]Read from MH i2c: 01 07 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: 01 07 00 FE 19 00 00 00 00 00 FF 0F 2C [09:58:50]process_action close_receipt done [09:58:50]requested_data is exist [09:58:50]produce_requested_data [09:58:50]requested_item fm.sn is exist - process it [09:58:50]wFMCommunicate request_size=4 [09:58:50]MH_SAM_APDU [09:58:50]CAPDU: 80 11 00 00 [09:58:50]Write to MH i2c: E2 08 00 FF 19 80 11 00 00 00 00 00 00 92 [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:50]Read from MH i2c: E2 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 17 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 17 00 FF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E5 [09:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:58:50]wFMCommunicate OK [09:58:50]requested_item fd.num is exist - process it [09:58:50]SAM_PROTO_GetFieldsCounters [09:58:50]wFMCommunicate request_size=4 [09:58:50]MH_SAM_APDU [09:58:50]CAPDU: 80 13 00 00 [09:58:50]Write to MH i2c: E2 08 00 00 1A 80 13 00 00 00 00 00 00 96 [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:50]Read from MH i2c: E2 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 62 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 62 00 00 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EE 44 02 00 0E 04 04 00 70 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 02 [09:58:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EE 44 02 00 0E 04 04 00 70 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 [09:58:50]wFMCommunicate OK [09:58:50]SAM_PROTO_GetFieldsCounters done [09:58:50]requested_item shift.num is exist - process it [09:58:50]requested_item shift.opened is exist - process it [09:58:50]req_shift_opened [09:58:50]FM_GetShiftState [09:58:50]SAM_PROTO_GetShiftState [09:58:50]wFMCommunicate request_size=4 [09:58:50]MH_SAM_APDU [09:58:50]CAPDU: 80 13 01 00 [09:58:50]Write to MH i2c: E2 08 00 01 1A 80 13 01 00 00 00 00 00 98 [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:50]Read from MH i2c: E2 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 0E 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 0E 00 01 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5B [09:58:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:58:50]wFMCommunicate OK [09:58:50]SAM_PROTO_GetShiftState done [09:58:50]FM_GetShiftState done [09:58:50]req_shift_opened done [09:58:50]requested_item shift.open_date is exist - process it [09:58:50]req_shift_open_date [09:58:50]req_shift_open_date done [09:58:50]produce_requested_data done [09:58:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148718,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:58:50]process_action_free close_receipt [09:58:50]json_value_free [09:58:50]json_value_free done [09:58:50]process_json_proto returns [09:58:50]Send response to host [09:58:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148718,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:58:50]free response buf [09:58:50]execute_script done [09:58:50]execute_script returns [09:58:50]free content buf [09:58:50]Sock 7.Close socket [09:58:50]Sock 7.Thread stoped [09:58:50]accept exits with 9 [09:58:50]New connection [09:58:50]New thread 3066666340 created [09:58:50]Thread 3066809700 joined [09:58:50]Waiting for new connection... [09:58:50] Sock 9.Parse request [09:58:50]Sock 9.Check first char [09:58:50]Sock 9.First char is OK [09:58:50]request: POST /json_proto HTTP/1.0 [09:58:50]Method: POST [09:58:50]URL: /json_proto [09:58:50]Method is POST - this is cgi request [09:58:50]url: /json_proto [09:58:50]query_string will be loaded in cgi processing [09:58:50]execute_cgi json_proto POST (null) [09:58:50]execute_cgi path=json_proto method=POST [09:58:50]POST find Content-Length [09:58:50]Host: 172.17.38.4:8080 [09:58:50]Content-Length: 800 [09:58:50]Content-Type: application/json [09:58:50] [09:58:50]POST finish read [09:58:50]Found Content-Length = 800 [09:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:50]execute_script... [09:58: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)979644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:50]POST & json_proto [09:58:50]process_json_proto [09:58:50]json parsed OK: [09:58:50]protocol is kg_v1.0 [09:58:50]action value=close_receipt [09:58:50]process_action close_receipt [09:58:50]cmd_close_receipt [09:58:50]MH_GetDate [09:58:50]Write to MH i2c: F0 00 00 02 1A 0B [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: F0 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: F0 09 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: F0 09 00 02 1A 00 5D E5 5E 66 CC 51 87 64 22 [09:58:50]GetLastDocTimeStamp 1717495128 [09:58:50]current date 1717495133 [09:58:50]FM_GetShiftState [09:58:50]SAM_PROTO_GetShiftState [09:58:50]wFMCommunicate request_size=4 [09:58:50]MH_SAM_APDU [09:58:50]CAPDU: 80 13 01 00 [09:58:50]Write to MH i2c: E2 08 00 03 1A 80 13 01 00 00 00 00 00 9A [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:50]Read from MH i2c: E2 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 0E 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: E2 0E 00 03 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5D [09:58:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:58:50]wFMCommunicate OK [09:58:50]SAM_PROTO_GetShiftState done [09:58:50]FM_GetShiftState done [09:58:50]opened in 1717460629 [09:58:50]opened+sec_in_day 1717547029 [09:58:50]quantity*price = 65026 [09:58:50]sum+1 = 65028 [09:58:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.27 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 0.00 Безнал.: 650.27 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 58 04.06.2024 09:58 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148719 ФПД: 192910036838866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095853&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148719&fm=192910036838866&tin=02508201610067®Number=0000000000092720&sum=65027 [09:58:52]StoreToDocumentArchive [09:58:52]shift 368 fd 148719 [09:58:52]save to /storage/0368/doc_00148719 [09:58:52]save last doc name /storage/0368/doc_00148719 to /storage/kkm_last_doc_name [09:58:52]save OK [09:58:52]Clear old archive folders... [09:58:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:52]tlvbuf is 015C3280 [09:58:52]SAM_PROTO_ClearQueue [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 09 00 00 [09:58:52]Write to MH i2c: E2 08 00 10 1A 80 09 00 00 00 00 00 00 9C [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 03 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [09:58:52]RAPDU: 90 00 [09:58:52]wFMCommunicate OK [09:58:52]SAM_PROTO_ClearQueue done [09:58:52]KKMCreateOFDPacket [09:58:52]OFDProtocolAddRootSTLVToBuf [09:58:52]FM_MakeSignedData [09:58:52]FM_MakeSignedData [09:58:52]SAM_PROTO_SignData [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 0D 01 02 [09:58:52]Write to MH i2c: E2 08 00 11 1A 80 0D 01 02 00 00 00 00 A4 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 03 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [09:58:52]RAPDU: 90 00 [09:58:52]wFMCommunicate OK [09:58:52]wFMCommunicate request_size=255 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5D E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EF 44 02 00 35 04 06 00 AF [09:58:52]Write to MH i2c: E2 02 01 12 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5D E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EF 44 02 00 35 04 06 00 AF 00 00 EE [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 03 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [09:58:52]RAPDU: 90 00 [09:58:52]wFMCommunicate OK [09:58:52]wFMCommunicate request_size=10 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 0D 02 02 05 73 5E 38 29 D2 [09:58:52]Write to MH i2c: E2 0D 00 13 1A 80 0D 02 02 05 00 73 5E 38 29 D2 00 00 B5 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 03 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 03 00 13 1A 00 90 00 A1 [09:58:52]RAPDU: 90 00 [09:58:52]wFMCommunicate OK [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 0D 03 02 [09:58:52]Write to MH i2c: E2 08 00 14 1A 80 0D 03 02 00 00 00 00 A9 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 0B 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 0B 00 14 1A 00 DA 6F C7 21 A4 C4 77 B1 90 00 6B [09:58:52]RAPDU: DA 6F C7 21 A4 C4 77 B1 90 00 [09:58:52]wFMCommunicate OK [09:58:52]SAM_PROTO_SignData done [09:58:52]FM_MakeSignedData done [09:58:52]CreateOFDProtocolMessage [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 11 00 00 [09:58:52]Write to MH i2c: E2 08 00 15 1A 80 11 00 00 00 00 00 00 A9 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 17 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 17 00 15 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FC [09:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:58:52]wFMCommunicate OK [09:58:52]CreateOFDProtocolMessage done [09:58:52]OFDSenderStorePacket 148719 [09:58:52]StoreOFDPacket docnum=148719 [09:58:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 49 22 07 01 8A FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5D E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EF 44 02 00 35 04 06 00 AF 73 5E 38 29 D2 DA 6F C7 21 A4 C4 77 B1 [09:58:52]CheckFolder [09:58:52]dirname=/storage/ofd_packets [09:58:52]CheckFolder done [09:58:52]ProducePacketName [09:58:52]name=ofd_packets/00148719 [09:58:52]NVStorageSaveData ofd_packets/00148719 [09:58:52]File name is /storage/ofd_packets/00148719 [09:58:52]Write 301 bytes [09:58:52]NVStorageSaveData done [09:58:52]OFDSenderStorePacket done [09:58:52]KKMCreateOFDPacket done [09:58:52]NVStorageSaveData kkm_last_timestamp [09:58:52]File name is /storage/kkm_last_timestamp [09:58:52]Write 4 bytes [09:58:52]NVStorageSaveData done [09:58:52]ExternCall_PrintAddStr [09:58:52]wPrintStart [09:58:52]Write to MH i2c: 01 00 00 16 1A 30 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 07 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 07 00 16 1A 00 00 00 00 00 FF 0F 45 [09:58:52]RasterBufferAndPrint [09:58:52]line Счет N : (1)979644 [09:58:52]line ИНН: 02508201610067 [09:58:52]line Контрольно-Кассовый Чек [09:58:52]line ПРОДАЖА [09:58:52]line ТРК (МРК, ГНК) : 41 [09:58:52]line Товар: 2710124130 [09:58:52]line Аи-92-К-5 [09:58:52]line 9.720 * 66.90 [09:58:52]line = 650.27 [09:58:52]line НДС 12% НСП 1% [09:58:52]line > о реализуемом товаре [09:58:52]line ИТОГО: 650.27 [09:58:52]line НСП 1% : 5.75 [09:58:52]line НДС 12% : 69.05 [09:58:52]line Наличными: 0.00 [09:58:52]line Безнал.: 650.27 [09:58:52]line Место: АЗС № 68 "Партнер Нефть" [09:58:52]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [09:58:52]line СНО: Общий режим [09:58:52]line Чек 58 04.06.2024 09:58 [09:58:52]line Смена: 368 ФФД: 1.0 [09:58:52]line ЗНМ: 0300000035 [09:58:52]line РНМ: 0000000000092720 [09:58:52]line Версия ККМ: 001 [09:58:52]line Платежная система: O! деньги [09:58:52]line ФМ: 0000000000875057 [09:58:52]line ФД: 148719 [09:58:52]line ФПД: 192910036838866 [09:58:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095853&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148719&fm=192910036838866&tin=02508201610067®Number=0000000000092720&sum=65027 [09:58:53]OFD Sender: Processing packet 148719 [packets to send 100, broken 99] [09:58:53]ProducePacketName [09:58:53]name=ofd_packets/00148719 [09:58:53]OFD Sender: To server: pG, [09:58:53]CommunicateWithHost lk.salyk.kg:30040 [09:58:53]ConnectInit lk.salyk.kg [09:58:53]written 0, free lines is 4095 [09:58:53]Connected sock=10 [09:58:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 49 22 07 01 8A FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5D E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EF 44 02 00 35 04 06 00 AF 73 5E 38 29 D2 DA 6F C7 21 A4 C4 77 B1 [09:58:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 17 46 47 00 EE 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EF 44 02 00 F4 03 04 00 82 8C 5E 66 B6 04 01 00 00 38 84 4C 24 1C 73 4A 10 [09:58:53]CommunicateWithHost err = 0 [09:58:53]CheckOFDResponse [09:58:53]1017 (14) - 77093643461234 [09:58:53]1041 (16) - 0000000000875057 [09:58:53]1040 (4) - 148719 [09:58:53]1012 (4) - 04.06.2024 03:39 [09:58:53]1206 (1) - 0 [09:58:53]OFD Sender: Remove packet 148719 [09:58:53]ProducePacketName [09:58:53]name=ofd_packets/00148719 [09:58:53]NVStorageDeleteData [09:58:53]Write to MH i2c: 01 00 00 40 1A 5A [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: 01 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: 01 07 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: 01 07 00 40 1A 00 00 00 00 00 8A 0C F7 [09:58:53]RasterBufferAndPrint [09:58:53]line [09:58:53]line [09:58:53]line [09:58:53]line [09:58:53]line [09:58:53]written 0, free lines is 3216 [09:58:53]MH_Cut [09:58:53]Write to MH i2c: D1 01 00 47 1A 01 33 [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: D1 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: D1 01 00 [09:58:53]MH_I2C_Read... [09:58:53]Read from MH i2c: D1 01 00 47 1A 00 32 [09:58:53]Write to MH i2c: 01 00 00 48 1A 62 [09:58:53]Write i2c OK [09:58:53]MH_I2C_Read... [09:58:54]OFD Sender: No OFD packet to send [09:58:54]*** Cut start [09:58:54]*** Partial cut [09:58:54]*** CUTSNS_PIN = 1 [09:58:54]*** CUTSNS_PIN = 0 [09:58:55]*** Brake cut motor [09:58:55]Read from MH i2c: 01 [09:58:55]MH_I2C_Read... [09:58:55]*** Stop cut motor [09:58:55]*** Cut end [09:58:55]Read from MH i2c: 01 07 00 [09:58:55]MH_I2C_Read... [09:58:55]Read from MH i2c: 01 07 00 48 1A 00 00 00 00 00 FF 0F 77 [09:58:55]process_action close_receipt done [09:58:55]requested_data is exist [09:58:55]produce_requested_data [09:58:55]requested_item fm.sn is exist - process it [09:58:55]wFMCommunicate request_size=4 [09:58:55]MH_SAM_APDU [09:58:55]CAPDU: 80 11 00 00 [09:58:55]Write to MH i2c: E2 08 00 49 1A 80 11 00 00 00 00 00 00 DD [09:58:55]Write i2c OK [09:58:55]MH_I2C_Read... [09:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:55]Read from MH i2c: E2 [09:58:55]MH_I2C_Read... [09:58:55]Read from MH i2c: E2 17 00 [09:58:55]MH_I2C_Read... [09:58:55]Read from MH i2c: E2 17 00 49 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 30 [09:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [09:58:55]wFMCommunicate OK [09:58:55]requested_item fd.num is exist - process it [09:58:55]SAM_PROTO_GetFieldsCounters [09:58:55]wFMCommunicate request_size=4 [09:58:55]MH_SAM_APDU [09:58:55]CAPDU: 80 13 00 00 [09:58:55]Write to MH i2c: E2 08 00 4A 1A 80 13 00 00 00 00 00 00 E0 [09:58:55]Write i2c OK [09:58:55]MH_I2C_Read... [09:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:55]Read from MH i2c: E2 [09:58:55]MH_I2C_Read... [09:58:55]Read from MH i2c: E2 62 00 [09:58:55]MH_I2C_Read... [09:58:55]Read from MH i2c: E2 62 00 4A 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EF 44 02 00 0E 04 04 00 70 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 50 [09:58:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EF 44 02 00 0E 04 04 00 70 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 [09:58:55]wFMCommunicate OK [09:58:55]SAM_PROTO_GetFieldsCounters done [09:58:55]requested_item shift.num is exist - process it [09:58:55]requested_item shift.opened is exist - process it [09:58:55]req_shift_opened [09:58:55]FM_GetShiftState [09:58:55]SAM_PROTO_GetShiftState [09:58:55]wFMCommunicate request_size=4 [09:58:55]MH_SAM_APDU [09:58:55]CAPDU: 80 13 01 00 [09:58:55]Write to MH i2c: E2 08 00 4B 1A 80 13 01 00 00 00 00 00 E2 [09:58:55]Write i2c OK [09:58:55]MH_I2C_Read... [09:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:55]Read from MH i2c: E2 [09:58:55]MH_I2C_Read... [09:58:55]Read from MH i2c: E2 0E 00 [09:58:55]MH_I2C_Read... [09:58:55]Read from MH i2c: E2 0E 00 4B 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A5 [09:58:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [09:58:55]wFMCommunicate OK [09:58:55]SAM_PROTO_GetShiftState done [09:58:55]FM_GetShiftState done [09:58:55]req_shift_opened done [09:58:55]requested_item shift.open_date is exist - process it [09:58:55]req_shift_open_date [09:58:55]req_shift_open_date done [09:58:55]produce_requested_data done [09:58:55]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148719,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [09:58:55]process_action_free close_receipt [09:58:55]json_value_free [09:58:55]json_value_free done [09:58:55]process_json_proto returns [09:58:55]Send response to host [09:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148719,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [09:58:55]free response buf [09:58:55]execute_script done [09:58:55]execute_script returns [09:58:55]free content buf [09:58:55]Sock 9.Close socket [09:58:55]Sock 9.Thread stoped [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:16]accept exits with 7 [10:00:16]New connection [10:00:16]New thread 3066809700 created [10:00:16]Thread 3066666340 joined [10:00:16]Waiting for new connection... [10:00:16] Sock 7.Parse request [10:00:16]Sock 7.Check first char [10:00:16]Sock 7.First char is OK [10:00:16]request: POST /json_proto HTTP/1.0 [10:00:16]Method: POST [10:00:16]URL: /json_proto [10:00:16]Method is POST - this is cgi request [10:00:16]url: /json_proto [10:00:16]query_string will be loaded in cgi processing [10:00:16]execute_cgi json_proto POST (null) [10:00:16]execute_cgi path=json_proto method=POST [10:00:16]POST find Content-Length [10:00:16]Host: 172.17.38.4:8080 [10:00:16]Content-Length: 677 [10:00:16]Content-Type: application/json [10:00:16] [10:00:16]POST finish read [10:00:16]Found Content-Length = 677 [10:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:16]execute_script... [10: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)979645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:16]POST & json_proto [10:00:16]process_json_proto [10:00:16]json parsed OK: [10:00:16]protocol is kg_v1.0 [10:00:16]action value=close_receipt [10:00:16]process_action close_receipt [10:00:16]cmd_close_receipt [10:00:16]MH_GetDate [10:00:16]Write to MH i2c: F0 00 00 4C 1A 55 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: F0 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: F0 09 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: F0 09 00 4C 1A 00 B2 E5 5E 66 CC 51 87 64 C1 [10:00:16]GetLastDocTimeStamp 1717495133 [10:00:16]current date 1717495218 [10:00:16]FM_GetShiftState [10:00:16]SAM_PROTO_GetShiftState [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 13 01 00 [10:00:16]Write to MH i2c: E2 08 00 4D 1A 80 13 01 00 00 00 00 00 E4 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 0E 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 0E 00 4D 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A7 [10:00:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:00:16]wFMCommunicate OK [10:00:16]SAM_PROTO_GetShiftState done [10:00:16]FM_GetShiftState done [10:00:16]opened in 1717460629 [10:00:16]opened+sec_in_day 1717547029 [10:00:16]quantity*price = 50041 [10:00:16]sum+1 = 50042 [10:00:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 59 04.06.2024 10:00 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148720 ФПД: 196782828803047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100018&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148720&fm=196782828803047&tin=02508201610067®Number=0000000000092720&sum=50000 [10:00:17]StoreToDocumentArchive [10:00:17]shift 368 fd 148720 [10:00:17]save to /storage/0368/doc_00148720 [10:00:17]save last doc name /storage/0368/doc_00148720 to /storage/kkm_last_doc_name [10:00:17]save OK [10:00:17]Clear old archive folders... [10:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:17]tlvbuf is B6E9E880 [10:00:17]SAM_PROTO_ClearQueue [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 09 00 00 [10:00:17]Write to MH i2c: E2 08 00 5A 1A 80 09 00 00 00 00 00 00 E6 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [10:00:17]RAPDU: 90 00 [10:00:17]wFMCommunicate OK [10:00:17]SAM_PROTO_ClearQueue done [10:00:17]KKMCreateOFDPacket [10:00:17]OFDProtocolAddRootSTLVToBuf [10:00:17]FM_MakeSignedData [10:00:17]FM_MakeSignedData [10:00:17]SAM_PROTO_SignData [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 0D 01 02 [10:00:17]Write to MH i2c: E2 08 00 5B 1A 80 0D 01 02 00 00 00 00 EE [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [10:00:17]RAPDU: 90 00 [10:00:17]wFMCommunicate OK [10:00:17]wFMCommunicate request_size=255 [10:00:17]MH_SAM_APDU [10: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B2 E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 44 02 00 35 04 06 00 B2 [10:00:17]Write to MH i2c: E2 02 01 5C 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B2 E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 44 02 00 35 04 06 00 B2 00 00 67 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [10:00:17]RAPDU: 90 00 [10:00:17]wFMCommunicate OK [10:00:17]wFMCommunicate request_size=10 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 0D 02 02 05 F9 12 9B D3 E7 [10:00:17]Write to MH i2c: E2 0D 00 5D 1A 80 0D 02 02 05 00 F9 12 9B D3 E7 00 00 5B [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 03 00 5D 1A 00 90 00 EB [10:00:17]RAPDU: 90 00 [10:00:17]wFMCommunicate OK [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 0D 03 02 [10:00:17]Write to MH i2c: E2 08 00 5E 1A 80 0D 03 02 00 00 00 00 F3 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 0B 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 0B 00 5E 1A 00 8D FD 45 A6 30 E9 A7 E4 90 00 0D [10:00:17]RAPDU: 8D FD 45 A6 30 E9 A7 E4 90 00 [10:00:17]wFMCommunicate OK [10:00:17]SAM_PROTO_SignData done [10:00:17]FM_MakeSignedData done [10:00:17]CreateOFDProtocolMessage [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 11 00 00 [10:00:17]Write to MH i2c: E2 08 00 5F 1A 80 11 00 00 00 00 00 00 F3 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 17 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 17 00 5F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 46 [10:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:00:17]wFMCommunicate OK [10:00:17]CreateOFDProtocolMessage done [10:00:17]OFDSenderStorePacket 148720 [10:00:17]StoreOFDPacket docnum=148720 [10:00:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B5 69 07 01 EC 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B2 E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 44 02 00 35 04 06 00 B2 F9 12 9B D3 E7 8D FD 45 A6 30 E9 A7 E4 [10:00:17]CheckFolder [10:00:17]dirname=/storage/ofd_packets [10:00:17]CheckFolder done [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00148720 [10:00:17]NVStorageSaveData ofd_packets/00148720 [10:00:17]File name is /storage/ofd_packets/00148720 [10:00:17]Write 301 bytes [10:00:17]NVStorageSaveData done [10:00:17]OFDSenderStorePacket done [10:00:17]KKMCreateOFDPacket done [10:00:17]NVStorageSaveData kkm_last_timestamp [10:00:17]File name is /storage/kkm_last_timestamp [10:00:17]Write 4 bytes [10:00:17]NVStorageSaveData done [10:00:17]ExternCall_PrintAddStr [10:00:17]wPrintStart [10:00:17]Write to MH i2c: 01 00 00 60 1A 7A [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 60 1A 00 00 00 00 00 FF 0F 8F [10:00:17]RasterBufferAndPrint [10:00:17]line Счет N : (1)979645 [10:00:17]line ИНН: 02508201610067 [10:00:17]line Контрольно-Кассовый Чек [10:00:17]line ПРОДАЖА [10:00:17]line ТРК (МРК, ГНК) : 31 [10:00:17]line Товар: 2710124130 [10:00:17]line Аи-92-К-5 [10:00:17]line 7.480 * 66.90 [10:00:17]line = 500.41 [10:00:17]line НДС 12% НСП 1% [10:00:17]line > о реализуемом товаре [10:00:17]line ОКРУГЛЕНИЕ: -0.41 [10:00:17]line ИТОГО: 500.00 [10:00:17]line Внесено: 500.00 [10:00:17]line СДАЧА: 0.00 [10:00:17]line НСП 1% : 4.43 [10:00:17]line НДС 12% : 53.14 [10:00:17]line Наличными: 500.00 [10:00:17]line Безнал.: 0.00 [10:00:17]line Место: АЗС № 68 "Партнер Нефть" [10:00:17]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:00:17]line СНО: Общий режим [10:00:17]line Чек 59 04.06.2024 10:00 [10:00:17]line Смена: 368 ФФД: 1.0 [10:00:17]line ЗНМ: 0300000035 [10:00:17]line РНМ: 0000000000092720 [10:00:17]line Версия ККМ: 001 [10:00:17]line ФМ: 0000000000875057 [10:00:17]line ФД: 148720 [10:00:17]line ФПД: 196782828803047 [10:00:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100018&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148720&fm=196782828803047&tin=02508201610067®Number=0000000000092720&sum=50000 [10:00:18]OFD Sender: Processing packet 148720 [packets to send 100, broken 99] [10:00:18]ProducePacketName [10:00:18]name=ofd_packets/00148720 [10:00:18]OFD Sender: To server: pG, [10:00:18]CommunicateWithHost lk.salyk.kg:30040 [10:00:18]ConnectInit lk.salyk.kg [10:00:18]written 0, free lines is 4095 [10:00:18]Connected sock=9 [10:00:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B5 69 07 01 EC 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B2 E5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 44 02 00 35 04 06 00 B2 F9 12 9B D3 E7 8D FD 45 A6 30 E9 A7 E4 [10:00:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D0 72 47 00 F8 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 44 02 00 F4 03 04 00 D7 8C 5E 66 B6 04 01 00 00 98 0A 40 A8 76 EC 7C AB [10:00:18]CommunicateWithHost err = 0 [10:00:18]CheckOFDResponse [10:00:18]1017 (14) - 77093643461234 [10:00:18]1041 (16) - 0000000000875057 [10:00:18]1040 (4) - 148720 [10:00:18]1012 (4) - 04.06.2024 03:41 [10:00:18]1206 (1) - 0 [10:00:18]OFD Sender: Remove packet 148720 [10:00:18]ProducePacketName [10:00:18]name=ofd_packets/00148720 [10:00:18]NVStorageDeleteData [10:00:18]Write to MH i2c: 01 00 00 8B 1A A5 [10:00:18]Write i2c OK [10:00:18]MH_I2C_Read... [10:00:18]Read from MH i2c: 01 [10:00:18]MH_I2C_Read... [10:00:18]Read from MH i2c: 01 07 00 [10:00:18]MH_I2C_Read... [10:00:18]Read from MH i2c: 01 07 00 8B 1A 00 00 00 00 00 6E 0C 26 [10:00:18]RasterBufferAndPrint [10:00:18]line [10:00:18]line [10:00:18]line [10:00:18]line [10:00:18]line [10:00:18]written 0, free lines is 3185 [10:00:18]MH_Cut [10:00:18]Write to MH i2c: D1 01 00 92 1A 01 7E [10:00:18]Write i2c OK [10:00:18]MH_I2C_Read... [10:00:18]Read from MH i2c: D1 [10:00:18]MH_I2C_Read... [10:00:18]Read from MH i2c: D1 01 00 [10:00:18]MH_I2C_Read... [10:00:18]Read from MH i2c: D1 01 00 92 1A 00 7D [10:00:18]Write to MH i2c: 01 00 00 93 1A AD [10:00:18]Write i2c OK [10:00:18]MH_I2C_Read... [10:00:18]OFD Sender: No OFD packet to send [10:00:19]*** Cut start [10:00:19]*** Partial cut [10:00:19]*** CUTSNS_PIN = 1 [10:00:19]*** CUTSNS_PIN = 0 [10:00:20]*** Brake cut motor [10:00:20]Read from MH i2c: 01 [10:00:20]MH_I2C_Read... [10:00:20]*** Stop cut motor [10:00:20]*** Cut end [10:00:20]Read from MH i2c: 01 07 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: 01 07 00 93 1A 00 00 00 00 00 FF 0F C2 [10:00:20]process_action close_receipt done [10:00:20]requested_data is exist [10:00:20]produce_requested_data [10:00:20]requested_item fm.sn is exist - process it [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 11 00 00 [10:00:20]Write to MH i2c: E2 08 00 94 1A 80 11 00 00 00 00 00 00 28 [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 17 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 17 00 94 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7B [10:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:00:20]wFMCommunicate OK [10:00:20]requested_item fd.num is exist - process it [10:00:20]SAM_PROTO_GetFieldsCounters [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 13 00 00 [10:00:20]Write to MH i2c: E2 08 00 95 1A 80 13 00 00 00 00 00 00 2B [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 62 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 62 00 95 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F0 44 02 00 0E 04 04 00 70 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 9F [10:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F0 44 02 00 0E 04 04 00 70 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 [10:00:20]wFMCommunicate OK [10:00:20]SAM_PROTO_GetFieldsCounters done [10:00:20]requested_item shift.num is exist - process it [10:00:20]requested_item shift.opened is exist - process it [10:00:20]req_shift_opened [10:00:20]FM_GetShiftState [10:00:20]SAM_PROTO_GetShiftState [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 13 01 00 [10:00:20]Write to MH i2c: E2 08 00 96 1A 80 13 01 00 00 00 00 00 2D [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 0E 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 0E 00 96 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F0 [10:00:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:00:20]wFMCommunicate OK [10:00:20]SAM_PROTO_GetShiftState done [10:00:20]FM_GetShiftState done [10:00:20]req_shift_opened done [10:00:20]requested_item shift.open_date is exist - process it [10:00:20]req_shift_open_date [10:00:20]req_shift_open_date done [10:00:20]produce_requested_data done [10:00:20]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148720,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:00:20]process_action_free close_receipt [10:00:20]json_value_free [10:00:20]json_value_free done [10:00:20]process_json_proto returns [10:00:20]Send response to host [10:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148720,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:00:20]free response buf [10:00:20]execute_script done [10:00:20]execute_script returns [10:00:20]free content buf [10:00:20]Sock 7.Close socket [10:00:20]Sock 7.Thread stoped [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:56]accept exits with 10 [10:01:56]New connection [10:01:56]New thread 3066666340 created [10:01:56]Thread 3066809700 joined [10:01:56]Waiting for new connection... [10:01:56] Sock 10.Parse request [10:01:56]Sock 10.Check first char [10:01:56]Sock 10.First char is OK [10:01:56]request: POST /json_proto HTTP/1.0 [10:01:56]Method: POST [10:01:56]URL: /json_proto [10:01:56]Method is POST - this is cgi request [10:01:56]url: /json_proto [10:01:56]query_string will be loaded in cgi processing [10:01:56]execute_cgi json_proto POST (null) [10:01:56]execute_cgi path=json_proto method=POST [10:01:56]POST find Content-Length [10:01:56]Host: 172.17.38.4:8080 [10:01:56]Content-Length: 790 [10:01:56]Content-Type: application/json [10:01:56] [10:01:56]POST finish read [10:01:56]Found Content-Length = 790 [10:01:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 170.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:56]execute_script... [10: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)979646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 170.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:56]POST & json_proto [10:01:56]process_json_proto [10:01:56]json parsed OK: [10:01:56]protocol is kg_v1.0 [10:01:56]action value=close_receipt [10:01:56]process_action close_receipt [10:01:56]cmd_close_receipt [10:01:56]MH_GetDate [10:01:56]Write to MH i2c: F0 00 00 97 1A A0 [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: F0 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: F0 09 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: F0 09 00 97 1A 00 17 E6 5E 66 CC 51 87 64 72 [10:01:56]GetLastDocTimeStamp 1717495218 [10:01:56]current date 1717495319 [10:01:56]FM_GetShiftState [10:01:56]SAM_PROTO_GetShiftState [10:01:56]wFMCommunicate request_size=4 [10:01:56]MH_SAM_APDU [10:01:56]CAPDU: 80 13 01 00 [10:01:56]Write to MH i2c: E2 08 00 98 1A 80 13 01 00 00 00 00 00 2F [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:56]Read from MH i2c: E2 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 0E 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 0E 00 98 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F2 [10:01:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:01:56]wFMCommunicate OK [10:01:56]SAM_PROTO_GetShiftState done [10:01:56]FM_GetShiftState done [10:01:56]opened in 1717460629 [10:01:56]opened+sec_in_day 1717547029 [10:01:56]quantity*price = 17059 [10:01:56]sum+1 = 17061 [10:01:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.60 НСП 1% : 1.51 НДС 12% : 18.12 Наличными: 0.00 Безнал.: 170.60 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 60 04.06.2024 10:01 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148721 ФПД: 69165131703364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100159&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148721&fm=69165131703364&tin=02508201610067®Number=0000000000092720&sum=17060 [10:01:57]StoreToDocumentArchive [10:01:57]shift 368 fd 148721 [10:01:57]save to /storage/0368/doc_00148721 [10:01:57]save last doc name /storage/0368/doc_00148721 to /storage/kkm_last_doc_name [10:01:57]save OK [10:01:57]Clear old archive folders... [10:01:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:57]tlvbuf is B6E85550 [10:01:57]SAM_PROTO_ClearQueue [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 09 00 00 [10:01:57]Write to MH i2c: E2 08 00 A5 1A 80 09 00 00 00 00 00 00 31 [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 03 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 03 00 A5 1A 00 90 00 33 [10:01:57]RAPDU: 90 00 [10:01:57]wFMCommunicate OK [10:01:57]SAM_PROTO_ClearQueue done [10:01:57]KKMCreateOFDPacket [10:01:57]OFDProtocolAddRootSTLVToBuf [10:01:57]FM_MakeSignedData [10:01:57]FM_MakeSignedData [10:01:57]SAM_PROTO_SignData [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 0D 01 02 [10:01:57]Write to MH i2c: E2 08 00 A6 1A 80 0D 01 02 00 00 00 00 39 [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 03 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [10:01:57]RAPDU: 90 00 [10:01:57]wFMCommunicate OK [10:01:57]wFMCommunicate request_size=255 [10:01:57]MH_SAM_APDU [10: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 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 17 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 44 02 00 35 04 06 00 3E [10:01:57]Write to MH i2c: E2 02 01 A7 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 17 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 44 02 00 35 04 06 00 3E 00 00 C0 [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 A7 1A 00 90 00 35 [10:01:58]RAPDU: 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=10 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 0D 02 02 05 E7 C3 1B 24 44 [10:01:58]Write to MH i2c: E2 0D 00 A8 1A 80 0D 02 02 05 00 E7 C3 1B 24 44 00 00 73 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 03 00 A8 1A 00 90 00 36 [10:01:58]RAPDU: 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 0D 03 02 [10:01:58]Write to MH i2c: E2 08 00 A9 1A 80 0D 03 02 00 00 00 00 3E [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 0B 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 0B 00 A9 1A 00 4C 5C 70 2F E4 3E 98 AC 90 00 EC [10:01:58]RAPDU: 4C 5C 70 2F E4 3E 98 AC 90 00 [10:01:58]wFMCommunicate OK [10:01:58]SAM_PROTO_SignData done [10:01:58]FM_MakeSignedData done [10:01:58]CreateOFDProtocolMessage [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 11 00 00 [10:01:58]Write to MH i2c: E2 08 00 AA 1A 80 11 00 00 00 00 00 00 3E [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 17 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 17 00 AA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 91 [10:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:01:58]wFMCommunicate OK [10:01:58]CreateOFDProtocolMessage done [10:01:58]OFDSenderStorePacket 148721 [10:01:58]StoreOFDPacket docnum=148721 [10:01:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D2 8A 07 01 07 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 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 17 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 44 02 00 35 04 06 00 3E E7 C3 1B 24 44 4C 5C 70 2F E4 3E 98 AC [10:01:58]CheckFolder [10:01:58]dirname=/storage/ofd_packets [10:01:58]CheckFolder done [10:01:58]ProducePacketName [10:01:58]name=ofd_packets/00148721 [10:01:58]NVStorageSaveData ofd_packets/00148721 [10:01:58]File name is /storage/ofd_packets/00148721 [10:01:58]Write 301 bytes [10:01:58]NVStorageSaveData done [10:01:58]OFDSenderStorePacket done [10:01:58]KKMCreateOFDPacket done [10:01:58]NVStorageSaveData kkm_last_timestamp [10:01:58]File name is /storage/kkm_last_timestamp [10:01:58]Write 4 bytes [10:01:58]NVStorageSaveData done [10:01:58]ExternCall_PrintAddStr [10:01:58]wPrintStart [10:01:58]Write to MH i2c: 01 00 00 AB 1A C5 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: 01 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: 01 07 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: 01 07 00 AB 1A 00 00 00 00 00 FF 0F DA [10:01:58]RasterBufferAndPrint [10:01:58]line Счет N : (1)979646 [10:01:58]line ИНН: 02508201610067 [10:01:58]line Контрольно-Кассовый Чек [10:01:58]line ПРОДАЖА [10:01:58]line ТРК (МРК, ГНК) : 12 [10:01:58]line Товар: 2710124130 [10:01:58]line Аи-92-К-5 [10:01:58]line 2.550 * 66.90 [10:01:58]line = 170.60 [10:01:58]line НДС 12% НСП 1% [10:01:58]line > о реализуемом товаре [10:01:58]line ИТОГО: 170.60 [10:01:58]line НСП 1% : 1.51 [10:01:58]line НДС 12% : 18.12 [10:01:58]line Наличными: 0.00 [10:01:58]line Безнал.: 170.60 [10:01:58]line Место: АЗС № 68 "Партнер Нефть" [10:01:58]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:01:58]line СНО: Общий режим [10:01:58]line Чек 60 04.06.2024 10:01 [10:01:58]line Смена: 368 ФФД: 1.0 [10:01:58]line ЗНМ: 0300000035 [10:01:58]line РНМ: 0000000000092720 [10:01:58]line Версия ККМ: 001 [10:01:58]line Платежная система: KICB Банк [10:01:58]line ФМ: 0000000000875057 [10:01:58]line ФД: 148721 [10:01:58]line ФПД: 69165131703364 [10:01:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100159&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148721&fm=69165131703364&tin=02508201610067®Number=0000000000092720&sum=17060 [10:01:58]written 0, free lines is 4095 [10:01:58]OFD Sender: Processing packet 148721 [packets to send 100, broken 99] [10:01:58]ProducePacketName [10:01:58]name=ofd_packets/00148721 [10:01:58]OFD Sender: To server: pG, [10:01:58]CommunicateWithHost lk.salyk.kg:30040 [10:01:58]ConnectInit lk.salyk.kg [10:01:58]Connected sock=9 [10:01:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D2 8A 07 01 07 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 35 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 17 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 44 02 00 35 04 06 00 3E E7 C3 1B 24 44 4C 5C 70 2F E4 3E 98 AC [10:01:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 EA 28 47 00 7E 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 44 02 00 F4 03 04 00 3B 8D 5E 66 B6 04 01 00 00 3A 11 37 D3 4B DC 9E 26 [10:01:58]CommunicateWithHost err = 0 [10:01:58]CheckOFDResponse [10:01:58]1017 (14) - 77093643461234 [10:01:58]1041 (16) - 0000000000875057 [10:01:58]1040 (4) - 148721 [10:01:58]1012 (4) - 04.06.2024 03:42 [10:01:58]1206 (1) - 0 [10:01:58]OFD Sender: Remove packet 148721 [10:01:58]ProducePacketName [10:01:58]name=ofd_packets/00148721 [10:01:58]NVStorageDeleteData [10:01:58]Write to MH i2c: 01 00 00 D5 1A EF [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: 01 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: 01 07 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: 01 07 00 D5 1A 00 00 00 00 00 7E 0C 80 [10:01:58]RasterBufferAndPrint [10:01:58]line [10:01:58]line [10:01:58]line [10:01:58]line [10:01:58]line [10:01:58]written 0, free lines is 3202 [10:01:58]MH_Cut [10:01:58]Write to MH i2c: D1 01 00 DC 1A 01 C8 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: D1 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: D1 01 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: D1 01 00 DC 1A 00 C7 [10:01:58]Write to MH i2c: 01 00 00 DD 1A F7 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:59]OFD Sender: No OFD packet to send [10:02:00]*** Cut start [10:02:00]*** Partial cut [10:02:00]*** CUTSNS_PIN = 1 [10:02:00]*** CUTSNS_PIN = 0 [10:02:00]*** Brake cut motor [10:02:00]Read from MH i2c: 01 [10:02:00]MH_I2C_Read... [10:02:00]*** Stop cut motor [10:02:00]*** Cut end [10:02:00]Read from MH i2c: 01 07 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: 01 07 00 DD 1A 00 00 00 00 00 FF 0F 0C [10:02:00]process_action close_receipt done [10:02:00]requested_data is exist [10:02:00]produce_requested_data [10:02:00]requested_item fm.sn is exist - process it [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 11 00 00 [10:02:00]Write to MH i2c: E2 08 00 DE 1A 80 11 00 00 00 00 00 00 72 [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 17 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 17 00 DE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C5 [10:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:02:00]wFMCommunicate OK [10:02:00]requested_item fd.num is exist - process it [10:02:00]SAM_PROTO_GetFieldsCounters [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 13 00 00 [10:02:00]Write to MH i2c: E2 08 00 DF 1A 80 13 00 00 00 00 00 00 75 [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 62 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 62 00 DF 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F1 44 02 00 0E 04 04 00 70 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 ED [10:02:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F1 44 02 00 0E 04 04 00 70 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 [10:02:00]wFMCommunicate OK [10:02:00]SAM_PROTO_GetFieldsCounters done [10:02:00]requested_item shift.num is exist - process it [10:02:00]requested_item shift.opened is exist - process it [10:02:00]req_shift_opened [10:02:00]FM_GetShiftState [10:02:00]SAM_PROTO_GetShiftState [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 13 01 00 [10:02:00]Write to MH i2c: E2 08 00 E0 1A 80 13 01 00 00 00 00 00 77 [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:01]Read from MH i2c: E2 0E 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: E2 0E 00 E0 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3A [10:02:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:02:01]wFMCommunicate OK [10:02:01]SAM_PROTO_GetShiftState done [10:02:01]FM_GetShiftState done [10:02:01]req_shift_opened done [10:02:01]requested_item shift.open_date is exist - process it [10:02:01]req_shift_open_date [10:02:01]req_shift_open_date done [10:02:01]produce_requested_data done [10:02:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148721,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:02:01]process_action_free close_receipt [10:02:01]json_value_free [10:02:01]json_value_free done [10:02:01]process_json_proto returns [10:02:01]Send response to host [10:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148721,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:02:01]free response buf [10:02:01]execute_script done [10:02:01]execute_script returns [10:02:01]free content buf [10:02:01]Sock 10.Close socket [10:02:01]Sock 10.Thread stoped [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:35]accept exits with 7 [10:02:35]New connection [10:02:35]New thread 3066809700 created [10:02:35]Thread 3066666340 joined [10:02:35]Waiting for new connection... [10:02:35] Sock 7.Parse request [10:02:35]Sock 7.Check first char [10:02:35]Sock 7.First char is OK [10:02:35]request: POST /json_proto HTTP/1.0 [10:02:35]Method: POST [10:02:35]URL: /json_proto [10:02:35]Method is POST - this is cgi request [10:02:35]url: /json_proto [10:02:35]query_string will be loaded in cgi processing [10:02:35]execute_cgi json_proto POST (null) [10:02:35]execute_cgi path=json_proto method=POST [10:02:35]POST find Content-Length [10:02:35]Host: 172.17.38.4:8080 [10:02:35]Content-Length: 640 [10:02:35]Content-Type: application/json [10:02:35] [10:02:35]POST finish read [10:02:35]Found Content-Length = 640 [10:02:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.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" ] } } [10:02:35]execute_script... [10:02: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)979647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.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" ] } } [10:02:35]POST & json_proto [10:02:35]process_json_proto [10:02:35]json parsed OK: [10:02:35]protocol is kg_v1.0 [10:02:35]action value=close_receipt [10:02:35]process_action close_receipt [10:02:35]cmd_close_receipt [10:02:35]MH_GetDate [10:02:35]Write to MH i2c: F0 00 00 E1 1A EA [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: F0 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: F0 09 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: F0 09 00 E1 1A 00 3E E6 5E 66 CC 51 87 64 E3 [10:02:35]GetLastDocTimeStamp 1717495319 [10:02:35]current date 1717495358 [10:02:35]FM_GetShiftState [10:02:35]SAM_PROTO_GetShiftState [10:02:35]wFMCommunicate request_size=4 [10:02:35]MH_SAM_APDU [10:02:35]CAPDU: 80 13 01 00 [10:02:35]Write to MH i2c: E2 08 00 E2 1A 80 13 01 00 00 00 00 00 79 [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:35]Read from MH i2c: E2 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 0E 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 0E 00 E2 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3C [10:02:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:02:35]wFMCommunicate OK [10:02:35]SAM_PROTO_GetShiftState done [10:02:35]FM_GetShiftState done [10:02:35]opened in 1717460629 [10:02:35]opened+sec_in_day 1717547029 [10:02:35]quantity*price = 66900 [10:02:35]sum+1 = 66901 [10:02:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 61 04.06.2024 10:02 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148722 ФПД: 190130157461973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100238&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148722&fm=190130157461973&tin=02508201610067®Number=0000000000092720&sum=66900 [10:02:36]StoreToDocumentArchive [10:02:36]shift 368 fd 148722 [10:02:36]save to /storage/0368/doc_00148722 [10:02:36]save last doc name /storage/0368/doc_00148722 to /storage/kkm_last_doc_name [10:02:36]save OK [10:02:36]Clear old archive folders... [10:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:36]tlvbuf is B6F32720 [10:02:36]SAM_PROTO_ClearQueue [10:02:36]wFMCommunicate request_size=4 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 09 00 00 [10:02:36]Write to MH i2c: E2 08 00 EF 1A 80 09 00 00 00 00 00 00 7B [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 EF 1A 00 90 00 7D [10:02:36]RAPDU: 90 00 [10:02:36]wFMCommunicate OK [10:02:36]SAM_PROTO_ClearQueue done [10:02:36]KKMCreateOFDPacket [10:02:36]OFDProtocolAddRootSTLVToBuf [10:02:36]FM_MakeSignedData [10:02:36]FM_MakeSignedData [10:02:36]SAM_PROTO_SignData [10:02:36]wFMCommunicate request_size=4 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 0D 01 02 [10:02:36]Write to MH i2c: E2 08 00 F0 1A 80 0D 01 02 00 00 00 00 83 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 F0 1A 00 90 00 7E [10:02:36]RAPDU: 90 00 [10:02:36]wFMCommunicate OK [10:02:36]wFMCommunicate request_size=255 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 3E E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 44 02 00 35 04 06 00 AC [10:02:36]Write to MH i2c: E2 02 01 F1 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 3E E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 44 02 00 35 04 06 00 AC 00 00 B0 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 F1 1A 00 90 00 7F [10:02:37]RAPDU: 90 00 [10:02:37]wFMCommunicate OK [10:02:37]wFMCommunicate request_size=10 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 0D 02 02 05 EC 20 7F 21 D5 [10:02:37]Write to MH i2c: E2 0D 00 F2 1A 80 0D 02 02 05 00 EC 20 7F 21 D5 00 00 11 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 03 00 F2 1A 00 90 00 80 [10:02:37]RAPDU: 90 00 [10:02:37]wFMCommunicate OK [10:02:37]wFMCommunicate request_size=4 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 0D 03 02 [10:02:37]Write to MH i2c: E2 08 00 F3 1A 80 0D 03 02 00 00 00 00 88 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 0B 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 0B 00 F3 1A 00 0A 31 AA 89 B1 7D 20 B2 90 00 F7 [10:02:37]RAPDU: 0A 31 AA 89 B1 7D 20 B2 90 00 [10:02:37]wFMCommunicate OK [10:02:37]SAM_PROTO_SignData done [10:02:37]FM_MakeSignedData done [10:02:37]CreateOFDProtocolMessage [10:02:37]wFMCommunicate request_size=4 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 11 00 00 [10:02:37]Write to MH i2c: E2 08 00 F4 1A 80 11 00 00 00 00 00 00 88 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 17 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 17 00 F4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DB [10:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:02:37]wFMCommunicate OK [10:02:37]CreateOFDProtocolMessage done [10:02:37]OFDSenderStorePacket 148722 [10:02:37]StoreOFDPacket docnum=148722 [10:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E3 50 07 01 78 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 3E E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 44 02 00 35 04 06 00 AC EC 20 7F 21 D5 0A 31 AA 89 B1 7D 20 B2 [10:02:37]CheckFolder [10:02:37]dirname=/storage/ofd_packets [10:02:37]CheckFolder done [10:02:37]ProducePacketName [10:02:37]name=ofd_packets/00148722 [10:02:37]NVStorageSaveData ofd_packets/00148722 [10:02:37]File name is /storage/ofd_packets/00148722 [10:02:37]Write 301 bytes [10:02:37]NVStorageSaveData done [10:02:37]OFDSenderStorePacket done [10:02:37]KKMCreateOFDPacket done [10:02:37]NVStorageSaveData kkm_last_timestamp [10:02:37]File name is /storage/kkm_last_timestamp [10:02:37]Write 4 bytes [10:02:37]NVStorageSaveData done [10:02:37]ExternCall_PrintAddStr [10:02:37]wPrintStart [10:02:37]Write to MH i2c: 01 00 00 F5 1A 0F [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: 01 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: 01 07 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: 01 07 00 F5 1A 00 00 00 00 00 FF 0F 24 [10:02:37]RasterBufferAndPrint [10:02:37]line Счет N : (1)979647 [10:02:37]line ИНН: 02508201610067 [10:02:37]line Контрольно-Кассовый Чек [10:02:37]line ПРОДАЖА [10:02:37]line ТРК (МРК, ГНК) : 22 [10:02:37]line Товар: 2710124130 [10:02:37]line Аи-92-К-5 [10:02:37]line 10.000 * 66.90 [10:02:37]line = 669.00 [10:02:37]line НДС 12% НСП 1% [10:02:37]line > о реализуемом товаре [10:02:37]line ИТОГО: 669.00 [10:02:37]line НСП 1% : 5.92 [10:02:37]line НДС 12% : 71.04 [10:02:37]line Наличными: 669.00 [10:02:37]line Безнал.: 0.00 [10:02:37]line Место: АЗС № 68 "Партнер Нефть" [10:02:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:02:37]line СНО: Общий режим [10:02:37]line Чек 61 04.06.2024 10:02 [10:02:37]line Смена: 368 ФФД: 1.0 [10:02:37]line ЗНМ: 0300000035 [10:02:37]line РНМ: 0000000000092720 [10:02:37]line Версия ККМ: 001 [10:02:37]line ФМ: 0000000000875057 [10:02:37]line ФД: 148722 [10:02:37]line ФПД: 190130157461973 [10:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100238&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148722&fm=190130157461973&tin=02508201610067®Number=0000000000092720&sum=66900 [10:02:37]OFD Sender: Processing packet 148722 [packets to send 100, broken 99] [10:02:37]ProducePacketName [10:02:37]name=ofd_packets/00148722 [10:02:37]OFD Sender: To server: pG, [10:02:37]CommunicateWithHost lk.salyk.kg:30040 [10:02:37]ConnectInit lk.salyk.kg [10:02:37]written 0, free lines is 4095 [10:02:38]Write to MH i2c: 01 00 00 1D 1B 38 [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 07 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 07 00 1D 1B 00 00 00 00 00 A3 0C EE [10:02:38]RasterBufferAndPrint [10:02:38]line [10:02:38]line [10:02:38]line [10:02:38]line [10:02:38]line [10:02:38]written 0, free lines is 3239 [10:02:38]MH_Cut [10:02:38]Write to MH i2c: D1 01 00 24 1B 01 11 [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: D1 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: D1 01 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: D1 01 00 24 1B 00 10 [10:02:38]Write to MH i2c: 01 00 00 25 1B 40 [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:39]*** Cut start [10:02:39]*** Partial cut [10:02:39]*** CUTSNS_PIN = 1 [10:02:39]*** CUTSNS_PIN = 0 [10:02:39]*** Brake cut motor [10:02:40]Read from MH i2c: 01 [10:02:40]MH_I2C_Read... [10:02:40]*** Stop cut motor [10:02:40]*** Cut end [10:02:40]Read from MH i2c: 01 07 00 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: 01 07 00 25 1B 00 00 00 00 00 FF 0F 55 [10:02:40]process_action close_receipt done [10:02:40]requested_data is exist [10:02:40]produce_requested_data [10:02:40]requested_item fm.sn is exist - process it [10:02:40]wFMCommunicate request_size=4 [10:02:40]MH_SAM_APDU [10:02:40]CAPDU: 80 11 00 00 [10:02:40]Write to MH i2c: E2 08 00 26 1B 80 11 00 00 00 00 00 00 BB [10:02:40]Write i2c OK [10:02:40]MH_I2C_Read... [10:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:40]Read from MH i2c: E2 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 17 00 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 17 00 26 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0E [10:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:02:40]wFMCommunicate OK [10:02:40]requested_item fd.num is exist - process it [10:02:40]SAM_PROTO_GetFieldsCounters [10:02:40]wFMCommunicate request_size=4 [10:02:40]MH_SAM_APDU [10:02:40]CAPDU: 80 13 00 00 [10:02:40]Write to MH i2c: E2 08 00 27 1B 80 13 00 00 00 00 00 00 BE [10:02:40]Write i2c OK [10:02:40]MH_I2C_Read... [10:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:40]Read from MH i2c: E2 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 62 00 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 62 00 27 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F2 44 02 00 0E 04 04 00 70 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 3A [10:02:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F2 44 02 00 0E 04 04 00 70 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 [10:02:40]wFMCommunicate OK [10:02:40]SAM_PROTO_GetFieldsCounters done [10:02:40]requested_item shift.num is exist - process it [10:02:40]requested_item shift.opened is exist - process it [10:02:40]req_shift_opened [10:02:40]FM_GetShiftState [10:02:40]SAM_PROTO_GetShiftState [10:02:40]wFMCommunicate request_size=4 [10:02:40]MH_SAM_APDU [10:02:40]CAPDU: 80 13 01 00 [10:02:40]Write to MH i2c: E2 08 00 28 1B 80 13 01 00 00 00 00 00 C0 [10:02:40]Write i2c OK [10:02:40]MH_I2C_Read... [10:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:40]Read from MH i2c: E2 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 0E 00 [10:02:40]MH_I2C_Read... [10:02:40]Read from MH i2c: E2 0E 00 28 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 83 [10:02:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:02:40]wFMCommunicate OK [10:02:40]SAM_PROTO_GetShiftState done [10:02:40]FM_GetShiftState done [10:02:40]req_shift_opened done [10:02:40]requested_item shift.open_date is exist - process it [10:02:40]req_shift_open_date [10:02:40]req_shift_open_date done [10:02:40]produce_requested_data done [10:02:40]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148722,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:02:40]process_action_free close_receipt [10:02:40]json_value_free [10:02:40]json_value_free done [10:02:40]process_json_proto returns [10:02:40]Send response to host [10:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148722,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:02:40]free response buf [10:02:40]execute_script done [10:02:40]execute_script returns [10:02:40]free content buf [10:02:40]Sock 7.Close socket [10:02:40]Sock 7.Thread stoped [10:02:46]accept exits with 9 [10:02:46]New connection [10:02:46]New thread 3066666340 created [10:02:46]Thread 3066809700 joined [10:02:46]Waiting for new connection... [10:02:46] Sock 9.Parse request [10:02:46]Sock 9.Check first char [10:02:46]Sock 9.First char is OK [10:02:46]request: POST /json_proto HTTP/1.0 [10:02:46]Method: POST [10:02:46]URL: /json_proto [10:02:46]Method is POST - this is cgi request [10:02:46]url: /json_proto [10:02:46]query_string will be loaded in cgi processing [10:02:46]execute_cgi json_proto POST (null) [10:02:46]execute_cgi path=json_proto method=POST [10:02:46]POST find Content-Length [10:02:46]Host: 172.17.38.4:8080 [10:02:46]Content-Length: 677 [10:02:46]Content-Type: application/json [10:02:46] [10:02:46]POST finish read [10:02:46]Found Content-Length = 677 [10:02:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:46]execute_script... [10:02:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:46]POST & json_proto [10:02:46]process_json_proto [10:02:46]json parsed OK: [10:02:46]protocol is kg_v1.0 [10:02:46]action value=close_receipt [10:02:46]process_action close_receipt [10:02:46]cmd_close_receipt [10:02:46]MH_GetDate [10:02:46]Write to MH i2c: F0 00 00 29 1B 33 [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: F0 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: F0 09 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: F0 09 00 29 1B 00 48 E6 5E 66 CC 51 87 64 36 [10:02:46]GetLastDocTimeStamp 1717495358 [10:02:46]current date 1717495368 [10:02:46]FM_GetShiftState [10:02:46]SAM_PROTO_GetShiftState [10:02:46]wFMCommunicate request_size=4 [10:02:46]MH_SAM_APDU [10:02:46]CAPDU: 80 13 01 00 [10:02:46]Write to MH i2c: E2 08 00 2A 1B 80 13 01 00 00 00 00 00 C2 [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 0E 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 0E 00 2A 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 85 [10:02:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:02:46]wFMCommunicate OK [10:02:46]SAM_PROTO_GetShiftState done [10:02:46]FM_GetShiftState done [10:02:46]opened in 1717460629 [10:02:46]opened+sec_in_day 1717547029 [10:02:46]quantity*price = 40006 [10:02:46]sum+1 = 40007 [10:02:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 62 04.06.2024 10:02 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148723 ФПД: 44132162272499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100249&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148723&fm=44132162272499&tin=02508201610067®Number=0000000000092720&sum=40000 [10:02:47]StoreToDocumentArchive [10:02:47]shift 368 fd 148723 [10:02:47]save to /storage/0368/doc_00148723 [10:02:47]save last doc name /storage/0368/doc_00148723 to /storage/kkm_last_doc_name [10:02:47]save OK [10:02:47]Clear old archive folders... [10:02:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:47]tlvbuf is B6E9E920 [10:02:47]SAM_PROTO_ClearQueue [10:02:47]wFMCommunicate request_size=4 [10:02:47]MH_SAM_APDU [10:02:47]CAPDU: 80 09 00 00 [10:02:47]Write to MH i2c: E2 08 00 37 1B 80 09 00 00 00 00 00 00 C4 [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:47]Read from MH i2c: E2 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 03 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 03 00 37 1B 00 90 00 C6 [10:02:47]RAPDU: 90 00 [10:02:47]wFMCommunicate OK [10:02:47]SAM_PROTO_ClearQueue done [10:02:47]KKMCreateOFDPacket [10:02:47]OFDProtocolAddRootSTLVToBuf [10:02:47]FM_MakeSignedData [10:02:47]FM_MakeSignedData [10:02:47]SAM_PROTO_SignData [10:02:47]wFMCommunicate request_size=4 [10:02:47]MH_SAM_APDU [10:02:47]CAPDU: 80 0D 01 02 [10:02:47]Write to MH i2c: E2 08 00 38 1B 80 0D 01 02 00 00 00 00 CC [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:47]Read from MH i2c: E2 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 03 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 03 00 38 1B 00 90 00 C7 [10:02:47]RAPDU: 90 00 [10:02:47]wFMCommunicate OK [10:02:47]wFMCommunicate request_size=255 [10:02:47]MH_SAM_APDU [10:02:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3E 00 00 00 F4 03 04 00 49 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 44 02 00 35 04 06 00 28 [10:02:47]Write to MH i2c: E2 02 01 39 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3E 00 00 00 F4 03 04 00 49 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 44 02 00 35 04 06 00 28 00 00 28 [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:47]Read from MH i2c: E2 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 03 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 03 00 39 1B 00 90 00 C8 [10:02:47]RAPDU: 90 00 [10:02:47]wFMCommunicate OK [10:02:47]wFMCommunicate request_size=10 [10:02:47]MH_SAM_APDU [10:02:47]CAPDU: 80 0D 02 02 05 23 51 DA FC F3 [10:02:47]Write to MH i2c: E2 0D 00 3A 1B 80 0D 02 02 05 00 23 51 DA FC F3 00 00 16 [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:47]Read from MH i2c: E2 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 03 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 03 00 3A 1B 00 90 00 C9 [10:02:47]RAPDU: 90 00 [10:02:47]wFMCommunicate OK [10:02:47]wFMCommunicate request_size=4 [10:02:47]MH_SAM_APDU [10:02:47]CAPDU: 80 0D 03 02 [10:02:47]Write to MH i2c: E2 08 00 3B 1B 80 0D 03 02 00 00 00 00 D1 [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:47]Read from MH i2c: E2 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 0B 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 0B 00 3B 1B 00 F6 C9 3C 01 FA B3 9F 4C 90 00 66 [10:02:47]RAPDU: F6 C9 3C 01 FA B3 9F 4C 90 00 [10:02:47]wFMCommunicate OK [10:02:47]SAM_PROTO_SignData done [10:02:47]FM_MakeSignedData done [10:02:47]CreateOFDProtocolMessage [10:02:47]wFMCommunicate request_size=4 [10:02:47]MH_SAM_APDU [10:02:47]CAPDU: 80 11 00 00 [10:02:47]Write to MH i2c: E2 08 00 3C 1B 80 11 00 00 00 00 00 00 D1 [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:47]Read from MH i2c: E2 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 17 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 17 00 3C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 24 [10:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:02:47]wFMCommunicate OK [10:02:47]CreateOFDProtocolMessage done [10:02:47]OFDSenderStorePacket 148723 [10:02:47]StoreOFDPacket docnum=148723 [10:02:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 DF CC 07 01 9B E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 49 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 44 02 00 35 04 06 00 28 23 51 DA FC F3 F6 C9 3C 01 FA B3 9F 4C [10:02:47]CheckFolder [10:02:47]dirname=/storage/ofd_packets [10:02:47]CheckFolder done [10:02:47]ProducePacketName [10:02:47]name=ofd_packets/00148723 [10:02:47]NVStorageSaveData ofd_packets/00148723 [10:02:47]File name is /storage/ofd_packets/00148723 [10:02:47]Write 301 bytes [10:02:47]NVStorageSaveData done [10:02:47]OFDSenderStorePacket done [10:02:47]KKMCreateOFDPacket done [10:02:47]NVStorageSaveData kkm_last_timestamp [10:02:47]File name is /storage/kkm_last_timestamp [10:02:47]Write 4 bytes [10:02:47]NVStorageSaveData done [10:02:47]ExternCall_PrintAddStr [10:02:47]wPrintStart [10:02:47]Write to MH i2c: 01 00 00 3D 1B 58 [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: 01 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: 01 07 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: 01 07 00 3D 1B 00 00 00 00 00 FF 0F 6D [10:02:47]RasterBufferAndPrint [10:02:47]line Счет N : (1)979648 [10:02:47]line ИНН: 02508201610067 [10:02:47]line Контрольно-Кассовый Чек [10:02:47]line ПРОДАЖА [10:02:47]line ТРК (МРК, ГНК) : 31 [10:02:47]line Товар: 2710124130 [10:02:47]line Аи-92-К-5 [10:02:47]line 5.980 * 66.90 [10:02:47]line = 400.06 [10:02:47]line НДС 12% НСП 1% [10:02:47]line > о реализуемом товаре [10:02:47]line ОКРУГЛЕНИЕ: -0.06 [10:02:47]line ИТОГО: 400.00 [10:02:47]line Внесено: 400.00 [10:02:47]line СДАЧА: 0.00 [10:02:47]line НСП 1% : 3.54 [10:02:47]line НДС 12% : 42.48 [10:02:47]line Наличными: 400.00 [10:02:47]line Безнал.: 0.00 [10:02:47]line Место: АЗС № 68 "Партнер Нефть" [10:02:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:02:47]line СНО: Общий режим [10:02:47]line Чек 62 04.06.2024 10:02 [10:02:47]line Смена: 368 ФФД: 1.0 [10:02:47]line ЗНМ: 0300000035 [10:02:47]line РНМ: 0000000000092720 [10:02:47]line Версия ККМ: 001 [10:02:47]line ФМ: 0000000000875057 [10:02:47]line ФД: 148723 [10:02:47]line ФПД: 44132162272499 [10:02:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100249&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148723&fm=44132162272499&tin=02508201610067®Number=0000000000092720&sum=40000 [10:02:47]written 0, free lines is 4095 [10:02:48]Write to MH i2c: 01 00 00 68 1B 83 [10:02:48]Write i2c OK [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: 01 [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: 01 07 00 [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: 01 07 00 68 1B 00 00 00 00 00 69 0C FF [10:02:48]RasterBufferAndPrint [10:02:48]line [10:02:48]line [10:02:48]line [10:02:48]line [10:02:48]line [10:02:48]written 0, free lines is 3181 [10:02:48]MH_Cut [10:02:48]Write to MH i2c: D1 01 00 6F 1B 01 5C [10:02:48]Write i2c OK [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: D1 [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: D1 01 00 [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: D1 01 00 6F 1B 00 5B [10:02:48]Write to MH i2c: 01 00 00 70 1B 8B [10:02:48]Write i2c OK [10:02:48]MH_I2C_Read... [10:02:49]*** Cut start [10:02:49]*** Partial cut [10:02:49]*** CUTSNS_PIN = 1 [10:02:49]*** CUTSNS_PIN = 0 [10:02:49]*** Brake cut motor [10:02:50]Read from MH i2c: 01 [10:02:50]MH_I2C_Read... [10:02:50]*** Stop cut motor [10:02:50]*** Cut end [10:02:50]Read from MH i2c: 01 07 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: 01 07 00 70 1B 00 00 00 00 00 FF 0F A0 [10:02:50]process_action close_receipt done [10:02:50]requested_data is exist [10:02:50]produce_requested_data [10:02:50]requested_item fm.sn is exist - process it [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 11 00 00 [10:02:50]Write to MH i2c: E2 08 00 71 1B 80 11 00 00 00 00 00 00 06 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 17 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 17 00 71 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 59 [10:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:02:50]wFMCommunicate OK [10:02:50]requested_item fd.num is exist - process it [10:02:50]SAM_PROTO_GetFieldsCounters [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 13 00 00 [10:02:50]Write to MH i2c: E2 08 00 72 1B 80 13 00 00 00 00 00 00 09 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 62 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 62 00 72 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F3 44 02 00 0E 04 04 00 70 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 89 [10:02:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F3 44 02 00 0E 04 04 00 70 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 [10:02:50]wFMCommunicate OK [10:02:50]SAM_PROTO_GetFieldsCounters done [10:02:50]requested_item shift.num is exist - process it [10:02:50]requested_item shift.opened is exist - process it [10:02:50]req_shift_opened [10:02:50]FM_GetShiftState [10:02:50]SAM_PROTO_GetShiftState [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 13 01 00 [10:02:50]Write to MH i2c: E2 08 00 73 1B 80 13 01 00 00 00 00 00 0B [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0E 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0E 00 73 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CE [10:02:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:02:50]wFMCommunicate OK [10:02:50]SAM_PROTO_GetShiftState done [10:02:50]FM_GetShiftState done [10:02:50]req_shift_opened done [10:02:50]requested_item shift.open_date is exist - process it [10:02:50]req_shift_open_date [10:02:50]req_shift_open_date done [10:02:50]produce_requested_data done [10:02:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148723,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:02:50]process_action_free close_receipt [10:02:50]json_value_free [10:02:50]json_value_free done [10:02:50]process_json_proto returns [10:02:50]Send response to host [10:02:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148723,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:02:50]free response buf [10:02:50]execute_script done [10:02:50]execute_script returns [10:02:50]free content buf [10:02:50]Sock 9.Close socket [10:02:50]Sock 9.Thread stoped [10:04:20]accept exits with 7 [10:04:20]New connection [10:04:20]New thread 3066809700 created [10:04:20]Thread 3066666340 joined [10:04:20]Waiting for new connection... [10:04:20] Sock 7.Parse request [10:04:20]Sock 7.Check first char [10:04:20]Sock 7.First char is OK [10:04:20]request: POST /json_proto HTTP/1.0 [10:04:20]Method: POST [10:04:20]URL: /json_proto [10:04:20]Method is POST - this is cgi request [10:04:20]url: /json_proto [10:04:20]query_string will be loaded in cgi processing [10:04:20]execute_cgi json_proto POST (null) [10:04:20]execute_cgi path=json_proto method=POST [10:04:20]POST find Content-Length [10:04:20]Host: 172.17.38.4:8080 [10:04:20]Content-Length: 677 [10:04:20]Content-Type: application/json [10:04:20] [10:04:20]POST finish read [10:04:20]Found Content-Length = 677 [10:04:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [10:04:20]execute_script... [10:04: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)979649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [10:04:20]POST & json_proto [10:04:20]process_json_proto [10:04:20]json parsed OK: [10:04:20]protocol is kg_v1.0 [10:04:20]action value=close_receipt [10:04:20]process_action close_receipt [10:04:20]cmd_close_receipt [10:04:20]MH_GetDate [10:04:20]Write to MH i2c: F0 00 00 74 1B 7E [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: F0 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: F0 09 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: F0 09 00 74 1B 00 A7 E6 5E 66 CC 51 87 64 E0 [10:04:20]GetLastDocTimeStamp 1717495369 [10:04:20]current date 1717495463 [10:04:20]FM_GetShiftState [10:04:20]SAM_PROTO_GetShiftState [10:04:20]wFMCommunicate request_size=4 [10:04:20]MH_SAM_APDU [10:04:20]CAPDU: 80 13 01 00 [10:04:20]Write to MH i2c: E2 08 00 75 1B 80 13 01 00 00 00 00 00 0D [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:20]Read from MH i2c: E2 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 0E 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: E2 0E 00 75 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D0 [10:04:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:04:20]wFMCommunicate OK [10:04:20]SAM_PROTO_GetShiftState done [10:04:20]FM_GetShiftState done [10:04:20]opened in 1717460629 [10:04:20]opened+sec_in_day 1717547029 [10:04:20]quantity*price = 22010 [10:04:20]sum+1 = 22011 [10:04:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 63 04.06.2024 10:04 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148724 ФПД: 57573479197055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100423&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148724&fm=57573479197055&tin=02508201610067®Number=0000000000092720&sum=22000 [10:04:22]StoreToDocumentArchive [10:04:22]shift 368 fd 148724 [10:04:22]save to /storage/0368/doc_00148724 [10:04:22]save last doc name /storage/0368/doc_00148724 to /storage/kkm_last_doc_name [10:04:22]save OK [10:04:22]Clear old archive folders... [10:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:22]tlvbuf is 0160F730 [10:04:22]SAM_PROTO_ClearQueue [10:04:22]wFMCommunicate request_size=4 [10:04:22]MH_SAM_APDU [10:04:22]CAPDU: 80 09 00 00 [10:04:22]Write to MH i2c: E2 08 00 82 1B 80 09 00 00 00 00 00 00 0F [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:22]Read from MH i2c: E2 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 03 00 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 03 00 82 1B 00 90 00 11 [10:04:22]RAPDU: 90 00 [10:04:22]wFMCommunicate OK [10:04:22]SAM_PROTO_ClearQueue done [10:04:22]KKMCreateOFDPacket [10:04:22]OFDProtocolAddRootSTLVToBuf [10:04:22]FM_MakeSignedData [10:04:22]FM_MakeSignedData [10:04:22]SAM_PROTO_SignData [10:04:22]wFMCommunicate request_size=4 [10:04:22]MH_SAM_APDU [10:04:22]CAPDU: 80 0D 01 02 [10:04:22]Write to MH i2c: E2 08 00 83 1B 80 0D 01 02 00 00 00 00 17 [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:22]Read from MH i2c: E2 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 03 00 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 03 00 83 1B 00 90 00 12 [10:04:22]RAPDU: 90 00 [10:04:22]wFMCommunicate OK [10:04:22]wFMCommunicate request_size=255 [10:04:22]MH_SAM_APDU [10:04:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3F 00 00 00 F4 03 04 00 A7 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 44 02 00 35 04 06 00 34 [10:04:22]Write to MH i2c: E2 02 01 84 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3F 00 00 00 F4 03 04 00 A7 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 44 02 00 35 04 06 00 34 00 00 73 [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:22]Read from MH i2c: E2 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 03 00 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 03 00 84 1B 00 90 00 13 [10:04:22]RAPDU: 90 00 [10:04:22]wFMCommunicate OK [10:04:22]wFMCommunicate request_size=10 [10:04:22]MH_SAM_APDU [10:04:22]CAPDU: 80 0D 02 02 05 5C DE C6 A9 7F [10:04:22]Write to MH i2c: E2 0D 00 85 1B 80 0D 02 02 05 00 5C DE C6 A9 7F 00 00 4C [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:22]Read from MH i2c: E2 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 03 00 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 03 00 85 1B 00 90 00 14 [10:04:22]RAPDU: 90 00 [10:04:22]wFMCommunicate OK [10:04:22]wFMCommunicate request_size=4 [10:04:22]MH_SAM_APDU [10:04:22]CAPDU: 80 0D 03 02 [10:04:22]Write to MH i2c: E2 08 00 86 1B 80 0D 03 02 00 00 00 00 1C [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:22]Read from MH i2c: E2 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 0B 00 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 0B 00 86 1B 00 C3 09 79 04 3F 90 73 3C 90 00 E4 [10:04:22]RAPDU: C3 09 79 04 3F 90 73 3C 90 00 [10:04:22]wFMCommunicate OK [10:04:22]SAM_PROTO_SignData done [10:04:22]FM_MakeSignedData done [10:04:22]CreateOFDProtocolMessage [10:04:22]wFMCommunicate request_size=4 [10:04:22]MH_SAM_APDU [10:04:22]CAPDU: 80 11 00 00 [10:04:22]Write to MH i2c: E2 08 00 87 1B 80 11 00 00 00 00 00 00 1C [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:22]Read from MH i2c: E2 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 17 00 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: E2 17 00 87 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6F [10:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:04:22]wFMCommunicate OK [10:04:22]CreateOFDProtocolMessage done [10:04:22]OFDSenderStorePacket 148724 [10:04:22]StoreOFDPacket docnum=148724 [10:04:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 18 2C 07 01 92 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 35 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 3F 00 00 00 F4 03 04 00 A7 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 44 02 00 35 04 06 00 34 5C DE C6 A9 7F C3 09 79 04 3F 90 73 3C [10:04:22]CheckFolder [10:04:22]dirname=/storage/ofd_packets [10:04:22]CheckFolder done [10:04:22]ProducePacketName [10:04:22]name=ofd_packets/00148724 [10:04:22]NVStorageSaveData ofd_packets/00148724 [10:04:22]File name is /storage/ofd_packets/00148724 [10:04:22]Write 301 bytes [10:04:22]NVStorageSaveData done [10:04:22]OFDSenderStorePacket done [10:04:22]KKMCreateOFDPacket done [10:04:22]NVStorageSaveData kkm_last_timestamp [10:04:22]File name is /storage/kkm_last_timestamp [10:04:22]Write 4 bytes [10:04:22]NVStorageSaveData done [10:04:22]ExternCall_PrintAddStr [10:04:22]wPrintStart [10:04:22]Write to MH i2c: 01 00 00 88 1B A3 [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: 01 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: 01 07 00 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: 01 07 00 88 1B 00 00 00 00 00 FF 0F B8 [10:04:22]RasterBufferAndPrint [10:04:22]line Счет N : (1)979649 [10:04:22]line ИНН: 02508201610067 [10:04:22]line Контрольно-Кассовый Чек [10:04:22]line ПРОДАЖА [10:04:22]line ТРК (МРК, ГНК) : 12 [10:04:22]line Товар: 2710124130 [10:04:22]line Аи-92-К-5 [10:04:22]line 3.290 * 66.90 [10:04:22]line = 220.10 [10:04:22]line НДС 12% НСП 1% [10:04:22]line > о реализуемом товаре [10:04:22]line ОКРУГЛЕНИЕ: -0.10 [10:04:22]line ИТОГО: 220.00 [10:04:22]line Внесено: 220.00 [10:04:22]line СДАЧА: 0.00 [10:04:22]line НСП 1% : 1.95 [10:04:22]line НДС 12% : 23.37 [10:04:22]line Наличными: 220.00 [10:04:22]line Безнал.: 0.00 [10:04:22]line Место: АЗС № 68 "Партнер Нефть" [10:04:22]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:04:22]line СНО: Общий режим [10:04:22]line Чек 63 04.06.2024 10:04 [10:04:22]line Смена: 368 ФФД: 1.0 [10:04:22]line ЗНМ: 0300000035 [10:04:22]line РНМ: 0000000000092720 [10:04:22]line Версия ККМ: 001 [10:04:22]line ФМ: 0000000000875057 [10:04:22]line ФД: 148724 [10:04:22]line ФПД: 57573479197055 [10:04:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100423&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148724&fm=57573479197055&tin=02508201610067®Number=0000000000092720&sum=22000 [10:04:22]written 0, free lines is 4095 [10:04:23]Write to MH i2c: 01 00 00 B3 1B CE [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 07 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 07 00 B3 1B 00 00 00 00 00 65 0C 46 [10:04:23]RasterBufferAndPrint [10:04:23]line [10:04:23]line [10:04:23]line [10:04:23]line [10:04:23]line [10:04:23]written 0, free lines is 3177 [10:04:23]MH_Cut [10:04:23]Write to MH i2c: D1 01 00 BA 1B 01 A7 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: D1 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: D1 01 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: D1 01 00 BA 1B 00 A6 [10:04:23]Write to MH i2c: 01 00 00 BB 1B D6 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:24]*** Cut start [10:04:24]*** Partial cut [10:04:24]*** CUTSNS_PIN = 1 [10:04:24]*** CUTSNS_PIN = 0 [10:04:24]*** Brake cut motor [10:04:25]Read from MH i2c: 01 [10:04:25]MH_I2C_Read... [10:04:25]*** Stop cut motor [10:04:25]*** Cut end [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 BB 1B 00 00 00 00 00 FF 0F EB [10:04:25]process_action close_receipt done [10:04:25]requested_data is exist [10:04:25]produce_requested_data [10:04:25]requested_item fm.sn is exist - process it [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 11 00 00 [10:04:25]Write to MH i2c: E2 08 00 BC 1B 80 11 00 00 00 00 00 00 51 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 17 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 17 00 BC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A4 [10:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:04:25]wFMCommunicate OK [10:04:25]requested_item fd.num is exist - process it [10:04:25]SAM_PROTO_GetFieldsCounters [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 13 00 00 [10:04:25]Write to MH i2c: E2 08 00 BD 1B 80 13 00 00 00 00 00 00 54 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 62 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 62 00 BD 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F4 44 02 00 0E 04 04 00 70 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 D8 [10:04:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F4 44 02 00 0E 04 04 00 70 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 [10:04:25]wFMCommunicate OK [10:04:25]SAM_PROTO_GetFieldsCounters done [10:04:25]requested_item shift.num is exist - process it [10:04:25]requested_item shift.opened is exist - process it [10:04:25]req_shift_opened [10:04:25]FM_GetShiftState [10:04:25]SAM_PROTO_GetShiftState [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 13 01 00 [10:04:25]Write to MH i2c: E2 08 00 BE 1B 80 13 01 00 00 00 00 00 56 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0E 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0E 00 BE 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 19 [10:04:25]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:04:25]wFMCommunicate OK [10:04:25]SAM_PROTO_GetShiftState done [10:04:25]FM_GetShiftState done [10:04:25]req_shift_opened done [10:04:25]requested_item shift.open_date is exist - process it [10:04:25]req_shift_open_date [10:04:25]req_shift_open_date done [10:04:25]produce_requested_data done [10:04:25]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148724,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:04:25]process_action_free close_receipt [10:04:25]json_value_free [10:04:25]json_value_free done [10:04:25]process_json_proto returns [10:04:25]Send response to host [10:04:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148724,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:04:25]free response buf [10:04:25]execute_script done [10:04:25]execute_script returns [10:04:25]free content buf [10:04:25]Sock 7.Close socket [10:04:25]Sock 7.Thread stoped [10:04:29]accept exits with 9 [10:04:29]New connection [10:04:29]New thread 3066666340 created [10:04:29]Thread 3066809700 joined [10:04:29]Waiting for new connection... [10:04:29] Sock 9.Parse request [10:04:29]Sock 9.Check first char [10:04:29]Sock 9.First char is OK [10:04:29]request: POST /json_proto HTTP/1.0 [10:04:29]Method: POST [10:04:29]URL: /json_proto [10:04:29]Method is POST - this is cgi request [10:04:29]url: /json_proto [10:04:29]query_string will be loaded in cgi processing [10:04:29]execute_cgi json_proto POST (null) [10:04:29]execute_cgi path=json_proto method=POST [10:04:29]POST find Content-Length [10:04:29]Host: 172.17.38.4:8080 [10:04:29]Content-Length: 679 [10:04:29]Content-Type: application/json [10:04:29] [10:04:29]POST finish read [10:04:29]Found Content-Length = 679 [10:04:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 15.000, "sum" : 1093.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1093.00, "total" : 1093.00, "payments": [ { "type": 0, "sum" : 1093.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:29]execute_script... [10:04: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)979650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 15.000, "sum" : 1093.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1093.00, "total" : 1093.00, "payments": [ { "type": 0, "sum" : 1093.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:29]POST & json_proto [10:04:29]process_json_proto [10:04:29]json parsed OK: [10:04:29]protocol is kg_v1.0 [10:04:29]action value=close_receipt [10:04:29]process_action close_receipt [10:04:29]cmd_close_receipt [10:04:29]MH_GetDate [10:04:29]Write to MH i2c: F0 00 00 BF 1B C9 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: F0 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: F0 09 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: F0 09 00 BF 1B 00 B0 E6 5E 66 CC 51 87 64 34 [10:04:29]GetLastDocTimeStamp 1717495463 [10:04:29]current date 1717495472 [10:04:29]FM_GetShiftState [10:04:29]SAM_PROTO_GetShiftState [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 13 01 00 [10:04:29]Write to MH i2c: E2 08 00 C0 1B 80 13 01 00 00 00 00 00 58 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0E 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0E 00 C0 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1B [10:04:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:04:29]wFMCommunicate OK [10:04:29]SAM_PROTO_GetShiftState done [10:04:29]FM_GetShiftState done [10:04:29]opened in 1717460629 [10:04:29]opened+sec_in_day 1717547029 [10:04:29]quantity*price = 109350 [10:04:29]sum+1 = 109351 [10:04:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1093.00 Внесено: 1093.00 СДАЧА: 0.00 НСП 1% : 9.68 НДС 12% : 116.12 Наличными: 1093.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 64 04.06.2024 10:04 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148725 ФПД: 111392565386180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100432&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148725&fm=111392565386180&tin=02508201610067®Number=0000000000092720&sum=109300 [10:04:31]StoreToDocumentArchive [10:04:31]shift 368 fd 148725 [10:04:31]save to /storage/0368/doc_00148725 [10:04:31]save last doc name /storage/0368/doc_00148725 to /storage/kkm_last_doc_name [10:04:31]save OK [10:04:31]Clear old archive folders... [10:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:31]tlvbuf is 015AEE70 [10:04:31]SAM_PROTO_ClearQueue [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 09 00 00 [10:04:31]Write to MH i2c: E2 08 00 CD 1B 80 09 00 00 00 00 00 00 5A [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 CD 1B 00 90 00 5C [10:04:31]RAPDU: 90 00 [10:04:31]wFMCommunicate OK [10:04:31]SAM_PROTO_ClearQueue done [10:04:31]KKMCreateOFDPacket [10:04:31]OFDProtocolAddRootSTLVToBuf [10:04:31]FM_MakeSignedData [10:04:31]FM_MakeSignedData [10:04:31]SAM_PROTO_SignData [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 0D 01 02 [10:04:31]Write to MH i2c: E2 08 00 CE 1B 80 0D 01 02 00 00 00 00 62 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 CE 1B 00 90 00 5D [10:04:31]RAPDU: 90 00 [10:04:31]wFMCommunicate OK [10:04:31]wFMCommunicate request_size=255 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 26 AB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 2D 00 00 00 00 07 04 06 00 F4 AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B0 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 44 02 00 35 04 06 00 65 4F 9A 4A [10:04:31]Write to MH i2c: E2 02 01 CF 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 26 AB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 2D 00 00 00 00 07 04 06 00 F4 AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B0 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 44 02 00 35 04 06 00 65 4F 9A 4A 00 00 64 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 CF 1B 00 90 00 5E [10:04:31]RAPDU: 90 00 [10:04:31]wFMCommunicate OK [10:04:31]wFMCommunicate request_size=7 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 0D 02 02 02 5B C4 [10:04:31]Write to MH i2c: E2 0A 00 D0 1B 80 0D 02 02 02 00 5B C4 00 00 88 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 03 00 D0 1B 00 90 00 5F [10:04:31]RAPDU: 90 00 [10:04:31]wFMCommunicate OK [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 0D 03 02 [10:04:31]Write to MH i2c: E2 08 00 D1 1B 80 0D 03 02 00 00 00 00 67 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 0B 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 0B 00 D1 1B 00 6F 35 29 A6 4A AE 77 B1 90 00 FB [10:04:31]RAPDU: 6F 35 29 A6 4A AE 77 B1 90 00 [10:04:31]wFMCommunicate OK [10:04:31]SAM_PROTO_SignData done [10:04:31]FM_MakeSignedData done [10:04:31]CreateOFDProtocolMessage [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 11 00 00 [10:04:31]Write to MH i2c: E2 08 00 D2 1B 80 11 00 00 00 00 00 00 67 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 17 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 17 00 D2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BA [10:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:04:31]wFMCommunicate OK [10:04:31]CreateOFDProtocolMessage done [10:04:31]OFDSenderStorePacket 148725 [10:04:31]StoreOFDPacket docnum=148725 [10:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 DC B1 04 01 D5 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 26 AB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 2D 00 00 00 00 07 04 06 00 F4 AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B0 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 44 02 00 35 04 06 00 65 4F 9A 4A 5B C4 6F 35 29 A6 4A AE 77 B1 [10:04:31]CheckFolder [10:04:31]dirname=/storage/ofd_packets [10:04:31]CheckFolder done [10:04:31]ProducePacketName [10:04:31]name=ofd_packets/00148725 [10:04:31]NVStorageSaveData ofd_packets/00148725 [10:04:31]File name is /storage/ofd_packets/00148725 [10:04:31]Write 298 bytes [10:04:31]NVStorageSaveData done [10:04:31]OFDSenderStorePacket done [10:04:31]KKMCreateOFDPacket done [10:04:31]NVStorageSaveData kkm_last_timestamp [10:04:31]File name is /storage/kkm_last_timestamp [10:04:31]Write 4 bytes [10:04:31]NVStorageSaveData done [10:04:31]ExternCall_PrintAddStr [10:04:31]wPrintStart [10:04:31]Write to MH i2c: 01 00 00 D3 1B EE [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 07 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 07 00 D3 1B 00 00 00 00 00 FF 0F 03 [10:04:31]RasterBufferAndPrint [10:04:31]line Счет N : (1)979650 [10:04:31]line ИНН: 02508201610067 [10:04:31]line Контрольно-Кассовый Чек [10:04:31]line ПРОДАЖА [10:04:31]line ТРК (МРК, ГНК) : 51 [10:04:31]line Товар: 2710194210 [10:04:31]line ДТ-К-5 [10:04:31]line 15.000 * 72.90 [10:04:31]line = 1093.50 [10:04:31]line НДС 12% НСП 1% [10:04:31]line > о реализуемом товаре [10:04:31]line ОКРУГЛЕНИЕ: -0.50 [10:04:31]line ИТОГО: 1093.00 [10:04:31]line Внесено: 1093.00 [10:04:31]line СДАЧА: 0.00 [10:04:31]line НСП 1% : 9.68 [10:04:31]line НДС 12% : 116.12 [10:04:31]line Наличными: 1093.00 [10:04:31]line Безнал.: 0.00 [10:04:31]line Место: АЗС № 68 "Партнер Нефть" [10:04:31]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:04:31]line СНО: Общий режим [10:04:31]line Чек 64 04.06.2024 10:04 [10:04:31]line Смена: 368 ФФД: 1.0 [10:04:31]line ЗНМ: 0300000035 [10:04:31]line РНМ: 0000000000092720 [10:04:31]line Версия ККМ: 001 [10:04:31]line ФМ: 0000000000875057 [10:04:31]line ФД: 148725 [10:04:31]line ФПД: 111392565386180 [10:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100432&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148725&fm=111392565386180&tin=02508201610067®Number=0000000000092720&sum=109300 [10:04:31]written 0, free lines is 4095 [10:04:32]Write to MH i2c: 01 00 00 FE 1B 19 [10:04:32]Write i2c OK [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: 01 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: 01 07 00 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: 01 07 00 FE 1B 00 00 00 00 00 6B 0C 97 [10:04:32]RasterBufferAndPrint [10:04:32]line [10:04:32]line [10:04:32]line [10:04:32]line [10:04:32]line [10:04:32]written 0, free lines is 3183 [10:04:32]MH_Cut [10:04:32]Write to MH i2c: D1 01 00 05 1C 01 F3 [10:04:32]Write i2c OK [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: D1 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: D1 01 00 [10:04:32]MH_I2C_Read... [10:04:32]Read from MH i2c: D1 01 00 05 1C 00 F2 [10:04:32]Write to MH i2c: 01 00 00 06 1C 22 [10:04:32]Write i2c OK [10:04:32]MH_I2C_Read... [10:04:33]*** Cut start [10:04:33]*** Partial cut [10:04:33]*** CUTSNS_PIN = 1 [10:04:33]*** CUTSNS_PIN = 0 [10:04:33]*** Brake cut motor [10:04:34]Read from MH i2c: 01 [10:04:34]MH_I2C_Read... [10:04:34]*** Stop cut motor [10:04:34]*** Cut end [10:04:34]Read from MH i2c: 01 07 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: 01 07 00 06 1C 00 00 00 00 00 FF 0F 37 [10:04:34]process_action close_receipt done [10:04:34]requested_data is exist [10:04:34]produce_requested_data [10:04:34]requested_item fm.sn is exist - process it [10:04:34]wFMCommunicate request_size=4 [10:04:34]MH_SAM_APDU [10:04:34]CAPDU: 80 11 00 00 [10:04:34]Write to MH i2c: E2 08 00 07 1C 80 11 00 00 00 00 00 00 9D [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:34]Read from MH i2c: E2 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 17 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 17 00 07 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F0 [10:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:04:34]wFMCommunicate OK [10:04:34]requested_item fd.num is exist - process it [10:04:34]SAM_PROTO_GetFieldsCounters [10:04:34]wFMCommunicate request_size=4 [10:04:34]MH_SAM_APDU [10:04:34]CAPDU: 80 13 00 00 [10:04:34]Write to MH i2c: E2 08 00 08 1C 80 13 00 00 00 00 00 00 A0 [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:34]Read from MH i2c: E2 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 62 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 62 00 08 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F5 44 02 00 0E 04 04 00 70 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 28 [10:04:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F5 44 02 00 0E 04 04 00 70 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 [10:04:34]wFMCommunicate OK [10:04:34]SAM_PROTO_GetFieldsCounters done [10:04:34]requested_item shift.num is exist - process it [10:04:34]requested_item shift.opened is exist - process it [10:04:34]req_shift_opened [10:04:34]FM_GetShiftState [10:04:34]SAM_PROTO_GetShiftState [10:04:34]wFMCommunicate request_size=4 [10:04:34]MH_SAM_APDU [10:04:34]CAPDU: 80 13 01 00 [10:04:34]Write to MH i2c: E2 08 00 09 1C 80 13 01 00 00 00 00 00 A2 [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:34]Read from MH i2c: E2 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 0E 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: E2 0E 00 09 1C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 65 [10:04:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:04:34]wFMCommunicate OK [10:04:34]SAM_PROTO_GetShiftState done [10:04:34]FM_GetShiftState done [10:04:34]req_shift_opened done [10:04:34]requested_item shift.open_date is exist - process it [10:04:34]req_shift_open_date [10:04:34]req_shift_open_date done [10:04:34]produce_requested_data done [10:04:34]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148725,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:04:34]process_action_free close_receipt [10:04:34]json_value_free [10:04:34]json_value_free done [10:04:34]process_json_proto returns [10:04:34]Send response to host [10:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148725,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:04:34]free response buf [10:04:34]execute_script done [10:04:34]execute_script returns [10:04:34]free content buf [10:04:34]Sock 9.Close socket [10:04:34]Sock 9.Thread stoped [10:04:50]ConnectInit Can't connect to host [10:04:50]CommunicateWithHost connect error [10:04:50]CommunicateWithHost err = -1 [10:04:50]OFD Sender: Server communicate error [10:04:50]OFD Sender: Processing packet 148722 [packets to send 103, broken 99] [10:04:50]ProducePacketName [10:04:50]name=ofd_packets/00148722 [10:04:50]OFD Sender: To server: pG, [10:04:50]CommunicateWithHost lk.salyk.kg:30040 [10:04:50]ConnectInit lk.salyk.kg [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F4 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057254F (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 30905824+1686589900=1717495724 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 40 00 FF FF 96 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 AD E7 5E 66 CC 51 87 64 5F [10:08:45]Current date/time: 04.06.2024 10:08 [10:08:45]FM_Init [10:08:45]wFMConnect [10:08:45]MH_SAM_On [10:08:45]Write to MH i2c: E0 00 00 08 00 E7 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_init finished! [10:08:45]*** atr: [10:08:45]*** 0F 3B D5 18 FF 81 91 FE [10:08:45]*** 1F C3 80 73 C8 21 10 0A [10:08:45]*** 00 00 00 00 00 00 00 00 [10:08:45]*** 00 00 00 00 00 00 00 00 [10:08:45]*** 00 00 00 00 00 00 00 00 [10:08:45]*** 00 00 00 00 00 00 00 00 [10:08:45]*** 00 00 00 00 00 00 00 00 [10:08:45]*** 00 00 00 00 00 00 00 00 [10:08:45]Read from MH i2c: E0 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E0 10 00 [10:08:45]MH_I2C_Read... [10:08:45]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 [10:08:45]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:08:45]wFMCommunicate request_size=10 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:08:45]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:08:45]RAPDU: 90 00 [10:08:45]wFMCommunicate OK [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 11 00 00 [10:08:45]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 17 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D7 [10:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:08:45]wFMCommunicate OK [10:08:45]Detected FM SN is 0000000000875057 [10:08:45]Stored FM SN is 0000000000875057 [10:08:45]wFMCommunicate request_size=9 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 16 00 00 04 C9 4A 01 00 [10:08:45]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C9 4A 01 00 00 00 A6 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:08:45]RAPDU: 90 00 [10:08:45]wFMCommunicate OK [10:08:45]FM PIN OK [10:08:45]wFMCommunicate request_size=8 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 14 04 00 03 02 00 01 [10:08:45]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:08:45]RAPDU: 90 00 [10:08:45]wFMCommunicate OK [10:08:45]wFMCommunicate request_size=13 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:08:45]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 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:08:45]RAPDU: 90 00 [10:08:45]wFMCommunicate OK [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 11 00 00 [10:08:45]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 17 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DB [10:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:08:45]wFMCommunicate OK [10:08:45]DocumentArchiveInit [10:08:45]Start Httpd... [10:08:45]Httpd thread 3067665764 created [10:08:45]Write to MH i2c: 01 00 00 0F 00 0F [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: 01 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: 01 07 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:08:45]Allocated Socket 5 [10:08:45]Bind OK [10:08:45]Listen OK [10:08:45]httpd running on port 8080 [10:08:45]Waiting for new connection... [10:08:45]MH Int Process started [10:08:45]OFD Sender: Processing packet 148722 [packets to send 103, broken 99] [10:08:45]ProducePacketName [10:08:45]name=ofd_packets/00148722 [10:08:45]OFD Sender: To server: pG, [10:08:45]CommunicateWithHost lk.salyk.kg:30040 [10:08:45]ConnectInit lk.salyk.kg [10:08:45]Connected sock=7 [10:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E3 50 07 01 78 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 3E E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 44 02 00 35 04 06 00 AC EC 20 7F 21 D5 0A 31 AA 89 B1 7D 20 B2 [10:08:45]accept exits with 6 [10:08:45]New connection [10:08:45]New thread 3067379044 created [10:08:45]Waiting for new connection... [10:08:45] Sock 6.Parse request [10:08:45]Sock 6.Check first char [10:08:45]Sock 6.First char is OK [10:08:45]request: POST /json_proto HTTP/1.0 [10:08:45]Method: POST [10:08:45]URL: /json_proto [10:08:45]Method is POST - this is cgi request [10:08:45]url: /json_proto [10:08:45]query_string will be loaded in cgi processing [10:08:45]execute_cgi json_proto POST (null) [10:08:45]execute_cgi path=json_proto method=POST [10:08:45]POST find Content-Length [10:08:45]Host: 172.17.38.4:8080 [10:08:45]Content-Length: 215 [10:08:45]Content-Type: application/json [10:08:45] [10:08:45]POST finish read [10:08:45]Found Content-Length = 215 [10: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" ] } } [10:08:45]execute_script... [10: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" ] } } [10:08:45]POST & json_proto [10:08:45]process_json_proto [10:08:45]json parsed OK: [10:08:45]protocol is kg_v1.0 [10:08:45]action value=get_value [10:08:45]process_action get_value [10:08:45]cmd_get_value [10:08:45]process_action get_value done [10:08:45]requested_data is exist [10:08:45]produce_requested_data [10:08:45]requested_item kkm.sn is exist - process it [10:08:45]requested_item kkm.ver is exist - process it [10:08:45]requested_item fm.sn is exist - process it [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 11 00 00 [10:08:45]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 17 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DD [10:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:08:45]wFMCommunicate OK [10:08:45]requested_item fd.num is exist - process it [10:08:45]SAM_PROTO_GetFieldsCounters [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 13 00 00 [10:08:45]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 EA FA 47 00 28 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 38 37 35 30 35 37 10 04 04 00 F2 44 02 00 F4 03 04 00 D0 8E 5E 66 B6 04 01 00 00 8E 5C DF F9 F4 68 69 D6 [10:08:45]CommunicateWithHost err = 0 [10:08:45]CheckOFDResponse [10:08:45]1017 (14) - 77093643461234 [10:08:45]1041 (16) - 0000000000875057 [10:08:45]1040 (4) - 148722 [10:08:45]1012 (4) - 04.06.2024 03:49 [10:08:45]1206 (1) - 0 [10:08:45]OFD Sender: Remove packet 148722 [10:08:45]ProducePacketName [10:08:45]name=ofd_packets/00148722 [10:08:45]NVStorageDeleteData [10:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 62 00 [10:08:45]MH_I2C_Read... [10:08:45]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 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F5 44 02 00 0E 04 04 00 70 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 15 [10:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F5 44 02 00 0E 04 04 00 70 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 [10:08:45]wFMCommunicate OK [10:08:45]SAM_PROTO_GetFieldsCounters done [10:08:45]requested_item shift.num is exist - process it [10:08:45]requested_item shift.opened is exist - process it [10:08:45]req_shift_opened [10:08:45]FM_GetShiftState [10:08:45]SAM_PROTO_GetShiftState [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 13 01 00 [10:08:45]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 0E 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 52 [10:08:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:08:45]wFMCommunicate OK [10:08:45]SAM_PROTO_GetShiftState done [10:08:45]FM_GetShiftState done [10:08:45]req_shift_opened done [10:08:45]requested_item shift.open_date is exist - process it [10:08:45]req_shift_open_date [10:08:45]req_shift_open_date done [10:08:45]produce_requested_data done [10:08:45]produce_requested_data return {"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":148725,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:08:45]process_action_free get_value [10:08:45]json_value_free [10:08:45]json_value_free done [10:08:45]process_json_proto returns [10:08:45]Send response to host [10:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":148725,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:08:45]free response buf [10:08:45]execute_script done [10:08:45]execute_script returns [10:08:45]free content buf [10:08:45]Sock 6.Close socket [10:08:45]Sock 6.Thread stoped [10:08:45]accept exits with 10 [10:08:45]New connection [10:08:45]New thread 3067235684 created [10:08:45]Thread 3067379044 joined [10:08:45]Waiting for new connection... [10:08:45] Sock 10.Parse request [10:08:45]Sock 10.Check first char [10:08:45]Sock 10.First char is OK [10:08:45]request: POST /json_proto HTTP/1.0 [10:08:45]Method: POST [10:08:45]URL: /json_proto [10:08:45]Method is POST - this is cgi request [10:08:45]url: /json_proto [10:08:45]query_string will be loaded in cgi processing [10:08:45]execute_cgi json_proto POST (null) [10:08:45]execute_cgi path=json_proto method=POST [10:08:45]POST find Content-Length [10:08:45]Host: 172.17.38.4:8080 [10:08:45]Content-Length: 331 [10:08:45]Content-Type: application/json [10:08:45] [10:08:45]POST finish read [10:08:45]Found Content-Length = 331 [10:08:46]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:08:46]execute_script... [10:08:46]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:08:46]POST & json_proto [10:08:46]process_json_proto [10:08:46]json parsed OK: [10:08:46]protocol is kg_v1.0 [10:08:46]action value=get_value [10:08:46]process_action get_value [10:08:46]cmd_get_value [10:08:46]process_action get_value done [10:08:46]requested_data is exist [10:08:46]produce_requested_data [10:08:46]requested_item fm.sale.total is exist - process it [10:08:46]SAM_PROTO_GetFMData [10:08:46]wFMCommunicate request_size=4 [10:08:46]MH_SAM_APDU [10:08:46]CAPDU: 80 13 03 00 [10:08:46]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:46]OFD Sender: Processing packet 148723 [packets to send 102, broken 99] [10:08:46]ProducePacketName [10:08:46]name=ofd_packets/00148723 [10:08:46]OFD Sender: To server: pG, [10:08:46]CommunicateWithHost lk.salyk.kg:30040 [10:08:46]ConnectInit lk.salyk.kg [10:08:46]Connected sock=7 [10:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 DF CC 07 01 9B E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 49 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 44 02 00 35 04 06 00 28 23 51 DA FC F3 F6 C9 3C 01 FA B3 9F 4C [10:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 82 DA 47 00 85 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 38 37 35 30 35 37 10 04 04 00 F3 44 02 00 F4 03 04 00 D0 8E 5E 66 B6 04 01 00 00 6E 94 0B D1 23 0A 4D A2 [10:08:46]CommunicateWithHost err = 0 [10:08:46]CheckOFDResponse [10:08:46]1017 (14) - 77093643461234 [10:08:46]1041 (16) - 0000000000875057 [10:08:46]1040 (4) - 148723 [10:08:46]1012 (4) - 04.06.2024 03:49 [10:08:46]1206 (1) - 0 [10:08:46]OFD Sender: Remove packet 148723 [10:08:46]ProducePacketName [10:08:46]name=ofd_packets/00148723 [10:08:46]NVStorageDeleteData [10:08:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:08:46]Read from MH i2c: E2 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: E2 FD 00 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 15 42 02 00 69 04 A3 00 6F 04 04 00 6F 3F 02 00 B1 04 05 00 5F 07 F3 D3 01 70 04 05 00 A8 FE 64 B6 01 72 04 04 00 B7 08 8E 1D 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 6B 7A B7 31 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 EE 6B 24 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A6 02 00 00 B1 04 04 00 D8 6D 06 04 70 04 04 00 A0 C5 04 04 72 04 03 00 38 A8 01 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 6E 76 6D EF 90 00 F5 [10:08:46]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 15 42 02 00 69 04 A3 00 6F 04 04 00 6F 3F 02 00 B1 04 05 00 5F 07 F3 D3 01 70 04 05 00 A8 FE 64 B6 01 72 04 04 00 B7 08 8E 1D 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 6B 7A B7 31 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 EE 6B 24 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A6 02 00 00 B1 04 04 00 D8 6D 06 04 70 04 04 00 A0 C5 04 04 72 04 03 00 38 A8 01 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 6E 76 6D EF 90 00 [10:08:46]wFMCommunicate OK [10:08:46]wFMCommunicate request_size=4 [10:08:46]MH_SAM_APDU [10:08:46]CAPDU: 80 17 00 00 [10:08:46]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 FD 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 FD 00 14 00 00 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 FE 1E 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [10:08:47]RAPDU: 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 FE 1E 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:08:47]wFMCommunicate OK [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 17 00 00 [10:08:47]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]OFD Sender: Processing packet 148724 [packets to send 101, broken 99] [10:08:47]ProducePacketName [10:08:47]name=ofd_packets/00148724 [10:08:47]OFD Sender: To server: pG, [10:08:47]CommunicateWithHost lk.salyk.kg:30040 [10:08:47]ConnectInit lk.salyk.kg [10:08:47]Connected sock=7 [10:08:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 18 2C 07 01 92 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 35 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 3F 00 00 00 F4 03 04 00 A7 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 44 02 00 35 04 06 00 34 5C DE C6 A9 7F C3 09 79 04 3F 90 73 3C [10:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 FD 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [10:08:47]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:08:47]wFMCommunicate OK [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 17 00 00 [10:08:47]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 5D 3C 47 00 6A 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 38 37 35 30 35 37 10 04 04 00 F4 44 02 00 F4 03 04 00 D1 8E 5E 66 B6 04 01 00 00 D6 38 C2 FB E2 2A 68 AC [10:08:47]CommunicateWithHost err = 0 [10:08:47]CheckOFDResponse [10:08:47]1017 (14) - 77093643461234 [10:08:47]1041 (16) - 0000000000875057 [10:08:47]1040 (4) - 148724 [10:08:47]1012 (4) - 04.06.2024 03:49 [10:08:47]1206 (1) - 0 [10:08:47]OFD Sender: Remove packet 148724 [10:08:47]ProducePacketName [10:08:47]name=ofd_packets/00148724 [10:08:47]NVStorageDeleteData [10:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 FD 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 FD 00 16 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 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 90 00 11 [10:08:47]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:08:47]wFMCommunicate OK [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 17 00 00 [10:08:47]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 E4 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [10:08:47]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:48]wFMCommunicate OK [10:08:48]SAM_PROTO_GetFMData done [10:08:48]requested_item fm.sale_refund.total is exist - process it [10:08:48]requested_item fm.buy.total is exist - process it [10:08:48]requested_item shift.sale.total is exist - process it [10:08:48]SAM_PROTO_GetShiftData [10:08:48]wFMCommunicate request_size=4 [10:08:48]MH_SAM_APDU [10:08:48]CAPDU: 80 13 02 00 [10:08:48]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:08:48]OFD Sender: Processing packet 148725 [packets to send 100, broken 99] [10:08:48]ProducePacketName [10:08:48]name=ofd_packets/00148725 [10:08:48]OFD Sender: To server: pG, [10:08:48]CommunicateWithHost lk.salyk.kg:30040 [10:08:48]ConnectInit lk.salyk.kg [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]Connected sock=7 [10:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 DC B1 04 01 D5 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 26 AB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 2D 00 00 00 00 07 04 06 00 F4 AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B0 E6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 44 02 00 35 04 06 00 65 4F 9A 4A 5B C4 6F 35 29 A6 4A AE 77 B1 [10:08:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8A D8 47 00 3C 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 38 37 35 30 35 37 10 04 04 00 F5 44 02 00 F4 03 04 00 D2 8E 5E 66 B6 04 01 00 00 CA 22 D1 7F 3F 68 10 5B [10:08:48]CommunicateWithHost err = 0 [10:08:48]CheckOFDResponse [10:08:48]1017 (14) - 77093643461234 [10:08:48]1041 (16) - 0000000000875057 [10:08:48]1040 (4) - 148725 [10:08:48]1012 (4) - 04.06.2024 03:49 [10:08:48]1206 (1) - 0 [10:08:48]OFD Sender: Remove packet 148725 [10:08:48]ProducePacketName [10:08:48]name=ofd_packets/00148725 [10:08:48]NVStorageDeleteData [10:08:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:08:48]Read from MH i2c: E2 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 FD 00 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 40 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 F3 E4 43 70 04 03 00 20 25 3D 72 04 03 00 D3 BF 06 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 74 36 07 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 E3 99 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 38 [10:08:48]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 40 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 F3 E4 43 70 04 03 00 20 25 3D 72 04 03 00 D3 BF 06 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 74 36 07 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 E3 99 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:08:48]wFMCommunicate OK [10:08:48]wFMCommunicate request_size=4 [10:08:48]MH_SAM_APDU [10:08:48]CAPDU: 80 17 00 00 [10:08:48]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:48]Read from MH i2c: E2 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 FD 00 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 OFD Sender: No OFD packet to send [10:08:48]00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [10:08:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [10:08:48]wFMCommunicate OK [10:08:48]wFMCommunicate request_size=4 [10:08:48]MH_SAM_APDU [10:08:48]CAPDU: 80 17 00 00 [10:08:48]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [10:08:49]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:08:49]wFMCommunicate OK [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 17 00 00 [10:08:49]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [10:08:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:08:49]wFMCommunicate OK [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 17 00 00 [10:08:49]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: *** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:08:49]E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 CB 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [10:08:50]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:08:50]wFMCommunicate OK [10:08:50]SAM_PROTO_GetShiftData done [10:08:50]requested_item shift.sale.total_cash is exist - process it [10:08:50]requested_item shift.sale_refund.total is exist - process it [10:08:50]requested_item shift.sale_refund.total_cash is exist - process it [10:08:50]requested_item shift.buy.total is exist - process it [10:08:50]requested_item shift.buy.total_cash is exist - process it [10:08:50]produce_requested_data done [10:08:50]produce_requested_data return {"fm.sale.total":78508870.07,"fm.sale_refund.total":675302.00,"fm.buy.total":0.00,"shift.sale.total":44495.23,"shift.sale.total_cash":40072.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:08:50]process_action_free get_value [10:08:50]json_value_free [10:08:50]json_value_free done [10:08:50]process_json_proto returns [10:08:50]Send response to host [10:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78508870.07,"fm.sale_refund.total":675302.00,"fm.buy.total":0.00,"shift.sale.total":44495.23,"shift.sale.total_cash":40072.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:08:50]free response buf [10:08:50]execute_script done [10:08:50]execute_script returns [10:08:50]free content buf [10:08:50]Sock 10.Close socket [10:08:50]Sock 10.Thread stoped [10:08:50]accept exits with 6 [10:08:50]New connection [10:08:50]New thread 3067379044 created [10:08:50]Thread 3067235684 joined [10:08:50]Waiting for new connection... [10:08:50] Sock 6.Parse request [10:08:50]Sock 6.Check first char [10:08:50]Sock 6.First char is OK [10:08:50]request: POST /json_proto HTTP/1.0 [10:08:50]Method: POST [10:08:50]URL: /json_proto [10:08:50]Method is POST - this is cgi request [10:08:50]url: /json_proto [10:08:50]query_string will be loaded in cgi processing [10:08:50]execute_cgi json_proto POST (null) [10:08:50]execute_cgi path=json_proto method=POST [10:08:50]POST find Content-Length [10:08:50]Host: 172.17.38.4:8080 [10:08:50]Content-Length: 800 [10:08:50]Content-Type: application/json [10:08:50] [10:08:50]POST finish read [10:08:50]Found Content-Length = 800 [10:08:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:50]execute_script... [10:08:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:50]POST & json_proto [10:08:50]process_json_proto [10:08:50]json parsed OK: [10:08:50]protocol is kg_v1.0 [10:08:50]action value=close_receipt [10:08:50]process_action close_receipt [10:08:50]cmd_close_receipt [10:08:50]MH_GetDate [10:08:50]Write to MH i2c: F0 00 00 1D 00 0C [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: F0 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: F0 09 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: F0 09 00 1D 00 00 B2 E7 5E 66 CC 51 87 64 7A [10:08:50]GetLastDocTimeStamp 1717495472 [10:08:50]current date 1717495730 [10:08:50]FM_GetShiftState [10:08:50]SAM_PROTO_GetShiftState [10:08:50]wFMCommunicate request_size=4 [10:08:50]MH_SAM_APDU [10:08:50]CAPDU: 80 13 01 00 [10:08:50]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 0E 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5E [10:08:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:08:50]wFMCommunicate OK [10:08:50]SAM_PROTO_GetShiftState done [10:08:50]FM_GetShiftState done [10:08:50]opened in 1717460629 [10:08:50]opened+sec_in_day 1717547029 [10:08:50]quantity*price = 40006 [10:08:50]sum+1 = 40007 [10:08:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 65 04.06.2024 10:08 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148726 ФПД: 242579060478033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100850&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148726&fm=242579060478033&tin=02508201610067®Number=0000000000092720&sum=40006 [10:08:51]StoreToDocumentArchive [10:08:51]shift 368 fd 148726 [10:08:51]save to /storage/0368/doc_00148726 [10:08:51]save last doc name /storage/0368/doc_00148726 to /storage/kkm_last_doc_name [10:08:51]save OK [10:08:51]Clear old archive folders... [10:08:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:51]tlvbuf is 00F88180 [10:08:51]SAM_PROTO_ClearQueue [10:08:51]wFMCommunicate request_size=4 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 09 00 00 [10:08:51]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 03 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:08:51]RAPDU: 90 00 [10:08:51]wFMCommunicate OK [10:08:51]SAM_PROTO_ClearQueue done [10:08:51]KKMCreateOFDPacket [10:08:51]OFDProtocolAddRootSTLVToBuf [10:08:51]FM_MakeSignedData [10:08:51]FM_MakeSignedData [10:08:51]SAM_PROTO_SignData [10:08:51]wFMCommunicate request_size=4 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 0D 01 02 [10:08:51]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 03 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:08:52]RAPDU: 90 00 [10:08:52]wFMCommunicate OK [10:08:52]wFMCommunicate request_size=255 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 B2 E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 44 02 00 35 04 06 00 DC [10:08:52]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 B2 E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 44 02 00 35 04 06 00 DC 00 00 31 [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 03 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [10:08:52]RAPDU: 90 00 [10:08:52]wFMCommunicate OK [10:08:52]wFMCommunicate request_size=10 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 0D 02 02 05 9F D6 BA D0 51 [10:08:52]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 9F D6 BA D0 51 00 00 02 [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 03 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [10:08:52]RAPDU: 90 00 [10:08:52]wFMCommunicate OK [10:08:52]wFMCommunicate request_size=4 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 0D 03 02 [10:08:52]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 0B 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 0B 00 2F 00 00 B9 0A 5C 27 C9 6B 62 30 90 00 B7 [10:08:52]RAPDU: B9 0A 5C 27 C9 6B 62 30 90 00 [10:08:52]wFMCommunicate OK [10:08:52]SAM_PROTO_SignData done [10:08:52]FM_MakeSignedData done [10:08:52]CreateOFDProtocolMessage [10:08:52]wFMCommunicate request_size=4 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 11 00 00 [10:08:52]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 17 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FD [10:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:08:52]wFMCommunicate OK [10:08:52]CreateOFDProtocolMessage done [10:08:52]OFDSenderStorePacket 148726 [10:08:52]StoreOFDPacket docnum=148726 [10:08:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 86 63 07 01 3E 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 B2 E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 44 02 00 35 04 06 00 DC 9F D6 BA D0 51 B9 0A 5C 27 C9 6B 62 30 [10:08:52]CheckFolder [10:08:52]dirname=/storage/ofd_packets [10:08:52]CheckFolder done [10:08:52]ProducePacketName [10:08:52]name=ofd_packets/00148726 [10:08:52]NVStorageSaveData ofd_packets/00148726 [10:08:52]File name is /storage/ofd_packets/00148726 [10:08:52]Write 301 bytes [10:08:52]NVStorageSaveData done [10:08:52]OFDSenderStorePacket done [10:08:52]KKMCreateOFDPacket done [10:08:52]NVStorageSaveData kkm_last_timestamp [10:08:52]File name is /storage/kkm_last_timestamp [10:08:52]Write 4 bytes [10:08:52]NVStorageSaveData done [10:08:52]ExternCall_PrintAddStr [10:08:52]wPrintStart [10:08:52]Write to MH i2c: 01 00 00 31 00 31 [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: 01 [10:08:52]MH_I2C_Read... [10:08:52]OFD Sender: Processing packet 148726 [packets to send 100, broken 99] [10:08:52]ProducePacketName [10:08:52]name=ofd_packets/00148726 [10:08:52]OFD Sender: To server: pG, [10:08:52]CommunicateWithHost lk.salyk.kg:30040 [10:08:52]ConnectInit lk.salyk.kg [10:08:52]Read from MH i2c: 01 07 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [10:08:52]RasterBufferAndPrint [10:08:52]line Счет N : (1)979651 [10:08:52]line ИНН: 02508201610067 [10:08:52]line Контрольно-Кассовый Чек [10:08:52]line ПРОДАЖА [10:08:52]line ТРК (МРК, ГНК) : 12 [10:08:52]line Товар: 2710124130 [10:08:52]line Аи-92-К-5 [10:08:52]line 5.980 * 66.90 [10:08:52]line = 400.06 [10:08:52]line НДС 12% НСП 1% [10:08:52]line > о реализуемом товаре [10:08:52]line ИТОГО: 400.06 [10:08:52]line НСП 1% : 3.54 [10:08:52]line НДС 12% : 42.48 [10:08:52]line Наличными: 0.00 [10:08:52]line Безнал.: 400.06 [10:08:52]line Место: АЗС № 68 "Партнер Нефть" [10:08:52]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:08:52]line СНО: Общий режим [10:08:52]line Чек 65 04.06.2024 10:08 [10:08:52]line Смена: 368 ФФД: 1.0 [10:08:52]line ЗНМ: 0300000035 [10:08:52]line РНМ: 0000000000092720 [10:08:52]line Версия ККМ: 001 [10:08:52]line Платежная система: O! деньги [10:08:52]line ФМ: 0000000000875057 [10:08:52]line ФД: 148726 [10:08:52]line ФПД: 242579060478033 [10:08:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100850&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148726&fm=242579060478033&tin=02508201610067®Number=0000000000092720&sum=40006 [10:08:52]written 0, free lines is 4095 [10:08:52]Connected sock=10 [10:08:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 86 63 07 01 3E 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 B2 E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 44 02 00 35 04 06 00 DC 9F D6 BA D0 51 B9 0A 5C 27 C9 6B 62 30 [10:08:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8A D8 47 00 3C 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 38 37 35 30 35 37 10 04 04 00 F6 44 02 00 F4 03 04 00 D7 8E 5E 66 B6 04 01 00 00 0D F1 CD 39 DD 84 94 A3 [10:08:53]CommunicateWithHost err = 0 [10:08:53]CheckOFDResponse [10:08:53]1017 (14) - 77093643461234 [10:08:53]1041 (16) - 0000000000875057 [10:08:53]1040 (4) - 148726 [10:08:53]1012 (4) - 04.06.2024 03:49 [10:08:53]1206 (1) - 0 [10:08:53]OFD Sender: Remove packet 148726 [10:08:53]ProducePacketName [10:08:53]name=ofd_packets/00148726 [10:08:53]NVStorageDeleteData [10:08:53]Write to MH i2c: 01 00 00 5B 00 5B [10:08:53]Write i2c OK [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: 01 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: 01 07 00 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 7D 0C EB [10:08:53]RasterBufferAndPrint [10:08:53]line [10:08:53]line [10:08:53]line [10:08:53]line [10:08:53]line [10:08:53]written 0, free lines is 3213 [10:08:53]MH_Cut [10:08:53]Write to MH i2c: D1 01 00 62 00 01 34 [10:08:53]Write i2c OK [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: D1 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: D1 01 00 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: D1 01 00 62 00 00 33 [10:08:53]Write to MH i2c: 01 00 00 63 00 63 [10:08:53]Write i2c OK [10:08:53]MH_I2C_Read... [10:08:53]OFD Sender: No OFD packet to send [10:08:54]*** Cut start [10:08:54]*** Partial cut [10:08:54]*** CUTSNS_PIN = 1 [10:08:54]*** CUTSNS_PIN = 0 [10:08:54]*** Brake cut motor [10:08:55]Read from MH i2c: 01 [10:08:55]MH_I2C_Read... [10:08:55]*** Stop cut motor [10:08:55]*** Cut end [10:08:55]Read from MH i2c: 01 07 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [10:08:55]process_action close_receipt done [10:08:55]requested_data is exist [10:08:55]produce_requested_data [10:08:55]requested_item fm.sn is exist - process it [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 11 00 00 [10:08:55]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 17 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 31 [10:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:08:55]wFMCommunicate OK [10:08:55]requested_item fd.num is exist - process it [10:08:55]SAM_PROTO_GetFieldsCounters [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 13 00 00 [10:08:55]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 62 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F6 44 02 00 0E 04 04 00 70 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 6D [10:08:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F6 44 02 00 0E 04 04 00 70 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 [10:08:55]wFMCommunicate OK [10:08:55]SAM_PROTO_GetFieldsCounters done [10:08:55]requested_item shift.num is exist - process it [10:08:55]requested_item shift.opened is exist - process it [10:08:55]req_shift_opened [10:08:55]FM_GetShiftState [10:08:55]SAM_PROTO_GetShiftState [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 13 01 00 [10:08:55]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 0E 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A6 [10:08:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:08:55]wFMCommunicate OK [10:08:55]SAM_PROTO_GetShiftState done [10:08:55]FM_GetShiftState done [10:08:55]req_shift_opened done [10:08:55]requested_item shift.open_date is exist - process it [10:08:55]req_shift_open_date [10:08:55]req_shift_open_date done [10:08:55]produce_requested_data done [10:08:55]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148726,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:08:55]process_action_free close_receipt [10:08:55]json_value_free [10:08:55]json_value_free done [10:08:55]process_json_proto returns [10:08:55]Send response to host [10:08:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148726,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:08:55]free response buf [10:08:55]execute_script done [10:08:55]execute_script returns [10:08:55]free content buf [10:08:55]Sock 6.Close socket [10:08:55]Sock 6.Thread stoped [10:08:55]accept exits with 9 [10:08:55]New connection [10:08:55]New thread 3067235684 created [10:08:55]Thread 3067379044 joined [10:08:55]Waiting for new connection... [10:08:55] Sock 9.Parse request [10:08:55]Sock 9.Check first char [10:08:55]Sock 9.First char is OK [10:08:55]request: POST /json_proto HTTP/1.0 [10:08:55]Method: POST [10:08:55]URL: /json_proto [10:08:55]Method is POST - this is cgi request [10:08:55]url: /json_proto [10:08:55]query_string will be loaded in cgi processing [10:08:55]execute_cgi json_proto POST (null) [10:08:55]execute_cgi path=json_proto method=POST [10:08:55]POST find Content-Length [10:08:55]Host: 172.17.38.4:8080 [10:08:55]Content-Length: 679 [10:08:55]Content-Type: application/json [10:08:55] [10:08:55]POST finish read [10:08:55]Found Content-Length = 679 [10:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [10:08:55]execute_script... [10:08: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)979652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [10:08:55]POST & json_proto [10:08:55]process_json_proto [10:08:55]json parsed OK: [10:08:55]protocol is kg_v1.0 [10:08:55]action value=close_receipt [10:08:55]process_action close_receipt [10:08:55]cmd_close_receipt [10:08:55]MH_GetDate [10:08:55]Write to MH i2c: F0 00 00 67 00 56 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: F0 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: F0 09 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: F0 09 00 67 00 00 B8 E7 5E 66 CC 51 87 64 CA [10:08:55]GetLastDocTimeStamp 1717495730 [10:08:55]current date 1717495736 [10:08:55]FM_GetShiftState [10:08:55]SAM_PROTO_GetShiftState [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 13 01 00 [10:08:55]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 0E 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A8 [10:08:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:08:56]wFMCommunicate OK [10:08:56]SAM_PROTO_GetShiftState done [10:08:56]FM_GetShiftState done [10:08:56]opened in 1717460629 [10:08:56]opened+sec_in_day 1717547029 [10:08:56]quantity*price = 100018 [10:08:56]sum+1 = 100020 [10:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 66 04.06.2024 10:08 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148727 ФПД: 14073132031812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100856&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148727&fm=14073132031812&tin=02508201610067®Number=0000000000092720&sum=100000 [10:08:57]StoreToDocumentArchive [10:08:57]shift 368 fd 148727 [10:08:57]save to /storage/0368/doc_00148727 [10:08:57]save last doc name /storage/0368/doc_00148727 to /storage/kkm_last_doc_name [10:08:57]save OK [10:08:57]Clear old archive folders... [10:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:08:57]tlvbuf is 00F9DB90 [10:08:57]SAM_PROTO_ClearQueue [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 09 00 00 [10:08:57]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [10:08:57]RAPDU: 90 00 [10:08:57]wFMCommunicate OK [10:08:57]SAM_PROTO_ClearQueue done [10:08:57]KKMCreateOFDPacket [10:08:57]OFDProtocolAddRootSTLVToBuf [10:08:57]FM_MakeSignedData [10:08:57]FM_MakeSignedData [10:08:57]SAM_PROTO_SignData [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 0D 01 02 [10:08:57]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [10:08:57]RAPDU: 90 00 [10:08:57]wFMCommunicate OK [10:08:57]wFMCommunicate request_size=255 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 B8 E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 44 02 00 35 04 06 00 0C CC A8 09 [10:08:57]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 B8 E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 44 02 00 35 04 06 00 0C CC A8 09 00 00 2C [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [10:08:58]RAPDU: 90 00 [10:08:58]wFMCommunicate OK [10:08:58]wFMCommunicate request_size=7 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 0D 02 02 02 1F 44 [10:08:58]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 1F 44 00 00 59 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [10:08:58]RAPDU: 90 00 [10:08:58]wFMCommunicate OK [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 0D 03 02 [10:08:58]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 0B 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 0B 00 79 00 00 F2 7E AF E9 73 99 9D 8F 90 00 35 [10:08:58]RAPDU: F2 7E AF E9 73 99 9D 8F 90 00 [10:08:58]wFMCommunicate OK [10:08:58]SAM_PROTO_SignData done [10:08:58]FM_MakeSignedData done [10:08:58]CreateOFDProtocolMessage [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 11 00 00 [10:08:58]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 17 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 47 [10:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:08:58]wFMCommunicate OK [10:08:58]CreateOFDProtocolMessage done [10:08:58]OFDSenderStorePacket 148727 [10:08:58]StoreOFDPacket docnum=148727 [10:08:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 4E 07 04 01 19 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 B8 E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 44 02 00 35 04 06 00 0C CC A8 09 1F 44 F2 7E AF E9 73 99 9D 8F [10:08:58]CheckFolder [10:08:58]dirname=/storage/ofd_packets [10:08:58]CheckFolder done [10:08:58]ProducePacketName [10:08:58]name=ofd_packets/00148727 [10:08:58]NVStorageSaveData ofd_packets/00148727 [10:08:58]File name is /storage/ofd_packets/00148727 [10:08:58]Write 298 bytes [10:08:58]NVStorageSaveData done [10:08:58]OFDSenderStorePacket done [10:08:58]KKMCreateOFDPacket done [10:08:58]NVStorageSaveData kkm_last_timestamp [10:08:58]File name is /storage/kkm_last_timestamp [10:08:58]Write 4 bytes [10:08:58]NVStorageSaveData done [10:08:58]ExternCall_PrintAddStr [10:08:58]wPrintStart [10:08:58]Write to MH i2c: 01 00 00 7B 00 7B [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: 01 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: 01 07 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [10:08:58]RasterBufferAndPrint [10:08:58]line Счет N : (1)979652 [10:08:58]line ИНН: 02508201610067 [10:08:58]line Контрольно-Кассовый Чек [10:08:58]line ПРОДАЖА [10:08:58]line ТРК (МРК, ГНК) : 21 [10:08:58]line Товар: 2710194210 [10:08:58]line ДТ-К-5 [10:08:58]line 13.720 * 72.90 [10:08:58]line = 1000.19 [10:08:58]line НДС 12% НСП 1% [10:08:58]line > о реализуемом товаре [10:08:58]line ОКРУГЛЕНИЕ: -0.19 [10:08:58]line ИТОГО: 1000.00 [10:08:58]line Внесено: 1000.00 [10:08:58]line СДАЧА: 0.00 [10:08:58]line НСП 1% : 8.85 [10:08:58]line НДС 12% : 106.21 [10:08:58]line Наличными: 1000.00 [10:08:58]line Безнал.: 0.00 [10:08:58]line Место: АЗС № 68 "Партнер Нефть" [10:08:58]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:08:58]line СНО: Общий режим [10:08:58]line Чек 66 04.06.2024 10:08 [10:08:58]line Смена: 368 ФФД: 1.0 [10:08:58]line ЗНМ: 0300000035 [10:08:58]line РНМ: 0000000000092720 [10:08:58]line Версия ККМ: 001 [10:08:58]line ФМ: 0000000000875057 [10:08:58]line ФД: 148727 [10:08:58]line ФПД: 14073132031812 [10:08:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100856&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148727&fm=14073132031812&tin=02508201610067®Number=0000000000092720&sum=100000 [10:08:58]written 0, free lines is 4095 [10:08:58]OFD Sender: Processing packet 148727 [packets to send 100, broken 99] [10:08:58]ProducePacketName [10:08:58]name=ofd_packets/00148727 [10:08:58]OFD Sender: To server: pG, [10:08:58]CommunicateWithHost lk.salyk.kg:30040 [10:08:58]ConnectInit lk.salyk.kg [10:08:58]Connected sock=10 [10:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 4E 07 04 01 19 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 B8 E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 44 02 00 35 04 06 00 0C CC A8 09 1F 44 F2 7E AF E9 73 99 9D 8F [10:08:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 76 F3 47 00 43 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 44 02 00 F4 03 04 00 DD 8E 5E 66 B6 04 01 00 00 22 A2 3A AA EA A8 1F 2F [10:08:59]CommunicateWithHost err = 0 [10:08:59]CheckOFDResponse [10:08:59]1017 (14) - 77093643461234 [10:08:59]1041 (16) - 0000000000875057 [10:08:59]1040 (4) - 148727 [10:08:59]1012 (4) - 04.06.2024 03:49 [10:08:59]1206 (1) - 0 [10:08:59]OFD Sender: Remove packet 148727 [10:08:59]ProducePacketName [10:08:59]name=ofd_packets/00148727 [10:08:59]NVStorageDeleteData [10:08:59]Write to MH i2c: 01 00 00 A6 00 A6 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 07 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 A2 0C 5B [10:08:59]RasterBufferAndPrint [10:08:59]line [10:08:59]line [10:08:59]line [10:08:59]line [10:08:59]line [10:08:59]written 0, free lines is 3257 [10:08:59]MH_Cut [10:08:59]Write to MH i2c: D1 01 00 AD 00 01 7F [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: D1 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: D1 01 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: D1 01 00 AD 00 00 7E [10:08:59]Write to MH i2c: 01 00 00 AE 00 AE [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]OFD Sender: No OFD packet to send [10:09:00]*** Cut start [10:09:00]*** Partial cut [10:09:00]*** CUTSNS_PIN = 1 [10:09:00]*** CUTSNS_PIN = 0 [10:09:00]*** Brake cut motor [10:09:00]Read from MH i2c: 01 [10:09:00]MH_I2C_Read... [10:09:00]*** Stop cut motor [10:09:00]*** Cut end [10:09:00]Read from MH i2c: 01 07 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [10:09:00]process_action close_receipt done [10:09:00]requested_data is exist [10:09:00]produce_requested_data [10:09:00]requested_item fm.sn is exist - process it [10:09:00]wFMCommunicate request_size=4 [10:09:00]MH_SAM_APDU [10:09:00]CAPDU: 80 11 00 00 [10:09:00]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 17 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7C [10:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:09:01]wFMCommunicate OK [10:09:01]requested_item fd.num is exist - process it [10:09:01]SAM_PROTO_GetFieldsCounters [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 13 00 00 [10:09:01]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 62 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F7 44 02 00 0E 04 04 00 70 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 BC [10:09:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F7 44 02 00 0E 04 04 00 70 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 [10:09:01]wFMCommunicate OK [10:09:01]SAM_PROTO_GetFieldsCounters done [10:09:01]requested_item shift.num is exist - process it [10:09:01]requested_item shift.opened is exist - process it [10:09:01]req_shift_opened [10:09:01]FM_GetShiftState [10:09:01]SAM_PROTO_GetShiftState [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 13 01 00 [10:09:01]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 0E 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F1 [10:09:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:09:01]wFMCommunicate OK [10:09:01]SAM_PROTO_GetShiftState done [10:09:01]FM_GetShiftState done [10:09:01]req_shift_opened done [10:09:01]requested_item shift.open_date is exist - process it [10:09:01]req_shift_open_date [10:09:01]req_shift_open_date done [10:09:01]produce_requested_data done [10:09:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148727,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:09:01]process_action_free close_receipt [10:09:01]json_value_free [10:09:01]json_value_free done [10:09:01]process_json_proto returns [10:09:01]Send response to host [10:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148727,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:09:01]free response buf [10:09:01]execute_script done [10:09:01]execute_script returns [10:09:01]free content buf [10:09:01]Sock 9.Close socket [10:09:01]Sock 9.Thread stoped [10:09:01]accept exits with 6 [10:09:01]New connection [10:09:01]New thread 3067379044 created [10:09:01]Thread 3067235684 joined [10:09:01]Waiting for new connection... [10:09:01] Sock 6.Parse request [10:09:01]Sock 6.Check first char [10:09:01]Sock 6.First char is OK [10:09:01]request: POST /json_proto HTTP/1.0 [10:09:01]Method: POST [10:09:01]URL: /json_proto [10:09:01]Method is POST - this is cgi request [10:09:01]url: /json_proto [10:09:01]query_string will be loaded in cgi processing [10:09:01]execute_cgi json_proto POST (null) [10:09:01]execute_cgi path=json_proto method=POST [10:09:01]POST find Content-Length [10:09:01]Host: 172.17.38.4:8080 [10:09:01]Content-Length: 677 [10:09:01]Content-Type: application/json [10:09:01] [10:09:01]POST finish read [10:09:01]Found Content-Length = 677 [10:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.430, "sum" : 430.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 430.00, "total" : 430.00, "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:01]execute_script... [10:09: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)979653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.430, "sum" : 430.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 430.00, "total" : 430.00, "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:01]POST & json_proto [10:09:01]process_json_proto [10:09:01]json parsed OK: [10:09:01]protocol is kg_v1.0 [10:09:01]action value=close_receipt [10:09:01]process_action close_receipt [10:09:01]cmd_close_receipt [10:09:01]MH_GetDate [10:09:01]Write to MH i2c: F0 00 00 B2 00 A1 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: F0 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: F0 09 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: F0 09 00 B2 00 00 BD E7 5E 66 CC 51 87 64 1A [10:09:01]GetLastDocTimeStamp 1717495736 [10:09:01]current date 1717495741 [10:09:01]FM_GetShiftState [10:09:01]SAM_PROTO_GetShiftState [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 13 01 00 [10:09:01]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 0E 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F3 [10:09:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:09:01]wFMCommunicate OK [10:09:01]SAM_PROTO_GetShiftState done [10:09:01]FM_GetShiftState done [10:09:01]opened in 1717460629 [10:09:01]opened+sec_in_day 1717547029 [10:09:01]quantity*price = 43016 [10:09:01]sum+1 = 43018 [10:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 430.00 Внесено: 430.00 СДАЧА: 0.00 НСП 1% : 3.81 НДС 12% : 45.68 Наличными: 430.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 67 04.06.2024 10:09 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148728 ФПД: 98035957060148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100902&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148728&fm=98035957060148&tin=02508201610067®Number=0000000000092720&sum=43000 [10:09:03]StoreToDocumentArchive [10:09:03]shift 368 fd 148728 [10:09:03]save to /storage/0368/doc_00148728 [10:09:03]save last doc name /storage/0368/doc_00148728 to /storage/kkm_last_doc_name [10:09:03]save OK [10:09:03]Clear old archive folders... [10:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:03]tlvbuf is 00F9F7D0 [10:09:03]SAM_PROTO_ClearQueue [10:09:03]wFMCommunicate request_size=4 [10:09:03]MH_SAM_APDU [10:09:03]CAPDU: 80 09 00 00 [10:09:03]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:03]Read from MH i2c: E2 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [10:09:03]RAPDU: 90 00 [10:09:03]wFMCommunicate OK [10:09:03]SAM_PROTO_ClearQueue done [10:09:03]KKMCreateOFDPacket [10:09:03]OFDProtocolAddRootSTLVToBuf [10:09:03]FM_MakeSignedData [10:09:03]FM_MakeSignedData [10:09:03]SAM_PROTO_SignData [10:09:03]wFMCommunicate request_size=4 [10:09:03]MH_SAM_APDU [10:09:03]CAPDU: 80 0D 01 02 [10:09:03]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:03]Read from MH i2c: E2 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [10:09:03]RAPDU: 90 00 [10:09:03]wFMCommunicate OK [10:09:03]wFMCommunicate request_size=255 [10:09:03]MH_SAM_APDU [10:09:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 BE E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 44 02 00 35 04 06 00 59 [10:09:03]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 BE E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 44 02 00 35 04 06 00 59 00 00 BC [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:04]Read from MH i2c: E2 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 03 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [10:09:04]RAPDU: 90 00 [10:09:04]wFMCommunicate OK [10:09:04]wFMCommunicate request_size=10 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 0D 02 02 05 29 C6 65 52 34 [10:09:04]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 29 C6 65 52 34 00 00 21 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:04]Read from MH i2c: E2 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 03 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [10:09:04]RAPDU: 90 00 [10:09:04]wFMCommunicate OK [10:09:04]wFMCommunicate request_size=4 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 0D 03 02 [10:09:04]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:04]Read from MH i2c: E2 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 0B 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 0B 00 C4 00 00 EC 41 35 DB 4F 65 6A 73 90 00 0E [10:09:04]RAPDU: EC 41 35 DB 4F 65 6A 73 90 00 [10:09:04]wFMCommunicate OK [10:09:04]SAM_PROTO_SignData done [10:09:04]FM_MakeSignedData done [10:09:04]CreateOFDProtocolMessage [10:09:04]wFMCommunicate request_size=4 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 11 00 00 [10:09:04]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:04]Read from MH i2c: E2 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 17 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 92 [10:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:09:04]wFMCommunicate OK [10:09:04]CreateOFDProtocolMessage done [10:09:04]OFDSenderStorePacket 148728 [10:09:04]StoreOFDPacket docnum=148728 [10:09:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E3 E8 07 01 AA 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 BE E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 44 02 00 35 04 06 00 59 29 C6 65 52 34 EC 41 35 DB 4F 65 6A 73 [10:09:04]CheckFolder [10:09:04]dirname=/storage/ofd_packets [10:09:04]CheckFolder done [10:09:04]ProducePacketName [10:09:04]name=ofd_packets/00148728 [10:09:04]NVStorageSaveData ofd_packets/00148728 [10:09:04]File name is /storage/ofd_packets/00148728 [10:09:04]Write 301 bytes [10:09:04]NVStorageSaveData done [10:09:04]OFDSenderStorePacket done [10:09:04]KKMCreateOFDPacket done [10:09:04]NVStorageSaveData kkm_last_timestamp [10:09:04]File name is /storage/kkm_last_timestamp [10:09:04]Write 4 bytes [10:09:04]NVStorageSaveData done [10:09:04]ExternCall_PrintAddStr [10:09:04]wPrintStart [10:09:04]Write to MH i2c: 01 00 00 C6 00 C6 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [10:09:04]RasterBufferAndPrint [10:09:04]line Счет N : (1)979653 [10:09:04]line ИНН: 02508201610067 [10:09:04]line Контрольно-Кассовый Чек [10:09:04]line ПРОДАЖА [10:09:04]line ТРК (МРК, ГНК) : 31 [10:09:04]line Товар: 2710124130 [10:09:04]line Аи-92-К-5 [10:09:04]line 6.430 * 66.90 [10:09:04]line = 430.17 [10:09:04]line НДС 12% НСП 1% [10:09:04]line > о реализуемом товаре [10:09:04]line ОКРУГЛЕНИЕ: -0.17 [10:09:04]line ИТОГО: 430.00 [10:09:04]line Внесено: 430.00 [10:09:04]line СДАЧА: 0.00 [10:09:04]line НСП 1% : 3.81 [10:09:04]line НДС 12% : 45.68 [10:09:04]line Наличными: 430.00 [10:09:04]line Безнал.: 0.00 [10:09:04]line Место: АЗС № 68 "Партнер Нефть" [10:09:04]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:09:04]line СНО: Общий режим [10:09:04]line Чек 67 04.06.2024 10:09 [10:09:04]line Смена: 368 ФФД: 1.0 [10:09:04]line ЗНМ: 0300000035 [10:09:04]line РНМ: 0000000000092720 [10:09:04]line Версия ККМ: 001 [10:09:04]line ФМ: 0000000000875057 [10:09:04]line ФД: 148728 [10:09:04]line ФПД: 98035957060148 [10:09:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T100902&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148728&fm=98035957060148&tin=02508201610067®Number=0000000000092720&sum=43000 [10:09:04]OFD Sender: Processing packet 148728 [packets to send 100, broken 99] [10:09:04]ProducePacketName [10:09:04]name=ofd_packets/00148728 [10:09:04]OFD Sender: To server: pG, [10:09:04]CommunicateWithHost lk.salyk.kg:30040 [10:09:04]ConnectInit lk.salyk.kg [10:09:04]written 0, free lines is 4095 [10:09:04]Connected sock=10 [10:09:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E3 E8 07 01 AA 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 BE E7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 44 02 00 35 04 06 00 59 29 C6 65 52 34 EC 41 35 DB 4F 65 6A 73 [10:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 51 7D 47 00 38 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 38 37 35 30 35 37 10 04 04 00 F8 44 02 00 F4 03 04 00 E3 8E 5E 66 B6 04 01 00 00 D8 DE 4E 7D F7 75 A5 37 [10:09:04]CommunicateWithHost err = 0 [10:09:04]CheckOFDResponse [10:09:04]1017 (14) - 77093643461234 [10:09:04]1041 (16) - 0000000000875057 [10:09:04]1040 (4) - 148728 [10:09:04]1012 (4) - 04.06.2024 03:49 [10:09:04]1206 (1) - 0 [10:09:04]OFD Sender: Remove packet 148728 [10:09:04]ProducePacketName [10:09:04]name=ofd_packets/00148728 [10:09:04]NVStorageDeleteData [10:09:04]Write to MH i2c: 01 00 00 F1 00 F1 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 AF 0C B3 [10:09:04]RasterBufferAndPrint [10:09:04]line [10:09:04]line [10:09:04]line [10:09:04]line [10:09:04]line [10:09:04]written 0, free lines is 3271 [10:09:04]MH_Cut [10:09:04]Write to MH i2c: D1 01 00 F8 00 01 CA [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: D1 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: D1 01 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: D1 01 00 F8 00 00 C9 [10:09:04]Write to MH i2c: 01 00 00 F9 00 F9 [10:09:05]Write i2c OK [10:09:05]MH_I2C_Read... [10:09:05]OFD Sender: No OFD packet to send [10:09:06]*** Cut start [10:09:06]*** Partial cut [10:09:06]*** CUTSNS_PIN = 1 [10:09:06]*** CUTSNS_PIN = 0 [10:09:06]*** Brake cut motor [10:09:06]Read from MH i2c: 01 [10:09:06]MH_I2C_Read... [10:09:06]*** Stop cut motor [10:09:06]*** Cut end [10:09:06]Read from MH i2c: 01 07 00 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [10:09:06]process_action close_receipt done [10:09:06]requested_data is exist [10:09:06]produce_requested_data [10:09:06]requested_item fm.sn is exist - process it [10:09:06]wFMCommunicate request_size=4 [10:09:06]MH_SAM_APDU [10:09:06]CAPDU: 80 11 00 00 [10:09:06]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [10:09:06]Write i2c OK [10:09:06]MH_I2C_Read... [10:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:06]Read from MH i2c: E2 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: E2 17 00 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C7 [10:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:09:06]wFMCommunicate OK [10:09:06]requested_item fd.num is exist - process it [10:09:06]SAM_PROTO_GetFieldsCounters [10:09:06]wFMCommunicate request_size=4 [10:09:06]MH_SAM_APDU [10:09:06]CAPDU: 80 13 00 00 [10:09:06]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [10:09:06]Write i2c OK [10:09:06]MH_I2C_Read... [10:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:07]Read from MH i2c: E2 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 62 00 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F8 44 02 00 0E 04 04 00 70 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 0B [10:09:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F8 44 02 00 0E 04 04 00 70 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 [10:09:07]wFMCommunicate OK [10:09:07]SAM_PROTO_GetFieldsCounters done [10:09:07]requested_item shift.num is exist - process it [10:09:07]requested_item shift.opened is exist - process it [10:09:07]req_shift_opened [10:09:07]FM_GetShiftState [10:09:07]SAM_PROTO_GetShiftState [10:09:07]wFMCommunicate request_size=4 [10:09:07]MH_SAM_APDU [10:09:07]CAPDU: 80 13 01 00 [10:09:07]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [10:09:07]Write i2c OK [10:09:07]MH_I2C_Read... [10:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:07]Read from MH i2c: E2 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 0E 00 [10:09:07]MH_I2C_Read... [10:09:07]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3C [10:09:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:09:07]wFMCommunicate OK [10:09:07]SAM_PROTO_GetShiftState done [10:09:07]FM_GetShiftState done [10:09:07]req_shift_opened done [10:09:07]requested_item shift.open_date is exist - process it [10:09:07]req_shift_open_date [10:09:07]req_shift_open_date done [10:09:07]produce_requested_data done [10:09:07]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148728,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:09:07]process_action_free close_receipt [10:09:07]json_value_free [10:09:07]json_value_free done [10:09:07]process_json_proto returns [10:09:07]Send response to host [10:09:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148728,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:09:07]free response buf [10:09:07]execute_script done [10:09:07]execute_script returns [10:09:07]free content buf [10:09:07]Sock 6.Close socket [10:09:07]Sock 6.Thread stoped [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:22]accept exits with 9 [10:11:22]New connection [10:11:22]New thread 3067235684 created [10:11:22]Thread 3067379044 joined [10:11:22]Waiting for new connection... [10:11:22] Sock 9.Parse request [10:11:22]Sock 9.Check first char [10:11:22]Sock 9.First char is OK [10:11:22]request: POST /json_proto HTTP/1.0 [10:11:22]Method: POST [10:11:22]URL: /json_proto [10:11:22]Method is POST - this is cgi request [10:11:22]url: /json_proto [10:11:22]query_string will be loaded in cgi processing [10:11:22]execute_cgi json_proto POST (null) [10:11:22]execute_cgi path=json_proto method=POST [10:11:22]POST find Content-Length [10:11:22]Host: 172.17.38.4:8080 [10:11:22]Content-Length: 1189 [10:11:22]Content-Type: application/json [10:11:22] [10:11:22]POST finish read [10:11:22]Found Content-Length = 1189 [10:11:22]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979654\u000A04.06.2024 09:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32302\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:22]execute_script... [10:11:22]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979654\u000A04.06.2024 09:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32302\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:22]POST & json_proto [10:11:22]process_json_proto [10:11:22]json parsed OK: [10:11:22]protocol is kg_v1.0 [10:11:22]action value=print_text [10:11:22]process_action print_text [10:11:22]cmd_print_text [10:11:22]ExternCall_PrintAddStr [10:11:22]wPrintStart [10:11:22]Write to MH i2c: 01 00 00 FD 00 FD [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 07 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 07 00 FD 00 00 00 00 00 00 FF 0F 12 [10:11:22]RasterBufferAndPrint [10:11:22]line *****ТОВАРНЫЙ ЧЕК***** [10:11:22]line АЗС 68 [10:11:22]line Партнер нефть [10:11:22]line 02508201610067 [10:11:22]line Кассир : Аскаров Н. [10:11:22]line Счет N : (1)979654 [10:11:22]line 04.06.2024 09:52 [10:11:22]line ПРОДАЖА [10:11:22]line ТРК (МРК, ГНК): 12 [10:11:22]line Вид ГСМ : 2710124130 [10:11:22]line Аи-92-К-5 [10:11:22]line 15.000 x 66.90 [10:11:22]line ИТОГ: 1003.50 [10:11:22]line Тип оплаты: Талоны: Топливная Карта [10:11:22]line 32302 [10:11:22]line ______________________ [10:11:22]line (подпись) [10:11:22]written 0, free lines is 4095 [10:11:23]Write to MH i2c: 01 00 00 11 01 12 [10:11:23]Write i2c OK [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: 01 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: 01 07 00 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 11 0E 38 [10:11:23]RasterBufferAndPrint [10:11:23]line [10:11:23]line [10:11:23]line [10:11:23]line [10:11:23]line [10:11:23]written 0, free lines is 3602 [10:11:23]MH_Cut [10:11:23]Write to MH i2c: D1 01 00 18 01 01 EB [10:11:23]Write i2c OK [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: D1 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: D1 01 00 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: D1 01 00 18 01 00 EA [10:11:23]Write to MH i2c: 01 00 00 19 01 1A [10:11:23]Write i2c OK [10:11:23]MH_I2C_Read... [10:11:23]*** Cut start [10:11:23]*** Partial cut [10:11:23]*** CUTSNS_PIN = 1 [10:11:23]*** CUTSNS_PIN = 0 [10:11:24]*** Brake cut motor [10:11:24]Read from MH i2c: 01 [10:11:24]MH_I2C_Read... [10:11:24]*** Stop cut motor [10:11:24]*** Cut end [10:11:24]Read from MH i2c: 01 07 00 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: 01 07 00 19 01 00 00 00 00 00 FF 0F 2F [10:11:24]process_action print_text done [10:11:24]requested_data is exist [10:11:24]produce_requested_data [10:11:24]requested_item fm.sn is exist - process it [10:11:24]wFMCommunicate request_size=4 [10:11:24]MH_SAM_APDU [10:11:24]CAPDU: 80 11 00 00 [10:11:24]Write to MH i2c: E2 08 00 1A 01 80 11 00 00 00 00 00 00 95 [10:11:24]Write i2c OK [10:11:24]MH_I2C_Read... [10:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:24]Read from MH i2c: E2 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 17 00 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 17 00 1A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E8 [10:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:11:24]wFMCommunicate OK [10:11:24]requested_item fd.num is exist - process it [10:11:24]SAM_PROTO_GetFieldsCounters [10:11:24]wFMCommunicate request_size=4 [10:11:24]MH_SAM_APDU [10:11:24]CAPDU: 80 13 00 00 [10:11:24]Write to MH i2c: E2 08 00 1B 01 80 13 00 00 00 00 00 00 98 [10:11:24]Write i2c OK [10:11:24]MH_I2C_Read... [10:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:24]Read from MH i2c: E2 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 62 00 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 62 00 1B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F8 44 02 00 0E 04 04 00 70 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 2C [10:11:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F8 44 02 00 0E 04 04 00 70 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 [10:11:24]wFMCommunicate OK [10:11:24]SAM_PROTO_GetFieldsCounters done [10:11:24]requested_item shift.num is exist - process it [10:11:24]requested_item shift.opened is exist - process it [10:11:24]req_shift_opened [10:11:24]FM_GetShiftState [10:11:24]SAM_PROTO_GetShiftState [10:11:24]wFMCommunicate request_size=4 [10:11:24]MH_SAM_APDU [10:11:24]CAPDU: 80 13 01 00 [10:11:24]Write to MH i2c: E2 08 00 1C 01 80 13 01 00 00 00 00 00 9A [10:11:24]Write i2c OK [10:11:24]MH_I2C_Read... [10:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:24]Read from MH i2c: E2 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 0E 00 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 0E 00 1C 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5D [10:11:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:11:24]wFMCommunicate OK [10:11:24]SAM_PROTO_GetShiftState done [10:11:24]FM_GetShiftState done [10:11:24]req_shift_opened done [10:11:24]requested_item shift.open_date is exist - process it [10:11:24]req_shift_open_date [10:11:24]req_shift_open_date done [10:11:24]produce_requested_data done [10:11:24]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148728,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:11:24]process_action_free print_text [10:11:24]json_value_free [10:11:24]json_value_free done [10:11:24]process_json_proto returns [10:11:24]Send response to host [10:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148728,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:11:24]free response buf [10:11:24]execute_script done [10:11:24]execute_script returns [10:11:24]free content buf [10:11:24]Sock 9.Close socket [10:11:24]Sock 9.Thread stoped [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]accept exits with 7 [10:12:55]New connection [10:12:55]New thread 3067379044 created [10:12:55]Thread 3067235684 joined [10:12:55]Waiting for new connection... [10:12:55] Sock 7.Parse request [10:12:55]Sock 7.Check first char [10:12:55]Sock 7.First char is OK [10:12:55]request: POST /json_proto HTTP/1.0 [10:12:55]Method: POST [10:12:55]URL: /json_proto [10:12:55]Method is POST - this is cgi request [10:12:55]url: /json_proto [10:12:55]query_string will be loaded in cgi processing [10:12:55]execute_cgi json_proto POST (null) [10:12:55]execute_cgi path=json_proto method=POST [10:12:55]POST find Content-Length [10:12:55]Host: 172.17.38.4:8080 [10:12:55]Content-Length: 677 [10:12:55]Content-Type: application/json [10:12:55] [10:12:55]POST finish read [10:12:55]Found Content-Length = 677 [10:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:55]execute_script... [10:12:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:55]POST & json_proto [10:12:55]process_json_proto [10:12:55]json parsed OK: [10:12:55]protocol is kg_v1.0 [10:12:55]action value=close_receipt [10:12:55]process_action close_receipt [10:12:55]cmd_close_receipt [10:12:55]MH_GetDate [10:12:55]Write to MH i2c: F0 00 00 1D 01 0D [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: F0 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: F0 09 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: F0 09 00 1D 01 00 A7 E8 5E 66 CC 51 87 64 71 [10:12:55]GetLastDocTimeStamp 1717495742 [10:12:55]current date 1717495975 [10:12:55]FM_GetShiftState [10:12:55]SAM_PROTO_GetShiftState [10:12:55]wFMCommunicate request_size=4 [10:12:55]MH_SAM_APDU [10:12:55]CAPDU: 80 13 01 00 [10:12:55]Write to MH i2c: E2 08 00 1E 01 80 13 01 00 00 00 00 00 9C [10:12:55]Write i2c OK [10:12:55]MH_I2C_Read... [10:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:55]Read from MH i2c: E2 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 0E 00 [10:12:55]MH_I2C_Read... [10:12:55]Read from MH i2c: E2 0E 00 1E 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5F [10:12:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:12:55]wFMCommunicate OK [10:12:55]SAM_PROTO_GetShiftState done [10:12:55]FM_GetShiftState done [10:12:55]opened in 1717460629 [10:12:55]opened+sec_in_day 1717547029 [10:12:55]quantity*price = 30038 [10:12:55]sum+1 = 30039 [10:12:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 68 04.06.2024 10:12 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148729 ФПД: 241484969295629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T101255&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148729&fm=241484969295629&tin=02508201610067®Number=0000000000092720&sum=30000 [10:12:56]StoreToDocumentArchive [10:12:56]shift 368 fd 148729 [10:12:56]save to /storage/0368/doc_00148729 [10:12:56]save last doc name /storage/0368/doc_00148729 to /storage/kkm_last_doc_name [10:12:56]save OK [10:12:56]Clear old archive folders... [10:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:56]tlvbuf is 00FC1A70 [10:12:56]SAM_PROTO_ClearQueue [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 09 00 00 [10:12:56]Write to MH i2c: E2 08 00 2B 01 80 09 00 00 00 00 00 00 9E [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 2B 01 00 90 00 A0 [10:12:56]RAPDU: 90 00 [10:12:56]wFMCommunicate OK [10:12:56]SAM_PROTO_ClearQueue done [10:12:56]KKMCreateOFDPacket [10:12:56]OFDProtocolAddRootSTLVToBuf [10:12:56]FM_MakeSignedData [10:12:56]FM_MakeSignedData [10:12:56]SAM_PROTO_SignData [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 0D 01 02 [10:12:56]Write to MH i2c: E2 08 00 2C 01 80 0D 01 02 00 00 00 00 A6 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 03 00 2C 01 00 90 00 A1 [10:12:56]RAPDU: 90 00 [10:12:56]wFMCommunicate OK [10:12:56]wFMCommunicate request_size=255 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 A7 E8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 44 02 00 35 04 06 00 DB [10:12:56]Write to MH i2c: E2 02 01 2D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 A7 E8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 44 02 00 35 04 06 00 DB 00 00 46 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 03 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 03 00 2D 01 00 90 00 A2 [10:12:57]RAPDU: 90 00 [10:12:57]wFMCommunicate OK [10:12:57]wFMCommunicate request_size=10 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 0D 02 02 05 A1 19 D0 3F 0D [10:12:57]Write to MH i2c: E2 0D 00 2E 01 80 0D 02 02 05 00 A1 19 D0 3F 0D 00 00 89 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 03 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 03 00 2E 01 00 90 00 A3 [10:12:57]RAPDU: 90 00 [10:12:57]wFMCommunicate OK [10:12:57]wFMCommunicate request_size=4 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 0D 03 02 [10:12:57]Write to MH i2c: E2 08 00 2F 01 80 0D 03 02 00 00 00 00 AB [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 0B 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 0B 00 2F 01 00 E7 79 18 1A 16 F5 28 4F 90 00 C0 [10:12:57]RAPDU: E7 79 18 1A 16 F5 28 4F 90 00 [10:12:57]wFMCommunicate OK [10:12:57]SAM_PROTO_SignData done [10:12:57]FM_MakeSignedData done [10:12:57]CreateOFDProtocolMessage [10:12:57]wFMCommunicate request_size=4 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 11 00 00 [10:12:57]Write to MH i2c: E2 08 00 30 01 80 11 00 00 00 00 00 00 AB [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 17 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 17 00 30 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FE [10:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:12:57]wFMCommunicate OK [10:12:57]CreateOFDProtocolMessage done [10:12:57]OFDSenderStorePacket 148729 [10:12:57]StoreOFDPacket docnum=148729 [10:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CF 83 07 01 07 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 A7 E8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 44 02 00 35 04 06 00 DB A1 19 D0 3F 0D E7 79 18 1A 16 F5 28 4F [10:12:57]CheckFolder [10:12:57]dirname=/storage/ofd_packets [10:12:57]CheckFolder done [10:12:57]ProducePacketName [10:12:57]name=ofd_packets/00148729 [10:12:57]NVStorageSaveData ofd_packets/00148729 [10:12:57]File name is /storage/ofd_packets/00148729 [10:12:57]Write 301 bytes [10:12:57]NVStorageSaveData done [10:12:57]OFDSenderStorePacket done [10:12:57]KKMCreateOFDPacket done [10:12:57]NVStorageSaveData kkm_last_timestamp [10:12:57]File name is /storage/kkm_last_timestamp [10:12:57]Write 4 bytes [10:12:57]NVStorageSaveData done [10:12:57]ExternCall_PrintAddStr [10:12:57]wPrintStart [10:12:57]Write to MH i2c: 01 00 00 31 01 32 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 07 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: 01 07 00 31 01 00 00 00 00 00 FF 0F 47 [10:12:57]RasterBufferAndPrint [10:12:57]line Счет N : (1)979656 [10:12:57]line ИНН: 02508201610067 [10:12:57]line Контрольно-Кассовый Чек [10:12:57]line ПРОДАЖА [10:12:57]line ТРК (МРК, ГНК) : 41 [10:12:57]line Товар: 2710124130 [10:12:57]line Аи-92-К-5 [10:12:57]line 4.490 * 66.90 [10:12:57]line = 300.38 [10:12:57]line НДС 12% НСП 1% [10:12:57]line > о реализуемом товаре [10:12:57]line ОКРУГЛЕНИЕ: -0.38 [10:12:57]line ИТОГО: 300.00 [10:12:57]line Внесено: 300.00 [10:12:57]line СДАЧА: 0.00 [10:12:57]line НСП 1% : 2.66 [10:12:57]line НДС 12% : 31.90 [10:12:57]line Наличными: 300.00 [10:12:57]line Безнал.: 0.00 [10:12:57]line Место: АЗС № 68 "Партнер Нефть" [10:12:57]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:12:57]line СНО: Общий режим [10:12:57]line Чек 68 04.06.2024 10:12 [10:12:57]line Смена: 368 ФФД: 1.0 [10:12:57]line ЗНМ: 0300000035 [10:12:57]line РНМ: 0000000000092720 [10:12:57]line Версия ККМ: 001 [10:12:57]line ФМ: 0000000000875057 [10:12:57]line ФД: 148729 [10:12:57]line ФПД: 241484969295629 [10:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T101255&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148729&fm=241484969295629&tin=02508201610067®Number=0000000000092720&sum=30000 [10:12:57]OFD Sender: Processing packet 148729 [packets to send 100, broken 99] [10:12:57]ProducePacketName [10:12:57]name=ofd_packets/00148729 [10:12:57]OFD Sender: To server: pG, [10:12:57]CommunicateWithHost lk.salyk.kg:30040 [10:12:57]ConnectInit lk.salyk.kg [10:12:57]written 0, free lines is 4095 [10:12:57]Connected sock=10 [10:12:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CF 83 07 01 07 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 A7 E8 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 44 02 00 35 04 06 00 DB A1 19 D0 3F 0D E7 79 18 1A 16 F5 28 4F [10:12:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DC F9 47 00 AF 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 38 37 35 30 35 37 10 04 04 00 F9 44 02 00 F4 03 04 00 CC 8F 5E 66 B6 04 01 00 00 DA 14 D2 44 EC 9B F2 61 [10:12:57]CommunicateWithHost err = 0 [10:12:57]CheckOFDResponse [10:12:57]1017 (14) - 77093643461234 [10:12:57]1041 (16) - 0000000000875057 [10:12:57]1040 (4) - 148729 [10:12:57]1012 (4) - 04.06.2024 03:53 [10:12:57]1206 (1) - 0 [10:12:57]OFD Sender: Remove packet 148729 [10:12:57]ProducePacketName [10:12:57]name=ofd_packets/00148729 [10:12:57]NVStorageDeleteData [10:12:58]Write to MH i2c: 01 00 00 5C 01 5D [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: 01 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: 01 07 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 73 0C E3 [10:12:58]RasterBufferAndPrint [10:12:58]line [10:12:58]line [10:12:58]line [10:12:58]line [10:12:58]line [10:12:58]written 0, free lines is 3189 [10:12:58]MH_Cut [10:12:58]Write to MH i2c: D1 01 00 63 01 01 36 [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: D1 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: D1 01 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: D1 01 00 63 01 00 35 [10:12:58]Write to MH i2c: 01 00 00 64 01 65 [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]OFD Sender: No OFD packet to send [10:12:59]*** Cut start [10:12:59]*** Partial cut [10:12:59]*** CUTSNS_PIN = 1 [10:12:59]*** CUTSNS_PIN = 0 [10:12:59]*** Brake cut motor [10:12:59]Read from MH i2c: 01 [10:12:59]MH_I2C_Read... [10:12:59]*** Stop cut motor [10:12:59]*** Cut end [10:12:59]Read from MH i2c: 01 07 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 07 00 64 01 00 00 00 00 00 FF 0F 7A [10:12:59]process_action close_receipt done [10:12:59]requested_data is exist [10:12:59]produce_requested_data [10:12:59]requested_item fm.sn is exist - process it [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 11 00 00 [10:12:59]Write to MH i2c: E2 08 00 65 01 80 11 00 00 00 00 00 00 E0 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 17 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 17 00 65 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 33 [10:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:12:59]wFMCommunicate OK [10:12:59]requested_item fd.num is exist - process it [10:12:59]SAM_PROTO_GetFieldsCounters [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 13 00 00 [10:12:59]Write to MH i2c: E2 08 00 66 01 80 13 00 00 00 00 00 00 E3 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 62 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 62 00 66 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F9 44 02 00 0E 04 04 00 70 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 7B [10:13:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F9 44 02 00 0E 04 04 00 70 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 [10:13:00]wFMCommunicate OK [10:13:00]SAM_PROTO_GetFieldsCounters done [10:13:00]requested_item shift.num is exist - process it [10:13:00]requested_item shift.opened is exist - process it [10:13:00]req_shift_opened [10:13:00]FM_GetShiftState [10:13:00]SAM_PROTO_GetShiftState [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 13 01 00 [10:13:00]Write to MH i2c: E2 08 00 67 01 80 13 01 00 00 00 00 00 E5 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 0E 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 0E 00 67 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A8 [10:13:00]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:13:00]wFMCommunicate OK [10:13:00]SAM_PROTO_GetShiftState done [10:13:00]FM_GetShiftState done [10:13:00]req_shift_opened done [10:13:00]requested_item shift.open_date is exist - process it [10:13:00]req_shift_open_date [10:13:00]req_shift_open_date done [10:13:00]produce_requested_data done [10:13:00]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148729,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:13:00]process_action_free close_receipt [10:13:00]json_value_free [10:13:00]json_value_free done [10:13:00]process_json_proto returns [10:13:00]Send response to host [10:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148729,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:13:00]free response buf [10:13:00]execute_script done [10:13:00]execute_script returns [10:13:00]free content buf [10:13:00]Sock 7.Close socket [10:13:00]Sock 7.Thread stoped [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:54]accept exits with 9 [10:14:54]New connection [10:14:54]New thread 3067235684 created [10:14:54]Thread 3067379044 joined [10:14:54]Waiting for new connection... [10:14:54] Sock 9.Parse request [10:14:54]Sock 9.Check first char [10:14:54]Sock 9.First char is OK [10:14:54]request: POST /json_proto HTTP/1.0 [10:14:54]Method: POST [10:14:54]URL: /json_proto [10:14:54]Method is POST - this is cgi request [10:14:54]url: /json_proto [10:14:54]query_string will be loaded in cgi processing [10:14:54]execute_cgi json_proto POST (null) [10:14:54]execute_cgi path=json_proto method=POST [10:14:54]POST find Content-Length [10:14:54]Host: 172.17.38.4:8080 [10:14:54]Content-Length: 977 [10:14:54]Content-Type: application/json [10:14:54] [10:14:54]POST finish read [10:14:54]Found Content-Length = 977 [10:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 55.640, "sum" : 4000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.64 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:54]execute_script... [10:14:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 55.640, "sum" : 4000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.64 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:54]POST & json_proto [10:14:54]process_json_proto [10:14:54]json parsed OK: [10:14:54]protocol is kg_v1.0 [10:14:54]action value=close_receipt [10:14:54]process_action close_receipt [10:14:54]cmd_close_receipt [10:14:54]MH_GetDate [10:14:54]Write to MH i2c: F0 00 00 68 01 58 [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: F0 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: F0 09 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: F0 09 00 68 01 00 1E E9 5E 66 CC 51 87 64 34 [10:14:54]GetLastDocTimeStamp 1717495975 [10:14:54]current date 1717496094 [10:14:54]FM_GetShiftState [10:14:54]SAM_PROTO_GetShiftState [10:14:54]wFMCommunicate request_size=4 [10:14:54]MH_SAM_APDU [10:14:54]CAPDU: 80 13 01 00 [10:14:54]Write to MH i2c: E2 08 00 69 01 80 13 01 00 00 00 00 00 E7 [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:54]Read from MH i2c: E2 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 0E 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 0E 00 69 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AA [10:14:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:14:54]wFMCommunicate OK [10:14:54]SAM_PROTO_GetShiftState done [10:14:54]FM_GetShiftState done [10:14:54]opened in 1717460629 [10:14:54]opened+sec_in_day 1717547029 [10:14:54]quantity*price = 400051 [10:14:54]sum+1 = 400053 [10:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 69 04.06.2024 10:14 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа ДТ номер 68 сэкономлено 55.64 сом ФМ: 0000000000875057 ФД: 148730 ФПД: 33263967333382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T101454&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148730&fm=33263967333382&tin=02508201610067®Number=0000000000092720&sum=400000 [10:14:55]StoreToDocumentArchive [10:14:55]shift 368 fd 148730 [10:14:55]save to /storage/0368/doc_00148730 [10:14:55]save last doc name /storage/0368/doc_00148730 to /storage/kkm_last_doc_name [10:14:55]save OK [10:14:55]Clear old archive folders... [10:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:14:55]tlvbuf is 00F0EFD0 [10:14:55]SAM_PROTO_ClearQueue [10:14:55]wFMCommunicate request_size=4 [10:14:55]MH_SAM_APDU [10:14:55]CAPDU: 80 09 00 00 [10:14:55]Write to MH i2c: E2 08 00 76 01 80 09 00 00 00 00 00 00 E9 [10:14:55]Write i2c OK [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: E2 [10:14:55]MH_I2C_Read... [10:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:55]Read from MH i2c: E2 03 00 [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: E2 03 00 76 01 00 90 00 EB [10:14:55]RAPDU: 90 00 [10:14:55]wFMCommunicate OK [10:14:55]SAM_PROTO_ClearQueue done [10:14:55]KKMCreateOFDPacket [10:14:55]OFDProtocolAddRootSTLVToBuf [10:14:55]FM_MakeSignedData [10:14:55]FM_MakeSignedData [10:14:55]SAM_PROTO_SignData [10:14:55]wFMCommunicate request_size=4 [10:14:55]MH_SAM_APDU [10:14:55]CAPDU: 80 0D 01 02 [10:14:55]Write to MH i2c: E2 08 00 77 01 80 0D 01 02 00 00 00 00 F1 [10:14:55]Write i2c OK [10:14:55]MH_I2C_Read... [10:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:55]Read from MH i2c: E2 [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: E2 03 00 [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: E2 03 00 77 01 00 90 00 EC [10:14:55]RAPDU: 90 00 [10:14:55]wFMCommunicate OK [10:14:55]wFMCommunicate request_size=255 [10:14:55]MH_SAM_APDU [10:14:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1E E9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 44 02 00 35 04 06 00 1E 40 DE F4 [10:14:55]Write to MH i2c: E2 02 01 78 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1E E9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 44 02 00 35 04 06 00 1E 40 DE F4 00 00 2A [10:14:55]Write i2c OK [10:14:55]MH_I2C_Read... [10:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:55]Read from MH i2c: E2 [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: E2 03 00 [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: E2 03 00 78 01 00 90 00 ED [10:14:55]RAPDU: 90 00 [10:14:55]wFMCommunicate OK [10:14:55]wFMCommunicate request_size=7 [10:14:55]MH_SAM_APDU [10:14:55]CAPDU: 80 0D 02 02 02 EC 06 [10:14:55]Write to MH i2c: E2 0A 00 79 01 80 0D 02 02 02 00 EC 06 00 00 EA [10:14:55]Write i2c OK [10:14:55]MH_I2C_Read... [10:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:55]Read from MH i2c: E2 [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: E2 03 00 [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: E2 03 00 79 01 00 90 00 EE [10:14:55]RAPDU: 90 00 [10:14:55]wFMCommunicate OK [10:14:55]wFMCommunicate request_size=4 [10:14:55]MH_SAM_APDU [10:14:55]CAPDU: 80 0D 03 02 [10:14:55]Write to MH i2c: E2 08 00 7A 01 80 0D 03 02 00 00 00 00 F6 [10:14:55]Write i2c OK [10:14:55]MH_I2C_Read... [10:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:55]Read from MH i2c: E2 [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: E2 0B 00 [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: E2 0B 00 7A 01 00 D3 45 3C 26 91 80 97 96 90 00 AF [10:14:55]RAPDU: D3 45 3C 26 91 80 97 96 90 00 [10:14:55]wFMCommunicate OK [10:14:55]SAM_PROTO_SignData done [10:14:55]FM_MakeSignedData done [10:14:55]CreateOFDProtocolMessage [10:14:55]wFMCommunicate request_size=4 [10:14:55]MH_SAM_APDU [10:14:55]CAPDU: 80 11 00 00 [10:14:55]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [10:14:55]Write i2c OK [10:14:55]MH_I2C_Read... [10:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:56]Read from MH i2c: E2 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 17 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 17 00 7B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 49 [10:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:14:56]wFMCommunicate OK [10:14:56]CreateOFDProtocolMessage done [10:14:56]OFDSenderStorePacket 148730 [10:14:56]StoreOFDPacket docnum=148730 [10:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 AF 73 04 01 CD 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1E E9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 44 02 00 35 04 06 00 1E 40 DE F4 EC 06 D3 45 3C 26 91 80 97 96 [10:14:56]CheckFolder [10:14:56]dirname=/storage/ofd_packets [10:14:56]CheckFolder done [10:14:56]ProducePacketName [10:14:56]name=ofd_packets/00148730 [10:14:56]NVStorageSaveData ofd_packets/00148730 [10:14:56]File name is /storage/ofd_packets/00148730 [10:14:56]Write 298 bytes [10:14:56]NVStorageSaveData done [10:14:56]OFDSenderStorePacket done [10:14:56]KKMCreateOFDPacket done [10:14:56]NVStorageSaveData kkm_last_timestamp [10:14:56]File name is /storage/kkm_last_timestamp [10:14:56]Write 4 bytes [10:14:56]NVStorageSaveData done [10:14:56]ExternCall_PrintAddStr [10:14:56]wPrintStart [10:14:56]Write to MH i2c: 01 00 00 7C 01 7D [10:14:56]Write i2c OK [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: 01 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: 01 07 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: 01 07 00 7C 01 00 00 00 00 00 FF 0F 92 [10:14:56]RasterBufferAndPrint [10:14:56]line Счет N : (1)979655 [10:14:56]line ИНН: 02508201610067 [10:14:56]line Контрольно-Кассовый Чек [10:14:56]line ПРОДАЖА [10:14:56]line ТРК (МРК, ГНК) : 51 [10:14:56]line Товар: 2710194210 [10:14:56]line ДТ-К-5 [10:14:56]line 55.640 * 71.90 [10:14:56]line = 4000.52 [10:14:56]line НДС 12% НСП 1% [10:14:56]line > о реализуемом товаре [10:14:56]line ОКРУГЛЕНИЕ: -0.52 [10:14:56]line ИТОГО: 4000.00 [10:14:56]line Внесено: 4000.00 [10:14:56]line СДАЧА: 0.00 [10:14:56]line НСП 1% : 35.40 [10:14:56]line НДС 12% : 424.83 [10:14:56]line Наличными: 4000.00 [10:14:56]line Безнал.: 0.00 [10:14:56]line Место: АЗС № 68 "Партнер Нефть" [10:14:56]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:14:56]line СНО: Общий режим [10:14:56]line Чек 69 04.06.2024 10:14 [10:14:56]line Смена: 368 ФФД: 1.0 [10:14:56]line ЗНМ: 0300000035 [10:14:56]line РНМ: 0000000000092720 [10:14:56]line Версия ККМ: 001 [10:14:56]line [10:14:56]line Дисконтная программа [10:14:56]line ДТ [10:14:56]line номер 68 [10:14:56]line сэкономлено 55.64 сом [10:14:56]line ФМ: 0000000000875057 [10:14:56]line ФД: 148730 [10:14:56]line ФПД: 33263967333382 [10:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T101454&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148730&fm=33263967333382&tin=02508201610067®Number=0000000000092720&sum=400000 [10:14:56]OFD Sender: Processing packet 148730 [packets to send 100, broken 99] [10:14:56]ProducePacketName [10:14:56]name=ofd_packets/00148730 [10:14:56]OFD Sender: To server: pG, [10:14:56]CommunicateWithHost lk.salyk.kg:30040 [10:14:56]ConnectInit lk.salyk.kg [10:14:56]written 0, free lines is 4095 [10:14:56]Connected sock=10 [10:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 AF 73 04 01 CD 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1E E9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 44 02 00 35 04 06 00 1E 40 DE F4 EC 06 D3 45 3C 26 91 80 97 96 [10:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F0 AB 47 00 E1 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 38 37 35 30 35 37 10 04 04 00 FA 44 02 00 F4 03 04 00 42 90 5E 66 B6 04 01 00 00 17 FB 1C E9 D8 57 C1 C7 [10:14:56]CommunicateWithHost err = 0 [10:14:56]CheckOFDResponse [10:14:56]1017 (14) - 77093643461234 [10:14:56]1041 (16) - 0000000000875057 [10:14:56]1040 (4) - 148730 [10:14:56]1012 (4) - 04.06.2024 03:55 [10:14:56]1206 (1) - 0 [10:14:56]OFD Sender: Remove packet 148730 [10:14:56]ProducePacketName [10:14:56]name=ofd_packets/00148730 [10:14:56]NVStorageDeleteData [10:14:56]Write to MH i2c: 01 00 00 AC 01 AD [10:14:56]Write i2c OK [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: 01 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: 01 07 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: 01 07 00 AC 01 00 00 00 00 00 EC 0B AB [10:14:56]RasterBufferAndPrint [10:14:56]line [10:14:56]line [10:14:56]line [10:14:56]line [10:14:56]line [10:14:56]written 0, free lines is 3055 [10:14:56]MH_Cut [10:14:56]Write to MH i2c: D1 01 00 B3 01 01 86 [10:14:56]Write i2c OK [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: D1 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: D1 01 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: D1 01 00 B3 01 00 85 [10:14:56]Write to MH i2c: 01 00 00 B4 01 B5 [10:14:56]Write i2c OK [10:14:56]MH_I2C_Read... [10:14:57]OFD Sender: No OFD packet to send [10:14:58]*** Cut start [10:14:58]*** Partial cut [10:14:58]*** CUTSNS_PIN = 1 [10:14:58]*** CUTSNS_PIN = 0 [10:14:58]*** Brake cut motor [10:14:58]Read from MH i2c: 01 [10:14:58]MH_I2C_Read... [10:14:58]*** Stop cut motor [10:14:58]*** Cut end [10:14:58]Read from MH i2c: 01 07 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 B4 01 00 00 00 00 00 FF 0F CA [10:14:58]process_action close_receipt done [10:14:58]requested_data is exist [10:14:58]produce_requested_data [10:14:58]requested_item fm.sn is exist - process it [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 11 00 00 [10:14:58]Write to MH i2c: E2 08 00 B5 01 80 11 00 00 00 00 00 00 30 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 17 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 17 00 B5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 83 [10:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:14:58]wFMCommunicate OK [10:14:58]requested_item fd.num is exist - process it [10:14:58]SAM_PROTO_GetFieldsCounters [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 13 00 00 [10:14:58]Write to MH i2c: E2 08 00 B6 01 80 13 00 00 00 00 00 00 33 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:59]Read from MH i2c: E2 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: E2 62 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: E2 62 00 B6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FA 44 02 00 0E 04 04 00 70 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 CF [10:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FA 44 02 00 0E 04 04 00 70 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 [10:14:59]wFMCommunicate OK [10:14:59]SAM_PROTO_GetFieldsCounters done [10:14:59]requested_item shift.num is exist - process it [10:14:59]requested_item shift.opened is exist - process it [10:14:59]req_shift_opened [10:14:59]FM_GetShiftState [10:14:59]SAM_PROTO_GetShiftState [10:14:59]wFMCommunicate request_size=4 [10:14:59]MH_SAM_APDU [10:14:59]CAPDU: 80 13 01 00 [10:14:59]Write to MH i2c: E2 08 00 B7 01 80 13 01 00 00 00 00 00 35 [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:59]Read from MH i2c: E2 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: E2 0E 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: E2 0E 00 B7 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F8 [10:14:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:14:59]wFMCommunicate OK [10:14:59]SAM_PROTO_GetShiftState done [10:14:59]FM_GetShiftState done [10:14:59]req_shift_opened done [10:14:59]requested_item shift.open_date is exist - process it [10:14:59]req_shift_open_date [10:14:59]req_shift_open_date done [10:14:59]produce_requested_data done [10:14:59]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148730,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:14:59]process_action_free close_receipt [10:14:59]json_value_free [10:14:59]json_value_free done [10:14:59]process_json_proto returns [10:14:59]Send response to host [10:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148730,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:14:59]free response buf [10:14:59]execute_script done [10:14:59]execute_script returns [10:14:59]free content buf [10:14:59]Sock 9.Close socket [10:14:59]Sock 9.Thread stoped [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:08]accept exits with 7 [10:16:08]New connection [10:16:08]New thread 3067379044 created [10:16:08]Thread 3067235684 joined [10:16:08]Waiting for new connection... [10:16:08] Sock 7.Parse request [10:16:08]Sock 7.Check first char [10:16:08]Sock 7.First char is OK [10:16:08]request: POST /json_proto HTTP/1.0 [10:16:08]Method: POST [10:16:08]URL: /json_proto [10:16:08]Method is POST - this is cgi request [10:16:08]url: /json_proto [10:16:08]query_string will be loaded in cgi processing [10:16:08]execute_cgi json_proto POST (null) [10:16:08]execute_cgi path=json_proto method=POST [10:16:08]POST find Content-Length [10:16:08]Host: 172.17.38.4:8080 [10:16:08]Content-Length: 677 [10:16:08]Content-Type: application/json [10:16:08] [10:16:08]POST finish read [10:16:08]Found Content-Length = 677 [10:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:08]execute_script... [10:16:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:08]POST & json_proto [10:16:08]process_json_proto [10:16:08]json parsed OK: [10:16:08]protocol is kg_v1.0 [10:16:08]action value=close_receipt [10:16:08]process_action close_receipt [10:16:08]cmd_close_receipt [10:16:08]MH_GetDate [10:16:08]Write to MH i2c: F0 00 00 B8 01 A8 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: F0 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: F0 09 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: F0 09 00 B8 01 00 69 E9 5E 66 CC 51 87 64 CF [10:16:08]GetLastDocTimeStamp 1717496094 [10:16:08]current date 1717496169 [10:16:08]FM_GetShiftState [10:16:08]SAM_PROTO_GetShiftState [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 13 01 00 [10:16:08]Write to MH i2c: E2 08 00 B9 01 80 13 01 00 00 00 00 00 37 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 0E 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 0E 00 B9 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FA [10:16:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:16:08]wFMCommunicate OK [10:16:08]SAM_PROTO_GetShiftState done [10:16:08]FM_GetShiftState done [10:16:08]opened in 1717460629 [10:16:08]opened+sec_in_day 1717547029 [10:16:08]quantity*price = 60009 [10:16:08]sum+1 = 60010 [10:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 70 04.06.2024 10:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148731 ФПД: 168032900891421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T101609&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148731&fm=168032900891421&tin=02508201610067®Number=0000000000092720&sum=60000 [10:16:10]StoreToDocumentArchive [10:16:10]shift 368 fd 148731 [10:16:10]save to /storage/0368/doc_00148731 [10:16:10]save last doc name /storage/0368/doc_00148731 to /storage/kkm_last_doc_name [10:16:10]save OK [10:16:10]Clear old archive folders... [10:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:10]tlvbuf is 00FB8420 [10:16:10]SAM_PROTO_ClearQueue [10:16:10]wFMCommunicate request_size=4 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 09 00 00 [10:16:10]Write to MH i2c: E2 08 00 C6 01 80 09 00 00 00 00 00 00 39 [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:10]Read from MH i2c: E2 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 C6 01 00 90 00 3B [10:16:10]RAPDU: 90 00 [10:16:10]wFMCommunicate OK [10:16:10]SAM_PROTO_ClearQueue done [10:16:10]KKMCreateOFDPacket [10:16:10]OFDProtocolAddRootSTLVToBuf [10:16:10]FM_MakeSignedData [10:16:10]FM_MakeSignedData [10:16:10]SAM_PROTO_SignData [10:16:10]wFMCommunicate request_size=4 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 0D 01 02 [10:16:10]Write to MH i2c: E2 08 00 C7 01 80 0D 01 02 00 00 00 00 41 [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:10]Read from MH i2c: E2 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 C7 01 00 90 00 3C [10:16:10]RAPDU: 90 00 [10:16:10]wFMCommunicate OK [10:16:10]wFMCommunicate request_size=255 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 46 00 00 00 F4 03 04 00 69 E9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 44 02 00 35 04 06 00 98 [10:16:10]Write to MH i2c: E2 02 01 C8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 46 00 00 00 F4 03 04 00 69 E9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 44 02 00 35 04 06 00 98 00 00 4E [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:10]Read from MH i2c: E2 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 C8 01 00 90 00 3D [10:16:10]RAPDU: 90 00 [10:16:10]wFMCommunicate OK [10:16:10]wFMCommunicate request_size=10 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 0D 02 02 05 D3 35 5E 43 1D [10:16:10]Write to MH i2c: E2 0D 00 C9 01 80 0D 02 02 05 00 D3 35 5E 43 1D 00 00 14 [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:10]Read from MH i2c: E2 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 03 00 C9 01 00 90 00 3E [10:16:10]RAPDU: 90 00 [10:16:10]wFMCommunicate OK [10:16:10]wFMCommunicate request_size=4 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 0D 03 02 [10:16:10]Write to MH i2c: E2 08 00 CA 01 80 0D 03 02 00 00 00 00 46 [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:10]Read from MH i2c: E2 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 0B 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 0B 00 CA 01 00 4F 42 26 31 7B DA 9D F7 90 00 18 [10:16:10]RAPDU: 4F 42 26 31 7B DA 9D F7 90 00 [10:16:10]wFMCommunicate OK [10:16:10]SAM_PROTO_SignData done [10:16:10]FM_MakeSignedData done [10:16:10]CreateOFDProtocolMessage [10:16:10]wFMCommunicate request_size=4 [10:16:10]MH_SAM_APDU [10:16:10]CAPDU: 80 11 00 00 [10:16:10]Write to MH i2c: E2 08 00 CB 01 80 11 00 00 00 00 00 00 46 [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:10]Read from MH i2c: E2 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 17 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: E2 17 00 CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 99 [10:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:16:10]wFMCommunicate OK [10:16:10]CreateOFDProtocolMessage done [10:16:10]OFDSenderStorePacket 148731 [10:16:10]StoreOFDPacket docnum=148731 [10:16:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4F BB 07 01 8B 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 46 00 00 00 F4 03 04 00 69 E9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 44 02 00 35 04 06 00 98 D3 35 5E 43 1D 4F 42 26 31 7B DA 9D F7 [10:16:10]CheckFolder [10:16:10]dirname=/storage/ofd_packets [10:16:10]CheckFolder done [10:16:10]ProducePacketName [10:16:10]name=ofd_packets/00148731 [10:16:10]NVStorageSaveData ofd_packets/00148731 [10:16:10]File name is /storage/ofd_packets/00148731 [10:16:10]Write 301 bytes [10:16:10]NVStorageSaveData done [10:16:10]OFDSenderStorePacket done [10:16:10]KKMCreateOFDPacket done [10:16:10]NVStorageSaveData kkm_last_timestamp [10:16:10]File name is /storage/kkm_last_timestamp [10:16:10]Write 4 bytes [10:16:10]NVStorageSaveData done [10:16:10]ExternCall_PrintAddStr [10:16:10]wPrintStart [10:16:10]Write to MH i2c: 01 00 00 CC 01 CD [10:16:10]Write i2c OK [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: 01 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: 01 07 00 [10:16:10]MH_I2C_Read... [10:16:10]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 FF 0F E2 [10:16:10]RasterBufferAndPrint [10:16:10]line Счет N : (1)979657 [10:16:10]line ИНН: 02508201610067 [10:16:10]line Контрольно-Кассовый Чек [10:16:10]line ПРОДАЖА [10:16:10]line ТРК (МРК, ГНК) : 22 [10:16:10]line Товар: 2710124130 [10:16:10]line Аи-92-К-5 [10:16:10]line 8.970 * 66.90 [10:16:10]line = 600.09 [10:16:10]line НДС 12% НСП 1% [10:16:10]line > о реализуемом товаре [10:16:10]line ОКРУГЛЕНИЕ: -0.09 [10:16:10]line ИТОГО: 600.00 [10:16:10]line Внесено: 600.00 [10:16:10]line СДАЧА: 0.00 [10:16:10]line НСП 1% : 5.31 [10:16:10]line НДС 12% : 63.73 [10:16:10]line Наличными: 600.00 [10:16:10]line Безнал.: 0.00 [10:16:10]line Место: АЗС № 68 "Партнер Нефть" [10:16:10]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:16:10]line СНО: Общий режим [10:16:10]line Чек 70 04.06.2024 10:16 [10:16:10]line Смена: 368 ФФД: 1.0 [10:16:10]line ЗНМ: 0300000035 [10:16:10]line РНМ: 0000000000092720 [10:16:10]line Версия ККМ: 001 [10:16:10]line ФМ: 0000000000875057 [10:16:10]line ФД: 148731 [10:16:10]line ФПД: 168032900891421 [10:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T101609&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148731&fm=168032900891421&tin=02508201610067®Number=0000000000092720&sum=60000 [10:16:10]OFD Sender: Processing packet 148731 [packets to send 100, broken 99] [10:16:10]ProducePacketName [10:16:10]name=ofd_packets/00148731 [10:16:10]OFD Sender: To server: pG, [10:16:10]CommunicateWithHost lk.salyk.kg:30040 [10:16:10]ConnectInit lk.salyk.kg [10:16:10]written 0, free lines is 4095 [10:16:11]Connected sock=11 [10:16:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4F BB 07 01 8B 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 46 00 00 00 F4 03 04 00 69 E9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 44 02 00 35 04 06 00 98 D3 35 5E 43 1D 4F 42 26 31 7B DA 9D F7 [10:16:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3C AE 47 00 34 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 38 37 35 30 35 37 10 04 04 00 FB 44 02 00 F4 03 04 00 8D 90 5E 66 B6 04 01 00 00 9D 04 78 E0 76 F4 38 80 [10:16:11]CommunicateWithHost err = 0 [10:16:11]CheckOFDResponse [10:16:11]1017 (14) - 77093643461234 [10:16:11]1041 (16) - 0000000000875057 [10:16:11]1040 (4) - 148731 [10:16:11]1012 (4) - 04.06.2024 03:57 [10:16:11]1206 (1) - 0 [10:16:11]OFD Sender: Remove packet 148731 [10:16:11]ProducePacketName [10:16:11]name=ofd_packets/00148731 [10:16:11]NVStorageDeleteData [10:16:11]Write to MH i2c: 01 00 00 F7 01 F8 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: 01 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: 01 07 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 68 0C 73 [10:16:11]RasterBufferAndPrint [10:16:11]line [10:16:11]line [10:16:11]line [10:16:11]line [10:16:11]line [10:16:11]written 0, free lines is 3179 [10:16:11]MH_Cut [10:16:11]Write to MH i2c: D1 01 00 FE 01 01 D1 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: D1 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: D1 01 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: D1 01 00 FE 01 00 D0 [10:16:11]Write to MH i2c: 01 00 00 FF 01 00 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]OFD Sender: No OFD packet to send [10:16:12]*** Cut start [10:16:12]*** Partial cut [10:16:12]*** CUTSNS_PIN = 1 [10:16:12]*** CUTSNS_PIN = 0 [10:16:12]*** Brake cut motor [10:16:13]Read from MH i2c: 01 [10:16:13]MH_I2C_Read... [10:16:13]*** Stop cut motor [10:16:13]*** Cut end [10:16:13]Read from MH i2c: 01 07 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: 01 07 00 FF 01 00 00 00 00 00 FF 0F 15 [10:16:13]process_action close_receipt done [10:16:13]requested_data is exist [10:16:13]produce_requested_data [10:16:13]requested_item fm.sn is exist - process it [10:16:13]wFMCommunicate request_size=4 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 11 00 00 [10:16:13]Write to MH i2c: E2 08 00 00 02 80 11 00 00 00 00 00 00 7C [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 17 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 17 00 00 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CF [10:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:16:13]wFMCommunicate OK [10:16:13]requested_item fd.num is exist - process it [10:16:13]SAM_PROTO_GetFieldsCounters [10:16:13]wFMCommunicate request_size=4 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 13 00 00 [10:16:13]Write to MH i2c: E2 08 00 01 02 80 13 00 00 00 00 00 00 7F [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 62 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 62 00 01 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FB 44 02 00 0E 04 04 00 70 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 1F [10:16:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FB 44 02 00 0E 04 04 00 70 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 [10:16:13]wFMCommunicate OK [10:16:13]SAM_PROTO_GetFieldsCounters done [10:16:13]requested_item shift.num is exist - process it [10:16:13]requested_item shift.opened is exist - process it [10:16:13]req_shift_opened [10:16:13]FM_GetShiftState [10:16:13]SAM_PROTO_GetShiftState [10:16:13]wFMCommunicate request_size=4 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 13 01 00 [10:16:13]Write to MH i2c: E2 08 00 02 02 80 13 01 00 00 00 00 00 81 [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 0E 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 0E 00 02 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 44 [10:16:13]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:16:13]wFMCommunicate OK [10:16:13]SAM_PROTO_GetShiftState done [10:16:13]FM_GetShiftState done [10:16:13]req_shift_opened done [10:16:13]requested_item shift.open_date is exist - process it [10:16:13]req_shift_open_date [10:16:13]req_shift_open_date done [10:16:13]produce_requested_data done [10:16:13]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148731,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:16:13]process_action_free close_receipt [10:16:13]json_value_free [10:16:13]json_value_free done [10:16:13]process_json_proto returns [10:16:13]Send response to host [10:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148731,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:16:13]free response buf [10:16:13]execute_script done [10:16:13]execute_script returns [10:16:13]free content buf [10:16:13]Sock 7.Close socket [10:16:13]Sock 7.Thread stoped [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:15]accept exits with 9 [10:20:15]New connection [10:20:15]New thread 3067235684 created [10:20:15]Thread 3067379044 joined [10:20:15]Waiting for new connection... [10:20:15] Sock 9.Parse request [10:20:15]Sock 9.Check first char [10:20:15]Sock 9.First char is OK [10:20:15]request: POST /json_proto HTTP/1.0 [10:20:15]Method: POST [10:20:15]URL: /json_proto [10:20:15]Method is POST - this is cgi request [10:20:15]url: /json_proto [10:20:15]query_string will be loaded in cgi processing [10:20:15]execute_cgi json_proto POST (null) [10:20:15]execute_cgi path=json_proto method=POST [10:20:15]POST find Content-Length [10:20:15]Host: 172.17.38.4:8080 [10:20:15]Content-Length: 670 [10:20:15]Content-Type: application/json [10:20:15] [10:20:15]POST finish read [10:20:15]Found Content-Length = 670 [10:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [10:20:15]execute_script... [10:20: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)979658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [10:20:15]POST & json_proto [10:20:15]process_json_proto [10:20:15]json parsed OK: [10:20:15]protocol is kg_v1.0 [10:20:15]action value=close_receipt [10:20:15]process_action close_receipt [10:20:15]cmd_close_receipt [10:20:15]MH_GetDate [10:20:15]Write to MH i2c: F0 00 00 03 02 F4 [10:20:15]Write i2c OK [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: F0 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: F0 09 00 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: F0 09 00 03 02 00 60 EA 5E 66 CC 51 87 64 13 [10:20:15]GetLastDocTimeStamp 1717496169 [10:20:15]current date 1717496416 [10:20:15]FM_GetShiftState [10:20:15]SAM_PROTO_GetShiftState [10:20:15]wFMCommunicate request_size=4 [10:20:15]MH_SAM_APDU [10:20:15]CAPDU: 80 13 01 00 [10:20:15]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [10:20:15]Write i2c OK [10:20:15]MH_I2C_Read... [10:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:15]Read from MH i2c: E2 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: E2 0E 00 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 46 [10:20:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:20:15]wFMCommunicate OK [10:20:15]SAM_PROTO_GetShiftState done [10:20:15]FM_GetShiftState done [10:20:15]opened in 1717460629 [10:20:15]opened+sec_in_day 1717547029 [10:20:15]quantity*price = 50042 [10:20:15]sum+1 = 50043 [10:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 71 04.06.2024 10:20 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148732 ФПД: 71612892518495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102016&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148732&fm=71612892518495&tin=02508201610067®Number=0000000000092720&sum=50000 [10:20:16]StoreToDocumentArchive [10:20:16]shift 368 fd 148732 [10:20:16]save to /storage/0368/doc_00148732 [10:20:16]save last doc name /storage/0368/doc_00148732 to /storage/kkm_last_doc_name [10:20:16]save OK [10:20:16]Clear old archive folders... [10:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:20:16]tlvbuf is 00FB9D70 [10:20:16]SAM_PROTO_ClearQueue [10:20:16]wFMCommunicate request_size=4 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 09 00 00 [10:20:16]Write to MH i2c: E2 08 00 11 02 80 09 00 00 00 00 00 00 85 [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 11 02 00 90 00 87 [10:20:16]RAPDU: 90 00 [10:20:16]wFMCommunicate OK [10:20:16]SAM_PROTO_ClearQueue done [10:20:16]KKMCreateOFDPacket [10:20:16]OFDProtocolAddRootSTLVToBuf [10:20:16]FM_MakeSignedData [10:20:16]FM_MakeSignedData [10:20:16]SAM_PROTO_SignData [10:20:16]wFMCommunicate request_size=4 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 0D 01 02 [10:20:16]Write to MH i2c: E2 08 00 12 02 80 0D 01 02 00 00 00 00 8D [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 12 02 00 90 00 88 [10:20:16]RAPDU: 90 00 [10:20:16]wFMCommunicate OK [10:20:16]wFMCommunicate request_size=255 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 47 00 00 00 F4 03 04 00 60 EA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 44 02 00 35 04 06 00 [10:20:16]Write to MH i2c: E2 02 01 13 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 55 50 45 52 20 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 47 00 00 00 F4 03 04 00 60 EA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 44 02 00 35 04 06 00 00 00 B2 [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:17]OFD Sender: No OFD packet to send [10:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 13 02 00 90 00 89 [10:20:17]RAPDU: 90 00 [10:20:17]wFMCommunicate OK [10:20:17]wFMCommunicate request_size=11 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 0D 02 02 06 41 21 AD 05 18 5F [10:20:17]Write to MH i2c: E2 0E 00 14 02 80 0D 02 02 06 00 41 21 AD 05 18 5F 00 00 27 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [10:20:17]RAPDU: 90 00 [10:20:17]wFMCommunicate OK [10:20:17]wFMCommunicate request_size=4 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 0D 03 02 [10:20:17]Write to MH i2c: E2 08 00 15 02 80 0D 03 02 00 00 00 00 92 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 0B 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 0B 00 15 02 00 D2 54 ED EC 8F E1 38 EA 90 00 24 [10:20:17]RAPDU: D2 54 ED EC 8F E1 38 EA 90 00 [10:20:17]wFMCommunicate OK [10:20:17]SAM_PROTO_SignData done [10:20:17]FM_MakeSignedData done [10:20:17]CreateOFDProtocolMessage [10:20:17]wFMCommunicate request_size=4 [10:20:17]MH_SAM_APDU [10:20:17]CAPDU: 80 11 00 00 [10:20:17]Write to MH i2c: E2 08 00 16 02 80 11 00 00 00 00 00 00 92 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:17]Read from MH i2c: E2 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 17 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: E2 17 00 16 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E5 [10:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:20:17]wFMCommunicate OK [10:20:17]CreateOFDProtocolMessage done [10:20:17]OFDSenderStorePacket 148732 [10:20:17]StoreOFDPacket docnum=148732 [10:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 C7 F2 08 01 AF 17 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 47 00 00 00 F4 03 04 00 60 EA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 44 02 00 35 04 06 00 41 21 AD 05 18 5F D2 54 ED EC 8F E1 38 EA [10:20:17]CheckFolder [10:20:17]dirname=/storage/ofd_packets [10:20:17]CheckFolder done [10:20:17]ProducePacketName [10:20:17]name=ofd_packets/00148732 [10:20:17]NVStorageSaveData ofd_packets/00148732 [10:20:17]File name is /storage/ofd_packets/00148732 [10:20:17]Write 302 bytes [10:20:17]NVStorageSaveData done [10:20:17]OFDSenderStorePacket done [10:20:17]KKMCreateOFDPacket done [10:20:17]NVStorageSaveData kkm_last_timestamp [10:20:17]File name is /storage/kkm_last_timestamp [10:20:17]Write 4 bytes [10:20:17]NVStorageSaveData done [10:20:17]ExternCall_PrintAddStr [10:20:17]wPrintStart [10:20:17]Write to MH i2c: 01 00 00 17 02 19 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FF 0F 2E [10:20:17]RasterBufferAndPrint [10:20:17]line Счет N : (1)979658 [10:20:17]line ИНН: 02508201610067 [10:20:17]line Контрольно-Кассовый Чек [10:20:17]line ПРОДАЖА [10:20:17]line ТРК (МРК, ГНК) : 33 [10:20:17]line Товар: 2710124130 [10:20:17]line SUPER 92-К-5 [10:20:17]line 7.370 * 67.90 [10:20:17]line = 500.42 [10:20:17]line НДС 12% НСП 1% [10:20:17]line > о реализуемом товаре [10:20:17]line ОКРУГЛЕНИЕ: -0.42 [10:20:17]line ИТОГО: 500.00 [10:20:17]line Внесено: 500.00 [10:20:17]line СДАЧА: 0.00 [10:20:17]line НСП 1% : 4.43 [10:20:17]line НДС 12% : 53.14 [10:20:17]line Наличными: 500.00 [10:20:17]line Безнал.: 0.00 [10:20:17]line Место: АЗС № 68 "Партнер Нефть" [10:20:17]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:20:17]line СНО: Общий режим [10:20:17]line Чек 71 04.06.2024 10:20 [10:20:17]line Смена: 368 ФФД: 1.0 [10:20:17]line ЗНМ: 0300000035 [10:20:17]line РНМ: 0000000000092720 [10:20:17]line Версия ККМ: 001 [10:20:17]line ФМ: 0000000000875057 [10:20:17]line ФД: 148732 [10:20:17]line ФПД: 71612892518495 [10:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102016&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148732&fm=71612892518495&tin=02508201610067®Number=0000000000092720&sum=50000 [10:20:17]OFD Sender: Processing packet 148732 [packets to send 100, broken 99] [10:20:17]ProducePacketName [10:20:17]name=ofd_packets/00148732 [10:20:17]OFD Sender: To server: pG, [10:20:17]CommunicateWithHost lk.salyk.kg:30040 [10:20:17]ConnectInit lk.salyk.kg [10:20:17]written 0, free lines is 4095 [10:20:17]Connected sock=10 [10:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 C7 F2 08 01 AF 17 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 47 00 00 00 F4 03 04 00 60 EA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 44 02 00 35 04 06 00 41 21 AD 05 18 5F D2 54 ED EC 8F E1 38 EA [10:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B2 79 47 00 01 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 38 37 35 30 35 37 10 04 04 00 FC 44 02 00 F4 03 04 00 84 91 5E 66 B6 04 01 00 00 EB 5A F4 A2 43 1B 36 BE [10:20:17]CommunicateWithHost err = 0 [10:20:17]CheckOFDResponse [10:20:17]1017 (14) - 77093643461234 [10:20:17]1041 (16) - 0000000000875057 [10:20:17]1040 (4) - 148732 [10:20:17]1012 (4) - 04.06.2024 04:01 [10:20:17]1206 (1) - 0 [10:20:17]OFD Sender: Remove packet 148732 [10:20:17]ProducePacketName [10:20:17]name=ofd_packets/00148732 [10:20:17]NVStorageDeleteData [10:20:18]Write to MH i2c: 01 00 00 42 02 44 [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 69 0C C0 [10:20:18]RasterBufferAndPrint [10:20:18]line [10:20:18]line [10:20:18]line [10:20:18]line [10:20:18]line [10:20:18]written 0, free lines is 3181 [10:20:18]MH_Cut [10:20:18]Write to MH i2c: D1 01 00 49 02 01 1D [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: D1 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: D1 01 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: D1 01 00 49 02 00 1C [10:20:18]Write to MH i2c: 01 00 00 4A 02 4C [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]OFD Sender: No OFD packet to send [10:20:19]*** Cut start [10:20:19]*** Partial cut [10:20:19]*** CUTSNS_PIN = 1 [10:20:19]*** CUTSNS_PIN = 0 [10:20:19]*** Brake cut motor [10:20:20]Read from MH i2c: 01 [10:20:20]MH_I2C_Read... [10:20:20]*** Stop cut motor [10:20:20]*** Cut end [10:20:20]Read from MH i2c: 01 07 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 FF 0F 61 [10:20:20]process_action close_receipt done [10:20:20]requested_data is exist [10:20:20]produce_requested_data [10:20:20]requested_item fm.sn is exist - process it [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 11 00 00 [10:20:20]Write to MH i2c: E2 08 00 4B 02 80 11 00 00 00 00 00 00 C7 [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 17 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 17 00 4B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1A [10:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:20:20]wFMCommunicate OK [10:20:20]requested_item fd.num is exist - process it [10:20:20]SAM_PROTO_GetFieldsCounters [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 13 00 00 [10:20:20]Write to MH i2c: E2 08 00 4C 02 80 13 00 00 00 00 00 00 CA [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 62 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 62 00 4C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FC 44 02 00 0E 04 04 00 70 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 6E [10:20:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FC 44 02 00 0E 04 04 00 70 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 [10:20:20]wFMCommunicate OK [10:20:20]SAM_PROTO_GetFieldsCounters done [10:20:20]requested_item shift.num is exist - process it [10:20:20]requested_item shift.opened is exist - process it [10:20:20]req_shift_opened [10:20:20]FM_GetShiftState [10:20:20]SAM_PROTO_GetShiftState [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 13 01 00 [10:20:20]Write to MH i2c: E2 08 00 4D 02 80 13 01 00 00 00 00 00 CC [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 0E 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 0E 00 4D 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8F [10:20:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:20:20]wFMCommunicate OK [10:20:20]SAM_PROTO_GetShiftState done [10:20:20]FM_GetShiftState done [10:20:20]req_shift_opened done [10:20:20]requested_item shift.open_date is exist - process it [10:20:20]req_shift_open_date [10:20:20]req_shift_open_date done [10:20:20]produce_requested_data done [10:20:20]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148732,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:20:20]process_action_free close_receipt [10:20:20]json_value_free [10:20:20]json_value_free done [10:20:20]process_json_proto returns [10:20:20]Send response to host [10:20:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148732,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:20:20]free response buf [10:20:20]execute_script done [10:20:20]execute_script returns [10:20:20]free content buf [10:20:20]Sock 9.Close socket [10:20:20]Sock 9.Thread stoped [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:45]accept exits with 7 [10:20:45]New connection [10:20:45]New thread 3067379044 created [10:20:45]Thread 3067235684 joined [10:20:45]Waiting for new connection... [10:20:45] Sock 7.Parse request [10:20:45]Sock 7.Check first char [10:20:45]Sock 7.First char is OK [10:20:45]request: POST /json_proto HTTP/1.0 [10:20:45]Method: POST [10:20:45]URL: /json_proto [10:20:45]Method is POST - this is cgi request [10:20:45]url: /json_proto [10:20:45]query_string will be loaded in cgi processing [10:20:45]execute_cgi json_proto POST (null) [10:20:45]execute_cgi path=json_proto method=POST [10:20:45]POST find Content-Length [10:20:45]Host: 172.17.38.4:8080 [10:20:45]Content-Length: 674 [10:20:45]Content-Type: application/json [10:20:45] [10:20:45]POST finish read [10:20:45]Found Content-Length = 674 [10:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [10:20:45]execute_script... [10:20: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)979659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [10:20:45]POST & json_proto [10:20:45]process_json_proto [10:20:45]json parsed OK: [10:20:45]protocol is kg_v1.0 [10:20:45]action value=close_receipt [10:20:45]process_action close_receipt [10:20:45]cmd_close_receipt [10:20:45]MH_GetDate [10:20:45]Write to MH i2c: F0 00 00 4E 02 3F [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: F0 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: F0 09 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: F0 09 00 4E 02 00 7D EA 5E 66 CC 51 87 64 7B [10:20:45]GetLastDocTimeStamp 1717496416 [10:20:45]current date 1717496445 [10:20:45]FM_GetShiftState [10:20:45]SAM_PROTO_GetShiftState [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 13 01 00 [10:20:45]Write to MH i2c: E2 08 00 4F 02 80 13 01 00 00 00 00 00 CE [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 0E 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 0E 00 4F 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 91 [10:20:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:20:45]wFMCommunicate OK [10:20:45]SAM_PROTO_GetShiftState done [10:20:45]FM_GetShiftState done [10:20:45]opened in 1717460629 [10:20:45]opened+sec_in_day 1717547029 [10:20:45]quantity*price = 50009 [10:20:45]sum+1 = 50010 [10:20:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 72 04.06.2024 10:20 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148733 ФПД: 151551480321423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102045&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148733&fm=151551480321423&tin=02508201610067®Number=0000000000092720&sum=50000 [10:20:46]StoreToDocumentArchive [10:20:46]shift 368 fd 148733 [10:20:46]save to /storage/0368/doc_00148733 [10:20:46]save last doc name /storage/0368/doc_00148733 to /storage/kkm_last_doc_name [10:20:46]save OK [10:20:46]Clear old archive folders... [10:20:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:20:46]tlvbuf is 00FB5140 [10:20:46]SAM_PROTO_ClearQueue [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 09 00 00 [10:20:46]Write to MH i2c: E2 08 00 5C 02 80 09 00 00 00 00 00 00 D0 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 5C 02 00 90 00 D2 [10:20:46]RAPDU: 90 00 [10:20:46]wFMCommunicate OK [10:20:46]SAM_PROTO_ClearQueue done [10:20:46]KKMCreateOFDPacket [10:20:46]OFDProtocolAddRootSTLVToBuf [10:20:46]FM_MakeSignedData [10:20:46]FM_MakeSignedData [10:20:46]SAM_PROTO_SignData [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 0D 01 02 [10:20:46]Write to MH i2c: E2 08 00 5D 02 80 0D 01 02 00 00 00 00 D8 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 5D 02 00 90 00 D3 [10:20:46]RAPDU: 90 00 [10:20:46]wFMCommunicate OK [10:20:46]wFMCommunicate request_size=255 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 7D EA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 44 02 00 35 04 06 00 89 D5 D4 26 [10:20:46]Write to MH i2c: E2 02 01 5E 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 7D EA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 44 02 00 35 04 06 00 89 D5 D4 26 00 00 FC [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:47]Read from MH i2c: E2 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 03 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [10:20:47]RAPDU: 90 00 [10:20:47]wFMCommunicate OK [10:20:47]wFMCommunicate request_size=7 [10:20:47]MH_SAM_APDU [10:20:47]CAPDU: 80 0D 02 02 02 55 8F [10:20:47]Write to MH i2c: E2 0A 00 5F 02 80 0D 02 02 02 00 55 8F 00 00 C3 [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:47]Read from MH i2c: E2 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 03 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [10:20:47]RAPDU: 90 00 [10:20:47]wFMCommunicate OK [10:20:47]wFMCommunicate request_size=4 [10:20:47]MH_SAM_APDU [10:20:47]CAPDU: 80 0D 03 02 [10:20:47]Write to MH i2c: E2 08 00 60 02 80 0D 03 02 00 00 00 00 DD [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:47]Read from MH i2c: E2 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 0B 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 0B 00 60 02 00 92 4C 4F 54 AC C2 53 91 90 00 B1 [10:20:47]RAPDU: 92 4C 4F 54 AC C2 53 91 90 00 [10:20:47]wFMCommunicate OK [10:20:47]SAM_PROTO_SignData done [10:20:47]FM_MakeSignedData done [10:20:47]CreateOFDProtocolMessage [10:20:47]wFMCommunicate request_size=4 [10:20:47]MH_SAM_APDU [10:20:47]CAPDU: 80 11 00 00 [10:20:47]Write to MH i2c: E2 08 00 61 02 80 11 00 00 00 00 00 00 DD [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:47]Read from MH i2c: E2 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 17 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 17 00 61 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 30 [10:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:20:47]wFMCommunicate OK [10:20:47]CreateOFDProtocolMessage done [10:20:47]OFDSenderStorePacket 148733 [10:20:47]StoreOFDPacket docnum=148733 [10:20:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 84 AD 04 01 FF A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 7D EA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 44 02 00 35 04 06 00 89 D5 D4 26 55 8F 92 4C 4F 54 AC C2 53 91 [10:20:47]CheckFolder [10:20:47]dirname=/storage/ofd_packets [10:20:47]CheckFolder done [10:20:47]ProducePacketName [10:20:47]name=ofd_packets/00148733 [10:20:47]NVStorageSaveData ofd_packets/00148733 [10:20:47]File name is /storage/ofd_packets/00148733 [10:20:47]Write 298 bytes [10:20:47]NVStorageSaveData done [10:20:47]OFDSenderStorePacket done [10:20:47]KKMCreateOFDPacket done [10:20:47]NVStorageSaveData kkm_last_timestamp [10:20:47]File name is /storage/kkm_last_timestamp [10:20:47]Write 4 bytes [10:20:47]NVStorageSaveData done [10:20:47]ExternCall_PrintAddStr [10:20:47]wPrintStart [10:20:47]Write to MH i2c: 01 00 00 62 02 64 [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 07 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [10:20:47]RasterBufferAndPrint [10:20:47]line Счет N : (1)979659 [10:20:47]line ИНН: 02508201610067 [10:20:47]line Контрольно-Кассовый Чек [10:20:47]line ПРОДАЖА [10:20:47]line ТРК (МРК, ГНК) : 52 [10:20:47]line Товар: 2710194210 [10:20:47]line ДТ-К-5 [10:20:47]line 6.860 * 72.90 [10:20:47]line = 500.09 [10:20:47]line НДС 12% НСП 1% [10:20:47]line > о реализуемом товаре [10:20:47]line ОКРУГЛЕНИЕ: -0.09 [10:20:47]line ИТОГО: 500.00 [10:20:47]line Внесено: 500.00 [10:20:47]line СДАЧА: 0.00 [10:20:47]line НСП 1% : 4.43 [10:20:47]line НДС 12% : 53.11 [10:20:47]line Наличными: 500.00 [10:20:47]line Безнал.: 0.00 [10:20:47]line Место: АЗС № 68 "Партнер Нефть" [10:20:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:20:47]line СНО: Общий режим [10:20:47]line Чек 72 04.06.2024 10:20 [10:20:47]line Смена: 368 ФФД: 1.0 [10:20:47]line ЗНМ: 0300000035 [10:20:47]line РНМ: 0000000000092720 [10:20:47]line Версия ККМ: 001 [10:20:47]line ФМ: 0000000000875057 [10:20:47]line ФД: 148733 [10:20:47]line ФПД: 151551480321423 [10:20:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102045&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148733&fm=151551480321423&tin=02508201610067®Number=0000000000092720&sum=50000 [10:20:47]OFD Sender: Processing packet 148733 [packets to send 100, broken 99] [10:20:47]ProducePacketName [10:20:47]name=ofd_packets/00148733 [10:20:47]OFD Sender: To server: pG, [10:20:47]CommunicateWithHost lk.salyk.kg:30040 [10:20:47]ConnectInit lk.salyk.kg [10:20:47]written 0, free lines is 4095 [10:20:47]Connected sock=10 [10:20:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 84 AD 04 01 FF A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 7D EA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 44 02 00 35 04 06 00 89 D5 D4 26 55 8F 92 4C 4F 54 AC C2 53 91 [10:20:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 85 F6 47 00 98 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 44 02 00 F4 03 04 00 A2 91 5E 66 B6 04 01 00 00 04 88 1E 19 59 6E AC C3 [10:20:47]CommunicateWithHost err = 0 [10:20:47]CheckOFDResponse [10:20:47]1017 (14) - 77093643461234 [10:20:47]1041 (16) - 0000000000875057 [10:20:47]1040 (4) - 148733 [10:20:47]1012 (4) - 04.06.2024 04:01 [10:20:47]1206 (1) - 0 [10:20:47]OFD Sender: Remove packet 148733 [10:20:47]ProducePacketName [10:20:47]name=ofd_packets/00148733 [10:20:47]NVStorageDeleteData [10:20:47]Write to MH i2c: 01 00 00 8D 02 8F [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 07 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 07 00 8D 02 00 00 00 00 00 66 0C 08 [10:20:47]RasterBufferAndPrint [10:20:47]line [10:20:47]line [10:20:47]line [10:20:47]line [10:20:47]line [10:20:47]written 0, free lines is 3178 [10:20:47]MH_Cut [10:20:47]Write to MH i2c: D1 01 00 94 02 01 68 [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: D1 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: D1 01 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: D1 01 00 94 02 00 67 [10:20:47]Write to MH i2c: 01 00 00 95 02 97 [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:48]OFD Sender: No OFD packet to send [10:20:49]*** Cut start [10:20:49]*** Partial cut [10:20:49]*** CUTSNS_PIN = 1 [10:20:49]*** CUTSNS_PIN = 0 [10:20:49]*** Brake cut motor [10:20:49]Read from MH i2c: 01 [10:20:49]MH_I2C_Read... [10:20:49]*** Stop cut motor [10:20:49]*** Cut end [10:20:49]Read from MH i2c: 01 07 00 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: 01 07 00 95 02 00 00 00 00 00 FF 0F AC [10:20:49]process_action close_receipt done [10:20:49]requested_data is exist [10:20:49]produce_requested_data [10:20:49]requested_item fm.sn is exist - process it [10:20:49]wFMCommunicate request_size=4 [10:20:49]MH_SAM_APDU [10:20:49]CAPDU: 80 11 00 00 [10:20:49]Write to MH i2c: E2 08 00 96 02 80 11 00 00 00 00 00 00 12 [10:20:49]Write i2c OK [10:20:49]MH_I2C_Read... [10:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:49]Read from MH i2c: E2 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 17 00 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 17 00 96 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 65 [10:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:20:49]wFMCommunicate OK [10:20:49]requested_item fd.num is exist - process it [10:20:49]SAM_PROTO_GetFieldsCounters [10:20:49]wFMCommunicate request_size=4 [10:20:49]MH_SAM_APDU [10:20:49]CAPDU: 80 13 00 00 [10:20:49]Write to MH i2c: E2 08 00 97 02 80 13 00 00 00 00 00 00 15 [10:20:49]Write i2c OK [10:20:49]MH_I2C_Read... [10:20:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:50]Read from MH i2c: E2 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: E2 62 00 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: E2 62 00 97 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FD 44 02 00 0E 04 04 00 70 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 BD [10:20:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FD 44 02 00 0E 04 04 00 70 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 [10:20:50]wFMCommunicate OK [10:20:50]SAM_PROTO_GetFieldsCounters done [10:20:50]requested_item shift.num is exist - process it [10:20:50]requested_item shift.opened is exist - process it [10:20:50]req_shift_opened [10:20:50]FM_GetShiftState [10:20:50]SAM_PROTO_GetShiftState [10:20:50]wFMCommunicate request_size=4 [10:20:50]MH_SAM_APDU [10:20:50]CAPDU: 80 13 01 00 [10:20:50]Write to MH i2c: E2 08 00 98 02 80 13 01 00 00 00 00 00 17 [10:20:50]Write i2c OK [10:20:50]MH_I2C_Read... [10:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:50]Read from MH i2c: E2 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: E2 0E 00 [10:20:50]MH_I2C_Read... [10:20:50]Read from MH i2c: E2 0E 00 98 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DA [10:20:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:20:50]wFMCommunicate OK [10:20:50]SAM_PROTO_GetShiftState done [10:20:50]FM_GetShiftState done [10:20:50]req_shift_opened done [10:20:50]requested_item shift.open_date is exist - process it [10:20:50]req_shift_open_date [10:20:50]req_shift_open_date done [10:20:50]produce_requested_data done [10:20:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148733,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:20:50]process_action_free close_receipt [10:20:50]json_value_free [10:20:50]json_value_free done [10:20:50]process_json_proto returns [10:20:50]Send response to host [10:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148733,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:20:50]free response buf [10:20:50]execute_script done [10:20:50]execute_script returns [10:20:50]free content buf [10:20:50]Sock 7.Close socket [10:20:50]Sock 7.Thread stoped [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:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:04]accept exits with 9 [10:23:04]New connection [10:23:04]New thread 3067235684 created [10:23:04]Thread 3067379044 joined [10:23:04]Waiting for new connection... [10:23:04] Sock 9.Parse request [10:23:04]Sock 9.Check first char [10:23:04]Sock 9.First char is OK [10:23:04]request: POST /json_proto HTTP/1.0 [10:23:04]Method: POST [10:23:04]URL: /json_proto [10:23:04]Method is POST - this is cgi request [10:23:04]url: /json_proto [10:23:04]query_string will be loaded in cgi processing [10:23:04]execute_cgi json_proto POST (null) [10:23:04]execute_cgi path=json_proto method=POST [10:23:04]POST find Content-Length [10:23:04]Host: 172.17.38.4:8080 [10:23:04]Content-Length: 682 [10:23:04]Content-Type: application/json [10:23:04] [10:23:04]POST finish read [10:23:04]Found Content-Length = 682 [10:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:04]execute_script... [10:23:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:04]POST & json_proto [10:23:04]process_json_proto [10:23:04]json parsed OK: [10:23:04]protocol is kg_v1.0 [10:23:04]action value=close_receipt [10:23:04]process_action close_receipt [10:23:04]cmd_close_receipt [10:23:04]MH_GetDate [10:23:04]Write to MH i2c: F0 00 00 99 02 8A [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: F0 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: F0 09 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: F0 09 00 99 02 00 09 EB 5E 66 CC 51 87 64 53 [10:23:04]GetLastDocTimeStamp 1717496445 [10:23:04]current date 1717496585 [10:23:04]FM_GetShiftState [10:23:04]SAM_PROTO_GetShiftState [10:23:04]wFMCommunicate request_size=4 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 13 01 00 [10:23:04]Write to MH i2c: E2 08 00 9A 02 80 13 01 00 00 00 00 00 19 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 0E 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 0E 00 9A 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DC [10:23:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:23:04]wFMCommunicate OK [10:23:04]SAM_PROTO_GetShiftState done [10:23:04]FM_GetShiftState done [10:23:04]opened in 1717460629 [10:23:04]opened+sec_in_day 1717547029 [10:23:04]quantity*price = 100015 [10:23:04]sum+1 = 100017 [10:23:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 73 04.06.2024 10:23 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148734 ФПД: 250420753403922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102305&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148734&fm=250420753403922&tin=02508201610067®Number=0000000000092720&sum=100000 [10:23:05]StoreToDocumentArchive [10:23:05]shift 368 fd 148734 [10:23:05]save to /storage/0368/doc_00148734 [10:23:05]save last doc name /storage/0368/doc_00148734 to /storage/kkm_last_doc_name [10:23:05]save OK [10:23:05]Clear old archive folders... [10:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:05]tlvbuf is 00FB9F00 [10:23:05]SAM_PROTO_ClearQueue [10:23:05]wFMCommunicate request_size=4 [10:23:05]MH_SAM_APDU [10:23:05]CAPDU: 80 09 00 00 [10:23:05]Write to MH i2c: E2 08 00 A7 02 80 09 00 00 00 00 00 00 1B [10:23:05]Write i2c OK [10:23:05]MH_I2C_Read... [10:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:05]Read from MH i2c: E2 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: E2 03 00 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: E2 03 00 A7 02 00 90 00 1D [10:23:05]RAPDU: 90 00 [10:23:05]wFMCommunicate OK [10:23:05]SAM_PROTO_ClearQueue done [10:23:05]KKMCreateOFDPacket [10:23:05]OFDProtocolAddRootSTLVToBuf [10:23:05]FM_MakeSignedData [10:23:05]FM_MakeSignedData [10:23:05]SAM_PROTO_SignData [10:23:05]wFMCommunicate request_size=4 [10:23:05]MH_SAM_APDU [10:23:05]CAPDU: 80 0D 01 02 [10:23:05]Write to MH i2c: E2 08 00 A8 02 80 0D 01 02 00 00 00 00 23 [10:23:05]Write i2c OK [10:23:05]MH_I2C_Read... [10:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:05]Read from MH i2c: E2 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: E2 03 00 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: E2 03 00 A8 02 00 90 00 1E [10:23:05]RAPDU: 90 00 [10:23:05]wFMCommunicate OK [10:23:05]wFMCommunicate request_size=255 [10:23:05]MH_SAM_APDU [10:23:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 09 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 44 02 00 35 04 06 00 E3 [10:23:05]Write to MH i2c: E2 02 01 A9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 09 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 44 02 00 35 04 06 00 E3 00 00 40 [10:23:05]Write i2c OK [10:23:05]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 03 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 03 00 A9 02 00 90 00 1F [10:23:06]RAPDU: 90 00 [10:23:06]wFMCommunicate OK [10:23:06]wFMCommunicate request_size=10 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 0D 02 02 05 C1 A0 0D 10 12 [10:23:06]Write to MH i2c: E2 0D 00 AA 02 80 0D 02 02 05 00 C1 A0 0D 10 12 00 00 C0 [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 03 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 03 00 AA 02 00 90 00 20 [10:23:06]RAPDU: 90 00 [10:23:06]wFMCommunicate OK [10:23:06]wFMCommunicate request_size=4 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 0D 03 02 [10:23:06]Write to MH i2c: E2 08 00 AB 02 80 0D 03 02 00 00 00 00 28 [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 0B 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 0B 00 AB 02 00 D3 CD 47 2C 59 5F 65 E6 90 00 3F [10:23:06]RAPDU: D3 CD 47 2C 59 5F 65 E6 90 00 [10:23:06]wFMCommunicate OK [10:23:06]SAM_PROTO_SignData done [10:23:06]FM_MakeSignedData done [10:23:06]CreateOFDProtocolMessage [10:23:06]wFMCommunicate request_size=4 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 11 00 00 [10:23:06]Write to MH i2c: E2 08 00 AC 02 80 11 00 00 00 00 00 00 28 [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 17 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 17 00 AC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7B [10:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:23:06]wFMCommunicate OK [10:23:06]CreateOFDProtocolMessage done [10:23:06]OFDSenderStorePacket 148734 [10:23:06]StoreOFDPacket docnum=148734 [10:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 13 8E 07 01 4D 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 09 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 44 02 00 35 04 06 00 E3 C1 A0 0D 10 12 D3 CD 47 2C 59 5F 65 E6 [10:23:06]CheckFolder [10:23:06]dirname=/storage/ofd_packets [10:23:06]CheckFolder done [10:23:06]ProducePacketName [10:23:06]name=ofd_packets/00148734 [10:23:06]NVStorageSaveData ofd_packets/00148734 [10:23:06]File name is /storage/ofd_packets/00148734 [10:23:06]Write 301 bytes [10:23:06]NVStorageSaveData done [10:23:06]OFDSenderStorePacket done [10:23:06]KKMCreateOFDPacket done [10:23:06]NVStorageSaveData kkm_last_timestamp [10:23:06]File name is /storage/kkm_last_timestamp [10:23:06]Write 4 bytes [10:23:06]NVStorageSaveData done [10:23:06]ExternCall_PrintAddStr [10:23:06]wPrintStart [10:23:06]Write to MH i2c: 01 00 00 AD 02 AF [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: 01 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: 01 07 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 FF 0F C4 [10:23:06]RasterBufferAndPrint [10:23:06]line Счет N : (1)979661 [10:23:06]line ИНН: 02508201610067 [10:23:06]line Контрольно-Кассовый Чек [10:23:06]line ПРОДАЖА [10:23:06]line ТРК (МРК, ГНК) : 31 [10:23:06]line Товар: 2710124130 [10:23:06]line Аи-92-К-5 [10:23:06]line 14.950 * 66.90 [10:23:06]line = 1000.16 [10:23:06]line НДС 12% НСП 1% [10:23:06]line > о реализуемом товаре [10:23:06]line ОКРУГЛЕНИЕ: -0.16 [10:23:06]line ИТОГО: 1000.00 [10:23:06]line Внесено: 1000.00 [10:23:06]line СДАЧА: 0.00 [10:23:06]line НСП 1% : 8.85 [10:23:06]line НДС 12% : 106.21 [10:23:06]line Наличными: 1000.00 [10:23:06]line Безнал.: 0.00 [10:23:06]line Место: АЗС № 68 "Партнер Нефть" [10:23:06]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:23:06]line СНО: Общий режим [10:23:06]line Чек 73 04.06.2024 10:23 [10:23:06]line Смена: 368 ФФД: 1.0 [10:23:06]line ЗНМ: 0300000035 [10:23:06]line РНМ: 0000000000092720 [10:23:06]line Версия ККМ: 001 [10:23:06]line ФМ: 0000000000875057 [10:23:06]line ФД: 148734 [10:23:06]line ФПД: 250420753403922 [10:23:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102305&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148734&fm=250420753403922&tin=02508201610067®Number=0000000000092720&sum=100000 [10:23:06]OFD Sender: Processing packet 148734 [packets to send 100, broken 99] [10:23:06]ProducePacketName [10:23:06]name=ofd_packets/00148734 [10:23:06]OFD Sender: To server: pG, [10:23:06]CommunicateWithHost lk.salyk.kg:30040 [10:23:06]ConnectInit lk.salyk.kg [10:23:06]written 0, free lines is 4095 [10:23:06]Connected sock=10 [10:23:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 13 8E 07 01 4D 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 09 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 44 02 00 35 04 06 00 E3 C1 A0 0D 10 12 D3 CD 47 2C 59 5F 65 E6 [10:23:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C0 85 47 00 0D AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 44 02 00 F4 03 04 00 2D 92 5E 66 B6 04 01 00 00 38 EF C1 AE 82 67 24 6F [10:23:07]CommunicateWithHost err = 0 [10:23:07]CheckOFDResponse [10:23:07]1017 (14) - 77093643461234 [10:23:07]1041 (16) - 0000000000875057 [10:23:07]1040 (4) - 148734 [10:23:07]1012 (4) - 04.06.2024 04:03 [10:23:07]1206 (1) - 0 [10:23:07]OFD Sender: Remove packet 148734 [10:23:07]ProducePacketName [10:23:07]name=ofd_packets/00148734 [10:23:07]NVStorageDeleteData [10:23:07]Write to MH i2c: 01 00 00 D8 02 DA [10:23:07]Write i2c OK [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: 01 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: 01 07 00 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 6F 0C 5C [10:23:07]RasterBufferAndPrint [10:23:07]line [10:23:07]line [10:23:07]line [10:23:07]line [10:23:07]line [10:23:07]written 0, free lines is 3186 [10:23:07]MH_Cut [10:23:07]Write to MH i2c: D1 01 00 DF 02 01 B3 [10:23:07]Write i2c OK [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: D1 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: D1 01 00 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: D1 01 00 DF 02 00 B2 [10:23:07]Write to MH i2c: 01 00 00 E0 02 E2 [10:23:07]Write i2c OK [10:23:07]MH_I2C_Read... [10:23:07]OFD Sender: No OFD packet to send [10:23:08]*** Cut start [10:23:08]*** Partial cut [10:23:08]*** CUTSNS_PIN = 1 [10:23:08]*** CUTSNS_PIN = 0 [10:23:08]*** Brake cut motor [10:23:09]Read from MH i2c: 01 [10:23:09]MH_I2C_Read... [10:23:09]*** Stop cut motor [10:23:09]*** Cut end [10:23:09]Read from MH i2c: 01 07 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: 01 07 00 E0 02 00 00 00 00 00 FF 0F F7 [10:23:09]process_action close_receipt done [10:23:09]requested_data is exist [10:23:09]produce_requested_data [10:23:09]requested_item fm.sn is exist - process it [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 11 00 00 [10:23:09]Write to MH i2c: E2 08 00 E1 02 80 11 00 00 00 00 00 00 5D [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 17 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 17 00 E1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B0 [10:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:23:09]wFMCommunicate OK [10:23:09]requested_item fd.num is exist - process it [10:23:09]SAM_PROTO_GetFieldsCounters [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 13 00 00 [10:23:09]Write to MH i2c: E2 08 00 E2 02 80 13 00 00 00 00 00 00 60 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 62 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 62 00 E2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FE 44 02 00 0E 04 04 00 70 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 0C [10:23:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FE 44 02 00 0E 04 04 00 70 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 [10:23:09]wFMCommunicate OK [10:23:09]SAM_PROTO_GetFieldsCounters done [10:23:09]requested_item shift.num is exist - process it [10:23:09]requested_item shift.opened is exist - process it [10:23:09]req_shift_opened [10:23:09]FM_GetShiftState [10:23:09]SAM_PROTO_GetShiftState [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 13 01 00 [10:23:09]Write to MH i2c: E2 08 00 E3 02 80 13 01 00 00 00 00 00 62 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 0E 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 0E 00 E3 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 25 [10:23:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:23:09]wFMCommunicate OK [10:23:09]SAM_PROTO_GetShiftState done [10:23:09]FM_GetShiftState done [10:23:09]req_shift_opened done [10:23:09]requested_item shift.open_date is exist - process it [10:23:09]req_shift_open_date [10:23:09]req_shift_open_date done [10:23:09]produce_requested_data done [10:23:09]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148734,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:23:09]process_action_free close_receipt [10:23:09]json_value_free [10:23:09]json_value_free done [10:23:09]process_json_proto returns [10:23:09]Send response to host [10:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148734,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:23:09]free response buf [10:23:09]execute_script done [10:23:09]execute_script returns [10:23:09]free content buf [10:23:09]Sock 9.Close socket [10:23:09]Sock 9.Thread stoped [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:25]accept exits with 7 [10:23:25]New connection [10:23:25]New thread 3067379044 created [10:23:25]Thread 3067235684 joined [10:23:25]Waiting for new connection... [10:23:25] Sock 7.Parse request [10:23:25]Sock 7.Check first char [10:23:25]Sock 7.First char is OK [10:23:25]request: POST /json_proto HTTP/1.0 [10:23:25]Method: POST [10:23:25]URL: /json_proto [10:23:25]Method is POST - this is cgi request [10:23:25]url: /json_proto [10:23:25]query_string will be loaded in cgi processing [10:23:25]execute_cgi json_proto POST (null) [10:23:25]execute_cgi path=json_proto method=POST [10:23:25]POST find Content-Length [10:23:25]Host: 172.17.38.4:8080 [10:23:25]Content-Length: 983 [10:23:25]Content-Type: application/json [10:23:25] [10:23:25]POST finish read [10:23:25]Found Content-Length = 983 [10:23:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 25.800, "sum" : 1700.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.80 \u0441\u043E\u043C", "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:25]execute_script... [10:23: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)979660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 25.800, "sum" : 1700.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.80 \u0441\u043E\u043C", "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:25]POST & json_proto [10:23:25]process_json_proto [10:23:25]json parsed OK: [10:23:25]protocol is kg_v1.0 [10:23:25]action value=close_receipt [10:23:25]process_action close_receipt [10:23:25]cmd_close_receipt [10:23:25]MH_GetDate [10:23:25]Write to MH i2c: F0 00 00 E4 02 D5 [10:23:25]Write i2c OK [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: F0 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: F0 09 00 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: F0 09 00 E4 02 00 1E EB 5E 66 CC 51 87 64 B3 [10:23:25]GetLastDocTimeStamp 1717496585 [10:23:25]current date 1717496606 [10:23:25]FM_GetShiftState [10:23:25]SAM_PROTO_GetShiftState [10:23:25]wFMCommunicate request_size=4 [10:23:25]MH_SAM_APDU [10:23:25]CAPDU: 80 13 01 00 [10:23:25]Write to MH i2c: E2 08 00 E5 02 80 13 01 00 00 00 00 00 64 [10:23:25]Write i2c OK [10:23:25]MH_I2C_Read... [10:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:25]Read from MH i2c: E2 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 0E 00 [10:23:25]MH_I2C_Read... [10:23:25]Read from MH i2c: E2 0E 00 E5 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 27 [10:23:25]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:23:25]wFMCommunicate OK [10:23:25]SAM_PROTO_GetShiftState done [10:23:25]FM_GetShiftState done [10:23:25]opened in 1717460629 [10:23:25]opened+sec_in_day 1717547029 [10:23:25]quantity*price = 170022 [10:23:25]sum+1 = 170023 [10:23:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.55 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 74 04.06.2024 10:23 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа АИ-92 номер 68 сэкономлено 25.80 сом ФМ: 0000000000875057 ФД: 148735 ФПД: 162789243599582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102326&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148735&fm=162789243599582&tin=02508201610067®Number=0000000000092720&sum=170000 [10:23:27]StoreToDocumentArchive [10:23:27]shift 368 fd 148735 [10:23:27]save to /storage/0368/doc_00148735 [10:23:27]save last doc name /storage/0368/doc_00148735 to /storage/kkm_last_doc_name [10:23:27]save OK [10:23:27]Clear old archive folders... [10:23:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:27]tlvbuf is 00FC0390 [10:23:27]SAM_PROTO_ClearQueue [10:23:27]wFMCommunicate request_size=4 [10:23:27]MH_SAM_APDU [10:23:27]CAPDU: 80 09 00 00 [10:23:27]Write to MH i2c: E2 08 00 F2 02 80 09 00 00 00 00 00 00 66 [10:23:27]Write i2c OK [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 [10:23:27]MH_I2C_Read... [10:23:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:27]Read from MH i2c: E2 03 00 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 03 00 F2 02 00 90 00 68 [10:23:27]RAPDU: 90 00 [10:23:27]wFMCommunicate OK [10:23:27]SAM_PROTO_ClearQueue done [10:23:27]KKMCreateOFDPacket [10:23:27]OFDProtocolAddRootSTLVToBuf [10:23:27]FM_MakeSignedData [10:23:27]FM_MakeSignedData [10:23:27]SAM_PROTO_SignData [10:23:27]wFMCommunicate request_size=4 [10:23:27]MH_SAM_APDU [10:23:27]CAPDU: 80 0D 01 02 [10:23:27]Write to MH i2c: E2 08 00 F3 02 80 0D 01 02 00 00 00 00 6E [10:23:27]Write i2c OK [10:23:27]MH_I2C_Read... [10:23:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:27]Read from MH i2c: E2 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 03 00 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 03 00 F3 02 00 90 00 69 [10:23:27]RAPDU: 90 00 [10:23:27]wFMCommunicate OK [10:23:27]wFMCommunicate request_size=255 [10:23:27]MH_SAM_APDU [10:23:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 64 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 1E EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 44 02 00 35 04 06 00 94 [10:23:27]Write to MH i2c: E2 02 01 F4 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 64 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 1E EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 44 02 00 35 04 06 00 94 00 00 9E [10:23:27]Write i2c OK [10:23:27]MH_I2C_Read... [10:23:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:27]Read from MH i2c: E2 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 03 00 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 03 00 F4 02 00 90 00 6A [10:23:27]RAPDU: 90 00 [10:23:27]wFMCommunicate OK [10:23:27]wFMCommunicate request_size=10 [10:23:27]MH_SAM_APDU [10:23:27]CAPDU: 80 0D 02 02 05 0E 53 09 BA DE [10:23:27]Write to MH i2c: E2 0D 00 F5 02 80 0D 02 02 05 00 0E 53 09 BA DE 00 00 7D [10:23:27]Write i2c OK [10:23:27]MH_I2C_Read... [10:23:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:27]Read from MH i2c: E2 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 03 00 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 03 00 F5 02 00 90 00 6B [10:23:27]RAPDU: 90 00 [10:23:27]wFMCommunicate OK [10:23:27]wFMCommunicate request_size=4 [10:23:27]MH_SAM_APDU [10:23:27]CAPDU: 80 0D 03 02 [10:23:27]Write to MH i2c: E2 08 00 F6 02 80 0D 03 02 00 00 00 00 73 [10:23:27]Write i2c OK [10:23:27]MH_I2C_Read... [10:23:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:27]Read from MH i2c: E2 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 0B 00 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 0B 00 F6 02 00 1F B6 AA D8 BF 30 E1 7C 90 00 17 [10:23:27]RAPDU: 1F B6 AA D8 BF 30 E1 7C 90 00 [10:23:27]wFMCommunicate OK [10:23:27]SAM_PROTO_SignData done [10:23:27]FM_MakeSignedData done [10:23:27]CreateOFDProtocolMessage [10:23:27]wFMCommunicate request_size=4 [10:23:27]MH_SAM_APDU [10:23:27]CAPDU: 80 11 00 00 [10:23:27]Write to MH i2c: E2 08 00 F7 02 80 11 00 00 00 00 00 00 73 [10:23:27]Write i2c OK [10:23:27]MH_I2C_Read... [10:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:27]Read from MH i2c: E2 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 17 00 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: E2 17 00 F7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C6 [10:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:23:27]wFMCommunicate OK [10:23:27]CreateOFDProtocolMessage done [10:23:27]OFDSenderStorePacket 148735 [10:23:27]StoreOFDPacket docnum=148735 [10:23:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F4 48 07 01 A0 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 35 FF 03 08 00 03 C8 64 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 1E EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 44 02 00 35 04 06 00 94 0E 53 09 BA DE 1F B6 AA D8 BF 30 E1 7C [10:23:27]CheckFolder [10:23:27]dirname=/storage/ofd_packets [10:23:27]CheckFolder done [10:23:27]ProducePacketName [10:23:27]name=ofd_packets/00148735 [10:23:27]NVStorageSaveData ofd_packets/00148735 [10:23:27]File name is /storage/ofd_packets/00148735 [10:23:27]Write 301 bytes [10:23:27]NVStorageSaveData done [10:23:27]OFDSenderStorePacket done [10:23:27]KKMCreateOFDPacket done [10:23:27]NVStorageSaveData kkm_last_timestamp [10:23:27]File name is /storage/kkm_last_timestamp [10:23:27]Write 4 bytes [10:23:27]NVStorageSaveData done [10:23:27]ExternCall_PrintAddStr [10:23:27]wPrintStart [10:23:27]Write to MH i2c: 01 00 00 F8 02 FA [10:23:27]Write i2c OK [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: 01 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: 01 07 00 [10:23:27]MH_I2C_Read... [10:23:27]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 FF 0F 0F [10:23:27]RasterBufferAndPrint [10:23:27]line Счет N : (1)979660 [10:23:27]line ИНН: 02508201610067 [10:23:27]line Контрольно-Кассовый Чек [10:23:27]line ПРОДАЖА [10:23:27]line ТРК (МРК, ГНК) : 12 [10:23:27]line Товар: 2710124130 [10:23:27]line Аи-92-К-5 [10:23:27]line 25.800 * 65.90 [10:23:27]line = 1700.22 [10:23:27]line НДС 12% НСП 1% [10:23:27]line > о реализуемом товаре [10:23:27]line ОКРУГЛЕНИЕ: -0.22 [10:23:27]line ИТОГО: 1700.00 [10:23:27]line Внесено: 1700.00 [10:23:27]line СДАЧА: 0.00 [10:23:27]line НСП 1% : 15.05 [10:23:27]line НДС 12% : 180.55 [10:23:27]line Наличными: 1700.00 [10:23:27]line Безнал.: 0.00 [10:23:27]line Место: АЗС № 68 "Партнер Нефть" [10:23:27]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:23:27]line СНО: Общий режим [10:23:27]line Чек 74 04.06.2024 10:23 [10:23:27]line Смена: 368 ФФД: 1.0 [10:23:27]line ЗНМ: 0300000035 [10:23:27]line РНМ: 0000000000092720 [10:23:27]line Версия ККМ: 001 [10:23:27]line [10:23:27]line Дисконтная программа [10:23:27]line АИ-92 [10:23:27]line номер 68 [10:23:27]line сэкономлено 25.80 сом [10:23:27]line ФМ: 0000000000875057 [10:23:27]line ФД: 148735 [10:23:27]line ФПД: 162789243599582 [10:23:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102326&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148735&fm=162789243599582&tin=02508201610067®Number=0000000000092720&sum=170000 [10:23:27]OFD Sender: Processing packet 148735 [packets to send 100, broken 99] [10:23:27]ProducePacketName [10:23:27]name=ofd_packets/00148735 [10:23:27]OFD Sender: To server: pG, [10:23:27]CommunicateWithHost lk.salyk.kg:30040 [10:23:27]ConnectInit lk.salyk.kg [10:23:27]written 0, free lines is 4095 [10:23:27]Connected sock=10 [10:23:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F4 48 07 01 A0 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 35 FF 03 08 00 03 C8 64 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 1E EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 44 02 00 35 04 06 00 94 0E 53 09 BA DE 1F B6 AA D8 BF 30 E1 7C [10:23:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CD 47 47 00 E8 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 38 37 35 30 35 37 10 04 04 00 FF 44 02 00 F4 03 04 00 42 92 5E 66 B6 04 01 00 00 A7 3C 16 1B 3B B4 25 FB [10:23:28]CommunicateWithHost err = 0 [10:23:28]CheckOFDResponse [10:23:28]1017 (14) - 77093643461234 [10:23:28]1041 (16) - 0000000000875057 [10:23:28]1040 (4) - 148735 [10:23:28]1012 (4) - 04.06.2024 04:04 [10:23:28]1206 (1) - 0 [10:23:28]OFD Sender: Remove packet 148735 [10:23:28]ProducePacketName [10:23:28]name=ofd_packets/00148735 [10:23:28]NVStorageDeleteData [10:23:28]Write to MH i2c: 01 00 00 28 03 2B [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: 01 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: 01 07 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 FB 0B 38 [10:23:28]RasterBufferAndPrint [10:23:28]line [10:23:28]line [10:23:28]line [10:23:28]line [10:23:28]line [10:23:28]written 0, free lines is 3070 [10:23:28]MH_Cut [10:23:28]Write to MH i2c: D1 01 00 2F 03 01 04 [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: D1 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: D1 01 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: D1 01 00 2F 03 00 03 [10:23:28]Write to MH i2c: 01 00 00 30 03 33 [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]OFD Sender: No OFD packet to send [10:23:29]*** Cut start [10:23:29]*** Partial cut [10:23:29]*** CUTSNS_PIN = 1 [10:23:29]*** CUTSNS_PIN = 0 [10:23:30]*** Brake cut motor [10:23:30]Read from MH i2c: 01 [10:23:30]MH_I2C_Read... [10:23:30]*** Stop cut motor [10:23:30]*** Cut end [10:23:30]Read from MH i2c: 01 07 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FF 0F 48 [10:23:30]process_action close_receipt done [10:23:30]requested_data is exist [10:23:30]produce_requested_data [10:23:30]requested_item fm.sn is exist - process it [10:23:30]wFMCommunicate request_size=4 [10:23:30]MH_SAM_APDU [10:23:30]CAPDU: 80 11 00 00 [10:23:30]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [10:23:30]Write i2c OK [10:23:30]MH_I2C_Read... [10:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:30]Read from MH i2c: E2 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 17 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 01 [10:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:23:30]wFMCommunicate OK [10:23:30]requested_item fd.num is exist - process it [10:23:30]SAM_PROTO_GetFieldsCounters [10:23:30]wFMCommunicate request_size=4 [10:23:30]MH_SAM_APDU [10:23:30]CAPDU: 80 13 00 00 [10:23:30]Write to MH i2c: E2 08 00 32 03 80 13 00 00 00 00 00 00 B1 [10:23:30]Write i2c OK [10:23:30]MH_I2C_Read... [10:23:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:30]Read from MH i2c: E2 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 62 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 62 00 32 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FF 44 02 00 0E 04 04 00 70 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 61 [10:23:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FF 44 02 00 0E 04 04 00 70 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 [10:23:30]wFMCommunicate OK [10:23:30]SAM_PROTO_GetFieldsCounters done [10:23:30]requested_item shift.num is exist - process it [10:23:30]requested_item shift.opened is exist - process it [10:23:30]req_shift_opened [10:23:30]FM_GetShiftState [10:23:30]SAM_PROTO_GetShiftState [10:23:30]wFMCommunicate request_size=4 [10:23:30]MH_SAM_APDU [10:23:30]CAPDU: 80 13 01 00 [10:23:30]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [10:23:30]Write i2c OK [10:23:30]MH_I2C_Read... [10:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:30]Read from MH i2c: E2 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 0E 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 76 [10:23:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:23:30]wFMCommunicate OK [10:23:30]SAM_PROTO_GetShiftState done [10:23:30]FM_GetShiftState done [10:23:30]req_shift_opened done [10:23:30]requested_item shift.open_date is exist - process it [10:23:30]req_shift_open_date [10:23:30]req_shift_open_date done [10:23:30]produce_requested_data done [10:23:30]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148735,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:23:30]process_action_free close_receipt [10:23:30]json_value_free [10:23:30]json_value_free done [10:23:30]process_json_proto returns [10:23:30]Send response to host [10:23:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148735,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:23:30]free response buf [10:23:30]execute_script done [10:23:30]execute_script returns [10:23:30]free content buf [10:23:30]Sock 7.Close socket [10:23:30]Sock 7.Thread stoped [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:28]accept exits with 9 [10:25:28]New connection [10:25:28]New thread 3067235684 created [10:25:28]Thread 3067379044 joined [10:25:28]Waiting for new connection... [10:25:28] Sock 9.Parse request [10:25:28]Sock 9.Check first char [10:25:28]Sock 9.First char is OK [10:25:28]request: POST /json_proto HTTP/1.0 [10:25:28]Method: POST [10:25:28]URL: /json_proto [10:25:28]Method is POST - this is cgi request [10:25:28]url: /json_proto [10:25:28]query_string will be loaded in cgi processing [10:25:28]execute_cgi json_proto POST (null) [10:25:28]execute_cgi path=json_proto method=POST [10:25:28]POST find Content-Length [10:25:28]Host: 172.17.38.4:8080 [10:25:28]Content-Length: 677 [10:25:28]Content-Type: application/json [10:25:28] [10:25:28]POST finish read [10:25:28]Found Content-Length = 677 [10:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:28]execute_script... [10:25: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)979662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:28]POST & json_proto [10:25:28]process_json_proto [10:25:28]json parsed OK: [10:25:28]protocol is kg_v1.0 [10:25:28]action value=close_receipt [10:25:28]process_action close_receipt [10:25:28]cmd_close_receipt [10:25:28]MH_GetDate [10:25:28]Write to MH i2c: F0 00 00 34 03 26 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: F0 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: F0 09 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: F0 09 00 34 03 00 99 EB 5E 66 CC 51 87 64 7F [10:25:28]GetLastDocTimeStamp 1717496606 [10:25:28]current date 1717496729 [10:25:28]FM_GetShiftState [10:25:28]SAM_PROTO_GetShiftState [10:25:28]wFMCommunicate request_size=4 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 13 01 00 [10:25:28]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 0E 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 78 [10:25:28]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:25:28]wFMCommunicate OK [10:25:28]SAM_PROTO_GetShiftState done [10:25:28]FM_GetShiftState done [10:25:28]opened in 1717460629 [10:25:28]opened+sec_in_day 1717547029 [10:25:28]quantity*price = 50041 [10:25:28]sum+1 = 50042 [10:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 75 04.06.2024 10:25 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148736 ФПД: 217801685266474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102529&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148736&fm=217801685266474&tin=02508201610067®Number=0000000000092720&sum=50000 [10:25:30]StoreToDocumentArchive [10:25:30]shift 368 fd 148736 [10:25:30]save to /storage/0368/doc_00148736 [10:25:30]save last doc name /storage/0368/doc_00148736 to /storage/kkm_last_doc_name [10:25:30]save OK [10:25:30]Clear old archive folders... [10:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:30]tlvbuf is 00FC0D90 [10:25:30]SAM_PROTO_ClearQueue [10:25:30]wFMCommunicate request_size=4 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 09 00 00 [10:25:30]Write to MH i2c: E2 08 00 42 03 80 09 00 00 00 00 00 00 B7 [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 03 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [10:25:30]RAPDU: 90 00 [10:25:30]wFMCommunicate OK [10:25:30]SAM_PROTO_ClearQueue done [10:25:30]KKMCreateOFDPacket [10:25:30]OFDProtocolAddRootSTLVToBuf [10:25:30]FM_MakeSignedData [10:25:30]FM_MakeSignedData [10:25:30]SAM_PROTO_SignData [10:25:30]wFMCommunicate request_size=4 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 0D 01 02 [10:25:30]Write to MH i2c: E2 08 00 43 03 80 0D 01 02 00 00 00 00 BF [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 03 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [10:25:30]RAPDU: 90 00 [10:25:30]wFMCommunicate OK [10:25:30]wFMCommunicate request_size=255 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 45 02 00 35 04 06 00 C6 [10:25:30]Write to MH i2c: E2 02 01 44 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 99 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 45 02 00 35 04 06 00 C6 00 00 5A [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 03 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [10:25:30]RAPDU: 90 00 [10:25:30]wFMCommunicate OK [10:25:30]wFMCommunicate request_size=10 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 0D 02 02 05 16 E8 14 F0 2A [10:25:30]Write to MH i2c: E2 0D 00 45 03 80 0D 02 02 05 00 16 E8 14 F0 2A 00 00 F8 [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 03 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [10:25:30]RAPDU: 90 00 [10:25:30]wFMCommunicate OK [10:25:30]wFMCommunicate request_size=4 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 0D 03 02 [10:25:30]Write to MH i2c: E2 08 00 46 03 80 0D 03 02 00 00 00 00 C4 [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 0B 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 0B 00 46 03 00 4A 26 09 AF E8 E1 36 DD 90 00 C9 [10:25:30]RAPDU: 4A 26 09 AF E8 E1 36 DD 90 00 [10:25:30]wFMCommunicate OK [10:25:30]SAM_PROTO_SignData done [10:25:30]FM_MakeSignedData done [10:25:30]CreateOFDProtocolMessage [10:25:30]wFMCommunicate request_size=4 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 11 00 00 [10:25:30]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 17 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 17 00 47 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 17 [10:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:25:30]wFMCommunicate OK [10:25:30]CreateOFDProtocolMessage done [10:25:30]OFDSenderStorePacket 148736 [10:25:30]StoreOFDPacket docnum=148736 [10:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 8D 8A 07 01 ED 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 45 02 00 35 04 06 00 C6 16 E8 14 F0 2A 4A 26 09 AF E8 E1 36 DD [10:25:30]CheckFolder [10:25:30]dirname=/storage/ofd_packets [10:25:30]CheckFolder done [10:25:30]ProducePacketName [10:25:30]name=ofd_packets/00148736 [10:25:30]NVStorageSaveData ofd_packets/00148736 [10:25:30]File name is /storage/ofd_packets/00148736 [10:25:30]Write 301 bytes [10:25:30]NVStorageSaveData done [10:25:30]OFDSenderStorePacket done [10:25:30]KKMCreateOFDPacket done [10:25:30]NVStorageSaveData kkm_last_timestamp [10:25:30]File name is /storage/kkm_last_timestamp [10:25:30]Write 4 bytes [10:25:30]NVStorageSaveData done [10:25:30]ExternCall_PrintAddStr [10:25:30]wPrintStart [10:25:30]Write to MH i2c: 01 00 00 48 03 4B [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: 01 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: 01 07 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [10:25:30]RasterBufferAndPrint [10:25:30]line Счет N : (1)979662 [10:25:30]line ИНН: 02508201610067 [10:25:30]line Контрольно-Кассовый Чек [10:25:30]line ПРОДАЖА [10:25:30]line ТРК (МРК, ГНК) : 12 [10:25:30]line Товар: 2710124130 [10:25:30]line Аи-92-К-5 [10:25:30]line 7.480 * 66.90 [10:25:30]line = 500.41 [10:25:30]line НДС 12% НСП 1% [10:25:30]line > о реализуемом товаре [10:25:30]line ОКРУГЛЕНИЕ: -0.41 [10:25:30]line ИТОГО: 500.00 [10:25:30]line Внесено: 500.00 [10:25:30]line СДАЧА: 0.00 [10:25:30]line НСП 1% : 4.43 [10:25:30]line НДС 12% : 53.14 [10:25:30]line Наличными: 500.00 [10:25:30]line Безнал.: 0.00 [10:25:30]line Место: АЗС № 68 "Партнер Нефть" [10:25:30]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:25:30]line СНО: Общий режим [10:25:30]line Чек 75 04.06.2024 10:25 [10:25:30]line Смена: 368 ФФД: 1.0 [10:25:30]line ЗНМ: 0300000035 [10:25:30]line РНМ: 0000000000092720 [10:25:30]line Версия ККМ: 001 [10:25:30]line ФМ: 0000000000875057 [10:25:30]line ФД: 148736 [10:25:30]line ФПД: 217801685266474 [10:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102529&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148736&fm=217801685266474&tin=02508201610067®Number=0000000000092720&sum=50000 [10:25:30]OFD Sender: Processing packet 148736 [packets to send 100, broken 99] [10:25:30]ProducePacketName [10:25:30]name=ofd_packets/00148736 [10:25:30]OFD Sender: To server: pG, [10:25:30]CommunicateWithHost lk.salyk.kg:30040 [10:25:30]ConnectInit lk.salyk.kg [10:25:30]written 0, free lines is 4095 [10:25:31]Connected sock=10 [10:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 8D 8A 07 01 ED 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 45 02 00 35 04 06 00 C6 16 E8 14 F0 2A 4A 26 09 AF E8 E1 36 DD [10:25:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E9 53 47 00 E3 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 45 02 00 F4 03 04 00 BD 92 5E 66 B6 04 01 00 00 01 63 61 88 A6 4E F5 4E [10:25:31]CommunicateWithHost err = 0 [10:25:31]CheckOFDResponse [10:25:31]1017 (14) - 77093643461234 [10:25:31]1041 (16) - 0000000000875057 [10:25:31]1040 (4) - 148736 [10:25:31]1012 (4) - 04.06.2024 04:06 [10:25:31]1206 (1) - 0 [10:25:31]OFD Sender: Remove packet 148736 [10:25:31]ProducePacketName [10:25:31]name=ofd_packets/00148736 [10:25:31]NVStorageDeleteData [10:25:31]Write to MH i2c: 01 00 00 73 03 76 [10:25:31]Write i2c OK [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: 01 [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: 01 07 00 [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 6F 0C F8 [10:25:31]RasterBufferAndPrint [10:25:31]line [10:25:31]line [10:25:31]line [10:25:31]line [10:25:31]line [10:25:31]written 0, free lines is 3186 [10:25:31]MH_Cut [10:25:31]Write to MH i2c: D1 01 00 7A 03 01 4F [10:25:31]Write i2c OK [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: D1 [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: D1 01 00 [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: D1 01 00 7A 03 00 4E [10:25:31]Write to MH i2c: 01 00 00 7B 03 7E [10:25:31]Write i2c OK [10:25:31]MH_I2C_Read... [10:25:31]OFD Sender: No OFD packet to send [10:25:32]*** Cut start [10:25:32]*** Partial cut [10:25:32]*** CUTSNS_PIN = 1 [10:25:32]*** CUTSNS_PIN = 0 [10:25:32]*** Brake cut motor [10:25:33]Read from MH i2c: 01 [10:25:33]MH_I2C_Read... [10:25:33]*** Stop cut motor [10:25:33]*** Cut end [10:25:33]Read from MH i2c: 01 07 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: 01 07 00 7B 03 00 00 00 00 00 FF 0F 93 [10:25:33]process_action close_receipt done [10:25:33]requested_data is exist [10:25:33]produce_requested_data [10:25:33]requested_item fm.sn is exist - process it [10:25:33]wFMCommunicate request_size=4 [10:25:33]MH_SAM_APDU [10:25:33]CAPDU: 80 11 00 00 [10:25:33]Write to MH i2c: E2 08 00 7C 03 80 11 00 00 00 00 00 00 F9 [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:33]Read from MH i2c: E2 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 17 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 17 00 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4C [10:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:25:33]wFMCommunicate OK [10:25:33]requested_item fd.num is exist - process it [10:25:33]SAM_PROTO_GetFieldsCounters [10:25:33]wFMCommunicate request_size=4 [10:25:33]MH_SAM_APDU [10:25:33]CAPDU: 80 13 00 00 [10:25:33]Write to MH i2c: E2 08 00 7D 03 80 13 00 00 00 00 00 00 FC [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:33]Read from MH i2c: E2 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 62 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 62 00 7D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 00 45 02 00 0E 04 04 00 70 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 B1 [10:25:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 00 45 02 00 0E 04 04 00 70 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 [10:25:33]wFMCommunicate OK [10:25:33]SAM_PROTO_GetFieldsCounters done [10:25:33]requested_item shift.num is exist - process it [10:25:33]requested_item shift.opened is exist - process it [10:25:33]req_shift_opened [10:25:33]FM_GetShiftState [10:25:33]SAM_PROTO_GetShiftState [10:25:33]wFMCommunicate request_size=4 [10:25:33]MH_SAM_APDU [10:25:33]CAPDU: 80 13 01 00 [10:25:33]Write to MH i2c: E2 08 00 7E 03 80 13 01 00 00 00 00 00 FE [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:33]Read from MH i2c: E2 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 0E 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 0E 00 7E 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C1 [10:25:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:25:33]wFMCommunicate OK [10:25:33]SAM_PROTO_GetShiftState done [10:25:33]FM_GetShiftState done [10:25:33]req_shift_opened done [10:25:33]requested_item shift.open_date is exist - process it [10:25:33]req_shift_open_date [10:25:33]req_shift_open_date done [10:25:33]produce_requested_data done [10:25:33]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148736,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:25:33]process_action_free close_receipt [10:25:33]json_value_free [10:25:33]json_value_free done [10:25:33]process_json_proto returns [10:25:33]Send response to host [10:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148736,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:25:33]free response buf [10:25:33]execute_script done [10:25:33]execute_script returns [10:25:33]free content buf [10:25:33]Sock 9.Close socket [10:25:33]Sock 9.Thread stoped [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]accept exits with 7 [10:25:56]New connection [10:25:56]New thread 3067379044 created [10:25:56]Thread 3067235684 joined [10:25:56]Waiting for new connection... [10:25:56] Sock 7.Parse request [10:25:56]Sock 7.Check first char [10:25:56]Sock 7.First char is OK [10:25:56]request: POST /json_proto HTTP/1.0 [10:25:56]Method: POST [10:25:56]URL: /json_proto [10:25:56]Method is POST - this is cgi request [10:25:56]url: /json_proto [10:25:56]query_string will be loaded in cgi processing [10:25:56]execute_cgi json_proto POST (null) [10:25:56]execute_cgi path=json_proto method=POST [10:25:56]POST find Content-Length [10:25:56]Host: 172.17.38.4:8080 [10:25:56]Content-Length: 678 [10:25:56]Content-Type: application/json [10:25:56] [10:25:56]POST finish read [10:25:56]Found Content-Length = 678 [10:25:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:25:56]execute_script... [10:25: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)979663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:25:56]POST & json_proto [10:25:56]process_json_proto [10:25:56]json parsed OK: [10:25:56]protocol is kg_v1.0 [10:25:56]action value=close_receipt [10:25:56]process_action close_receipt [10:25:56]cmd_close_receipt [10:25:56]MH_GetDate [10:25:56]Write to MH i2c: F0 00 00 7F 03 71 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: F0 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: F0 09 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: F0 09 00 7F 03 00 B4 EB 5E 66 CC 51 87 64 E5 [10:25:56]GetLastDocTimeStamp 1717496729 [10:25:56]current date 1717496756 [10:25:56]FM_GetShiftState [10:25:56]SAM_PROTO_GetShiftState [10:25:56]wFMCommunicate request_size=4 [10:25:56]MH_SAM_APDU [10:25:56]CAPDU: 80 13 01 00 [10:25:56]Write to MH i2c: E2 08 00 80 03 80 13 01 00 00 00 00 00 00 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:56]Read from MH i2c: E2 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 0E 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 0E 00 80 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C3 [10:25:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:25:56]wFMCommunicate OK [10:25:56]SAM_PROTO_GetShiftState done [10:25:56]FM_GetShiftState done [10:25:56]opened in 1717460629 [10:25:56]opened+sec_in_day 1717547029 [10:25:56]quantity*price = 80012 [10:25:56]sum+1 = 80013 [10:25:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 76 04.06.2024 10:25 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148737 ФПД: 213998134309264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102556&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148737&fm=213998134309264&tin=02508201610067®Number=0000000000092720&sum=80000 [10:25:57]StoreToDocumentArchive [10:25:57]shift 368 fd 148737 [10:25:57]save to /storage/0368/doc_00148737 [10:25:57]save last doc name /storage/0368/doc_00148737 to /storage/kkm_last_doc_name [10:25:57]save OK [10:25:57]Clear old archive folders... [10:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:57]tlvbuf is 00FB2F60 [10:25:57]SAM_PROTO_ClearQueue [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 09 00 00 [10:25:57]Write to MH i2c: E2 08 00 8D 03 80 09 00 00 00 00 00 00 02 [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [10:25:57]RAPDU: 90 00 [10:25:57]wFMCommunicate OK [10:25:57]SAM_PROTO_ClearQueue done [10:25:57]KKMCreateOFDPacket [10:25:57]OFDProtocolAddRootSTLVToBuf [10:25:57]FM_MakeSignedData [10:25:57]FM_MakeSignedData [10:25:57]SAM_PROTO_SignData [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 0D 01 02 [10:25:57]Write to MH i2c: E2 08 00 8E 03 80 0D 01 02 00 00 00 00 0A [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [10:25:57]RAPDU: 90 00 [10:25:57]wFMCommunicate OK [10:25:57]wFMCommunicate request_size=255 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 B4 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 45 02 00 35 04 06 00 C2 [10:25:57]Write to MH i2c: E2 02 01 8F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 B4 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 45 02 00 35 04 06 00 C2 00 00 AA [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [10:25:57]RAPDU: 90 00 [10:25:57]wFMCommunicate OK [10:25:57]wFMCommunicate request_size=10 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 0D 02 02 05 A1 52 C7 31 90 [10:25:57]Write to MH i2c: E2 0D 00 90 03 80 0D 02 02 05 00 A1 52 C7 31 90 00 00 92 [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:58]Read from MH i2c: E2 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 03 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [10:25:58]RAPDU: 90 00 [10:25:58]wFMCommunicate OK [10:25:58]wFMCommunicate request_size=4 [10:25:58]MH_SAM_APDU [10:25:58]CAPDU: 80 0D 03 02 [10:25:58]Write to MH i2c: E2 08 00 91 03 80 0D 03 02 00 00 00 00 0F [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:58]Read from MH i2c: E2 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 0B 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 0B 00 91 03 00 8D 01 6A B8 60 9E 10 7B 90 00 49 [10:25:58]RAPDU: 8D 01 6A B8 60 9E 10 7B 90 00 [10:25:58]wFMCommunicate OK [10:25:58]SAM_PROTO_SignData done [10:25:58]FM_MakeSignedData done [10:25:58]CreateOFDProtocolMessage [10:25:58]wFMCommunicate request_size=4 [10:25:58]MH_SAM_APDU [10:25:58]CAPDU: 80 11 00 00 [10:25:58]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:58]Read from MH i2c: E2 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 17 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 62 [10:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:25:58]wFMCommunicate OK [10:25:58]CreateOFDProtocolMessage done [10:25:58]OFDSenderStorePacket 148737 [10:25:58]StoreOFDPacket docnum=148737 [10:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 41 31 07 01 0A 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B4 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 45 02 00 35 04 06 00 C2 A1 52 C7 31 90 8D 01 6A B8 60 9E 10 7B [10:25:58]CheckFolder [10:25:58]dirname=/storage/ofd_packets [10:25:58]CheckFolder done [10:25:58]ProducePacketName [10:25:58]name=ofd_packets/00148737 [10:25:58]NVStorageSaveData ofd_packets/00148737 [10:25:58]File name is /storage/ofd_packets/00148737 [10:25:58]Write 301 bytes [10:25:58]NVStorageSaveData done [10:25:58]OFDSenderStorePacket done [10:25:58]KKMCreateOFDPacket done [10:25:58]NVStorageSaveData kkm_last_timestamp [10:25:58]File name is /storage/kkm_last_timestamp [10:25:58]Write 4 bytes [10:25:58]NVStorageSaveData done [10:25:58]ExternCall_PrintAddStr [10:25:58]wPrintStart [10:25:58]Write to MH i2c: 01 00 00 93 03 96 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 07 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [10:25:58]RasterBufferAndPrint [10:25:58]line Счет N : (1)979663 [10:25:58]line ИНН: 02508201610067 [10:25:58]line Контрольно-Кассовый Чек [10:25:58]line ПРОДАЖА [10:25:58]line ТРК (МРК, ГНК) : 22 [10:25:58]line Товар: 2710124130 [10:25:58]line Аи-92-К-5 [10:25:58]line 11.960 * 66.90 [10:25:58]line = 800.12 [10:25:58]line НДС 12% НСП 1% [10:25:58]line > о реализуемом товаре [10:25:58]line ОКРУГЛЕНИЕ: -0.12 [10:25:58]line ИТОГО: 800.00 [10:25:58]line Внесено: 800.00 [10:25:58]line СДАЧА: 0.00 [10:25:58]line НСП 1% : 7.08 [10:25:58]line НДС 12% : 84.97 [10:25:58]line Наличными: 800.00 [10:25:58]line Безнал.: 0.00 [10:25:58]line Место: АЗС № 68 "Партнер Нефть" [10:25:58]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:25:58]line СНО: Общий режим [10:25:58]line Чек 76 04.06.2024 10:25 [10:25:58]line Смена: 368 ФФД: 1.0 [10:25:58]line ЗНМ: 0300000035 [10:25:58]line РНМ: 0000000000092720 [10:25:58]line Версия ККМ: 001 [10:25:58]line ФМ: 0000000000875057 [10:25:58]line ФД: 148737 [10:25:58]line ФПД: 213998134309264 [10:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102556&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148737&fm=213998134309264&tin=02508201610067®Number=0000000000092720&sum=80000 [10:25:58]OFD Sender: Processing packet 148737 [packets to send 100, broken 99] [10:25:58]ProducePacketName [10:25:58]name=ofd_packets/00148737 [10:25:58]OFD Sender: To server: pG, [10:25:58]CommunicateWithHost lk.salyk.kg:30040 [10:25:58]ConnectInit lk.salyk.kg [10:25:58]written 0, free lines is 4095 [10:25:58]Connected sock=10 [10:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 41 31 07 01 0A 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B4 EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 45 02 00 35 04 06 00 C2 A1 52 C7 31 90 8D 01 6A B8 60 9E 10 7B [10:25:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 FF F2 47 00 21 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 45 02 00 F4 03 04 00 D9 92 5E 66 B6 04 01 00 00 C9 12 B0 A9 E2 23 96 60 [10:25:58]CommunicateWithHost err = 0 [10:25:58]CheckOFDResponse [10:25:58]1017 (14) - 77093643461234 [10:25:58]1041 (16) - 0000000000875057 [10:25:58]1040 (4) - 148737 [10:25:58]1012 (4) - 04.06.2024 04:06 [10:25:58]1206 (1) - 0 [10:25:58]OFD Sender: Remove packet 148737 [10:25:58]ProducePacketName [10:25:58]name=ofd_packets/00148737 [10:25:58]NVStorageDeleteData [10:25:58]Write to MH i2c: 01 00 00 BE 03 C1 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 07 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 07 00 BE 03 00 00 00 00 00 73 0C 47 [10:25:58]RasterBufferAndPrint [10:25:58]line [10:25:58]line [10:25:58]line [10:25:58]line [10:25:58]line [10:25:58]written 0, free lines is 3191 [10:25:58]MH_Cut [10:25:58]Write to MH i2c: D1 01 00 C5 03 01 9A [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: D1 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: D1 01 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: D1 01 00 C5 03 00 99 [10:25:58]Write to MH i2c: 01 00 00 C6 03 C9 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:59]OFD Sender: No OFD packet to send [10:26:00]*** Cut start [10:26:00]*** Partial cut [10:26:00]*** CUTSNS_PIN = 1 [10:26:00]*** CUTSNS_PIN = 0 [10:26:00]*** Brake cut motor [10:26:00]Read from MH i2c: 01 [10:26:00]MH_I2C_Read... [10:26:00]*** Stop cut motor [10:26:00]*** Cut end [10:26:00]Read from MH i2c: 01 07 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: 01 07 00 C6 03 00 00 00 00 00 FF 0F DE [10:26:00]process_action close_receipt done [10:26:00]requested_data is exist [10:26:00]produce_requested_data [10:26:00]requested_item fm.sn is exist - process it [10:26:00]wFMCommunicate request_size=4 [10:26:00]MH_SAM_APDU [10:26:00]CAPDU: 80 11 00 00 [10:26:00]Write to MH i2c: E2 08 00 C7 03 80 11 00 00 00 00 00 00 44 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:00]Read from MH i2c: E2 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 17 00 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 17 00 C7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 97 [10:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:26:00]wFMCommunicate OK [10:26:00]requested_item fd.num is exist - process it [10:26:00]SAM_PROTO_GetFieldsCounters [10:26:00]wFMCommunicate request_size=4 [10:26:00]MH_SAM_APDU [10:26:00]CAPDU: 80 13 00 00 [10:26:00]Write to MH i2c: E2 08 00 C8 03 80 13 00 00 00 00 00 00 47 [10:26:00]Write i2c OK [10:26:00]MH_I2C_Read... [10:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:00]Read from MH i2c: E2 [10:26:00]MH_I2C_Read... [10:26:00]Read from MH i2c: E2 62 00 [10:26:00]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 62 00 C8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 01 45 02 00 0E 04 04 00 70 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 00 [10:26:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 01 45 02 00 0E 04 04 00 70 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 [10:26:01]wFMCommunicate OK [10:26:01]SAM_PROTO_GetFieldsCounters done [10:26:01]requested_item shift.num is exist - process it [10:26:01]requested_item shift.opened is exist - process it [10:26:01]req_shift_opened [10:26:01]FM_GetShiftState [10:26:01]SAM_PROTO_GetShiftState [10:26:01]wFMCommunicate request_size=4 [10:26:01]MH_SAM_APDU [10:26:01]CAPDU: 80 13 01 00 [10:26:01]Write to MH i2c: E2 08 00 C9 03 80 13 01 00 00 00 00 00 49 [10:26:01]Write i2c OK [10:26:01]MH_I2C_Read... [10:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:01]Read from MH i2c: E2 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 0E 00 [10:26:01]MH_I2C_Read... [10:26:01]Read from MH i2c: E2 0E 00 C9 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0C [10:26:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:26:01]wFMCommunicate OK [10:26:01]SAM_PROTO_GetShiftState done [10:26:01]FM_GetShiftState done [10:26:01]req_shift_opened done [10:26:01]requested_item shift.open_date is exist - process it [10:26:01]req_shift_open_date [10:26:01]req_shift_open_date done [10:26:01]produce_requested_data done [10:26:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148737,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:26:01]process_action_free close_receipt [10:26:01]json_value_free [10:26:01]json_value_free done [10:26:01]process_json_proto returns [10:26:01]Send response to host [10:26:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148737,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:26:01]free response buf [10:26:01]execute_script done [10:26:01]execute_script returns [10:26:01]free content buf [10:26:01]Sock 7.Close socket [10:26:01]Sock 7.Thread stoped [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:36]accept exits with 9 [10:26:36]New connection [10:26:36]New thread 3067235684 created [10:26:36]Thread 3067379044 joined [10:26:36]Waiting for new connection... [10:26:36] Sock 9.Parse request [10:26:36]Sock 9.Check first char [10:26:36]Sock 9.First char is OK [10:26:36]request: POST /json_proto HTTP/1.0 [10:26:36]Method: POST [10:26:36]URL: /json_proto [10:26:36]Method is POST - this is cgi request [10:26:36]url: /json_proto [10:26:36]query_string will be loaded in cgi processing [10:26:36]execute_cgi json_proto POST (null) [10:26:36]execute_cgi path=json_proto method=POST [10:26:36]POST find Content-Length [10:26:36]Host: 172.17.38.4:8080 [10:26:36]Content-Length: 674 [10:26:36]Content-Type: application/json [10:26:36] [10:26:36]POST finish read [10:26:36]Found Content-Length = 674 [10:26:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [10:26:36]execute_script... [10:26: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)979664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [10:26:36]POST & json_proto [10:26:36]process_json_proto [10:26:36]json parsed OK: [10:26:36]protocol is kg_v1.0 [10:26:36]action value=close_receipt [10:26:36]process_action close_receipt [10:26:36]cmd_close_receipt [10:26:36]MH_GetDate [10:26:36]Write to MH i2c: F0 00 00 CA 03 BC [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: F0 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: F0 09 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: F0 09 00 CA 03 00 DD EB 5E 66 CC 51 87 64 59 [10:26:36]GetLastDocTimeStamp 1717496756 [10:26:36]current date 1717496797 [10:26:36]FM_GetShiftState [10:26:36]SAM_PROTO_GetShiftState [10:26:36]wFMCommunicate request_size=4 [10:26:36]MH_SAM_APDU [10:26:36]CAPDU: 80 13 01 00 [10:26:36]Write to MH i2c: E2 08 00 CB 03 80 13 01 00 00 00 00 00 4B [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:36]Read from MH i2c: E2 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 0E 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 0E 00 CB 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0E [10:26:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:26:36]wFMCommunicate OK [10:26:36]SAM_PROTO_GetShiftState done [10:26:36]FM_GetShiftState done [10:26:36]opened in 1717460629 [10:26:36]opened+sec_in_day 1717547029 [10:26:36]quantity*price = 50009 [10:26:36]sum+1 = 50010 [10:26:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 77 04.06.2024 10:26 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148738 ФПД: 68683579506867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102637&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148738&fm=68683579506867&tin=02508201610067®Number=0000000000092720&sum=50000 [10:26:37]StoreToDocumentArchive [10:26:37]shift 368 fd 148738 [10:26:37]save to /storage/0368/doc_00148738 [10:26:37]save last doc name /storage/0368/doc_00148738 to /storage/kkm_last_doc_name [10:26:37]save OK [10:26:37]Clear old archive folders... [10:26:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:37]tlvbuf is 00FC46C0 [10:26:37]SAM_PROTO_ClearQueue [10:26:37]wFMCommunicate request_size=4 [10:26:37]MH_SAM_APDU [10:26:37]CAPDU: 80 09 00 00 [10:26:37]Write to MH i2c: E2 08 00 D8 03 80 09 00 00 00 00 00 00 4D [10:26:37]Write i2c OK [10:26:37]MH_I2C_Read... [10:26:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:37]Read from MH i2c: E2 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 03 00 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [10:26:37]RAPDU: 90 00 [10:26:37]wFMCommunicate OK [10:26:37]SAM_PROTO_ClearQueue done [10:26:37]KKMCreateOFDPacket [10:26:37]OFDProtocolAddRootSTLVToBuf [10:26:37]FM_MakeSignedData [10:26:37]FM_MakeSignedData [10:26:37]SAM_PROTO_SignData [10:26:37]wFMCommunicate request_size=4 [10:26:37]MH_SAM_APDU [10:26:37]CAPDU: 80 0D 01 02 [10:26:37]Write to MH i2c: E2 08 00 D9 03 80 0D 01 02 00 00 00 00 55 [10:26:37]Write i2c OK [10:26:37]MH_I2C_Read... [10:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:37]Read from MH i2c: E2 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 03 00 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [10:26:37]RAPDU: 90 00 [10:26:37]wFMCommunicate OK [10:26:37]wFMCommunicate request_size=255 [10:26:37]MH_SAM_APDU [10:26:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 00 00 00 F4 03 04 00 DD EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 45 02 00 35 04 06 00 3E 77 A4 5B [10:26:37]Write to MH i2c: E2 02 01 DA 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 00 00 00 F4 03 04 00 DD EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 45 02 00 35 04 06 00 3E 77 A4 5B 00 00 41 [10:26:37]Write i2c OK [10:26:37]MH_I2C_Read... [10:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:38]Read from MH i2c: E2 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 03 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [10:26:38]RAPDU: 90 00 [10:26:38]wFMCommunicate OK [10:26:38]wFMCommunicate request_size=7 [10:26:38]MH_SAM_APDU [10:26:38]CAPDU: 80 0D 02 02 02 C0 B3 [10:26:38]Write to MH i2c: E2 0A 00 DB 03 80 0D 02 02 02 00 C0 B3 00 00 CF [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:38]Read from MH i2c: E2 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 03 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [10:26:38]RAPDU: 90 00 [10:26:38]wFMCommunicate OK [10:26:38]wFMCommunicate request_size=4 [10:26:38]MH_SAM_APDU [10:26:38]CAPDU: 80 0D 03 02 [10:26:38]Write to MH i2c: E2 08 00 DC 03 80 0D 03 02 00 00 00 00 5A [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:38]Read from MH i2c: E2 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 0B 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 0B 00 DC 03 00 73 C2 E2 32 FA E9 A3 92 90 00 BC [10:26:38]RAPDU: 73 C2 E2 32 FA E9 A3 92 90 00 [10:26:38]wFMCommunicate OK [10:26:38]SAM_PROTO_SignData done [10:26:38]FM_MakeSignedData done [10:26:38]CreateOFDProtocolMessage [10:26:38]wFMCommunicate request_size=4 [10:26:38]MH_SAM_APDU [10:26:38]CAPDU: 80 11 00 00 [10:26:38]Write to MH i2c: E2 08 00 DD 03 80 11 00 00 00 00 00 00 5A [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:38]Read from MH i2c: E2 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 17 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 17 00 DD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AD [10:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:26:38]wFMCommunicate OK [10:26:38]CreateOFDProtocolMessage done [10:26:38]OFDSenderStorePacket 148738 [10:26:38]StoreOFDPacket docnum=148738 [10:26:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 F7 7D 04 01 BE 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 4D 00 00 00 F4 03 04 00 DD EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 45 02 00 35 04 06 00 3E 77 A4 5B C0 B3 73 C2 E2 32 FA E9 A3 92 [10:26:38]CheckFolder [10:26:38]dirname=/storage/ofd_packets [10:26:38]CheckFolder done [10:26:38]ProducePacketName [10:26:38]name=ofd_packets/00148738 [10:26:38]NVStorageSaveData ofd_packets/00148738 [10:26:38]File name is /storage/ofd_packets/00148738 [10:26:38]Write 298 bytes [10:26:38]NVStorageSaveData done [10:26:38]OFDSenderStorePacket done [10:26:38]KKMCreateOFDPacket done [10:26:38]NVStorageSaveData kkm_last_timestamp [10:26:38]File name is /storage/kkm_last_timestamp [10:26:38]Write 4 bytes [10:26:38]NVStorageSaveData done [10:26:38]ExternCall_PrintAddStr [10:26:38]wPrintStart [10:26:38]Write to MH i2c: 01 00 00 DE 03 E1 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: 01 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: 01 07 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 FF 0F F6 [10:26:38]RasterBufferAndPrint [10:26:38]line Счет N : (1)979664 [10:26:38]line ИНН: 02508201610067 [10:26:38]line Контрольно-Кассовый Чек [10:26:38]line ПРОДАЖА [10:26:38]line ТРК (МРК, ГНК) : 52 [10:26:38]line Товар: 2710194210 [10:26:38]line ДТ-К-5 [10:26:38]line 6.860 * 72.90 [10:26:38]line = 500.09 [10:26:38]line НДС 12% НСП 1% [10:26:38]line > о реализуемом товаре [10:26:38]line ОКРУГЛЕНИЕ: -0.09 [10:26:38]line ИТОГО: 500.00 [10:26:38]line Внесено: 500.00 [10:26:38]line СДАЧА: 0.00 [10:26:38]line НСП 1% : 4.43 [10:26:38]line НДС 12% : 53.11 [10:26:38]line Наличными: 500.00 [10:26:38]line Безнал.: 0.00 [10:26:38]line Место: АЗС № 68 "Партнер Нефть" [10:26:38]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:26:38]line СНО: Общий режим [10:26:38]line Чек 77 04.06.2024 10:26 [10:26:38]line Смена: 368 ФФД: 1.0 [10:26:38]line ЗНМ: 0300000035 [10:26:38]line РНМ: 0000000000092720 [10:26:38]line Версия ККМ: 001 [10:26:38]line ФМ: 0000000000875057 [10:26:38]line ФД: 148738 [10:26:38]line ФПД: 68683579506867 [10:26:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102637&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148738&fm=68683579506867&tin=02508201610067®Number=0000000000092720&sum=50000 [10:26:38]OFD Sender: Processing packet 148738 [packets to send 100, broken 99] [10:26:38]ProducePacketName [10:26:38]name=ofd_packets/00148738 [10:26:38]OFD Sender: To server: pG, [10:26:38]CommunicateWithHost lk.salyk.kg:30040 [10:26:38]ConnectInit lk.salyk.kg [10:26:38]written 0, free lines is 4095 [10:26:38]Connected sock=10 [10:26:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 F7 7D 04 01 BE 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 4D 00 00 00 F4 03 04 00 DD EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 45 02 00 35 04 06 00 3E 77 A4 5B C0 B3 73 C2 E2 32 FA E9 A3 92 [10:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 88 68 47 00 F1 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 45 02 00 F4 03 04 00 01 93 5E 66 B6 04 01 00 00 FC 4F F4 DD F8 1D 9D E1 [10:26:38]CommunicateWithHost err = 0 [10:26:38]CheckOFDResponse [10:26:38]1017 (14) - 77093643461234 [10:26:38]1041 (16) - 0000000000875057 [10:26:38]1040 (4) - 148738 [10:26:38]1012 (4) - 04.06.2024 04:07 [10:26:38]1206 (1) - 0 [10:26:38]OFD Sender: Remove packet 148738 [10:26:38]ProducePacketName [10:26:38]name=ofd_packets/00148738 [10:26:38]NVStorageDeleteData [10:26:39]Write to MH i2c: 01 00 00 09 04 0D [10:26:39]Write i2c OK [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: 01 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: 01 07 00 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 66 0C 86 [10:26:39]RasterBufferAndPrint [10:26:39]line [10:26:39]line [10:26:39]line [10:26:39]line [10:26:39]line [10:26:39]written 0, free lines is 3178 [10:26:39]MH_Cut [10:26:39]Write to MH i2c: D1 01 00 10 04 01 E6 [10:26:39]Write i2c OK [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: D1 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: D1 01 00 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: D1 01 00 10 04 00 E5 [10:26:39]Write to MH i2c: 01 00 00 11 04 15 [10:26:39]Write i2c OK [10:26:39]MH_I2C_Read... [10:26:39]OFD Sender: No OFD packet to send [10:26:40]*** Cut start [10:26:40]*** Partial cut [10:26:40]*** CUTSNS_PIN = 1 [10:26:40]*** CUTSNS_PIN = 0 [10:26:40]*** Brake cut motor [10:26:41]Read from MH i2c: 01 [10:26:41]MH_I2C_Read... [10:26:41]*** Stop cut motor [10:26:41]*** Cut end [10:26:41]Read from MH i2c: 01 07 00 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 FF 0F 2A [10:26:41]process_action close_receipt done [10:26:41]requested_data is exist [10:26:41]produce_requested_data [10:26:41]requested_item fm.sn is exist - process it [10:26:41]wFMCommunicate request_size=4 [10:26:41]MH_SAM_APDU [10:26:41]CAPDU: 80 11 00 00 [10:26:41]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [10:26:41]Write i2c OK [10:26:41]MH_I2C_Read... [10:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:41]Read from MH i2c: E2 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: E2 17 00 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E3 [10:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:26:41]wFMCommunicate OK [10:26:41]requested_item fd.num is exist - process it [10:26:41]SAM_PROTO_GetFieldsCounters [10:26:41]wFMCommunicate request_size=4 [10:26:41]MH_SAM_APDU [10:26:41]CAPDU: 80 13 00 00 [10:26:41]Write to MH i2c: E2 08 00 13 04 80 13 00 00 00 00 00 00 93 [10:26:41]Write i2c OK [10:26:41]MH_I2C_Read... [10:26:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:41]Read from MH i2c: E2 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: E2 62 00 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: E2 62 00 13 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 02 45 02 00 0E 04 04 00 70 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 50 [10:26:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 02 45 02 00 0E 04 04 00 70 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 [10:26:41]wFMCommunicate OK [10:26:41]SAM_PROTO_GetFieldsCounters done [10:26:41]requested_item shift.num is exist - process it [10:26:41]requested_item shift.opened is exist - process it [10:26:41]req_shift_opened [10:26:41]FM_GetShiftState [10:26:41]SAM_PROTO_GetShiftState [10:26:41]wFMCommunicate request_size=4 [10:26:41]MH_SAM_APDU [10:26:41]CAPDU: 80 13 01 00 [10:26:41]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [10:26:41]Write i2c OK [10:26:41]MH_I2C_Read... [10:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:41]Read from MH i2c: E2 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: E2 0E 00 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 58 [10:26:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:26:41]wFMCommunicate OK [10:26:41]SAM_PROTO_GetShiftState done [10:26:41]FM_GetShiftState done [10:26:41]req_shift_opened done [10:26:41]requested_item shift.open_date is exist - process it [10:26:41]req_shift_open_date [10:26:41]req_shift_open_date done [10:26:41]produce_requested_data done [10:26:41]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148738,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:26:41]process_action_free close_receipt [10:26:41]json_value_free [10:26:41]json_value_free done [10:26:41]process_json_proto returns [10:26:41]Send response to host [10:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148738,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:26:41]free response buf [10:26:41]execute_script done [10:26:41]execute_script returns [10:26:41]free content buf [10:26:41]Sock 9.Close socket [10:26:41]Sock 9.Thread stoped [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:05]accept exits with 7 [10:27:05]New connection [10:27:05]New thread 3067379044 created [10:27:05]Thread 3067235684 joined [10:27:05]Waiting for new connection... [10:27:05] Sock 7.Parse request [10:27:05]Sock 7.Check first char [10:27:05]Sock 7.First char is OK [10:27:05]request: POST /json_proto HTTP/1.0 [10:27:05]Method: POST [10:27:05]URL: /json_proto [10:27:05]Method is POST - this is cgi request [10:27:05]url: /json_proto [10:27:05]query_string will be loaded in cgi processing [10:27:05]execute_cgi json_proto POST (null) [10:27:05]execute_cgi path=json_proto method=POST [10:27:05]POST find Content-Length [10:27:05]Host: 172.17.38.4:8080 [10:27:05]Content-Length: 787 [10:27:05]Content-Type: application/json [10:27:05] [10:27:05]POST finish read [10:27:05]Found Content-Length = 787 [10:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:05]execute_script... [10:27: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)979665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:05]POST & json_proto [10:27:05]process_json_proto [10:27:05]json parsed OK: [10:27:05]protocol is kg_v1.0 [10:27:05]action value=close_receipt [10:27:05]process_action close_receipt [10:27:05]cmd_close_receipt [10:27:05]MH_GetDate [10:27:05]Write to MH i2c: F0 00 00 15 04 08 [10:27:05]Write i2c OK [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: F0 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: F0 09 00 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: F0 09 00 15 04 00 FA EB 5E 66 CC 51 87 64 C2 [10:27:05]GetLastDocTimeStamp 1717496797 [10:27:05]current date 1717496826 [10:27:05]FM_GetShiftState [10:27:05]SAM_PROTO_GetShiftState [10:27:05]wFMCommunicate request_size=4 [10:27:05]MH_SAM_APDU [10:27:05]CAPDU: 80 13 01 00 [10:27:05]Write to MH i2c: E2 08 00 16 04 80 13 01 00 00 00 00 00 97 [10:27:05]Write i2c OK [10:27:05]MH_I2C_Read... [10:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:05]Read from MH i2c: E2 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 0E 00 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 0E 00 16 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5A [10:27:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:27:05]wFMCommunicate OK [10:27:05]SAM_PROTO_GetShiftState done [10:27:05]FM_GetShiftState done [10:27:05]opened in 1717460629 [10:27:05]opened+sec_in_day 1717547029 [10:27:05]quantity*price = 50009 [10:27:05]sum+1 = 50010 [10:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 78 04.06.2024 10:27 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148739 ФПД: 79721803746241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102706&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148739&fm=79721803746241&tin=02508201610067®Number=0000000000092720&sum=50009 [10:27:06]StoreToDocumentArchive [10:27:06]shift 368 fd 148739 [10:27:06]save to /storage/0368/doc_00148739 [10:27:06]save last doc name /storage/0368/doc_00148739 to /storage/kkm_last_doc_name [10:27:06]save OK [10:27:06]Clear old archive folders... [10:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:27:06]tlvbuf is 00FB8590 [10:27:06]SAM_PROTO_ClearQueue [10:27:06]wFMCommunicate request_size=4 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 09 00 00 [10:27:06]Write to MH i2c: E2 08 00 23 04 80 09 00 00 00 00 00 00 99 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]SAM_PROTO_ClearQueue done [10:27:06]KKMCreateOFDPacket [10:27:06]OFDProtocolAddRootSTLVToBuf [10:27:06]FM_MakeSignedData [10:27:06]FM_MakeSignedData [10:27:06]SAM_PROTO_SignData [10:27:06]wFMCommunicate request_size=4 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 01 02 [10:27:06]Write to MH i2c: E2 08 00 24 04 80 0D 01 02 00 00 00 00 A1 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]wFMCommunicate request_size=255 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 FA EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 45 02 00 35 04 06 00 48 81 AD CB [10:27:06]Write to MH i2c: E2 02 01 25 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 FA EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 45 02 00 35 04 06 00 48 81 AD CB 00 00 4B [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:07]Read from MH i2c: E2 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 03 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [10:27:07]RAPDU: 90 00 [10:27:07]wFMCommunicate OK [10:27:07]wFMCommunicate request_size=7 [10:27:07]MH_SAM_APDU [10:27:07]CAPDU: 80 0D 02 02 02 0B C1 [10:27:07]Write to MH i2c: E2 0A 00 26 04 80 0D 02 02 02 00 0B C1 00 00 74 [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:07]Read from MH i2c: E2 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 03 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [10:27:07]RAPDU: 90 00 [10:27:07]wFMCommunicate OK [10:27:07]wFMCommunicate request_size=4 [10:27:07]MH_SAM_APDU [10:27:07]CAPDU: 80 0D 03 02 [10:27:07]Write to MH i2c: E2 08 00 27 04 80 0D 03 02 00 00 00 00 A6 [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:07]Read from MH i2c: E2 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 0B 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 0B 00 27 04 00 D4 3D 2B 74 24 19 CA C5 90 00 23 [10:27:07]RAPDU: D4 3D 2B 74 24 19 CA C5 90 00 [10:27:07]wFMCommunicate OK [10:27:07]SAM_PROTO_SignData done [10:27:07]FM_MakeSignedData done [10:27:07]CreateOFDProtocolMessage [10:27:07]wFMCommunicate request_size=4 [10:27:07]MH_SAM_APDU [10:27:07]CAPDU: 80 11 00 00 [10:27:07]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:07]Read from MH i2c: E2 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 17 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F9 [10:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:27:07]wFMCommunicate OK [10:27:07]CreateOFDProtocolMessage done [10:27:07]OFDSenderStorePacket 148739 [10:27:07]StoreOFDPacket docnum=148739 [10:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 A3 0E 04 01 3C 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 4E 00 00 00 F4 03 04 00 FA EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 45 02 00 35 04 06 00 48 81 AD CB 0B C1 D4 3D 2B 74 24 19 CA C5 [10:27:07]CheckFolder [10:27:07]dirname=/storage/ofd_packets [10:27:07]CheckFolder done [10:27:07]ProducePacketName [10:27:07]name=ofd_packets/00148739 [10:27:07]NVStorageSaveData ofd_packets/00148739 [10:27:07]File name is /storage/ofd_packets/00148739 [10:27:07]Write 298 bytes [10:27:07]NVStorageSaveData done [10:27:07]OFDSenderStorePacket done [10:27:07]KKMCreateOFDPacket done [10:27:07]NVStorageSaveData kkm_last_timestamp [10:27:07]File name is /storage/kkm_last_timestamp [10:27:07]Write 4 bytes [10:27:07]NVStorageSaveData done [10:27:07]ExternCall_PrintAddStr [10:27:07]wPrintStart [10:27:07]Write to MH i2c: 01 00 00 29 04 2D [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 07 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 FF 0F 42 [10:27:07]RasterBufferAndPrint [10:27:07]line Счет N : (1)979665 [10:27:07]line ИНН: 02508201610067 [10:27:07]line Контрольно-Кассовый Чек [10:27:07]line ПРОДАЖА [10:27:07]line ТРК (МРК, ГНК) : 11 [10:27:07]line Товар: 2710194210 [10:27:07]line ДТ-К-5 [10:27:07]line 6.860 * 72.90 [10:27:07]line = 500.09 [10:27:07]line НДС 12% НСП 1% [10:27:07]line > о реализуемом товаре [10:27:07]line ИТОГО: 500.09 [10:27:07]line НСП 1% : 4.43 [10:27:07]line НДС 12% : 53.11 [10:27:07]line Наличными: 0.00 [10:27:07]line Безнал.: 500.09 [10:27:07]line Место: АЗС № 68 "Партнер Нефть" [10:27:07]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:27:07]line СНО: Общий режим [10:27:07]line Чек 78 04.06.2024 10:27 [10:27:07]line Смена: 368 ФФД: 1.0 [10:27:07]line ЗНМ: 0300000035 [10:27:07]line РНМ: 0000000000092720 [10:27:07]line Версия ККМ: 001 [10:27:07]line Платежная система: KICB Банк [10:27:07]line ФМ: 0000000000875057 [10:27:07]line ФД: 148739 [10:27:07]line ФПД: 79721803746241 [10:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102706&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148739&fm=79721803746241&tin=02508201610067®Number=0000000000092720&sum=50009 [10:27:07]OFD Sender: Processing packet 148739 [packets to send 100, broken 99] [10:27:07]ProducePacketName [10:27:07]name=ofd_packets/00148739 [10:27:07]OFD Sender: To server: pG, [10:27:07]CommunicateWithHost lk.salyk.kg:30040 [10:27:07]ConnectInit lk.salyk.kg [10:27:07]written 0, free lines is 4095 [10:27:07]Connected sock=10 [10:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 A3 0E 04 01 3C 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 4E 00 00 00 F4 03 04 00 FA EB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 45 02 00 35 04 06 00 48 81 AD CB 0B C1 D4 3D 2B 74 24 19 CA C5 [10:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F8 9A 47 00 E3 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 45 02 00 F4 03 04 00 1E 93 5E 66 B6 04 01 00 00 BA 3D 4D 16 97 E7 6E D6 [10:27:08]CommunicateWithHost err = 0 [10:27:08]CheckOFDResponse [10:27:08]1017 (14) - 77093643461234 [10:27:08]1041 (16) - 0000000000875057 [10:27:08]1040 (4) - 148739 [10:27:08]1012 (4) - 04.06.2024 04:07 [10:27:08]1206 (1) - 0 [10:27:08]OFD Sender: Remove packet 148739 [10:27:08]ProducePacketName [10:27:08]name=ofd_packets/00148739 [10:27:08]NVStorageDeleteData [10:27:08]Write to MH i2c: 01 00 00 53 04 57 [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: 01 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: 01 07 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 80 0C EA [10:27:08]RasterBufferAndPrint [10:27:08]line [10:27:08]line [10:27:08]line [10:27:08]line [10:27:08]line [10:27:08]written 0, free lines is 3206 [10:27:08]MH_Cut [10:27:08]Write to MH i2c: D1 01 00 5A 04 01 30 [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: D1 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: D1 01 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: D1 01 00 5A 04 00 2F [10:27:08]Write to MH i2c: 01 00 00 5B 04 5F [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]OFD Sender: No OFD packet to send [10:27:09]*** Cut start [10:27:09]*** Partial cut [10:27:09]*** CUTSNS_PIN = 1 [10:27:09]*** CUTSNS_PIN = 0 [10:27:09]*** Brake cut motor [10:27:10]Read from MH i2c: 01 [10:27:10]MH_I2C_Read... [10:27:10]*** Stop cut motor [10:27:10]*** Cut end [10:27:10]Read from MH i2c: 01 07 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [10:27:10]process_action close_receipt done [10:27:10]requested_data is exist [10:27:10]produce_requested_data [10:27:10]requested_item fm.sn is exist - process it [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 11 00 00 [10:27:10]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 17 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2D [10:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:27:10]wFMCommunicate OK [10:27:10]requested_item fd.num is exist - process it [10:27:10]SAM_PROTO_GetFieldsCounters [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 13 00 00 [10:27:10]Write to MH i2c: E2 08 00 5D 04 80 13 00 00 00 00 00 00 DD [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 62 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 62 00 5D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 03 45 02 00 0E 04 04 00 70 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 9E [10:27:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 03 45 02 00 0E 04 04 00 70 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 [10:27:10]wFMCommunicate OK [10:27:10]SAM_PROTO_GetFieldsCounters done [10:27:10]requested_item shift.num is exist - process it [10:27:10]requested_item shift.opened is exist - process it [10:27:10]req_shift_opened [10:27:10]FM_GetShiftState [10:27:10]SAM_PROTO_GetShiftState [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 13 01 00 [10:27:10]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 0E 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A2 [10:27:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:27:10]wFMCommunicate OK [10:27:10]SAM_PROTO_GetShiftState done [10:27:10]FM_GetShiftState done [10:27:10]req_shift_opened done [10:27:10]requested_item shift.open_date is exist - process it [10:27:10]req_shift_open_date [10:27:10]req_shift_open_date done [10:27:10]produce_requested_data done [10:27:10]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148739,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:27:10]process_action_free close_receipt [10:27:10]json_value_free [10:27:10]json_value_free done [10:27:10]process_json_proto returns [10:27:10]Send response to host [10:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148739,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:27:10]free response buf [10:27:10]execute_script done [10:27:10]execute_script returns [10:27:10]free content buf [10:27:10]Sock 7.Close socket [10:27:10]Sock 7.Thread stoped [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:22]accept exits with 9 [10:29:22]New connection [10:29:22]New thread 3067235684 created [10:29:22]Thread 3067379044 joined [10:29:22]Waiting for new connection... [10:29:22] Sock 9.Parse request [10:29:22]Sock 9.Check first char [10:29:22]Sock 9.First char is OK [10:29:22]request: POST /json_proto HTTP/1.0 [10:29:22]Method: POST [10:29:22]URL: /json_proto [10:29:22]Method is POST - this is cgi request [10:29:22]url: /json_proto [10:29:22]query_string will be loaded in cgi processing [10:29:22]execute_cgi json_proto POST (null) [10:29:22]execute_cgi path=json_proto method=POST [10:29:22]POST find Content-Length [10:29:22]Host: 172.17.38.4:8080 [10:29:22]Content-Length: 679 [10:29:22]Content-Type: application/json [10:29:22] [10:29:22]POST finish read [10:29:22]Found Content-Length = 679 [10:29:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:22]execute_script... [10:29:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:22]POST & json_proto [10:29:22]process_json_proto [10:29:22]json parsed OK: [10:29:22]protocol is kg_v1.0 [10:29:22]action value=close_receipt [10:29:22]process_action close_receipt [10:29:22]cmd_close_receipt [10:29:22]MH_GetDate [10:29:22]Write to MH i2c: F0 00 00 5F 04 52 [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: F0 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: F0 09 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: F0 09 00 5F 04 00 83 EC 5E 66 CC 51 87 64 96 [10:29:22]GetLastDocTimeStamp 1717496826 [10:29:22]current date 1717496963 [10:29:22]FM_GetShiftState [10:29:22]SAM_PROTO_GetShiftState [10:29:22]wFMCommunicate request_size=4 [10:29:22]MH_SAM_APDU [10:29:22]CAPDU: 80 13 01 00 [10:29:22]Write to MH i2c: E2 08 00 60 04 80 13 01 00 00 00 00 00 E1 [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:22]Read from MH i2c: E2 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 0E 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 0E 00 60 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A4 [10:29:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:29:22]wFMCommunicate OK [10:29:22]SAM_PROTO_GetShiftState done [10:29:22]FM_GetShiftState done [10:29:22]opened in 1717460629 [10:29:22]opened+sec_in_day 1717547029 [10:29:22]quantity*price = 120066 [10:29:22]sum+1 = 120067 [10:29:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.50 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 79 04.06.2024 10:29 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148740 ФПД: 255946384306054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102923&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148740&fm=255946384306054&tin=02508201610067®Number=0000000000092720&sum=120000 [10:29:23]StoreToDocumentArchive [10:29:23]shift 368 fd 148740 [10:29:23]save to /storage/0368/doc_00148740 [10:29:23]save last doc name /storage/0368/doc_00148740 to /storage/kkm_last_doc_name [10:29:23]save OK [10:29:23]Clear old archive folders... [10:29:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:29:23]tlvbuf is 00FB55B0 [10:29:23]SAM_PROTO_ClearQueue [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 09 00 00 [10:29:23]Write to MH i2c: E2 08 00 6D 04 80 09 00 00 00 00 00 00 E3 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:23]Read from MH i2c: E2 03 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [10:29:23]RAPDU: 90 00 [10:29:23]wFMCommunicate OK [10:29:23]SAM_PROTO_ClearQueue done [10:29:23]KKMCreateOFDPacket [10:29:23]OFDProtocolAddRootSTLVToBuf [10:29:23]FM_MakeSignedData [10:29:23]FM_MakeSignedData [10:29:23]SAM_PROTO_SignData [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 0D 01 02 [10:29:23]Write to MH i2c: E2 08 00 6E 04 80 0D 01 02 00 00 00 00 EB [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [10:29:23]RAPDU: 90 00 [10:29:23]wFMCommunicate OK [10:29:23]wFMCommunicate request_size=255 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 EC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 45 02 00 35 04 06 00 E8 C8 29 51 [10:29:23]Write to MH i2c: E2 02 01 6F 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 EC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 45 02 00 35 04 06 00 E8 C8 29 51 00 00 02 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [10:29:24]RAPDU: 90 00 [10:29:24]wFMCommunicate OK [10:29:24]wFMCommunicate request_size=7 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 0D 02 02 02 6F 86 [10:29:24]Write to MH i2c: E2 0A 00 70 04 80 0D 02 02 02 00 6F 86 00 00 E7 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [10:29:24]RAPDU: 90 00 [10:29:24]wFMCommunicate OK [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 0D 03 02 [10:29:24]Write to MH i2c: E2 08 00 71 04 80 0D 03 02 00 00 00 00 F0 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 0B 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 0B 00 71 04 00 AD 29 22 78 5F 5B 61 16 90 00 92 [10:29:24]RAPDU: AD 29 22 78 5F 5B 61 16 90 00 [10:29:24]wFMCommunicate OK [10:29:24]SAM_PROTO_SignData done [10:29:24]FM_MakeSignedData done [10:29:24]CreateOFDProtocolMessage [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 11 00 00 [10:29:24]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 17 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 43 [10:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:29:24]wFMCommunicate OK [10:29:24]CreateOFDProtocolMessage done [10:29:24]OFDSenderStorePacket 148740 [10:29:24]StoreOFDPacket docnum=148740 [10:29:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 1D 5E 04 01 AA E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 EC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 45 02 00 35 04 06 00 E8 C8 29 51 6F 86 AD 29 22 78 5F 5B 61 16 [10:29:24]CheckFolder [10:29:24]dirname=/storage/ofd_packets [10:29:24]CheckFolder done [10:29:24]ProducePacketName [10:29:24]name=ofd_packets/00148740 [10:29:24]NVStorageSaveData ofd_packets/00148740 [10:29:24]File name is /storage/ofd_packets/00148740 [10:29:24]Write 298 bytes [10:29:24]NVStorageSaveData done [10:29:24]OFDSenderStorePacket done [10:29:24]KKMCreateOFDPacket done [10:29:24]NVStorageSaveData kkm_last_timestamp [10:29:24]File name is /storage/kkm_last_timestamp [10:29:24]Write 4 bytes [10:29:24]NVStorageSaveData done [10:29:24]ExternCall_PrintAddStr [10:29:24]wPrintStart [10:29:24]Write to MH i2c: 01 00 00 73 04 77 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: 01 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: 01 07 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [10:29:24]RasterBufferAndPrint [10:29:24]line Счет N : (1)979666 [10:29:24]line ИНН: 02508201610067 [10:29:24]line Контрольно-Кассовый Чек [10:29:24]line ПРОДАЖА [10:29:24]line ТРК (МРК, ГНК) : 21 [10:29:24]line Товар: 2710194210 [10:29:24]line ДТ-К-5 [10:29:24]line 16.470 * 72.90 [10:29:24]line = 1200.66 [10:29:24]line НДС 12% НСП 1% [10:29:24]line > о реализуемом товаре [10:29:24]line ОКРУГЛЕНИЕ: -0.66 [10:29:24]line ИТОГО: 1200.00 [10:29:24]line Внесено: 1200.00 [10:29:24]line СДАЧА: 0.00 [10:29:24]line НСП 1% : 10.62 [10:29:24]line НДС 12% : 127.50 [10:29:24]line Наличными: 1200.00 [10:29:24]line Безнал.: 0.00 [10:29:24]line Место: АЗС № 68 "Партнер Нефть" [10:29:24]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:29:24]line СНО: Общий режим [10:29:24]line Чек 79 04.06.2024 10:29 [10:29:24]line Смена: 368 ФФД: 1.0 [10:29:24]line ЗНМ: 0300000035 [10:29:24]line РНМ: 0000000000092720 [10:29:24]line Версия ККМ: 001 [10:29:24]line ФМ: 0000000000875057 [10:29:24]line ФД: 148740 [10:29:24]line ФПД: 255946384306054 [10:29:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102923&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148740&fm=255946384306054&tin=02508201610067®Number=0000000000092720&sum=120000 [10:29:24]OFD Sender: Processing packet 148740 [packets to send 100, broken 99] [10:29:24]ProducePacketName [10:29:24]name=ofd_packets/00148740 [10:29:24]OFD Sender: To server: pG, [10:29:24]CommunicateWithHost lk.salyk.kg:30040 [10:29:24]ConnectInit lk.salyk.kg [10:29:24]written 0, free lines is 4095 [10:29:24]Connected sock=10 [10:29:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 1D 5E 04 01 AA E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 EC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 45 02 00 35 04 06 00 E8 C8 29 51 6F 86 AD 29 22 78 5F 5B 61 16 [10:29:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E7 7F 47 00 C5 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 45 02 00 F4 03 04 00 A7 93 5E 66 B6 04 01 00 00 45 7E A7 57 BE F7 D0 56 [10:29:24]CommunicateWithHost err = 0 [10:29:24]CheckOFDResponse [10:29:24]1017 (14) - 77093643461234 [10:29:24]1041 (16) - 0000000000875057 [10:29:24]1040 (4) - 148740 [10:29:24]1012 (4) - 04.06.2024 04:10 [10:29:24]1206 (1) - 0 [10:29:24]OFD Sender: Remove packet 148740 [10:29:24]ProducePacketName [10:29:24]name=ofd_packets/00148740 [10:29:24]NVStorageDeleteData [10:29:25]Write to MH i2c: 01 00 00 9E 04 A2 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 9E 04 00 00 00 00 00 6E 0C 23 [10:29:25]RasterBufferAndPrint [10:29:25]line [10:29:25]line [10:29:25]line [10:29:25]line [10:29:25]line [10:29:25]written 0, free lines is 3186 [10:29:25]MH_Cut [10:29:25]Write to MH i2c: D1 01 00 A5 04 01 7B [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: D1 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: D1 01 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: D1 01 00 A5 04 00 7A [10:29:25]Write to MH i2c: 01 00 00 A6 04 AA [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]OFD Sender: No OFD packet to send [10:29:26]*** Cut start [10:29:26]*** Partial cut [10:29:26]*** CUTSNS_PIN = 1 [10:29:26]*** CUTSNS_PIN = 0 [10:29:26]*** Brake cut motor [10:29:26]Read from MH i2c: 01 [10:29:26]MH_I2C_Read... [10:29:26]*** Stop cut motor [10:29:26]*** Cut end [10:29:26]Read from MH i2c: 01 07 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 A6 04 00 00 00 00 00 FF 0F BF [10:29:27]process_action close_receipt done [10:29:27]requested_data is exist [10:29:27]produce_requested_data [10:29:27]requested_item fm.sn is exist - process it [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 11 00 00 [10:29:27]Write to MH i2c: E2 08 00 A7 04 80 11 00 00 00 00 00 00 25 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 17 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 17 00 A7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 78 [10:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:29:27]wFMCommunicate OK [10:29:27]requested_item fd.num is exist - process it [10:29:27]SAM_PROTO_GetFieldsCounters [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 13 00 00 [10:29:27]Write to MH i2c: E2 08 00 A8 04 80 13 00 00 00 00 00 00 28 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 62 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 62 00 A8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 04 45 02 00 0E 04 04 00 70 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 ED [10:29:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 04 45 02 00 0E 04 04 00 70 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 [10:29:27]wFMCommunicate OK [10:29:27]SAM_PROTO_GetFieldsCounters done [10:29:27]requested_item shift.num is exist - process it [10:29:27]requested_item shift.opened is exist - process it [10:29:27]req_shift_opened [10:29:27]FM_GetShiftState [10:29:27]SAM_PROTO_GetShiftState [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 13 01 00 [10:29:27]Write to MH i2c: E2 08 00 A9 04 80 13 01 00 00 00 00 00 2A [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0E 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0E 00 A9 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 ED [10:29:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:29:27]wFMCommunicate OK [10:29:27]SAM_PROTO_GetShiftState done [10:29:27]FM_GetShiftState done [10:29:27]req_shift_opened done [10:29:27]requested_item shift.open_date is exist - process it [10:29:27]req_shift_open_date [10:29:27]req_shift_open_date done [10:29:27]produce_requested_data done [10:29:27]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148740,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:29:27]process_action_free close_receipt [10:29:27]json_value_free [10:29:27]json_value_free done [10:29:27]process_json_proto returns [10:29:27]Send response to host [10:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148740,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:29:27]free response buf [10:29:27]execute_script done [10:29:27]execute_script returns [10:29:27]free content buf [10:29:27]Sock 9.Close socket [10:29:27]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [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:17]accept exits with 7 [10:33:17]New connection [10:33:17]New thread 3067379044 created [10:33:17]Thread 3067235684 joined [10:33:17]Waiting for new connection... [10:33:17] Sock 7.Parse request [10:33:17]Sock 7.Check first char [10:33:17]Sock 7.First char is OK [10:33:17]request: POST /json_proto HTTP/1.0 [10:33:17]Method: POST [10:33:17]URL: /json_proto [10:33:17]Method is POST - this is cgi request [10:33:17]url: /json_proto [10:33:17]query_string will be loaded in cgi processing [10:33:17]execute_cgi json_proto POST (null) [10:33:17]execute_cgi path=json_proto method=POST [10:33:17]POST find Content-Length [10:33:17]Host: 172.17.38.4:8080 [10:33:17]Content-Length: 677 [10:33:17]Content-Type: application/json [10:33:17] [10:33:17]POST finish read [10:33:17]Found Content-Length = 677 [10:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:17]execute_script... [10:33: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)979667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:17]POST & json_proto [10:33:17]process_json_proto [10:33:17]json parsed OK: [10:33:17]protocol is kg_v1.0 [10:33:17]action value=close_receipt [10:33:17]process_action close_receipt [10:33:17]cmd_close_receipt [10:33:17]MH_GetDate [10:33:17]Write to MH i2c: F0 00 00 AA 04 9D [10:33:17]Write i2c OK [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: F0 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: F0 09 00 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: F0 09 00 AA 04 00 6D ED 5E 66 CC 51 87 64 CC [10:33:17]GetLastDocTimeStamp 1717496963 [10:33:17]current date 1717497197 [10:33:17]FM_GetShiftState [10:33:17]SAM_PROTO_GetShiftState [10:33:17]wFMCommunicate request_size=4 [10:33:17]MH_SAM_APDU [10:33:17]CAPDU: 80 13 01 00 [10:33:17]Write to MH i2c: E2 08 00 AB 04 80 13 01 00 00 00 00 00 2C [10:33:17]Write i2c OK [10:33:17]MH_I2C_Read... [10:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:17]Read from MH i2c: E2 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 0E 00 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 0E 00 AB 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EF [10:33:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:33:17]wFMCommunicate OK [10:33:17]SAM_PROTO_GetShiftState done [10:33:17]FM_GetShiftState done [10:33:17]opened in 1717460629 [10:33:17]opened+sec_in_day 1717547029 [10:33:17]quantity*price = 40006 [10:33:17]sum+1 = 40007 [10:33:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 80 04.06.2024 10:33 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148741 ФПД: 107390157657947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103317&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148741&fm=107390157657947&tin=02508201610067®Number=0000000000092720&sum=40000 [10:33:18]StoreToDocumentArchive [10:33:18]shift 368 fd 148741 [10:33:18]save to /storage/0368/doc_00148741 [10:33:18]save last doc name /storage/0368/doc_00148741 to /storage/kkm_last_doc_name [10:33:18]save OK [10:33:18]Clear old archive folders... [10:33:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:18]tlvbuf is 00FA4CE0 [10:33:18]SAM_PROTO_ClearQueue [10:33:18]wFMCommunicate request_size=4 [10:33:18]MH_SAM_APDU [10:33:18]CAPDU: 80 09 00 00 [10:33:18]Write to MH i2c: E2 08 00 B8 04 80 09 00 00 00 00 00 00 2E [10:33:18]Write i2c OK [10:33:18]MH_I2C_Read... [10:33:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:18]Read from MH i2c: E2 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 03 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [10:33:18]RAPDU: 90 00 [10:33:18]wFMCommunicate OK [10:33:18]SAM_PROTO_ClearQueue done [10:33:18]KKMCreateOFDPacket [10:33:18]OFDProtocolAddRootSTLVToBuf [10:33:18]FM_MakeSignedData [10:33:18]FM_MakeSignedData [10:33:18]SAM_PROTO_SignData [10:33:18]wFMCommunicate request_size=4 [10:33:18]MH_SAM_APDU [10:33:18]CAPDU: 80 0D 01 02 [10:33:18]Write to MH i2c: E2 08 00 B9 04 80 0D 01 02 00 00 00 00 36 [10:33:18]Write i2c OK [10:33:18]MH_I2C_Read... [10:33:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:18]Read from MH i2c: E2 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 03 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [10:33:18]RAPDU: 90 00 [10:33:18]wFMCommunicate OK [10:33:18]wFMCommunicate request_size=255 [10:33:18]MH_SAM_APDU [10:33:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 6D ED 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 45 02 00 35 04 06 00 61 [10:33:18]Write to MH i2c: E2 02 01 BA 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 6D ED 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 45 02 00 35 04 06 00 61 00 00 1B [10:33:18]Write i2c OK [10:33:18]MH_I2C_Read... [10:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:18]Read from MH i2c: E2 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 03 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [10:33:18]RAPDU: 90 00 [10:33:18]wFMCommunicate OK [10:33:18]wFMCommunicate request_size=10 [10:33:18]MH_SAM_APDU [10:33:18]CAPDU: 80 0D 02 02 05 AB B8 33 17 5B [10:33:18]Write to MH i2c: E2 0D 00 BB 04 80 0D 02 02 05 00 AB B8 33 17 5B 00 00 4B [10:33:18]Write i2c OK [10:33:18]MH_I2C_Read... [10:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:18]Read from MH i2c: E2 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 03 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 03 00 BB 04 00 90 00 33 [10:33:18]RAPDU: 90 00 [10:33:18]wFMCommunicate OK [10:33:18]wFMCommunicate request_size=4 [10:33:18]MH_SAM_APDU [10:33:18]CAPDU: 80 0D 03 02 [10:33:18]Write to MH i2c: E2 08 00 BC 04 80 0D 03 02 00 00 00 00 3B [10:33:18]Write i2c OK [10:33:18]MH_I2C_Read... [10:33:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:19]Read from MH i2c: E2 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 0B 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 0B 00 BC 04 00 2D 03 30 12 AD 6F 58 B3 90 00 D5 [10:33:19]RAPDU: 2D 03 30 12 AD 6F 58 B3 90 00 [10:33:19]wFMCommunicate OK [10:33:19]SAM_PROTO_SignData done [10:33:19]FM_MakeSignedData done [10:33:19]CreateOFDProtocolMessage [10:33:19]wFMCommunicate request_size=4 [10:33:19]MH_SAM_APDU [10:33:19]CAPDU: 80 11 00 00 [10:33:19]Write to MH i2c: E2 08 00 BD 04 80 11 00 00 00 00 00 00 3B [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:19]Read from MH i2c: E2 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 17 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: E2 17 00 BD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8E [10:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:33:19]wFMCommunicate OK [10:33:19]CreateOFDProtocolMessage done [10:33:19]OFDSenderStorePacket 148741 [10:33:19]StoreOFDPacket docnum=148741 [10:33:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 79 AF 07 01 49 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 6D ED 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 45 02 00 35 04 06 00 61 AB B8 33 17 5B 2D 03 30 12 AD 6F 58 B3 [10:33:19]CheckFolder [10:33:19]dirname=/storage/ofd_packets [10:33:19]CheckFolder done [10:33:19]ProducePacketName [10:33:19]name=ofd_packets/00148741 [10:33:19]NVStorageSaveData ofd_packets/00148741 [10:33:19]File name is /storage/ofd_packets/00148741 [10:33:19]Write 301 bytes [10:33:19]NVStorageSaveData done [10:33:19]OFDSenderStorePacket done [10:33:19]KKMCreateOFDPacket done [10:33:19]NVStorageSaveData kkm_last_timestamp [10:33:19]File name is /storage/kkm_last_timestamp [10:33:19]Write 4 bytes [10:33:19]NVStorageSaveData done [10:33:19]ExternCall_PrintAddStr [10:33:19]wPrintStart [10:33:19]Write to MH i2c: 01 00 00 BE 04 C2 [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: 01 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: 01 07 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 FF 0F D7 [10:33:19]RasterBufferAndPrint [10:33:19]line Счет N : (1)979667 [10:33:19]line ИНН: 02508201610067 [10:33:19]line Контрольно-Кассовый Чек [10:33:19]line ПРОДАЖА [10:33:19]line ТРК (МРК, ГНК) : 22 [10:33:19]line Товар: 2710124130 [10:33:19]line Аи-92-К-5 [10:33:19]line 5.980 * 66.90 [10:33:19]line = 400.06 [10:33:19]line НДС 12% НСП 1% [10:33:19]line > о реализуемом товаре [10:33:19]line ОКРУГЛЕНИЕ: -0.06 [10:33:19]line ИТОГО: 400.00 [10:33:19]line Внесено: 400.00 [10:33:19]line СДАЧА: 0.00 [10:33:19]line НСП 1% : 3.54 [10:33:19]line НДС 12% : 42.48 [10:33:19]line Наличными: 400.00 [10:33:19]line Безнал.: 0.00 [10:33:19]line Место: АЗС № 68 "Партнер Нефть" [10:33:19]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:33:19]line СНО: Общий режим [10:33:19]line Чек 80 04.06.2024 10:33 [10:33:19]line Смена: 368 ФФД: 1.0 [10:33:19]line ЗНМ: 0300000035 [10:33:19]line РНМ: 0000000000092720 [10:33:19]line Версия ККМ: 001 [10:33:19]line ФМ: 0000000000875057 [10:33:19]line ФД: 148741 [10:33:19]line ФПД: 107390157657947 [10:33:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103317&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148741&fm=107390157657947&tin=02508201610067®Number=0000000000092720&sum=40000 [10:33:19]OFD Sender: Processing packet 148741 [packets to send 100, broken 99] [10:33:19]ProducePacketName [10:33:19]name=ofd_packets/00148741 [10:33:19]OFD Sender: To server: pG, [10:33:19]CommunicateWithHost lk.salyk.kg:30040 [10:33:19]ConnectInit lk.salyk.kg [10:33:19]written 0, free lines is 4095 [10:33:19]Connected sock=9 [10:33:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 79 AF 07 01 49 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 6D ED 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 45 02 00 35 04 06 00 61 AB B8 33 17 5B 2D 03 30 12 AD 6F 58 B3 [10:33:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 39 7A 47 00 03 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 45 02 00 F4 03 04 00 92 94 5E 66 B6 04 01 00 00 CF 7B F6 91 B6 95 55 67 [10:33:19]CommunicateWithHost err = 0 [10:33:19]CheckOFDResponse [10:33:19]1017 (14) - 77093643461234 [10:33:19]1041 (16) - 0000000000875057 [10:33:19]1040 (4) - 148741 [10:33:19]1012 (4) - 04.06.2024 04:14 [10:33:19]1206 (1) - 0 [10:33:19]OFD Sender: Remove packet 148741 [10:33:19]ProducePacketName [10:33:19]name=ofd_packets/00148741 [10:33:19]NVStorageDeleteData [10:33:19]Write to MH i2c: 01 00 00 E9 04 ED [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: 01 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: 01 07 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: 01 07 00 E9 04 00 00 00 00 00 6C 0C 6C [10:33:19]RasterBufferAndPrint [10:33:19]line [10:33:19]line [10:33:19]line [10:33:19]line [10:33:19]line [10:33:19]written 0, free lines is 3183 [10:33:19]MH_Cut [10:33:19]Write to MH i2c: D1 01 00 F0 04 01 C6 [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: D1 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: D1 01 00 [10:33:19]MH_I2C_Read... [10:33:19]Read from MH i2c: D1 01 00 F0 04 00 C5 [10:33:19]Write to MH i2c: 01 00 00 F1 04 F5 [10:33:19]Write i2c OK [10:33:19]MH_I2C_Read... [10:33:20]OFD Sender: No OFD packet to send [10:33:21]*** Cut start [10:33:21]*** Partial cut [10:33:21]*** CUTSNS_PIN = 1 [10:33:21]*** CUTSNS_PIN = 0 [10:33:21]*** Brake cut motor [10:33:21]Read from MH i2c: 01 [10:33:21]MH_I2C_Read... [10:33:21]*** Stop cut motor [10:33:21]*** Cut end [10:33:21]Read from MH i2c: 01 07 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: 01 07 00 F1 04 00 00 00 00 00 FF 0F 0A [10:33:21]process_action close_receipt done [10:33:21]requested_data is exist [10:33:21]produce_requested_data [10:33:21]requested_item fm.sn is exist - process it [10:33:21]wFMCommunicate request_size=4 [10:33:21]MH_SAM_APDU [10:33:21]CAPDU: 80 11 00 00 [10:33:21]Write to MH i2c: E2 08 00 F2 04 80 11 00 00 00 00 00 00 70 [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:21]Read from MH i2c: E2 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 17 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 17 00 F2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C3 [10:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:33:21]wFMCommunicate OK [10:33:21]requested_item fd.num is exist - process it [10:33:21]SAM_PROTO_GetFieldsCounters [10:33:21]wFMCommunicate request_size=4 [10:33:21]MH_SAM_APDU [10:33:21]CAPDU: 80 13 00 00 [10:33:21]Write to MH i2c: E2 08 00 F3 04 80 13 00 00 00 00 00 00 73 [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:21]Read from MH i2c: E2 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 62 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 62 00 F3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 05 45 02 00 0E 04 04 00 70 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 3C [10:33:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 05 45 02 00 0E 04 04 00 70 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 [10:33:21]wFMCommunicate OK [10:33:21]SAM_PROTO_GetFieldsCounters done [10:33:21]requested_item shift.num is exist - process it [10:33:21]requested_item shift.opened is exist - process it [10:33:22]req_shift_opened [10:33:22]FM_GetShiftState [10:33:22]SAM_PROTO_GetShiftState [10:33:22]wFMCommunicate request_size=4 [10:33:22]MH_SAM_APDU [10:33:22]CAPDU: 80 13 01 00 [10:33:22]Write to MH i2c: E2 08 00 F4 04 80 13 01 00 00 00 00 00 75 [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:22]Read from MH i2c: E2 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 0E 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 0E 00 F4 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 38 [10:33:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:33:22]wFMCommunicate OK [10:33:22]SAM_PROTO_GetShiftState done [10:33:22]FM_GetShiftState done [10:33:22]req_shift_opened done [10:33:22]requested_item shift.open_date is exist - process it [10:33:22]req_shift_open_date [10:33:22]req_shift_open_date done [10:33:22]produce_requested_data done [10:33:22]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148741,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:33:22]process_action_free close_receipt [10:33:22]json_value_free [10:33:22]json_value_free done [10:33:22]process_json_proto returns [10:33:22]Send response to host [10:33:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148741,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:33:22]free response buf [10:33:22]execute_script done [10:33:22]execute_script returns [10:33:22]free content buf [10:33:22]Sock 7.Close socket [10:33:22]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:12]accept exits with 10 [10:37:12]New connection [10:37:12]New thread 3067235684 created [10:37:12]Thread 3067379044 joined [10:37:12]Waiting for new connection... [10:37:12] Sock 10.Parse request [10:37:12]Sock 10.Check first char [10:37:12]Sock 10.First char is OK [10:37:12]request: POST /json_proto HTTP/1.0 [10:37:12]Method: POST [10:37:12]URL: /json_proto [10:37:12]Method is POST - this is cgi request [10:37:12]url: /json_proto [10:37:12]query_string will be loaded in cgi processing [10:37:12]execute_cgi json_proto POST (null) [10:37:12]execute_cgi path=json_proto method=POST [10:37:12]POST find Content-Length [10:37:12]Host: 172.17.38.4:8080 [10:37:12]Content-Length: 869 [10:37:12]Content-Type: application/json [10:37:12] [10:37:12]POST finish read [10:37:12]Found Content-Length = 869 [10:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11899", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:12]execute_script... [10:37:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11899", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:12]POST & json_proto [10:37:12]process_json_proto [10:37:12]json parsed OK: [10:37:12]protocol is kg_v1.0 [10:37:12]action value=close_receipt [10:37:12]process_action close_receipt [10:37:12]cmd_close_receipt [10:37:12]MH_GetDate [10:37:12]Write to MH i2c: F0 00 00 F5 04 E8 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 09 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 09 00 F5 04 00 58 EE 5E 66 CC 51 87 64 03 [10:37:12]GetLastDocTimeStamp 1717497197 [10:37:12]current date 1717497432 [10:37:12]FM_GetShiftState [10:37:12]SAM_PROTO_GetShiftState [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 13 01 00 [10:37:12]Write to MH i2c: E2 08 00 F6 04 80 13 01 00 00 00 00 00 77 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 F6 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3A [10:37:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:37:12]wFMCommunicate OK [10:37:12]SAM_PROTO_GetShiftState done [10:37:12]FM_GetShiftState done [10:37:12]opened in 1717460629 [10:37:12]opened+sec_in_day 1717547029 [10:37:12]quantity*price = 7500 [10:37:12]sum+1 = 7501 [10:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 81 04.06.2024 10:37 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148742 ФПД: 188078380421931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103712&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148742&fm=188078380421931&tin=02508201610067®Number=0000000000092720&sum=7500 0 [10:37:13]StoreToDocumentArchive [10:37:13]shift 368 fd 148742 [10:37:13]save to /storage/0368/doc_00148742 [10:37:13]save last doc name /storage/0368/doc_00148742 to /storage/kkm_last_doc_name [10:37:13]save OK [10:37:13]Clear old archive folders... [10:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=304 [10:37:13]tlvbuf is 00F09F30 [10:37:13]SAM_PROTO_ClearQueue [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 09 00 00 [10:37:13]Write to MH i2c: E2 08 00 03 05 80 09 00 00 00 00 00 00 7A [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]SAM_PROTO_ClearQueue done [10:37:13]KKMCreateOFDPacket [10:37:13]OFDProtocolAddRootSTLVToBuf [10:37:13]FM_MakeSignedData [10:37:13]FM_MakeSignedData [10:37:13]SAM_PROTO_SignData [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 0D 01 02 [10:37:13]Write to MH i2c: E2 08 00 04 05 80 0D 01 02 00 00 00 00 82 [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]wFMCommunicate request_size=255 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 58 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 [10:37:13]Write to MH i2c: E2 02 01 05 05 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 58 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 00 00 12 [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]wFMCommunicate request_size=63 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 45 02 00 35 04 06 00 AB 0E 69 0E 13 2B [10:37:13]Write to MH i2c: E2 42 00 06 05 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 45 02 00 35 04 06 00 AB 0E 69 0E 13 2B 00 00 85 [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 0D 03 02 [10:37:13]Write to MH i2c: E2 08 00 07 05 80 0D 03 02 00 00 00 00 87 [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 0B 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 0B 00 07 05 00 46 07 14 2F 88 70 C1 DC 90 00 AD [10:37:13]RAPDU: 46 07 14 2F 88 70 C1 DC 90 00 [10:37:13]wFMCommunicate OK [10:37:13]SAM_PROTO_SignData done [10:37:13]FM_MakeSignedData done [10:37:13]CreateOFDProtocolMessage [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 11 00 00 [10:37:13]Write to MH i2c: E2 08 00 08 05 80 11 00 00 00 00 00 00 87 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 17 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 17 00 08 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DA [10:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:37:14]wFMCommunicate OK [10:37:14]CreateOFDProtocolMessage done [10:37:14]OFDSenderStorePacket 148742 [10:37:14]StoreOFDPacket docnum=148742 [10:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 44 01 00 00 AE 99 3C 01 61 09 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 58 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 45 02 00 35 04 06 00 AB 0E 69 0E 13 2B 46 07 14 2F 88 70 C1 DC [10:37:14]CheckFolder [10:37:14]dirname=/storage/ofd_packets [10:37:14]CheckFolder done [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00148742 [10:37:14]NVStorageSaveData ofd_packets/00148742 [10:37:14]File name is /storage/ofd_packets/00148742 [10:37:14]Write 354 bytes [10:37:14]NVStorageSaveData done [10:37:14]OFDSenderStorePacket done [10:37:14]KKMCreateOFDPacket done [10:37:14]NVStorageSaveData kkm_last_timestamp [10:37:14]File name is /storage/kkm_last_timestamp [10:37:14]Write 4 bytes [10:37:14]NVStorageSaveData done [10:37:14]ExternCall_PrintAddStr [10:37:14]wPrintStart [10:37:14]Write to MH i2c: 01 00 00 09 05 0E [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 FF 0F 23 [10:37:14]RasterBufferAndPrint [10:37:14]line Счет N : (3)11899 [10:37:14]line ИНН: 02508201610067 [10:37:14]line Контрольно-Кассовый Чек [10:37:14]line ПРОДАЖА [10:37:14]line Товар: 4870112003956 [10:37:14]line Шок батончик ALBENI SUPER Альбени Супер [10:37:14]line 1.000 * 75.00 [10:37:14]line = 75.00 [10:37:14]line НДС 12% НСП 1% [10:37:14]line > о реализуемом товаре [10:37:14]line ИТОГО: 75.00 [10:37:14]line НСП 1% : 0.66 [10:37:14]line НДС 12% : 7.96 [10:37:14]line Наличными: 0.00 [10:37:14]line Безнал.: 75.00 [10:37:14]line Место: АЗС № 68 "Партнер Нефть" [10:37:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:37:14]line СНО: Общий режим [10:37:14]line Чек 81 04.06.2024 10:37 [10:37:14]line Смена: 368 ФФД: 1.0 [10:37:14]line ЗНМ: 0300000035 [10:37:14]line РНМ: 0000000000092720 [10:37:14]line Версия ККМ: 001 [10:37:14]line Платежная система: O! деньги [10:37:14]line ФМ: 0000000000875057 [10:37:14]line ФД: 148742 [10:37:14]line ФПД: 188078380421931 [10:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103712&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148742&fm=188078380421931&tin=02508201610067®Number=0000000000092720&sum=7500 [10:37:14]line 0 [10:37:14]OFD Sender: Processing packet 148742 [packets to send 100, broken 99] [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00148742 [10:37:14]OFD Sender: To server: pG, [10:37:14]CommunicateWithHost lk.salyk.kg:30040 [10:37:14]ConnectInit lk.salyk.kg [10:37:14]written 0, free lines is 4095 [10:37:14]Connected sock=9 [10:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 44 01 00 00 AE 99 3C 01 61 09 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 58 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 45 02 00 35 04 06 00 AB 0E 69 0E 13 2B 46 07 14 2F 88 70 C1 DC [10:37:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 52 6A 47 00 45 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 45 02 00 F4 03 04 00 7D 95 5E 66 B6 04 01 00 00 A9 58 9A 08 E1 B7 D7 E1 [10:37:14]CommunicateWithHost err = 0 [10:37:14]CheckOFDResponse [10:37:14]1017 (14) - 77093643461234 [10:37:14]1041 (16) - 0000000000875057 [10:37:14]1040 (4) - 148742 [10:37:14]1012 (4) - 04.06.2024 04:18 [10:37:14]1206 (1) - 0 [10:37:14]OFD Sender: Remove packet 148742 [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00148742 [10:37:14]NVStorageDeleteData [10:37:14]Write to MH i2c: 01 00 00 34 05 39 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 34 05 00 00 00 00 00 40 0C 8C [10:37:14]RasterBufferAndPrint [10:37:14]line [10:37:14]line [10:37:14]line [10:37:14]line [10:37:14]line [10:37:14]written 0, free lines is 3143 [10:37:14]MH_Cut [10:37:14]Write to MH i2c: D1 01 00 3B 05 01 12 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: D1 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: D1 01 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: D1 01 00 3B 05 00 11 [10:37:14]Write to MH i2c: 01 00 00 3C 05 41 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:15]OFD Sender: No OFD packet to send [10:37:16]*** Cut start [10:37:16]*** Partial cut [10:37:16]*** CUTSNS_PIN = 1 [10:37:16]*** CUTSNS_PIN = 0 [10:37:16]*** Brake cut motor [10:37:16]Read from MH i2c: 01 [10:37:16]MH_I2C_Read... [10:37:16]*** Stop cut motor [10:37:16]*** Cut end [10:37:16]Read from MH i2c: 01 07 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 FF 0F 56 [10:37:16]process_action close_receipt done [10:37:16]requested_data is exist [10:37:16]produce_requested_data [10:37:16]requested_item fm.sn is exist - process it [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 11 00 00 [10:37:16]Write to MH i2c: E2 08 00 3D 05 80 11 00 00 00 00 00 00 BC [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 3D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0F [10:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:37:16]wFMCommunicate OK [10:37:16]requested_item fd.num is exist - process it [10:37:16]SAM_PROTO_GetFieldsCounters [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 13 00 00 [10:37:16]Write to MH i2c: E2 08 00 3E 05 80 13 00 00 00 00 00 00 BF [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 62 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 62 00 3E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 06 45 02 00 0E 04 04 00 70 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 8C [10:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 06 45 02 00 0E 04 04 00 70 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 [10:37:17]wFMCommunicate OK [10:37:17]SAM_PROTO_GetFieldsCounters done [10:37:17]requested_item shift.num is exist - process it [10:37:17]requested_item shift.opened is exist - process it [10:37:17]req_shift_opened [10:37:17]FM_GetShiftState [10:37:17]SAM_PROTO_GetShiftState [10:37:17]wFMCommunicate request_size=4 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 13 01 00 [10:37:17]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 0E 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 84 [10:37:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:37:17]wFMCommunicate OK [10:37:17]SAM_PROTO_GetShiftState done [10:37:17]FM_GetShiftState done [10:37:17]req_shift_opened done [10:37:17]requested_item shift.open_date is exist - process it [10:37:17]req_shift_open_date [10:37:17]req_shift_open_date done [10:37:17]produce_requested_data done [10:37:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148742,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:37:17]process_action_free close_receipt [10:37:17]json_value_free [10:37:17]json_value_free done [10:37:17]process_json_proto returns [10:37:17]Send response to host [10:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148742,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:37:17]free response buf [10:37:17]execute_script done [10:37:17]execute_script returns [10:37:17]free content buf [10:37:17]Sock 10.Close socket [10:37:17]Sock 10.Thread stoped [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:41]accept exits with 7 [10:37:41]New connection [10:37:41]New thread 3067379044 created [10:37:41]Thread 3067235684 joined [10:37:41]Waiting for new connection... [10:37:41] Sock 7.Parse request [10:37:41]Sock 7.Check first char [10:37:41]Sock 7.First char is OK [10:37:41]request: POST /json_proto HTTP/1.0 [10:37:41]Method: POST [10:37:41]URL: /json_proto [10:37:41]Method is POST - this is cgi request [10:37:41]url: /json_proto [10:37:41]query_string will be loaded in cgi processing [10:37:41]execute_cgi json_proto POST (null) [10:37:41]execute_cgi path=json_proto method=POST [10:37:41]POST find Content-Length [10:37:41]Host: 172.17.38.4:8080 [10:37:41]Content-Length: 983 [10:37:41]Content-Type: application/json [10:37:41] [10:37:41]POST finish read [10:37:41]Found Content-Length = 983 [10:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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" ] } } [10:37:41]execute_script... [10:37: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)979669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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" ] } } [10:37:41]POST & json_proto [10:37:41]process_json_proto [10:37:41]json parsed OK: [10:37:41]protocol is kg_v1.0 [10:37:41]action value=close_receipt [10:37:41]process_action close_receipt [10:37:41]cmd_close_receipt [10:37:41]MH_GetDate [10:37:41]Write to MH i2c: F0 00 00 40 05 34 [10:37:41]Write i2c OK [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: F0 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: F0 09 00 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: F0 09 00 40 05 00 75 EE 5E 66 CC 51 87 64 6C [10:37:41]GetLastDocTimeStamp 1717497432 [10:37:41]current date 1717497461 [10:37:41]FM_GetShiftState [10:37:41]SAM_PROTO_GetShiftState [10:37:41]wFMCommunicate request_size=4 [10:37:41]MH_SAM_APDU [10:37:41]CAPDU: 80 13 01 00 [10:37:41]Write to MH i2c: E2 08 00 41 05 80 13 01 00 00 00 00 00 C3 [10:37:41]Write i2c OK [10:37:41]MH_I2C_Read... [10:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:41]Read from MH i2c: E2 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: E2 0E 00 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: E2 0E 00 41 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 86 [10:37:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:37:41]wFMCommunicate OK [10:37:41]SAM_PROTO_GetShiftState done [10:37:41]FM_GetShiftState done [10:37:41]opened in 1717460629 [10:37:41]opened+sec_in_day 1717547029 [10:37:41]quantity*price = 150054 [10:37:41]sum+1 = 150055 [10:37:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 82 04.06.2024 10:37 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа АИ-92 номер 68 сэкономлено 22.77 сом ФМ: 0000000000875057 ФД: 148743 ФПД: 217127245842664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103741&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148743&fm=217127245842664&tin=02508201610067®Number=0000000000092720&sum=150000 [10:37:42]StoreToDocumentArchive [10:37:42]shift 368 fd 148743 [10:37:42]save to /storage/0368/doc_00148743 [10:37:42]save last doc name /storage/0368/doc_00148743 to /storage/kkm_last_doc_name [10:37:42]save OK [10:37:42]Clear old archive folders... [10:37:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:42]tlvbuf is 00F0A8C0 [10:37:42]SAM_PROTO_ClearQueue [10:37:42]wFMCommunicate request_size=4 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 09 00 00 [10:37:42]Write to MH i2c: E2 08 00 4E 05 80 09 00 00 00 00 00 00 C5 [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:42]Read from MH i2c: E2 03 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [10:37:42]RAPDU: 90 00 [10:37:42]wFMCommunicate OK [10:37:42]SAM_PROTO_ClearQueue done [10:37:42]KKMCreateOFDPacket [10:37:42]OFDProtocolAddRootSTLVToBuf [10:37:42]FM_MakeSignedData [10:37:42]FM_MakeSignedData [10:37:42]SAM_PROTO_SignData [10:37:42]wFMCommunicate request_size=4 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 0D 01 02 [10:37:42]Write to MH i2c: E2 08 00 4F 05 80 0D 01 02 00 00 00 00 CD [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:42]Read from MH i2c: E2 03 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [10:37:42]RAPDU: 90 00 [10:37:42]wFMCommunicate OK [10:37:42]wFMCommunicate request_size=255 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 52 00 00 00 F4 03 04 00 75 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 45 02 00 35 04 06 00 C5 [10:37:42]Write to MH i2c: E2 02 01 50 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 52 00 00 00 F4 03 04 00 75 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 45 02 00 35 04 06 00 C5 00 00 8A [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [10:37:42]RAPDU: 90 00 [10:37:42]wFMCommunicate OK [10:37:42]wFMCommunicate request_size=10 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 0D 02 02 05 79 E0 5C 08 E8 [10:37:42]Write to MH i2c: E2 0D 00 51 05 80 0D 02 02 05 00 79 E0 5C 08 E8 00 00 7F [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [10:37:42]RAPDU: 90 00 [10:37:42]wFMCommunicate OK [10:37:42]wFMCommunicate request_size=4 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 0D 03 02 [10:37:42]Write to MH i2c: E2 08 00 52 05 80 0D 03 02 00 00 00 00 D2 [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 0B 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 0B 00 52 05 00 04 29 66 81 5A DE BA 33 90 00 0C [10:37:42]RAPDU: 04 29 66 81 5A DE BA 33 90 00 [10:37:42]wFMCommunicate OK [10:37:42]SAM_PROTO_SignData done [10:37:42]FM_MakeSignedData done [10:37:42]CreateOFDProtocolMessage [10:37:42]wFMCommunicate request_size=4 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 11 00 00 [10:37:42]Write to MH i2c: E2 08 00 53 05 80 11 00 00 00 00 00 00 D2 [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 17 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 17 00 53 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 25 [10:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:37:42]wFMCommunicate OK [10:37:42]CreateOFDProtocolMessage done [10:37:42]OFDSenderStorePacket 148743 [10:37:42]StoreOFDPacket docnum=148743 [10:37:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 40 65 07 01 2F 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 52 00 00 00 F4 03 04 00 75 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 45 02 00 35 04 06 00 C5 79 E0 5C 08 E8 04 29 66 81 5A DE BA 33 [10:37:42]CheckFolder [10:37:42]dirname=/storage/ofd_packets [10:37:42]CheckFolder done [10:37:42]ProducePacketName [10:37:42]name=ofd_packets/00148743 [10:37:42]NVStorageSaveData ofd_packets/00148743 [10:37:42]File name is /storage/ofd_packets/00148743 [10:37:42]Write 301 bytes [10:37:42]NVStorageSaveData done [10:37:42]OFDSenderStorePacket done [10:37:42]KKMCreateOFDPacket done [10:37:42]NVStorageSaveData kkm_last_timestamp [10:37:42]File name is /storage/kkm_last_timestamp [10:37:42]Write 4 bytes [10:37:42]NVStorageSaveData done [10:37:42]ExternCall_PrintAddStr [10:37:42]wPrintStart [10:37:42]Write to MH i2c: 01 00 00 54 05 59 [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: 01 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: 01 07 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 FF 0F 6E [10:37:42]RasterBufferAndPrint [10:37:42]line Счет N : (1)979669 [10:37:42]line ИНН: 02508201610067 [10:37:42]line Контрольно-Кассовый Чек [10:37:42]line ПРОДАЖА [10:37:42]line ТРК (МРК, ГНК) : 41 [10:37:42]line Товар: 2710124130 [10:37:42]line Аи-92-К-5 [10:37:42]line 22.770 * 65.90 [10:37:42]line = 1500.54 [10:37:42]line НДС 12% НСП 1% [10:37:42]line > о реализуемом товаре [10:37:42]line ОКРУГЛЕНИЕ: -0.54 [10:37:42]line ИТОГО: 1500.00 [10:37:42]line Внесено: 1500.00 [10:37:42]line СДАЧА: 0.00 [10:37:42]line НСП 1% : 13.28 [10:37:42]line НДС 12% : 159.35 [10:37:42]line Наличными: 1500.00 [10:37:42]line Безнал.: 0.00 [10:37:42]line Место: АЗС № 68 "Партнер Нефть" [10:37:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:37:42]line СНО: Общий режим [10:37:42]line Чек 82 04.06.2024 10:37 [10:37:42]line Смена: 368 ФФД: 1.0 [10:37:42]line ЗНМ: 0300000035 [10:37:42]line РНМ: 0000000000092720 [10:37:42]line Версия ККМ: 001 [10:37:42]line [10:37:42]line Дисконтная программа [10:37:42]line АИ-92 [10:37:42]line номер 68 [10:37:42]line сэкономлено 22.77 сом [10:37:42]line ФМ: 0000000000875057 [10:37:42]line ФД: 148743 [10:37:42]line ФПД: 217127245842664 [10:37:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103741&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148743&fm=217127245842664&tin=02508201610067®Number=0000000000092720&sum=150000 [10:37:43]OFD Sender: Processing packet 148743 [packets to send 100, broken 99] [10:37:43]ProducePacketName [10:37:43]name=ofd_packets/00148743 [10:37:43]OFD Sender: To server: pG, [10:37:43]CommunicateWithHost lk.salyk.kg:30040 [10:37:43]ConnectInit lk.salyk.kg [10:37:43]written 0, free lines is 4095 [10:37:43]Connected sock=9 [10:37:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 40 65 07 01 2F 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 52 00 00 00 F4 03 04 00 75 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 45 02 00 35 04 06 00 C5 79 E0 5C 08 E8 04 29 66 81 5A DE BA 33 [10:37:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 75 35 47 00 F9 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 45 02 00 F4 03 04 00 99 95 5E 66 B6 04 01 00 00 B8 01 C3 84 2C AE B9 63 [10:37:43]CommunicateWithHost err = 0 [10:37:43]CheckOFDResponse [10:37:43]1017 (14) - 77093643461234 [10:37:43]1041 (16) - 0000000000875057 [10:37:43]1040 (4) - 148743 [10:37:43]1012 (4) - 04.06.2024 04:18 [10:37:43]1206 (1) - 0 [10:37:43]OFD Sender: Remove packet 148743 [10:37:43]ProducePacketName [10:37:43]name=ofd_packets/00148743 [10:37:43]NVStorageDeleteData [10:37:43]Write to MH i2c: 01 00 00 84 05 89 [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: 01 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: 01 07 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: 01 07 00 84 05 00 00 00 00 00 F3 0B 8E [10:37:43]RasterBufferAndPrint [10:37:43]line [10:37:43]line [10:37:43]line [10:37:43]line [10:37:43]line [10:37:43]written 0, free lines is 3062 [10:37:43]MH_Cut [10:37:43]Write to MH i2c: D1 01 00 8B 05 01 62 [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: D1 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: D1 01 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: D1 01 00 8B 05 00 61 [10:37:43]Write to MH i2c: 01 00 00 8C 05 91 [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:44]OFD Sender: No OFD packet to send [10:37:45]*** Cut start [10:37:45]*** Partial cut [10:37:45]*** CUTSNS_PIN = 1 [10:37:45]*** CUTSNS_PIN = 0 [10:37:45]*** Brake cut motor [10:37:45]Read from MH i2c: 01 [10:37:45]MH_I2C_Read... [10:37:45]*** Stop cut motor [10:37:45]*** Cut end [10:37:45]Read from MH i2c: 01 07 00 [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 FF 0F A6 [10:37:45]process_action close_receipt done [10:37:45]requested_data is exist [10:37:45]produce_requested_data [10:37:45]requested_item fm.sn is exist - process it [10:37:45]wFMCommunicate request_size=4 [10:37:45]MH_SAM_APDU [10:37:45]CAPDU: 80 11 00 00 [10:37:45]Write to MH i2c: E2 08 00 8D 05 80 11 00 00 00 00 00 00 0C [10:37:45]Write i2c OK [10:37:45]MH_I2C_Read... [10:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:45]Read from MH i2c: E2 [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: E2 17 00 [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: E2 17 00 8D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5F [10:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:37:45]wFMCommunicate OK [10:37:45]requested_item fd.num is exist - process it [10:37:45]SAM_PROTO_GetFieldsCounters [10:37:45]wFMCommunicate request_size=4 [10:37:45]MH_SAM_APDU [10:37:45]CAPDU: 80 13 00 00 [10:37:45]Write to MH i2c: E2 08 00 8E 05 80 13 00 00 00 00 00 00 0F [10:37:45]Write i2c OK [10:37:45]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 62 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 62 00 8E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 07 45 02 00 0E 04 04 00 70 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 E0 [10:37:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 07 45 02 00 0E 04 04 00 70 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 [10:37:46]wFMCommunicate OK [10:37:46]SAM_PROTO_GetFieldsCounters done [10:37:46]requested_item shift.num is exist - process it [10:37:46]requested_item shift.opened is exist - process it [10:37:46]req_shift_opened [10:37:46]FM_GetShiftState [10:37:46]SAM_PROTO_GetShiftState [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 13 01 00 [10:37:46]Write to MH i2c: E2 08 00 8F 05 80 13 01 00 00 00 00 00 11 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 0E 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 0E 00 8F 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D4 [10:37:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:37:46]wFMCommunicate OK [10:37:46]SAM_PROTO_GetShiftState done [10:37:46]FM_GetShiftState done [10:37:46]req_shift_opened done [10:37:46]requested_item shift.open_date is exist - process it [10:37:46]req_shift_open_date [10:37:46]req_shift_open_date done [10:37:46]produce_requested_data done [10:37:46]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148743,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:37:46]process_action_free close_receipt [10:37:46]json_value_free [10:37:46]json_value_free done [10:37:46]process_json_proto returns [10:37:46]Send response to host [10:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148743,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:37:46]free response buf [10:37:46]execute_script done [10:37:46]execute_script returns [10:37:46]free content buf [10:37:46]Sock 7.Close socket [10:37:46]Sock 7.Thread stoped [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:55]accept exits with 10 [10:37:55]New connection [10:37:55]New thread 3067235684 created [10:37:55]Thread 3067379044 joined [10:37:55]Waiting for new connection... [10:37:55] Sock 10.Parse request [10:37:55]Sock 10.Check first char [10:37:55]Sock 10.First char is OK [10:37:55]request: POST /json_proto HTTP/1.0 [10:37:55]Method: POST [10:37:55]URL: /json_proto [10:37:55]Method is POST - this is cgi request [10:37:55]url: /json_proto [10:37:55]query_string will be loaded in cgi processing [10:37:55]execute_cgi json_proto POST (null) [10:37:55]execute_cgi path=json_proto method=POST [10:37:55]POST find Content-Length [10:37:55]Host: 172.17.38.4:8080 [10:37:55]Content-Length: 803 [10:37:55]Content-Type: application/json [10:37:55] [10:37:55]POST finish read [10:37:55]Found Content-Length = 803 [10:37:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:55]execute_script... [10:37: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)979668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:55]POST & json_proto [10:37:55]process_json_proto [10:37:55]json parsed OK: [10:37:55]protocol is kg_v1.0 [10:37:55]action value=close_receipt [10:37:55]process_action close_receipt [10:37:55]cmd_close_receipt [10:37:55]MH_GetDate [10:37:55]Write to MH i2c: F0 00 00 90 05 84 [10:37:55]Write i2c OK [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: F0 [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: F0 09 00 [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: F0 09 00 90 05 00 83 EE 5E 66 CC 51 87 64 CA [10:37:55]GetLastDocTimeStamp 1717497461 [10:37:55]current date 1717497475 [10:37:55]FM_GetShiftState [10:37:55]SAM_PROTO_GetShiftState [10:37:55]wFMCommunicate request_size=4 [10:37:55]MH_SAM_APDU [10:37:55]CAPDU: 80 13 01 00 [10:37:55]Write to MH i2c: E2 08 00 91 05 80 13 01 00 00 00 00 00 13 [10:37:55]Write i2c OK [10:37:55]MH_I2C_Read... [10:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:55]Read from MH i2c: E2 [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: E2 0E 00 [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: E2 0E 00 91 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D6 [10:37:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:37:55]wFMCommunicate OK [10:37:55]SAM_PROTO_GetShiftState done [10:37:55]FM_GetShiftState done [10:37:55]opened in 1717460629 [10:37:55]opened+sec_in_day 1717547029 [10:37:55]quantity*price = 133800 [10:37:55]sum+1 = 133801 [10:37:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 0.00 Безнал.: 1338.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 83 04.06.2024 10:37 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148744 ФПД: 105084233503411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103755&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148744&fm=105084233503411&tin=02508201610067®Number=0000000000092720&sum=133800 [10:37:56]StoreToDocumentArchive [10:37:56]shift 368 fd 148744 [10:37:56]save to /storage/0368/doc_00148744 [10:37:56]save last doc name /storage/0368/doc_00148744 to /storage/kkm_last_doc_name [10:37:56]save OK [10:37:56]Clear old archive folders... [10:37:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:56]tlvbuf is 00FB5FC0 [10:37:56]SAM_PROTO_ClearQueue [10:37:56]wFMCommunicate request_size=4 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 09 00 00 [10:37:56]Write to MH i2c: E2 08 00 9E 05 80 09 00 00 00 00 00 00 15 [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [10:37:56]RAPDU: 90 00 [10:37:56]wFMCommunicate OK [10:37:56]SAM_PROTO_ClearQueue done [10:37:56]KKMCreateOFDPacket [10:37:56]OFDProtocolAddRootSTLVToBuf [10:37:56]FM_MakeSignedData [10:37:56]FM_MakeSignedData [10:37:56]SAM_PROTO_SignData [10:37:56]wFMCommunicate request_size=4 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 0D 01 02 [10:37:56]Write to MH i2c: E2 08 00 9F 05 80 0D 01 02 00 00 00 00 1D [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [10:37:56]RAPDU: 90 00 [10:37:56]wFMCommunicate OK [10:37:56]wFMCommunicate request_size=255 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 83 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 45 02 00 35 04 06 00 5F [10:37:56]Write to MH i2c: E2 02 01 A0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 83 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 45 02 00 35 04 06 00 5F 00 00 EB [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 A0 05 00 90 00 19 [10:37:56]RAPDU: 90 00 [10:37:56]wFMCommunicate OK [10:37:56]wFMCommunicate request_size=10 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 0D 02 02 05 92 D4 68 D2 B3 [10:37:56]Write to MH i2c: E2 0D 00 A1 05 80 0D 02 02 05 00 92 D4 68 D2 B3 00 00 7D [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [10:37:56]RAPDU: 90 00 [10:37:56]wFMCommunicate OK [10:37:56]wFMCommunicate request_size=4 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 0D 03 02 [10:37:56]Write to MH i2c: E2 08 00 A2 05 80 0D 03 02 00 00 00 00 22 [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:57]Read from MH i2c: E2 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: E2 0B 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: E2 0B 00 A2 05 00 2A 74 BD 38 70 DD 49 EA 90 00 36 [10:37:57]RAPDU: 2A 74 BD 38 70 DD 49 EA 90 00 [10:37:57]wFMCommunicate OK [10:37:57]SAM_PROTO_SignData done [10:37:57]FM_MakeSignedData done [10:37:57]CreateOFDProtocolMessage [10:37:57]wFMCommunicate request_size=4 [10:37:57]MH_SAM_APDU [10:37:57]CAPDU: 80 11 00 00 [10:37:57]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:57]Read from MH i2c: E2 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: E2 17 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 75 [10:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:37:57]wFMCommunicate OK [10:37:57]CreateOFDProtocolMessage done [10:37:57]OFDSenderStorePacket 148744 [10:37:57]StoreOFDPacket docnum=148744 [10:37:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 8B 3D 07 01 8D F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 83 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 45 02 00 35 04 06 00 5F 92 D4 68 D2 B3 2A 74 BD 38 70 DD 49 EA [10:37:57]CheckFolder [10:37:57]dirname=/storage/ofd_packets [10:37:57]CheckFolder done [10:37:57]ProducePacketName [10:37:57]name=ofd_packets/00148744 [10:37:57]NVStorageSaveData ofd_packets/00148744 [10:37:57]File name is /storage/ofd_packets/00148744 [10:37:57]Write 301 bytes [10:37:57]NVStorageSaveData done [10:37:57]OFDSenderStorePacket done [10:37:57]KKMCreateOFDPacket done [10:37:57]NVStorageSaveData kkm_last_timestamp [10:37:57]File name is /storage/kkm_last_timestamp [10:37:57]Write 4 bytes [10:37:57]NVStorageSaveData done [10:37:57]ExternCall_PrintAddStr [10:37:57]wPrintStart [10:37:57]Write to MH i2c: 01 00 00 A4 05 A9 [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: 01 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: 01 07 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 FF 0F BE [10:37:57]RasterBufferAndPrint [10:37:57]line Счет N : (1)979668 [10:37:57]line ИНН: 02508201610067 [10:37:57]line Контрольно-Кассовый Чек [10:37:57]line ПРОДАЖА [10:37:57]line ТРК (МРК, ГНК) : 31 [10:37:57]line Товар: 2710124130 [10:37:57]line Аи-92-К-5 [10:37:57]line 20.000 * 66.90 [10:37:57]line = 1338.00 [10:37:57]line НДС 12% НСП 1% [10:37:57]line > о реализуемом товаре [10:37:57]line ИТОГО: 1338.00 [10:37:57]line НСП 1% : 11.84 [10:37:57]line НДС 12% : 142.09 [10:37:57]line Наличными: 0.00 [10:37:57]line Безнал.: 1338.00 [10:37:57]line Место: АЗС № 68 "Партнер Нефть" [10:37:57]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:37:57]line СНО: Общий режим [10:37:57]line Чек 83 04.06.2024 10:37 [10:37:57]line Смена: 368 ФФД: 1.0 [10:37:57]line ЗНМ: 0300000035 [10:37:57]line РНМ: 0000000000092720 [10:37:57]line Версия ККМ: 001 [10:37:57]line Платежная система: O! деньги [10:37:57]line ФМ: 0000000000875057 [10:37:57]line ФД: 148744 [10:37:57]line ФПД: 105084233503411 [10:37:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103755&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148744&fm=105084233503411&tin=02508201610067®Number=0000000000092720&sum=133800 [10:37:57]written 0, free lines is 4095 [10:37:57]OFD Sender: Processing packet 148744 [packets to send 100, broken 99] [10:37:57]ProducePacketName [10:37:57]name=ofd_packets/00148744 [10:37:57]OFD Sender: To server: pG, [10:37:57]CommunicateWithHost lk.salyk.kg:30040 [10:37:57]ConnectInit lk.salyk.kg [10:37:57]Connected sock=11 [10:37:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 8B 3D 07 01 8D F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 83 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 45 02 00 35 04 06 00 5F 92 D4 68 D2 B3 2A 74 BD 38 70 DD 49 EA [10:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 28 9B 47 00 1F 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 38 37 35 30 35 37 10 04 04 00 08 45 02 00 F4 03 04 00 A7 95 5E 66 B6 04 01 00 00 74 E2 42 F6 FC 26 36 0F [10:37:57]CommunicateWithHost err = 0 [10:37:57]CheckOFDResponse [10:37:57]1017 (14) - 77093643461234 [10:37:57]1041 (16) - 0000000000875057 [10:37:57]1040 (4) - 148744 [10:37:57]1012 (4) - 04.06.2024 04:18 [10:37:57]1206 (1) - 0 [10:37:57]OFD Sender: Remove packet 148744 [10:37:57]ProducePacketName [10:37:57]name=ofd_packets/00148744 [10:37:57]NVStorageDeleteData [10:37:57]Write to MH i2c: 01 00 00 CE 05 D3 [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: 01 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: 01 07 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: 01 07 00 CE 05 00 00 00 00 00 7C 0C 62 [10:37:57]RasterBufferAndPrint [10:37:57]line [10:37:57]line [10:37:57]line [10:37:57]line [10:37:57]line [10:37:57]written 0, free lines is 3200 [10:37:57]MH_Cut [10:37:57]Write to MH i2c: D1 01 00 D5 05 01 AC [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: D1 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: D1 01 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: D1 01 00 D5 05 00 AB [10:37:57]Write to MH i2c: 01 00 00 D6 05 DB [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]OFD Sender: No OFD packet to send [10:37:58]*** Cut start [10:37:58]*** Partial cut [10:37:58]*** CUTSNS_PIN = 1 [10:37:58]*** CUTSNS_PIN = 0 [10:37:59]*** Brake cut motor [10:37:59]Read from MH i2c: 01 [10:37:59]MH_I2C_Read... [10:37:59]*** Stop cut motor [10:37:59]*** Cut end [10:37:59]Read from MH i2c: 01 07 00 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: 01 07 00 D6 05 00 00 00 00 00 FF 0F F0 [10:37:59]process_action close_receipt done [10:37:59]requested_data is exist [10:37:59]produce_requested_data [10:37:59]requested_item fm.sn is exist - process it [10:37:59]wFMCommunicate request_size=4 [10:37:59]MH_SAM_APDU [10:37:59]CAPDU: 80 11 00 00 [10:37:59]Write to MH i2c: E2 08 00 D7 05 80 11 00 00 00 00 00 00 56 [10:37:59]Write i2c OK [10:37:59]MH_I2C_Read... [10:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:59]Read from MH i2c: E2 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: E2 17 00 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: E2 17 00 D7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A9 [10:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:37:59]wFMCommunicate OK [10:37:59]requested_item fd.num is exist - process it [10:37:59]SAM_PROTO_GetFieldsCounters [10:37:59]wFMCommunicate request_size=4 [10:37:59]MH_SAM_APDU [10:37:59]CAPDU: 80 13 00 00 [10:37:59]Write to MH i2c: E2 08 00 D8 05 80 13 00 00 00 00 00 00 59 [10:37:59]Write i2c OK [10:37:59]MH_I2C_Read... [10:37:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:59]Read from MH i2c: E2 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: E2 62 00 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: E2 62 00 D8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 08 45 02 00 0E 04 04 00 70 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 2E [10:37:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 08 45 02 00 0E 04 04 00 70 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 [10:37:59]wFMCommunicate OK [10:37:59]SAM_PROTO_GetFieldsCounters done [10:37:59]requested_item shift.num is exist - process it [10:37:59]requested_item shift.opened is exist - process it [10:37:59]req_shift_opened [10:37:59]FM_GetShiftState [10:37:59]SAM_PROTO_GetShiftState [10:37:59]wFMCommunicate request_size=4 [10:37:59]MH_SAM_APDU [10:37:59]CAPDU: 80 13 01 00 [10:37:59]Write to MH i2c: E2 08 00 D9 05 80 13 01 00 00 00 00 00 5B [10:37:59]Write i2c OK [10:37:59]MH_I2C_Read... [10:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:59]Read from MH i2c: E2 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: E2 0E 00 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: E2 0E 00 D9 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1E [10:37:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:37:59]wFMCommunicate OK [10:37:59]SAM_PROTO_GetShiftState done [10:37:59]FM_GetShiftState done [10:37:59]req_shift_opened done [10:37:59]requested_item shift.open_date is exist - process it [10:37:59]req_shift_open_date [10:37:59]req_shift_open_date done [10:37:59]produce_requested_data done [10:37:59]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148744,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:37:59]process_action_free close_receipt [10:37:59]json_value_free [10:37:59]json_value_free done [10:37:59]process_json_proto returns [10:37:59]Send response to host [10:37:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148744,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:37:59]free response buf [10:37:59]execute_script done [10:37:59]execute_script returns [10:37:59]free content buf [10:37:59]Sock 10.Close socket [10:37:59]Sock 10.Thread stoped [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:31]accept exits with 7 [10:38:31]New connection [10:38:31]New thread 3067379044 created [10:38:31]Thread 3067235684 joined [10:38:31]Waiting for new connection... [10:38:31] Sock 7.Parse request [10:38:31]Sock 7.Check first char [10:38:31]Sock 7.First char is OK [10:38:31]request: POST /json_proto HTTP/1.0 [10:38:31]Method: POST [10:38:31]URL: /json_proto [10:38:31]Method is POST - this is cgi request [10:38:31]url: /json_proto [10:38:31]query_string will be loaded in cgi processing [10:38:31]execute_cgi json_proto POST (null) [10:38:31]execute_cgi path=json_proto method=POST [10:38:31]POST find Content-Length [10:38:31]Host: 172.17.38.4:8080 [10:38:31]Content-Length: 677 [10:38:31]Content-Type: application/json [10:38:31] [10:38:31]POST finish read [10:38:31]Found Content-Length = 677 [10:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:31]execute_script... [10: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)979670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:31]POST & json_proto [10:38:31]process_json_proto [10:38:31]json parsed OK: [10:38:31]protocol is kg_v1.0 [10:38:31]action value=close_receipt [10:38:31]process_action close_receipt [10:38:31]cmd_close_receipt [10:38:31]MH_GetDate [10:38:31]Write to MH i2c: F0 00 00 DA 05 CE [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: F0 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: F0 09 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: F0 09 00 DA 05 00 A8 EE 5E 66 CC 51 87 64 39 [10:38:31]GetLastDocTimeStamp 1717497475 [10:38:31]current date 1717497512 [10:38:31]FM_GetShiftState [10:38:31]SAM_PROTO_GetShiftState [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 13 01 00 [10:38:31]Write to MH i2c: E2 08 00 DB 05 80 13 01 00 00 00 00 00 5D [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 0E 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 0E 00 DB 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 20 [10:38:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:38:31]wFMCommunicate OK [10:38:31]SAM_PROTO_GetShiftState done [10:38:31]FM_GetShiftState done [10:38:31]opened in 1717460629 [10:38:31]opened+sec_in_day 1717547029 [10:38:31]quantity*price = 50041 [10:38:31]sum+1 = 50042 [10:38: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 84 04.06.2024 10:38 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148745 ФПД: 21925032019002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103832&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148745&fm=21925032019002&tin=02508201610067®Number=0000000000092720&sum=50000 [10:38:33]StoreToDocumentArchive [10:38:33]shift 368 fd 148745 [10:38:33]save to /storage/0368/doc_00148745 [10:38:33]save last doc name /storage/0368/doc_00148745 to /storage/kkm_last_doc_name [10:38:33]save OK [10:38:33]Clear old archive folders... [10:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:33]tlvbuf is 00F0A3D0 [10:38:33]SAM_PROTO_ClearQueue [10:38:33]wFMCommunicate request_size=4 [10:38:33]MH_SAM_APDU [10:38:33]CAPDU: 80 09 00 00 [10:38:33]Write to MH i2c: E2 08 00 E8 05 80 09 00 00 00 00 00 00 5F [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 03 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [10:38:33]RAPDU: 90 00 [10:38:33]wFMCommunicate OK [10:38:33]SAM_PROTO_ClearQueue done [10:38:33]KKMCreateOFDPacket [10:38:33]OFDProtocolAddRootSTLVToBuf [10:38:33]FM_MakeSignedData [10:38:33]FM_MakeSignedData [10:38:33]SAM_PROTO_SignData [10:38:33]wFMCommunicate request_size=4 [10:38:33]MH_SAM_APDU [10:38:33]CAPDU: 80 0D 01 02 [10:38:33]Write to MH i2c: E2 08 00 E9 05 80 0D 01 02 00 00 00 00 67 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 03 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [10:38:33]RAPDU: 90 00 [10:38:33]wFMCommunicate OK [10:38:33]wFMCommunicate request_size=255 [10:38:33]MH_SAM_APDU [10:38:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A8 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 45 02 00 35 04 06 00 13 [10:38:33]Write to MH i2c: E2 02 01 EA 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A8 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 45 02 00 35 04 06 00 13 00 00 73 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 03 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [10:38:33]RAPDU: 90 00 [10:38:33]wFMCommunicate OK [10:38:33]wFMCommunicate request_size=10 [10:38:33]MH_SAM_APDU [10:38:33]CAPDU: 80 0D 02 02 05 F0 D1 BE C4 3A [10:38:33]Write to MH i2c: E2 0D 00 EB 05 80 0D 02 02 05 00 F0 D1 BE C4 3A 00 00 F1 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 03 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [10:38:33]RAPDU: 90 00 [10:38:33]wFMCommunicate OK [10:38:33]wFMCommunicate request_size=4 [10:38:33]MH_SAM_APDU [10:38:33]CAPDU: 80 0D 03 02 [10:38:33]Write to MH i2c: E2 08 00 EC 05 80 0D 03 02 00 00 00 00 6C [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 0B 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 0B 00 EC 05 00 05 84 4C F5 B8 01 75 EA 90 00 4F [10:38:33]RAPDU: 05 84 4C F5 B8 01 75 EA 90 00 [10:38:33]wFMCommunicate OK [10:38:33]SAM_PROTO_SignData done [10:38:33]FM_MakeSignedData done [10:38:33]CreateOFDProtocolMessage [10:38:33]wFMCommunicate request_size=4 [10:38:33]MH_SAM_APDU [10:38:33]CAPDU: 80 11 00 00 [10:38:33]Write to MH i2c: E2 08 00 ED 05 80 11 00 00 00 00 00 00 6C [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 17 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 17 00 ED 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BF [10:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:38:33]wFMCommunicate OK [10:38:33]CreateOFDProtocolMessage done [10:38:33]OFDSenderStorePacket 148745 [10:38:33]StoreOFDPacket docnum=148745 [10:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D6 2D 07 01 FF F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A8 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 45 02 00 35 04 06 00 13 F0 D1 BE C4 3A 05 84 4C F5 B8 01 75 EA [10:38:33]CheckFolder [10:38:33]dirname=/storage/ofd_packets [10:38:33]CheckFolder done [10:38:33]ProducePacketName [10:38:33]name=ofd_packets/00148745 [10:38:33]NVStorageSaveData ofd_packets/00148745 [10:38:33]File name is /storage/ofd_packets/00148745 [10:38:33]Write 301 bytes [10:38:33]NVStorageSaveData done [10:38:33]OFDSenderStorePacket done [10:38:33]KKMCreateOFDPacket done [10:38:33]NVStorageSaveData kkm_last_timestamp [10:38:33]File name is /storage/kkm_last_timestamp [10:38:33]Write 4 bytes [10:38:33]NVStorageSaveData done [10:38:33]ExternCall_PrintAddStr [10:38:33]wPrintStart [10:38:33]Write to MH i2c: 01 00 00 EE 05 F3 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 EE 05 00 00 00 00 00 FF 0F 08 [10:38:33]RasterBufferAndPrint [10:38:33]line Счет N : (1)979670 [10:38:33]line ИНН: 02508201610067 [10:38:33]line Контрольно-Кассовый Чек [10:38:33]line ПРОДАЖА [10:38:33]line ТРК (МРК, ГНК) : 12 [10:38:33]line Товар: 2710124130 [10:38:33]line Аи-92-К-5 [10:38:33]line 7.480 * 66.90 [10:38:33]line = 500.41 [10:38:33]line НДС 12% НСП 1% [10:38:33]line > о реализуемом товаре [10:38:33]line ОКРУГЛЕНИЕ: -0.41 [10:38:33]line ИТОГО: 500.00 [10:38:33]line Внесено: 500.00 [10:38:33]line СДАЧА: 0.00 [10:38:33]line НСП 1% : 4.43 [10:38:33]line НДС 12% : 53.14 [10:38:33]line Наличными: 500.00 [10:38:33]line Безнал.: 0.00 [10:38:33]line Место: АЗС № 68 "Партнер Нефть" [10:38:33]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:38:33]line СНО: Общий режим [10:38:33]line Чек 84 04.06.2024 10:38 [10:38:33]line Смена: 368 ФФД: 1.0 [10:38:33]line ЗНМ: 0300000035 [10:38:33]line РНМ: 0000000000092720 [10:38:33]line Версия ККМ: 001 [10:38:33]line ФМ: 0000000000875057 [10:38:33]line ФД: 148745 [10:38:33]line ФПД: 21925032019002 [10:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103832&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148745&fm=21925032019002&tin=02508201610067®Number=0000000000092720&sum=50000 [10:38:33]OFD Sender: Processing packet 148745 [packets to send 100, broken 99] [10:38:33]ProducePacketName [10:38:33]name=ofd_packets/00148745 [10:38:33]OFD Sender: To server: pG, [10:38:33]CommunicateWithHost lk.salyk.kg:30040 [10:38:33]ConnectInit lk.salyk.kg [10:38:33]written 0, free lines is 4095 [10:38:34]Connected sock=11 [10:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D6 2D 07 01 FF F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A8 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 45 02 00 35 04 06 00 13 F0 D1 BE C4 3A 05 84 4C F5 B8 01 75 EA [10:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DD DF 47 00 2A 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 38 37 35 30 35 37 10 04 04 00 09 45 02 00 F4 03 04 00 CC 95 5E 66 B6 04 01 00 00 AD 59 41 26 AA E4 54 53 [10:38:34]CommunicateWithHost err = 0 [10:38:34]CheckOFDResponse [10:38:34]1017 (14) - 77093643461234 [10:38:34]1041 (16) - 0000000000875057 [10:38:34]1040 (4) - 148745 [10:38:34]1012 (4) - 04.06.2024 04:19 [10:38:34]1206 (1) - 0 [10:38:34]OFD Sender: Remove packet 148745 [10:38:34]ProducePacketName [10:38:34]name=ofd_packets/00148745 [10:38:34]NVStorageDeleteData [10:38:34]Write to MH i2c: 01 00 00 19 06 1F [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: 01 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: 01 07 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: 01 07 00 19 06 00 00 00 00 00 6A 0C 9C [10:38:34]RasterBufferAndPrint [10:38:34]line [10:38:34]line [10:38:34]line [10:38:34]line [10:38:34]line [10:38:34]written 0, free lines is 3181 [10:38:34]MH_Cut [10:38:34]Write to MH i2c: D1 01 00 20 06 01 F8 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: D1 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: D1 01 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: D1 01 00 20 06 00 F7 [10:38:34]Write to MH i2c: 01 00 00 21 06 27 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]OFD Sender: No OFD packet to send [10:38:35]*** Cut start [10:38:35]*** Partial cut [10:38:35]*** CUTSNS_PIN = 1 [10:38:35]*** CUTSNS_PIN = 0 [10:38:35]*** Brake cut motor [10:38:36]Read from MH i2c: 01 [10:38:36]MH_I2C_Read... [10:38:36]*** Stop cut motor [10:38:36]*** Cut end [10:38:36]Read from MH i2c: 01 07 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 21 06 00 00 00 00 00 FF 0F 3C [10:38:36]process_action close_receipt done [10:38:36]requested_data is exist [10:38:36]produce_requested_data [10:38:36]requested_item fm.sn is exist - process it [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 11 00 00 [10:38:36]Write to MH i2c: E2 08 00 22 06 80 11 00 00 00 00 00 00 A2 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 17 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 17 00 22 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F5 [10:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:38:36]wFMCommunicate OK [10:38:36]requested_item fd.num is exist - process it [10:38:36]SAM_PROTO_GetFieldsCounters [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 13 00 00 [10:38:36]Write to MH i2c: E2 08 00 23 06 80 13 00 00 00 00 00 00 A5 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 62 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 62 00 23 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 09 45 02 00 0E 04 04 00 70 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 7E [10:38:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 09 45 02 00 0E 04 04 00 70 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 [10:38:36]wFMCommunicate OK [10:38:36]SAM_PROTO_GetFieldsCounters done [10:38:36]requested_item shift.num is exist - process it [10:38:36]requested_item shift.opened is exist - process it [10:38:36]req_shift_opened [10:38:36]FM_GetShiftState [10:38:36]SAM_PROTO_GetShiftState [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 13 01 00 [10:38:36]Write to MH i2c: E2 08 00 24 06 80 13 01 00 00 00 00 00 A7 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0E 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0E 00 24 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6A [10:38:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:38:36]wFMCommunicate OK [10:38:36]SAM_PROTO_GetShiftState done [10:38:36]FM_GetShiftState done [10:38:36]req_shift_opened done [10:38:36]requested_item shift.open_date is exist - process it [10:38:36]req_shift_open_date [10:38:36]req_shift_open_date done [10:38:36]produce_requested_data done [10:38:36]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148745,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:38:36]process_action_free close_receipt [10:38:36]json_value_free [10:38:36]json_value_free done [10:38:36]process_json_proto returns [10:38:36]Send response to host [10:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148745,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:38:36]free response buf [10:38:36]execute_script done [10:38:36]execute_script returns [10:38:36]free content buf [10:38:36]Sock 7.Close socket [10:38:36]Sock 7.Thread stoped [10:38:39]OFD Sender: No OFD packet to send [10:38:41]accept exits with 9 [10:38:41]New connection [10:38:41]New thread 3067235684 created [10:38:41]Thread 3067379044 joined [10:38:41]Waiting for new connection... [10:38:41] Sock 9.Parse request [10:38:41]Sock 9.Check first char [10:38:41]Sock 9.First char is OK [10:38:41]request: POST /json_proto HTTP/1.0 [10:38:41]Method: POST [10:38:41]URL: /json_proto [10:38:41]Method is POST - this is cgi request [10:38:41]url: /json_proto [10:38:41]query_string will be loaded in cgi processing [10:38:41]execute_cgi json_proto POST (null) [10:38:41]execute_cgi path=json_proto method=POST [10:38:41]POST find Content-Length [10:38:41]Host: 172.17.38.4:8080 [10:38:41]Content-Length: 800 [10:38:41]Content-Type: application/json [10:38:41] [10:38:41]POST finish read [10:38:41]Found Content-Length = 800 [10:38:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:41]execute_script... [10:38: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)979671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:41]POST & json_proto [10:38:41]process_json_proto [10:38:41]json parsed OK: [10:38:41]protocol is kg_v1.0 [10:38:41]action value=close_receipt [10:38:41]process_action close_receipt [10:38:41]cmd_close_receipt [10:38:41]MH_GetDate [10:38:41]Write to MH i2c: F0 00 00 25 06 1A [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: F0 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: F0 09 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: F0 09 00 25 06 00 B1 EE 5E 66 CC 51 87 64 8E [10:38:41]GetLastDocTimeStamp 1717497512 [10:38:41]current date 1717497521 [10:38:41]FM_GetShiftState [10:38:41]SAM_PROTO_GetShiftState [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 13 01 00 [10:38:41]Write to MH i2c: E2 08 00 26 06 80 13 01 00 00 00 00 00 A9 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 0E 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 0E 00 26 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6C [10:38:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:38:41]wFMCommunicate OK [10:38:41]SAM_PROTO_GetShiftState done [10:38:41]FM_GetShiftState done [10:38:41]opened in 1717460629 [10:38:41]opened+sec_in_day 1717547029 [10:38:41]quantity*price = 50041 [10:38:41]sum+1 = 50042 [10:38:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 85 04.06.2024 10:38 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148746 ФПД: 257685645198867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103841&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148746&fm=257685645198867&tin=02508201610067®Number=0000000000092720&sum=50041 [10:38:42]StoreToDocumentArchive [10:38:42]shift 368 fd 148746 [10:38:42]save to /storage/0368/doc_00148746 [10:38:42]save last doc name /storage/0368/doc_00148746 to /storage/kkm_last_doc_name [10:38:42]save OK [10:38:42]Clear old archive folders... [10:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:42]tlvbuf is 00FC8660 [10:38:42]SAM_PROTO_ClearQueue [10:38:42]wFMCommunicate request_size=4 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 09 00 00 [10:38:42]Write to MH i2c: E2 08 00 33 06 80 09 00 00 00 00 00 00 AB [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [10:38:42]RAPDU: 90 00 [10:38:42]wFMCommunicate OK [10:38:42]SAM_PROTO_ClearQueue done [10:38:42]KKMCreateOFDPacket [10:38:42]OFDProtocolAddRootSTLVToBuf [10:38:42]FM_MakeSignedData [10:38:42]FM_MakeSignedData [10:38:42]SAM_PROTO_SignData [10:38:42]wFMCommunicate request_size=4 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 0D 01 02 [10:38:42]Write to MH i2c: E2 08 00 34 06 80 0D 01 02 00 00 00 00 B3 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [10:38:42]RAPDU: 90 00 [10:38:42]wFMCommunicate OK [10:38:42]wFMCommunicate request_size=255 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 55 00 00 00 F4 03 04 00 B1 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 45 02 00 35 04 06 00 EA [10:38:42]Write to MH i2c: E2 02 01 35 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 55 00 00 00 F4 03 04 00 B1 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 45 02 00 35 04 06 00 EA 00 00 F3 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [10:38:42]RAPDU: 90 00 [10:38:42]wFMCommunicate OK [10:38:42]wFMCommunicate request_size=10 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 0D 02 02 05 5D 1D 58 86 13 [10:38:42]Write to MH i2c: E2 0D 00 36 06 80 0D 02 02 05 00 5D 1D 58 86 13 00 00 2B [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [10:38:42]RAPDU: 90 00 [10:38:42]wFMCommunicate OK [10:38:42]wFMCommunicate request_size=4 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 0D 03 02 [10:38:42]Write to MH i2c: E2 08 00 37 06 80 0D 03 02 00 00 00 00 B8 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:43]Read from MH i2c: E2 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: E2 0B 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: E2 0B 00 37 06 00 DE 05 C5 7E 04 DA A2 D1 90 00 30 [10:38:43]RAPDU: DE 05 C5 7E 04 DA A2 D1 90 00 [10:38:43]wFMCommunicate OK [10:38:43]SAM_PROTO_SignData done [10:38:43]FM_MakeSignedData done [10:38:43]CreateOFDProtocolMessage [10:38:43]wFMCommunicate request_size=4 [10:38:43]MH_SAM_APDU [10:38:43]CAPDU: 80 11 00 00 [10:38:43]Write to MH i2c: E2 08 00 38 06 80 11 00 00 00 00 00 00 B8 [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:43]Read from MH i2c: E2 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: E2 17 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: E2 17 00 38 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0B [10:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:38:43]wFMCommunicate OK [10:38:43]CreateOFDProtocolMessage done [10:38:43]OFDSenderStorePacket 148746 [10:38:43]StoreOFDPacket docnum=148746 [10:38:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C8 2B 07 01 4E 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B1 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 45 02 00 35 04 06 00 EA 5D 1D 58 86 13 DE 05 C5 7E 04 DA A2 D1 [10:38:43]CheckFolder [10:38:43]dirname=/storage/ofd_packets [10:38:43]CheckFolder done [10:38:43]ProducePacketName [10:38:43]name=ofd_packets/00148746 [10:38:43]NVStorageSaveData ofd_packets/00148746 [10:38:43]File name is /storage/ofd_packets/00148746 [10:38:43]Write 301 bytes [10:38:43]NVStorageSaveData done [10:38:43]OFDSenderStorePacket done [10:38:43]KKMCreateOFDPacket done [10:38:43]NVStorageSaveData kkm_last_timestamp [10:38:43]File name is /storage/kkm_last_timestamp [10:38:43]Write 4 bytes [10:38:43]NVStorageSaveData done [10:38:43]ExternCall_PrintAddStr [10:38:43]wPrintStart [10:38:43]Write to MH i2c: 01 00 00 39 06 3F [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 07 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 07 00 39 06 00 00 00 00 00 FF 0F 54 [10:38:43]RasterBufferAndPrint [10:38:43]line Счет N : (1)979671 [10:38:43]line ИНН: 02508201610067 [10:38:43]line Контрольно-Кассовый Чек [10:38:43]line ПРОДАЖА [10:38:43]line ТРК (МРК, ГНК) : 22 [10:38:43]line Товар: 2710124130 [10:38:43]line Аи-92-К-5 [10:38:43]line 7.480 * 66.90 [10:38:43]line = 500.41 [10:38:43]line НДС 12% НСП 1% [10:38:43]line > о реализуемом товаре [10:38:43]line ИТОГО: 500.41 [10:38:43]line НСП 1% : 4.43 [10:38:43]line НДС 12% : 53.14 [10:38:43]line Наличными: 0.00 [10:38:43]line Безнал.: 500.41 [10:38:43]line Место: АЗС № 68 "Партнер Нефть" [10:38:43]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:38:43]line СНО: Общий режим [10:38:43]line Чек 85 04.06.2024 10:38 [10:38:43]line Смена: 368 ФФД: 1.0 [10:38:43]line ЗНМ: 0300000035 [10:38:43]line РНМ: 0000000000092720 [10:38:43]line Версия ККМ: 001 [10:38:43]line Платежная система: O! деньги [10:38:43]line ФМ: 0000000000875057 [10:38:43]line ФД: 148746 [10:38:43]line ФПД: 257685645198867 [10:38:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T103841&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148746&fm=257685645198867&tin=02508201610067®Number=0000000000092720&sum=50041 [10:38:43]written 0, free lines is 4095 [10:38:43]OFD Sender: Processing packet 148746 [packets to send 100, broken 99] [10:38:43]ProducePacketName [10:38:43]name=ofd_packets/00148746 [10:38:43]OFD Sender: To server: pG, [10:38:43]CommunicateWithHost lk.salyk.kg:30040 [10:38:43]ConnectInit lk.salyk.kg [10:38:43]Connected sock=10 [10:38:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C8 2B 07 01 4E 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B1 EE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 45 02 00 35 04 06 00 EA 5D 1D 58 86 13 DE 05 C5 7E 04 DA A2 D1 [10:38:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C9 58 47 00 AC 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 45 02 00 F4 03 04 00 D5 95 5E 66 B6 04 01 00 00 1B 9F 03 7E E2 B3 4F 97 [10:38:43]CommunicateWithHost err = 0 [10:38:43]CheckOFDResponse [10:38:43]1017 (14) - 77093643461234 [10:38:43]1041 (16) - 0000000000875057 [10:38:43]1040 (4) - 148746 [10:38:43]1012 (4) - 04.06.2024 04:19 [10:38:43]1206 (1) - 0 [10:38:43]OFD Sender: Remove packet 148746 [10:38:43]ProducePacketName [10:38:43]name=ofd_packets/00148746 [10:38:43]NVStorageDeleteData [10:38:43]Write to MH i2c: 01 00 00 63 06 69 [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 07 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 87 0C 03 [10:38:43]RasterBufferAndPrint [10:38:43]line [10:38:43]line [10:38:43]line [10:38:43]line [10:38:43]line [10:38:43]written 0, free lines is 3212 [10:38:43]MH_Cut [10:38:43]Write to MH i2c: D1 01 00 6A 06 01 42 [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: D1 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: D1 01 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: D1 01 00 6A 06 00 41 [10:38:43]Write to MH i2c: 01 00 00 6B 06 71 [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]OFD Sender: No OFD packet to send [10:38:44]*** Cut start [10:38:44]*** Partial cut [10:38:44]*** CUTSNS_PIN = 1 [10:38:44]*** CUTSNS_PIN = 0 [10:38:45]*** Brake cut motor [10:38:45]Read from MH i2c: 01 [10:38:45]MH_I2C_Read... [10:38:45]*** Stop cut motor [10:38:45]*** Cut end [10:38:45]Read from MH i2c: 01 07 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: 01 07 00 6B 06 00 00 00 00 00 FF 0F 86 [10:38:45]process_action close_receipt done [10:38:45]requested_data is exist [10:38:45]produce_requested_data [10:38:45]requested_item fm.sn is exist - process it [10:38:45]wFMCommunicate request_size=4 [10:38:45]MH_SAM_APDU [10:38:45]CAPDU: 80 11 00 00 [10:38:45]Write to MH i2c: E2 08 00 6C 06 80 11 00 00 00 00 00 00 EC [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:45]Read from MH i2c: E2 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 17 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 17 00 6C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3F [10:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:38:45]wFMCommunicate OK [10:38:45]requested_item fd.num is exist - process it [10:38:45]SAM_PROTO_GetFieldsCounters [10:38:45]wFMCommunicate request_size=4 [10:38:45]MH_SAM_APDU [10:38:45]CAPDU: 80 13 00 00 [10:38:45]Write to MH i2c: E2 08 00 6D 06 80 13 00 00 00 00 00 00 EF [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:45]Read from MH i2c: E2 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 62 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 62 00 6D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0A 45 02 00 0E 04 04 00 70 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 CC [10:38:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0A 45 02 00 0E 04 04 00 70 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 [10:38:45]wFMCommunicate OK [10:38:45]SAM_PROTO_GetFieldsCounters done [10:38:45]requested_item shift.num is exist - process it [10:38:45]requested_item shift.opened is exist - process it [10:38:45]req_shift_opened [10:38:45]FM_GetShiftState [10:38:45]SAM_PROTO_GetShiftState [10:38:45]wFMCommunicate request_size=4 [10:38:45]MH_SAM_APDU [10:38:45]CAPDU: 80 13 01 00 [10:38:45]Write to MH i2c: E2 08 00 6E 06 80 13 01 00 00 00 00 00 F1 [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:45]Read from MH i2c: E2 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 0E 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 0E 00 6E 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B4 [10:38:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:38:45]wFMCommunicate OK [10:38:45]SAM_PROTO_GetShiftState done [10:38:45]FM_GetShiftState done [10:38:45]req_shift_opened done [10:38:45]requested_item shift.open_date is exist - process it [10:38:45]req_shift_open_date [10:38:45]req_shift_open_date done [10:38:45]produce_requested_data done [10:38:45]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148746,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:38:45]process_action_free close_receipt [10:38:45]json_value_free [10:38:45]json_value_free done [10:38:45]process_json_proto returns [10:38:45]Send response to host [10:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148746,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:38:45]free response buf [10:38:45]execute_script done [10:38:45]execute_script returns [10:38:45]free content buf [10:38:45]Sock 9.Close socket [10:38:45]Sock 9.Thread stoped [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:12]accept exits with 7 [10:42:12]New connection [10:42:12]New thread 3067379044 created [10:42:12]Thread 3067235684 joined [10:42:12]Waiting for new connection... [10:42:12] Sock 7.Parse request [10:42:12]Sock 7.Check first char [10:42:12]Sock 7.First char is OK [10:42:12]request: POST /json_proto HTTP/1.0 [10:42:12]Method: POST [10:42:12]URL: /json_proto [10:42:12]Method is POST - this is cgi request [10:42:12]url: /json_proto [10:42:12]query_string will be loaded in cgi processing [10:42:12]execute_cgi json_proto POST (null) [10:42:12]execute_cgi path=json_proto method=POST [10:42:12]POST find Content-Length [10:42:12]Host: 172.17.38.4:8080 [10:42:12]Content-Length: 790 [10:42:12]Content-Type: application/json [10:42:12] [10:42:12]POST finish read [10:42:12]Found Content-Length = 790 [10:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:12]execute_script... [10:42: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)979672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:12]POST & json_proto [10:42:12]process_json_proto [10:42:12]json parsed OK: [10:42:12]protocol is kg_v1.0 [10:42:12]action value=close_receipt [10:42:12]process_action close_receipt [10:42:12]cmd_close_receipt [10:42:12]MH_GetDate [10:42:12]Write to MH i2c: F0 00 00 6F 06 64 [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: F0 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: F0 09 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: F0 09 00 6F 06 00 85 EF 5E 66 CC 51 87 64 AD [10:42:12]GetLastDocTimeStamp 1717497521 [10:42:12]current date 1717497733 [10:42:12]FM_GetShiftState [10:42:12]SAM_PROTO_GetShiftState [10:42:12]wFMCommunicate request_size=4 [10:42:12]MH_SAM_APDU [10:42:12]CAPDU: 80 13 01 00 [10:42:12]Write to MH i2c: E2 08 00 70 06 80 13 01 00 00 00 00 00 F3 [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 0E 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 0E 00 70 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B6 [10:42:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:42:12]wFMCommunicate OK [10:42:12]SAM_PROTO_GetShiftState done [10:42:12]FM_GetShiftState done [10:42:12]opened in 1717460629 [10:42:12]opened+sec_in_day 1717547029 [10:42:12]quantity*price = 40006 [10:42:12]sum+1 = 40007 [10:42:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 86 04.06.2024 10:42 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148747 ФПД: 91689260827551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104213&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148747&fm=91689260827551&tin=02508201610067®Number=0000000000092720&sum=40006 [10:42:13]StoreToDocumentArchive [10:42:13]shift 368 fd 148747 [10:42:13]save to /storage/0368/doc_00148747 [10:42:13]save last doc name /storage/0368/doc_00148747 to /storage/kkm_last_doc_name [10:42:13]save OK [10:42:13]Clear old archive folders... [10:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:13]tlvbuf is 00F0B530 [10:42:13]SAM_PROTO_ClearQueue [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 09 00 00 [10:42:13]Write to MH i2c: E2 08 00 7D 06 80 09 00 00 00 00 00 00 F5 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 03 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [10:42:14]RAPDU: 90 00 [10:42:14]wFMCommunicate OK [10:42:14]SAM_PROTO_ClearQueue done [10:42:14]KKMCreateOFDPacket [10:42:14]OFDProtocolAddRootSTLVToBuf [10:42:14]FM_MakeSignedData [10:42:14]FM_MakeSignedData [10:42:14]SAM_PROTO_SignData [10:42:14]wFMCommunicate request_size=4 [10:42:14]MH_SAM_APDU [10:42:14]CAPDU: 80 0D 01 02 [10:42:14]Write to MH i2c: E2 08 00 7E 06 80 0D 01 02 00 00 00 00 FD [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 03 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 03 00 7E 06 00 90 00 F8 [10:42:14]RAPDU: 90 00 [10:42:14]wFMCommunicate OK [10:42:14]wFMCommunicate request_size=255 [10:42:14]MH_SAM_APDU [10:42:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 85 EF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 45 02 00 35 04 06 00 53 [10:42:14]Write to MH i2c: E2 02 01 7F 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 85 EF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 45 02 00 35 04 06 00 53 00 00 06 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]OFD Sender: No OFD packet to send [10:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 03 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [10:42:14]RAPDU: 90 00 [10:42:14]wFMCommunicate OK [10:42:14]wFMCommunicate request_size=10 [10:42:14]MH_SAM_APDU [10:42:14]CAPDU: 80 0D 02 02 05 64 11 D2 43 9F [10:42:14]Write to MH i2c: E2 0D 00 80 06 80 0D 02 02 05 00 64 11 D2 43 9F 00 00 33 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 03 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [10:42:14]RAPDU: 90 00 [10:42:14]wFMCommunicate OK [10:42:14]wFMCommunicate request_size=4 [10:42:14]MH_SAM_APDU [10:42:14]CAPDU: 80 0D 03 02 [10:42:14]Write to MH i2c: E2 08 00 81 06 80 0D 03 02 00 00 00 00 02 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 0B 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 0B 00 81 06 00 B4 AC EA 09 CD 4B 84 BD 90 00 AF [10:42:14]RAPDU: B4 AC EA 09 CD 4B 84 BD 90 00 [10:42:14]wFMCommunicate OK [10:42:14]SAM_PROTO_SignData done [10:42:14]FM_MakeSignedData done [10:42:14]CreateOFDProtocolMessage [10:42:14]wFMCommunicate request_size=4 [10:42:14]MH_SAM_APDU [10:42:14]CAPDU: 80 11 00 00 [10:42:14]Write to MH i2c: E2 08 00 82 06 80 11 00 00 00 00 00 00 02 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:14]Read from MH i2c: E2 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 17 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: E2 17 00 82 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 55 [10:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:42:14]wFMCommunicate OK [10:42:14]CreateOFDProtocolMessage done [10:42:14]OFDSenderStorePacket 148747 [10:42:14]StoreOFDPacket docnum=148747 [10:42:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 54 56 07 01 C8 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 85 EF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 45 02 00 35 04 06 00 53 64 11 D2 43 9F B4 AC EA 09 CD 4B 84 BD [10:42:14]CheckFolder [10:42:14]dirname=/storage/ofd_packets [10:42:14]CheckFolder done [10:42:14]ProducePacketName [10:42:14]name=ofd_packets/00148747 [10:42:14]NVStorageSaveData ofd_packets/00148747 [10:42:14]File name is /storage/ofd_packets/00148747 [10:42:14]Write 301 bytes [10:42:14]NVStorageSaveData done [10:42:14]OFDSenderStorePacket done [10:42:14]KKMCreateOFDPacket done [10:42:14]NVStorageSaveData kkm_last_timestamp [10:42:14]File name is /storage/kkm_last_timestamp [10:42:14]Write 4 bytes [10:42:14]NVStorageSaveData done [10:42:14]ExternCall_PrintAddStr [10:42:14]wPrintStart [10:42:14]Write to MH i2c: 01 00 00 83 06 89 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 83 06 00 00 00 00 00 FF 0F 9E [10:42:14]RasterBufferAndPrint [10:42:14]line Счет N : (1)979672 [10:42:14]line ИНН: 02508201610067 [10:42:14]line Контрольно-Кассовый Чек [10:42:14]line ПРОДАЖА [10:42:14]line ТРК (МРК, ГНК) : 22 [10:42:14]line Товар: 2710124130 [10:42:14]line Аи-92-К-5 [10:42:14]line 5.980 * 66.90 [10:42:14]line = 400.06 [10:42:14]line НДС 12% НСП 1% [10:42:14]line > о реализуемом товаре [10:42:14]line ИТОГО: 400.06 [10:42:14]line НСП 1% : 3.54 [10:42:14]line НДС 12% : 42.48 [10:42:14]line Наличными: 0.00 [10:42:14]line Безнал.: 400.06 [10:42:14]line Место: АЗС № 68 "Партнер Нефть" [10:42:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:42:14]line СНО: Общий режим [10:42:14]line Чек 86 04.06.2024 10:42 [10:42:14]line Смена: 368 ФФД: 1.0 [10:42:14]line ЗНМ: 0300000035 [10:42:14]line РНМ: 0000000000092720 [10:42:14]line Версия ККМ: 001 [10:42:14]line Платежная система: KICB Банк [10:42:14]line ФМ: 0000000000875057 [10:42:14]line ФД: 148747 [10:42:14]line ФПД: 91689260827551 [10:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104213&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148747&fm=91689260827551&tin=02508201610067®Number=0000000000092720&sum=40006 [10:42:14]OFD Sender: Processing packet 148747 [packets to send 100, broken 99] [10:42:14]ProducePacketName [10:42:14]name=ofd_packets/00148747 [10:42:14]OFD Sender: To server: pG, [10:42:14]CommunicateWithHost lk.salyk.kg:30040 [10:42:14]ConnectInit lk.salyk.kg [10:42:14]written 0, free lines is 4095 [10:42:14]Connected sock=11 [10:42:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 54 56 07 01 C8 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 85 EF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 45 02 00 35 04 06 00 53 64 11 D2 43 9F B4 AC EA 09 CD 4B 84 BD [10:42:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3B 77 47 00 AF 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 45 02 00 F4 03 04 00 A9 96 5E 66 B6 04 01 00 00 4B 2F 71 DB C0 58 0F 2C [10:42:15]CommunicateWithHost err = 0 [10:42:15]CheckOFDResponse [10:42:15]1017 (14) - 77093643461234 [10:42:15]1041 (16) - 0000000000875057 [10:42:15]1040 (4) - 148747 [10:42:15]1012 (4) - 04.06.2024 04:23 [10:42:15]1206 (1) - 0 [10:42:15]OFD Sender: Remove packet 148747 [10:42:15]ProducePacketName [10:42:15]name=ofd_packets/00148747 [10:42:15]NVStorageDeleteData [10:42:15]Write to MH i2c: 01 00 00 AD 06 B3 [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: 01 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: 01 07 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: 01 07 00 AD 06 00 00 00 00 00 79 0C 3F [10:42:15]RasterBufferAndPrint [10:42:15]line [10:42:15]line [10:42:15]line [10:42:15]line [10:42:15]line [10:42:15]written 0, free lines is 3196 [10:42:15]MH_Cut [10:42:15]Write to MH i2c: D1 01 00 B4 06 01 8C [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: D1 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: D1 01 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: D1 01 00 B4 06 00 8B [10:42:15]Write to MH i2c: 01 00 00 B5 06 BB [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]OFD Sender: No OFD packet to send [10:42:16]*** Cut start [10:42:16]*** Partial cut [10:42:16]*** CUTSNS_PIN = 1 [10:42:16]*** CUTSNS_PIN = 0 [10:42:16]*** Brake cut motor [10:42:17]Read from MH i2c: 01 [10:42:17]MH_I2C_Read... [10:42:17]*** Stop cut motor [10:42:17]*** Cut end [10:42:17]Read from MH i2c: 01 07 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 FF 0F D0 [10:42:17]process_action close_receipt done [10:42:17]requested_data is exist [10:42:17]produce_requested_data [10:42:17]requested_item fm.sn is exist - process it [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 11 00 00 [10:42:17]Write to MH i2c: E2 08 00 B6 06 80 11 00 00 00 00 00 00 36 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 17 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 17 00 B6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 89 [10:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:42:17]wFMCommunicate OK [10:42:17]requested_item fd.num is exist - process it [10:42:17]SAM_PROTO_GetFieldsCounters [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 13 00 00 [10:42:17]Write to MH i2c: E2 08 00 B7 06 80 13 00 00 00 00 00 00 39 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 62 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 62 00 B7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0B 45 02 00 0E 04 04 00 70 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 1A [10:42:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0B 45 02 00 0E 04 04 00 70 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 [10:42:17]wFMCommunicate OK [10:42:17]SAM_PROTO_GetFieldsCounters done [10:42:17]requested_item shift.num is exist - process it [10:42:17]requested_item shift.opened is exist - process it [10:42:17]req_shift_opened [10:42:17]FM_GetShiftState [10:42:17]SAM_PROTO_GetShiftState [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 13 01 00 [10:42:17]Write to MH i2c: E2 08 00 B8 06 80 13 01 00 00 00 00 00 3B [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 0E 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 0E 00 B8 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FE [10:42:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:42:17]wFMCommunicate OK [10:42:17]SAM_PROTO_GetShiftState done [10:42:17]FM_GetShiftState done [10:42:17]req_shift_opened done [10:42:17]requested_item shift.open_date is exist - process it [10:42:17]req_shift_open_date [10:42:17]req_shift_open_date done [10:42:17]produce_requested_data done [10:42:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148747,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:42:17]process_action_free close_receipt [10:42:17]json_value_free [10:42:17]json_value_free done [10:42:17]process_json_proto returns [10:42:17]Send response to host [10:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148747,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:42:17]free response buf [10:42:17]execute_script done [10:42:17]execute_script returns [10:42:17]free content buf [10:42:17]Sock 7.Close socket [10:42:17]Sock 7.Thread stoped [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:48]accept exits with 9 [10:46:48]New connection [10:46:48]New thread 3067235684 created [10:46:48]Thread 3067379044 joined [10:46:48]Waiting for new connection... [10:46:48] Sock 9.Parse request [10:46:48]Sock 9.Check first char [10:46:48]Sock 9.First char is OK [10:46:48]request: POST /json_proto HTTP/1.0 [10:46:48]Method: POST [10:46:48]URL: /json_proto [10:46:48]Method is POST - this is cgi request [10:46:48]url: /json_proto [10:46:48]query_string will be loaded in cgi processing [10:46:48]execute_cgi json_proto POST (null) [10:46:48]execute_cgi path=json_proto method=POST [10:46:48]POST find Content-Length [10:46:48]Host: 172.17.38.4:8080 [10:46:48]Content-Length: 671 [10:46:48]Content-Type: application/json [10:46:48] [10:46:48]POST finish read [10:46:48]Found Content-Length = 671 [10:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:48]execute_script... [10:46: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)979673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:48]POST & json_proto [10:46:48]process_json_proto [10:46:48]json parsed OK: [10:46:48]protocol is kg_v1.0 [10:46:48]action value=close_receipt [10:46:48]process_action close_receipt [10:46:48]cmd_close_receipt [10:46:48]MH_GetDate [10:46:48]Write to MH i2c: F0 00 00 B9 06 AE [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: F0 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: F0 09 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: F0 09 00 B9 06 00 99 F0 5E 66 CC 51 87 64 0C [10:46:48]GetLastDocTimeStamp 1717497733 [10:46:48]current date 1717498009 [10:46:48]FM_GetShiftState [10:46:48]SAM_PROTO_GetShiftState [10:46:48]wFMCommunicate request_size=4 [10:46:48]MH_SAM_APDU [10:46:48]CAPDU: 80 13 01 00 [10:46:48]Write to MH i2c: E2 08 00 BA 06 80 13 01 00 00 00 00 00 3D [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:48]Read from MH i2c: E2 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 0E 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 0E 00 BA 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 00 [10:46:48]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:46:48]wFMCommunicate OK [10:46:48]SAM_PROTO_GetShiftState done [10:46:48]FM_GetShiftState done [10:46:48]opened in 1717460629 [10:46:48]opened+sec_in_day 1717547029 [10:46:48]quantity*price = 66 [10:46:48]sum+1 = 68 [10:46:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 100.00 СДАЧА: 100.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 87 04.06.2024 10:46 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148748 ФПД: 60468301655010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104649&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148748&fm=60468301655010&tin=02508201610067®Number=0000000000092720&sum=0 [10:46:50]StoreToDocumentArchive [10:46:50]shift 368 fd 148748 [10:46:50]save to /storage/0368/doc_00148748 [10:46:50]save last doc name /storage/0368/doc_00148748 to /storage/kkm_last_doc_name [10:46:50]save OK [10:46:50]Clear old archive folders... [10:46:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:50]tlvbuf is 00F0ADE0 [10:46:50]SAM_PROTO_ClearQueue [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 09 00 00 [10:46:50]Write to MH i2c: E2 08 00 C7 06 80 09 00 00 00 00 00 00 3F [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 03 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [10:46:50]RAPDU: 90 00 [10:46:50]wFMCommunicate OK [10:46:50]SAM_PROTO_ClearQueue done [10:46:50]KKMCreateOFDPacket [10:46:50]OFDProtocolAddRootSTLVToBuf [10:46:50]FM_MakeSignedData [10:46:50]FM_MakeSignedData [10:46:50]SAM_PROTO_SignData [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 0D 01 02 [10:46:50]Write to MH i2c: E2 08 00 C8 06 80 0D 01 02 00 00 00 00 47 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 03 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [10:46:50]RAPDU: 90 00 [10:46:50]wFMCommunicate OK [10:46:50]wFMCommunicate request_size=255 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 99 F0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 45 02 00 35 04 06 00 36 [10:46:50]Write to MH i2c: E2 02 01 C9 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 99 F0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 45 02 00 35 04 06 00 36 00 00 7B [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 03 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [10:46:50]RAPDU: 90 00 [10:46:50]wFMCommunicate OK [10:46:50]wFMCommunicate request_size=10 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 0D 02 02 05 FE DF A3 EB E2 [10:46:50]Write to MH i2c: E2 0D 00 CA 06 80 0D 02 02 05 00 FE DF A3 EB E2 00 00 A1 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 03 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 03 00 CA 06 00 90 00 44 [10:46:50]RAPDU: 90 00 [10:46:50]wFMCommunicate OK [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 0D 03 02 [10:46:50]Write to MH i2c: E2 08 00 CB 06 80 0D 03 02 00 00 00 00 4C [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 0B 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 0B 00 CB 06 00 61 C3 8E BB D4 FE 7D F6 90 00 FF [10:46:50]RAPDU: 61 C3 8E BB D4 FE 7D F6 90 00 [10:46:50]wFMCommunicate OK [10:46:50]SAM_PROTO_SignData done [10:46:50]FM_MakeSignedData done [10:46:50]CreateOFDProtocolMessage [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 11 00 00 [10:46:50]Write to MH i2c: E2 08 00 CC 06 80 11 00 00 00 00 00 00 4C [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 17 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 17 00 CC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9F [10:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:46:50]wFMCommunicate OK [10:46:50]CreateOFDProtocolMessage done [10:46:50]OFDSenderStorePacket 148748 [10:46:50]StoreOFDPacket docnum=148748 [10:46:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 32 8D 07 01 1D 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 99 F0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 45 02 00 35 04 06 00 36 FE DF A3 EB E2 61 C3 8E BB D4 FE 7D F6 [10:46:50]CheckFolder [10:46:50]dirname=/storage/ofd_packets [10:46:50]CheckFolder done [10:46:50]ProducePacketName [10:46:50]name=ofd_packets/00148748 [10:46:50]NVStorageSaveData ofd_packets/00148748 [10:46:50]File name is /storage/ofd_packets/00148748 [10:46:50]Write 301 bytes [10:46:50]NVStorageSaveData done [10:46:50]OFDSenderStorePacket done [10:46:50]KKMCreateOFDPacket done [10:46:50]NVStorageSaveData kkm_last_timestamp [10:46:50]File name is /storage/kkm_last_timestamp [10:46:50]Write 4 bytes [10:46:50]NVStorageSaveData done [10:46:50]ExternCall_PrintAddStr [10:46:50]wPrintStart [10:46:50]Write to MH i2c: 01 00 00 CD 06 D3 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 07 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 07 00 CD 06 00 00 00 00 00 FF 0F E8 [10:46:50]RasterBufferAndPrint [10:46:50]line Счет N : (1)979673 [10:46:50]line ИНН: 02508201610067 [10:46:50]line Контрольно-Кассовый Чек [10:46:50]line ПРОДАЖА [10:46:50]line ТРК (МРК, ГНК) : 12 [10:46:50]line Товар: 2710124130 [10:46:50]line Аи-92-К-5 [10:46:50]line 0.010 * 66.90 [10:46:50]line = 0.67 [10:46:50]line НДС 12% НСП 1% [10:46:50]line > о реализуемом товаре [10:46:50]line ОКРУГЛЕНИЕ: -0.67 [10:46:50]line ИТОГО: 0.00 [10:46:50]line Внесено: 100.00 [10:46:50]line СДАЧА: 100.00 [10:46:50]line НСП 1% : 0.01 [10:46:50]line НДС 12% : 0.07 [10:46:50]line Наличными: 0.00 [10:46:50]line Безнал.: 0.00 [10:46:50]line Место: АЗС № 68 "Партнер Нефть" [10:46:50]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:46:50]line СНО: Общий режим [10:46:50]line Чек 87 04.06.2024 10:46 [10:46:50]line Смена: 368 ФФД: 1.0 [10:46:50]line ЗНМ: 0300000035 [10:46:50]line РНМ: 0000000000092720 [10:46:50]line Версия ККМ: 001 [10:46:50]line ФМ: 0000000000875057 [10:46:50]line ФД: 148748 [10:46:50]line ФПД: 60468301655010 [10:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104649&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148748&fm=60468301655010&tin=02508201610067®Number=0000000000092720&sum=0 [10:46:50]OFD Sender: Processing packet 148748 [packets to send 100, broken 99] [10:46:50]ProducePacketName [10:46:50]name=ofd_packets/00148748 [10:46:50]OFD Sender: To server: pG, [10:46:50]CommunicateWithHost lk.salyk.kg:30040 [10:46:50]ConnectInit lk.salyk.kg [10:46:50]written 0, free lines is 4095 [10:46:51]Connected sock=10 [10:46:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 32 8D 07 01 1D 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 99 F0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 45 02 00 35 04 06 00 36 FE DF A3 EB E2 61 C3 8E BB D4 FE 7D F6 [10:46:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 39 BC 47 00 3E 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 38 37 35 30 35 37 10 04 04 00 0C 45 02 00 F4 03 04 00 BD 97 5E 66 B6 04 01 00 00 23 F5 69 88 B4 C0 25 E4 [10:46:51]CommunicateWithHost err = 0 [10:46:51]CheckOFDResponse [10:46:51]1017 (14) - 77093643461234 [10:46:51]1041 (16) - 0000000000875057 [10:46:51]1040 (4) - 148748 [10:46:51]1012 (4) - 04.06.2024 04:27 [10:46:51]1206 (1) - 0 [10:46:51]OFD Sender: Remove packet 148748 [10:46:51]ProducePacketName [10:46:51]name=ofd_packets/00148748 [10:46:51]NVStorageDeleteData [10:46:51]Write to MH i2c: 01 00 00 F8 06 FE [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: 01 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: 01 07 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: 01 07 00 F8 06 00 00 00 00 00 6C 0C 7D [10:46:51]RasterBufferAndPrint [10:46:51]line [10:46:51]line [10:46:51]line [10:46:51]line [10:46:51]line [10:46:51]written 0, free lines is 3185 [10:46:51]MH_Cut [10:46:51]Write to MH i2c: D1 01 00 FF 06 01 D7 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: D1 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: D1 01 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: D1 01 00 FF 06 00 D6 [10:46:51]Write to MH i2c: 01 00 00 00 07 07 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]OFD Sender: No OFD packet to send [10:46:52]*** Cut start [10:46:52]*** Partial cut [10:46:52]*** CUTSNS_PIN = 1 [10:46:52]*** CUTSNS_PIN = 0 [10:46:52]*** Brake cut motor [10:46:53]Read from MH i2c: 01 [10:46:53]MH_I2C_Read... [10:46:53]*** Stop cut motor [10:46:53]*** Cut end [10:46:53]Read from MH i2c: 01 07 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 00 07 00 00 00 00 00 FF 0F 1C [10:46:53]process_action close_receipt done [10:46:53]requested_data is exist [10:46:53]produce_requested_data [10:46:53]requested_item fm.sn is exist - process it [10:46:53]wFMCommunicate request_size=4 [10:46:53]MH_SAM_APDU [10:46:53]CAPDU: 80 11 00 00 [10:46:53]Write to MH i2c: E2 08 00 01 07 80 11 00 00 00 00 00 00 82 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:53]Read from MH i2c: E2 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: E2 17 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: E2 17 00 01 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D5 [10:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:46:53]wFMCommunicate OK [10:46:53]requested_item fd.num is exist - process it [10:46:53]SAM_PROTO_GetFieldsCounters [10:46:53]wFMCommunicate request_size=4 [10:46:53]MH_SAM_APDU [10:46:53]CAPDU: 80 13 00 00 [10:46:53]Write to MH i2c: E2 08 00 02 07 80 13 00 00 00 00 00 00 85 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:53]Read from MH i2c: E2 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: E2 62 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: E2 62 00 02 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 45 02 00 0E 04 04 00 70 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 6A [10:46:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 45 02 00 0E 04 04 00 70 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 [10:46:53]wFMCommunicate OK [10:46:53]SAM_PROTO_GetFieldsCounters done [10:46:53]requested_item shift.num is exist - process it [10:46:53]requested_item shift.opened is exist - process it [10:46:53]req_shift_opened [10:46:53]FM_GetShiftState [10:46:53]SAM_PROTO_GetShiftState [10:46:53]wFMCommunicate request_size=4 [10:46:53]MH_SAM_APDU [10:46:53]CAPDU: 80 13 01 00 [10:46:53]Write to MH i2c: E2 08 00 03 07 80 13 01 00 00 00 00 00 87 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:53]Read from MH i2c: E2 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: E2 0E 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: E2 0E 00 03 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4A [10:46:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:46:53]wFMCommunicate OK [10:46:53]SAM_PROTO_GetShiftState done [10:46:53]FM_GetShiftState done [10:46:53]req_shift_opened done [10:46:53]requested_item shift.open_date is exist - process it [10:46:53]req_shift_open_date [10:46:53]req_shift_open_date done [10:46:53]produce_requested_data done [10:46:53]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148748,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:46:53]process_action_free close_receipt [10:46:53]json_value_free [10:46:53]json_value_free done [10:46:53]process_json_proto returns [10:46:53]Send response to host [10:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148748,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:46:53]free response buf [10:46:53]execute_script done [10:46:53]execute_script returns [10:46:53]free content buf [10:46:53]Sock 9.Close socket [10:46:53]Sock 9.Thread stoped [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:19]accept exits with 7 [10:48:19]New connection [10:48:19]New thread 3067379044 created [10:48:19]Thread 3067235684 joined [10:48:19]Waiting for new connection... [10:48:19] Sock 7.Parse request [10:48:19]Sock 7.Check first char [10:48:19]Sock 7.First char is OK [10:48:19]request: POST /json_proto HTTP/1.0 [10:48:19]Method: POST [10:48:19]URL: /json_proto [10:48:19]Method is POST - this is cgi request [10:48:19]url: /json_proto [10:48:19]query_string will be loaded in cgi processing [10:48:19]execute_cgi json_proto POST (null) [10:48:19]execute_cgi path=json_proto method=POST [10:48:19]POST find Content-Length [10:48:19]Host: 172.17.38.4:8080 [10:48:19]Content-Length: 673 [10:48:19]Content-Type: application/json [10:48:19] [10:48:19]POST finish read [10:48:19]Found Content-Length = 673 [10:48:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.380, "sum" : 25.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 99.00, "total" : 25.00, "payments": [ { "type": 0, "sum" : 25.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:19]execute_script... [10:48: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)979674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.380, "sum" : 25.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 99.00, "total" : 25.00, "payments": [ { "type": 0, "sum" : 25.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:19]POST & json_proto [10:48:19]process_json_proto [10:48:19]json parsed OK: [10:48:19]protocol is kg_v1.0 [10:48:19]action value=close_receipt [10:48:19]process_action close_receipt [10:48:19]cmd_close_receipt [10:48:19]MH_GetDate [10:48:19]Write to MH i2c: F0 00 00 04 07 FA [10:48:19]Write i2c OK [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: F0 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: F0 09 00 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: F0 09 00 04 07 00 F3 F0 5E 66 CC 51 87 64 B2 [10:48:19]GetLastDocTimeStamp 1717498009 [10:48:19]current date 1717498099 [10:48:19]FM_GetShiftState [10:48:19]SAM_PROTO_GetShiftState [10:48:19]wFMCommunicate request_size=4 [10:48:19]MH_SAM_APDU [10:48:19]CAPDU: 80 13 01 00 [10:48:19]Write to MH i2c: E2 08 00 05 07 80 13 01 00 00 00 00 00 89 [10:48:19]Write i2c OK [10:48:19]MH_I2C_Read... [10:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:19]Read from MH i2c: E2 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: E2 0E 00 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: E2 0E 00 05 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4C [10:48:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:48:19]wFMCommunicate OK [10:48:19]SAM_PROTO_GetShiftState done [10:48:19]FM_GetShiftState done [10:48:19]opened in 1717460629 [10:48:19]opened+sec_in_day 1717547029 [10:48:19]quantity*price = 2542 [10:48:19]sum+1 = 2543 [10:48:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 25.00 Внесено: 99.00 СДАЧА: 74.00 НСП 1% : 0.22 НДС 12% : 2.70 Наличными: 25.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 88 04.06.2024 10:48 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148749 ФПД: 56073780890088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104819&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148749&fm=56073780890088&tin=02508201610067®Number=0000000000092720&sum=2500 [10:48:20]StoreToDocumentArchive [10:48:20]shift 368 fd 148749 [10:48:20]save to /storage/0368/doc_00148749 [10:48:20]save last doc name /storage/0368/doc_00148749 to /storage/kkm_last_doc_name [10:48:20]save OK [10:48:20]Clear old archive folders... [10:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:20]tlvbuf is 00FDD680 [10:48:20]SAM_PROTO_ClearQueue [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 09 00 00 [10:48:20]Write to MH i2c: E2 08 00 12 07 80 09 00 00 00 00 00 00 8B [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [10:48:20]RAPDU: 90 00 [10:48:20]wFMCommunicate OK [10:48:20]SAM_PROTO_ClearQueue done [10:48:20]KKMCreateOFDPacket [10:48:20]OFDProtocolAddRootSTLVToBuf [10:48:20]FM_MakeSignedData [10:48:20]FM_MakeSignedData [10:48:20]SAM_PROTO_SignData [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 0D 01 02 [10:48:20]Write to MH i2c: E2 08 00 13 07 80 0D 01 02 00 00 00 00 93 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [10:48:20]RAPDU: 90 00 [10:48:20]wFMCommunicate OK [10:48:20]wFMCommunicate request_size=255 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 01 00 00 00 00 07 04 06 00 C4 09 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F3 F0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 45 02 00 35 04 06 00 32 [10:48:20]Write to MH i2c: E2 02 01 14 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 01 00 00 00 00 07 04 06 00 C4 09 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F3 F0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 45 02 00 35 04 06 00 32 00 00 FD [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [10:48:20]RAPDU: 90 00 [10:48:20]wFMCommunicate OK [10:48:20]wFMCommunicate request_size=10 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 0D 02 02 05 FF B1 CA 89 E8 [10:48:20]Write to MH i2c: E2 0D 00 15 07 80 0D 02 02 05 00 FF B1 CA 89 E8 00 00 8B [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 15 07 00 90 00 90 [10:48:20]RAPDU: 90 00 [10:48:20]wFMCommunicate OK [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 0D 03 02 [10:48:20]Write to MH i2c: E2 08 00 16 07 80 0D 03 02 00 00 00 00 98 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 0B 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 0B 00 16 07 00 92 16 93 6C 52 D4 73 D9 90 00 B2 [10:48:20]RAPDU: 92 16 93 6C 52 D4 73 D9 90 00 [10:48:20]wFMCommunicate OK [10:48:20]SAM_PROTO_SignData done [10:48:20]FM_MakeSignedData done [10:48:20]CreateOFDProtocolMessage [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 11 00 00 [10:48:20]Write to MH i2c: E2 08 00 17 07 80 11 00 00 00 00 00 00 98 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 17 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 17 00 17 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EB [10:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:48:20]wFMCommunicate OK [10:48:20]CreateOFDProtocolMessage done [10:48:20]OFDSenderStorePacket 148749 [10:48:20]StoreOFDPacket docnum=148749 [10:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A8 5F 07 01 53 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 01 00 00 00 00 07 04 06 00 C4 09 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F3 F0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 45 02 00 35 04 06 00 32 FF B1 CA 89 E8 92 16 93 6C 52 D4 73 D9 [10:48:20]CheckFolder [10:48:20]dirname=/storage/ofd_packets [10:48:20]CheckFolder done [10:48:20]ProducePacketName [10:48:20]name=ofd_packets/00148749 [10:48:20]NVStorageSaveData ofd_packets/00148749 [10:48:20]File name is /storage/ofd_packets/00148749 [10:48:20]Write 301 bytes [10:48:20]NVStorageSaveData done [10:48:20]OFDSenderStorePacket done [10:48:20]KKMCreateOFDPacket done [10:48:20]NVStorageSaveData kkm_last_timestamp [10:48:20]File name is /storage/kkm_last_timestamp [10:48:20]Write 4 bytes [10:48:20]NVStorageSaveData done [10:48:20]ExternCall_PrintAddStr [10:48:20]wPrintStart [10:48:20]Write to MH i2c: 01 00 00 18 07 1F [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: 01 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: 01 07 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: 01 07 00 18 07 00 00 00 00 00 FF 0F 34 [10:48:20]RasterBufferAndPrint [10:48:20]line Счет N : (1)979674 [10:48:20]line ИНН: 02508201610067 [10:48:20]line Контрольно-Кассовый Чек [10:48:20]line ПРОДАЖА [10:48:20]line ТРК (МРК, ГНК) : 12 [10:48:20]line Товар: 2710124130 [10:48:20]line Аи-92-К-5 [10:48:20]line 0.380 * 66.90 [10:48:20]line = 25.42 [10:48:20]line НДС 12% НСП 1% [10:48:20]line > о реализуемом товаре [10:48:20]line ОКРУГЛЕНИЕ: -0.42 [10:48:20]line ИТОГО: 25.00 [10:48:20]line Внесено: 99.00 [10:48:20]line СДАЧА: 74.00 [10:48:20]line НСП 1% : 0.22 [10:48:20]line НДС 12% : 2.70 [10:48:20]line Наличными: 25.00 [10:48:20]line Безнал.: 0.00 [10:48:20]line Место: АЗС № 68 "Партнер Нефть" [10:48:20]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:48:20]line СНО: Общий режим [10:48:20]line Чек 88 04.06.2024 10:48 [10:48:20]line Смена: 368 ФФД: 1.0 [10:48:20]line ЗНМ: 0300000035 [10:48:20]line РНМ: 0000000000092720 [10:48:20]line Версия ККМ: 001 [10:48:20]line ФМ: 0000000000875057 [10:48:20]line ФД: 148749 [10:48:20]line ФПД: 56073780890088 [10:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104819&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148749&fm=56073780890088&tin=02508201610067®Number=0000000000092720&sum=2500 [10:48:21]OFD Sender: Processing packet 148749 [packets to send 100, broken 99] [10:48:21]ProducePacketName [10:48:21]name=ofd_packets/00148749 [10:48:21]OFD Sender: To server: pG, [10:48:21]CommunicateWithHost lk.salyk.kg:30040 [10:48:21]ConnectInit lk.salyk.kg [10:48:21]written 0, free lines is 4095 [10:48:21]Connected sock=10 [10:48:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A8 5F 07 01 53 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 01 00 00 00 00 07 04 06 00 C4 09 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F3 F0 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 45 02 00 35 04 06 00 32 FF B1 CA 89 E8 92 16 93 6C 52 D4 73 D9 [10:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9E 28 47 00 98 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 45 02 00 F4 03 04 00 17 98 5E 66 B6 04 01 00 00 F0 81 EE AC 0F 04 A6 E4 [10:48:21]CommunicateWithHost err = 0 [10:48:21]CheckOFDResponse [10:48:21]1017 (14) - 77093643461234 [10:48:21]1041 (16) - 0000000000875057 [10:48:21]1040 (4) - 148749 [10:48:21]1012 (4) - 04.06.2024 04:29 [10:48:21]1206 (1) - 0 [10:48:21]OFD Sender: Remove packet 148749 [10:48:21]ProducePacketName [10:48:21]name=ofd_packets/00148749 [10:48:21]NVStorageDeleteData [10:48:21]Write to MH i2c: 01 00 00 43 07 4A [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: 01 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: 01 07 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: 01 07 00 43 07 00 00 00 00 00 65 0C C2 [10:48:21]RasterBufferAndPrint [10:48:21]line [10:48:21]line [10:48:21]line [10:48:21]line [10:48:21]line [10:48:21]written 0, free lines is 3178 [10:48:21]MH_Cut [10:48:21]Write to MH i2c: D1 01 00 4A 07 01 23 [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: D1 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: D1 01 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: D1 01 00 4A 07 00 22 [10:48:21]Write to MH i2c: 01 00 00 4B 07 52 [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:22]OFD Sender: No OFD packet to send [10:48:22]*** Cut start [10:48:22]*** Partial cut [10:48:22]*** CUTSNS_PIN = 1 [10:48:23]*** CUTSNS_PIN = 0 [10:48:23]*** Brake cut motor [10:48:23]Read from MH i2c: 01 [10:48:23]MH_I2C_Read... [10:48:23]*** Stop cut motor [10:48:23]*** Cut end [10:48:23]Read from MH i2c: 01 07 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 FF 0F 67 [10:48:23]process_action close_receipt done [10:48:23]requested_data is exist [10:48:23]produce_requested_data [10:48:23]requested_item fm.sn is exist - process it [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 11 00 00 [10:48:23]Write to MH i2c: E2 08 00 4C 07 80 11 00 00 00 00 00 00 CD [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 17 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 17 00 4C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 20 [10:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:48:23]wFMCommunicate OK [10:48:23]requested_item fd.num is exist - process it [10:48:23]SAM_PROTO_GetFieldsCounters [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 13 00 00 [10:48:23]Write to MH i2c: E2 08 00 4D 07 80 13 00 00 00 00 00 00 D0 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 62 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 62 00 4D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0D 45 02 00 0E 04 04 00 70 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 B9 [10:48:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0D 45 02 00 0E 04 04 00 70 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 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_GetFieldsCounters done [10:48:23]requested_item shift.num is exist - process it [10:48:23]requested_item shift.opened is exist - process it [10:48:23]req_shift_opened [10:48:23]FM_GetShiftState [10:48:23]SAM_PROTO_GetShiftState [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 13 01 00 [10:48:23]Write to MH i2c: E2 08 00 4E 07 80 13 01 00 00 00 00 00 D2 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0E 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0E 00 4E 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 95 [10:48:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_GetShiftState done [10:48:23]FM_GetShiftState done [10:48:23]req_shift_opened done [10:48:23]requested_item shift.open_date is exist - process it [10:48:23]req_shift_open_date [10:48:23]req_shift_open_date done [10:48:23]produce_requested_data done [10:48:23]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148749,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:48:23]process_action_free close_receipt [10:48:23]json_value_free [10:48:23]json_value_free done [10:48:23]process_json_proto returns [10:48:23]Send response to host [10:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148749,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:48:23]free response buf [10:48:23]execute_script done [10:48:23]execute_script returns [10:48:23]free content buf [10:48:23]Sock 7.Close socket [10:48:23]Sock 7.Thread stoped [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:22]accept exits with 9 [10:50:22]New connection [10:50:22]New thread 3067235684 created [10:50:22]Thread 3067379044 joined [10:50:22]Waiting for new connection... [10:50:22] Sock 9.Parse request [10:50:22]Sock 9.Check first char [10:50:22]Sock 9.First char is OK [10:50:22]request: POST /json_proto HTTP/1.0 [10:50:22]Method: POST [10:50:22]URL: /json_proto [10:50:22]Method is POST - this is cgi request [10:50:22]url: /json_proto [10:50:22]query_string will be loaded in cgi processing [10:50:22]execute_cgi json_proto POST (null) [10:50:22]execute_cgi path=json_proto method=POST [10:50:22]POST find Content-Length [10:50:22]Host: 172.17.38.4:8080 [10:50:22]Content-Length: 673 [10:50:22]Content-Type: application/json [10:50:22] [10:50:22]POST finish read [10:50:22]Found Content-Length = 673 [10:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.110, "sum" : 74.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 74.00, "total" : 74.00, "payments": [ { "type": 0, "sum" : 74.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:22]execute_script... [10:50:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.110, "sum" : 74.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 74.00, "total" : 74.00, "payments": [ { "type": 0, "sum" : 74.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:22]POST & json_proto [10:50:22]process_json_proto [10:50:22]json parsed OK: [10:50:22]protocol is kg_v1.0 [10:50:22]action value=close_receipt [10:50:22]process_action close_receipt [10:50:22]cmd_close_receipt [10:50:22]MH_GetDate [10:50:22]Write to MH i2c: F0 00 00 4F 07 45 [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: F0 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: F0 09 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: F0 09 00 4F 07 00 6E F1 5E 66 CC 51 87 64 79 [10:50:22]GetLastDocTimeStamp 1717498099 [10:50:22]current date 1717498222 [10:50:22]FM_GetShiftState [10:50:22]SAM_PROTO_GetShiftState [10:50:22]wFMCommunicate request_size=4 [10:50:22]MH_SAM_APDU [10:50:22]CAPDU: 80 13 01 00 [10:50:22]Write to MH i2c: E2 08 00 50 07 80 13 01 00 00 00 00 00 D4 [10:50:22]Write i2c OK [10:50:22]MH_I2C_Read... [10:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:22]Read from MH i2c: E2 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 0E 00 [10:50:22]MH_I2C_Read... [10:50:22]Read from MH i2c: E2 0E 00 50 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 97 [10:50:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:50:22]wFMCommunicate OK [10:50:22]SAM_PROTO_GetShiftState done [10:50:22]FM_GetShiftState done [10:50:22]opened in 1717460629 [10:50:22]opened+sec_in_day 1717547029 [10:50:22]quantity*price = 7425 [10:50:22]sum+1 = 7427 [10:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 74.00 Внесено: 74.00 СДАЧА: 0.00 НСП 1% : 0.66 НДС 12% : 7.89 Наличными: 74.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 89 04.06.2024 10:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148750 ФПД: 147704853446244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105022&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148750&fm=147704853446244&tin=02508201610067®Number=0000000000092720&sum=7400 [10:50:23]StoreToDocumentArchive [10:50:23]shift 368 fd 148750 [10:50:23]save to /storage/0368/doc_00148750 [10:50:23]save last doc name /storage/0368/doc_00148750 to /storage/kkm_last_doc_name [10:50:23]save OK [10:50:23]Clear old archive folders... [10:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:23]tlvbuf is 00FDA3E0 [10:50:23]SAM_PROTO_ClearQueue [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 09 00 00 [10:50:23]Write to MH i2c: E2 08 00 5D 07 80 09 00 00 00 00 00 00 D6 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 5D 07 00 90 00 D8 [10:50:23]RAPDU: 90 00 [10:50:23]wFMCommunicate OK [10:50:23]SAM_PROTO_ClearQueue done [10:50:23]KKMCreateOFDPacket [10:50:23]OFDProtocolAddRootSTLVToBuf [10:50:23]FM_MakeSignedData [10:50:23]FM_MakeSignedData [10:50:23]SAM_PROTO_SignData [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 0D 01 02 [10:50:23]Write to MH i2c: E2 08 00 5E 07 80 0D 01 02 00 00 00 00 DE [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 5E 07 00 90 00 D9 [10:50:23]RAPDU: 90 00 [10:50:23]wFMCommunicate OK [10:50:23]wFMCommunicate request_size=255 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 02 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 03 00 00 00 00 07 04 06 00 E8 1C 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 6E F1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 45 02 00 35 04 06 00 86 [10:50:23]Write to MH i2c: E2 02 01 5F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 02 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 03 00 00 00 00 07 04 06 00 E8 1C 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 6E F1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 45 02 00 35 04 06 00 86 00 00 C2 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 5F 07 00 90 00 DA [10:50:23]RAPDU: 90 00 [10:50:23]wFMCommunicate OK [10:50:23]wFMCommunicate request_size=10 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 0D 02 02 05 56 37 52 3E 64 [10:50:23]Write to MH i2c: E2 0D 00 60 07 80 0D 02 02 05 00 56 37 52 3E 64 00 00 6C [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [10:50:23]RAPDU: 90 00 [10:50:23]wFMCommunicate OK [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 0D 03 02 [10:50:23]Write to MH i2c: E2 08 00 61 07 80 0D 03 02 00 00 00 00 E3 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 0B 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 0B 00 61 07 00 7F 1B 75 B4 C1 10 5D 1B 90 00 F0 [10:50:23]RAPDU: 7F 1B 75 B4 C1 10 5D 1B 90 00 [10:50:23]wFMCommunicate OK [10:50:23]SAM_PROTO_SignData done [10:50:23]FM_MakeSignedData done [10:50:23]CreateOFDProtocolMessage [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 11 00 00 [10:50:23]Write to MH i2c: E2 08 00 62 07 80 11 00 00 00 00 00 00 E3 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 17 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 17 00 62 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 36 [10:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:50:23]wFMCommunicate OK [10:50:23]CreateOFDProtocolMessage done [10:50:23]OFDSenderStorePacket 148750 [10:50:23]StoreOFDPacket docnum=148750 [10:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 03 7C 07 01 A6 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 02 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 03 00 00 00 00 07 04 06 00 E8 1C 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 6E F1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 45 02 00 35 04 06 00 86 56 37 52 3E 64 7F 1B 75 B4 C1 10 5D 1B [10:50:23]CheckFolder [10:50:23]dirname=/storage/ofd_packets [10:50:23]CheckFolder done [10:50:23]ProducePacketName [10:50:23]name=ofd_packets/00148750 [10:50:23]NVStorageSaveData ofd_packets/00148750 [10:50:23]File name is /storage/ofd_packets/00148750 [10:50:23]Write 301 bytes [10:50:23]NVStorageSaveData done [10:50:23]OFDSenderStorePacket done [10:50:23]KKMCreateOFDPacket done [10:50:23]NVStorageSaveData kkm_last_timestamp [10:50:23]File name is /storage/kkm_last_timestamp [10:50:23]Write 4 bytes [10:50:23]NVStorageSaveData done [10:50:23]ExternCall_PrintAddStr [10:50:23]wPrintStart [10:50:23]Write to MH i2c: 01 00 00 63 07 6A [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: 01 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: 01 07 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: 01 07 00 63 07 00 00 00 00 00 FF 0F 7F [10:50:23]RasterBufferAndPrint [10:50:23]line Счет N : (1)979675 [10:50:23]line ИНН: 02508201610067 [10:50:23]line Контрольно-Кассовый Чек [10:50:23]line ПРОДАЖА [10:50:23]line ТРК (МРК, ГНК) : 12 [10:50:23]line Товар: 2710124130 [10:50:23]line Аи-92-К-5 [10:50:23]line 1.110 * 66.90 [10:50:23]line = 74.26 [10:50:23]line НДС 12% НСП 1% [10:50:23]line > о реализуемом товаре [10:50:23]line ОКРУГЛЕНИЕ: -0.26 [10:50:23]line ИТОГО: 74.00 [10:50:23]line Внесено: 74.00 [10:50:23]line СДАЧА: 0.00 [10:50:23]line НСП 1% : 0.66 [10:50:23]line НДС 12% : 7.89 [10:50:23]line Наличными: 74.00 [10:50:23]line Безнал.: 0.00 [10:50:23]line Место: АЗС № 68 "Партнер Нефть" [10:50:23]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:50:23]line СНО: Общий режим [10:50:23]line Чек 89 04.06.2024 10:50 [10:50:23]line Смена: 368 ФФД: 1.0 [10:50:23]line ЗНМ: 0300000035 [10:50:23]line РНМ: 0000000000092720 [10:50:23]line Версия ККМ: 001 [10:50:23]line ФМ: 0000000000875057 [10:50:23]line ФД: 148750 [10:50:23]line ФПД: 147704853446244 [10:50:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105022&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148750&fm=147704853446244&tin=02508201610067®Number=0000000000092720&sum=7400 [10:50:24]OFD Sender: Processing packet 148750 [packets to send 100, broken 99] [10:50:24]ProducePacketName [10:50:24]name=ofd_packets/00148750 [10:50:24]OFD Sender: To server: pG, [10:50:24]CommunicateWithHost lk.salyk.kg:30040 [10:50:24]ConnectInit lk.salyk.kg [10:50:24]written 0, free lines is 4095 [10:50:24]Connected sock=11 [10:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 03 7C 07 01 A6 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 02 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 03 00 00 00 00 07 04 06 00 E8 1C 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 6E F1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 45 02 00 35 04 06 00 86 56 37 52 3E 64 7F 1B 75 B4 C1 10 5D 1B [10:50:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 99 DA 47 00 8E 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 38 37 35 30 35 37 10 04 04 00 0E 45 02 00 F4 03 04 00 92 98 5E 66 B6 04 01 00 00 ED 1E BC 59 E2 B3 AE 06 [10:50:24]CommunicateWithHost err = 0 [10:50:24]CheckOFDResponse [10:50:24]1017 (14) - 77093643461234 [10:50:24]1041 (16) - 0000000000875057 [10:50:24]1040 (4) - 148750 [10:50:24]1012 (4) - 04.06.2024 04:31 [10:50:24]1206 (1) - 0 [10:50:24]OFD Sender: Remove packet 148750 [10:50:24]ProducePacketName [10:50:24]name=ofd_packets/00148750 [10:50:24]NVStorageDeleteData [10:50:24]Write to MH i2c: 01 00 00 8E 07 95 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 07 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 07 00 8E 07 00 00 00 00 00 5E 0C 06 [10:50:24]RasterBufferAndPrint [10:50:24]line [10:50:24]line [10:50:24]line [10:50:24]line [10:50:24]line [10:50:24]written 0, free lines is 3169 [10:50:24]MH_Cut [10:50:24]Write to MH i2c: D1 01 00 95 07 01 6E [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: D1 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: D1 01 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: D1 01 00 95 07 00 6D [10:50:24]Write to MH i2c: 01 00 00 96 07 9D [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:25]OFD Sender: No OFD packet to send [10:50:26]*** Cut start [10:50:26]*** Partial cut [10:50:26]*** CUTSNS_PIN = 1 [10:50:26]*** CUTSNS_PIN = 0 [10:50:26]*** Brake cut motor [10:50:26]Read from MH i2c: 01 [10:50:26]MH_I2C_Read... [10:50:26]*** Stop cut motor [10:50:26]*** Cut end [10:50:26]Read from MH i2c: 01 07 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: 01 07 00 96 07 00 00 00 00 00 FF 0F B2 [10:50:26]process_action close_receipt done [10:50:26]requested_data is exist [10:50:26]produce_requested_data [10:50:26]requested_item fm.sn is exist - process it [10:50:26]wFMCommunicate request_size=4 [10:50:26]MH_SAM_APDU [10:50:26]CAPDU: 80 11 00 00 [10:50:26]Write to MH i2c: E2 08 00 97 07 80 11 00 00 00 00 00 00 18 [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 17 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 17 00 97 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6B [10:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:50:26]wFMCommunicate OK [10:50:26]requested_item fd.num is exist - process it [10:50:26]SAM_PROTO_GetFieldsCounters [10:50:26]wFMCommunicate request_size=4 [10:50:26]MH_SAM_APDU [10:50:26]CAPDU: 80 13 00 00 [10:50:26]Write to MH i2c: E2 08 00 98 07 80 13 00 00 00 00 00 00 1B [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 62 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 62 00 98 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0E 45 02 00 0E 04 04 00 70 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 08 [10:50:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0E 45 02 00 0E 04 04 00 70 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 [10:50:26]wFMCommunicate OK [10:50:26]SAM_PROTO_GetFieldsCounters done [10:50:26]requested_item shift.num is exist - process it [10:50:26]requested_item shift.opened is exist - process it [10:50:26]req_shift_opened [10:50:26]FM_GetShiftState [10:50:26]SAM_PROTO_GetShiftState [10:50:26]wFMCommunicate request_size=4 [10:50:26]MH_SAM_APDU [10:50:26]CAPDU: 80 13 01 00 [10:50:26]Write to MH i2c: E2 08 00 99 07 80 13 01 00 00 00 00 00 1D [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 0E 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 0E 00 99 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E0 [10:50:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:50:26]wFMCommunicate OK [10:50:26]SAM_PROTO_GetShiftState done [10:50:26]FM_GetShiftState done [10:50:26]req_shift_opened done [10:50:26]requested_item shift.open_date is exist - process it [10:50:26]req_shift_open_date [10:50:26]req_shift_open_date done [10:50:26]produce_requested_data done [10:50:26]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148750,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:50:26]process_action_free close_receipt [10:50:26]json_value_free [10:50:26]json_value_free done [10:50:26]process_json_proto returns [10:50:26]Send response to host [10:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148750,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:50:26]free response buf [10:50:26]execute_script done [10:50:26]execute_script returns [10:50:26]free content buf [10:50:26]Sock 9.Close socket [10:50:26]Sock 9.Thread stoped [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:50:55]accept exits with 7 [10:50:55]New connection [10:50:55]New thread 3067379044 created [10:50:55]Thread 3067235684 joined [10:50:55]Waiting for new connection... [10:50:55] Sock 7.Parse request [10:50:55]Sock 7.Check first char [10:50:55]Sock 7.First char is OK [10:50:55]request: POST /json_proto HTTP/1.0 [10:50:55]Method: POST [10:50:55]URL: /json_proto [10:50:55]Method is POST - this is cgi request [10:50:55]url: /json_proto [10:50:55]query_string will be loaded in cgi processing [10:50:55]execute_cgi json_proto POST (null) [10:50:55]execute_cgi path=json_proto method=POST [10:50:55]POST find Content-Length [10:50:55]Host: 172.17.38.4:8080 [10:50:55]Content-Length: 677 [10:50:55]Content-Type: application/json [10:50:55] [10:50:55]POST finish read [10:50:55]Found Content-Length = 677 [10:50:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:55]execute_script... [10:50:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:55]POST & json_proto [10:50:55]process_json_proto [10:50:55]json parsed OK: [10:50:55]protocol is kg_v1.0 [10:50:55]action value=close_receipt [10:50:55]process_action close_receipt [10:50:55]cmd_close_receipt [10:50:55]MH_GetDate [10:50:55]Write to MH i2c: F0 00 00 9A 07 90 [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: F0 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: F0 09 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: F0 09 00 9A 07 00 90 F1 5E 66 CC 51 87 64 E6 [10:50:55]GetLastDocTimeStamp 1717498222 [10:50:55]current date 1717498256 [10:50:55]FM_GetShiftState [10:50:55]SAM_PROTO_GetShiftState [10:50:55]wFMCommunicate request_size=4 [10:50:55]MH_SAM_APDU [10:50:55]CAPDU: 80 13 01 00 [10:50:55]Write to MH i2c: E2 08 00 9B 07 80 13 01 00 00 00 00 00 1F [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 0E 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 0E 00 9B 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E2 [10:50:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:50:55]wFMCommunicate OK [10:50:55]SAM_PROTO_GetShiftState done [10:50:55]FM_GetShiftState done [10:50:55]opened in 1717460629 [10:50:55]opened+sec_in_day 1717547029 [10:50:55]quantity*price = 60009 [10:50:55]sum+1 = 60010 [10:50:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 90 04.06.2024 10:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148751 ФПД: 67393582907031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105056&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148751&fm=67393582907031&tin=02508201610067®Number=0000000000092720&sum=60000 [10:50:57]StoreToDocumentArchive [10:50:57]shift 368 fd 148751 [10:50:57]save to /storage/0368/doc_00148751 [10:50:57]save last doc name /storage/0368/doc_00148751 to /storage/kkm_last_doc_name [10:50:57]save OK [10:50:57]Clear old archive folders... [10:50:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:57]tlvbuf is 00FDD9B0 [10:50:57]SAM_PROTO_ClearQueue [10:50:57]wFMCommunicate request_size=4 [10:50:57]MH_SAM_APDU [10:50:57]CAPDU: 80 09 00 00 [10:50:57]Write to MH i2c: E2 08 00 A8 07 80 09 00 00 00 00 00 00 21 [10:50:57]Write i2c OK [10:50:57]MH_I2C_Read... [10:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:57]Read from MH i2c: E2 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 03 00 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 03 00 A8 07 00 90 00 23 [10:50:57]RAPDU: 90 00 [10:50:57]wFMCommunicate OK [10:50:57]SAM_PROTO_ClearQueue done [10:50:57]KKMCreateOFDPacket [10:50:57]OFDProtocolAddRootSTLVToBuf [10:50:57]FM_MakeSignedData [10:50:57]FM_MakeSignedData [10:50:57]SAM_PROTO_SignData [10:50:57]wFMCommunicate request_size=4 [10:50:57]MH_SAM_APDU [10:50:57]CAPDU: 80 0D 01 02 [10:50:57]Write to MH i2c: E2 08 00 A9 07 80 0D 01 02 00 00 00 00 29 [10:50:57]Write i2c OK [10:50:57]MH_I2C_Read... [10:50:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:57]Read from MH i2c: E2 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 03 00 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 03 00 A9 07 00 90 00 24 [10:50:57]RAPDU: 90 00 [10:50:57]wFMCommunicate OK [10:50:57]wFMCommunicate request_size=255 [10:50:57]MH_SAM_APDU [10:50:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 90 F1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 45 02 00 35 04 06 00 3D [10:50:57]Write to MH i2c: E2 02 01 AA 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5A 00 00 00 F4 03 04 00 90 F1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 45 02 00 35 04 06 00 3D 00 00 33 [10:50:57]Write i2c OK [10:50:57]MH_I2C_Read... [10:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:57]Read from MH i2c: E2 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 03 00 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [10:50:57]RAPDU: 90 00 [10:50:57]wFMCommunicate OK [10:50:57]wFMCommunicate request_size=10 [10:50:57]MH_SAM_APDU [10:50:57]CAPDU: 80 0D 02 02 05 4B 4A 91 BE 97 [10:50:57]Write to MH i2c: E2 0D 00 AB 07 80 0D 02 02 05 00 4B 4A 91 BE 97 00 00 B1 [10:50:57]Write i2c OK [10:50:57]MH_I2C_Read... [10:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:57]Read from MH i2c: E2 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 03 00 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [10:50:57]RAPDU: 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 0D 03 02 [10:50:57]Write to MH i2c: E2 08 00 AC 07 80 0D 03 02 00 00 00 00 2E [10:50:57]Write i2c OK [10:50:57]MH_I2C_Read... [10:50:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:57]Read from MH i2c: E2 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 0B 00 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 0B 00 AC 07 00 25 6D 5B 41 E4 05 7D 85 90 00 48 [10:50:57]RAPDU: 25 6D 5B 41 E4 05 7D 85 90 00 [10:50:57]wFMCommunicate OK [10:50:57]SAM_PROTO_SignData done [10:50:57]FM_MakeSignedData done [10:50:57]CreateOFDProtocolMessage [10:50:57]wFMCommunicate request_size=4 [10:50:57]MH_SAM_APDU [10:50:57]CAPDU: 80 11 00 00 [10:50:57]Write to MH i2c: E2 08 00 AD 07 80 11 00 00 00 00 00 00 2E [10:50:57]Write i2c OK [10:50:57]MH_I2C_Read... [10:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:57]Read from MH i2c: E2 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 17 00 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 17 00 AD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 81 [10:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:50:57]wFMCommunicate OK [10:50:57]CreateOFDProtocolMessage done [10:50:57]OFDSenderStorePacket 148751 [10:50:57]StoreOFDPacket docnum=148751 [10:50:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3B 5F 07 01 15 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5A 00 00 00 F4 03 04 00 90 F1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 45 02 00 35 04 06 00 3D 4B 4A 91 BE 97 25 6D 5B 41 E4 05 7D 85 [10:50:57]CheckFolder [10:50:57]dirname=/storage/ofd_packets [10:50:57]CheckFolder done [10:50:57]ProducePacketName [10:50:57]name=ofd_packets/00148751 [10:50:57]NVStorageSaveData ofd_packets/00148751 [10:50:57]File name is /storage/ofd_packets/00148751 [10:50:57]Write 301 bytes [10:50:57]NVStorageSaveData done [10:50:57]OFDSenderStorePacket done [10:50:57]KKMCreateOFDPacket done [10:50:57]NVStorageSaveData kkm_last_timestamp [10:50:57]File name is /storage/kkm_last_timestamp [10:50:57]Write 4 bytes [10:50:57]NVStorageSaveData done [10:50:57]ExternCall_PrintAddStr [10:50:57]wPrintStart [10:50:57]Write to MH i2c: 01 00 00 AE 07 B5 [10:50:57]OFD Sender: Processing packet 148751 [packets to send 100, broken 99] [10:50:57]ProducePacketName [10:50:57]name=ofd_packets/00148751 [10:50:57]OFD Sender: To server: pG, [10:50:57]CommunicateWithHost lk.salyk.kg:30040 [10:50:57]ConnectInit lk.salyk.kg [10:50:57]Write i2c OK [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: 01 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: 01 07 00 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 FF 0F CA [10:50:57]RasterBufferAndPrint [10:50:57]line Счет N : (1)979676 [10:50:57]line ИНН: 02508201610067 [10:50:57]line Контрольно-Кассовый Чек [10:50:57]line ПРОДАЖА [10:50:57]line ТРК (МРК, ГНК) : 12 [10:50:57]line Товар: 2710124130 [10:50:57]line Аи-92-К-5 [10:50:57]line 8.970 * 66.90 [10:50:57]line = 600.09 [10:50:57]line НДС 12% НСП 1% [10:50:57]line > о реализуемом товаре [10:50:57]line ОКРУГЛЕНИЕ: -0.09 [10:50:57]line ИТОГО: 600.00 [10:50:57]line Внесено: 600.00 [10:50:57]line СДАЧА: 0.00 [10:50:57]line НСП 1% : 5.31 [10:50:57]line НДС 12% : 63.73 [10:50:57]line Наличными: 600.00 [10:50:57]line Безнал.: 0.00 [10:50:57]line Место: АЗС № 68 "Партнер Нефть" [10:50:57]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:50:57]line СНО: Общий режим [10:50:57]line Чек 90 04.06.2024 10:50 [10:50:57]line Смена: 368 ФФД: 1.0 [10:50:57]line ЗНМ: 0300000035 [10:50:57]line РНМ: 0000000000092720 [10:50:57]line Версия ККМ: 001 [10:50:57]line ФМ: 0000000000875057 [10:50:57]line ФД: 148751 [10:50:57]line ФПД: 67393582907031 [10:50:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105056&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148751&fm=67393582907031&tin=02508201610067®Number=0000000000092720&sum=60000 [10:50:57]written 0, free lines is 4095 [10:50:57]Connected sock=9 [10:50:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3B 5F 07 01 15 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5A 00 00 00 F4 03 04 00 90 F1 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 45 02 00 35 04 06 00 3D 4B 4A 91 BE 97 25 6D 5B 41 E4 05 7D 85 [10:50:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B3 3F 47 00 5C 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 38 37 35 30 35 37 10 04 04 00 0F 45 02 00 F4 03 04 00 B4 98 5E 66 B6 04 01 00 00 42 3F 72 03 9D 96 73 E5 [10:50:57]CommunicateWithHost err = 0 [10:50:57]CheckOFDResponse [10:50:57]1017 (14) - 77093643461234 [10:50:57]1041 (16) - 0000000000875057 [10:50:57]1040 (4) - 148751 [10:50:57]1012 (4) - 04.06.2024 04:31 [10:50:57]1206 (1) - 0 [10:50:57]OFD Sender: Remove packet 148751 [10:50:57]ProducePacketName [10:50:57]name=ofd_packets/00148751 [10:50:57]NVStorageDeleteData [10:50:58]Write to MH i2c: 01 00 00 D9 07 E0 [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 D9 07 00 00 00 00 00 6A 0C 5D [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 3182 [10:50:58]MH_Cut [10:50:58]Write to MH i2c: D1 01 00 E0 07 01 B9 [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 E0 07 00 B8 [10:50:58]Write to MH i2c: 01 00 00 E1 07 E8 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]OFD Sender: No OFD packet to send [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:50:59]Read from MH i2c: 01 [10:50:59]MH_I2C_Read... [10:50:59]*** Stop cut motor [10:50:59]*** Cut end [10:50:59]Read from MH i2c: 01 07 00 [10:50:59]MH_I2C_Read... [10:50:59]Read from MH i2c: 01 07 00 E1 07 00 00 00 00 00 FF 0F FD [10:50:59]process_action close_receipt done [10:50:59]requested_data is exist [10:50:59]produce_requested_data [10:50:59]requested_item fm.sn is exist - process it [10:50:59]wFMCommunicate request_size=4 [10:50:59]MH_SAM_APDU [10:50:59]CAPDU: 80 11 00 00 [10:50:59]Write to MH i2c: E2 08 00 E2 07 80 11 00 00 00 00 00 00 63 [10:50:59]Write i2c OK [10:50:59]MH_I2C_Read... [10:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:00]Read from MH i2c: E2 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: E2 17 00 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: E2 17 00 E2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B6 [10:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:51:00]wFMCommunicate OK [10:51:00]requested_item fd.num is exist - process it [10:51:00]SAM_PROTO_GetFieldsCounters [10:51:00]wFMCommunicate request_size=4 [10:51:00]MH_SAM_APDU [10:51:00]CAPDU: 80 13 00 00 [10:51:00]Write to MH i2c: E2 08 00 E3 07 80 13 00 00 00 00 00 00 66 [10:51:00]Write i2c OK [10:51:00]MH_I2C_Read... [10:51:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:00]Read from MH i2c: E2 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: E2 62 00 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: E2 62 00 E3 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0F 45 02 00 0E 04 04 00 70 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 57 [10:51:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0F 45 02 00 0E 04 04 00 70 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 [10:51:00]wFMCommunicate OK [10:51:00]SAM_PROTO_GetFieldsCounters done [10:51:00]requested_item shift.num is exist - process it [10:51:00]requested_item shift.opened is exist - process it [10:51:00]req_shift_opened [10:51:00]FM_GetShiftState [10:51:00]SAM_PROTO_GetShiftState [10:51:00]wFMCommunicate request_size=4 [10:51:00]MH_SAM_APDU [10:51:00]CAPDU: 80 13 01 00 [10:51:00]Write to MH i2c: E2 08 00 E4 07 80 13 01 00 00 00 00 00 68 [10:51:00]Write i2c OK [10:51:00]MH_I2C_Read... [10:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:00]Read from MH i2c: E2 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: E2 0E 00 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: E2 0E 00 E4 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2B [10:51:00]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:51:00]wFMCommunicate OK [10:51:00]SAM_PROTO_GetShiftState done [10:51:00]FM_GetShiftState done [10:51:00]req_shift_opened done [10:51:00]requested_item shift.open_date is exist - process it [10:51:00]req_shift_open_date [10:51:00]req_shift_open_date done [10:51:00]produce_requested_data done [10:51:00]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148751,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:51:00]process_action_free close_receipt [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","data":{"fm.sn":"0000000000875057","fd.num":148751,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [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 7.Close socket [10:51:00]Sock 7.Thread stoped [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:49]accept exits with 10 [10:54:49]New connection [10:54:49]New thread 3067235684 created [10:54:49]Thread 3067379044 joined [10:54:49]Waiting for new connection... [10:54:49] Sock 10.Parse request [10:54:49]Sock 10.Check first char [10:54:49]Sock 10.First char is OK [10:54:49]request: POST /json_proto HTTP/1.0 [10:54:49]Method: POST [10:54:49]URL: /json_proto [10:54:49]Method is POST - this is cgi request [10:54:49]url: /json_proto [10:54:49]query_string will be loaded in cgi processing [10:54:49]execute_cgi json_proto POST (null) [10:54:49]execute_cgi path=json_proto method=POST [10:54:49]POST find Content-Length [10:54:49]Host: 172.17.38.4:8080 [10:54:49]Content-Length: 677 [10:54:49]Content-Type: application/json [10:54:49] [10:54:49]POST finish read [10:54:49]Found Content-Length = 677 [10:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.920, "sum" : 195.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 195.00, "payments": [ { "type": 0, "sum" : 195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:49]execute_script... [10:54: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)979677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.920, "sum" : 195.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 195.00, "payments": [ { "type": 0, "sum" : 195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:49]POST & json_proto [10:54:49]process_json_proto [10:54:49]json parsed OK: [10:54:49]protocol is kg_v1.0 [10:54:49]action value=close_receipt [10:54:49]process_action close_receipt [10:54:49]cmd_close_receipt [10:54:49]MH_GetDate [10:54:49]Write to MH i2c: F0 00 00 E5 07 DB [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: F0 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: F0 09 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: F0 09 00 E5 07 00 7A F2 5E 66 CC 51 87 64 1C [10:54:49]GetLastDocTimeStamp 1717498256 [10:54:49]current date 1717498490 [10:54:49]FM_GetShiftState [10:54:49]SAM_PROTO_GetShiftState [10:54:49]wFMCommunicate request_size=4 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 13 01 00 [10:54:49]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:49]Read from MH i2c: E2 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 0E 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2D [10:54:49]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:54:49]wFMCommunicate OK [10:54:49]SAM_PROTO_GetShiftState done [10:54:49]FM_GetShiftState done [10:54:49]opened in 1717460629 [10:54:49]opened+sec_in_day 1717547029 [10:54:49]quantity*price = 19534 [10:54:49]sum+1 = 19536 [10:54:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 195.00 Внесено: 200.00 СДАЧА: 5.00 НСП 1% : 1.73 НДС 12% : 20.74 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 91 04.06.2024 10:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148752 ФПД: 199338221589918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105450&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148752&fm=199338221589918&tin=02508201610067®Number=0000000000092720&sum=19500 [10:54:50]StoreToDocumentArchive [10:54:50]shift 368 fd 148752 [10:54:50]save to /storage/0368/doc_00148752 [10:54:50]save last doc name /storage/0368/doc_00148752 to /storage/kkm_last_doc_name [10:54:50]save OK [10:54:50]Clear old archive folders... [10:54:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:50]tlvbuf is 00FD9D00 [10:54:50]SAM_PROTO_ClearQueue [10:54:50]wFMCommunicate request_size=4 [10:54:50]MH_SAM_APDU [10:54:50]CAPDU: 80 09 00 00 [10:54:50]Write to MH i2c: E2 08 00 F3 07 80 09 00 00 00 00 00 00 6C [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:50]Read from MH i2c: E2 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 03 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [10:54:50]RAPDU: 90 00 [10:54:50]wFMCommunicate OK [10:54:50]SAM_PROTO_ClearQueue done [10:54:50]KKMCreateOFDPacket [10:54:50]OFDProtocolAddRootSTLVToBuf [10:54:50]FM_MakeSignedData [10:54:50]FM_MakeSignedData [10:54:50]SAM_PROTO_SignData [10:54:50]wFMCommunicate request_size=4 [10:54:50]MH_SAM_APDU [10:54:50]CAPDU: 80 0D 01 02 [10:54:50]Write to MH i2c: E2 08 00 F4 07 80 0D 01 02 00 00 00 00 74 [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:50]Read from MH i2c: E2 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 03 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [10:54:50]RAPDU: 90 00 [10:54:50]wFMCommunicate OK [10:54:50]wFMCommunicate request_size=255 [10:54:50]MH_SAM_APDU [10:54:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4F 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 7A F2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 45 02 00 35 04 06 00 B5 [10:54:50]Write to MH i2c: E2 02 01 F5 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4F 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 7A F2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 45 02 00 35 04 06 00 B5 00 00 8A [10:54:50]Write i2c OK [10:54:50]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [10:54:51]RAPDU: 90 00 [10:54:51]wFMCommunicate OK [10:54:51]wFMCommunicate request_size=10 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 0D 02 02 05 4C 0B E3 55 9E [10:54:51]Write to MH i2c: E2 0D 00 F6 07 80 0D 02 02 05 00 4C 0B E3 55 9E 00 00 AE [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [10:54:51]RAPDU: 90 00 [10:54:51]wFMCommunicate OK [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 0D 03 02 [10:54:51]Write to MH i2c: E2 08 00 F7 07 80 0D 03 02 00 00 00 00 79 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0B 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0B 00 F7 07 00 44 3C 6E 45 37 68 B4 0A 90 00 0A [10:54:51]RAPDU: 44 3C 6E 45 37 68 B4 0A 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_SignData done [10:54:51]FM_MakeSignedData done [10:54:51]CreateOFDProtocolMessage [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 11 00 00 [10:54:51]Write to MH i2c: E2 08 00 F8 07 80 11 00 00 00 00 00 00 79 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 17 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 17 00 F8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CC [10:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:54:51]wFMCommunicate OK [10:54:51]CreateOFDProtocolMessage done [10:54:51]OFDSenderStorePacket 148752 [10:54:51]StoreOFDPacket docnum=148752 [10:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D5 A5 07 01 A4 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4F 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 7A F2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 45 02 00 35 04 06 00 B5 4C 0B E3 55 9E 44 3C 6E 45 37 68 B4 0A [10:54:51]CheckFolder [10:54:51]dirname=/storage/ofd_packets [10:54:51]CheckFolder done [10:54:51]ProducePacketName [10:54:51]name=ofd_packets/00148752 [10:54:51]NVStorageSaveData ofd_packets/00148752 [10:54:51]File name is /storage/ofd_packets/00148752 [10:54:51]Write 301 bytes [10:54:51]NVStorageSaveData done [10:54:51]OFDSenderStorePacket done [10:54:51]KKMCreateOFDPacket done [10:54:51]NVStorageSaveData kkm_last_timestamp [10:54:51]File name is /storage/kkm_last_timestamp [10:54:51]Write 4 bytes [10:54:51]NVStorageSaveData done [10:54:51]ExternCall_PrintAddStr [10:54:51]wPrintStart [10:54:51]Write to MH i2c: 01 00 00 F9 07 00 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 07 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 FF 0F 15 [10:54:51]RasterBufferAndPrint [10:54:51]line Счет N : (1)979677 [10:54:51]line ИНН: 02508201610067 [10:54:51]line Контрольно-Кассовый Чек [10:54:51]line ПРОДАЖА [10:54:51]line ТРК (МРК, ГНК) : 12 [10:54:51]line Товар: 2710124130 [10:54:51]line Аи-92-К-5 [10:54:51]line 2.920 * 66.90 [10:54:51]line = 195.35 [10:54:51]line НДС 12% НСП 1% [10:54:51]line > о реализуемом товаре [10:54:51]line ОКРУГЛЕНИЕ: -0.35 [10:54:51]line ИТОГО: 195.00 [10:54:51]line Внесено: 200.00 [10:54:51]line СДАЧА: 5.00 [10:54:51]line НСП 1% : 1.73 [10:54:51]line НДС 12% : 20.74 [10:54:51]line Наличными: 195.00 [10:54:51]line Безнал.: 0.00 [10:54:51]line Место: АЗС № 68 "Партнер Нефть" [10:54:51]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:54:51]line СНО: Общий режим [10:54:51]line Чек 91 04.06.2024 10:54 [10:54:51]line Смена: 368 ФФД: 1.0 [10:54:51]line ЗНМ: 0300000035 [10:54:51]line РНМ: 0000000000092720 [10:54:51]line Версия ККМ: 001 [10:54:51]line ФМ: 0000000000875057 [10:54:51]line ФД: 148752 [10:54:51]line ФПД: 199338221589918 [10:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105450&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148752&fm=199338221589918&tin=02508201610067®Number=0000000000092720&sum=19500 [10:54:51]OFD Sender: Processing packet 148752 [packets to send 100, broken 99] [10:54:51]ProducePacketName [10:54:51]name=ofd_packets/00148752 [10:54:51]OFD Sender: To server: pG, [10:54:51]CommunicateWithHost lk.salyk.kg:30040 [10:54:51]ConnectInit lk.salyk.kg [10:54:51]written 0, free lines is 4095 [10:54:51]Connected sock=9 [10:54:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D5 A5 07 01 A4 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4F 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 7A F2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 45 02 00 35 04 06 00 B5 4C 0B E3 55 9E 44 3C 6E 45 37 68 B4 0A [10:54:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 AD A0 47 00 50 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 38 37 35 30 35 37 10 04 04 00 10 45 02 00 F4 03 04 00 9E 99 5E 66 B6 04 01 00 00 8A F5 7D E4 38 93 07 4F [10:54:51]CommunicateWithHost err = 0 [10:54:51]CheckOFDResponse [10:54:51]1017 (14) - 77093643461234 [10:54:51]1041 (16) - 0000000000875057 [10:54:51]1040 (4) - 148752 [10:54:51]1012 (4) - 04.06.2024 04:35 [10:54:51]1206 (1) - 0 [10:54:51]OFD Sender: Remove packet 148752 [10:54:51]ProducePacketName [10:54:51]name=ofd_packets/00148752 [10:54:51]NVStorageDeleteData [10:54:52]Write to MH i2c: 01 00 00 24 08 2C [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: 01 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: 01 07 00 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: 01 07 00 24 08 00 00 00 00 00 61 0C A0 [10:54:52]RasterBufferAndPrint [10:54:52]line [10:54:52]line [10:54:52]line [10:54:52]line [10:54:52]line [10:54:52]written 0, free lines is 3173 [10:54:52]MH_Cut [10:54:52]Write to MH i2c: D1 01 00 2B 08 01 05 [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: D1 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: D1 01 00 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: D1 01 00 2B 08 00 04 [10:54:52]Write to MH i2c: 01 00 00 2C 08 34 [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]OFD Sender: No OFD packet to send [10:54:53]*** Cut start [10:54:53]*** Partial cut [10:54:53]*** CUTSNS_PIN = 1 [10:54:53]*** CUTSNS_PIN = 0 [10:54:53]*** Brake cut motor [10:54:53]Read from MH i2c: 01 [10:54:53]MH_I2C_Read... [10:54:53]*** Stop cut motor [10:54:53]*** Cut end [10:54:53]Read from MH i2c: 01 07 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 FF 0F 49 [10:54:53]process_action close_receipt done [10:54:53]requested_data is exist [10:54:53]produce_requested_data [10:54:53]requested_item fm.sn is exist - process it [10:54:53]wFMCommunicate request_size=4 [10:54:53]MH_SAM_APDU [10:54:53]CAPDU: 80 11 00 00 [10:54:53]Write to MH i2c: E2 08 00 2D 08 80 11 00 00 00 00 00 00 AF [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:54]Read from MH i2c: E2 [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: E2 17 00 [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: E2 17 00 2D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 02 [10:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:54:54]wFMCommunicate OK [10:54:54]requested_item fd.num is exist - process it [10:54:54]SAM_PROTO_GetFieldsCounters [10:54:54]wFMCommunicate request_size=4 [10:54:54]MH_SAM_APDU [10:54:54]CAPDU: 80 13 00 00 [10:54:54]Write to MH i2c: E2 08 00 2E 08 80 13 00 00 00 00 00 00 B2 [10:54:54]Write i2c OK [10:54:54]MH_I2C_Read... [10:54:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:54]Read from MH i2c: E2 [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: E2 62 00 [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: E2 62 00 2E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 10 45 02 00 0E 04 04 00 70 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 A7 [10:54:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 10 45 02 00 0E 04 04 00 70 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 [10:54:54]wFMCommunicate OK [10:54:54]SAM_PROTO_GetFieldsCounters done [10:54:54]requested_item shift.num is exist - process it [10:54:54]requested_item shift.opened is exist - process it [10:54:54]req_shift_opened [10:54:54]FM_GetShiftState [10:54:54]SAM_PROTO_GetShiftState [10:54:54]wFMCommunicate request_size=4 [10:54:54]MH_SAM_APDU [10:54:54]CAPDU: 80 13 01 00 [10:54:54]Write to MH i2c: E2 08 00 2F 08 80 13 01 00 00 00 00 00 B4 [10:54:54]Write i2c OK [10:54:54]MH_I2C_Read... [10:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:54]Read from MH i2c: E2 [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: E2 0E 00 [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: E2 0E 00 2F 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 77 [10:54:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:54:54]wFMCommunicate OK [10:54:54]SAM_PROTO_GetShiftState done [10:54:54]FM_GetShiftState done [10:54:54]req_shift_opened done [10:54:54]requested_item shift.open_date is exist - process it [10:54:54]req_shift_open_date [10:54:54]req_shift_open_date done [10:54:54]produce_requested_data done [10:54:54]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148752,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:54:54]process_action_free close_receipt [10:54:54]json_value_free [10:54:54]json_value_free done [10:54:54]process_json_proto returns [10:54:54]Send response to host [10:54:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148752,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:54:54]free response buf [10:54:54]execute_script done [10:54:54]execute_script returns [10:54:54]free content buf [10:54:54]Sock 10.Close socket [10:54:54]Sock 10.Thread stoped [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:41]accept exits with 7 [10:55:41]New connection [10:55:41]New thread 3067379044 created [10:55:41]Thread 3067235684 joined [10:55:41]Waiting for new connection... [10:55:41] Sock 7.Parse request [10:55:41]Sock 7.Check first char [10:55:41]Sock 7.First char is OK [10:55:41]request: POST /json_proto HTTP/1.0 [10:55:41]Method: POST [10:55:41]URL: /json_proto [10:55:41]Method is POST - this is cgi request [10:55:41]url: /json_proto [10:55:41]query_string will be loaded in cgi processing [10:55:41]execute_cgi json_proto POST (null) [10:55:41]execute_cgi path=json_proto method=POST [10:55:41]POST find Content-Length [10:55:41]Host: 172.17.38.4:8080 [10:55:41]Content-Length: 678 [10:55:41]Content-Type: application/json [10:55:41] [10:55:41]POST finish read [10:55:41]Found Content-Length = 678 [10:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.830, "sum" : 800.34, "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:55:41]execute_script... [10:55: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)979678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.830, "sum" : 800.34, "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:55:41]POST & json_proto [10:55:41]process_json_proto [10:55:41]json parsed OK: [10:55:41]protocol is kg_v1.0 [10:55:41]action value=close_receipt [10:55:41]process_action close_receipt [10:55:41]cmd_close_receipt [10:55:41]MH_GetDate [10:55:41]Write to MH i2c: F0 00 00 30 08 27 [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: F0 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: F0 09 00 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: F0 09 00 30 08 00 AD F2 5E 66 CC 51 87 64 9B [10:55:41]GetLastDocTimeStamp 1717498490 [10:55:41]current date 1717498541 [10:55:41]FM_GetShiftState [10:55:41]SAM_PROTO_GetShiftState [10:55:41]wFMCommunicate request_size=4 [10:55:41]MH_SAM_APDU [10:55:41]CAPDU: 80 13 01 00 [10:55:41]Write to MH i2c: E2 08 00 31 08 80 13 01 00 00 00 00 00 B6 [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:41]Read from MH i2c: E2 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: E2 0E 00 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: E2 0E 00 31 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 79 [10:55:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:55:41]wFMCommunicate OK [10:55:41]SAM_PROTO_GetShiftState done [10:55:41]FM_GetShiftState done [10:55:41]opened in 1717460629 [10:55:41]opened+sec_in_day 1717547029 [10:55:41]quantity*price = 80033 [10:55:41]sum+1 = 80035 [10:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.99 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 92 04.06.2024 10:55 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148753 ФПД: 135711632360760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105541&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148753&fm=135711632360760&tin=02508201610067®Number=0000000000092720&sum=80000 [10:55:42]StoreToDocumentArchive [10:55:42]shift 368 fd 148753 [10:55:42]save to /storage/0368/doc_00148753 [10:55:42]save last doc name /storage/0368/doc_00148753 to /storage/kkm_last_doc_name [10:55:42]save OK [10:55:42]Clear old archive folders... [10:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:42]tlvbuf is 00FDD4A0 [10:55:42]SAM_PROTO_ClearQueue [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 09 00 00 [10:55:42]Write to MH i2c: E2 08 00 3E 08 80 09 00 00 00 00 00 00 B8 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 03 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [10:55:42]RAPDU: 90 00 [10:55:42]wFMCommunicate OK [10:55:42]SAM_PROTO_ClearQueue done [10:55:42]KKMCreateOFDPacket [10:55:42]OFDProtocolAddRootSTLVToBuf [10:55:42]FM_MakeSignedData [10:55:42]FM_MakeSignedData [10:55:42]SAM_PROTO_SignData [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 0D 01 02 [10:55:42]Write to MH i2c: E2 08 00 3F 08 80 0D 01 02 00 00 00 00 C0 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:42]OFD Sender: No OFD packet to send [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 03 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [10:55:42]RAPDU: 90 00 [10:55:42]wFMCommunicate OK [10:55:42]wFMCommunicate request_size=255 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 5C 00 00 00 F4 03 04 00 AD F2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 45 02 00 35 04 06 00 7B [10:55:42]Write to MH i2c: E2 02 01 40 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 5C 00 00 00 F4 03 04 00 AD F2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 45 02 00 35 04 06 00 7B 00 00 A5 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 03 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [10:55:42]RAPDU: 90 00 [10:55:42]wFMCommunicate OK [10:55:42]wFMCommunicate request_size=10 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 0D 02 02 05 6D D3 A3 85 38 [10:55:42]Write to MH i2c: E2 0D 00 41 08 80 0D 02 02 05 00 6D D3 A3 85 38 00 00 6D [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 03 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [10:55:42]RAPDU: 90 00 [10:55:42]wFMCommunicate OK [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 0D 03 02 [10:55:42]Write to MH i2c: E2 08 00 42 08 80 0D 03 02 00 00 00 00 C5 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 0B 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 0B 00 42 08 00 3D 6B 52 6C D1 F0 8D E8 90 00 62 [10:55:42]RAPDU: 3D 6B 52 6C D1 F0 8D E8 90 00 [10:55:42]wFMCommunicate OK [10:55:42]SAM_PROTO_SignData done [10:55:42]FM_MakeSignedData done [10:55:42]CreateOFDProtocolMessage [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 11 00 00 [10:55:42]Write to MH i2c: E2 08 00 43 08 80 11 00 00 00 00 00 00 C5 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 17 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 17 00 43 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 18 [10:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:55:42]wFMCommunicate OK [10:55:42]CreateOFDProtocolMessage done [10:55:42]OFDSenderStorePacket 148753 [10:55:42]StoreOFDPacket docnum=148753 [10:55:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FD F6 07 01 B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 5C 00 00 00 F4 03 04 00 AD F2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 45 02 00 35 04 06 00 7B 6D D3 A3 85 38 3D 6B 52 6C D1 F0 8D E8 [10:55:42]CheckFolder [10:55:42]dirname=/storage/ofd_packets [10:55:42]CheckFolder done [10:55:42]ProducePacketName [10:55:42]name=ofd_packets/00148753 [10:55:42]NVStorageSaveData ofd_packets/00148753 [10:55:42]File name is /storage/ofd_packets/00148753 [10:55:42]Write 301 bytes [10:55:42]NVStorageSaveData done [10:55:42]OFDSenderStorePacket done [10:55:42]KKMCreateOFDPacket done [10:55:42]NVStorageSaveData kkm_last_timestamp [10:55:42]File name is /storage/kkm_last_timestamp [10:55:42]Write 4 bytes [10:55:42]NVStorageSaveData done [10:55:42]ExternCall_PrintAddStr [10:55:42]wPrintStart [10:55:42]Write to MH i2c: 01 00 00 44 08 4C [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: 01 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: 01 07 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: 01 07 00 44 08 00 00 00 00 00 FF 0F 61 [10:55:42]RasterBufferAndPrint [10:55:42]line Счет N : (1)979678 [10:55:42]line ИНН: 02508201610067 [10:55:42]line Контрольно-Кассовый Чек [10:55:42]line ПРОДАЖА [10:55:42]line ТРК (МРК, ГНК) : 42 [10:55:42]line Товар: 2710124500 [10:55:42]line Аи-95-К-5 [10:55:42]line 10.830 * 73.90 [10:55:42]line = 800.34 [10:55:42]line НДС 12% НСП 1% [10:55:42]line > о реализуемом товаре [10:55:42]line ОКРУГЛЕНИЕ: -0.34 [10:55:42]line ИТОГО: 800.00 [10:55:42]line Внесено: 800.00 [10:55:42]line СДАЧА: 0.00 [10:55:42]line НСП 1% : 7.08 [10:55:42]line НДС 12% : 84.99 [10:55:42]line Наличными: 800.00 [10:55:42]line Безнал.: 0.00 [10:55:42]line Место: АЗС № 68 "Партнер Нефть" [10:55:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:55:42]line СНО: Общий режим [10:55:42]line Чек 92 04.06.2024 10:55 [10:55:42]line Смена: 368 ФФД: 1.0 [10:55:42]line ЗНМ: 0300000035 [10:55:42]line РНМ: 0000000000092720 [10:55:42]line Версия ККМ: 001 [10:55:42]line ФМ: 0000000000875057 [10:55:42]line ФД: 148753 [10:55:42]line ФПД: 135711632360760 [10:55:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105541&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148753&fm=135711632360760&tin=02508201610067®Number=0000000000092720&sum=80000 [10:55:43]OFD Sender: Processing packet 148753 [packets to send 100, broken 99] [10:55:43]ProducePacketName [10:55:43]name=ofd_packets/00148753 [10:55:43]OFD Sender: To server: pG, [10:55:43]CommunicateWithHost lk.salyk.kg:30040 [10:55:43]ConnectInit lk.salyk.kg [10:55:43]written 0, free lines is 4095 [10:55:43]Connected sock=10 [10:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FD F6 07 01 B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 5C 00 00 00 F4 03 04 00 AD F2 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 45 02 00 35 04 06 00 7B 6D D3 A3 85 38 3D 6B 52 6C D1 F0 8D E8 [10:55:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 92 CF 47 00 2F 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 38 37 35 30 35 37 10 04 04 00 11 45 02 00 F4 03 04 00 D1 99 5E 66 B6 04 01 00 00 A4 AA 57 AB D6 F2 E9 99 [10:55:43]CommunicateWithHost err = 0 [10:55:43]CheckOFDResponse [10:55:43]1017 (14) - 77093643461234 [10:55:43]1041 (16) - 0000000000875057 [10:55:43]1040 (4) - 148753 [10:55:43]1012 (4) - 04.06.2024 04:36 [10:55:43]1206 (1) - 0 [10:55:43]OFD Sender: Remove packet 148753 [10:55:43]ProducePacketName [10:55:43]name=ofd_packets/00148753 [10:55:43]NVStorageDeleteData [10:55:43]Write to MH i2c: 01 00 00 6F 08 77 [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: 01 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: 01 07 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: 01 07 00 6F 08 00 00 00 00 00 6C 0C F6 [10:55:43]RasterBufferAndPrint [10:55:43]line [10:55:43]line [10:55:43]line [10:55:43]line [10:55:43]line [10:55:43]written 0, free lines is 3183 [10:55:43]MH_Cut [10:55:43]Write to MH i2c: D1 01 00 76 08 01 50 [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: D1 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: D1 01 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: D1 01 00 76 08 00 4F [10:55:43]Write to MH i2c: 01 00 00 77 08 7F [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:44]OFD Sender: No OFD packet to send [10:55:44]*** Cut start [10:55:44]*** Partial cut [10:55:44]*** CUTSNS_PIN = 1 [10:55:45]*** CUTSNS_PIN = 0 [10:55:45]*** Brake cut motor [10:55:45]Read from MH i2c: 01 [10:55:45]MH_I2C_Read... [10:55:45]*** Stop cut motor [10:55:45]*** Cut end [10:55:45]Read from MH i2c: 01 07 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 FF 0F 94 [10:55:45]process_action close_receipt done [10:55:45]requested_data is exist [10:55:45]produce_requested_data [10:55:45]requested_item fm.sn is exist - process it [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 11 00 00 [10:55:45]Write to MH i2c: E2 08 00 78 08 80 11 00 00 00 00 00 00 FA [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:45]Read from MH i2c: E2 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 17 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 17 00 78 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4D [10:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:55:45]wFMCommunicate OK [10:55:45]requested_item fd.num is exist - process it [10:55:45]SAM_PROTO_GetFieldsCounters [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 13 00 00 [10:55:45]Write to MH i2c: E2 08 00 79 08 80 13 00 00 00 00 00 00 FD [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:45]Read from MH i2c: E2 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 62 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 62 00 79 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 11 45 02 00 0E 04 04 00 70 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 F6 [10:55:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 11 45 02 00 0E 04 04 00 70 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 [10:55:45]wFMCommunicate OK [10:55:45]SAM_PROTO_GetFieldsCounters done [10:55:45]requested_item shift.num is exist - process it [10:55:45]requested_item shift.opened is exist - process it [10:55:45]req_shift_opened [10:55:45]FM_GetShiftState [10:55:45]SAM_PROTO_GetShiftState [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 13 01 00 [10:55:45]Write to MH i2c: E2 08 00 7A 08 80 13 01 00 00 00 00 00 FF [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:45]Read from MH i2c: E2 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 0E 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 0E 00 7A 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C2 [10:55:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:55:45]wFMCommunicate OK [10:55:45]SAM_PROTO_GetShiftState done [10:55:45]FM_GetShiftState done [10:55:45]req_shift_opened done [10:55:45]requested_item shift.open_date is exist - process it [10:55:45]req_shift_open_date [10:55:45]req_shift_open_date done [10:55:45]produce_requested_data done [10:55:45]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148753,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:55:45]process_action_free close_receipt [10:55:45]json_value_free [10:55:45]json_value_free done [10:55:45]process_json_proto returns [10:55:45]Send response to host [10:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148753,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:55:45]free response buf [10:55:45]execute_script done [10:55:45]execute_script returns [10:55:45]free content buf [10:55:45]Sock 7.Close socket [10:55:45]Sock 7.Thread stoped [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:21]accept exits with 9 [10:58:21]New connection [10:58:21]New thread 3067235684 created [10:58:21]Thread 3067379044 joined [10:58:21]Waiting for new connection... [10:58:21] Sock 9.Parse request [10:58:21]Sock 9.Check first char [10:58:21]Sock 9.First char is OK [10:58:21]request: POST /json_proto HTTP/1.0 [10:58:21]Method: POST [10:58:21]URL: /json_proto [10:58:21]Method is POST - this is cgi request [10:58:21]url: /json_proto [10:58:21]query_string will be loaded in cgi processing [10:58:21]execute_cgi json_proto POST (null) [10:58:21]execute_cgi path=json_proto method=POST [10:58:21]POST find Content-Length [10:58:21]Host: 172.17.38.4:8080 [10:58:21]Content-Length: 670 [10:58:21]Content-Type: application/json [10:58:21] [10:58:21]POST finish read [10:58:21]Found Content-Length = 670 [10:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 4.420, "sum" : 300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:21]execute_script... [10:58: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)979679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 4.420, "sum" : 300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:21]POST & json_proto [10:58:21]process_json_proto [10:58:21]json parsed OK: [10:58:21]protocol is kg_v1.0 [10:58:21]action value=close_receipt [10:58:21]process_action close_receipt [10:58:21]cmd_close_receipt [10:58:21]MH_GetDate [10:58:21]Write to MH i2c: F0 00 00 7B 08 72 [10:58:21]Write i2c OK [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: F0 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: F0 09 00 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: F0 09 00 7B 08 00 4E F3 5E 66 CC 51 87 64 88 [10:58:21]GetLastDocTimeStamp 1717498541 [10:58:21]current date 1717498702 [10:58:21]FM_GetShiftState [10:58:21]SAM_PROTO_GetShiftState [10:58:21]wFMCommunicate request_size=4 [10:58:21]MH_SAM_APDU [10:58:21]CAPDU: 80 13 01 00 [10:58:21]Write to MH i2c: E2 08 00 7C 08 80 13 01 00 00 00 00 00 01 [10:58:21]Write i2c OK [10:58:21]MH_I2C_Read... [10:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:21]Read from MH i2c: E2 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: E2 0E 00 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: E2 0E 00 7C 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C4 [10:58:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:58:21]wFMCommunicate OK [10:58:21]SAM_PROTO_GetShiftState done [10:58:21]FM_GetShiftState done [10:58:21]opened in 1717460629 [10:58:21]opened+sec_in_day 1717547029 [10:58:21]quantity*price = 30011 [10:58:21]sum+1 = 30013 [10:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 93 04.06.2024 10:58 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148754 ФПД: 31178975782000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105822&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148754&fm=31178975782000&tin=02508201610067®Number=0000000000092720&sum=30000 [10:58:22]StoreToDocumentArchive [10:58:22]shift 368 fd 148754 [10:58:22]save to /storage/0368/doc_00148754 [10:58:22]save last doc name /storage/0368/doc_00148754 to /storage/kkm_last_doc_name [10:58:22]save OK [10:58:22]Clear old archive folders... [10:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:58:22]tlvbuf is 00EF1D80 [10:58:22]SAM_PROTO_ClearQueue [10:58:22]wFMCommunicate request_size=4 [10:58:22]MH_SAM_APDU [10:58:22]CAPDU: 80 09 00 00 [10:58:22]Write to MH i2c: E2 08 00 89 08 80 09 00 00 00 00 00 00 03 [10:58:22]Write i2c OK [10:58:22]MH_I2C_Read... [10:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:22]Read from MH i2c: E2 [10:58:22]MH_I2C_Read... [10:58:22]Read from MH i2c: E2 03 00 [10:58:22]MH_I2C_Read... [10:58:22]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [10:58:22]RAPDU: 90 00 [10:58:22]wFMCommunicate OK [10:58:22]SAM_PROTO_ClearQueue done [10:58:22]KKMCreateOFDPacket [10:58:22]OFDProtocolAddRootSTLVToBuf [10:58:22]FM_MakeSignedData [10:58:22]FM_MakeSignedData [10:58:22]SAM_PROTO_SignData [10:58:22]wFMCommunicate request_size=4 [10:58:22]MH_SAM_APDU [10:58:22]CAPDU: 80 0D 01 02 [10:58:22]Write to MH i2c: E2 08 00 8A 08 80 0D 01 02 00 00 00 00 0B [10:58:22]Write i2c OK [10:58:22]MH_I2C_Read... [10:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:22]Read from MH i2c: E2 [10:58:22]MH_I2C_Read... [10:58:22]Read from MH i2c: E2 03 00 [10:58:22]MH_I2C_Read... [10:58:22]Read from MH i2c: E2 03 00 8A 08 00 90 00 06 [10:58:22]RAPDU: 90 00 [10:58:22]wFMCommunicate OK [10:58:22]wFMCommunicate request_size=255 [10:58:22]MH_SAM_APDU [10:58: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4E F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 45 02 00 35 04 06 00 [10:58:22]Write to MH i2c: E2 02 01 8B 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4E F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 45 02 00 35 04 06 00 00 00 53 [10:58:22]Write i2c OK [10:58:22]MH_I2C_Read... [10:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:23]Read from MH i2c: E2 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 03 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 03 00 8B 08 00 90 00 07 [10:58:23]RAPDU: 90 00 [10:58:23]wFMCommunicate OK [10:58:23]wFMCommunicate request_size=11 [10:58:23]MH_SAM_APDU [10:58:23]CAPDU: 80 0D 02 02 06 1C 5B 6B C6 A4 70 [10:58:23]Write to MH i2c: E2 0E 00 8C 08 80 0D 02 02 06 00 1C 5B 6B C6 A4 70 00 00 D6 [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:23]Read from MH i2c: E2 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 03 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 03 00 8C 08 00 90 00 08 [10:58:23]RAPDU: 90 00 [10:58:23]wFMCommunicate OK [10:58:23]wFMCommunicate request_size=4 [10:58:23]MH_SAM_APDU [10:58:23]CAPDU: 80 0D 03 02 [10:58:23]Write to MH i2c: E2 08 00 8D 08 80 0D 03 02 00 00 00 00 10 [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:23]Read from MH i2c: E2 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0B 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0B 00 8D 08 00 2A 65 2C 56 66 AD 99 3B 90 00 09 [10:58:23]RAPDU: 2A 65 2C 56 66 AD 99 3B 90 00 [10:58:23]wFMCommunicate OK [10:58:23]SAM_PROTO_SignData done [10:58:23]FM_MakeSignedData done [10:58:23]CreateOFDProtocolMessage [10:58:23]wFMCommunicate request_size=4 [10:58:23]MH_SAM_APDU [10:58:23]CAPDU: 80 11 00 00 [10:58:23]Write to MH i2c: E2 08 00 8E 08 80 11 00 00 00 00 00 00 10 [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:23]Read from MH i2c: E2 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 17 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 17 00 8E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 63 [10:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:58:23]wFMCommunicate OK [10:58:23]CreateOFDProtocolMessage done [10:58:23]OFDSenderStorePacket 148754 [10:58:23]StoreOFDPacket docnum=148754 [10:58:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 5C 84 08 01 AD 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4E F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 45 02 00 35 04 06 00 1C 5B 6B C6 A4 70 2A 65 2C 56 66 AD 99 3B [10:58:23]CheckFolder [10:58:23]dirname=/storage/ofd_packets [10:58:23]CheckFolder done [10:58:23]ProducePacketName [10:58:23]name=ofd_packets/00148754 [10:58:23]NVStorageSaveData ofd_packets/00148754 [10:58:23]File name is /storage/ofd_packets/00148754 [10:58:23]Write 302 bytes [10:58:23]NVStorageSaveData done [10:58:23]OFDSenderStorePacket done [10:58:23]KKMCreateOFDPacket done [10:58:23]NVStorageSaveData kkm_last_timestamp [10:58:23]File name is /storage/kkm_last_timestamp [10:58:23]Write 4 bytes [10:58:23]NVStorageSaveData done [10:58:23]ExternCall_PrintAddStr [10:58:23]wPrintStart [10:58:23]Write to MH i2c: 01 00 00 8F 08 97 [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: 01 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: 01 07 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 FF 0F AC [10:58:23]RasterBufferAndPrint [10:58:23]line Счет N : (1)979679 [10:58:23]line ИНН: 02508201610067 [10:58:23]line Контрольно-Кассовый Чек [10:58:23]line ПРОДАЖА [10:58:23]line ТРК (МРК, ГНК) : 43 [10:58:23]line Товар: 2710124130 [10:58:23]line SUPER 92-К-5 [10:58:23]line 4.420 * 67.90 [10:58:23]line = 300.12 [10:58:23]line НДС 12% НСП 1% [10:58:23]line > о реализуемом товаре [10:58:23]line ОКРУГЛЕНИЕ: -0.12 [10:58:23]line ИТОГО: 300.00 [10:58:23]line Внесено: 300.00 [10:58:23]line СДАЧА: 0.00 [10:58:23]line НСП 1% : 2.66 [10:58:23]line НДС 12% : 31.87 [10:58:23]line Наличными: 300.00 [10:58:23]line Безнал.: 0.00 [10:58:23]line Место: АЗС № 68 "Партнер Нефть" [10:58:23]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:58:23]line СНО: Общий режим [10:58:23]line Чек 93 04.06.2024 10:58 [10:58:23]line Смена: 368 ФФД: 1.0 [10:58:23]line ЗНМ: 0300000035 [10:58:23]line РНМ: 0000000000092720 [10:58:23]line Версия ККМ: 001 [10:58:23]line ФМ: 0000000000875057 [10:58:23]line ФД: 148754 [10:58:23]line ФПД: 31178975782000 [10:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105822&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148754&fm=31178975782000&tin=02508201610067®Number=0000000000092720&sum=30000 [10:58:23]OFD Sender: Processing packet 148754 [packets to send 100, broken 99] [10:58:23]ProducePacketName [10:58:23]name=ofd_packets/00148754 [10:58:23]OFD Sender: To server: pG, [10:58:23]CommunicateWithHost lk.salyk.kg:30040 [10:58:23]ConnectInit lk.salyk.kg [10:58:23]written 0, free lines is 4095 [10:58:23]Connected sock=10 [10:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 5C 84 08 01 AD 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4E F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 45 02 00 35 04 06 00 1C 5B 6B C6 A4 70 2A 65 2C 56 66 AD 99 3B [10:58:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 08 0A 47 00 84 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 38 37 35 30 35 37 10 04 04 00 12 45 02 00 F4 03 04 00 72 9A 5E 66 B6 04 01 00 00 02 8C 7A BA 96 75 E2 F4 [10:58:23]CommunicateWithHost err = 0 [10:58:23]CheckOFDResponse [10:58:23]1017 (14) - 77093643461234 [10:58:23]1041 (16) - 0000000000875057 [10:58:23]1040 (4) - 148754 [10:58:23]1012 (4) - 04.06.2024 04:39 [10:58:23]1206 (1) - 0 [10:58:23]OFD Sender: Remove packet 148754 [10:58:23]ProducePacketName [10:58:23]name=ofd_packets/00148754 [10:58:23]NVStorageDeleteData [10:58:24]Write to MH i2c: 01 00 00 BA 08 C2 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: 01 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: 01 07 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: 01 07 00 BA 08 00 00 00 00 00 66 0C 3B [10:58:24]RasterBufferAndPrint [10:58:24]line [10:58:24]line [10:58:24]line [10:58:24]line [10:58:24]line [10:58:24]written 0, free lines is 3178 [10:58:24]MH_Cut [10:58:24]Write to MH i2c: D1 01 00 C1 08 01 9B [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: D1 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: D1 01 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: D1 01 00 C1 08 00 9A [10:58:24]Write to MH i2c: 01 00 00 C2 08 CA [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]OFD Sender: No OFD packet to send [10:58:25]*** Cut start [10:58:25]*** Partial cut [10:58:25]*** CUTSNS_PIN = 1 [10:58:25]*** CUTSNS_PIN = 0 [10:58:25]*** Brake cut motor [10:58:26]Read from MH i2c: 01 [10:58:26]MH_I2C_Read... [10:58:26]*** Stop cut motor [10:58:26]*** Cut end [10:58:26]Read from MH i2c: 01 07 00 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: 01 07 00 C2 08 00 00 00 00 00 FF 0F DF [10:58:26]process_action close_receipt done [10:58:26]requested_data is exist [10:58:26]produce_requested_data [10:58:26]requested_item fm.sn is exist - process it [10:58:26]wFMCommunicate request_size=4 [10:58:26]MH_SAM_APDU [10:58:26]CAPDU: 80 11 00 00 [10:58:26]Write to MH i2c: E2 08 00 C3 08 80 11 00 00 00 00 00 00 45 [10:58:26]Write i2c OK [10:58:26]MH_I2C_Read... [10:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:26]Read from MH i2c: E2 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: E2 17 00 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: E2 17 00 C3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 98 [10:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:58:26]wFMCommunicate OK [10:58:26]requested_item fd.num is exist - process it [10:58:26]SAM_PROTO_GetFieldsCounters [10:58:26]wFMCommunicate request_size=4 [10:58:26]MH_SAM_APDU [10:58:26]CAPDU: 80 13 00 00 [10:58:26]Write to MH i2c: E2 08 00 C4 08 80 13 00 00 00 00 00 00 48 [10:58:26]Write i2c OK [10:58:26]MH_I2C_Read... [10:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:26]Read from MH i2c: E2 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: E2 62 00 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: E2 62 00 C4 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 12 45 02 00 0E 04 04 00 70 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 45 [10:58:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 12 45 02 00 0E 04 04 00 70 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 [10:58:26]wFMCommunicate OK [10:58:26]SAM_PROTO_GetFieldsCounters done [10:58:26]requested_item shift.num is exist - process it [10:58:26]requested_item shift.opened is exist - process it [10:58:26]req_shift_opened [10:58:26]FM_GetShiftState [10:58:26]SAM_PROTO_GetShiftState [10:58:26]wFMCommunicate request_size=4 [10:58:26]MH_SAM_APDU [10:58:26]CAPDU: 80 13 01 00 [10:58:26]Write to MH i2c: E2 08 00 C5 08 80 13 01 00 00 00 00 00 4A [10:58:26]Write i2c OK [10:58:26]MH_I2C_Read... [10:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:26]Read from MH i2c: E2 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: E2 0E 00 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: E2 0E 00 C5 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0D [10:58:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:58:26]wFMCommunicate OK [10:58:26]SAM_PROTO_GetShiftState done [10:58:26]FM_GetShiftState done [10:58:26]req_shift_opened done [10:58:26]requested_item shift.open_date is exist - process it [10:58:26]req_shift_open_date [10:58:26]req_shift_open_date done [10:58:26]produce_requested_data done [10:58:26]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148754,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:58:26]process_action_free close_receipt [10:58:26]json_value_free [10:58:26]json_value_free done [10:58:26]process_json_proto returns [10:58:26]Send response to host [10:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148754,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:58:26]free response buf [10:58:26]execute_script done [10:58:26]execute_script returns [10:58:26]free content buf [10:58:26]Sock 9.Close socket [10:58:26]Sock 9.Thread stoped [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:12]accept exits with 7 [10:59:12]New connection [10:59:12]New thread 3067379044 created [10:59:12]Thread 3067235684 joined [10:59:12]Waiting for new connection... [10:59:12] Sock 7.Parse request [10:59:12]Sock 7.Check first char [10:59:12]Sock 7.First char is OK [10:59:12]request: POST /json_proto HTTP/1.0 [10:59:12]Method: POST [10:59:12]URL: /json_proto [10:59:12]Method is POST - this is cgi request [10:59:12]url: /json_proto [10:59:12]query_string will be loaded in cgi processing [10:59:12]execute_cgi json_proto POST (null) [10:59:12]execute_cgi path=json_proto method=POST [10:59:12]POST find Content-Length [10:59:12]Host: 172.17.38.4:8080 [10:59:12]Content-Length: 677 [10:59:12]Content-Type: application/json [10:59:12] [10:59:12]POST finish read [10:59:12]Found Content-Length = 677 [10:59:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:12]execute_script... [10:59: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)979680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:12]POST & json_proto [10:59:12]process_json_proto [10:59:12]json parsed OK: [10:59:12]protocol is kg_v1.0 [10:59:12]action value=close_receipt [10:59:12]process_action close_receipt [10:59:12]cmd_close_receipt [10:59:12]MH_GetDate [10:59:12]Write to MH i2c: F0 00 00 C6 08 BD [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: F0 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: F0 09 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: F0 09 00 C6 08 00 80 F3 5E 66 CC 51 87 64 05 [10:59:12]GetLastDocTimeStamp 1717498702 [10:59:12]current date 1717498752 [10:59:12]FM_GetShiftState [10:59:12]SAM_PROTO_GetShiftState [10:59:12]wFMCommunicate request_size=4 [10:59:12]MH_SAM_APDU [10:59:12]CAPDU: 80 13 01 00 [10:59:12]Write to MH i2c: E2 08 00 C7 08 80 13 01 00 00 00 00 00 4C [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:12]Read from MH i2c: E2 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 0E 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 0E 00 C7 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0F [10:59:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:59:12]wFMCommunicate OK [10:59:12]SAM_PROTO_GetShiftState done [10:59:12]FM_GetShiftState done [10:59:12]opened in 1717460629 [10:59:12]opened+sec_in_day 1717547029 [10:59:12]quantity*price = 20003 [10:59:12]sum+1 = 20004 [10:59:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 94 04.06.2024 10:59 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148755 ФПД: 20037221098229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105913&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148755&fm=20037221098229&tin=02508201610067®Number=0000000000092720&sum=20000 [10:59:13]StoreToDocumentArchive [10:59:13]shift 368 fd 148755 [10:59:13]save to /storage/0368/doc_00148755 [10:59:13]save last doc name /storage/0368/doc_00148755 to /storage/kkm_last_doc_name [10:59:13]save OK [10:59:13]Clear old archive folders... [10:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:13]tlvbuf is 00F97450 [10:59:13]SAM_PROTO_ClearQueue [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 09 00 00 [10:59:13]Write to MH i2c: E2 08 00 D4 08 80 09 00 00 00 00 00 00 4E [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]SAM_PROTO_ClearQueue done [10:59:13]KKMCreateOFDPacket [10:59:13]OFDProtocolAddRootSTLVToBuf [10:59:13]FM_MakeSignedData [10:59:13]FM_MakeSignedData [10:59:13]SAM_PROTO_SignData [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 01 02 [10:59:13]Write to MH i2c: E2 08 00 D5 08 80 0D 01 02 00 00 00 00 56 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]wFMCommunicate request_size=255 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 81 F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 45 02 00 35 04 06 00 12 [10:59:13]Write to MH i2c: E2 02 01 D6 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 81 F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 45 02 00 35 04 06 00 12 00 00 15 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:14]Read from MH i2c: E2 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 03 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [10:59:14]RAPDU: 90 00 [10:59:14]wFMCommunicate OK [10:59:14]wFMCommunicate request_size=10 [10:59:14]MH_SAM_APDU [10:59:14]CAPDU: 80 0D 02 02 05 39 47 72 22 F5 [10:59:14]Write to MH i2c: E2 0D 00 D7 08 80 0D 02 02 05 00 39 47 72 22 F5 00 00 6C [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:14]Read from MH i2c: E2 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 03 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 03 00 D7 08 00 90 00 53 [10:59:14]RAPDU: 90 00 [10:59:14]wFMCommunicate OK [10:59:14]wFMCommunicate request_size=4 [10:59:14]MH_SAM_APDU [10:59:14]CAPDU: 80 0D 03 02 [10:59:14]Write to MH i2c: E2 08 00 D8 08 80 0D 03 02 00 00 00 00 5B [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:14]Read from MH i2c: E2 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 0B 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 0B 00 D8 08 00 1C BB DB 0E 19 B6 24 31 90 00 40 [10:59:14]RAPDU: 1C BB DB 0E 19 B6 24 31 90 00 [10:59:14]wFMCommunicate OK [10:59:14]SAM_PROTO_SignData done [10:59:14]FM_MakeSignedData done [10:59:14]CreateOFDProtocolMessage [10:59:14]wFMCommunicate request_size=4 [10:59:14]MH_SAM_APDU [10:59:14]CAPDU: 80 11 00 00 [10:59:14]Write to MH i2c: E2 08 00 D9 08 80 11 00 00 00 00 00 00 5B [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:14]Read from MH i2c: E2 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 17 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 17 00 D9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AE [10:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:59:14]wFMCommunicate OK [10:59:14]CreateOFDProtocolMessage done [10:59:14]OFDSenderStorePacket 148755 [10:59:14]StoreOFDPacket docnum=148755 [10:59:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 22 61 07 01 62 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 81 F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 45 02 00 35 04 06 00 12 39 47 72 22 F5 1C BB DB 0E 19 B6 24 31 [10:59:14]CheckFolder [10:59:14]dirname=/storage/ofd_packets [10:59:14]CheckFolder done [10:59:14]ProducePacketName [10:59:14]name=ofd_packets/00148755 [10:59:14]NVStorageSaveData ofd_packets/00148755 [10:59:14]File name is /storage/ofd_packets/00148755 [10:59:14]Write 301 bytes [10:59:14]NVStorageSaveData done [10:59:14]OFDSenderStorePacket done [10:59:14]KKMCreateOFDPacket done [10:59:14]NVStorageSaveData kkm_last_timestamp [10:59:14]File name is /storage/kkm_last_timestamp [10:59:14]Write 4 bytes [10:59:14]NVStorageSaveData done [10:59:14]ExternCall_PrintAddStr [10:59:14]wPrintStart [10:59:14]Write to MH i2c: 01 00 00 DA 08 E2 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 DA 08 00 00 00 00 00 FF 0F F7 [10:59:14]RasterBufferAndPrint [10:59:14]line Счет N : (1)979680 [10:59:14]line ИНН: 02508201610067 [10:59:14]line Контрольно-Кассовый Чек [10:59:14]line ПРОДАЖА [10:59:14]line ТРК (МРК, ГНК) : 12 [10:59:14]line Товар: 2710124130 [10:59:14]line Аи-92-К-5 [10:59:14]line 2.990 * 66.90 [10:59:14]line = 200.03 [10:59:14]line НДС 12% НСП 1% [10:59:14]line > о реализуемом товаре [10:59:14]line ОКРУГЛЕНИЕ: -0.03 [10:59:14]line ИТОГО: 200.00 [10:59:14]line Внесено: 200.00 [10:59:14]line СДАЧА: 0.00 [10:59:14]line НСП 1% : 1.77 [10:59:14]line НДС 12% : 21.24 [10:59:14]line Наличными: 200.00 [10:59:14]line Безнал.: 0.00 [10:59:14]line Место: АЗС № 68 "Партнер Нефть" [10:59:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [10:59:14]line СНО: Общий режим [10:59:14]line Чек 94 04.06.2024 10:59 [10:59:14]line Смена: 368 ФФД: 1.0 [10:59:14]line ЗНМ: 0300000035 [10:59:14]line РНМ: 0000000000092720 [10:59:14]line Версия ККМ: 001 [10:59:14]line ФМ: 0000000000875057 [10:59:14]line ФД: 148755 [10:59:14]line ФПД: 20037221098229 [10:59:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105913&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148755&fm=20037221098229&tin=02508201610067®Number=0000000000092720&sum=20000 [10:59:14]OFD Sender: Processing packet 148755 [packets to send 100, broken 99] [10:59:14]ProducePacketName [10:59:14]name=ofd_packets/00148755 [10:59:14]OFD Sender: To server: pG, [10:59:14]CommunicateWithHost lk.salyk.kg:30040 [10:59:14]ConnectInit lk.salyk.kg [10:59:14]written 0, free lines is 4095 [10:59:14]Connected sock=10 [10:59:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 22 61 07 01 62 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 81 F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 45 02 00 35 04 06 00 12 39 47 72 22 F5 1C BB DB 0E 19 B6 24 31 [10:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 AB 95 47 00 68 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 38 37 35 30 35 37 10 04 04 00 13 45 02 00 F4 03 04 00 A5 9A 5E 66 B6 04 01 00 00 09 28 57 2B 17 7A 67 8E [10:59:14]CommunicateWithHost err = 0 [10:59:14]CheckOFDResponse [10:59:14]1017 (14) - 77093643461234 [10:59:14]1041 (16) - 0000000000875057 [10:59:14]1040 (4) - 148755 [10:59:14]1012 (4) - 04.06.2024 04:40 [10:59:14]1206 (1) - 0 [10:59:14]OFD Sender: Remove packet 148755 [10:59:14]ProducePacketName [10:59:14]name=ofd_packets/00148755 [10:59:14]NVStorageDeleteData [10:59:14]Write to MH i2c: 01 00 00 05 09 0E [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 05 09 00 00 00 00 00 63 0C 84 [10:59:14]RasterBufferAndPrint [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]written 0, free lines is 3176 [10:59:14]MH_Cut [10:59:14]Write to MH i2c: D1 01 00 0C 09 01 E7 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 01 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 01 00 0C 09 00 E6 [10:59:14]Write to MH i2c: 01 00 00 0D 09 16 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:15]OFD Sender: No OFD packet to send [10:59:16]*** Cut start [10:59:16]*** Partial cut [10:59:16]*** CUTSNS_PIN = 1 [10:59:16]*** CUTSNS_PIN = 0 [10:59:16]*** Brake cut motor [10:59:16]Read from MH i2c: 01 [10:59:16]MH_I2C_Read... [10:59:16]*** Stop cut motor [10:59:16]*** Cut end [10:59:16]Read from MH i2c: 01 07 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: 01 07 00 0D 09 00 00 00 00 00 FF 0F 2B [10:59:16]process_action close_receipt done [10:59:16]requested_data is exist [10:59:16]produce_requested_data [10:59:16]requested_item fm.sn is exist - process it [10:59:16]wFMCommunicate request_size=4 [10:59:16]MH_SAM_APDU [10:59:16]CAPDU: 80 11 00 00 [10:59:16]Write to MH i2c: E2 08 00 0E 09 80 11 00 00 00 00 00 00 91 [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 17 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 17 00 0E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E4 [10:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [10:59:16]wFMCommunicate OK [10:59:16]requested_item fd.num is exist - process it [10:59:16]SAM_PROTO_GetFieldsCounters [10:59:16]wFMCommunicate request_size=4 [10:59:16]MH_SAM_APDU [10:59:16]CAPDU: 80 13 00 00 [10:59:16]Write to MH i2c: E2 08 00 0F 09 80 13 00 00 00 00 00 00 94 [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:17]Read from MH i2c: E2 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 62 00 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 62 00 0F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 13 45 02 00 0E 04 04 00 70 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 95 [10:59:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 13 45 02 00 0E 04 04 00 70 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 [10:59:17]wFMCommunicate OK [10:59:17]SAM_PROTO_GetFieldsCounters done [10:59:17]requested_item shift.num is exist - process it [10:59:17]requested_item shift.opened is exist - process it [10:59:17]req_shift_opened [10:59:17]FM_GetShiftState [10:59:17]SAM_PROTO_GetShiftState [10:59:17]wFMCommunicate request_size=4 [10:59:17]MH_SAM_APDU [10:59:17]CAPDU: 80 13 01 00 [10:59:17]Write to MH i2c: E2 08 00 10 09 80 13 01 00 00 00 00 00 96 [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:17]Read from MH i2c: E2 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 0E 00 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 0E 00 10 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 59 [10:59:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [10:59:17]wFMCommunicate OK [10:59:17]SAM_PROTO_GetShiftState done [10:59:17]FM_GetShiftState done [10:59:17]req_shift_opened done [10:59:17]requested_item shift.open_date is exist - process it [10:59:17]req_shift_open_date [10:59:17]req_shift_open_date done [10:59:17]produce_requested_data done [10:59:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148755,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [10:59:17]process_action_free close_receipt [10:59:17]json_value_free [10:59:17]json_value_free done [10:59:17]process_json_proto returns [10:59:17]Send response to host [10:59:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148755,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [10:59:17]free response buf [10:59:17]execute_script done [10:59:17]execute_script returns [10:59:17]free content buf [10:59:17]Sock 7.Close socket [10:59:17]Sock 7.Thread stoped [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:03]accept exits with 9 [11:00:03]New connection [11:00:03]New thread 3067235684 created [11:00:03]Thread 3067379044 joined [11:00:03]Waiting for new connection... [11:00:03] Sock 9.Parse request [11:00:03]Sock 9.Check first char [11:00:03]Sock 9.First char is OK [11:00:03]request: POST /json_proto HTTP/1.0 [11:00:03]Method: POST [11:00:03]URL: /json_proto [11:00:03]Method is POST - this is cgi request [11:00:03]url: /json_proto [11:00:03]query_string will be loaded in cgi processing [11:00:03]execute_cgi json_proto POST (null) [11:00:03]execute_cgi path=json_proto method=POST [11:00:03]POST find Content-Length [11:00:03]Host: 172.17.38.4:8080 [11:00:03]Content-Length: 677 [11:00:03]Content-Type: application/json [11:00:03] [11:00:03]POST finish read [11:00:03]Found Content-Length = 677 [11:00:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:03]execute_script... [11:00: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)979681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:03]POST & json_proto [11:00:03]process_json_proto [11:00:03]json parsed OK: [11:00:03]protocol is kg_v1.0 [11:00:03]action value=close_receipt [11:00:03]process_action close_receipt [11:00:03]cmd_close_receipt [11:00:03]MH_GetDate [11:00:03]Write to MH i2c: F0 00 00 11 09 09 [11:00:03]Write i2c OK [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: F0 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: F0 09 00 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: F0 09 00 11 09 00 B4 F3 5E 66 CC 51 87 64 85 [11:00:03]GetLastDocTimeStamp 1717498753 [11:00:03]current date 1717498804 [11:00:03]FM_GetShiftState [11:00:03]SAM_PROTO_GetShiftState [11:00:03]wFMCommunicate request_size=4 [11:00:03]MH_SAM_APDU [11:00:03]CAPDU: 80 13 01 00 [11:00:03]Write to MH i2c: E2 08 00 12 09 80 13 01 00 00 00 00 00 98 [11:00:03]Write i2c OK [11:00:03]MH_I2C_Read... [11:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:03]Read from MH i2c: E2 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: E2 0E 00 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: E2 0E 00 12 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5B [11:00:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:00:03]wFMCommunicate OK [11:00:03]SAM_PROTO_GetShiftState done [11:00:03]FM_GetShiftState done [11:00:03]opened in 1717460629 [11:00:03]opened+sec_in_day 1717547029 [11:00:03]quantity*price = 40006 [11:00:03]sum+1 = 40007 [11:00:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 95 04.06.2024 11:00 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148756 ФПД: 276025004317390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110004&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148756&fm=276025004317390&tin=02508201610067®Number=0000000000092720&sum=40000 [11:00:04]StoreToDocumentArchive [11:00:04]shift 368 fd 148756 [11:00:04]save to /storage/0368/doc_00148756 [11:00:04]save last doc name /storage/0368/doc_00148756 to /storage/kkm_last_doc_name [11:00:04]save OK [11:00:04]Clear old archive folders... [11:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:04]tlvbuf is 00FA5860 [11:00:04]SAM_PROTO_ClearQueue [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 09 00 00 [11:00:04]Write to MH i2c: E2 08 00 1F 09 80 09 00 00 00 00 00 00 9A [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [11:00:04]RAPDU: 90 00 [11:00:04]wFMCommunicate OK [11:00:04]SAM_PROTO_ClearQueue done [11:00:04]KKMCreateOFDPacket [11:00:04]OFDProtocolAddRootSTLVToBuf [11:00:04]FM_MakeSignedData [11:00:04]FM_MakeSignedData [11:00:04]SAM_PROTO_SignData [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 0D 01 02 [11:00:04]Write to MH i2c: E2 08 00 20 09 80 0D 01 02 00 00 00 00 A2 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [11:00:04]RAPDU: 90 00 [11:00:04]wFMCommunicate OK [11:00:04]wFMCommunicate request_size=255 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B4 F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 14 45 02 00 35 04 06 00 FB [11:00:04]Write to MH i2c: E2 02 01 21 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 00 00 00 F4 03 04 00 B4 F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 14 45 02 00 35 04 06 00 FB 00 00 8C [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:05]Read from MH i2c: E2 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 03 00 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [11:00:05]RAPDU: 90 00 [11:00:05]wFMCommunicate OK [11:00:05]wFMCommunicate request_size=10 [11:00:05]MH_SAM_APDU [11:00:05]CAPDU: 80 0D 02 02 05 0B 14 54 DA CE [11:00:05]Write to MH i2c: E2 0D 00 22 09 80 0D 02 02 05 00 0B 14 54 DA CE 00 00 CA [11:00:05]Write i2c OK [11:00:05]MH_I2C_Read... [11:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:05]Read from MH i2c: E2 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 03 00 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 03 00 22 09 00 90 00 9F [11:00:05]RAPDU: 90 00 [11:00:05]wFMCommunicate OK [11:00:05]wFMCommunicate request_size=4 [11:00:05]MH_SAM_APDU [11:00:05]CAPDU: 80 0D 03 02 [11:00:05]Write to MH i2c: E2 08 00 23 09 80 0D 03 02 00 00 00 00 A7 [11:00:05]Write i2c OK [11:00:05]MH_I2C_Read... [11:00:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:05]Read from MH i2c: E2 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 0B 00 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 0B 00 23 09 00 1C AD E9 3B 6D 8E FE 42 90 00 D0 [11:00:05]RAPDU: 1C AD E9 3B 6D 8E FE 42 90 00 [11:00:05]wFMCommunicate OK [11:00:05]SAM_PROTO_SignData done [11:00:05]FM_MakeSignedData done [11:00:05]CreateOFDProtocolMessage [11:00:05]wFMCommunicate request_size=4 [11:00:05]MH_SAM_APDU [11:00:05]CAPDU: 80 11 00 00 [11:00:05]Write to MH i2c: E2 08 00 24 09 80 11 00 00 00 00 00 00 A7 [11:00:05]Write i2c OK [11:00:05]MH_I2C_Read... [11:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:05]Read from MH i2c: E2 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 17 00 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 17 00 24 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FA [11:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:00:05]wFMCommunicate OK [11:00:05]CreateOFDProtocolMessage done [11:00:05]OFDSenderStorePacket 148756 [11:00:05]StoreOFDPacket docnum=148756 [11:00:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 79 28 07 01 A3 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B4 F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 14 45 02 00 35 04 06 00 FB 0B 14 54 DA CE 1C AD E9 3B 6D 8E FE 42 [11:00:05]CheckFolder [11:00:05]dirname=/storage/ofd_packets [11:00:05]CheckFolder done [11:00:05]ProducePacketName [11:00:05]name=ofd_packets/00148756 [11:00:05]NVStorageSaveData ofd_packets/00148756 [11:00:05]File name is /storage/ofd_packets/00148756 [11:00:05]Write 301 bytes [11:00:05]NVStorageSaveData done [11:00:05]OFDSenderStorePacket done [11:00:05]KKMCreateOFDPacket done [11:00:05]NVStorageSaveData kkm_last_timestamp [11:00:05]File name is /storage/kkm_last_timestamp [11:00:05]Write 4 bytes [11:00:05]NVStorageSaveData done [11:00:05]ExternCall_PrintAddStr [11:00:05]wPrintStart [11:00:05]Write to MH i2c: 01 00 00 25 09 2E [11:00:05]Write i2c OK [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: 01 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: 01 07 00 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 FF 0F 43 [11:00:05]RasterBufferAndPrint [11:00:05]line Счет N : (1)979681 [11:00:05]line ИНН: 02508201610067 [11:00:05]line Контрольно-Кассовый Чек [11:00:05]line ПРОДАЖА [11:00:05]line ТРК (МРК, ГНК) : 22 [11:00:05]line Товар: 2710124130 [11:00:05]line Аи-92-К-5 [11:00:05]line 5.980 * 66.90 [11:00:05]line = 400.06 [11:00:05]line НДС 12% НСП 1% [11:00:05]line > о реализуемом товаре [11:00:05]line ОКРУГЛЕНИЕ: -0.06 [11:00:05]line ИТОГО: 400.00 [11:00:05]line Внесено: 400.00 [11:00:05]line СДАЧА: 0.00 [11:00:05]line НСП 1% : 3.54 [11:00:05]line НДС 12% : 42.48 [11:00:05]line Наличными: 400.00 [11:00:05]line Безнал.: 0.00 [11:00:05]line Место: АЗС № 68 "Партнер Нефть" [11:00:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:00:05]line СНО: Общий режим [11:00:05]line Чек 95 04.06.2024 11:00 [11:00:05]line Смена: 368 ФФД: 1.0 [11:00:05]line ЗНМ: 0300000035 [11:00:05]line РНМ: 0000000000092720 [11:00:05]line Версия ККМ: 001 [11:00:05]line ФМ: 0000000000875057 [11:00:05]line ФД: 148756 [11:00:05]line ФПД: 276025004317390 [11:00:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110004&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148756&fm=276025004317390&tin=02508201610067®Number=0000000000092720&sum=40000 [11:00:05]OFD Sender: Processing packet 148756 [packets to send 100, broken 99] [11:00:05]ProducePacketName [11:00:05]name=ofd_packets/00148756 [11:00:05]OFD Sender: To server: pG, [11:00:05]CommunicateWithHost lk.salyk.kg:30040 [11:00:05]ConnectInit lk.salyk.kg [11:00:05]written 0, free lines is 4095 [11:00:05]Connected sock=10 [11:00:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 79 28 07 01 A3 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B4 F3 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 14 45 02 00 35 04 06 00 FB 0B 14 54 DA CE 1C AD E9 3B 6D 8E FE 42 [11:00:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E2 97 47 00 85 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 14 45 02 00 F4 03 04 00 D8 9A 5E 66 B6 04 01 00 00 EA F9 61 65 D5 34 02 E4 [11:00:06]CommunicateWithHost err = 0 [11:00:06]CheckOFDResponse [11:00:06]1017 (14) - 77093643461234 [11:00:06]1041 (16) - 0000000000875057 [11:00:06]1040 (4) - 148756 [11:00:06]1012 (4) - 04.06.2024 04:40 [11:00:06]1206 (1) - 0 [11:00:06]OFD Sender: Remove packet 148756 [11:00:06]ProducePacketName [11:00:06]name=ofd_packets/00148756 [11:00:06]NVStorageDeleteData [11:00:06]Write to MH i2c: 01 00 00 50 09 59 [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: 01 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: 01 07 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: 01 07 00 50 09 00 00 00 00 00 66 0C D2 [11:00:06]RasterBufferAndPrint [11:00:06]line [11:00:06]line [11:00:06]line [11:00:06]line [11:00:06]line [11:00:06]written 0, free lines is 3178 [11:00:06]MH_Cut [11:00:06]Write to MH i2c: D1 01 00 57 09 01 32 [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: D1 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: D1 01 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: D1 01 00 57 09 00 31 [11:00:06]Write to MH i2c: 01 00 00 58 09 61 [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:06]OFD Sender: No OFD packet to send [11:00:07]*** Cut start [11:00:07]*** Partial cut [11:00:07]*** CUTSNS_PIN = 1 [11:00:07]*** CUTSNS_PIN = 0 [11:00:07]*** Brake cut motor [11:00:08]Read from MH i2c: 01 [11:00:08]MH_I2C_Read... [11:00:08]*** Stop cut motor [11:00:08]*** Cut end [11:00:08]Read from MH i2c: 01 07 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: 01 07 00 58 09 00 00 00 00 00 FF 0F 76 [11:00:08]process_action close_receipt done [11:00:08]requested_data is exist [11:00:08]produce_requested_data [11:00:08]requested_item fm.sn is exist - process it [11:00:08]wFMCommunicate request_size=4 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 11 00 00 [11:00:08]Write to MH i2c: E2 08 00 59 09 80 11 00 00 00 00 00 00 DC [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 17 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 17 00 59 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2F [11:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:00:08]wFMCommunicate OK [11:00:08]requested_item fd.num is exist - process it [11:00:08]SAM_PROTO_GetFieldsCounters [11:00:08]wFMCommunicate request_size=4 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 13 00 00 [11:00:08]Write to MH i2c: E2 08 00 5A 09 80 13 00 00 00 00 00 00 DF [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 62 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 62 00 5A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 14 45 02 00 0E 04 04 00 70 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 E4 [11:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 14 45 02 00 0E 04 04 00 70 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 [11:00:08]wFMCommunicate OK [11:00:08]SAM_PROTO_GetFieldsCounters done [11:00:08]requested_item shift.num is exist - process it [11:00:08]requested_item shift.opened is exist - process it [11:00:08]req_shift_opened [11:00:08]FM_GetShiftState [11:00:08]SAM_PROTO_GetShiftState [11:00:08]wFMCommunicate request_size=4 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 13 01 00 [11:00:08]Write to MH i2c: E2 08 00 5B 09 80 13 01 00 00 00 00 00 E1 [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 0E 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 0E 00 5B 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A4 [11:00:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:00:08]wFMCommunicate OK [11:00:08]SAM_PROTO_GetShiftState done [11:00:08]FM_GetShiftState done [11:00:08]req_shift_opened done [11:00:08]requested_item shift.open_date is exist - process it [11:00:08]req_shift_open_date [11:00:08]req_shift_open_date done [11:00:08]produce_requested_data done [11:00:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148756,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:00:08]process_action_free close_receipt [11:00:08]json_value_free [11:00:08]json_value_free done [11:00:08]process_json_proto returns [11:00:08]Send response to host [11:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148756,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:00:08]free response buf [11:00:08]execute_script done [11:00:08]execute_script returns [11:00:08]free content buf [11:00:08]Sock 9.Close socket [11:00:08]Sock 9.Thread stoped [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:34]accept exits with 7 [11:01:34]New connection [11:01:34]New thread 3067379044 created [11:01:34]Thread 3067235684 joined [11:01:34]Waiting for new connection... [11:01:34] Sock 7.Parse request [11:01:34]Sock 7.Check first char [11:01:34]Sock 7.First char is OK [11:01:34]request: POST /json_proto HTTP/1.0 [11:01:34]Method: POST [11:01:34]URL: /json_proto [11:01:34]Method is POST - this is cgi request [11:01:34]url: /json_proto [11:01:34]query_string will be loaded in cgi processing [11:01:34]execute_cgi json_proto POST (null) [11:01:34]execute_cgi path=json_proto method=POST [11:01:34]POST find Content-Length [11:01:34]Host: 172.17.38.4:8080 [11:01:34]Content-Length: 678 [11:01:34]Content-Type: application/json [11:01:34] [11:01:34]POST finish read [11:01:34]Found Content-Length = 678 [11:01:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:34]execute_script... [11:01:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:34]POST & json_proto [11:01:34]process_json_proto [11:01:34]json parsed OK: [11:01:34]protocol is kg_v1.0 [11:01:34]action value=close_receipt [11:01:34]process_action close_receipt [11:01:34]cmd_close_receipt [11:01:34]MH_GetDate [11:01:34]Write to MH i2c: F0 00 00 5C 09 54 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: F0 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: F0 09 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: F0 09 00 5C 09 00 0F F4 5E 66 CC 51 87 64 2C [11:01:34]GetLastDocTimeStamp 1717498804 [11:01:34]current date 1717498895 [11:01:34]FM_GetShiftState [11:01:34]SAM_PROTO_GetShiftState [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 13 01 00 [11:01:34]Write to MH i2c: E2 08 00 5D 09 80 13 01 00 00 00 00 00 E3 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 0E 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 0E 00 5D 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A6 [11:01:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:01:34]wFMCommunicate OK [11:01:34]SAM_PROTO_GetShiftState done [11:01:34]FM_GetShiftState done [11:01:34]opened in 1717460629 [11:01:34]opened+sec_in_day 1717547029 [11:01:34]quantity*price = 80012 [11:01:34]sum+1 = 80013 [11:01:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 96 04.06.2024 11:01 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148757 ФПД: 64649468016306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110135&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148757&fm=64649468016306&tin=02508201610067®Number=0000000000092720&sum=80000 [11:01:35]StoreToDocumentArchive [11:01:35]shift 368 fd 148757 [11:01:35]save to /storage/0368/doc_00148757 [11:01:35]save last doc name /storage/0368/doc_00148757 to /storage/kkm_last_doc_name [11:01:35]save OK [11:01:35]Clear old archive folders... [11:01:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:35]tlvbuf is 00FDC910 [11:01:35]SAM_PROTO_ClearQueue [11:01:35]wFMCommunicate request_size=4 [11:01:35]MH_SAM_APDU [11:01:35]CAPDU: 80 09 00 00 [11:01:35]Write to MH i2c: E2 08 00 6A 09 80 09 00 00 00 00 00 00 E5 [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:36]Read from MH i2c: E2 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 03 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [11:01:36]RAPDU: 90 00 [11:01:36]wFMCommunicate OK [11:01:36]SAM_PROTO_ClearQueue done [11:01:36]KKMCreateOFDPacket [11:01:36]OFDProtocolAddRootSTLVToBuf [11:01:36]FM_MakeSignedData [11:01:36]FM_MakeSignedData [11:01:36]SAM_PROTO_SignData [11:01:36]wFMCommunicate request_size=4 [11:01:36]MH_SAM_APDU [11:01:36]CAPDU: 80 0D 01 02 [11:01:36]Write to MH i2c: E2 08 00 6B 09 80 0D 01 02 00 00 00 00 ED [11:01:36]Write i2c OK [11:01:36]MH_I2C_Read... [11:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:36]Read from MH i2c: E2 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 03 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 03 00 6B 09 00 90 00 E8 [11:01:36]RAPDU: 90 00 [11:01:36]wFMCommunicate OK [11:01:36]wFMCommunicate request_size=255 [11:01:36]MH_SAM_APDU [11: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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0F F4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 15 45 02 00 35 04 06 00 3A [11:01:36]Write to MH i2c: E2 02 01 6C 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 0F F4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 15 45 02 00 35 04 06 00 3A 00 00 91 [11:01:36]Write i2c OK [11:01:36]MH_I2C_Read... [11:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:36]Read from MH i2c: E2 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 03 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 03 00 6C 09 00 90 00 E9 [11:01:36]RAPDU: 90 00 [11:01:36]wFMCommunicate OK [11:01:36]wFMCommunicate request_size=10 [11:01:36]MH_SAM_APDU [11:01:36]CAPDU: 80 0D 02 02 05 CC 60 93 76 B2 [11:01:36]Write to MH i2c: E2 0D 00 6D 09 80 0D 02 02 05 00 CC 60 93 76 B2 00 00 E1 [11:01:36]Write i2c OK [11:01:36]MH_I2C_Read... [11:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:36]Read from MH i2c: E2 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 03 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 03 00 6D 09 00 90 00 EA [11:01:36]RAPDU: 90 00 [11:01:36]wFMCommunicate OK [11:01:36]wFMCommunicate request_size=4 [11:01:36]MH_SAM_APDU [11:01:36]CAPDU: 80 0D 03 02 [11:01:36]Write to MH i2c: E2 08 00 6E 09 80 0D 03 02 00 00 00 00 F2 [11:01:36]Write i2c OK [11:01:36]MH_I2C_Read... [11:01:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:36]Read from MH i2c: E2 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 0B 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 0B 00 6E 09 00 7E 6C 52 9D 08 A3 15 B2 90 00 3E [11:01:36]RAPDU: 7E 6C 52 9D 08 A3 15 B2 90 00 [11:01:36]wFMCommunicate OK [11:01:36]SAM_PROTO_SignData done [11:01:36]FM_MakeSignedData done [11:01:36]CreateOFDProtocolMessage [11:01:36]wFMCommunicate request_size=4 [11:01:36]MH_SAM_APDU [11:01:36]CAPDU: 80 11 00 00 [11:01:36]Write to MH i2c: E2 08 00 6F 09 80 11 00 00 00 00 00 00 F2 [11:01:36]Write i2c OK [11:01:36]MH_I2C_Read... [11:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:36]Read from MH i2c: E2 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 17 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 17 00 6F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 45 [11:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:01:36]wFMCommunicate OK [11:01:36]CreateOFDProtocolMessage done [11:01:36]OFDSenderStorePacket 148757 [11:01:36]StoreOFDPacket docnum=148757 [11:01:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1F 35 07 01 7F 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 60 00 00 00 F4 03 04 00 0F F4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 15 45 02 00 35 04 06 00 3A CC 60 93 76 B2 7E 6C 52 9D 08 A3 15 B2 [11:01:36]CheckFolder [11:01:36]dirname=/storage/ofd_packets [11:01:36]CheckFolder done [11:01:36]ProducePacketName [11:01:36]name=ofd_packets/00148757 [11:01:36]NVStorageSaveData ofd_packets/00148757 [11:01:36]File name is /storage/ofd_packets/00148757 [11:01:36]Write 301 bytes [11:01:36]NVStorageSaveData done [11:01:36]OFDSenderStorePacket done [11:01:36]KKMCreateOFDPacket done [11:01:36]NVStorageSaveData kkm_last_timestamp [11:01:36]File name is /storage/kkm_last_timestamp [11:01:36]Write 4 bytes [11:01:36]NVStorageSaveData done [11:01:36]ExternCall_PrintAddStr [11:01:36]wPrintStart [11:01:36]Write to MH i2c: 01 00 00 70 09 79 [11:01:36]Write i2c OK [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: 01 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: 01 07 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: 01 07 00 70 09 00 00 00 00 00 FF 0F 8E [11:01:36]RasterBufferAndPrint [11:01:36]line Счет N : (1)979682 [11:01:36]line ИНН: 02508201610067 [11:01:36]line Контрольно-Кассовый Чек [11:01:36]line ПРОДАЖА [11:01:36]line ТРК (МРК, ГНК) : 12 [11:01:36]line Товар: 2710124130 [11:01:36]line Аи-92-К-5 [11:01:36]line 11.960 * 66.90 [11:01:36]line = 800.12 [11:01:36]line НДС 12% НСП 1% [11:01:36]line > о реализуемом товаре [11:01:36]line ОКРУГЛЕНИЕ: -0.12 [11:01:36]line ИТОГО: 800.00 [11:01:36]line Внесено: 800.00 [11:01:36]line СДАЧА: 0.00 [11:01:36]line НСП 1% : 7.08 [11:01:36]line НДС 12% : 84.97 [11:01:36]line Наличными: 800.00 [11:01:36]line Безнал.: 0.00 [11:01:36]line Место: АЗС № 68 "Партнер Нефть" [11:01:36]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:01:36]line СНО: Общий режим [11:01:36]line Чек 96 04.06.2024 11:01 [11:01:36]line Смена: 368 ФФД: 1.0 [11:01:36]line ЗНМ: 0300000035 [11:01:36]line РНМ: 0000000000092720 [11:01:36]line Версия ККМ: 001 [11:01:36]line ФМ: 0000000000875057 [11:01:36]line ФД: 148757 [11:01:36]line ФПД: 64649468016306 [11:01:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110135&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148757&fm=64649468016306&tin=02508201610067®Number=0000000000092720&sum=80000 [11:01:36]OFD Sender: Processing packet 148757 [packets to send 100, broken 99] [11:01:36]ProducePacketName [11:01:36]name=ofd_packets/00148757 [11:01:36]OFD Sender: To server: pG, [11:01:36]CommunicateWithHost lk.salyk.kg:30040 [11:01:36]ConnectInit lk.salyk.kg [11:01:36]written 0, free lines is 4095 [11:01:36]Connected sock=10 [11:01:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1F 35 07 01 7F 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 60 00 00 00 F4 03 04 00 0F F4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 15 45 02 00 35 04 06 00 3A CC 60 93 76 B2 7E 6C 52 9D 08 A3 15 B2 [11:01:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9B CF 47 00 37 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 38 37 35 30 35 37 10 04 04 00 15 45 02 00 F4 03 04 00 33 9B 5E 66 B6 04 01 00 00 DE F9 7A 69 FA D4 9A 3C [11:01:37]CommunicateWithHost err = 0 [11:01:37]CheckOFDResponse [11:01:37]1017 (14) - 77093643461234 [11:01:37]1041 (16) - 0000000000875057 [11:01:37]1040 (4) - 148757 [11:01:37]1012 (4) - 04.06.2024 04:42 [11:01:37]1206 (1) - 0 [11:01:37]OFD Sender: Remove packet 148757 [11:01:37]ProducePacketName [11:01:37]name=ofd_packets/00148757 [11:01:37]NVStorageDeleteData [11:01:37]Write to MH i2c: 01 00 00 9B 09 A4 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: 01 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: 01 07 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: 01 07 00 9B 09 00 00 00 00 00 65 0C 1C [11:01:37]RasterBufferAndPrint [11:01:37]line [11:01:37]line [11:01:37]line [11:01:37]line [11:01:37]line [11:01:37]written 0, free lines is 3177 [11:01:37]MH_Cut [11:01:37]Write to MH i2c: D1 01 00 A2 09 01 7D [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: D1 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: D1 01 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: D1 01 00 A2 09 00 7C [11:01:37]Write to MH i2c: 01 00 00 A3 09 AC [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]OFD Sender: No OFD packet to send [11:01:38]*** Cut start [11:01:38]*** Partial cut [11:01:38]*** CUTSNS_PIN = 1 [11:01:38]*** CUTSNS_PIN = 0 [11:01:38]*** Brake cut motor [11:01:39]Read from MH i2c: 01 [11:01:39]MH_I2C_Read... [11:01:39]*** Stop cut motor [11:01:39]*** Cut end [11:01:39]Read from MH i2c: 01 07 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: 01 07 00 A3 09 00 00 00 00 00 FF 0F C1 [11:01:39]process_action close_receipt done [11:01:39]requested_data is exist [11:01:39]produce_requested_data [11:01:39]requested_item fm.sn is exist - process it [11:01:39]wFMCommunicate request_size=4 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 11 00 00 [11:01:39]Write to MH i2c: E2 08 00 A4 09 80 11 00 00 00 00 00 00 27 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 17 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 17 00 A4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7A [11:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:01:39]wFMCommunicate OK [11:01:39]requested_item fd.num is exist - process it [11:01:39]SAM_PROTO_GetFieldsCounters [11:01:39]wFMCommunicate request_size=4 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 13 00 00 [11:01:39]Write to MH i2c: E2 08 00 A5 09 80 13 00 00 00 00 00 00 2A [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 62 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 62 00 A5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 15 45 02 00 0E 04 04 00 70 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 33 [11:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 15 45 02 00 0E 04 04 00 70 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 [11:01:39]wFMCommunicate OK [11:01:39]SAM_PROTO_GetFieldsCounters done [11:01:39]requested_item shift.num is exist - process it [11:01:39]requested_item shift.opened is exist - process it [11:01:39]req_shift_opened [11:01:39]FM_GetShiftState [11:01:39]SAM_PROTO_GetShiftState [11:01:39]wFMCommunicate request_size=4 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 13 01 00 [11:01:39]Write to MH i2c: E2 08 00 A6 09 80 13 01 00 00 00 00 00 2C [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 0E 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 0E 00 A6 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EF [11:01:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:01:39]wFMCommunicate OK [11:01:39]SAM_PROTO_GetShiftState done [11:01:39]FM_GetShiftState done [11:01:39]req_shift_opened done [11:01:39]requested_item shift.open_date is exist - process it [11:01:39]req_shift_open_date [11:01:39]req_shift_open_date done [11:01:39]produce_requested_data done [11:01:39]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148757,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:01:39]process_action_free close_receipt [11:01:39]json_value_free [11:01:39]json_value_free done [11:01:39]process_json_proto returns [11:01:39]Send response to host [11:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148757,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:01:39]free response buf [11:01:39]execute_script done [11:01:39]execute_script returns [11:01:39]free content buf [11:01:39]Sock 7.Close socket [11:01:39]Sock 7.Thread stoped [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:02:59]accept exits with 9 [11:02:59]New connection [11:02:59]New thread 3067235684 created [11:02:59]Thread 3067379044 joined [11:02:59]Waiting for new connection... [11:02:59] Sock 9.Parse request [11:02:59]Sock 9.Check first char [11:02:59]Sock 9.First char is OK [11:02:59]request: POST /json_proto HTTP/1.0 [11:02:59]Method: POST [11:02:59]URL: /json_proto [11:02:59]Method is POST - this is cgi request [11:02:59]url: /json_proto [11:02:59]query_string will be loaded in cgi processing [11:02:59]execute_cgi json_proto POST (null) [11:02:59]execute_cgi path=json_proto method=POST [11:02:59]POST find Content-Length [11:02:59]Host: 172.17.38.4:8080 [11:02:59]Content-Length: 791 [11:02:59]Content-Type: application/json [11:02:59] [11:02:59]POST finish read [11:02:59]Found Content-Length = 791 [11:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:59]execute_script... [11:02: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)979683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:59]POST & json_proto [11:02:59]process_json_proto [11:02:59]json parsed OK: [11:02:59]protocol is kg_v1.0 [11:02:59]action value=close_receipt [11:02:59]process_action close_receipt [11:02:59]cmd_close_receipt [11:02:59]MH_GetDate [11:02:59]Write to MH i2c: F0 00 00 A7 09 9F [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: F0 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: F0 09 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: F0 09 00 A7 09 00 63 F4 5E 66 CC 51 87 64 CB [11:02:59]GetLastDocTimeStamp 1717498895 [11:02:59]current date 1717498979 [11:02:59]FM_GetShiftState [11:02:59]SAM_PROTO_GetShiftState [11:02:59]wFMCommunicate request_size=4 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 13 01 00 [11:02:59]Write to MH i2c: E2 08 00 A8 09 80 13 01 00 00 00 00 00 2E [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 0E 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 0E 00 A8 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F1 [11:02:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:02:59]wFMCommunicate OK [11:02:59]SAM_PROTO_GetShiftState done [11:02:59]FM_GetShiftState done [11:02:59]opened in 1717460629 [11:02:59]opened+sec_in_day 1717547029 [11:02:59]quantity*price = 66900 [11:02:59]sum+1 = 66901 [11:02:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 0.00 Безнал.: 669.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 97 04.06.2024 11:02 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148758 ФПД: 194586531276301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110259&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148758&fm=194586531276301&tin=02508201610067®Number=0000000000092720&sum=66900 [11:03:00]StoreToDocumentArchive [11:03:00]shift 368 fd 148758 [11:03:00]save to /storage/0368/doc_00148758 [11:03:00]save last doc name /storage/0368/doc_00148758 to /storage/kkm_last_doc_name [11:03:00]save OK [11:03:00]Clear old archive folders... [11:03:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:00]tlvbuf is 00FDE1A0 [11:03:00]SAM_PROTO_ClearQueue [11:03:00]wFMCommunicate request_size=4 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 09 00 00 [11:03:00]Write to MH i2c: E2 08 00 B5 09 80 09 00 00 00 00 00 00 30 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 03 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [11:03:00]RAPDU: 90 00 [11:03:00]wFMCommunicate OK [11:03:00]SAM_PROTO_ClearQueue done [11:03:00]KKMCreateOFDPacket [11:03:00]OFDProtocolAddRootSTLVToBuf [11:03:00]FM_MakeSignedData [11:03:00]FM_MakeSignedData [11:03:00]SAM_PROTO_SignData [11:03:00]wFMCommunicate request_size=4 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 0D 01 02 [11:03:00]Write to MH i2c: E2 08 00 B6 09 80 0D 01 02 00 00 00 00 38 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 03 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 03 00 B6 09 00 90 00 33 [11:03:00]RAPDU: 90 00 [11:03:00]wFMCommunicate OK [11:03:00]wFMCommunicate request_size=255 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 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 61 00 00 00 F4 03 04 00 63 F4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 16 45 02 00 35 04 06 00 B0 [11:03:00]Write to MH i2c: E2 02 01 B7 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 63 F4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 16 45 02 00 35 04 06 00 B0 00 00 E5 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 03 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 03 00 B7 09 00 90 00 34 [11:03:00]RAPDU: 90 00 [11:03:00]wFMCommunicate OK [11:03:00]wFMCommunicate request_size=10 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 0D 02 02 05 F9 B5 13 26 0D [11:03:00]Write to MH i2c: E2 0D 00 B8 09 80 0D 02 02 05 00 F9 B5 13 26 0D 00 00 39 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 03 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 03 00 B8 09 00 90 00 35 [11:03:00]RAPDU: 90 00 [11:03:00]wFMCommunicate OK [11:03:00]wFMCommunicate request_size=4 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 0D 03 02 [11:03:00]Write to MH i2c: E2 08 00 B9 09 80 0D 03 02 00 00 00 00 3D [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 0B 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 0B 00 B9 09 00 A6 66 39 61 97 F4 A6 C3 90 00 D8 [11:03:00]RAPDU: A6 66 39 61 97 F4 A6 C3 90 00 [11:03:00]wFMCommunicate OK [11:03:00]SAM_PROTO_SignData done [11:03:00]FM_MakeSignedData done [11:03:00]CreateOFDProtocolMessage [11:03:00]wFMCommunicate request_size=4 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 11 00 00 [11:03:00]Write to MH i2c: E2 08 00 BA 09 80 11 00 00 00 00 00 00 3D [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 17 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 17 00 BA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 90 [11:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:03:00]wFMCommunicate OK [11:03:00]CreateOFDProtocolMessage done [11:03:00]OFDSenderStorePacket 148758 [11:03:00]StoreOFDPacket docnum=148758 [11:03:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 8C 3F 07 01 51 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 63 F4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 16 45 02 00 35 04 06 00 B0 F9 B5 13 26 0D A6 66 39 61 97 F4 A6 C3 [11:03:00]CheckFolder [11:03:00]dirname=/storage/ofd_packets [11:03:00]CheckFolder done [11:03:00]ProducePacketName [11:03:00]name=ofd_packets/00148758 [11:03:00]NVStorageSaveData ofd_packets/00148758 [11:03:00]File name is /storage/ofd_packets/00148758 [11:03:00]Write 301 bytes [11:03:00]NVStorageSaveData done [11:03:00]OFDSenderStorePacket done [11:03:00]KKMCreateOFDPacket done [11:03:00]NVStorageSaveData kkm_last_timestamp [11:03:00]File name is /storage/kkm_last_timestamp [11:03:00]Write 4 bytes [11:03:00]NVStorageSaveData done [11:03:00]ExternCall_PrintAddStr [11:03:00]wPrintStart [11:03:00]Write to MH i2c: 01 00 00 BB 09 C4 [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 BB 09 00 00 00 00 00 FF 0F D9 [11:03:00]RasterBufferAndPrint [11:03:00]line Счет N : (1)979683 [11:03:00]line ИНН: 02508201610067 [11:03:00]line Контрольно-Кассовый Чек [11:03:00]line ПРОДАЖА [11:03:00]line ТРК (МРК, ГНК) : 41 [11:03:00]line Товар: 2710124130 [11:03:00]line Аи-92-К-5 [11:03:00]line 10.000 * 66.90 [11:03:00]line = 669.00 [11:03:00]line НДС 12% НСП 1% [11:03:00]line > о реализуемом товаре [11:03:00]line ИТОГО: 669.00 [11:03:00]line НСП 1% : 5.92 [11:03:00]line НДС 12% : 71.04 [11:03:00]line Наличными: 0.00 [11:03:00]line Безнал.: 669.00 [11:03:00]line Место: АЗС № 68 "Партнер Нефть" [11:03:00]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:03:00]line СНО: Общий режим [11:03:00]line Чек 97 04.06.2024 11:02 [11:03:00]line Смена: 368 ФФД: 1.0 [11:03:00]line ЗНМ: 0300000035 [11:03:00]line РНМ: 0000000000092720 [11:03:00]line Версия ККМ: 001 [11:03:00]line Платежная система: KICB Банк [11:03:00]line ФМ: 0000000000875057 [11:03:00]line ФД: 148758 [11:03:00]line ФПД: 194586531276301 [11:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110259&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148758&fm=194586531276301&tin=02508201610067®Number=0000000000092720&sum=66900 [11:03:01]OFD Sender: Processing packet 148758 [packets to send 100, broken 99] [11:03:01]ProducePacketName [11:03:01]name=ofd_packets/00148758 [11:03:01]OFD Sender: To server: pG, [11:03:01]CommunicateWithHost lk.salyk.kg:30040 [11:03:01]ConnectInit lk.salyk.kg [11:03:01]written 0, free lines is 4095 [11:03:01]Connected sock=10 [11:03:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 8C 3F 07 01 51 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 63 F4 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 16 45 02 00 35 04 06 00 B0 F9 B5 13 26 0D A6 66 39 61 97 F4 A6 C3 [11:03:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 42 9E 47 00 44 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 38 37 35 30 35 37 10 04 04 00 16 45 02 00 F4 03 04 00 87 9B 5E 66 B6 04 01 00 00 E4 C6 AD B4 2B 10 1B 12 [11:03:01]CommunicateWithHost err = 0 [11:03:01]CheckOFDResponse [11:03:01]1017 (14) - 77093643461234 [11:03:01]1041 (16) - 0000000000875057 [11:03:01]1040 (4) - 148758 [11:03:01]1012 (4) - 04.06.2024 04:43 [11:03:01]1206 (1) - 0 [11:03:01]OFD Sender: Remove packet 148758 [11:03:01]ProducePacketName [11:03:01]name=ofd_packets/00148758 [11:03:01]NVStorageDeleteData [11:03:01]Write to MH i2c: 01 00 00 E5 09 EE [11:03:01]Write i2c OK [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: 01 [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: 01 07 00 [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: 01 07 00 E5 09 00 00 00 00 00 7A 0C 7B [11:03:01]RasterBufferAndPrint [11:03:01]line [11:03:01]line [11:03:01]line [11:03:01]line [11:03:01]line [11:03:01]written 0, free lines is 3198 [11:03:01]MH_Cut [11:03:01]Write to MH i2c: D1 01 00 EC 09 01 C7 [11:03:01]Write i2c OK [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: D1 [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: D1 01 00 [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: D1 01 00 EC 09 00 C6 [11:03:01]Write to MH i2c: 01 00 00 ED 09 F6 [11:03:01]Write i2c OK [11:03:01]MH_I2C_Read... [11:03:02]OFD Sender: No OFD packet to send [11:03:02]*** Cut start [11:03:02]*** Partial cut [11:03:02]*** CUTSNS_PIN = 1 [11:03:03]*** CUTSNS_PIN = 0 [11:03:03]*** Brake cut motor [11:03:03]Read from MH i2c: 01 [11:03:03]MH_I2C_Read... [11:03:03]*** Stop cut motor [11:03:03]*** Cut end [11:03:03]Read from MH i2c: 01 07 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 FF 0F 0B [11:03:03]process_action close_receipt done [11:03:03]requested_data is exist [11:03:03]produce_requested_data [11:03:03]requested_item fm.sn is exist - process it [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 11 00 00 [11:03:03]Write to MH i2c: E2 08 00 EE 09 80 11 00 00 00 00 00 00 71 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 17 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 17 00 EE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C4 [11:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:03:03]wFMCommunicate OK [11:03:03]requested_item fd.num is exist - process it [11:03:03]SAM_PROTO_GetFieldsCounters [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 13 00 00 [11:03:03]Write to MH i2c: E2 08 00 EF 09 80 13 00 00 00 00 00 00 74 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 62 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 62 00 EF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 16 45 02 00 0E 04 04 00 70 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 81 [11:03:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 16 45 02 00 0E 04 04 00 70 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 [11:03:03]wFMCommunicate OK [11:03:03]SAM_PROTO_GetFieldsCounters done [11:03:03]requested_item shift.num is exist - process it [11:03:03]requested_item shift.opened is exist - process it [11:03:03]req_shift_opened [11:03:03]FM_GetShiftState [11:03:03]SAM_PROTO_GetShiftState [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 13 01 00 [11:03:03]Write to MH i2c: E2 08 00 F0 09 80 13 01 00 00 00 00 00 76 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 0E 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 0E 00 F0 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 39 [11:03:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:03:03]wFMCommunicate OK [11:03:03]SAM_PROTO_GetShiftState done [11:03:03]FM_GetShiftState done [11:03:03]req_shift_opened done [11:03:03]requested_item shift.open_date is exist - process it [11:03:03]req_shift_open_date [11:03:03]req_shift_open_date done [11:03:03]produce_requested_data done [11:03:03]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148758,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:03:03]process_action_free close_receipt [11:03:03]json_value_free [11:03:03]json_value_free done [11:03:03]process_json_proto returns [11:03:03]Send response to host [11:03:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148758,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:03:03]free response buf [11:03:03]execute_script done [11:03:03]execute_script returns [11:03:03]free content buf [11:03:03]Sock 9.Close socket [11:03:03]Sock 9.Thread stoped [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:56]accept exits with 7 [11:05:56]New connection [11:05:56]New thread 3067379044 created [11:05:56]Thread 3067235684 joined [11:05:56]Waiting for new connection... [11:05:56] Sock 7.Parse request [11:05:56]Sock 7.Check first char [11:05:56]Sock 7.First char is OK [11:05:56]request: POST /json_proto HTTP/1.0 [11:05:56]Method: POST [11:05:56]URL: /json_proto [11:05:56]Method is POST - this is cgi request [11:05:56]url: /json_proto [11:05:56]query_string will be loaded in cgi processing [11:05:56]execute_cgi json_proto POST (null) [11:05:56]execute_cgi path=json_proto method=POST [11:05:56]POST find Content-Length [11:05:56]Host: 172.17.38.4:8080 [11:05:56]Content-Length: 796 [11:05:56]Content-Type: application/json [11:05:56] [11:05:56]POST finish read [11:05:56]Found Content-Length = 796 [11:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [11:05:56]execute_script... [11:05:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [11:05:56]POST & json_proto [11:05:56]process_json_proto [11:05:56]json parsed OK: [11:05:56]protocol is kg_v1.0 [11:05:56]action value=close_receipt [11:05:56]process_action close_receipt [11:05:56]cmd_close_receipt [11:05:56]MH_GetDate [11:05:56]Write to MH i2c: F0 00 00 F1 09 E9 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: F0 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: F0 09 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: F0 09 00 F1 09 00 15 F5 5E 66 CC 51 87 64 C8 [11:05:56]GetLastDocTimeStamp 1717498979 [11:05:56]current date 1717499157 [11:05:56]FM_GetShiftState [11:05:56]SAM_PROTO_GetShiftState [11:05:56]wFMCommunicate request_size=4 [11:05:56]MH_SAM_APDU [11:05:56]CAPDU: 80 13 01 00 [11:05:56]Write to MH i2c: E2 08 00 F2 09 80 13 01 00 00 00 00 00 78 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:56]Read from MH i2c: E2 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 0E 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 0E 00 F2 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3B [11:05:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:05:56]wFMCommunicate OK [11:05:56]SAM_PROTO_GetShiftState done [11:05:56]FM_GetShiftState done [11:05:56]opened in 1717460629 [11:05:56]opened+sec_in_day 1717547029 [11:05:56]quantity*price = 100016 [11:05:56]sum+1 = 100018 [11:05:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.17 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.17 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 98 04.06.2024 11:05 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148759 ФПД: 149123621687388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110557&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148759&fm=149123621687388&tin=02508201610067®Number=0000000000092720&sum=100017 [11:05:58]StoreToDocumentArchive [11:05:58]shift 368 fd 148759 [11:05:58]save to /storage/0368/doc_00148759 [11:05:58]save last doc name /storage/0368/doc_00148759 to /storage/kkm_last_doc_name [11:05:58]save OK [11:05:58]Clear old archive folders... [11:05:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:05:58]tlvbuf is 00EF1300 [11:05:58]SAM_PROTO_ClearQueue [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 09 00 00 [11:05:58]Write to MH i2c: E2 08 00 FF 09 80 09 00 00 00 00 00 00 7A [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [11:05:58]RAPDU: 90 00 [11:05:58]wFMCommunicate OK [11:05:58]SAM_PROTO_ClearQueue done [11:05:58]KKMCreateOFDPacket [11:05:58]OFDProtocolAddRootSTLVToBuf [11:05:58]FM_MakeSignedData [11:05:58]FM_MakeSignedData [11:05:58]SAM_PROTO_SignData [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 0D 01 02 [11:05:58]Write to MH i2c: E2 08 00 00 0A 80 0D 01 02 00 00 00 00 83 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [11:05:58]RAPDU: 90 00 [11:05:58]wFMCommunicate OK [11:05:58]wFMCommunicate request_size=255 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 62 00 00 00 F4 03 04 00 15 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 17 45 02 00 35 04 06 00 [11:05:58]Write to MH i2c: E2 02 01 01 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 62 00 00 00 F4 03 04 00 15 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 17 45 02 00 35 04 06 00 00 00 4D [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 01 0A 00 90 00 7F [11:05:58]RAPDU: 90 00 [11:05:58]wFMCommunicate OK [11:05:58]wFMCommunicate request_size=11 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 0D 02 02 06 87 A0 8C 7F 90 5C [11:05:58]Write to MH i2c: E2 0E 00 02 0A 80 0D 02 02 06 00 87 A0 8C 7F 90 5C 00 00 B0 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 02 0A 00 90 00 80 [11:05:58]RAPDU: 90 00 [11:05:58]wFMCommunicate OK [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 0D 03 02 [11:05:58]Write to MH i2c: E2 08 00 03 0A 80 0D 03 02 00 00 00 00 88 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 0B 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 0B 00 03 0A 00 12 2B AC E7 80 A9 96 84 90 00 9C [11:05:58]RAPDU: 12 2B AC E7 80 A9 96 84 90 00 [11:05:58]wFMCommunicate OK [11:05:58]SAM_PROTO_SignData done [11:05:58]FM_MakeSignedData done [11:05:58]CreateOFDProtocolMessage [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 11 00 00 [11:05:58]Write to MH i2c: E2 08 00 04 0A 80 11 00 00 00 00 00 00 88 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 17 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 17 00 04 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DB [11:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:05:58]wFMCommunicate OK [11:05:58]CreateOFDProtocolMessage done [11:05:58]OFDSenderStorePacket 148759 [11:05:58]StoreOFDPacket docnum=148759 [11:05:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 B9 5D 08 01 8A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 62 00 00 00 F4 03 04 00 15 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 17 45 02 00 35 04 06 00 87 A0 8C 7F 90 5C 12 2B AC E7 80 A9 96 84 [11:05:58]CheckFolder [11:05:58]dirname=/storage/ofd_packets [11:05:58]CheckFolder done [11:05:58]ProducePacketName [11:05:58]name=ofd_packets/00148759 [11:05:58]NVStorageSaveData ofd_packets/00148759 [11:05:58]File name is /storage/ofd_packets/00148759 [11:05:58]Write 302 bytes [11:05:58]NVStorageSaveData done [11:05:58]OFDSenderStorePacket done [11:05:58]KKMCreateOFDPacket done [11:05:58]NVStorageSaveData kkm_last_timestamp [11:05:58]File name is /storage/kkm_last_timestamp [11:05:58]Write 4 bytes [11:05:58]NVStorageSaveData done [11:05:58]ExternCall_PrintAddStr [11:05:58]wPrintStart [11:05:58]Write to MH i2c: 01 00 00 05 0A 0F [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: 01 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: 01 07 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: 01 07 00 05 0A 00 00 00 00 00 FF 0F 24 [11:05:58]RasterBufferAndPrint [11:05:58]line Счет N : (1)979686 [11:05:58]line ИНН: 02508201610067 [11:05:58]line Контрольно-Кассовый Чек [11:05:58]line ПРОДАЖА [11:05:58]line ТРК (МРК, ГНК) : 33 [11:05:58]line Товар: 2710124130 [11:05:58]line SUPER 92-К-5 [11:05:58]line 14.730 * 67.90 [11:05:58]line = 1000.17 [11:05:58]line НДС 12% НСП 1% [11:05:58]line > о реализуемом товаре [11:05:58]line ИТОГО: 1000.17 [11:05:58]line НСП 1% : 8.85 [11:05:58]line НДС 12% : 106.21 [11:05:58]line Наличными: 0.00 [11:05:58]line Безнал.: 1000.17 [11:05:58]line Место: АЗС № 68 "Партнер Нефть" [11:05:58]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:05:58]line СНО: Общий режим [11:05:58]line Чек 98 04.06.2024 11:05 [11:05:58]line Смена: 368 ФФД: 1.0 [11:05:58]line ЗНМ: 0300000035 [11:05:58]line РНМ: 0000000000092720 [11:05:58]line Версия ККМ: 001 [11:05:58]line Платежная система: O! деньги [11:05:58]line ФМ: 0000000000875057 [11:05:58]line ФД: 148759 [11:05:58]line ФПД: 149123621687388 [11:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110557&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148759&fm=149123621687388&tin=02508201610067®Number=0000000000092720&sum=100017 [11:05:58]OFD Sender: Processing packet 148759 [packets to send 100, broken 99] [11:05:58]ProducePacketName [11:05:58]name=ofd_packets/00148759 [11:05:58]OFD Sender: To server: pG, [11:05:58]CommunicateWithHost lk.salyk.kg:30040 [11:05:58]ConnectInit lk.salyk.kg [11:05:58]written 0, free lines is 4095 [11:05:58]Connected sock=10 [11:05:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 B9 5D 08 01 8A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 62 00 00 00 F4 03 04 00 15 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 17 45 02 00 35 04 06 00 87 A0 8C 7F 90 5C 12 2B AC E7 80 A9 96 84 [11:05:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 66 FD 47 00 08 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 38 37 35 30 35 37 10 04 04 00 17 45 02 00 F4 03 04 00 39 9C 5E 66 B6 04 01 00 00 5A 33 6E 1E 8B ED 54 0D [11:05:58]CommunicateWithHost err = 0 [11:05:58]CheckOFDResponse [11:05:58]1017 (14) - 77093643461234 [11:05:58]1041 (16) - 0000000000875057 [11:05:58]1040 (4) - 148759 [11:05:58]1012 (4) - 04.06.2024 04:46 [11:05:58]1206 (1) - 0 [11:05:58]OFD Sender: Remove packet 148759 [11:05:58]ProducePacketName [11:05:58]name=ofd_packets/00148759 [11:05:58]NVStorageDeleteData [11:05:59]Write to MH i2c: 01 00 00 2F 0A 39 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 84 0C D0 [11:05:59]RasterBufferAndPrint [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]written 0, free lines is 3209 [11:05:59]MH_Cut [11:05:59]Write to MH i2c: D1 01 00 36 0A 01 12 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 01 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 01 00 36 0A 00 11 [11:05:59]Write to MH i2c: 01 00 00 37 0A 41 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]OFD Sender: No OFD packet to send [11:06:00]*** Cut start [11:06:00]*** Partial cut [11:06:00]*** CUTSNS_PIN = 1 [11:06:00]*** CUTSNS_PIN = 0 [11:06:00]*** Brake cut motor [11:06:00]Read from MH i2c: 01 [11:06:00]MH_I2C_Read... [11:06:00]*** Stop cut motor [11:06:00]*** Cut end [11:06:00]Read from MH i2c: 01 07 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 37 0A 00 00 00 00 00 FF 0F 56 [11:06:00]process_action close_receipt done [11:06:00]requested_data is exist [11:06:00]produce_requested_data [11:06:00]requested_item fm.sn is exist - process it [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 11 00 00 [11:06:00]Write to MH i2c: E2 08 00 38 0A 80 11 00 00 00 00 00 00 BC [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 17 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 17 00 38 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0F [11:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:06:01]wFMCommunicate OK [11:06:01]requested_item fd.num is exist - process it [11:06:01]SAM_PROTO_GetFieldsCounters [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 13 00 00 [11:06:01]Write to MH i2c: E2 08 00 39 0A 80 13 00 00 00 00 00 00 BF [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 62 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 62 00 39 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 17 45 02 00 0E 04 04 00 70 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 D0 [11:06:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 17 45 02 00 0E 04 04 00 70 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 [11:06:01]wFMCommunicate OK [11:06:01]SAM_PROTO_GetFieldsCounters done [11:06:01]requested_item shift.num is exist - process it [11:06:01]requested_item shift.opened is exist - process it [11:06:01]req_shift_opened [11:06:01]FM_GetShiftState [11:06:01]SAM_PROTO_GetShiftState [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 13 01 00 [11:06:01]Write to MH i2c: E2 08 00 3A 0A 80 13 01 00 00 00 00 00 C1 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 0E 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 0E 00 3A 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 84 [11:06:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:06:01]wFMCommunicate OK [11:06:01]SAM_PROTO_GetShiftState done [11:06:01]FM_GetShiftState done [11:06:01]req_shift_opened done [11:06:01]requested_item shift.open_date is exist - process it [11:06:01]req_shift_open_date [11:06:01]req_shift_open_date done [11:06:01]produce_requested_data done [11:06:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148759,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:06:01]process_action_free close_receipt [11:06:01]json_value_free [11:06:01]json_value_free done [11:06:01]process_json_proto returns [11:06:01]Send response to host [11:06:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148759,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:06:01]free response buf [11:06:01]execute_script done [11:06:01]execute_script returns [11:06:01]free content buf [11:06:01]Sock 7.Close socket [11:06:01]Sock 7.Thread stoped [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:11]accept exits with 9 [11:06:11]New connection [11:06:11]New thread 3067235684 created [11:06:11]Thread 3067379044 joined [11:06:11]Waiting for new connection... [11:06:11] Sock 9.Parse request [11:06:11]Sock 9.Check first char [11:06:11]Sock 9.First char is OK [11:06:11]request: POST /json_proto HTTP/1.0 [11:06:11]Method: POST [11:06:11]URL: /json_proto [11:06:11]Method is POST - this is cgi request [11:06:11]url: /json_proto [11:06:11]query_string will be loaded in cgi processing [11:06:11]execute_cgi json_proto POST (null) [11:06:11]execute_cgi path=json_proto method=POST [11:06:11]POST find Content-Length [11:06:11]Host: 172.17.38.4:8080 [11:06:11]Content-Length: 790 [11:06:11]Content-Type: application/json [11:06:11] [11:06:11]POST finish read [11:06:11]Found Content-Length = 790 [11:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:11]execute_script... [11:06:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:11]POST & json_proto [11:06:11]process_json_proto [11:06:11]json parsed OK: [11:06:11]protocol is kg_v1.0 [11:06:11]action value=close_receipt [11:06:11]process_action close_receipt [11:06:11]cmd_close_receipt [11:06:11]MH_GetDate [11:06:11]Write to MH i2c: F0 00 00 3B 0A 34 [11:06:11]Write i2c OK [11:06:11]MH_I2C_Read... [11:06:11]Read from MH i2c: F0 [11:06:11]MH_I2C_Read... [11:06:11]Read from MH i2c: F0 09 00 [11:06:11]MH_I2C_Read... [11:06:11]Read from MH i2c: F0 09 00 3B 0A 00 23 F5 5E 66 CC 51 87 64 21 [11:06:11]GetLastDocTimeStamp 1717499157 [11:06:11]current date 1717499171 [11:06:11]FM_GetShiftState [11:06:11]SAM_PROTO_GetShiftState [11:06:11]wFMCommunicate request_size=4 [11:06:11]MH_SAM_APDU [11:06:11]CAPDU: 80 13 01 00 [11:06:11]Write to MH i2c: E2 08 00 3C 0A 80 13 01 00 00 00 00 00 C3 [11:06:11]Write i2c OK [11:06:11]MH_I2C_Read... [11:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:11]Read from MH i2c: E2 [11:06:11]MH_I2C_Read... [11:06:11]Read from MH i2c: E2 0E 00 [11:06:11]MH_I2C_Read... [11:06:11]Read from MH i2c: E2 0E 00 3C 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 86 [11:06:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:06:11]wFMCommunicate OK [11:06:11]SAM_PROTO_GetShiftState done [11:06:11]FM_GetShiftState done [11:06:11]opened in 1717460629 [11:06:11]opened+sec_in_day 1717547029 [11:06:11]quantity*price = 20003 [11:06:11]sum+1 = 20004 [11:06:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 99 04.06.2024 11:06 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148760 ФПД: 211627595959358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110611&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148760&fm=211627595959358&tin=02508201610067®Number=0000000000092720&sum=20003 [11:06:12]StoreToDocumentArchive [11:06:12]shift 368 fd 148760 [11:06:12]save to /storage/0368/doc_00148760 [11:06:12]save last doc name /storage/0368/doc_00148760 to /storage/kkm_last_doc_name [11:06:12]save OK [11:06:12]Clear old archive folders... [11:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:12]tlvbuf is 00FD9C20 [11:06:12]SAM_PROTO_ClearQueue [11:06:12]wFMCommunicate request_size=4 [11:06:12]MH_SAM_APDU [11:06:12]CAPDU: 80 09 00 00 [11:06:12]Write to MH i2c: E2 08 00 49 0A 80 09 00 00 00 00 00 00 C5 [11:06:12]Write i2c OK [11:06:12]MH_I2C_Read... [11:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:12]Read from MH i2c: E2 [11:06:12]MH_I2C_Read... [11:06:12]Read from MH i2c: E2 03 00 [11:06:12]MH_I2C_Read... [11:06:12]Read from MH i2c: E2 03 00 49 0A 00 90 00 C7 [11:06:12]RAPDU: 90 00 [11:06:12]wFMCommunicate OK [11:06:12]SAM_PROTO_ClearQueue done [11:06:12]KKMCreateOFDPacket [11:06:12]OFDProtocolAddRootSTLVToBuf [11:06:12]FM_MakeSignedData [11:06:12]FM_MakeSignedData [11:06:12]SAM_PROTO_SignData [11:06:12]wFMCommunicate request_size=4 [11:06:12]MH_SAM_APDU [11:06:12]CAPDU: 80 0D 01 02 [11:06:12]Write to MH i2c: E2 08 00 4A 0A 80 0D 01 02 00 00 00 00 CD [11:06:12]Write i2c OK [11:06:12]MH_I2C_Read... [11:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:12]Read from MH i2c: E2 [11:06:12]MH_I2C_Read... [11:06:12]Read from MH i2c: E2 03 00 [11:06:12]MH_I2C_Read... [11:06:12]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [11:06:12]RAPDU: 90 00 [11:06:12]wFMCommunicate OK [11:06:12]wFMCommunicate request_size=255 [11:06:12]MH_SAM_APDU [11:06:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 63 00 00 00 F4 03 04 00 23 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 18 45 02 00 35 04 06 00 C0 [11:06:12]Write to MH i2c: E2 02 01 4B 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 63 00 00 00 F4 03 04 00 23 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 18 45 02 00 35 04 06 00 C0 00 00 EE [11:06:12]Write i2c OK [11:06:12]MH_I2C_Read... [11:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:12]Read from MH i2c: E2 [11:06:12]MH_I2C_Read... [11:06:12]Read from MH i2c: E2 03 00 [11:06:12]MH_I2C_Read... [11:06:12]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [11:06:12]RAPDU: 90 00 [11:06:12]wFMCommunicate OK [11:06:12]wFMCommunicate request_size=10 [11:06:12]MH_SAM_APDU [11:06:12]CAPDU: 80 0D 02 02 05 79 63 AE 8C 3E [11:06:12]Write to MH i2c: E2 0D 00 4C 0A 80 0D 02 02 05 00 79 63 AE 8C 3E 00 00 2E [11:06:12]Write i2c OK [11:06:12]MH_I2C_Read... [11:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:12]Read from MH i2c: E2 [11:06:12]MH_I2C_Read... [11:06:12]Read from MH i2c: E2 03 00 [11:06:12]MH_I2C_Read... [11:06:12]Read from MH i2c: E2 03 00 4C 0A 00 90 00 CA [11:06:12]RAPDU: 90 00 [11:06:12]wFMCommunicate OK [11:06:12]wFMCommunicate request_size=4 [11:06:12]MH_SAM_APDU [11:06:12]CAPDU: 80 0D 03 02 [11:06:12]Write to MH i2c: E2 08 00 4D 0A 80 0D 03 02 00 00 00 00 D2 [11:06:12]Write i2c OK [11:06:12]MH_I2C_Read... [11:06:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:13]Read from MH i2c: E2 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: E2 0B 00 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: E2 0B 00 4D 0A 00 DE 6C 34 4B 9F 50 3E 66 90 00 2F [11:06:13]RAPDU: DE 6C 34 4B 9F 50 3E 66 90 00 [11:06:13]wFMCommunicate OK [11:06:13]SAM_PROTO_SignData done [11:06:13]FM_MakeSignedData done [11:06:13]CreateOFDProtocolMessage [11:06:13]wFMCommunicate request_size=4 [11:06:13]MH_SAM_APDU [11:06:13]CAPDU: 80 11 00 00 [11:06:13]Write to MH i2c: E2 08 00 4E 0A 80 11 00 00 00 00 00 00 D2 [11:06:13]Write i2c OK [11:06:13]MH_I2C_Read... [11:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:13]Read from MH i2c: E2 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: E2 17 00 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: E2 17 00 4E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 25 [11:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:06:13]wFMCommunicate OK [11:06:13]CreateOFDProtocolMessage done [11:06:13]OFDSenderStorePacket 148760 [11:06:13]StoreOFDPacket docnum=148760 [11:06:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 52 90 07 01 39 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 23 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 18 45 02 00 35 04 06 00 C0 79 63 AE 8C 3E DE 6C 34 4B 9F 50 3E 66 [11:06:13]CheckFolder [11:06:13]dirname=/storage/ofd_packets [11:06:13]CheckFolder done [11:06:13]ProducePacketName [11:06:13]name=ofd_packets/00148760 [11:06:13]NVStorageSaveData ofd_packets/00148760 [11:06:13]File name is /storage/ofd_packets/00148760 [11:06:13]Write 301 bytes [11:06:13]NVStorageSaveData done [11:06:13]OFDSenderStorePacket done [11:06:13]KKMCreateOFDPacket done [11:06:13]NVStorageSaveData kkm_last_timestamp [11:06:13]File name is /storage/kkm_last_timestamp [11:06:13]OFD Sender: Processing packet 148760 [packets to send 100, broken 99] [11:06:13]ProducePacketName [11:06:13]name=ofd_packets/00148760 [11:06:13]OFD Sender: To server: pG, [11:06:13]CommunicateWithHost lk.salyk.kg:30040 [11:06:13]ConnectInit lk.salyk.kg [11:06:13]Write 4 bytes [11:06:13]NVStorageSaveData done [11:06:13]ExternCall_PrintAddStr [11:06:13]wPrintStart [11:06:13]Write to MH i2c: 01 00 00 4F 0A 59 [11:06:13]Write i2c OK [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: 01 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: 01 07 00 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: 01 07 00 4F 0A 00 00 00 00 00 FF 0F 6E [11:06:13]RasterBufferAndPrint [11:06:13]line Счет N : (1)979687 [11:06:13]line ИНН: 02508201610067 [11:06:13]line Контрольно-Кассовый Чек [11:06:13]line ПРОДАЖА [11:06:13]line ТРК (МРК, ГНК) : 22 [11:06:13]line Товар: 2710124130 [11:06:13]line Аи-92-К-5 [11:06:13]line 2.990 * 66.90 [11:06:13]line = 200.03 [11:06:13]line НДС 12% НСП 1% [11:06:13]line > о реализуемом товаре [11:06:13]line ИТОГО: 200.03 [11:06:13]line НСП 1% : 1.77 [11:06:13]line НДС 12% : 21.24 [11:06:13]line Наличными: 0.00 [11:06:13]line Безнал.: 200.03 [11:06:13]line Место: АЗС № 68 "Партнер Нефть" [11:06:13]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:06:13]line СНО: Общий режим [11:06:13]line Чек 99 04.06.2024 11:06 [11:06:13]line Смена: 368 ФФД: 1.0 [11:06:13]line ЗНМ: 0300000035 [11:06:13]line РНМ: 0000000000092720 [11:06:13]line Версия ККМ: 001 [11:06:13]line Платежная система: KICB Банк [11:06:13]line ФМ: 0000000000875057 [11:06:13]line ФД: 148760 [11:06:13]line ФПД: 211627595959358 [11:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110611&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148760&fm=211627595959358&tin=02508201610067®Number=0000000000092720&sum=20003 [11:06:13]Connected sock=11 [11:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 written 0, free lines is 4095 [11:06:13]37 0F 01 00 00 52 90 07 01 39 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 23 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 18 45 02 00 35 04 06 00 C0 79 63 AE 8C 3E DE 6C 34 4B 9F 50 3E 66 [11:06:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 69 3D 47 00 8D 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 38 37 35 30 35 37 10 04 04 00 18 45 02 00 F4 03 04 00 47 9C 5E 66 B6 04 01 00 00 7F 11 BD 44 FE E4 A7 04 [11:06:13]CommunicateWithHost err = 0 [11:06:13]CheckOFDResponse [11:06:13]1017 (14) - 77093643461234 [11:06:13]1041 (16) - 0000000000875057 [11:06:13]1040 (4) - 148760 [11:06:13]1012 (4) - 04.06.2024 04:47 [11:06:13]1206 (1) - 0 [11:06:13]OFD Sender: Remove packet 148760 [11:06:13]ProducePacketName [11:06:13]name=ofd_packets/00148760 [11:06:13]NVStorageDeleteData [11:06:13]Write to MH i2c: 01 00 00 79 0A 83 [11:06:13]Write i2c OK [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: 01 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: 01 07 00 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 79 0C 0F [11:06:13]RasterBufferAndPrint [11:06:13]line [11:06:13]line [11:06:13]line [11:06:13]line [11:06:13]line [11:06:13]written 0, free lines is 3198 [11:06:13]MH_Cut [11:06:13]Write to MH i2c: D1 01 00 80 0A 01 5C [11:06:13]Write i2c OK [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: D1 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: D1 01 00 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: D1 01 00 80 0A 00 5B [11:06:13]Write to MH i2c: 01 00 00 81 0A 8B [11:06:13]Write i2c OK [11:06:13]MH_I2C_Read... [11:06:14]OFD Sender: No OFD packet to send [11:06:15]*** Cut start [11:06:15]*** Partial cut [11:06:15]*** CUTSNS_PIN = 1 [11:06:15]*** CUTSNS_PIN = 0 [11:06:15]*** Brake cut motor [11:06:15]Read from MH i2c: 01 [11:06:15]MH_I2C_Read... [11:06:15]*** Stop cut motor [11:06:15]*** Cut end [11:06:15]Read from MH i2c: 01 07 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 07 00 81 0A 00 00 00 00 00 FF 0F A0 [11:06:15]process_action close_receipt done [11:06:15]requested_data is exist [11:06:15]produce_requested_data [11:06:15]requested_item fm.sn is exist - process it [11:06:15]wFMCommunicate request_size=4 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 11 00 00 [11:06:15]Write to MH i2c: E2 08 00 82 0A 80 11 00 00 00 00 00 00 06 [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 17 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 17 00 82 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 59 [11:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:06:15]wFMCommunicate OK [11:06:15]requested_item fd.num is exist - process it [11:06:15]SAM_PROTO_GetFieldsCounters [11:06:15]wFMCommunicate request_size=4 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 13 00 00 [11:06:15]Write to MH i2c: E2 08 00 83 0A 80 13 00 00 00 00 00 00 09 [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 62 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 62 00 83 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 18 45 02 00 0E 04 04 00 70 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 1E [11:06:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 18 45 02 00 0E 04 04 00 70 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 [11:06:15]wFMCommunicate OK [11:06:15]SAM_PROTO_GetFieldsCounters done [11:06:15]requested_item shift.num is exist - process it [11:06:15]requested_item shift.opened is exist - process it [11:06:15]req_shift_opened [11:06:15]FM_GetShiftState [11:06:15]SAM_PROTO_GetShiftState [11:06:15]wFMCommunicate request_size=4 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 13 01 00 [11:06:15]Write to MH i2c: E2 08 00 84 0A 80 13 01 00 00 00 00 00 0B [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:16]Read from MH i2c: E2 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 0E 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 0E 00 84 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CE [11:06:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:06:16]wFMCommunicate OK [11:06:16]SAM_PROTO_GetShiftState done [11:06:16]FM_GetShiftState done [11:06:16]req_shift_opened done [11:06:16]requested_item shift.open_date is exist - process it [11:06:16]req_shift_open_date [11:06:16]req_shift_open_date done [11:06:16]produce_requested_data done [11:06:16]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148760,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:06:16]process_action_free close_receipt [11:06:16]json_value_free [11:06:16]json_value_free done [11:06:16]process_json_proto returns [11:06:16]Send response to host [11:06:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148760,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:06:16]free response buf [11:06:16]execute_script done [11:06:16]execute_script returns [11:06:16]free content buf [11:06:16]Sock 9.Close socket [11:06:16]Sock 9.Thread stoped [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:26]accept exits with 7 [11:06:26]New connection [11:06:26]New thread 3067379044 created [11:06:26]Thread 3067235684 joined [11:06:26]Waiting for new connection... [11:06:26] Sock 7.Parse request [11:06:26]Sock 7.Check first char [11:06:26]Sock 7.First char is OK [11:06:26]request: POST /json_proto HTTP/1.0 [11:06:26]Method: POST [11:06:26]URL: /json_proto [11:06:26]Method is POST - this is cgi request [11:06:26]url: /json_proto [11:06:26]query_string will be loaded in cgi processing [11:06:26]execute_cgi json_proto POST (null) [11:06:26]execute_cgi path=json_proto method=POST [11:06:26]POST find Content-Length [11:06:26]Host: 172.17.38.4:8080 [11:06:26]Content-Length: 791 [11:06:26]Content-Type: application/json [11:06:26] [11:06:26]POST finish read [11:06:26]Found Content-Length = 791 [11:06:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:26]execute_script... [11:06: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)979685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:26]POST & json_proto [11:06:26]process_json_proto [11:06:26]json parsed OK: [11:06:26]protocol is kg_v1.0 [11:06:26]action value=close_receipt [11:06:26]process_action close_receipt [11:06:26]cmd_close_receipt [11:06:26]MH_GetDate [11:06:26]Write to MH i2c: F0 00 00 85 0A 7E [11:06:26]Write i2c OK [11:06:26]MH_I2C_Read... [11:06:26]Read from MH i2c: F0 [11:06:26]MH_I2C_Read... [11:06:26]Read from MH i2c: F0 09 00 [11:06:26]MH_I2C_Read... [11:06:26]Read from MH i2c: F0 09 00 85 0A 00 32 F5 5E 66 CC 51 87 64 7A [11:06:26]GetLastDocTimeStamp 1717499171 [11:06:26]current date 1717499186 [11:06:26]FM_GetShiftState [11:06:26]SAM_PROTO_GetShiftState [11:06:26]wFMCommunicate request_size=4 [11:06:26]MH_SAM_APDU [11:06:26]CAPDU: 80 13 01 00 [11:06:26]Write to MH i2c: E2 08 00 86 0A 80 13 01 00 00 00 00 00 0D [11:06:26]Write i2c OK [11:06:26]MH_I2C_Read... [11:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:26]Read from MH i2c: E2 [11:06:26]MH_I2C_Read... [11:06:26]Read from MH i2c: E2 0E 00 [11:06:26]MH_I2C_Read... [11:06:26]Read from MH i2c: E2 0E 00 86 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D0 [11:06:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:06:26]wFMCommunicate OK [11:06:26]SAM_PROTO_GetShiftState done [11:06:26]FM_GetShiftState done [11:06:26]opened in 1717460629 [11:06:26]opened+sec_in_day 1717547029 [11:06:26]quantity*price = 66900 [11:06:26]sum+1 = 66901 [11:06:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 0.00 Безнал.: 669.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 100 04.06.2024 11:06 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148761 ФПД: 111017773227338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110626&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148761&fm=111017773227338&tin=02508201610067®Number=0000000000092720&sum=66900 [11:06:27]StoreToDocumentArchive [11:06:27]shift 368 fd 148761 [11:06:27]save to /storage/0368/doc_00148761 [11:06:27]save last doc name /storage/0368/doc_00148761 to /storage/kkm_last_doc_name [11:06:27]save OK [11:06:27]Clear old archive folders... [11:06:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:27]tlvbuf is 00F0AAA0 [11:06:27]SAM_PROTO_ClearQueue [11:06:27]wFMCommunicate request_size=4 [11:06:27]MH_SAM_APDU [11:06:27]CAPDU: 80 09 00 00 [11:06:27]Write to MH i2c: E2 08 00 93 0A 80 09 00 00 00 00 00 00 0F [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 93 0A 00 90 00 11 [11:06:27]RAPDU: 90 00 [11:06:27]wFMCommunicate OK [11:06:27]SAM_PROTO_ClearQueue done [11:06:27]KKMCreateOFDPacket [11:06:27]OFDProtocolAddRootSTLVToBuf [11:06:27]FM_MakeSignedData [11:06:27]FM_MakeSignedData [11:06:27]SAM_PROTO_SignData [11:06:27]wFMCommunicate request_size=4 [11:06:27]MH_SAM_APDU [11:06:27]CAPDU: 80 0D 01 02 [11:06:27]Write to MH i2c: E2 08 00 94 0A 80 0D 01 02 00 00 00 00 17 [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 94 0A 00 90 00 12 [11:06:27]RAPDU: 90 00 [11:06:27]wFMCommunicate OK [11:06:27]wFMCommunicate request_size=255 [11:06:27]MH_SAM_APDU [11:06:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 32 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 19 45 02 00 35 04 06 00 64 [11:06:27]Write to MH i2c: E2 02 01 95 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 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 64 00 00 00 F4 03 04 00 32 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 19 45 02 00 35 04 06 00 64 00 00 4E [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 95 0A 00 90 00 13 [11:06:27]RAPDU: 90 00 [11:06:27]wFMCommunicate OK [11:06:27]wFMCommunicate request_size=10 [11:06:27]MH_SAM_APDU [11:06:27]CAPDU: 80 0D 02 02 05 F8 56 EF DD 4A [11:06:27]Write to MH i2c: E2 0D 00 96 0A 80 0D 02 02 05 00 F8 56 EF DD 4A 00 00 88 [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [11:06:27]RAPDU: 90 00 [11:06:27]wFMCommunicate OK [11:06:27]wFMCommunicate request_size=4 [11:06:27]MH_SAM_APDU [11:06:27]CAPDU: 80 0D 03 02 [11:06:27]Write to MH i2c: E2 08 00 97 0A 80 0D 03 02 00 00 00 00 1C [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 0B 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 0B 00 97 0A 00 75 18 09 3D 71 19 D4 EF 90 00 3D [11:06:27]RAPDU: 75 18 09 3D 71 19 D4 EF 90 00 [11:06:27]wFMCommunicate OK [11:06:27]SAM_PROTO_SignData done [11:06:27]FM_MakeSignedData done [11:06:27]CreateOFDProtocolMessage [11:06:27]wFMCommunicate request_size=4 [11:06:27]MH_SAM_APDU [11:06:27]CAPDU: 80 11 00 00 [11:06:27]Write to MH i2c: E2 08 00 98 0A 80 11 00 00 00 00 00 00 1C [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:27]Read from MH i2c: E2 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 17 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: E2 17 00 98 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6F [11:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:06:27]wFMCommunicate OK [11:06:27]CreateOFDProtocolMessage done [11:06:27]OFDSenderStorePacket 148761 [11:06:27]StoreOFDPacket docnum=148761 [11:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B4 98 07 01 91 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 32 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 19 45 02 00 35 04 06 00 64 F8 56 EF DD 4A 75 18 09 3D 71 19 D4 EF [11:06:27]CheckFolder [11:06:27]dirname=/storage/ofd_packets [11:06:27]CheckFolder done [11:06:27]ProducePacketName [11:06:27]name=ofd_packets/00148761 [11:06:27]NVStorageSaveData ofd_packets/00148761 [11:06:27]File name is /storage/ofd_packets/00148761 [11:06:27]Write 301 bytes [11:06:27]NVStorageSaveData done [11:06:27]OFDSenderStorePacket done [11:06:27]KKMCreateOFDPacket done [11:06:27]NVStorageSaveData kkm_last_timestamp [11:06:27]File name is /storage/kkm_last_timestamp [11:06:27]Write 4 bytes [11:06:27]NVStorageSaveData done [11:06:27]ExternCall_PrintAddStr [11:06:27]wPrintStart [11:06:27]Write to MH i2c: 01 00 00 99 0A A3 [11:06:27]OFD Sender: Processing packet 148761 [packets to send 100, broken 99] [11:06:27]ProducePacketName [11:06:27]name=ofd_packets/00148761 [11:06:27]OFD Sender: To server: pG, [11:06:27]CommunicateWithHost lk.salyk.kg:30040 [11:06:27]ConnectInit lk.salyk.kg [11:06:27]Write i2c OK [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: 01 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: 01 07 00 [11:06:27]MH_I2C_Read... [11:06:27]Read from MH i2c: 01 07 00 99 0A 00 00 00 00 00 FF 0F B8 [11:06:27]RasterBufferAndPrint [11:06:27]line Счет N : (1)979685 [11:06:27]line ИНН: 02508201610067 [11:06:27]line Контрольно-Кассовый Чек [11:06:27]line ПРОДАЖА [11:06:27]line ТРК (МРК, ГНК) : 12 [11:06:27]line Товар: 2710124130 [11:06:27]line Аи-92-К-5 [11:06:27]line 10.000 * 66.90 [11:06:27]line = 669.00 [11:06:27]line НДС 12% НСП 1% [11:06:27]line > о реализуемом товаре [11:06:27]line ИТОГО: 669.00 [11:06:27]line НСП 1% : 5.92 [11:06:27]line НДС 12% : 71.04 [11:06:27]line Наличными: 0.00 [11:06:27]line Безнал.: 669.00 [11:06:27]line Место: АЗС № 68 "Партнер Нефть" [11:06:27]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:06:27]line СНО: Общий режим [11:06:27]line Чек 100 04.06.2024 11:06 [11:06:27]line Смена: 368 ФФД: 1.0 [11:06:27]line ЗНМ: 0300000035 [11:06:27]line РНМ: 0000000000092720 [11:06:27]line Версия ККМ: 001 [11:06:27]line Платежная система: KICB Банк [11:06:27]line ФМ: 0000000000875057 [11:06:27]line ФД: 148761 [11:06:27]line ФПД: 111017773227338 [11:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110626&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148761&fm=111017773227338&tin=02508201610067®Number=0000000000092720&sum=66900 [11:06:28]Connected sock=10 [11:06:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 written 0, free lines is 4095 [11:06:28]00 B4 98 07 01 91 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 32 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 19 45 02 00 35 04 06 00 64 F8 56 EF DD 4A 75 18 09 3D 71 19 D4 EF [11:06:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F5 FD 47 00 72 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 19 45 02 00 F4 03 04 00 56 9C 5E 66 B6 04 01 00 00 DC 3E C6 3F 70 A0 50 98 [11:06:28]CommunicateWithHost err = 0 [11:06:28]CheckOFDResponse [11:06:28]1017 (14) - 77093643461234 [11:06:28]1041 (16) - 0000000000875057 [11:06:28]1040 (4) - 148761 [11:06:28]1012 (4) - 04.06.2024 04:47 [11:06:28]1206 (1) - 0 [11:06:28]OFD Sender: Remove packet 148761 [11:06:28]ProducePacketName [11:06:28]name=ofd_packets/00148761 [11:06:28]NVStorageDeleteData [11:06:28]Write to MH i2c: 01 00 00 C3 0A CD [11:06:28]Write i2c OK [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: 01 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: 01 07 00 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: 01 07 00 C3 0A 00 00 00 00 00 7F 0C 5F [11:06:28]RasterBufferAndPrint [11:06:28]line [11:06:28]line [11:06:28]line [11:06:28]line [11:06:28]line [11:06:28]written 0, free lines is 3203 [11:06:28]MH_Cut [11:06:28]Write to MH i2c: D1 01 00 CA 0A 01 A6 [11:06:28]Write i2c OK [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: D1 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: D1 01 00 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: D1 01 00 CA 0A 00 A5 [11:06:28]Write to MH i2c: 01 00 00 CB 0A D5 [11:06:28]Write i2c OK [11:06:28]MH_I2C_Read... [11:06:28]OFD Sender: No OFD packet to send [11:06:29]*** Cut start [11:06:29]*** Partial cut [11:06:29]*** CUTSNS_PIN = 1 [11:06:29]*** CUTSNS_PIN = 0 [11:06:30]*** Brake cut motor [11:06:30]Read from MH i2c: 01 [11:06:30]MH_I2C_Read... [11:06:30]*** Stop cut motor [11:06:30]*** Cut end [11:06:30]Read from MH i2c: 01 07 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 CB 0A 00 00 00 00 00 FF 0F EA [11:06:30]process_action close_receipt done [11:06:30]requested_data is exist [11:06:30]produce_requested_data [11:06:30]requested_item fm.sn is exist - process it [11:06:30]wFMCommunicate request_size=4 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 11 00 00 [11:06:30]Write to MH i2c: E2 08 00 CC 0A 80 11 00 00 00 00 00 00 50 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 17 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 17 00 CC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A3 [11:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:06:30]wFMCommunicate OK [11:06:30]requested_item fd.num is exist - process it [11:06:30]SAM_PROTO_GetFieldsCounters [11:06:30]wFMCommunicate request_size=4 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 13 00 00 [11:06:30]Write to MH i2c: E2 08 00 CD 0A 80 13 00 00 00 00 00 00 53 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 62 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 62 00 CD 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 19 45 02 00 0E 04 04 00 70 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 6C [11:06:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 19 45 02 00 0E 04 04 00 70 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 [11:06:30]wFMCommunicate OK [11:06:30]SAM_PROTO_GetFieldsCounters done [11:06:30]requested_item shift.num is exist - process it [11:06:30]requested_item shift.opened is exist - process it [11:06:30]req_shift_opened [11:06:30]FM_GetShiftState [11:06:30]SAM_PROTO_GetShiftState [11:06:30]wFMCommunicate request_size=4 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 13 01 00 [11:06:30]Write to MH i2c: E2 08 00 CE 0A 80 13 01 00 00 00 00 00 55 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 0E 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 0E 00 CE 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 18 [11:06:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:06:30]wFMCommunicate OK [11:06:30]SAM_PROTO_GetShiftState done [11:06:30]FM_GetShiftState done [11:06:30]req_shift_opened done [11:06:30]requested_item shift.open_date is exist - process it [11:06:30]req_shift_open_date [11:06:30]req_shift_open_date done [11:06:30]produce_requested_data done [11:06:30]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148761,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:06:30]process_action_free close_receipt [11:06:30]json_value_free [11:06:30]json_value_free done [11:06:30]process_json_proto returns [11:06:30]Send response to host [11:06:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148761,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:06:30]free response buf [11:06:30]execute_script done [11:06:30]execute_script returns [11:06:30]free content buf [11:06:30]Sock 7.Close socket [11:06:30]Sock 7.Thread stoped [11:06:31]accept exits with 9 [11:06:31]New connection [11:06:31]New thread 3067235684 created [11:06:31]Thread 3067379044 joined [11:06:31]Waiting for new connection... [11:06:31] Sock 9.Parse request [11:06:31]Sock 9.Check first char [11:06:31]Sock 9.First char is OK [11:06:31]request: POST /json_proto HTTP/1.0 [11:06:31]Method: POST [11:06:31]URL: /json_proto [11:06:31]Method is POST - this is cgi request [11:06:31]url: /json_proto [11:06:31]query_string will be loaded in cgi processing [11:06:31]execute_cgi json_proto POST (null) [11:06:31]execute_cgi path=json_proto method=POST [11:06:31]POST find Content-Length [11:06:31]Host: 172.17.38.4:8080 [11:06:31]Content-Length: 679 [11:06:31]Content-Type: application/json [11:06:31] [11:06:31]POST finish read [11:06:31]Found Content-Length = 679 [11:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:06:31]execute_script... [11:06: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)979684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:06:31]POST & json_proto [11:06:31]process_json_proto [11:06:31]json parsed OK: [11:06:31]protocol is kg_v1.0 [11:06:31]action value=close_receipt [11:06:31]process_action close_receipt [11:06:31]cmd_close_receipt [11:06:31]MH_GetDate [11:06:31]Write to MH i2c: F0 00 00 CF 0A C8 [11:06:31]Write i2c OK [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: F0 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: F0 09 00 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: F0 09 00 CF 0A 00 37 F5 5E 66 CC 51 87 64 C9 [11:06:31]GetLastDocTimeStamp 1717499186 [11:06:31]current date 1717499191 [11:06:31]FM_GetShiftState [11:06:31]SAM_PROTO_GetShiftState [11:06:31]wFMCommunicate request_size=4 [11:06:31]MH_SAM_APDU [11:06:31]CAPDU: 80 13 01 00 [11:06:31]Write to MH i2c: E2 08 00 D0 0A 80 13 01 00 00 00 00 00 57 [11:06:31]Write i2c OK [11:06:31]MH_I2C_Read... [11:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:31]Read from MH i2c: E2 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: E2 0E 00 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: E2 0E 00 D0 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1A [11:06:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:06:31]wFMCommunicate OK [11:06:31]SAM_PROTO_GetShiftState done [11:06:31]FM_GetShiftState done [11:06:31]opened in 1717460629 [11:06:31]opened+sec_in_day 1717547029 [11:06:31]quantity*price = 100018 [11:06:31]sum+1 = 100020 [11:06:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 101 04.06.2024 11:06 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148762 ФПД: 18092362634600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110631&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148762&fm=18092362634600&tin=02508201610067®Number=0000000000092720&sum=100000 [11:06:32]StoreToDocumentArchive [11:06:32]shift 368 fd 148762 [11:06:32]save to /storage/0368/doc_00148762 [11:06:32]save last doc name /storage/0368/doc_00148762 to /storage/kkm_last_doc_name [11:06:32]save OK [11:06:32]Clear old archive folders... [11:06:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:06:32]tlvbuf is B6F42D70 [11:06:32]SAM_PROTO_ClearQueue [11:06:32]wFMCommunicate request_size=4 [11:06:32]MH_SAM_APDU [11:06:32]CAPDU: 80 09 00 00 [11:06:32]Write to MH i2c: E2 08 00 DD 0A 80 09 00 00 00 00 00 00 59 [11:06:32]Write i2c OK [11:06:32]MH_I2C_Read... [11:06:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:32]Read from MH i2c: E2 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 03 00 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 03 00 DD 0A 00 90 00 5B [11:06:32]RAPDU: 90 00 [11:06:32]wFMCommunicate OK [11:06:32]SAM_PROTO_ClearQueue done [11:06:32]KKMCreateOFDPacket [11:06:32]OFDProtocolAddRootSTLVToBuf [11:06:32]FM_MakeSignedData [11:06:32]FM_MakeSignedData [11:06:32]SAM_PROTO_SignData [11:06:32]wFMCommunicate request_size=4 [11:06:32]MH_SAM_APDU [11:06:32]CAPDU: 80 0D 01 02 [11:06:32]Write to MH i2c: E2 08 00 DE 0A 80 0D 01 02 00 00 00 00 61 [11:06:32]Write i2c OK [11:06:32]MH_I2C_Read... [11:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:32]Read from MH i2c: E2 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 03 00 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 03 00 DE 0A 00 90 00 5C [11:06:32]RAPDU: 90 00 [11:06:32]wFMCommunicate OK [11:06:32]wFMCommunicate request_size=255 [11:06:32]MH_SAM_APDU [11:06:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 37 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1A 45 02 00 35 04 06 00 10 74 74 D9 [11:06:32]Write to MH i2c: E2 02 01 DF 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 37 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1A 45 02 00 35 04 06 00 10 74 74 D9 00 00 BA [11:06:32]Write i2c OK [11:06:32]MH_I2C_Read... [11:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:33]Read from MH i2c: E2 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: E2 03 00 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: E2 03 00 DF 0A 00 90 00 5D [11:06:33]RAPDU: 90 00 [11:06:33]wFMCommunicate OK [11:06:33]wFMCommunicate request_size=7 [11:06:33]MH_SAM_APDU [11:06:33]CAPDU: 80 0D 02 02 02 15 68 [11:06:33]Write to MH i2c: E2 0A 00 E0 0A 80 0D 02 02 02 00 15 68 00 00 E5 [11:06:33]Write i2c OK [11:06:33]MH_I2C_Read... [11:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:33]Read from MH i2c: E2 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: E2 03 00 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: E2 03 00 E0 0A 00 90 00 5E [11:06:33]RAPDU: 90 00 [11:06:33]wFMCommunicate OK [11:06:33]wFMCommunicate request_size=4 [11:06:33]MH_SAM_APDU [11:06:33]CAPDU: 80 0D 03 02 [11:06:33]Write to MH i2c: E2 08 00 E1 0A 80 0D 03 02 00 00 00 00 66 [11:06:33]Write i2c OK [11:06:33]MH_I2C_Read... [11:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:33]Read from MH i2c: E2 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: E2 0B 00 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: E2 0B 00 E1 0A 00 11 20 72 4E BD 3D D4 24 90 00 4A [11:06:33]RAPDU: 11 20 72 4E BD 3D D4 24 90 00 [11:06:33]wFMCommunicate OK [11:06:33]SAM_PROTO_SignData done [11:06:33]FM_MakeSignedData done [11:06:33]CreateOFDProtocolMessage [11:06:33]wFMCommunicate request_size=4 [11:06:33]MH_SAM_APDU [11:06:33]CAPDU: 80 11 00 00 [11:06:33]Write to MH i2c: E2 08 00 E2 0A 80 11 00 00 00 00 00 00 66 [11:06:33]Write i2c OK [11:06:33]MH_I2C_Read... [11:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:33]Read from MH i2c: E2 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: E2 17 00 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: E2 17 00 E2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B9 [11:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:06:33]wFMCommunicate OK [11:06:33]CreateOFDProtocolMessage done [11:06:33]OFDSenderStorePacket 148762 [11:06:33]StoreOFDPacket docnum=148762 [11:06:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 9A 67 04 01 7B 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 37 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1A 45 02 00 35 04 06 00 10 74 74 D9 15 68 11 20 72 4E BD 3D D4 24 [11:06:33]CheckFolder [11:06:33]dirname=/storage/ofd_packets [11:06:33]CheckFolder done [11:06:33]ProducePacketName [11:06:33]name=ofd_packets/00148762 [11:06:33]NVStorageSaveData ofd_packets/00148762 [11:06:33]File name is /storage/ofd_packets/00148762 [11:06:33]Write 298 bytes [11:06:33]NVStorageSaveData done [11:06:33]OFDSenderStorePacket done [11:06:33]KKMCreateOFDPacket done [11:06:33]NVStorageSaveData kkm_last_timestamp [11:06:33]File name is /storage/kkm_last_timestamp [11:06:33]Write 4 bytes [11:06:33]NVStorageSaveData done [11:06:33]ExternCall_PrintAddStr [11:06:33]wPrintStart [11:06:33]Write to MH i2c: 01 00 00 E3 0A ED [11:06:33]Write i2c OK [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: 01 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: 01 07 00 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: 01 07 00 E3 0A 00 00 00 00 00 FF 0F 02 [11:06:33]RasterBufferAndPrint [11:06:33]line Счет N : (1)979684 [11:06:33]line ИНН: 02508201610067 [11:06:33]line Контрольно-Кассовый Чек [11:06:33]line ПРОДАЖА [11:06:33]line ТРК (МРК, ГНК) : 51 [11:06:33]line Товар: 2710194210 [11:06:33]line ДТ-К-5 [11:06:33]line 13.720 * 72.90 [11:06:33]line = 1000.19 [11:06:33]line НДС 12% НСП 1% [11:06:33]line > о реализуемом товаре [11:06:33]line ОКРУГЛЕНИЕ: -0.19 [11:06:33]line ИТОГО: 1000.00 [11:06:33]line Внесено: 1000.00 [11:06:33]line СДАЧА: 0.00 [11:06:33]line НСП 1% : 8.85 [11:06:33]line НДС 12% : 106.21 [11:06:33]line Наличными: 1000.00 [11:06:33]line Безнал.: 0.00 [11:06:33]line Место: АЗС № 68 "Партнер Нефть" [11:06:33]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:06:33]line СНО: Общий режим [11:06:33]line Чек 101 04.06.2024 11:06 [11:06:33]line Смена: 368 ФФД: 1.0 [11:06:33]line ЗНМ: 0300000035 [11:06:33]line РНМ: 0000000000092720 [11:06:33]line Версия ККМ: 001 [11:06:33]line ФМ: 0000000000875057 [11:06:33]line ФД: 148762 [11:06:33]line ФПД: 18092362634600 [11:06:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110631&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148762&fm=18092362634600&tin=02508201610067®Number=0000000000092720&sum=100000 [11:06:33]written 0, free lines is 4095 [11:06:33]OFD Sender: Processing packet 148762 [packets to send 100, broken 99] [11:06:33]ProducePacketName [11:06:33]name=ofd_packets/00148762 [11:06:33]OFD Sender: To server: pG, [11:06:33]CommunicateWithHost lk.salyk.kg:30040 [11:06:33]ConnectInit lk.salyk.kg [11:06:33]Connected sock=10 [11:06:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 9A 67 04 01 7B 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 37 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1A 45 02 00 35 04 06 00 10 74 74 D9 15 68 11 20 72 4E BD 3D D4 24 [11:06:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 13 EB 47 00 62 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 38 37 35 30 35 37 10 04 04 00 1A 45 02 00 F4 03 04 00 5B 9C 5E 66 B6 04 01 00 00 86 02 BB 3E 58 A9 28 F4 [11:06:33]CommunicateWithHost err = 0 [11:06:33]CheckOFDResponse [11:06:33]1017 (14) - 77093643461234 [11:06:33]1041 (16) - 0000000000875057 [11:06:33]1040 (4) - 148762 [11:06:33]1012 (4) - 04.06.2024 04:47 [11:06:33]1206 (1) - 0 [11:06:33]OFD Sender: Remove packet 148762 [11:06:33]ProducePacketName [11:06:33]name=ofd_packets/00148762 [11:06:33]NVStorageDeleteData [11:06:33]Write to MH i2c: 01 00 00 0E 0B 19 [11:06:33]Write i2c OK [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: 01 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: 01 07 00 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: 01 07 00 0E 0B 00 00 00 00 00 76 0C A2 [11:06:33]RasterBufferAndPrint [11:06:33]line [11:06:33]line [11:06:33]line [11:06:33]line [11:06:33]line [11:06:33]written 0, free lines is 3197 [11:06:33]MH_Cut [11:06:33]Write to MH i2c: D1 01 00 15 0B 01 F2 [11:06:33]Write i2c OK [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: D1 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: D1 01 00 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: D1 01 00 15 0B 00 F1 [11:06:33]Write to MH i2c: 01 00 00 16 0B 21 [11:06:33]Write i2c OK [11:06:33]MH_I2C_Read... [11:06:34]OFD Sender: No OFD packet to send [11:06:34]*** Cut start [11:06:34]*** Partial cut [11:06:34]*** CUTSNS_PIN = 1 [11:06:34]*** CUTSNS_PIN = 0 [11:06:35]*** Brake cut motor [11:06:35]Read from MH i2c: 01 [11:06:35]MH_I2C_Read... [11:06:35]*** Stop cut motor [11:06:35]*** Cut end [11:06:35]Read from MH i2c: 01 07 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: 01 07 00 16 0B 00 00 00 00 00 FF 0F 36 [11:06:35]process_action close_receipt done [11:06:35]requested_data is exist [11:06:35]produce_requested_data [11:06:35]requested_item fm.sn is exist - process it [11:06:35]wFMCommunicate request_size=4 [11:06:35]MH_SAM_APDU [11:06:35]CAPDU: 80 11 00 00 [11:06:35]Write to MH i2c: E2 08 00 17 0B 80 11 00 00 00 00 00 00 9C [11:06:35]Write i2c OK [11:06:35]MH_I2C_Read... [11:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:35]Read from MH i2c: E2 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 17 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 17 00 17 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EF [11:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:06:35]wFMCommunicate OK [11:06:35]requested_item fd.num is exist - process it [11:06:35]SAM_PROTO_GetFieldsCounters [11:06:35]wFMCommunicate request_size=4 [11:06:35]MH_SAM_APDU [11:06:35]CAPDU: 80 13 00 00 [11:06:35]Write to MH i2c: E2 08 00 18 0B 80 13 00 00 00 00 00 00 9F [11:06:35]Write i2c OK [11:06:35]MH_I2C_Read... [11:06:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:35]Read from MH i2c: E2 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 62 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 62 00 18 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1A 45 02 00 0E 04 04 00 70 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 BC [11:06:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1A 45 02 00 0E 04 04 00 70 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 [11:06:35]wFMCommunicate OK [11:06:35]SAM_PROTO_GetFieldsCounters done [11:06:35]requested_item shift.num is exist - process it [11:06:35]requested_item shift.opened is exist - process it [11:06:35]req_shift_opened [11:06:35]FM_GetShiftState [11:06:35]SAM_PROTO_GetShiftState [11:06:35]wFMCommunicate request_size=4 [11:06:35]MH_SAM_APDU [11:06:35]CAPDU: 80 13 01 00 [11:06:35]Write to MH i2c: E2 08 00 19 0B 80 13 01 00 00 00 00 00 A1 [11:06:35]Write i2c OK [11:06:35]MH_I2C_Read... [11:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:35]Read from MH i2c: E2 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 0E 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 0E 00 19 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 64 [11:06:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:06:35]wFMCommunicate OK [11:06:35]SAM_PROTO_GetShiftState done [11:06:35]FM_GetShiftState done [11:06:35]req_shift_opened done [11:06:35]requested_item shift.open_date is exist - process it [11:06:35]req_shift_open_date [11:06:35]req_shift_open_date done [11:06:35]produce_requested_data done [11:06:35]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148762,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:06:35]process_action_free close_receipt [11:06:35]json_value_free [11:06:35]json_value_free done [11:06:35]process_json_proto returns [11:06:35]Send response to host [11:06:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148762,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:06:35]free response buf [11:06:35]execute_script done [11:06:35]execute_script returns [11:06:35]free content buf [11:06:35]Sock 9.Close socket [11:06:35]Sock 9.Thread stoped [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:00]accept exits with 7 [11:08:00]New connection [11:08:00]New thread 3067379044 created [11:08:00]Thread 3067235684 joined [11:08:00]Waiting for new connection... [11:08:00] Sock 7.Parse request [11:08:00]Sock 7.Check first char [11:08:00]Sock 7.First char is OK [11:08:00]request: POST /json_proto HTTP/1.0 [11:08:00]Method: POST [11:08:00]URL: /json_proto [11:08:00]Method is POST - this is cgi request [11:08:00]url: /json_proto [11:08:00]query_string will be loaded in cgi processing [11:08:00]execute_cgi json_proto POST (null) [11:08:00]execute_cgi path=json_proto method=POST [11:08:00]POST find Content-Length [11:08:00]Host: 172.17.38.4:8080 [11:08:00]Content-Length: 1189 [11:08:00]Content-Type: application/json [11:08:00] [11:08:00]POST finish read [11:08:00]Found Content-Length = 1189 [11:08:00]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979688\u000A04.06.2024 10:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A43302\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:00]execute_script... [11:08:00]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979688\u000A04.06.2024 10:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A43302\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:00]POST & json_proto [11:08:00]process_json_proto [11:08:00]json parsed OK: [11:08:00]protocol is kg_v1.0 [11:08:00]action value=print_text [11:08:00]process_action print_text [11:08:00]cmd_print_text [11:08:00]ExternCall_PrintAddStr [11:08:00]wPrintStart [11:08:00]Write to MH i2c: 01 00 00 1A 0B 25 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 07 00 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 07 00 1A 0B 00 00 00 00 00 FF 0F 3A [11:08:00]RasterBufferAndPrint [11:08:00]line *****ТОВАРНЫЙ ЧЕК***** [11:08:00]line АЗС 68 [11:08:00]line Партнер нефть [11:08:00]line 02508201610067 [11:08:00]line Кассир : Аскаров Н. [11:08:00]line Счет N : (1)979688 [11:08:00]line 04.06.2024 10:48 [11:08:00]line ПРОДАЖА [11:08:00]line ТРК (МРК, ГНК): 41 [11:08:00]line Вид ГСМ : 2710124130 [11:08:00]line Аи-92-К-5 [11:08:00]line 20.000 x 66.90 [11:08:00]line ИТОГ: 1338.00 [11:08:00]line Тип оплаты: Талоны: Топливная Карта [11:08:00]line 43302 [11:08:00]line ______________________ [11:08:00]line (подпись) [11:08:00]written 0, free lines is 4095 [11:08:00]Write to MH i2c: 01 00 00 2E 0B 39 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 07 00 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 07 00 2E 0B 00 00 00 00 00 10 0E 5E [11:08:00]RasterBufferAndPrint [11:08:00]line [11:08:00]line [11:08:00]line [11:08:00]line [11:08:00]line [11:08:00]written 0, free lines is 3601 [11:08:00]MH_Cut [11:08:00]Write to MH i2c: D1 01 00 35 0B 01 12 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: D1 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: D1 01 00 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: D1 01 00 35 0B 00 11 [11:08:00]Write to MH i2c: 01 00 00 36 0B 41 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:01]*** Cut start [11:08:01]*** Partial cut [11:08:01]*** CUTSNS_PIN = 1 [11:08:01]*** CUTSNS_PIN = 0 [11:08:01]*** Brake cut motor [11:08:02]Read from MH i2c: 01 [11:08:02]MH_I2C_Read... [11:08:02]*** Stop cut motor [11:08:02]*** Cut end [11:08:02]Read from MH i2c: 01 07 00 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: 01 07 00 36 0B 00 00 00 00 00 FF 0F 56 [11:08:02]process_action print_text done [11:08:02]requested_data is exist [11:08:02]produce_requested_data [11:08:02]requested_item fm.sn is exist - process it [11:08:02]wFMCommunicate request_size=4 [11:08:02]MH_SAM_APDU [11:08:02]CAPDU: 80 11 00 00 [11:08:02]Write to MH i2c: E2 08 00 37 0B 80 11 00 00 00 00 00 00 BC [11:08:02]Write i2c OK [11:08:02]MH_I2C_Read... [11:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:02]Read from MH i2c: E2 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 17 00 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 17 00 37 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0F [11:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:08:02]wFMCommunicate OK [11:08:02]requested_item fd.num is exist - process it [11:08:02]SAM_PROTO_GetFieldsCounters [11:08:02]wFMCommunicate request_size=4 [11:08:02]MH_SAM_APDU [11:08:02]CAPDU: 80 13 00 00 [11:08:02]Write to MH i2c: E2 08 00 38 0B 80 13 00 00 00 00 00 00 BF [11:08:02]Write i2c OK [11:08:02]MH_I2C_Read... [11:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:02]Read from MH i2c: E2 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 62 00 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 62 00 38 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1A 45 02 00 0E 04 04 00 70 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 DC [11:08:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1A 45 02 00 0E 04 04 00 70 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 [11:08:02]wFMCommunicate OK [11:08:02]SAM_PROTO_GetFieldsCounters done [11:08:02]requested_item shift.num is exist - process it [11:08:02]requested_item shift.opened is exist - process it [11:08:02]req_shift_opened [11:08:02]FM_GetShiftState [11:08:02]SAM_PROTO_GetShiftState [11:08:02]wFMCommunicate request_size=4 [11:08:02]MH_SAM_APDU [11:08:02]CAPDU: 80 13 01 00 [11:08:02]Write to MH i2c: E2 08 00 39 0B 80 13 01 00 00 00 00 00 C1 [11:08:02]Write i2c OK [11:08:02]MH_I2C_Read... [11:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:02]Read from MH i2c: E2 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 0E 00 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 0E 00 39 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 84 [11:08:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:08:02]wFMCommunicate OK [11:08:02]SAM_PROTO_GetShiftState done [11:08:02]FM_GetShiftState done [11:08:02]req_shift_opened done [11:08:02]requested_item shift.open_date is exist - process it [11:08:02]req_shift_open_date [11:08:02]req_shift_open_date done [11:08:02]produce_requested_data done [11:08:02]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148762,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:08:02]process_action_free print_text [11:08:02]json_value_free [11:08:02]json_value_free done [11:08:02]process_json_proto returns [11:08:02]Send response to host [11:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148762,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:08:02]free response buf [11:08:02]execute_script done [11:08:02]execute_script returns [11:08:02]free content buf [11:08:02]Sock 7.Close socket [11:08:02]Sock 7.Thread stoped [11:08:04]OFD Sender: No OFD packet to send [11:08:04]accept exits with 9 [11:08:04]New connection [11:08:04]New thread 3067235684 created [11:08:04]Thread 3067379044 joined [11:08:04]Waiting for new connection... [11:08:04] Sock 9.Parse request [11:08:04]Sock 9.Check first char [11:08:04]Sock 9.First char is OK [11:08:04]request: POST /json_proto HTTP/1.0 [11:08:04]Method: POST [11:08:04]URL: /json_proto [11:08:04]Method is POST - this is cgi request [11:08:04]url: /json_proto [11:08:04]query_string will be loaded in cgi processing [11:08:04]execute_cgi json_proto POST (null) [11:08:04]execute_cgi path=json_proto method=POST [11:08:04]POST find Content-Length [11:08:04]Host: 172.17.38.4:8080 [11:08:04]Content-Length: 674 [11:08:04]Content-Type: application/json [11:08:04] [11:08:04]POST finish read [11:08:04]Found Content-Length = 674 [11:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:08:04]execute_script... [11:08: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)979689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:08:04]POST & json_proto [11:08:04]process_json_proto [11:08:04]json parsed OK: [11:08:04]protocol is kg_v1.0 [11:08:04]action value=close_receipt [11:08:04]process_action close_receipt [11:08:04]cmd_close_receipt [11:08:04]MH_GetDate [11:08:04]Write to MH i2c: F0 00 00 3A 0B 34 [11:08:04]Write i2c OK [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: F0 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: F0 09 00 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: F0 09 00 3A 0B 00 94 F5 5E 66 CC 51 87 64 92 [11:08:04]GetLastDocTimeStamp 1717499191 [11:08:04]current date 1717499284 [11:08:04]FM_GetShiftState [11:08:04]SAM_PROTO_GetShiftState [11:08:04]wFMCommunicate request_size=4 [11:08:04]MH_SAM_APDU [11:08:04]CAPDU: 80 13 01 00 [11:08:04]Write to MH i2c: E2 08 00 3B 0B 80 13 01 00 00 00 00 00 C3 [11:08:04]Write i2c OK [11:08:04]MH_I2C_Read... [11:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:04]Read from MH i2c: E2 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: E2 0E 00 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: E2 0E 00 3B 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 86 [11:08:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:08:04]wFMCommunicate OK [11:08:04]SAM_PROTO_GetShiftState done [11:08:04]FM_GetShiftState done [11:08:04]opened in 1717460629 [11:08:04]opened+sec_in_day 1717547029 [11:08:04]quantity*price = 50009 [11:08:04]sum+1 = 50010 [11:08:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 102 04.06.2024 11:08 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148763 ФПД: 154213939578766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110804&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148763&fm=154213939578766&tin=02508201610067®Number=0000000000092720&sum=50000 [11:08:05]StoreToDocumentArchive [11:08:05]shift 368 fd 148763 [11:08:05]save to /storage/0368/doc_00148763 [11:08:05]save last doc name /storage/0368/doc_00148763 to /storage/kkm_last_doc_name [11:08:05]save OK [11:08:05]Clear old archive folders... [11:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:08:05]tlvbuf is 00FB6C10 [11:08:05]SAM_PROTO_ClearQueue [11:08:05]wFMCommunicate request_size=4 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 09 00 00 [11:08:05]Write to MH i2c: E2 08 00 48 0B 80 09 00 00 00 00 00 00 C5 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 48 0B 00 90 00 C7 [11:08:05]RAPDU: 90 00 [11:08:05]wFMCommunicate OK [11:08:05]SAM_PROTO_ClearQueue done [11:08:05]KKMCreateOFDPacket [11:08:05]OFDProtocolAddRootSTLVToBuf [11:08:05]FM_MakeSignedData [11:08:05]FM_MakeSignedData [11:08:05]SAM_PROTO_SignData [11:08:05]wFMCommunicate request_size=4 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 0D 01 02 [11:08:05]Write to MH i2c: E2 08 00 49 0B 80 0D 01 02 00 00 00 00 CD [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 49 0B 00 90 00 C8 [11:08:05]RAPDU: 90 00 [11:08:05]wFMCommunicate OK [11:08:05]wFMCommunicate request_size=255 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 66 00 00 00 F4 03 04 00 94 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1B 45 02 00 35 04 06 00 8C 41 BB 16 [11:08:05]Write to MH i2c: E2 02 01 4A 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 66 00 00 00 F4 03 04 00 94 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1B 45 02 00 35 04 06 00 8C 41 BB 16 00 00 96 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 4A 0B 00 90 00 C9 [11:08:05]RAPDU: 90 00 [11:08:05]wFMCommunicate OK [11:08:05]wFMCommunicate request_size=7 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 0D 02 02 02 87 8E [11:08:05]Write to MH i2c: E2 0A 00 4B 0B 80 0D 02 02 02 00 87 8E 00 00 E9 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 4B 0B 00 90 00 CA [11:08:05]RAPDU: 90 00 [11:08:05]wFMCommunicate OK [11:08:05]wFMCommunicate request_size=4 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 0D 03 02 [11:08:05]Write to MH i2c: E2 08 00 4C 0B 80 0D 03 02 00 00 00 00 D2 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 0B 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 0B 00 4C 0B 00 FA C1 FC 7C 27 DD AB 13 90 00 C8 [11:08:05]RAPDU: FA C1 FC 7C 27 DD AB 13 90 00 [11:08:05]wFMCommunicate OK [11:08:05]SAM_PROTO_SignData done [11:08:05]FM_MakeSignedData done [11:08:05]CreateOFDProtocolMessage [11:08:05]wFMCommunicate request_size=4 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 11 00 00 [11:08:05]Write to MH i2c: E2 08 00 4D 0B 80 11 00 00 00 00 00 00 D2 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:06]Read from MH i2c: E2 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 17 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 17 00 4D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 25 [11:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:08:06]wFMCommunicate OK [11:08:06]CreateOFDProtocolMessage done [11:08:06]OFDSenderStorePacket 148763 [11:08:06]StoreOFDPacket docnum=148763 [11:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 1E 46 04 01 5A A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 66 00 00 00 F4 03 04 00 94 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1B 45 02 00 35 04 06 00 8C 41 BB 16 87 8E FA C1 FC 7C 27 DD AB 13 [11:08:06]CheckFolder [11:08:06]dirname=/storage/ofd_packets [11:08:06]CheckFolder done [11:08:06]ProducePacketName [11:08:06]name=ofd_packets/00148763 [11:08:06]NVStorageSaveData ofd_packets/00148763 [11:08:06]File name is /storage/ofd_packets/00148763 [11:08:06]Write 298 bytes [11:08:06]NVStorageSaveData done [11:08:06]OFDSenderStorePacket done [11:08:06]KKMCreateOFDPacket done [11:08:06]NVStorageSaveData kkm_last_timestamp [11:08:06]File name is /storage/kkm_last_timestamp [11:08:06]Write 4 bytes [11:08:06]NVStorageSaveData done [11:08:06]ExternCall_PrintAddStr [11:08:06]wPrintStart [11:08:06]Write to MH i2c: 01 00 00 4E 0B 59 [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 07 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 07 00 4E 0B 00 00 00 00 00 FF 0F 6E [11:08:06]RasterBufferAndPrint [11:08:06]line Счет N : (1)979689 [11:08:06]line ИНН: 02508201610067 [11:08:06]line Контрольно-Кассовый Чек [11:08:06]line ПРОДАЖА [11:08:06]line ТРК (МРК, ГНК) : 51 [11:08:06]line Товар: 2710194210 [11:08:06]line ДТ-К-5 [11:08:06]line 6.860 * 72.90 [11:08:06]line = 500.09 [11:08:06]line НДС 12% НСП 1% [11:08:06]line > о реализуемом товаре [11:08:06]line ОКРУГЛЕНИЕ: -0.09 [11:08:06]line ИТОГО: 500.00 [11:08:06]line Внесено: 500.00 [11:08:06]line СДАЧА: 0.00 [11:08:06]line НСП 1% : 4.43 [11:08:06]line НДС 12% : 53.11 [11:08:06]line Наличными: 500.00 [11:08:06]line Безнал.: 0.00 [11:08:06]line Место: АЗС № 68 "Партнер Нефть" [11:08:06]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:08:06]line СНО: Общий режим [11:08:06]line Чек 102 04.06.2024 11:08 [11:08:06]line Смена: 368 ФФД: 1.0 [11:08:06]line ЗНМ: 0300000035 [11:08:06]line РНМ: 0000000000092720 [11:08:06]line Версия ККМ: 001 [11:08:06]line ФМ: 0000000000875057 [11:08:06]line ФД: 148763 [11:08:06]line ФПД: 154213939578766 [11:08:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110804&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148763&fm=154213939578766&tin=02508201610067®Number=0000000000092720&sum=50000 [11:08:06]OFD Sender: Processing packet 148763 [packets to send 100, broken 99] [11:08:06]ProducePacketName [11:08:06]name=ofd_packets/00148763 [11:08:06]OFD Sender: To server: pG, [11:08:06]CommunicateWithHost lk.salyk.kg:30040 [11:08:06]ConnectInit lk.salyk.kg [11:08:06]written 0, free lines is 4095 [11:08:06]Connected sock=10 [11:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 1E 46 04 01 5A A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 66 00 00 00 F4 03 04 00 94 F5 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1B 45 02 00 35 04 06 00 8C 41 BB 16 87 8E FA C1 FC 7C 27 DD AB 13 [11:08:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8D A7 47 00 04 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1B 45 02 00 F4 03 04 00 B9 9C 5E 66 B6 04 01 00 00 C0 B1 AF 71 0B A5 86 85 [11:08:06]CommunicateWithHost err = 0 [11:08:06]CheckOFDResponse [11:08:06]1017 (14) - 77093643461234 [11:08:06]1041 (16) - 0000000000875057 [11:08:06]1040 (4) - 148763 [11:08:06]1012 (4) - 04.06.2024 04:48 [11:08:06]1206 (1) - 0 [11:08:06]OFD Sender: Remove packet 148763 [11:08:06]ProducePacketName [11:08:06]name=ofd_packets/00148763 [11:08:06]NVStorageDeleteData [11:08:06]Write to MH i2c: 01 00 00 79 0B 84 [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 07 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 07 00 79 0B 00 00 00 00 00 6D 0C 04 [11:08:06]RasterBufferAndPrint [11:08:06]line [11:08:06]line [11:08:06]line [11:08:06]line [11:08:06]line [11:08:06]written 0, free lines is 3185 [11:08:06]MH_Cut [11:08:06]Write to MH i2c: D1 01 00 80 0B 01 5D [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: D1 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: D1 01 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: D1 01 00 80 0B 00 5C [11:08:06]Write to MH i2c: 01 00 00 81 0B 8C [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:07]OFD Sender: No OFD packet to send [11:08:08]*** Cut start [11:08:08]*** Partial cut [11:08:08]*** CUTSNS_PIN = 1 [11:08:08]*** CUTSNS_PIN = 0 [11:08:08]*** Brake cut motor [11:08:08]Read from MH i2c: 01 [11:08:08]MH_I2C_Read... [11:08:08]*** Stop cut motor [11:08:08]*** Cut end [11:08:08]Read from MH i2c: 01 07 00 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: 01 07 00 81 0B 00 00 00 00 00 FF 0F A1 [11:08:08]process_action close_receipt done [11:08:08]requested_data is exist [11:08:08]produce_requested_data [11:08:08]requested_item fm.sn is exist - process it [11:08:08]wFMCommunicate request_size=4 [11:08:08]MH_SAM_APDU [11:08:08]CAPDU: 80 11 00 00 [11:08:08]Write to MH i2c: E2 08 00 82 0B 80 11 00 00 00 00 00 00 07 [11:08:08]Write i2c OK [11:08:08]MH_I2C_Read... [11:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:08]Read from MH i2c: E2 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 17 00 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 17 00 82 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5A [11:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:08:08]wFMCommunicate OK [11:08:08]requested_item fd.num is exist - process it [11:08:08]SAM_PROTO_GetFieldsCounters [11:08:08]wFMCommunicate request_size=4 [11:08:08]MH_SAM_APDU [11:08:08]CAPDU: 80 13 00 00 [11:08:08]Write to MH i2c: E2 08 00 83 0B 80 13 00 00 00 00 00 00 0A [11:08:08]Write i2c OK [11:08:08]MH_I2C_Read... [11:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:08]Read from MH i2c: E2 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 62 00 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 62 00 83 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1B 45 02 00 0E 04 04 00 70 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 2B [11:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1B 45 02 00 0E 04 04 00 70 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 [11:08:08]wFMCommunicate OK [11:08:08]SAM_PROTO_GetFieldsCounters done [11:08:08]requested_item shift.num is exist - process it [11:08:08]requested_item shift.opened is exist - process it [11:08:08]req_shift_opened [11:08:08]FM_GetShiftState [11:08:08]SAM_PROTO_GetShiftState [11:08:08]wFMCommunicate request_size=4 [11:08:08]MH_SAM_APDU [11:08:08]CAPDU: 80 13 01 00 [11:08:08]Write to MH i2c: E2 08 00 84 0B 80 13 01 00 00 00 00 00 0C [11:08:08]Write i2c OK [11:08:08]MH_I2C_Read... [11:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:08]Read from MH i2c: E2 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 0E 00 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 0E 00 84 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CF [11:08:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:08:08]wFMCommunicate OK [11:08:08]SAM_PROTO_GetShiftState done [11:08:08]FM_GetShiftState done [11:08:08]req_shift_opened done [11:08:08]requested_item shift.open_date is exist - process it [11:08:08]req_shift_open_date [11:08:08]req_shift_open_date done [11:08:08]produce_requested_data done [11:08:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148763,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:08:08]process_action_free close_receipt [11:08:08]json_value_free [11:08:08]json_value_free done [11:08:08]process_json_proto returns [11:08:08]Send response to host [11:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148763,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:08:08]free response buf [11:08:08]execute_script done [11:08:08]execute_script returns [11:08:08]free content buf [11:08:08]Sock 9.Close socket [11:08:08]Sock 9.Thread stoped [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:35]accept exits with 7 [11:11:35]New connection [11:11:35]New thread 3067379044 created [11:11:35]Thread 3067235684 joined [11:11:35]Waiting for new connection... [11:11:35] Sock 7.Parse request [11:11:35]Sock 7.Check first char [11:11:35]Sock 7.First char is OK [11:11:35]request: POST /json_proto HTTP/1.0 [11:11:35]Method: POST [11:11:35]URL: /json_proto [11:11:35]Method is POST - this is cgi request [11:11:35]url: /json_proto [11:11:35]query_string will be loaded in cgi processing [11:11:35]execute_cgi json_proto POST (null) [11:11:35]execute_cgi path=json_proto method=POST [11:11:35]POST find Content-Length [11:11:35]Host: 172.17.38.4:8080 [11:11:35]Content-Length: 677 [11:11:35]Content-Type: application/json [11:11:35] [11:11:35]POST finish read [11:11:35]Found Content-Length = 677 [11:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:35]execute_script... [11:11:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:35]POST & json_proto [11:11:35]process_json_proto [11:11:35]json parsed OK: [11:11:35]protocol is kg_v1.0 [11:11:35]action value=close_receipt [11:11:35]process_action close_receipt [11:11:35]cmd_close_receipt [11:11:35]MH_GetDate [11:11:35]Write to MH i2c: F0 00 00 85 0B 7F [11:11:35]Write i2c OK [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: F0 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: F0 09 00 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: F0 09 00 85 0B 00 67 F6 5E 66 CC 51 87 64 B1 [11:11:35]GetLastDocTimeStamp 1717499284 [11:11:35]current date 1717499495 [11:11:35]FM_GetShiftState [11:11:35]SAM_PROTO_GetShiftState [11:11:35]wFMCommunicate request_size=4 [11:11:35]MH_SAM_APDU [11:11:35]CAPDU: 80 13 01 00 [11:11:35]Write to MH i2c: E2 08 00 86 0B 80 13 01 00 00 00 00 00 0E [11:11:35]Write i2c OK [11:11:35]MH_I2C_Read... [11:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:35]Read from MH i2c: E2 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 0E 00 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 0E 00 86 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D1 [11:11:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:11:35]wFMCommunicate OK [11:11:35]SAM_PROTO_GetShiftState done [11:11:35]FM_GetShiftState done [11:11:35]opened in 1717460629 [11:11:35]opened+sec_in_day 1717547029 [11:11:35]quantity*price = 50041 [11:11:35]sum+1 = 50042 [11:11:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 103 04.06.2024 11:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148764 ФПД: 60276187597445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111135&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148764&fm=60276187597445&tin=02508201610067®Number=0000000000092720&sum=50000 [11:11:36]StoreToDocumentArchive [11:11:36]shift 368 fd 148764 [11:11:36]save to /storage/0368/doc_00148764 [11:11:36]save last doc name /storage/0368/doc_00148764 to /storage/kkm_last_doc_name [11:11:36]save OK [11:11:36]Clear old archive folders... [11:11:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:36]tlvbuf is 00F98080 [11:11:36]SAM_PROTO_ClearQueue [11:11:36]wFMCommunicate request_size=4 [11:11:36]MH_SAM_APDU [11:11:36]CAPDU: 80 09 00 00 [11:11:36]Write to MH i2c: E2 08 00 93 0B 80 09 00 00 00 00 00 00 10 [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:36]Read from MH i2c: E2 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 93 0B 00 90 00 12 [11:11:36]RAPDU: 90 00 [11:11:36]wFMCommunicate OK [11:11:36]SAM_PROTO_ClearQueue done [11:11:36]KKMCreateOFDPacket [11:11:36]OFDProtocolAddRootSTLVToBuf [11:11:36]FM_MakeSignedData [11:11:36]FM_MakeSignedData [11:11:36]SAM_PROTO_SignData [11:11:36]wFMCommunicate request_size=4 [11:11:36]MH_SAM_APDU [11:11:36]CAPDU: 80 0D 01 02 [11:11:36]Write to MH i2c: E2 08 00 94 0B 80 0D 01 02 00 00 00 00 18 [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:36]Read from MH i2c: E2 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 94 0B 00 90 00 13 [11:11:36]RAPDU: 90 00 [11:11:36]wFMCommunicate OK [11:11:36]wFMCommunicate request_size=255 [11:11:36]MH_SAM_APDU [11:11:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 67 F6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1C 45 02 00 35 04 06 00 36 [11:11:36]Write to MH i2c: E2 02 01 95 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 67 F6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1C 45 02 00 35 04 06 00 36 00 00 34 [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:36]Read from MH i2c: E2 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 95 0B 00 90 00 14 [11:11:36]RAPDU: 90 00 [11:11:36]wFMCommunicate OK [11:11:36]wFMCommunicate request_size=10 [11:11:36]MH_SAM_APDU [11:11:36]CAPDU: 80 0D 02 02 05 D2 24 C0 0A 85 [11:11:36]Write to MH i2c: E2 0D 00 96 0B 80 0D 02 02 05 00 D2 24 C0 0A 85 00 00 6A [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:36]Read from MH i2c: E2 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 96 0B 00 90 00 15 [11:11:36]RAPDU: 90 00 [11:11:36]wFMCommunicate OK [11:11:36]wFMCommunicate request_size=4 [11:11:36]MH_SAM_APDU [11:11:36]CAPDU: 80 0D 03 02 [11:11:36]Write to MH i2c: E2 08 00 97 0B 80 0D 03 02 00 00 00 00 1D [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:36]Read from MH i2c: E2 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 0B 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 0B 00 97 0B 00 DD 24 9F A8 25 C1 02 69 90 00 B7 [11:11:36]RAPDU: DD 24 9F A8 25 C1 02 69 90 00 [11:11:36]wFMCommunicate OK [11:11:36]SAM_PROTO_SignData done [11:11:36]FM_MakeSignedData done [11:11:36]CreateOFDProtocolMessage [11:11:36]wFMCommunicate request_size=4 [11:11:36]MH_SAM_APDU [11:11:36]CAPDU: 80 11 00 00 [11:11:36]Write to MH i2c: E2 08 00 98 0B 80 11 00 00 00 00 00 00 1D [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:36]Read from MH i2c: E2 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 17 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 17 00 98 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 70 [11:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:11:36]wFMCommunicate OK [11:11:36]CreateOFDProtocolMessage done [11:11:36]OFDSenderStorePacket 148764 [11:11:36]StoreOFDPacket docnum=148764 [11:11:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 82 23 07 01 E4 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 67 F6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1C 45 02 00 35 04 06 00 36 D2 24 C0 0A 85 DD 24 9F A8 25 C1 02 69 [11:11:36]CheckFolder [11:11:36]dirname=/storage/ofd_packets [11:11:36]CheckFolder done [11:11:36]ProducePacketName [11:11:36]name=ofd_packets/00148764 [11:11:36]NVStorageSaveData ofd_packets/00148764 [11:11:36]File name is /storage/ofd_packets/00148764 [11:11:36]Write 301 bytes [11:11:36]NVStorageSaveData done [11:11:36]OFDSenderStorePacket done [11:11:36]KKMCreateOFDPacket done [11:11:36]NVStorageSaveData kkm_last_timestamp [11:11:36]File name is /storage/kkm_last_timestamp [11:11:36]Write 4 bytes [11:11:36]NVStorageSaveData done [11:11:36]ExternCall_PrintAddStr [11:11:36]wPrintStart [11:11:36]Write to MH i2c: 01 00 00 99 0B A4 [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: 01 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: 01 07 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: 01 07 00 99 0B 00 00 00 00 00 FF 0F B9 [11:11:36]RasterBufferAndPrint [11:11:36]line Счет N : (1)979691 [11:11:36]line ИНН: 02508201610067 [11:11:36]line Контрольно-Кассовый Чек [11:11:36]line ПРОДАЖА [11:11:36]line ТРК (МРК, ГНК) : 31 [11:11:36]line Товар: 2710124130 [11:11:36]line Аи-92-К-5 [11:11:36]line 7.480 * 66.90 [11:11:36]line = 500.41 [11:11:36]line НДС 12% НСП 1% [11:11:36]line > о реализуемом товаре [11:11:36]line ОКРУГЛЕНИЕ: -0.41 [11:11:36]line ИТОГО: 500.00 [11:11:36]line Внесено: 500.00 [11:11:36]line СДАЧА: 0.00 [11:11:36]line НСП 1% : 4.43 [11:11:36]line НДС 12% : 53.14 [11:11:36]line Наличными: 500.00 [11:11:36]line Безнал.: 0.00 [11:11:36]line Место: АЗС № 68 "Партнер Нефть" [11:11:36]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:11:36]line СНО: Общий режим [11:11:36]line Чек 103 04.06.2024 11:11 [11:11:36]line Смена: 368 ФФД: 1.0 [11:11:36]line ЗНМ: 0300000035 [11:11:36]line РНМ: 0000000000092720 [11:11:36]line Версия ККМ: 001 [11:11:36]line ФМ: 0000000000875057 [11:11:36]line ФД: 148764 [11:11:36]line ФПД: 60276187597445 [11:11:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111135&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148764&fm=60276187597445&tin=02508201610067®Number=0000000000092720&sum=50000 [11:11:37]OFD Sender: Processing packet 148764 [packets to send 100, broken 99] [11:11:37]ProducePacketName [11:11:37]name=ofd_packets/00148764 [11:11:37]OFD Sender: To server: pG, [11:11:37]CommunicateWithHost lk.salyk.kg:30040 [11:11:37]ConnectInit lk.salyk.kg [11:11:37]written 0, free lines is 4095 [11:11:37]Connected sock=10 [11:11:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 82 23 07 01 E4 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 67 F6 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1C 45 02 00 35 04 06 00 36 D2 24 C0 0A 85 DD 24 9F A8 25 C1 02 69 [11:11:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DB 86 47 00 97 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1C 45 02 00 F4 03 04 00 8B 9D 5E 66 B6 04 01 00 00 A3 C8 C9 12 BC 7F 6D CA [11:11:37]CommunicateWithHost err = 0 [11:11:37]CheckOFDResponse [11:11:37]1017 (14) - 77093643461234 [11:11:37]1041 (16) - 0000000000875057 [11:11:37]1040 (4) - 148764 [11:11:37]1012 (4) - 04.06.2024 04:52 [11:11:37]1206 (1) - 0 [11:11:37]OFD Sender: Remove packet 148764 [11:11:37]ProducePacketName [11:11:37]name=ofd_packets/00148764 [11:11:37]NVStorageDeleteData [11:11:37]Write to MH i2c: 01 00 00 C4 0B CF [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: 01 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: 01 07 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 65 0C 47 [11:11:37]RasterBufferAndPrint [11:11:37]line [11:11:37]line [11:11:37]line [11:11:37]line [11:11:37]line [11:11:37]written 0, free lines is 3177 [11:11:37]MH_Cut [11:11:37]Write to MH i2c: D1 01 00 CB 0B 01 A8 [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: D1 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: D1 01 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: D1 01 00 CB 0B 00 A7 [11:11:37]Write to MH i2c: 01 00 00 CC 0B D7 [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:38]OFD Sender: No OFD packet to send [11:11:38]*** Cut start [11:11:38]*** Partial cut [11:11:38]*** CUTSNS_PIN = 1 [11:11:38]*** CUTSNS_PIN = 0 [11:11:39]*** Brake cut motor [11:11:39]Read from MH i2c: 01 [11:11:39]MH_I2C_Read... [11:11:39]*** Stop cut motor [11:11:39]*** Cut end [11:11:39]Read from MH i2c: 01 07 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: 01 07 00 CC 0B 00 00 00 00 00 FF 0F EC [11:11:39]process_action close_receipt done [11:11:39]requested_data is exist [11:11:39]produce_requested_data [11:11:39]requested_item fm.sn is exist - process it [11:11:39]wFMCommunicate request_size=4 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 11 00 00 [11:11:39]Write to MH i2c: E2 08 00 CD 0B 80 11 00 00 00 00 00 00 52 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 17 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 17 00 CD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A5 [11:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:11:39]wFMCommunicate OK [11:11:39]requested_item fd.num is exist - process it [11:11:39]SAM_PROTO_GetFieldsCounters [11:11:39]wFMCommunicate request_size=4 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 13 00 00 [11:11:39]Write to MH i2c: E2 08 00 CE 0B 80 13 00 00 00 00 00 00 55 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 62 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 62 00 CE 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1C 45 02 00 0E 04 04 00 70 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 7A [11:11:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1C 45 02 00 0E 04 04 00 70 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 [11:11:39]wFMCommunicate OK [11:11:39]SAM_PROTO_GetFieldsCounters done [11:11:39]requested_item shift.num is exist - process it [11:11:39]requested_item shift.opened is exist - process it [11:11:39]req_shift_opened [11:11:39]FM_GetShiftState [11:11:39]SAM_PROTO_GetShiftState [11:11:39]wFMCommunicate request_size=4 [11:11:39]MH_SAM_APDU [11:11:39]CAPDU: 80 13 01 00 [11:11:39]Write to MH i2c: E2 08 00 CF 0B 80 13 01 00 00 00 00 00 57 [11:11:39]Write i2c OK [11:11:39]MH_I2C_Read... [11:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:39]Read from MH i2c: E2 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 0E 00 [11:11:39]MH_I2C_Read... [11:11:39]Read from MH i2c: E2 0E 00 CF 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1A [11:11:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:11:39]wFMCommunicate OK [11:11:39]SAM_PROTO_GetShiftState done [11:11:39]FM_GetShiftState done [11:11:39]req_shift_opened done [11:11:39]requested_item shift.open_date is exist - process it [11:11:39]req_shift_open_date [11:11:39]req_shift_open_date done [11:11:39]produce_requested_data done [11:11:39]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148764,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:11:39]process_action_free close_receipt [11:11:39]json_value_free [11:11:39]json_value_free done [11:11:39]process_json_proto returns [11:11:39]Send response to host [11:11:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148764,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:11:39]free response buf [11:11:39]execute_script done [11:11:39]execute_script returns [11:11:39]free content buf [11:11:39]Sock 7.Close socket [11:11:39]Sock 7.Thread stoped [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:22]accept exits with 9 [11:13:22]New connection [11:13:22]New thread 3067235684 created [11:13:22]Thread 3067379044 joined [11:13:22]Waiting for new connection... [11:13:22] Sock 9.Parse request [11:13:22]Sock 9.Check first char [11:13:22]Sock 9.First char is OK [11:13:22]request: POST /json_proto HTTP/1.0 [11:13:22]Method: POST [11:13:22]URL: /json_proto [11:13:22]Method is POST - this is cgi request [11:13:22]url: /json_proto [11:13:22]query_string will be loaded in cgi processing [11:13:22]execute_cgi json_proto POST (null) [11:13:22]execute_cgi path=json_proto method=POST [11:13:22]POST find Content-Length [11:13:22]Host: 172.17.38.4:8080 [11:13:22]Content-Length: 1186 [11:13:22]Content-Type: application/json [11:13:22] [11:13:22]POST finish read [11:13:22]Found Content-Length = 1186 [11:13:22]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979690\u000A04.06.2024 10:54\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-\u041A-5\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\u000A43294\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:22]execute_script... [11:13:22]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979690\u000A04.06.2024 10:54\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-\u041A-5\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\u000A43294\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:22]POST & json_proto [11:13:22]process_json_proto [11:13:22]json parsed OK: [11:13:22]protocol is kg_v1.0 [11:13:22]action value=print_text [11:13:22]process_action print_text [11:13:22]cmd_print_text [11:13:22]ExternCall_PrintAddStr [11:13:22]wPrintStart [11:13:22]Write to MH i2c: 01 00 00 D0 0B DB [11:13:22]Write i2c OK [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: 01 [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: 01 07 00 [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: 01 07 00 D0 0B 00 00 00 00 00 FF 0F F0 [11:13:22]RasterBufferAndPrint [11:13:22]line *****ТОВАРНЫЙ ЧЕК***** [11:13:22]line АЗС 68 [11:13:22]line Партнер нефть [11:13:22]line 02508201610067 [11:13:22]line Кассир : Аскаров Н. [11:13:22]line Счет N : (1)979690 [11:13:22]line 04.06.2024 10:54 [11:13:22]line ПРОДАЖА [11:13:22]line ТРК (МРК, ГНК): 51 [11:13:22]line Вид ГСМ : 2710194210 [11:13:22]line ДТ-К-5 [11:13:22]line 30.000 x 72.90 [11:13:22]line ИТОГ: 2187.00 [11:13:22]line Тип оплаты: Талоны: Топливная Карта [11:13:22]line 43294 [11:13:22]line ______________________ [11:13:22]line (подпись) [11:13:22]written 0, free lines is 4095 [11:13:22]Write to MH i2c: 01 00 00 E4 0B EF [11:13:22]Write i2c OK [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: 01 [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: 01 07 00 [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: 01 07 00 E4 0B 00 00 00 00 00 0E 0E 12 [11:13:22]RasterBufferAndPrint [11:13:22]line [11:13:22]line [11:13:22]line [11:13:22]line [11:13:22]line [11:13:22]written 0, free lines is 3599 [11:13:22]MH_Cut [11:13:22]Write to MH i2c: D1 01 00 EB 0B 01 C8 [11:13:22]Write i2c OK [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: D1 [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: D1 01 00 [11:13:22]MH_I2C_Read... [11:13:22]Read from MH i2c: D1 01 00 EB 0B 00 C7 [11:13:22]Write to MH i2c: 01 00 00 EC 0B F7 [11:13:22]Write i2c OK [11:13:22]MH_I2C_Read... [11:13:23]OFD Sender: No OFD packet to send [11:13:23]*** Cut start [11:13:23]*** Partial cut [11:13:23]*** CUTSNS_PIN = 1 [11:13:23]*** CUTSNS_PIN = 0 [11:13:23]*** Brake cut motor [11:13:24]Read from MH i2c: 01 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: 01 07 00 [11:13:24]MH_I2C_Read... [11:13:24]*** Stop cut motor [11:13:24]*** Cut end [11:13:24]Read from MH i2c: 01 07 00 EC 0B 00 00 00 00 00 FF 0F 0C [11:13:24]process_action print_text done [11:13:24]requested_data is exist [11:13:24]produce_requested_data [11:13:24]requested_item fm.sn is exist - process it [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 11 00 00 [11:13:24]Write to MH i2c: E2 08 00 ED 0B 80 11 00 00 00 00 00 00 72 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 17 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 17 00 ED 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C5 [11:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:13:24]wFMCommunicate OK [11:13:24]requested_item fd.num is exist - process it [11:13:24]SAM_PROTO_GetFieldsCounters [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 13 00 00 [11:13:24]Write to MH i2c: E2 08 00 EE 0B 80 13 00 00 00 00 00 00 75 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 62 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 62 00 EE 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1C 45 02 00 0E 04 04 00 70 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 9A [11:13:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1C 45 02 00 0E 04 04 00 70 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 [11:13:24]wFMCommunicate OK [11:13:24]SAM_PROTO_GetFieldsCounters done [11:13:24]requested_item shift.num is exist - process it [11:13:24]requested_item shift.opened is exist - process it [11:13:24]req_shift_opened [11:13:24]FM_GetShiftState [11:13:24]SAM_PROTO_GetShiftState [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 13 01 00 [11:13:24]Write to MH i2c: E2 08 00 EF 0B 80 13 01 00 00 00 00 00 77 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0E 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0E 00 EF 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3A [11:13:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:13:24]wFMCommunicate OK [11:13:24]SAM_PROTO_GetShiftState done [11:13:24]FM_GetShiftState done [11:13:24]req_shift_opened done [11:13:24]requested_item shift.open_date is exist - process it [11:13:24]req_shift_open_date [11:13:24]req_shift_open_date done [11:13:24]produce_requested_data done [11:13:24]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148764,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:13:24]process_action_free print_text [11:13:24]json_value_free [11:13:24]json_value_free done [11:13:24]process_json_proto returns [11:13:24]Send response to host [11:13:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148764,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:13:24]free response buf [11:13:24]execute_script done [11:13:24]execute_script returns [11:13:24]free content buf [11:13:24]Sock 9.Close socket [11:13:24]Sock 9.Thread stoped [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:29]accept exits with 10 [11:16:29]New connection [11:16:29]New thread 3067379044 created [11:16:29]Thread 3067235684 joined [11:16:29]Waiting for new connection... [11:16:29] Sock 10.Parse request [11:16:29]Sock 10.Check first char [11:16:29]Sock 10.First char is OK [11:16:29]request: POST /json_proto HTTP/1.0 [11:16:29]Method: POST [11:16:29]URL: /json_proto [11:16:29]Method is POST - this is cgi request [11:16:29]url: /json_proto [11:16:29]query_string will be loaded in cgi processing [11:16:29]execute_cgi json_proto POST (null) [11:16:29]execute_cgi path=json_proto method=POST [11:16:29]POST find Content-Length [11:16:29]Host: 172.17.38.4:8080 [11:16:29]Content-Length: 675 [11:16:29]Content-Type: application/json [11:16:29] [11:16:29]POST finish read [11:16:29]Found Content-Length = 675 [11:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [11:16:29]execute_script... [11:16:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [11:16:29]POST & json_proto [11:16:29]process_json_proto [11:16:29]json parsed OK: [11:16:29]protocol is kg_v1.0 [11:16:29]action value=close_receipt [11:16:29]process_action close_receipt [11:16:29]cmd_close_receipt [11:16:29]MH_GetDate [11:16:29]Write to MH i2c: F0 00 00 F0 0B EA [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: F0 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: F0 09 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: F0 09 00 F0 0B 00 8D F7 5E 66 CC 51 87 64 43 [11:16:29]GetLastDocTimeStamp 1717499495 [11:16:29]current date 1717499789 [11:16:29]FM_GetShiftState [11:16:29]SAM_PROTO_GetShiftState [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 13 01 00 [11:16:29]Write to MH i2c: E2 08 00 F1 0B 80 13 01 00 00 00 00 00 79 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 0E 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 0E 00 F1 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3C [11:16:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:16:29]wFMCommunicate OK [11:16:29]SAM_PROTO_GetShiftState done [11:16:29]FM_GetShiftState done [11:16:29]opened in 1717460629 [11:16:29]opened+sec_in_day 1717547029 [11:16:29]quantity*price = 100016 [11:16:29]sum+1 = 100018 [11:16:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 104 04.06.2024 11:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148765 ФПД: 183691934582968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111629&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148765&fm=183691934582968&tin=02508201610067®Number=0000000000092720&sum=100000 [11:16:30]StoreToDocumentArchive [11:16:30]shift 368 fd 148765 [11:16:30]save to /storage/0368/doc_00148765 [11:16:30]save last doc name /storage/0368/doc_00148765 to /storage/kkm_last_doc_name [11:16:30]save OK [11:16:30]Clear old archive folders... [11:16:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:16:30]tlvbuf is 00FEA030 [11:16:30]SAM_PROTO_ClearQueue [11:16:30]wFMCommunicate request_size=4 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 09 00 00 [11:16:30]Write to MH i2c: E2 08 00 FE 0B 80 09 00 00 00 00 00 00 7B [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:30]Read from MH i2c: E2 03 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 FE 0B 00 90 00 7D [11:16:30]RAPDU: 90 00 [11:16:30]wFMCommunicate OK [11:16:30]SAM_PROTO_ClearQueue done [11:16:30]KKMCreateOFDPacket [11:16:30]OFDProtocolAddRootSTLVToBuf [11:16:30]FM_MakeSignedData [11:16:30]FM_MakeSignedData [11:16:30]SAM_PROTO_SignData [11:16:30]wFMCommunicate request_size=4 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 0D 01 02 [11:16:30]Write to MH i2c: E2 08 00 FF 0B 80 0D 01 02 00 00 00 00 83 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 FF 0B 00 90 00 7E [11:16:30]RAPDU: 90 00 [11:16:30]wFMCommunicate OK [11:16:30]wFMCommunicate request_size=255 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 68 00 00 00 F4 03 04 00 8D F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1D 45 02 00 35 04 06 00 [11:16:30]Write to MH i2c: E2 02 01 00 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 68 00 00 00 F4 03 04 00 8D F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1D 45 02 00 35 04 06 00 00 00 B2 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 00 0C 00 90 00 80 [11:16:30]RAPDU: 90 00 [11:16:30]wFMCommunicate OK [11:16:30]wFMCommunicate request_size=11 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 0D 02 02 06 A7 11 1C 82 48 B8 [11:16:30]Write to MH i2c: E2 0E 00 01 0C 80 0D 02 02 06 00 A7 11 1C 82 48 B8 00 00 E9 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 01 0C 00 90 00 81 [11:16:30]RAPDU: 90 00 [11:16:30]wFMCommunicate OK [11:16:30]wFMCommunicate request_size=4 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 0D 03 02 [11:16:30]Write to MH i2c: E2 08 00 02 0C 80 0D 03 02 00 00 00 00 89 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 0B 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 0B 00 02 0C 00 48 B8 A4 58 51 E7 63 AC 90 00 CD [11:16:30]RAPDU: 48 B8 A4 58 51 E7 63 AC 90 00 [11:16:30]wFMCommunicate OK [11:16:30]SAM_PROTO_SignData done [11:16:30]FM_MakeSignedData done [11:16:30]CreateOFDProtocolMessage [11:16:30]wFMCommunicate request_size=4 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 11 00 00 [11:16:30]Write to MH i2c: E2 08 00 03 0C 80 11 00 00 00 00 00 00 89 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 17 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 17 00 03 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DC [11:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:16:30]wFMCommunicate OK [11:16:30]CreateOFDProtocolMessage done [11:16:30]OFDSenderStorePacket 148765 [11:16:30]StoreOFDPacket docnum=148765 [11:16:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 AC FF 08 01 E1 44 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 68 00 00 00 F4 03 04 00 8D F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1D 45 02 00 35 04 06 00 A7 11 1C 82 48 B8 48 B8 A4 58 51 E7 63 AC [11:16:30]CheckFolder [11:16:30]dirname=/storage/ofd_packets [11:16:30]CheckFolder done [11:16:30]ProducePacketName [11:16:30]name=ofd_packets/00148765 [11:16:30]NVStorageSaveData ofd_packets/00148765 [11:16:30]File name is /storage/ofd_packets/00148765 [11:16:30]Write 302 bytes [11:16:30]NVStorageSaveData done [11:16:30]OFDSenderStorePacket done [11:16:30]KKMCreateOFDPacket done [11:16:30]NVStorageSaveData kkm_last_timestamp [11:16:30]File name is /storage/kkm_last_timestamp [11:16:30]Write 4 bytes [11:16:30]NVStorageSaveData done [11:16:30]ExternCall_PrintAddStr [11:16:30]wPrintStart [11:16:30]Write to MH i2c: 01 00 00 04 0C 10 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: 01 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: 01 07 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: 01 07 00 04 0C 00 00 00 00 00 FF 0F 25 [11:16:30]RasterBufferAndPrint [11:16:30]line Счет N : (1)979692 [11:16:30]line ИНН: 02508201610067 [11:16:30]line Контрольно-Кассовый Чек [11:16:30]line ПРОДАЖА [11:16:30]line ТРК (МРК, ГНК) : 33 [11:16:30]line Товар: 2710124130 [11:16:30]line SUPER 92-К-5 [11:16:30]line 14.730 * 67.90 [11:16:30]line = 1000.17 [11:16:30]line НДС 12% НСП 1% [11:16:30]line > о реализуемом товаре [11:16:30]line ОКРУГЛЕНИЕ: -0.17 [11:16:30]line ИТОГО: 1000.00 [11:16:30]line Внесено: 1000.00 [11:16:30]line СДАЧА: 0.00 [11:16:30]line НСП 1% : 8.85 [11:16:30]line НДС 12% : 106.21 [11:16:30]line Наличными: 1000.00 [11:16:30]line Безнал.: 0.00 [11:16:30]line Место: АЗС № 68 "Партнер Нефть" [11:16:30]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:16:30]line СНО: Общий режим [11:16:30]line Чек 104 04.06.2024 11:16 [11:16:30]line Смена: 368 ФФД: 1.0 [11:16:30]line ЗНМ: 0300000035 [11:16:30]line РНМ: 0000000000092720 [11:16:30]line Версия ККМ: 001 [11:16:30]line ФМ: 0000000000875057 [11:16:30]line ФД: 148765 [11:16:30]line ФПД: 183691934582968 [11:16:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111629&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148765&fm=183691934582968&tin=02508201610067®Number=0000000000092720&sum=100000 [11:16:31]OFD Sender: Processing packet 148765 [packets to send 100, broken 99] [11:16:31]ProducePacketName [11:16:31]name=ofd_packets/00148765 [11:16:31]OFD Sender: To server: pG, [11:16:31]CommunicateWithHost lk.salyk.kg:30040 [11:16:31]ConnectInit lk.salyk.kg [11:16:31]written 0, free lines is 4095 [11:16:31]Connected sock=9 [11:16:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 AC FF 08 01 E1 44 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 68 00 00 00 F4 03 04 00 8D F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1D 45 02 00 35 04 06 00 A7 11 1C 82 48 B8 48 B8 A4 58 51 E7 63 AC [11:16:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 46 44 47 00 C9 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 38 37 35 30 35 37 10 04 04 00 1D 45 02 00 F4 03 04 00 B1 9E 5E 66 B6 04 01 00 00 D9 90 EC 4C 01 B7 82 64 [11:16:31]CommunicateWithHost err = 0 [11:16:31]CheckOFDResponse [11:16:31]1017 (14) - 77093643461234 [11:16:31]1041 (16) - 0000000000875057 [11:16:31]1040 (4) - 148765 [11:16:31]1012 (4) - 04.06.2024 04:57 [11:16:31]1206 (1) - 0 [11:16:31]OFD Sender: Remove packet 148765 [11:16:31]ProducePacketName [11:16:31]name=ofd_packets/00148765 [11:16:31]NVStorageDeleteData [11:16:31]Write to MH i2c: 01 00 00 2F 0C 3B [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 07 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 07 00 2F 0C 00 00 00 00 00 6E 0C BC [11:16:31]RasterBufferAndPrint [11:16:31]line [11:16:31]line [11:16:31]line [11:16:31]line [11:16:31]line [11:16:31]written 0, free lines is 3186 [11:16:31]MH_Cut [11:16:31]Write to MH i2c: D1 01 00 36 0C 01 14 [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: D1 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: D1 01 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: D1 01 00 36 0C 00 13 [11:16:31]Write to MH i2c: 01 00 00 37 0C 43 [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]OFD Sender: No OFD packet to send [11:16:32]*** Cut start [11:16:32]*** Partial cut [11:16:32]*** CUTSNS_PIN = 1 [11:16:32]*** CUTSNS_PIN = 0 [11:16:33]*** Brake cut motor [11:16:33]Read from MH i2c: 01 [11:16:33]MH_I2C_Read... [11:16:33]*** Stop cut motor [11:16:33]*** Cut end [11:16:33]Read from MH i2c: 01 07 00 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: 01 07 00 37 0C 00 00 00 00 00 FF 0F 58 [11:16:33]process_action close_receipt done [11:16:33]requested_data is exist [11:16:33]produce_requested_data [11:16:33]requested_item fm.sn is exist - process it [11:16:33]wFMCommunicate request_size=4 [11:16:33]MH_SAM_APDU [11:16:33]CAPDU: 80 11 00 00 [11:16:33]Write to MH i2c: E2 08 00 38 0C 80 11 00 00 00 00 00 00 BE [11:16:33]Write i2c OK [11:16:33]MH_I2C_Read... [11:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:33]Read from MH i2c: E2 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 17 00 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 17 00 38 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 11 [11:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:16:33]wFMCommunicate OK [11:16:33]requested_item fd.num is exist - process it [11:16:33]SAM_PROTO_GetFieldsCounters [11:16:33]wFMCommunicate request_size=4 [11:16:33]MH_SAM_APDU [11:16:33]CAPDU: 80 13 00 00 [11:16:33]Write to MH i2c: E2 08 00 39 0C 80 13 00 00 00 00 00 00 C1 [11:16:33]Write i2c OK [11:16:33]MH_I2C_Read... [11:16:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:33]Read from MH i2c: E2 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 62 00 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 62 00 39 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1D 45 02 00 0E 04 04 00 70 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 EA [11:16:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1D 45 02 00 0E 04 04 00 70 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 [11:16:33]wFMCommunicate OK [11:16:33]SAM_PROTO_GetFieldsCounters done [11:16:33]requested_item shift.num is exist - process it [11:16:33]requested_item shift.opened is exist - process it [11:16:33]req_shift_opened [11:16:33]FM_GetShiftState [11:16:33]SAM_PROTO_GetShiftState [11:16:33]wFMCommunicate request_size=4 [11:16:33]MH_SAM_APDU [11:16:33]CAPDU: 80 13 01 00 [11:16:33]Write to MH i2c: E2 08 00 3A 0C 80 13 01 00 00 00 00 00 C3 [11:16:33]Write i2c OK [11:16:33]MH_I2C_Read... [11:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:33]Read from MH i2c: E2 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 0E 00 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 0E 00 3A 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 86 [11:16:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:16:33]wFMCommunicate OK [11:16:33]SAM_PROTO_GetShiftState done [11:16:33]FM_GetShiftState done [11:16:33]req_shift_opened done [11:16:33]requested_item shift.open_date is exist - process it [11:16:33]req_shift_open_date [11:16:33]req_shift_open_date done [11:16:33]produce_requested_data done [11:16:33]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148765,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:16:33]process_action_free close_receipt [11:16:33]json_value_free [11:16:33]json_value_free done [11:16:33]process_json_proto returns [11:16:33]Send response to host [11:16:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148765,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:16:33]free response buf [11:16:33]execute_script done [11:16:33]execute_script returns [11:16:33]free content buf [11:16:33]Sock 10.Close socket [11:16:33]Sock 10.Thread stoped [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]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:28]accept exits with 7 [11:17:28]New connection [11:17:28]New thread 3067235684 created [11:17:28]Thread 3067379044 joined [11:17:28]Waiting for new connection... [11:17:28] Sock 7.Parse request [11:17:28]Sock 7.Check first char [11:17:28]Sock 7.First char is OK [11:17:28]request: POST /json_proto HTTP/1.0 [11:17:28]Method: POST [11:17:28]URL: /json_proto [11:17:28]Method is POST - this is cgi request [11:17:28]url: /json_proto [11:17:28]query_string will be loaded in cgi processing [11:17:28]execute_cgi json_proto POST (null) [11:17:28]execute_cgi path=json_proto method=POST [11:17:28]POST find Content-Length [11:17:28]Host: 172.17.38.4:8080 [11:17:28]Content-Length: 677 [11:17:28]Content-Type: application/json [11:17:28] [11:17:28]POST finish read [11:17:28]Found Content-Length = 677 [11:17:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.000, "sum" : 133.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:28]execute_script... [11:17: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)979694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.000, "sum" : 133.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:28]POST & json_proto [11:17:28]process_json_proto [11:17:28]json parsed OK: [11:17:28]protocol is kg_v1.0 [11:17:28]action value=close_receipt [11:17:28]process_action close_receipt [11:17:28]cmd_close_receipt [11:17:28]MH_GetDate [11:17:28]Write to MH i2c: F0 00 00 3B 0C 36 [11:17:28]Write i2c OK [11:17:28]MH_I2C_Read... [11:17:28]Read from MH i2c: F0 [11:17:28]MH_I2C_Read... [11:17:28]Read from MH i2c: F0 09 00 [11:17:28]MH_I2C_Read... [11:17:28]Read from MH i2c: F0 09 00 3B 0C 00 C9 F7 5E 66 CC 51 87 64 CB [11:17:28]GetLastDocTimeStamp 1717499789 [11:17:28]current date 1717499849 [11:17:28]FM_GetShiftState [11:17:28]SAM_PROTO_GetShiftState [11:17:28]wFMCommunicate request_size=4 [11:17:28]MH_SAM_APDU [11:17:28]CAPDU: 80 13 01 00 [11:17:28]Write to MH i2c: E2 08 00 3C 0C 80 13 01 00 00 00 00 00 C5 [11:17:28]Write i2c OK [11:17:28]MH_I2C_Read... [11:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:28]Read from MH i2c: E2 [11:17:28]MH_I2C_Read... [11:17:28]Read from MH i2c: E2 0E 00 [11:17:28]MH_I2C_Read... [11:17:28]Read from MH i2c: E2 0E 00 3C 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 88 [11:17:28]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:17:28]wFMCommunicate OK [11:17:28]SAM_PROTO_GetShiftState done [11:17:28]FM_GetShiftState done [11:17:28]opened in 1717460629 [11:17:28]opened+sec_in_day 1717547029 [11:17:28]quantity*price = 13380 [11:17:28]sum+1 = 13381 [11:17:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 133.00 Внесено: 133.00 СДАЧА: 0.00 НСП 1% : 1.18 НДС 12% : 14.21 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 105 04.06.2024 11:17 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148766 ФПД: 110116848126571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111729&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148766&fm=110116848126571&tin=02508201610067®Number=0000000000092720&sum=13300 [11:17:29]StoreToDocumentArchive [11:17:29]shift 368 fd 148766 [11:17:29]save to /storage/0368/doc_00148766 [11:17:29]save last doc name /storage/0368/doc_00148766 to /storage/kkm_last_doc_name [11:17:29]save OK [11:17:29]Clear old archive folders... [11:17:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:29]tlvbuf is 00FA8160 [11:17:29]SAM_PROTO_ClearQueue [11:17:29]wFMCommunicate request_size=4 [11:17:29]MH_SAM_APDU [11:17:29]CAPDU: 80 09 00 00 [11:17:29]Write to MH i2c: E2 08 00 49 0C 80 09 00 00 00 00 00 00 C7 [11:17:29]Write i2c OK [11:17:29]MH_I2C_Read... [11:17:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:30]Read from MH i2c: E2 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 03 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 03 00 49 0C 00 90 00 C9 [11:17:30]RAPDU: 90 00 [11:17:30]wFMCommunicate OK [11:17:30]SAM_PROTO_ClearQueue done [11:17:30]KKMCreateOFDPacket [11:17:30]OFDProtocolAddRootSTLVToBuf [11:17:30]FM_MakeSignedData [11:17:30]FM_MakeSignedData [11:17:30]SAM_PROTO_SignData [11:17:30]wFMCommunicate request_size=4 [11:17:30]MH_SAM_APDU [11:17:30]CAPDU: 80 0D 01 02 [11:17:30]Write to MH i2c: E2 08 00 4A 0C 80 0D 01 02 00 00 00 00 CF [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:30]Read from MH i2c: E2 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 03 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [11:17:30]RAPDU: 90 00 [11:17:30]wFMCommunicate OK [11:17:30]wFMCommunicate request_size=255 [11:17:30]MH_SAM_APDU [11:17:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 44 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 05 00 00 00 00 07 04 06 00 F4 33 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 C9 F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1E 45 02 00 35 04 06 00 64 [11:17:30]Write to MH i2c: E2 02 01 4B 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 44 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 05 00 00 00 00 07 04 06 00 F4 33 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 C9 F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1E 45 02 00 35 04 06 00 64 00 00 DC [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 [11:17:30]MH_I2C_Read... [11:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:30]Read from MH i2c: E2 03 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 03 00 4B 0C 00 90 00 CB [11:17:30]RAPDU: 90 00 [11:17:30]wFMCommunicate OK [11:17:30]wFMCommunicate request_size=10 [11:17:30]MH_SAM_APDU [11:17:30]CAPDU: 80 0D 02 02 05 26 93 9D CA 6B [11:17:30]Write to MH i2c: E2 0D 00 4C 0C 80 0D 02 02 05 00 26 93 9D CA 6B 00 00 67 [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:30]Read from MH i2c: E2 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 03 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 03 00 4C 0C 00 90 00 CC [11:17:30]RAPDU: 90 00 [11:17:30]wFMCommunicate OK [11:17:30]wFMCommunicate request_size=4 [11:17:30]MH_SAM_APDU [11:17:30]CAPDU: 80 0D 03 02 [11:17:30]Write to MH i2c: E2 08 00 4D 0C 80 0D 03 02 00 00 00 00 D4 [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:30]Read from MH i2c: E2 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 0B 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 0B 00 4D 0C 00 F3 A5 F1 98 7E 32 C2 69 90 00 D1 [11:17:30]RAPDU: F3 A5 F1 98 7E 32 C2 69 90 00 [11:17:30]wFMCommunicate OK [11:17:30]SAM_PROTO_SignData done [11:17:30]FM_MakeSignedData done [11:17:30]CreateOFDProtocolMessage [11:17:30]wFMCommunicate request_size=4 [11:17:30]MH_SAM_APDU [11:17:30]CAPDU: 80 11 00 00 [11:17:30]Write to MH i2c: E2 08 00 4E 0C 80 11 00 00 00 00 00 00 D4 [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:30]Read from MH i2c: E2 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 17 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 17 00 4E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 27 [11:17:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:17:30]wFMCommunicate OK [11:17:30]CreateOFDProtocolMessage done [11:17:30]OFDSenderStorePacket 148766 [11:17:30]StoreOFDPacket docnum=148766 [11:17:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A6 29 07 01 46 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 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 44 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 05 00 00 00 00 07 04 06 00 F4 33 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 C9 F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1E 45 02 00 35 04 06 00 64 26 93 9D CA 6B F3 A5 F1 98 7E 32 C2 69 [11:17:30]CheckFolder [11:17:30]dirname=/storage/ofd_packets [11:17:30]CheckFolder done [11:17:30]ProducePacketName [11:17:30]name=ofd_packets/00148766 [11:17:30]NVStorageSaveData ofd_packets/00148766 [11:17:30]File name is /storage/ofd_packets/00148766 [11:17:30]Write 301 bytes [11:17:30]NVStorageSaveData done [11:17:30]OFDSenderStorePacket done [11:17:30]KKMCreateOFDPacket done [11:17:30]NVStorageSaveData kkm_last_timestamp [11:17:30]File name is /storage/kkm_last_timestamp [11:17:30]Write 4 bytes [11:17:30]NVStorageSaveData done [11:17:30]ExternCall_PrintAddStr [11:17:30]wPrintStart [11:17:30]Write to MH i2c: 01 00 00 4F 0C 5B [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: 01 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: 01 07 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: 01 07 00 4F 0C 00 00 00 00 00 FF 0F 70 [11:17:30]RasterBufferAndPrint [11:17:30]line Счет N : (1)979694 [11:17:30]line ИНН: 02508201610067 [11:17:30]line Контрольно-Кассовый Чек [11:17:30]line ПРОДАЖА [11:17:30]line ТРК (МРК, ГНК) : 12 [11:17:30]line Товар: 2710124130 [11:17:30]line Аи-92-К-5 [11:17:30]line 2.000 * 66.90 [11:17:30]line = 133.80 [11:17:30]line НДС 12% НСП 1% [11:17:30]line > о реализуемом товаре [11:17:30]line ОКРУГЛЕНИЕ: -0.80 [11:17:30]line ИТОГО: 133.00 [11:17:30]line Внесено: 133.00 [11:17:30]line СДАЧА: 0.00 [11:17:30]line НСП 1% : 1.18 [11:17:30]line НДС 12% : 14.21 [11:17:30]line Наличными: 133.00 [11:17:30]line Безнал.: 0.00 [11:17:30]line Место: АЗС № 68 "Партнер Нефть" [11:17:30]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:17:30]line СНО: Общий режим [11:17:30]line Чек 105 04.06.2024 11:17 [11:17:30]line Смена: 368 ФФД: 1.0 [11:17:30]line ЗНМ: 0300000035 [11:17:30]line РНМ: 0000000000092720 [11:17:30]line Версия ККМ: 001 [11:17:30]line ФМ: 0000000000875057 [11:17:30]line ФД: 148766 [11:17:30]line ФПД: 110116848126571 [11:17:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111729&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148766&fm=110116848126571&tin=02508201610067®Number=0000000000092720&sum=13300 [11:17:30]OFD Sender: Processing packet 148766 [packets to send 100, broken 99] [11:17:30]ProducePacketName [11:17:30]name=ofd_packets/00148766 [11:17:30]OFD Sender: To server: pG, [11:17:30]CommunicateWithHost lk.salyk.kg:30040 [11:17:30]ConnectInit lk.salyk.kg [11:17:30]written 0, free lines is 4095 [11:17:30]Connected sock=10 [11:17:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A6 29 07 01 46 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 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 44 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 05 00 00 00 00 07 04 06 00 F4 33 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 C9 F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1E 45 02 00 35 04 06 00 64 26 93 9D CA 6B F3 A5 F1 98 7E 32 C2 69 [11:17:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C0 FE 47 00 34 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1E 45 02 00 F4 03 04 00 ED 9E 5E 66 B6 04 01 00 00 39 BD 48 EA 0D 20 F7 8C [11:17:31]CommunicateWithHost err = 0 [11:17:31]CheckOFDResponse [11:17:31]1017 (14) - 77093643461234 [11:17:31]1041 (16) - 0000000000875057 [11:17:31]1040 (4) - 148766 [11:17:31]1012 (4) - 04.06.2024 04:58 [11:17:31]1206 (1) - 0 [11:17:31]OFD Sender: Remove packet 148766 [11:17:31]ProducePacketName [11:17:31]name=ofd_packets/00148766 [11:17:31]NVStorageDeleteData [11:17:31]Write to MH i2c: 01 00 00 7A 0C 86 [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: 01 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: 01 07 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: 01 07 00 7A 0C 00 00 00 00 00 62 0C FB [11:17:31]RasterBufferAndPrint [11:17:31]line [11:17:31]line [11:17:31]line [11:17:31]line [11:17:31]line [11:17:31]written 0, free lines is 3174 [11:17:31]MH_Cut [11:17:31]Write to MH i2c: D1 01 00 81 0C 01 5F [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: D1 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: D1 01 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: D1 01 00 81 0C 00 5E [11:17:31]Write to MH i2c: 01 00 00 82 0C 8E [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]OFD Sender: No OFD packet to send [11:17:32]*** Cut start [11:17:32]*** Partial cut [11:17:32]*** CUTSNS_PIN = 1 [11:17:32]*** CUTSNS_PIN = 0 [11:17:32]*** Brake cut motor [11:17:33]Read from MH i2c: 01 [11:17:33]MH_I2C_Read... [11:17:33]*** Stop cut motor [11:17:33]*** Cut end [11:17:33]Read from MH i2c: 01 07 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: 01 07 00 82 0C 00 00 00 00 00 FF 0F A3 [11:17:33]process_action close_receipt done [11:17:33]requested_data is exist [11:17:33]produce_requested_data [11:17:33]requested_item fm.sn is exist - process it [11:17:33]wFMCommunicate request_size=4 [11:17:33]MH_SAM_APDU [11:17:33]CAPDU: 80 11 00 00 [11:17:33]Write to MH i2c: E2 08 00 83 0C 80 11 00 00 00 00 00 00 09 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:33]Read from MH i2c: E2 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 17 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 17 00 83 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5C [11:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:17:33]wFMCommunicate OK [11:17:33]requested_item fd.num is exist - process it [11:17:33]SAM_PROTO_GetFieldsCounters [11:17:33]wFMCommunicate request_size=4 [11:17:33]MH_SAM_APDU [11:17:33]CAPDU: 80 13 00 00 [11:17:33]Write to MH i2c: E2 08 00 84 0C 80 13 00 00 00 00 00 00 0C [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:33]Read from MH i2c: E2 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 62 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 62 00 84 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1E 45 02 00 0E 04 04 00 70 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 39 [11:17:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1E 45 02 00 0E 04 04 00 70 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 [11:17:33]wFMCommunicate OK [11:17:33]SAM_PROTO_GetFieldsCounters done [11:17:33]requested_item shift.num is exist - process it [11:17:33]requested_item shift.opened is exist - process it [11:17:33]req_shift_opened [11:17:33]FM_GetShiftState [11:17:33]SAM_PROTO_GetShiftState [11:17:33]wFMCommunicate request_size=4 [11:17:33]MH_SAM_APDU [11:17:33]CAPDU: 80 13 01 00 [11:17:33]Write to MH i2c: E2 08 00 85 0C 80 13 01 00 00 00 00 00 0E [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:33]Read from MH i2c: E2 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 85 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D1 [11:17:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:17:33]wFMCommunicate OK [11:17:33]SAM_PROTO_GetShiftState done [11:17:33]FM_GetShiftState done [11:17:33]req_shift_opened done [11:17:33]requested_item shift.open_date is exist - process it [11:17:33]req_shift_open_date [11:17:33]req_shift_open_date done [11:17:33]produce_requested_data done [11:17:33]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148766,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:17:33]process_action_free close_receipt [11:17:33]json_value_free [11:17:33]json_value_free done [11:17:33]process_json_proto returns [11:17:33]Send response to host [11:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148766,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:17:33]free response buf [11:17:33]execute_script done [11:17:33]execute_script returns [11:17:33]free content buf [11:17:33]Sock 7.Close socket [11:17:33]Sock 7.Thread stoped [11:17:33]accept exits with 9 [11:17:33]New connection [11:17:33]New thread 3067379044 created [11:17:33]Thread 3067235684 joined [11:17:33]Waiting for new connection... [11:17:33] Sock 9.Parse request [11:17:33]Sock 9.Check first char [11:17:33]Sock 9.First char is OK [11:17:33]request: POST /json_proto HTTP/1.0 [11:17:33]Method: POST [11:17:33]URL: /json_proto [11:17:33]Method is POST - this is cgi request [11:17:33]url: /json_proto [11:17:33]query_string will be loaded in cgi processing [11:17:33]execute_cgi json_proto POST (null) [11:17:33]execute_cgi path=json_proto method=POST [11:17:33]POST find Content-Length [11:17:33]Host: 172.17.38.4:8080 [11:17:33]Content-Length: 679 [11:17:33]Content-Type: application/json [11:17:33] [11:17:33]POST finish read [11:17:33]Found Content-Length = 679 [11:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:17:33]execute_script... [11:17: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)979693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:17:33]POST & json_proto [11:17:33]process_json_proto [11:17:33]json parsed OK: [11:17:33]protocol is kg_v1.0 [11:17:33]action value=close_receipt [11:17:33]process_action close_receipt [11:17:33]cmd_close_receipt [11:17:33]MH_GetDate [11:17:33]Write to MH i2c: F0 00 00 86 0C 81 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 09 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 09 00 86 0C 00 CE F7 5E 66 CC 51 87 64 1B [11:17:33]GetLastDocTimeStamp 1717499849 [11:17:33]current date 1717499854 [11:17:33]FM_GetShiftState [11:17:33]SAM_PROTO_GetShiftState [11:17:33]wFMCommunicate request_size=4 [11:17:33]MH_SAM_APDU [11:17:33]CAPDU: 80 13 01 00 [11:17:33]Write to MH i2c: E2 08 00 87 0C 80 13 01 00 00 00 00 00 10 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 [11:17:33]MH_I2C_Read... [11:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:33]Read from MH i2c: E2 0E 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 87 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D3 [11:17:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:17:33]wFMCommunicate OK [11:17:33]SAM_PROTO_GetShiftState done [11:17:33]FM_GetShiftState done [11:17:33]opened in 1717460629 [11:17:33]opened+sec_in_day 1717547029 [11:17:33]quantity*price = 150028 [11:17:33]sum+1 = 150029 [11:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 106 04.06.2024 11:17 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148767 ФПД: 151991686777905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111734&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148767&fm=151991686777905&tin=02508201610067®Number=0000000000092720&sum=150000 [11:17:35]StoreToDocumentArchive [11:17:35]shift 368 fd 148767 [11:17:35]save to /storage/0368/doc_00148767 [11:17:35]save last doc name /storage/0368/doc_00148767 to /storage/kkm_last_doc_name [11:17:35]save OK [11:17:35]Clear old archive folders... [11:17:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:17:35]tlvbuf is B6F29CE0 [11:17:35]SAM_PROTO_ClearQueue [11:17:35]wFMCommunicate request_size=4 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 09 00 00 [11:17:35]Write to MH i2c: E2 08 00 94 0C 80 09 00 00 00 00 00 00 12 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [11:17:35]RAPDU: 90 00 [11:17:35]wFMCommunicate OK [11:17:35]SAM_PROTO_ClearQueue done [11:17:35]KKMCreateOFDPacket [11:17:35]OFDProtocolAddRootSTLVToBuf [11:17:35]FM_MakeSignedData [11:17:35]FM_MakeSignedData [11:17:35]SAM_PROTO_SignData [11:17:35]wFMCommunicate request_size=4 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 0D 01 02 [11:17:35]Write to MH i2c: E2 08 00 95 0C 80 0D 01 02 00 00 00 00 1A [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 95 0C 00 90 00 15 [11:17:35]RAPDU: 90 00 [11:17:35]wFMCommunicate OK [11:17:35]wFMCommunicate request_size=255 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 CE F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1F 45 02 00 35 04 06 00 8A 3C 52 7F [11:17:35]Write to MH i2c: E2 02 01 96 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 CE F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1F 45 02 00 35 04 06 00 8A 3C 52 7F 00 00 9A [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 96 0C 00 90 00 16 [11:17:35]RAPDU: 90 00 [11:17:35]wFMCommunicate OK [11:17:35]wFMCommunicate request_size=7 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 0D 02 02 02 CC 31 [11:17:35]Write to MH i2c: E2 0A 00 97 0C 80 0D 02 02 02 00 CC 31 00 00 1E [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 97 0C 00 90 00 17 [11:17:35]RAPDU: 90 00 [11:17:35]wFMCommunicate OK [11:17:35]wFMCommunicate request_size=4 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 0D 03 02 [11:17:35]Write to MH i2c: E2 08 00 98 0C 80 0D 03 02 00 00 00 00 1F [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 0B 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 0B 00 98 0C 00 D0 EF 64 31 BC 87 CD 4D 90 00 D1 [11:17:35]RAPDU: D0 EF 64 31 BC 87 CD 4D 90 00 [11:17:35]wFMCommunicate OK [11:17:35]SAM_PROTO_SignData done [11:17:35]FM_MakeSignedData done [11:17:35]CreateOFDProtocolMessage [11:17:35]wFMCommunicate request_size=4 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 11 00 00 [11:17:35]Write to MH i2c: E2 08 00 99 0C 80 11 00 00 00 00 00 00 1F [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 17 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 17 00 99 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 72 [11:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:17:35]wFMCommunicate OK [11:17:35]CreateOFDProtocolMessage done [11:17:35]OFDSenderStorePacket 148767 [11:17:35]StoreOFDPacket docnum=148767 [11:17:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 8A A5 04 01 63 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 CE F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1F 45 02 00 35 04 06 00 8A 3C 52 7F CC 31 D0 EF 64 31 BC 87 CD 4D [11:17:35]CheckFolder [11:17:35]dirname=/storage/ofd_packets [11:17:35]CheckFolder done [11:17:35]ProducePacketName [11:17:35]name=ofd_packets/00148767 [11:17:35]NVStorageSaveData ofd_packets/00148767 [11:17:35]File name is /storage/ofd_packets/00148767 [11:17:35]Write 298 bytes [11:17:35]NVStorageSaveData done [11:17:35]OFDSenderStorePacket done [11:17:35]KKMCreateOFDPacket done [11:17:35]NVStorageSaveData kkm_last_timestamp [11:17:35]File name is /storage/kkm_last_timestamp [11:17:35]Write 4 bytes [11:17:35]NVStorageSaveData done [11:17:35]ExternCall_PrintAddStr [11:17:35]wPrintStart [11:17:35]Write to MH i2c: 01 00 00 9A 0C A6 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 9A 0C 00 00 00 00 00 FF 0F BB [11:17:35]RasterBufferAndPrint [11:17:35]line Счет N : (1)979693 [11:17:35]line ИНН: 02508201610067 [11:17:35]line Контрольно-Кассовый Чек [11:17:35]line ПРОДАЖА [11:17:35]line ТРК (МРК, ГНК) : 51 [11:17:35]line Товар: 2710194210 [11:17:35]line ДТ-К-5 [11:17:35]line 20.580 * 72.90 [11:17:35]line = 1500.28 [11:17:35]line НДС 12% НСП 1% [11:17:35]line > о реализуемом товаре [11:17:35]line ОКРУГЛЕНИЕ: -0.28 [11:17:35]line ИТОГО: 1500.00 [11:17:35]line Внесено: 1500.00 [11:17:35]line СДАЧА: 0.00 [11:17:35]line НСП 1% : 13.28 [11:17:35]line НДС 12% : 159.32 [11:17:35]line Наличными: 1500.00 [11:17:35]line Безнал.: 0.00 [11:17:35]line Место: АЗС № 68 "Партнер Нефть" [11:17:35]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:17:35]line СНО: Общий режим [11:17:35]line Чек 106 04.06.2024 11:17 [11:17:35]line Смена: 368 ФФД: 1.0 [11:17:35]line ЗНМ: 0300000035 [11:17:35]line РНМ: 0000000000092720 [11:17:35]line Версия ККМ: 001 [11:17:35]line ФМ: 0000000000875057 [11:17:35]line ФД: 148767 [11:17:35]line ФПД: 151991686777905 [11:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111734&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148767&fm=151991686777905&tin=02508201610067®Number=0000000000092720&sum=150000 [11:17:35]written 0, free lines is 4095 [11:17:36]OFD Sender: Processing packet 148767 [packets to send 100, broken 99] [11:17:36]ProducePacketName [11:17:36]name=ofd_packets/00148767 [11:17:36]OFD Sender: To server: pG, [11:17:36]CommunicateWithHost lk.salyk.kg:30040 [11:17:36]ConnectInit lk.salyk.kg [11:17:36]Connected sock=10 [11:17:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 8A A5 04 01 63 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 CE F7 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1F 45 02 00 35 04 06 00 8A 3C 52 7F CC 31 D0 EF 64 31 BC 87 CD 4D [11:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E3 4B 47 00 4A 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 38 37 35 30 35 37 10 04 04 00 1F 45 02 00 F4 03 04 00 F2 9E 5E 66 B6 04 01 00 00 74 8F B8 77 C8 9C C0 D7 [11:17:36]CommunicateWithHost err = 0 [11:17:36]CheckOFDResponse [11:17:36]1017 (14) - 77093643461234 [11:17:36]1041 (16) - 0000000000875057 [11:17:36]1040 (4) - 148767 [11:17:36]1012 (4) - 04.06.2024 04:58 [11:17:36]1206 (1) - 0 [11:17:36]OFD Sender: Remove packet 148767 [11:17:36]ProducePacketName [11:17:36]name=ofd_packets/00148767 [11:17:36]NVStorageDeleteData [11:17:36]Write to MH i2c: 01 00 00 C5 0C D1 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: 01 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: 01 07 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: 01 07 00 C5 0C 00 00 00 00 00 74 0C 58 [11:17:36]RasterBufferAndPrint [11:17:36]line [11:17:36]line [11:17:36]line [11:17:36]line [11:17:36]line [11:17:36]written 0, free lines is 3192 [11:17:36]MH_Cut [11:17:36]Write to MH i2c: D1 01 00 CC 0C 01 AA [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: D1 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: D1 01 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: D1 01 00 CC 0C 00 A9 [11:17:36]Write to MH i2c: 01 00 00 CD 0C D9 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]OFD Sender: No OFD packet to send [11:17:37]*** Cut start [11:17:37]*** Partial cut [11:17:37]*** CUTSNS_PIN = 1 [11:17:37]*** CUTSNS_PIN = 0 [11:17:37]*** Brake cut motor [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]*** Stop cut motor [11:17:38]*** Cut end [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 CD 0C 00 00 00 00 00 FF 0F EE [11:17:38]process_action close_receipt done [11:17:38]requested_data is exist [11:17:38]produce_requested_data [11:17:38]requested_item fm.sn is exist - process it [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 11 00 00 [11:17:38]Write to MH i2c: E2 08 00 CE 0C 80 11 00 00 00 00 00 00 54 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 17 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 17 00 CE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A7 [11:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:17:38]wFMCommunicate OK [11:17:38]requested_item fd.num is exist - process it [11:17:38]SAM_PROTO_GetFieldsCounters [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 13 00 00 [11:17:38]Write to MH i2c: E2 08 00 CF 0C 80 13 00 00 00 00 00 00 57 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 62 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 62 00 CF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1F 45 02 00 0E 04 04 00 70 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 88 [11:17:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1F 45 02 00 0E 04 04 00 70 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 [11:17:38]wFMCommunicate OK [11:17:38]SAM_PROTO_GetFieldsCounters done [11:17:38]requested_item shift.num is exist - process it [11:17:38]requested_item shift.opened is exist - process it [11:17:38]req_shift_opened [11:17:38]FM_GetShiftState [11:17:38]SAM_PROTO_GetShiftState [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 13 01 00 [11:17:38]Write to MH i2c: E2 08 00 D0 0C 80 13 01 00 00 00 00 00 59 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 0E 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 0E 00 D0 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1C [11:17:38]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:17:38]wFMCommunicate OK [11:17:38]SAM_PROTO_GetShiftState done [11:17:38]FM_GetShiftState done [11:17:38]req_shift_opened done [11:17:38]requested_item shift.open_date is exist - process it [11:17:38]req_shift_open_date [11:17:38]req_shift_open_date done [11:17:38]produce_requested_data done [11:17:38]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148767,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:17:38]process_action_free close_receipt [11:17:38]json_value_free [11:17:38]json_value_free done [11:17:38]process_json_proto returns [11:17:38]Send response to host [11:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148767,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:17:38]free response buf [11:17:38]execute_script done [11:17:38]execute_script returns [11:17:38]free content buf [11:17:38]Sock 9.Close socket [11:17:38]Sock 9.Thread stoped [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:22]accept exits with 7 [11:23:22]New connection [11:23:22]New thread 3067235684 created [11:23:22]Thread 3067379044 joined [11:23:22]Waiting for new connection... [11:23:22] Sock 7.Parse request [11:23:22]Sock 7.Check first char [11:23:22]Sock 7.First char is OK [11:23:22]request: POST /json_proto HTTP/1.0 [11:23:22]Method: POST [11:23:22]URL: /json_proto [11:23:22]Method is POST - this is cgi request [11:23:22]url: /json_proto [11:23:22]query_string will be loaded in cgi processing [11:23:22]execute_cgi json_proto POST (null) [11:23:22]execute_cgi path=json_proto method=POST [11:23:22]POST find Content-Length [11:23:22]Host: 172.17.38.4:8080 [11:23:22]Content-Length: 1186 [11:23:22]Content-Type: application/json [11:23:22] [11:23:22]POST finish read [11:23:22]Found Content-Length = 1186 [11:23:22]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979695\u000A04.06.2024 11:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\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\u000A43297\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:22]execute_script... [11:23:22]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979695\u000A04.06.2024 11:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\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\u000A43297\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:22]POST & json_proto [11:23:22]process_json_proto [11:23:22]json parsed OK: [11:23:22]protocol is kg_v1.0 [11:23:22]action value=print_text [11:23:22]process_action print_text [11:23:22]cmd_print_text [11:23:22]ExternCall_PrintAddStr [11:23:22]wPrintStart [11:23:22]Write to MH i2c: 01 00 00 D1 0C DD [11:23:22]Write i2c OK [11:23:22]MH_I2C_Read... [11:23:22]Read from MH i2c: 01 [11:23:22]MH_I2C_Read... [11:23:22]Read from MH i2c: 01 07 00 [11:23:22]MH_I2C_Read... [11:23:22]Read from MH i2c: 01 07 00 D1 0C 00 00 00 00 00 FF 0F F2 [11:23:22]RasterBufferAndPrint [11:23:22]line *****ТОВАРНЫЙ ЧЕК***** [11:23:22]line АЗС 68 [11:23:22]line Партнер нефть [11:23:22]line 02508201610067 [11:23:22]line Кассир : Аскаров Н. [11:23:22]line Счет N : (1)979695 [11:23:22]line 04.06.2024 11:04 [11:23:22]line ПРОДАЖА [11:23:22]line ТРК (МРК, ГНК): 52 [11:23:22]line Вид ГСМ : 2710194210 [11:23:22]line ДТ-К-5 [11:23:22]line 20.000 x 72.90 [11:23:22]line ИТОГ: 1458.00 [11:23:22]line Тип оплаты: Талоны: Топливная Карта [11:23:22]line 43297 [11:23:22]line ______________________ [11:23:22]line (подпись) [11:23:22]written 0, free lines is 4095 [11:23:23]Write to MH i2c: 01 00 00 E5 0C F1 [11:23:23]Write i2c OK [11:23:23]MH_I2C_Read... [11:23:23]Read from MH i2c: 01 [11:23:23]MH_I2C_Read... [11:23:23]Read from MH i2c: 01 07 00 [11:23:23]MH_I2C_Read... [11:23:23]Read from MH i2c: 01 07 00 E5 0C 00 00 00 00 00 0E 0E 14 [11:23:23]RasterBufferAndPrint [11:23:23]line [11:23:23]line [11:23:23]line [11:23:23]line [11:23:23]line [11:23:23]written 0, free lines is 3599 [11:23:23]MH_Cut [11:23:23]Write to MH i2c: D1 01 00 EC 0C 01 CA [11:23:23]Write i2c OK [11:23:23]MH_I2C_Read... [11:23:23]Read from MH i2c: D1 [11:23:23]MH_I2C_Read... [11:23:23]Read from MH i2c: D1 01 00 [11:23:23]MH_I2C_Read... [11:23:23]Read from MH i2c: D1 01 00 EC 0C 00 C9 [11:23:23]Write to MH i2c: 01 00 00 ED 0C F9 [11:23:23]Write i2c OK [11:23:23]MH_I2C_Read... [11:23:23]*** Cut start [11:23:23]*** Partial cut [11:23:23]*** CUTSNS_PIN = 1 [11:23:23]*** CUTSNS_PIN = 0 [11:23:24]*** Brake cut motor [11:23:24]Read from MH i2c: 01 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: 01 07 00 [11:23:24]MH_I2C_Read... [11:23:24]*** Stop cut motor [11:23:24]*** Cut end [11:23:24]Read from MH i2c: 01 07 00 ED 0C 00 00 00 00 00 FF 0F 0E [11:23:24]process_action print_text done [11:23:24]requested_data is exist [11:23:24]produce_requested_data [11:23:24]requested_item fm.sn is exist - process it [11:23:24]wFMCommunicate request_size=4 [11:23:24]MH_SAM_APDU [11:23:24]CAPDU: 80 11 00 00 [11:23:24]Write to MH i2c: E2 08 00 EE 0C 80 11 00 00 00 00 00 00 74 [11:23:24]Write i2c OK [11:23:24]MH_I2C_Read... [11:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:24]Read from MH i2c: E2 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: E2 17 00 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: E2 17 00 EE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C7 [11:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:23:24]wFMCommunicate OK [11:23:24]requested_item fd.num is exist - process it [11:23:24]SAM_PROTO_GetFieldsCounters [11:23:24]wFMCommunicate request_size=4 [11:23:24]MH_SAM_APDU [11:23:24]CAPDU: 80 13 00 00 [11:23:24]Write to MH i2c: E2 08 00 EF 0C 80 13 00 00 00 00 00 00 77 [11:23:24]Write i2c OK [11:23:24]MH_I2C_Read... [11:23:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:24]Read from MH i2c: E2 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: E2 62 00 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: E2 62 00 EF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1F 45 02 00 0E 04 04 00 70 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 A8 [11:23:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1F 45 02 00 0E 04 04 00 70 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 [11:23:24]wFMCommunicate OK [11:23:24]SAM_PROTO_GetFieldsCounters done [11:23:24]requested_item shift.num is exist - process it [11:23:24]requested_item shift.opened is exist - process it [11:23:24]req_shift_opened [11:23:24]FM_GetShiftState [11:23:24]SAM_PROTO_GetShiftState [11:23:24]wFMCommunicate request_size=4 [11:23:24]MH_SAM_APDU [11:23:24]CAPDU: 80 13 01 00 [11:23:24]Write to MH i2c: E2 08 00 F0 0C 80 13 01 00 00 00 00 00 79 [11:23:24]Write i2c OK [11:23:24]MH_I2C_Read... [11:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:24]Read from MH i2c: E2 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: E2 0E 00 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: E2 0E 00 F0 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3C [11:23:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:23:24]wFMCommunicate OK [11:23:24]SAM_PROTO_GetShiftState done [11:23:24]FM_GetShiftState done [11:23:24]req_shift_opened done [11:23:24]requested_item shift.open_date is exist - process it [11:23:24]req_shift_open_date [11:23:24]req_shift_open_date done [11:23:24]produce_requested_data done [11:23:24]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148767,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:23:24]process_action_free print_text [11:23:24]json_value_free [11:23:24]json_value_free done [11:23:24]process_json_proto returns [11:23:24]Send response to host [11:23:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148767,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:23:24]free response buf [11:23:24]execute_script done [11:23:24]execute_script returns [11:23:24]free content buf [11:23:24]Sock 7.Close socket [11:23:24]Sock 7.Thread stoped [11:23:24]accept exits with 9 [11:23:24]New connection [11:23:24]New thread 3067379044 created [11:23:24]Thread 3067235684 joined [11:23:24]Waiting for new connection... [11:23:24] Sock 9.Parse request [11:23:24]Sock 9.Check first char [11:23:24]Sock 9.First char is OK [11:23:24]request: POST /json_proto HTTP/1.0 [11:23:24]Method: POST [11:23:24]URL: /json_proto [11:23:24]Method is POST - this is cgi request [11:23:24]url: /json_proto [11:23:24]query_string will be loaded in cgi processing [11:23:24]execute_cgi json_proto POST (null) [11:23:24]execute_cgi path=json_proto method=POST [11:23:24]POST find Content-Length [11:23:24]Host: 172.17.38.4:8080 [11:23:24]Content-Length: 677 [11:23:24]Content-Type: application/json [11:23:24] [11:23:24]POST finish read [11:23:24]Found Content-Length = 677 [11:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:24]execute_script... [11:23: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)979697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:24]POST & json_proto [11:23:24]process_json_proto [11:23:24]json parsed OK: [11:23:24]protocol is kg_v1.0 [11:23:24]action value=close_receipt [11:23:24]process_action close_receipt [11:23:24]cmd_close_receipt [11:23:24]MH_GetDate [11:23:24]Write to MH i2c: F0 00 00 F1 0C EC [11:23:24]Write i2c OK [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: F0 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: F0 09 00 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: F0 09 00 F1 0C 00 2D F9 5E 66 CC 51 87 64 E7 [11:23:24]GetLastDocTimeStamp 1717499854 [11:23:24]current date 1717500205 [11:23:24]FM_GetShiftState [11:23:24]SAM_PROTO_GetShiftState [11:23:24]wFMCommunicate request_size=4 [11:23:24]MH_SAM_APDU [11:23:24]CAPDU: 80 13 01 00 [11:23:24]Write to MH i2c: E2 08 00 F2 0C 80 13 01 00 00 00 00 00 7B [11:23:24]Write i2c OK [11:23:24]MH_I2C_Read... [11:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:24]Read from MH i2c: E2 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: E2 0E 00 [11:23:24]MH_I2C_Read... [11:23:24]Read from MH i2c: E2 0E 00 F2 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3E [11:23:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:23:24]wFMCommunicate OK [11:23:24]SAM_PROTO_GetShiftState done [11:23:24]FM_GetShiftState done [11:23:24]opened in 1717460629 [11:23:24]opened+sec_in_day 1717547029 [11:23:24]quantity*price = 30038 [11:23:24]sum+1 = 30039 [11:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 107 04.06.2024 11:23 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148768 ФПД: 121231456280394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112325&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148768&fm=121231456280394&tin=02508201610067®Number=0000000000092720&sum=30000 [11:23:26]StoreToDocumentArchive [11:23:26]shift 368 fd 148768 [11:23:26]save to /storage/0368/doc_00148768 [11:23:26]save last doc name /storage/0368/doc_00148768 to /storage/kkm_last_doc_name [11:23:26]save OK [11:23:26]Clear old archive folders... [11:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:26]tlvbuf is B6F290E0 [11:23:26]SAM_PROTO_ClearQueue [11:23:26]wFMCommunicate request_size=4 [11:23:26]MH_SAM_APDU [11:23:26]CAPDU: 80 09 00 00 [11:23:26]Write to MH i2c: E2 08 00 FF 0C 80 09 00 00 00 00 00 00 7D [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [11:23:26]RAPDU: 90 00 [11:23:26]wFMCommunicate OK [11:23:26]SAM_PROTO_ClearQueue done [11:23:26]KKMCreateOFDPacket [11:23:26]OFDProtocolAddRootSTLVToBuf [11:23:26]FM_MakeSignedData [11:23:26]FM_MakeSignedData [11:23:26]SAM_PROTO_SignData [11:23:26]wFMCommunicate request_size=4 [11:23:26]MH_SAM_APDU [11:23:26]CAPDU: 80 0D 01 02 [11:23:26]Write to MH i2c: E2 08 00 00 0D 80 0D 01 02 00 00 00 00 86 [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [11:23:26]RAPDU: 90 00 [11:23:26]wFMCommunicate OK [11:23:26]wFMCommunicate request_size=255 [11:23:26]MH_SAM_APDU [11:23:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2D F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 20 45 02 00 35 04 06 00 6E [11:23:26]Write to MH i2c: E2 02 01 01 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2D F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 20 45 02 00 35 04 06 00 6E 00 00 9F [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [11:23:26]RAPDU: 90 00 [11:23:26]wFMCommunicate OK [11:23:26]wFMCommunicate request_size=10 [11:23:26]MH_SAM_APDU [11:23:26]CAPDU: 80 0D 02 02 05 42 65 E3 1F 4A [11:23:26]Write to MH i2c: E2 0D 00 02 0D 80 0D 02 02 05 00 42 65 E3 1F 4A 00 00 86 [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 03 00 02 0D 00 90 00 83 [11:23:26]RAPDU: 90 00 [11:23:26]wFMCommunicate OK [11:23:26]wFMCommunicate request_size=4 [11:23:26]MH_SAM_APDU [11:23:26]CAPDU: 80 0D 03 02 [11:23:26]Write to MH i2c: E2 08 00 03 0D 80 0D 03 02 00 00 00 00 8B [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 0B 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 0B 00 03 0D 00 8B F0 66 D2 C8 CF 50 61 90 00 87 [11:23:26]RAPDU: 8B F0 66 D2 C8 CF 50 61 90 00 [11:23:26]wFMCommunicate OK [11:23:26]SAM_PROTO_SignData done [11:23:26]FM_MakeSignedData done [11:23:26]CreateOFDProtocolMessage [11:23:26]wFMCommunicate request_size=4 [11:23:26]MH_SAM_APDU [11:23:26]CAPDU: 80 11 00 00 [11:23:26]Write to MH i2c: E2 08 00 04 0D 80 11 00 00 00 00 00 00 8B [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 17 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 17 00 04 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DE [11:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:23:26]wFMCommunicate OK [11:23:26]CreateOFDProtocolMessage done [11:23:26]OFDSenderStorePacket 148768 [11:23:26]StoreOFDPacket docnum=148768 [11:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C0 46 07 01 15 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2D F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 20 45 02 00 35 04 06 00 6E 42 65 E3 1F 4A 8B F0 66 D2 C8 CF 50 61 [11:23:26]CheckFolder [11:23:26]dirname=/storage/ofd_packets [11:23:26]CheckFolder done [11:23:26]ProducePacketName [11:23:26]name=ofd_packets/00148768 [11:23:26]NVStorageSaveData ofd_packets/00148768 [11:23:26]File name is /storage/ofd_packets/00148768 [11:23:26]Write 301 bytes [11:23:26]NVStorageSaveData done [11:23:26]OFDSenderStorePacket done [11:23:26]KKMCreateOFDPacket done [11:23:26]NVStorageSaveData kkm_last_timestamp [11:23:26]File name is /storage/kkm_last_timestamp [11:23:26]Write 4 bytes [11:23:26]NVStorageSaveData done [11:23:26]ExternCall_PrintAddStr [11:23:26]wPrintStart [11:23:26]Write to MH i2c: 01 00 00 05 0D 12 [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: 01 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: 01 07 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: 01 07 00 05 0D 00 00 00 00 00 FF 0F 27 [11:23:26]RasterBufferAndPrint [11:23:26]line Счет N : (1)979697 [11:23:26]line ИНН: 02508201610067 [11:23:27]line Контрольно-Кассовый Чек [11:23:27]line ПРОДАЖА [11:23:27]line ТРК (МРК, ГНК) : 41 [11:23:27]line Товар: 2710124130 [11:23:27]line Аи-92-К-5 [11:23:27]line 4.490 * 66.90 [11:23:27]line = 300.38 [11:23:27]line НДС 12% НСП 1% [11:23:27]line > о реализуемом товаре [11:23:27]line ОКРУГЛЕНИЕ: -0.38 [11:23:27]line ИТОГО: 300.00 [11:23:27]line Внесено: 300.00 [11:23:27]line СДАЧА: 0.00 [11:23:27]line НСП 1% : 2.66 [11:23:27]line НДС 12% : 31.90 [11:23:27]line Наличными: 300.00 [11:23:27]line Безнал.: 0.00 [11:23:27]line Место: АЗС № 68 "Партнер Нефть" [11:23:27]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:23:27]line СНО: Общий режим [11:23:27]line Чек 107 04.06.2024 11:23 [11:23:27]line Смена: 368 ФФД: 1.0 [11:23:27]line ЗНМ: 0300000035 [11:23:27]line РНМ: 0000000000092720 [11:23:27]line Версия ККМ: 001 [11:23:27]line ФМ: 0000000000875057 [11:23:27]line ФД: 148768 [11:23:27]line ФПД: 121231456280394 [11:23:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112325&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148768&fm=121231456280394&tin=02508201610067®Number=0000000000092720&sum=30000 [11:23:27]OFD Sender: Processing packet 148768 [packets to send 100, broken 99] [11:23:27]ProducePacketName [11:23:27]name=ofd_packets/00148768 [11:23:27]OFD Sender: To server: pG, [11:23:27]CommunicateWithHost lk.salyk.kg:30040 [11:23:27]ConnectInit lk.salyk.kg [11:23:27]written 0, free lines is 4095 [11:23:27]Connected sock=10 [11:23:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C0 46 07 01 15 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2D F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 20 45 02 00 35 04 06 00 6E 42 65 E3 1F 4A 8B F0 66 D2 C8 CF 50 61 [11:23:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 4E 25 47 00 39 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 20 45 02 00 F4 03 04 00 51 A0 5E 66 B6 04 01 00 00 88 2A F8 3A AE ED 28 5B [11:23:27]CommunicateWithHost err = 0 [11:23:27]CheckOFDResponse [11:23:27]1017 (14) - 77093643461234 [11:23:27]1041 (16) - 0000000000875057 [11:23:27]1040 (4) - 148768 [11:23:27]1012 (4) - 04.06.2024 05:04 [11:23:27]1206 (1) - 0 [11:23:27]OFD Sender: Remove packet 148768 [11:23:27]ProducePacketName [11:23:27]name=ofd_packets/00148768 [11:23:27]NVStorageDeleteData [11:23:27]Write to MH i2c: 01 00 00 30 0D 3D [11:23:27]Write i2c OK [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: 01 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: 01 07 00 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 73 0C C3 [11:23:27]RasterBufferAndPrint [11:23:27]line [11:23:27]line [11:23:27]line [11:23:27]line [11:23:27]line [11:23:27]written 0, free lines is 3191 [11:23:27]MH_Cut [11:23:27]Write to MH i2c: D1 01 00 37 0D 01 16 [11:23:27]Write i2c OK [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: D1 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: D1 01 00 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: D1 01 00 37 0D 00 15 [11:23:27]Write to MH i2c: 01 00 00 38 0D 45 [11:23:27]Write i2c OK [11:23:27]MH_I2C_Read... [11:23:28]OFD Sender: No OFD packet to send [11:23:28]*** Cut start [11:23:28]*** Partial cut [11:23:28]*** CUTSNS_PIN = 1 [11:23:29]*** CUTSNS_PIN = 0 [11:23:29]*** Brake cut motor [11:23:29]Read from MH i2c: 01 [11:23:29]MH_I2C_Read... [11:23:29]*** Stop cut motor [11:23:29]*** Cut end [11:23:29]Read from MH i2c: 01 07 00 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: 01 07 00 38 0D 00 00 00 00 00 FF 0F 5A [11:23:29]process_action close_receipt done [11:23:29]requested_data is exist [11:23:29]produce_requested_data [11:23:29]requested_item fm.sn is exist - process it [11:23:29]wFMCommunicate request_size=4 [11:23:29]MH_SAM_APDU [11:23:29]CAPDU: 80 11 00 00 [11:23:29]Write to MH i2c: E2 08 00 39 0D 80 11 00 00 00 00 00 00 C0 [11:23:29]Write i2c OK [11:23:29]MH_I2C_Read... [11:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:29]Read from MH i2c: E2 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: E2 17 00 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: E2 17 00 39 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 13 [11:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:23:29]wFMCommunicate OK [11:23:29]requested_item fd.num is exist - process it [11:23:29]SAM_PROTO_GetFieldsCounters [11:23:29]wFMCommunicate request_size=4 [11:23:29]MH_SAM_APDU [11:23:29]CAPDU: 80 13 00 00 [11:23:29]Write to MH i2c: E2 08 00 3A 0D 80 13 00 00 00 00 00 00 C3 [11:23:29]Write i2c OK [11:23:29]MH_I2C_Read... [11:23:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:29]Read from MH i2c: E2 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: E2 62 00 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: E2 62 00 3A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 20 45 02 00 0E 04 04 00 70 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 F8 [11:23:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 20 45 02 00 0E 04 04 00 70 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 [11:23:29]wFMCommunicate OK [11:23:29]SAM_PROTO_GetFieldsCounters done [11:23:29]requested_item shift.num is exist - process it [11:23:29]requested_item shift.opened is exist - process it [11:23:29]req_shift_opened [11:23:29]FM_GetShiftState [11:23:29]SAM_PROTO_GetShiftState [11:23:29]wFMCommunicate request_size=4 [11:23:29]MH_SAM_APDU [11:23:29]CAPDU: 80 13 01 00 [11:23:29]Write to MH i2c: E2 08 00 3B 0D 80 13 01 00 00 00 00 00 C5 [11:23:29]Write i2c OK [11:23:29]MH_I2C_Read... [11:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:29]Read from MH i2c: E2 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: E2 0E 00 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: E2 0E 00 3B 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 88 [11:23:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:23:29]wFMCommunicate OK [11:23:29]SAM_PROTO_GetShiftState done [11:23:29]FM_GetShiftState done [11:23:29]req_shift_opened done [11:23:29]requested_item shift.open_date is exist - process it [11:23:29]req_shift_open_date [11:23:29]req_shift_open_date done [11:23:29]produce_requested_data done [11:23:29]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148768,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:23:29]process_action_free close_receipt [11:23:29]json_value_free [11:23:29]json_value_free done [11:23:29]process_json_proto returns [11:23:29]Send response to host [11:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148768,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:23:29]free response buf [11:23:29]execute_script done [11:23:29]execute_script returns [11:23:29]free content buf [11:23:29]Sock 9.Close socket [11:23:29]Sock 9.Thread stoped [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:48]accept exits with 7 [11:23:48]New connection [11:23:48]New thread 3067235684 created [11:23:48]Thread 3067379044 joined [11:23:48]Waiting for new connection... [11:23:48] Sock 7.Parse request [11:23:48]Sock 7.Check first char [11:23:48]Sock 7.First char is OK [11:23:48]request: POST /json_proto HTTP/1.0 [11:23:48]Method: POST [11:23:48]URL: /json_proto [11:23:48]Method is POST - this is cgi request [11:23:48]url: /json_proto [11:23:48]query_string will be loaded in cgi processing [11:23:48]execute_cgi json_proto POST (null) [11:23:48]execute_cgi path=json_proto method=POST [11:23:48]POST find Content-Length [11:23:48]Host: 172.17.38.4:8080 [11:23:48]Content-Length: 790 [11:23:48]Content-Type: application/json [11:23:48] [11:23:48]POST finish read [11:23:48]Found Content-Length = 790 [11:23:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:48]execute_script... [11:23: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)979696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:48]POST & json_proto [11:23:48]process_json_proto [11:23:48]json parsed OK: [11:23:48]protocol is kg_v1.0 [11:23:48]action value=close_receipt [11:23:48]process_action close_receipt [11:23:48]cmd_close_receipt [11:23:48]MH_GetDate [11:23:48]Write to MH i2c: F0 00 00 3C 0D 38 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: F0 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: F0 09 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: F0 09 00 3C 0D 00 45 F9 5E 66 CC 51 87 64 4B [11:23:48]GetLastDocTimeStamp 1717500205 [11:23:48]current date 1717500229 [11:23:48]FM_GetShiftState [11:23:48]SAM_PROTO_GetShiftState [11:23:48]wFMCommunicate request_size=4 [11:23:48]MH_SAM_APDU [11:23:48]CAPDU: 80 13 01 00 [11:23:48]Write to MH i2c: E2 08 00 3D 0D 80 13 01 00 00 00 00 00 C7 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 0E 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 0E 00 3D 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8A [11:23:48]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:23:48]wFMCommunicate OK [11:23:48]SAM_PROTO_GetShiftState done [11:23:48]FM_GetShiftState done [11:23:48]opened in 1717460629 [11:23:48]opened+sec_in_day 1717547029 [11:23:48]quantity*price = 50041 [11:23:48]sum+1 = 50042 [11:23:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 108 04.06.2024 11:23 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148769 ФПД: 207524335141827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112349&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148769&fm=207524335141827&tin=02508201610067®Number=0000000000092720&sum=50041 [11:23:50]StoreToDocumentArchive [11:23:50]shift 368 fd 148769 [11:23:50]save to /storage/0368/doc_00148769 [11:23:50]save last doc name /storage/0368/doc_00148769 to /storage/kkm_last_doc_name [11:23:50]save OK [11:23:50]Clear old archive folders... [11:23:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:50]tlvbuf is 00FA4C70 [11:23:50]SAM_PROTO_ClearQueue [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 09 00 00 [11:23:50]Write to MH i2c: E2 08 00 4A 0D 80 09 00 00 00 00 00 00 C9 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [11:23:50]RAPDU: 90 00 [11:23:50]wFMCommunicate OK [11:23:50]SAM_PROTO_ClearQueue done [11:23:50]KKMCreateOFDPacket [11:23:50]OFDProtocolAddRootSTLVToBuf [11:23:50]FM_MakeSignedData [11:23:50]FM_MakeSignedData [11:23:50]SAM_PROTO_SignData [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 0D 01 02 [11:23:50]Write to MH i2c: E2 08 00 4B 0D 80 0D 01 02 00 00 00 00 D1 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [11:23:50]RAPDU: 90 00 [11:23:50]wFMCommunicate OK [11:23:50]wFMCommunicate request_size=255 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6C 00 00 00 F4 03 04 00 45 F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 21 45 02 00 35 04 06 00 BC [11:23:50]Write to MH i2c: E2 02 01 4C 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 6C 00 00 00 F4 03 04 00 45 F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 21 45 02 00 35 04 06 00 BC 00 00 B0 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 4C 0D 00 90 00 CD [11:23:50]RAPDU: 90 00 [11:23:50]wFMCommunicate OK [11:23:50]wFMCommunicate request_size=10 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 0D 02 02 05 BE 06 47 43 C3 [11:23:50]Write to MH i2c: E2 0D 00 4D 0D 80 0D 02 02 05 00 BE 06 47 43 C3 00 00 EF [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [11:23:50]RAPDU: 90 00 [11:23:50]wFMCommunicate OK [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 0D 03 02 [11:23:50]Write to MH i2c: E2 08 00 4E 0D 80 0D 03 02 00 00 00 00 D6 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 0B 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 0B 00 4E 0D 00 65 84 F8 96 8E C4 15 97 90 00 4C [11:23:50]RAPDU: 65 84 F8 96 8E C4 15 97 90 00 [11:23:50]wFMCommunicate OK [11:23:50]SAM_PROTO_SignData done [11:23:50]FM_MakeSignedData done [11:23:50]CreateOFDProtocolMessage [11:23:50]wFMCommunicate request_size=4 [11:23:50]MH_SAM_APDU [11:23:50]CAPDU: 80 11 00 00 [11:23:50]Write to MH i2c: E2 08 00 4F 0D 80 11 00 00 00 00 00 00 D6 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:50]Read from MH i2c: E2 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 17 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: E2 17 00 4F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 29 [11:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:23:50]wFMCommunicate OK [11:23:50]CreateOFDProtocolMessage done [11:23:50]OFDSenderStorePacket 148769 [11:23:50]StoreOFDPacket docnum=148769 [11:23:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 95 A1 07 01 DB 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 6C 00 00 00 F4 03 04 00 45 F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 21 45 02 00 35 04 06 00 BC BE 06 47 43 C3 65 84 F8 96 8E C4 15 97 [11:23:50]CheckFolder [11:23:50]dirname=/storage/ofd_packets [11:23:50]CheckFolder done [11:23:50]ProducePacketName [11:23:50]name=ofd_packets/00148769 [11:23:50]NVStorageSaveData ofd_packets/00148769 [11:23:50]File name is /storage/ofd_packets/00148769 [11:23:50]Write 301 bytes [11:23:50]NVStorageSaveData done [11:23:50]OFDSenderStorePacket done [11:23:50]KKMCreateOFDPacket done [11:23:50]NVStorageSaveData kkm_last_timestamp [11:23:50]File name is /storage/kkm_last_timestamp [11:23:50]Write 4 bytes [11:23:50]NVStorageSaveData done [11:23:50]ExternCall_PrintAddStr [11:23:50]wPrintStart [11:23:50]Write to MH i2c: 01 00 00 50 0D 5D [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: 01 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: 01 07 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: 01 07 00 50 0D 00 00 00 00 00 FF 0F 72 [11:23:50]RasterBufferAndPrint [11:23:50]line Счет N : (1)979696 [11:23:50]line ИНН: 02508201610067 [11:23:50]line Контрольно-Кассовый Чек [11:23:50]line ПРОДАЖА [11:23:50]line ТРК (МРК, ГНК) : 31 [11:23:50]line Товар: 2710124130 [11:23:50]line Аи-92-К-5 [11:23:50]line 7.480 * 66.90 [11:23:50]line = 500.41 [11:23:50]line НДС 12% НСП 1% [11:23:50]line > о реализуемом товаре [11:23:50]line ИТОГО: 500.41 [11:23:50]line НСП 1% : 4.43 [11:23:50]line НДС 12% : 53.14 [11:23:50]line Наличными: 0.00 [11:23:50]line Безнал.: 500.41 [11:23:50]line Место: АЗС № 68 "Партнер Нефть" [11:23:50]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:23:50]line СНО: Общий режим [11:23:50]line Чек 108 04.06.2024 11:23 [11:23:50]line Смена: 368 ФФД: 1.0 [11:23:50]line ЗНМ: 0300000035 [11:23:50]line РНМ: 0000000000092720 [11:23:50]line Версия ККМ: 001 [11:23:50]line Платежная система: KICB Банк [11:23:50]line ФМ: 0000000000875057 [11:23:50]line ФД: 148769 [11:23:50]line ФПД: 207524335141827 [11:23:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112349&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148769&fm=207524335141827&tin=02508201610067®Number=0000000000092720&sum=50041 [11:23:50]OFD Sender: Processing packet 148769 [packets to send 100, broken 99] [11:23:50]ProducePacketName [11:23:50]name=ofd_packets/00148769 [11:23:50]OFD Sender: To server: pG, [11:23:50]CommunicateWithHost lk.salyk.kg:30040 [11:23:50]ConnectInit lk.salyk.kg [11:23:50]written 0, free lines is 4095 [11:23:50]Connected sock=9 [11:23:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 95 A1 07 01 DB 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 6C 00 00 00 F4 03 04 00 45 F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 21 45 02 00 35 04 06 00 BC BE 06 47 43 C3 65 84 F8 96 8E C4 15 97 [11:23:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9D 00 47 00 45 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 38 37 35 30 35 37 10 04 04 00 21 45 02 00 F4 03 04 00 69 A0 5E 66 B6 04 01 00 00 DB F9 C6 BD D1 3D 00 B8 [11:23:51]CommunicateWithHost err = 0 [11:23:51]CheckOFDResponse [11:23:51]1017 (14) - 77093643461234 [11:23:51]1041 (16) - 0000000000875057 [11:23:51]1040 (4) - 148769 [11:23:51]1012 (4) - 04.06.2024 05:04 [11:23:51]1206 (1) - 0 [11:23:51]OFD Sender: Remove packet 148769 [11:23:51]ProducePacketName [11:23:51]name=ofd_packets/00148769 [11:23:51]NVStorageDeleteData [11:23:51]Write to MH i2c: 01 00 00 7A 0D 87 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: 01 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: 01 07 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: 01 07 00 7A 0D 00 00 00 00 00 86 0C 20 [11:23:51]RasterBufferAndPrint [11:23:51]line [11:23:51]line [11:23:51]line [11:23:51]line [11:23:51]line [11:23:51]written 0, free lines is 3210 [11:23:51]MH_Cut [11:23:51]Write to MH i2c: D1 01 00 81 0D 01 60 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: D1 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: D1 01 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: D1 01 00 81 0D 00 5F [11:23:51]Write to MH i2c: 01 00 00 82 0D 8F [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]OFD Sender: No OFD packet to send [11:23:52]*** Cut start [11:23:52]*** Partial cut [11:23:52]*** CUTSNS_PIN = 1 [11:23:52]*** CUTSNS_PIN = 0 [11:23:52]*** Brake cut motor [11:23:53]Read from MH i2c: 01 [11:23:53]MH_I2C_Read... [11:23:53]*** Stop cut motor [11:23:53]*** Cut end [11:23:53]Read from MH i2c: 01 07 00 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: 01 07 00 82 0D 00 00 00 00 00 FF 0F A4 [11:23:53]process_action close_receipt done [11:23:53]requested_data is exist [11:23:53]produce_requested_data [11:23:53]requested_item fm.sn is exist - process it [11:23:53]wFMCommunicate request_size=4 [11:23:53]MH_SAM_APDU [11:23:53]CAPDU: 80 11 00 00 [11:23:53]Write to MH i2c: E2 08 00 83 0D 80 11 00 00 00 00 00 00 0A [11:23:53]Write i2c OK [11:23:53]MH_I2C_Read... [11:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:53]Read from MH i2c: E2 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: E2 17 00 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: E2 17 00 83 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5D [11:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:23:53]wFMCommunicate OK [11:23:53]requested_item fd.num is exist - process it [11:23:53]SAM_PROTO_GetFieldsCounters [11:23:53]wFMCommunicate request_size=4 [11:23:53]MH_SAM_APDU [11:23:53]CAPDU: 80 13 00 00 [11:23:53]Write to MH i2c: E2 08 00 84 0D 80 13 00 00 00 00 00 00 0D [11:23:53]Write i2c OK [11:23:53]MH_I2C_Read... [11:23:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:53]Read from MH i2c: E2 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: E2 62 00 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: E2 62 00 84 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 21 45 02 00 0E 04 04 00 70 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 46 [11:23:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 21 45 02 00 0E 04 04 00 70 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 [11:23:53]wFMCommunicate OK [11:23:53]SAM_PROTO_GetFieldsCounters done [11:23:53]requested_item shift.num is exist - process it [11:23:53]requested_item shift.opened is exist - process it [11:23:53]req_shift_opened [11:23:53]FM_GetShiftState [11:23:53]SAM_PROTO_GetShiftState [11:23:53]wFMCommunicate request_size=4 [11:23:53]MH_SAM_APDU [11:23:53]CAPDU: 80 13 01 00 [11:23:53]Write to MH i2c: E2 08 00 85 0D 80 13 01 00 00 00 00 00 0F [11:23:53]Write i2c OK [11:23:53]MH_I2C_Read... [11:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:53]Read from MH i2c: E2 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: E2 0E 00 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: E2 0E 00 85 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D2 [11:23:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:23:53]wFMCommunicate OK [11:23:53]SAM_PROTO_GetShiftState done [11:23:53]FM_GetShiftState done [11:23:53]req_shift_opened done [11:23:53]requested_item shift.open_date is exist - process it [11:23:53]req_shift_open_date [11:23:53]req_shift_open_date done [11:23:53]produce_requested_data done [11:23:53]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148769,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:23:53]process_action_free close_receipt [11:23:53]json_value_free [11:23:53]json_value_free done [11:23:53]process_json_proto returns [11:23:53]Send response to host [11:23:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148769,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:23:53]free response buf [11:23:53]execute_script done [11:23:53]execute_script returns [11:23:53]free content buf [11:23:53]Sock 7.Close socket [11:23:53]Sock 7.Thread stoped [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]accept exits with 10 [11:25:11]New connection [11:25:11]New thread 3067379044 created [11:25:11]Thread 3067235684 joined [11:25:11]Waiting for new connection... [11:25:11] Sock 10.Parse request [11:25:11]Sock 10.Check first char [11:25:11]Sock 10.First char is OK [11:25:11]request: POST /json_proto HTTP/1.0 [11:25:11]Method: POST [11:25:11]URL: /json_proto [11:25:11]Method is POST - this is cgi request [11:25:11]url: /json_proto [11:25:11]query_string will be loaded in cgi processing [11:25:11]execute_cgi json_proto POST (null) [11:25:11]execute_cgi path=json_proto method=POST [11:25:11]POST find Content-Length [11:25:11]Host: 172.17.38.4:8080 [11:25:11]Content-Length: 677 [11:25:11]Content-Type: application/json [11:25:11] [11:25:11]POST finish read [11:25:11]Found Content-Length = 677 [11:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:11]execute_script... [11:25: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)979698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:11]POST & json_proto [11:25:11]process_json_proto [11:25:11]json parsed OK: [11:25:11]protocol is kg_v1.0 [11:25:11]action value=close_receipt [11:25:11]process_action close_receipt [11:25:11]cmd_close_receipt [11:25:11]MH_GetDate [11:25:11]Write to MH i2c: F0 00 00 86 0D 82 [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: F0 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: F0 09 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: F0 09 00 86 0D 00 98 F9 5E 66 CC 51 87 64 E8 [11:25:11]GetLastDocTimeStamp 1717500229 [11:25:11]current date 1717500312 [11:25:11]FM_GetShiftState [11:25:11]SAM_PROTO_GetShiftState [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 13 01 00 [11:25:11]Write to MH i2c: E2 08 00 87 0D 80 13 01 00 00 00 00 00 11 [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]OFD Sender: No OFD packet to send [11:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 0E 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 0E 00 87 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D4 [11:25:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:25:11]wFMCommunicate OK [11:25:11]SAM_PROTO_GetShiftState done [11:25:11]FM_GetShiftState done [11:25:11]opened in 1717460629 [11:25:11]opened+sec_in_day 1717547029 [11:25:11]quantity*price = 20003 [11:25:11]sum+1 = 20004 [11:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 109 04.06.2024 11:25 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148770 ФПД: 180622079319011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112512&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148770&fm=180622079319011&tin=02508201610067®Number=0000000000092720&sum=20000 [11:25:12]StoreToDocumentArchive [11:25:12]shift 368 fd 148770 [11:25:12]save to /storage/0368/doc_00148770 [11:25:12]save last doc name /storage/0368/doc_00148770 to /storage/kkm_last_doc_name [11:25:12]save OK [11:25:12]Clear old archive folders... [11:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:12]tlvbuf is 00FD5940 [11:25:12]SAM_PROTO_ClearQueue [11:25:12]wFMCommunicate request_size=4 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 09 00 00 [11:25:12]Write to MH i2c: E2 08 00 94 0D 80 09 00 00 00 00 00 00 13 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:12]Read from MH i2c: E2 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 03 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 03 00 94 0D 00 90 00 15 [11:25:12]RAPDU: 90 00 [11:25:12]wFMCommunicate OK [11:25:12]SAM_PROTO_ClearQueue done [11:25:12]KKMCreateOFDPacket [11:25:12]OFDProtocolAddRootSTLVToBuf [11:25:12]FM_MakeSignedData [11:25:12]FM_MakeSignedData [11:25:12]SAM_PROTO_SignData [11:25:12]wFMCommunicate request_size=4 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 0D 01 02 [11:25:12]Write to MH i2c: E2 08 00 95 0D 80 0D 01 02 00 00 00 00 1B [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [11:25:13]RAPDU: 90 00 [11:25:13]wFMCommunicate OK [11:25:13]wFMCommunicate request_size=255 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 98 F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 22 45 02 00 35 04 06 00 A4 [11:25:13]Write to MH i2c: E2 02 01 96 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 98 F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 22 45 02 00 35 04 06 00 A4 00 00 A7 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 96 0D 00 90 00 17 [11:25:13]RAPDU: 90 00 [11:25:13]wFMCommunicate OK [11:25:13]wFMCommunicate request_size=10 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 0D 02 02 05 46 5A E0 5B E3 [11:25:13]Write to MH i2c: E2 0D 00 97 0D 80 0D 02 02 05 00 46 5A E0 5B E3 00 00 E6 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 97 0D 00 90 00 18 [11:25:13]RAPDU: 90 00 [11:25:13]wFMCommunicate OK [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 0D 03 02 [11:25:13]Write to MH i2c: E2 08 00 98 0D 80 0D 03 02 00 00 00 00 20 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0B 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0B 00 98 0D 00 70 72 F2 D5 0E F6 04 5B 90 00 2D [11:25:13]RAPDU: 70 72 F2 D5 0E F6 04 5B 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_SignData done [11:25:13]FM_MakeSignedData done [11:25:13]CreateOFDProtocolMessage [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 11 00 00 [11:25:13]Write to MH i2c: E2 08 00 99 0D 80 11 00 00 00 00 00 00 20 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 17 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 17 00 99 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 73 [11:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:25:13]wFMCommunicate OK [11:25:13]CreateOFDProtocolMessage done [11:25:13]OFDSenderStorePacket 148770 [11:25:13]StoreOFDPacket docnum=148770 [11:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B3 4E 07 01 03 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 98 F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 22 45 02 00 35 04 06 00 A4 46 5A E0 5B E3 70 72 F2 D5 0E F6 04 5B [11:25:13]CheckFolder [11:25:13]dirname=/storage/ofd_packets [11:25:13]CheckFolder done [11:25:13]ProducePacketName [11:25:13]name=ofd_packets/00148770 [11:25:13]NVStorageSaveData ofd_packets/00148770 [11:25:13]File name is /storage/ofd_packets/00148770 [11:25:13]Write 301 bytes [11:25:13]NVStorageSaveData done [11:25:13]OFDSenderStorePacket done [11:25:13]KKMCreateOFDPacket done [11:25:13]NVStorageSaveData kkm_last_timestamp [11:25:13]File name is /storage/kkm_last_timestamp [11:25:13]Write 4 bytes [11:25:13]NVStorageSaveData done [11:25:13]ExternCall_PrintAddStr [11:25:13]wPrintStart [11:25:13]Write to MH i2c: 01 00 00 9A 0D A7 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 9A 0D 00 00 00 00 00 FF 0F BC [11:25:13]RasterBufferAndPrint [11:25:13]line Счет N : (1)979698 [11:25:13]line ИНН: 02508201610067 [11:25:13]line Контрольно-Кассовый Чек [11:25:13]line ПРОДАЖА [11:25:13]line ТРК (МРК, ГНК) : 41 [11:25:13]line Товар: 2710124130 [11:25:13]line Аи-92-К-5 [11:25:13]line 2.990 * 66.90 [11:25:13]line = 200.03 [11:25:13]line НДС 12% НСП 1% [11:25:13]line > о реализуемом товаре [11:25:13]line ОКРУГЛЕНИЕ: -0.03 [11:25:13]line ИТОГО: 200.00 [11:25:13]line Внесено: 200.00 [11:25:13]line СДАЧА: 0.00 [11:25:13]line НСП 1% : 1.77 [11:25:13]line НДС 12% : 21.24 [11:25:13]line Наличными: 200.00 [11:25:13]line Безнал.: 0.00 [11:25:13]line Место: АЗС № 68 "Партнер Нефть" [11:25:13]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:25:13]line СНО: Общий режим [11:25:13]line Чек 109 04.06.2024 11:25 [11:25:13]line Смена: 368 ФФД: 1.0 [11:25:13]line ЗНМ: 0300000035 [11:25:13]line РНМ: 0000000000092720 [11:25:13]line Версия ККМ: 001 [11:25:13]line ФМ: 0000000000875057 [11:25:13]line ФД: 148770 [11:25:13]line ФПД: 180622079319011 [11:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112512&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148770&fm=180622079319011&tin=02508201610067®Number=0000000000092720&sum=20000 [11:25:13]OFD Sender: Processing packet 148770 [packets to send 100, broken 99] [11:25:13]ProducePacketName [11:25:13]name=ofd_packets/00148770 [11:25:13]OFD Sender: To server: pG, [11:25:13]CommunicateWithHost lk.salyk.kg:30040 [11:25:13]ConnectInit lk.salyk.kg [11:25:13]written 0, free lines is 4095 [11:25:13]Connected sock=9 [11:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B3 4E 07 01 03 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 98 F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 22 45 02 00 35 04 06 00 A4 46 5A E0 5B E3 70 72 F2 D5 0E F6 04 5B [11:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8B 9D 47 00 F0 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 22 45 02 00 F4 03 04 00 BC A0 5E 66 B6 04 01 00 00 4E CA D9 07 4D 56 FB 02 [11:25:14]CommunicateWithHost err = 0 [11:25:14]CheckOFDResponse [11:25:14]1017 (14) - 77093643461234 [11:25:14]1041 (16) - 0000000000875057 [11:25:14]1040 (4) - 148770 [11:25:14]1012 (4) - 04.06.2024 05:06 [11:25:14]1206 (1) - 0 [11:25:14]OFD Sender: Remove packet 148770 [11:25:14]ProducePacketName [11:25:14]name=ofd_packets/00148770 [11:25:14]NVStorageDeleteData [11:25:14]Write to MH i2c: 01 00 00 C5 0D D2 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: 01 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: 01 07 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: 01 07 00 C5 0D 00 00 00 00 00 6B 0C 50 [11:25:14]RasterBufferAndPrint [11:25:14]line [11:25:14]line [11:25:14]line [11:25:14]line [11:25:14]line [11:25:14]written 0, free lines is 3182 [11:25:14]MH_Cut [11:25:14]Write to MH i2c: D1 01 00 CC 0D 01 AB [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: D1 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: D1 01 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: D1 01 00 CC 0D 00 AA [11:25:14]Write to MH i2c: 01 00 00 CD 0D DA [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]OFD Sender: No OFD packet to send [11:25:15]*** Cut start [11:25:15]*** Partial cut [11:25:15]*** CUTSNS_PIN = 1 [11:25:15]*** CUTSNS_PIN = 0 [11:25:15]*** Brake cut motor [11:25:16]Read from MH i2c: 01 [11:25:16]MH_I2C_Read... [11:25:16]*** Stop cut motor [11:25:16]*** Cut end [11:25:16]Read from MH i2c: 01 07 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: 01 07 00 CD 0D 00 00 00 00 00 FF 0F EF [11:25:16]process_action close_receipt done [11:25:16]requested_data is exist [11:25:16]produce_requested_data [11:25:16]requested_item fm.sn is exist - process it [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 11 00 00 [11:25:16]Write to MH i2c: E2 08 00 CE 0D 80 11 00 00 00 00 00 00 55 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 17 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 17 00 CE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A8 [11:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:25:16]wFMCommunicate OK [11:25:16]requested_item fd.num is exist - process it [11:25:16]SAM_PROTO_GetFieldsCounters [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 13 00 00 [11:25:16]Write to MH i2c: E2 08 00 CF 0D 80 13 00 00 00 00 00 00 58 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 62 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 62 00 CF 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 22 45 02 00 0E 04 04 00 70 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 95 [11:25:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 22 45 02 00 0E 04 04 00 70 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 [11:25:16]wFMCommunicate OK [11:25:16]SAM_PROTO_GetFieldsCounters done [11:25:16]requested_item shift.num is exist - process it [11:25:16]requested_item shift.opened is exist - process it [11:25:16]req_shift_opened [11:25:16]FM_GetShiftState [11:25:16]SAM_PROTO_GetShiftState [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 13 01 00 [11:25:16]Write to MH i2c: E2 08 00 D0 0D 80 13 01 00 00 00 00 00 5A [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 0E 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 0E 00 D0 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1D [11:25:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:25:16]wFMCommunicate OK [11:25:16]SAM_PROTO_GetShiftState done [11:25:16]FM_GetShiftState done [11:25:16]req_shift_opened done [11:25:16]requested_item shift.open_date is exist - process it [11:25:16]req_shift_open_date [11:25:16]req_shift_open_date done [11:25:16]produce_requested_data done [11:25:16]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148770,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:25:16]process_action_free close_receipt [11:25:16]json_value_free [11:25:16]json_value_free done [11:25:16]process_json_proto returns [11:25:16]Send response to host [11:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148770,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:25:16]free response buf [11:25:16]execute_script done [11:25:16]execute_script returns [11:25:16]free content buf [11:25:16]Sock 10.Close socket [11:25:16]Sock 10.Thread stoped [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]accept exits with 7 [11:26:34]New connection [11:26:34]New thread 3067235684 created [11:26:34]Thread 3067379044 joined [11:26:34]Waiting for new connection... [11:26:34] Sock 7.Parse request [11:26:34]Sock 7.Check first char [11:26:34]Sock 7.First char is OK [11:26:34]request: POST /json_proto HTTP/1.0 [11:26:34]Method: POST [11:26:34]URL: /json_proto [11:26:34]Method is POST - this is cgi request [11:26:34]url: /json_proto [11:26:34]query_string will be loaded in cgi processing [11:26:34]execute_cgi json_proto POST (null) [11:26:34]execute_cgi path=json_proto method=POST [11:26:34]POST find Content-Length [11:26:34]Host: 172.17.38.4:8080 [11:26:34]Content-Length: 677 [11:26:34]Content-Type: application/json [11:26:34] [11:26:34]POST finish read [11:26:34]Found Content-Length = 677 [11:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:34]execute_script... [11:26:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:34]POST & json_proto [11:26:34]process_json_proto [11:26:34]json parsed OK: [11:26:34]protocol is kg_v1.0 [11:26:34]action value=close_receipt [11:26:34]process_action close_receipt [11:26:34]cmd_close_receipt [11:26:34]MH_GetDate [11:26:34]Write to MH i2c: F0 00 00 D1 0D CD [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: F0 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: F0 09 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: F0 09 00 D1 0D 00 EA F9 5E 66 CC 51 87 64 85 [11:26:34]GetLastDocTimeStamp 1717500312 [11:26:34]current date 1717500394 [11:26:34]FM_GetShiftState [11:26:34]SAM_PROTO_GetShiftState [11:26:34]wFMCommunicate request_size=4 [11:26:34]MH_SAM_APDU [11:26:34]CAPDU: 80 13 01 00 [11:26:34]Write to MH i2c: E2 08 00 D2 0D 80 13 01 00 00 00 00 00 5C [11:26:34]Write i2c OK [11:26:34]MH_I2C_Read... [11:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:34]Read from MH i2c: E2 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 0E 00 [11:26:34]MH_I2C_Read... [11:26:34]Read from MH i2c: E2 0E 00 D2 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1F [11:26:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:26:34]wFMCommunicate OK [11:26:34]SAM_PROTO_GetShiftState done [11:26:34]FM_GetShiftState done [11:26:34]opened in 1717460629 [11:26:34]opened+sec_in_day 1717547029 [11:26:34]quantity*price = 30038 [11:26:34]sum+1 = 30039 [11:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 110 04.06.2024 11:26 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148771 ФПД: 271033547456328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112634&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148771&fm=271033547456328&tin=02508201610067®Number=0000000000092720&sum=30000 [11:26:35]StoreToDocumentArchive [11:26:35]shift 368 fd 148771 [11:26:35]save to /storage/0368/doc_00148771 [11:26:35]save last doc name /storage/0368/doc_00148771 to /storage/kkm_last_doc_name [11:26:35]save OK [11:26:35]Clear old archive folders... [11:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:35]tlvbuf is 00FA0AC0 [11:26:35]SAM_PROTO_ClearQueue [11:26:35]wFMCommunicate request_size=4 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 09 00 00 [11:26:35]Write to MH i2c: E2 08 00 DF 0D 80 09 00 00 00 00 00 00 5E [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 03 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [11:26:35]RAPDU: 90 00 [11:26:35]wFMCommunicate OK [11:26:35]SAM_PROTO_ClearQueue done [11:26:35]KKMCreateOFDPacket [11:26:35]OFDProtocolAddRootSTLVToBuf [11:26:35]FM_MakeSignedData [11:26:35]FM_MakeSignedData [11:26:35]SAM_PROTO_SignData [11:26:35]wFMCommunicate request_size=4 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 0D 01 02 [11:26:35]Write to MH i2c: E2 08 00 E0 0D 80 0D 01 02 00 00 00 00 66 [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 03 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [11:26:35]RAPDU: 90 00 [11:26:35]wFMCommunicate OK [11:26:35]wFMCommunicate request_size=255 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 EA F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 23 45 02 00 35 04 06 00 F6 [11:26:35]Write to MH i2c: E2 02 01 E1 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 EA F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 23 45 02 00 35 04 06 00 F6 00 00 CA [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 03 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 03 00 E1 0D 00 90 00 62 [11:26:35]RAPDU: 90 00 [11:26:35]wFMCommunicate OK [11:26:35]wFMCommunicate request_size=10 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 0D 02 02 05 80 EA 51 7F 48 [11:26:35]Write to MH i2c: E2 0D 00 E2 0D 80 0D 02 02 05 00 80 EA 51 7F 48 00 00 F5 [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 03 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 03 00 E2 0D 00 90 00 63 [11:26:35]RAPDU: 90 00 [11:26:35]wFMCommunicate OK [11:26:35]wFMCommunicate request_size=4 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 0D 03 02 [11:26:35]Write to MH i2c: E2 08 00 E3 0D 80 0D 03 02 00 00 00 00 6B [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 0B 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 0B 00 E3 0D 00 44 BD A4 8D 85 A0 A0 02 90 00 65 [11:26:35]RAPDU: 44 BD A4 8D 85 A0 A0 02 90 00 [11:26:35]wFMCommunicate OK [11:26:35]SAM_PROTO_SignData done [11:26:35]FM_MakeSignedData done [11:26:35]CreateOFDProtocolMessage [11:26:35]wFMCommunicate request_size=4 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 11 00 00 [11:26:35]Write to MH i2c: E2 08 00 E4 0D 80 11 00 00 00 00 00 00 6B [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:36]Read from MH i2c: E2 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 17 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 17 00 E4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BE [11:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:26:36]wFMCommunicate OK [11:26:36]CreateOFDProtocolMessage done [11:26:36]OFDSenderStorePacket 148771 [11:26:36]StoreOFDPacket docnum=148771 [11:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A6 DC 07 01 A4 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 EA F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 23 45 02 00 35 04 06 00 F6 80 EA 51 7F 48 44 BD A4 8D 85 A0 A0 02 [11:26:36]CheckFolder [11:26:36]dirname=/storage/ofd_packets [11:26:36]CheckFolder done [11:26:36]ProducePacketName [11:26:36]name=ofd_packets/00148771 [11:26:36]NVStorageSaveData ofd_packets/00148771 [11:26:36]File name is /storage/ofd_packets/00148771 [11:26:36]Write 301 bytes [11:26:36]NVStorageSaveData done [11:26:36]OFDSenderStorePacket done [11:26:36]KKMCreateOFDPacket done [11:26:36]NVStorageSaveData kkm_last_timestamp [11:26:36]File name is /storage/kkm_last_timestamp [11:26:36]Write 4 bytes [11:26:36]NVStorageSaveData done [11:26:36]ExternCall_PrintAddStr [11:26:36]wPrintStart [11:26:36]Write to MH i2c: 01 00 00 E5 0D F2 [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: 01 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: 01 07 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: 01 07 00 E5 0D 00 00 00 00 00 FF 0F 07 [11:26:36]RasterBufferAndPrint [11:26:36]line Счет N : (1)979699 [11:26:36]line ИНН: 02508201610067 [11:26:36]line Контрольно-Кассовый Чек [11:26:36]line ПРОДАЖА [11:26:36]line ТРК (МРК, ГНК) : 12 [11:26:36]line Товар: 2710124130 [11:26:36]line Аи-92-К-5 [11:26:36]line 4.490 * 66.90 [11:26:36]line = 300.38 [11:26:36]line НДС 12% НСП 1% [11:26:36]line > о реализуемом товаре [11:26:36]line ОКРУГЛЕНИЕ: -0.38 [11:26:36]line ИТОГО: 300.00 [11:26:36]line Внесено: 300.00 [11:26:36]line СДАЧА: 0.00 [11:26:36]line НСП 1% : 2.66 [11:26:36]line НДС 12% : 31.90 [11:26:36]line Наличными: 300.00 [11:26:36]line Безнал.: 0.00 [11:26:36]line Место: АЗС № 68 "Партнер Нефть" [11:26:36]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:26:36]line СНО: Общий режим [11:26:36]line Чек 110 04.06.2024 11:26 [11:26:36]line Смена: 368 ФФД: 1.0 [11:26:36]line ЗНМ: 0300000035 [11:26:36]line РНМ: 0000000000092720 [11:26:36]line Версия ККМ: 001 [11:26:36]line ФМ: 0000000000875057 [11:26:36]line ФД: 148771 [11:26:36]line ФПД: 271033547456328 [11:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112634&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148771&fm=271033547456328&tin=02508201610067®Number=0000000000092720&sum=30000 [11:26:36]OFD Sender: Processing packet 148771 [packets to send 100, broken 99] [11:26:36]ProducePacketName [11:26:36]name=ofd_packets/00148771 [11:26:36]OFD Sender: To server: pG, [11:26:36]CommunicateWithHost lk.salyk.kg:30040 [11:26:36]ConnectInit lk.salyk.kg [11:26:36]written 0, free lines is 4095 [11:26:36]Connected sock=10 [11:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A6 DC 07 01 A4 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 EA F9 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 23 45 02 00 35 04 06 00 F6 80 EA 51 7F 48 44 BD A4 8D 85 A0 A0 02 [11:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1D 5E 47 00 47 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 23 45 02 00 F4 03 04 00 0F A1 5E 66 B6 04 01 00 00 74 E7 1B 7B A2 86 A9 04 [11:26:36]CommunicateWithHost err = 0 [11:26:36]CheckOFDResponse [11:26:36]1017 (14) - 77093643461234 [11:26:36]1041 (16) - 0000000000875057 [11:26:36]1040 (4) - 148771 [11:26:36]1012 (4) - 04.06.2024 05:07 [11:26:36]1206 (1) - 0 [11:26:36]OFD Sender: Remove packet 148771 [11:26:36]ProducePacketName [11:26:36]name=ofd_packets/00148771 [11:26:36]NVStorageDeleteData [11:26:36]Write to MH i2c: 01 00 00 10 0E 1E [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: 01 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: 01 07 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: 01 07 00 10 0E 00 00 00 00 00 70 0C A1 [11:26:36]RasterBufferAndPrint [11:26:36]line [11:26:36]line [11:26:36]line [11:26:36]line [11:26:36]line [11:26:36]written 0, free lines is 3187 [11:26:36]MH_Cut [11:26:36]Write to MH i2c: D1 01 00 17 0E 01 F7 [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: D1 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: D1 01 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: D1 01 00 17 0E 00 F6 [11:26:36]Write to MH i2c: 01 00 00 18 0E 26 [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:37]OFD Sender: No OFD packet to send [11:26:38]*** Cut start [11:26:38]*** Partial cut [11:26:38]*** CUTSNS_PIN = 1 [11:26:38]*** CUTSNS_PIN = 0 [11:26:38]*** Brake cut motor [11:26:38]Read from MH i2c: 01 [11:26:38]MH_I2C_Read... [11:26:38]*** Stop cut motor [11:26:38]*** Cut end [11:26:38]Read from MH i2c: 01 07 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: 01 07 00 18 0E 00 00 00 00 00 FF 0F 3B [11:26:38]process_action close_receipt done [11:26:38]requested_data is exist [11:26:38]produce_requested_data [11:26:38]requested_item fm.sn is exist - process it [11:26:38]wFMCommunicate request_size=4 [11:26:38]MH_SAM_APDU [11:26:38]CAPDU: 80 11 00 00 [11:26:38]Write to MH i2c: E2 08 00 19 0E 80 11 00 00 00 00 00 00 A1 [11:26:38]Write i2c OK [11:26:38]MH_I2C_Read... [11:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:38]Read from MH i2c: E2 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 17 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 17 00 19 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F4 [11:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:26:38]wFMCommunicate OK [11:26:38]requested_item fd.num is exist - process it [11:26:38]SAM_PROTO_GetFieldsCounters [11:26:38]wFMCommunicate request_size=4 [11:26:38]MH_SAM_APDU [11:26:38]CAPDU: 80 13 00 00 [11:26:38]Write to MH i2c: E2 08 00 1A 0E 80 13 00 00 00 00 00 00 A4 [11:26:38]Write i2c OK [11:26:38]MH_I2C_Read... [11:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:38]Read from MH i2c: E2 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 62 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 62 00 1A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 23 45 02 00 0E 04 04 00 70 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 E5 [11:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 23 45 02 00 0E 04 04 00 70 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 [11:26:38]wFMCommunicate OK [11:26:38]SAM_PROTO_GetFieldsCounters done [11:26:38]requested_item shift.num is exist - process it [11:26:38]requested_item shift.opened is exist - process it [11:26:38]req_shift_opened [11:26:38]FM_GetShiftState [11:26:38]SAM_PROTO_GetShiftState [11:26:38]wFMCommunicate request_size=4 [11:26:38]MH_SAM_APDU [11:26:38]CAPDU: 80 13 01 00 [11:26:38]Write to MH i2c: E2 08 00 1B 0E 80 13 01 00 00 00 00 00 A6 [11:26:38]Write i2c OK [11:26:38]MH_I2C_Read... [11:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:38]Read from MH i2c: E2 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 0E 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 0E 00 1B 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 69 [11:26:38]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:26:38]wFMCommunicate OK [11:26:38]SAM_PROTO_GetShiftState done [11:26:38]FM_GetShiftState done [11:26:38]req_shift_opened done [11:26:38]requested_item shift.open_date is exist - process it [11:26:38]req_shift_open_date [11:26:38]req_shift_open_date done [11:26:38]produce_requested_data done [11:26:38]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148771,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:26:38]process_action_free close_receipt [11:26:38]json_value_free [11:26:38]json_value_free done [11:26:38]process_json_proto returns [11:26:38]Send response to host [11:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148771,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:26:38]free response buf [11:26:38]execute_script done [11:26:38]execute_script returns [11:26:38]free content buf [11:26:38]Sock 7.Close socket [11:26:38]Sock 7.Thread stoped [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:56]accept exits with 9 [11:26:56]New connection [11:26:56]New thread 3067379044 created [11:26:56]Thread 3067235684 joined [11:26:56]Waiting for new connection... [11:26:56] Sock 9.Parse request [11:26:56]Sock 9.Check first char [11:26:56]Sock 9.First char is OK [11:26:56]request: POST /json_proto HTTP/1.0 [11:26:56]Method: POST [11:26:56]URL: /json_proto [11:26:56]Method is POST - this is cgi request [11:26:56]url: /json_proto [11:26:56]query_string will be loaded in cgi processing [11:26:56]execute_cgi json_proto POST (null) [11:26:56]execute_cgi path=json_proto method=POST [11:26:56]POST find Content-Length [11:26:56]Host: 172.17.38.4:8080 [11:26:56]Content-Length: 718 [11:26:56]Content-Type: application/json [11:26:56] [11:26:56]POST finish read [11:26:56]Found Content-Length = 718 [11:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11900", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:56]execute_script... [11:26:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11900", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:56]POST & json_proto [11:26:56]process_json_proto [11:26:56]json parsed OK: [11:26:56]protocol is kg_v1.0 [11:26:56]action value=close_receipt [11:26:56]process_action close_receipt [11:26:56]cmd_close_receipt [11:26:56]MH_GetDate [11:26:56]Write to MH i2c: F0 00 00 1C 0E 19 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: F0 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: F0 09 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: F0 09 00 1C 0E 00 00 FA 5E 66 CC 51 87 64 E8 [11:26:56]GetLastDocTimeStamp 1717500394 [11:26:56]current date 1717500416 [11:26:56]FM_GetShiftState [11:26:56]SAM_PROTO_GetShiftState [11:26:56]wFMCommunicate request_size=4 [11:26:56]MH_SAM_APDU [11:26:56]CAPDU: 80 13 01 00 [11:26:56]Write to MH i2c: E2 08 00 1D 0E 80 13 01 00 00 00 00 00 A8 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:56]Read from MH i2c: E2 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 0E 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 0E 00 1D 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6B [11:26:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:26:56]wFMCommunicate OK [11:26:56]SAM_PROTO_GetShiftState done [11:26:56]FM_GetShiftState done [11:26:56]opened in 1717460629 [11:26:56]opened+sec_in_day 1717547029 [11:26:56]quantity*price = 13000 [11:26:56]sum+1 = 13001 [11:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 111 04.06.2024 11:26 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148772 ФПД: 68558093957786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112657&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148772&fm=68558093957786&tin=02508201610067®Number=0000000000092720&sum=13000 0 [11:26:57]StoreToDocumentArchive [11:26:57]shift 368 fd 148772 [11:26:57]save to /storage/0368/doc_00148772 [11:26:57]save last doc name /storage/0368/doc_00148772 to /storage/kkm_last_doc_name [11:26:57]save OK [11:26:57]Clear old archive folders... [11:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:26:57]tlvbuf is 00FDA340 [11:26:57]SAM_PROTO_ClearQueue [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 09 00 00 [11:26:57]Write to MH i2c: E2 08 00 2A 0E 80 09 00 00 00 00 00 00 AA [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [11:26:57]RAPDU: 90 00 [11:26:57]wFMCommunicate OK [11:26:57]SAM_PROTO_ClearQueue done [11:26:57]KKMCreateOFDPacket [11:26:57]OFDProtocolAddRootSTLVToBuf [11:26:57]FM_MakeSignedData [11:26:57]FM_MakeSignedData [11:26:57]SAM_PROTO_SignData [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 0D 01 02 [11:26:57]Write to MH i2c: E2 08 00 2B 0E 80 0D 01 02 00 00 00 00 B2 [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [11:26:57]RAPDU: 90 00 [11:26:57]wFMCommunicate OK [11:26:57]wFMCommunicate request_size=255 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 01 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 24 45 02 00 35 04 06 00 [11:26:57]Write to MH i2c: E2 02 01 2C 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 01 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 24 45 02 00 35 04 06 00 00 00 D0 [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 2C 0E 00 90 00 AE [11:26:57]RAPDU: 90 00 [11:26:57]wFMCommunicate OK [11:26:57]wFMCommunicate request_size=11 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 0D 02 02 06 3E 5A 6C D6 3A 9A [11:26:57]Write to MH i2c: E2 0E 00 2D 0E 80 0D 02 02 06 00 3E 5A 6C D6 3A 9A 00 00 6F [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 2D 0E 00 90 00 AF [11:26:57]RAPDU: 90 00 [11:26:57]wFMCommunicate OK [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 0D 03 02 [11:26:57]Write to MH i2c: E2 08 00 2E 0E 80 0D 03 02 00 00 00 00 B7 [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:58]Read from MH i2c: E2 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 0B 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 0B 00 2E 0E 00 6F 9B FD B9 97 42 BD EE 90 00 FC [11:26:58]RAPDU: 6F 9B FD B9 97 42 BD EE 90 00 [11:26:58]wFMCommunicate OK [11:26:58]SAM_PROTO_SignData done [11:26:58]FM_MakeSignedData done [11:26:58]CreateOFDProtocolMessage [11:26:58]wFMCommunicate request_size=4 [11:26:58]MH_SAM_APDU [11:26:58]CAPDU: 80 11 00 00 [11:26:58]Write to MH i2c: E2 08 00 2F 0E 80 11 00 00 00 00 00 00 B7 [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:58]Read from MH i2c: E2 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 17 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 17 00 2F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0A [11:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:26:58]wFMCommunicate OK [11:26:58]CreateOFDProtocolMessage done [11:26:58]OFDSenderStorePacket 148772 [11:26:58]StoreOFDPacket docnum=148772 [11:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 5C 3A 08 01 A4 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 01 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 24 45 02 00 35 04 06 00 3E 5A 6C D6 3A 9A 6F 9B FD B9 97 42 BD EE [11:26:58]CheckFolder [11:26:58]dirname=/storage/ofd_packets [11:26:58]CheckFolder done [11:26:58]ProducePacketName [11:26:58]name=ofd_packets/00148772 [11:26:58]NVStorageSaveData ofd_packets/00148772 [11:26:58]File name is /storage/ofd_packets/00148772 [11:26:58]Write 302 bytes [11:26:58]NVStorageSaveData done [11:26:58]OFDSenderStorePacket done [11:26:58]KKMCreateOFDPacket done [11:26:58]NVStorageSaveData kkm_last_timestamp [11:26:58]File name is /storage/kkm_last_timestamp [11:26:58]Write 4 bytes [11:26:58]NVStorageSaveData done [11:26:58]ExternCall_PrintAddStr [11:26:58]wPrintStart [11:26:58]Write to MH i2c: 01 00 00 30 0E 3E [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 07 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 07 00 30 0E 00 00 00 00 00 FF 0F 53 [11:26:58]RasterBufferAndPrint [11:26:58]line Счет N : (3)11900 [11:26:58]line ИНН: 02508201610067 [11:26:58]line Контрольно-Кассовый Чек [11:26:58]line ПРОДАЖА [11:26:58]line Товар: 48744539 [11:26:58]line LD Compact Blue [11:26:58]line 1.000 * 130.00 [11:26:58]line = 130.00 [11:26:58]line НДС 12% НСП 1% [11:26:58]line > о реализуемом товаре [11:26:58]line ИТОГО: 130.00 [11:26:58]line НСП 1% : 1.15 [11:26:58]line НДС 12% : 13.80 [11:26:58]line Наличными: 0.00 [11:26:58]line Безнал.: 130.00 [11:26:58]line Место: АЗС № 68 "Партнер Нефть" [11:26:58]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:26:58]line СНО: Общий режим [11:26:58]line Чек 111 04.06.2024 11:26 [11:26:58]line Смена: 368 ФФД: 1.0 [11:26:58]line ЗНМ: 0300000035 [11:26:58]line РНМ: 0000000000092720 [11:26:58]line Версия ККМ: 001 [11:26:58]line Платежная система: KICB Банк [11:26:58]line ФМ: 0000000000875057 [11:26:58]line ФД: 148772 [11:26:58]line ФПД: 68558093957786 [11:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112657&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148772&fm=68558093957786&tin=02508201610067®Number=0000000000092720&sum=13000 [11:26:58]line 0 [11:26:58]written 0, free lines is 4095 [11:26:58]OFD Sender: Processing packet 148772 [packets to send 100, broken 99] [11:26:58]ProducePacketName [11:26:58]name=ofd_packets/00148772 [11:26:58]OFD Sender: To server: pG, [11:26:58]CommunicateWithHost lk.salyk.kg:30040 [11:26:58]ConnectInit lk.salyk.kg [11:26:58]Connected sock=10 [11:26:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 5C 3A 08 01 A4 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 01 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 24 45 02 00 35 04 06 00 3E 5A 6C D6 3A 9A 6F 9B FD B9 97 42 BD EE [11:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3F F1 47 00 AE 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 38 37 35 30 35 37 10 04 04 00 24 45 02 00 F4 03 04 00 25 A1 5E 66 B6 04 01 00 00 CE 25 22 20 23 6C 08 FE [11:26:58]CommunicateWithHost err = 0 [11:26:58]CheckOFDResponse [11:26:58]1017 (14) - 77093643461234 [11:26:58]1041 (16) - 0000000000875057 [11:26:58]1040 (4) - 148772 [11:26:58]1012 (4) - 04.06.2024 05:07 [11:26:58]1206 (1) - 0 [11:26:58]OFD Sender: Remove packet 148772 [11:26:58]ProducePacketName [11:26:58]name=ofd_packets/00148772 [11:26:58]NVStorageDeleteData [11:26:58]Write to MH i2c: 01 00 00 5A 0E 68 [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 07 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 07 00 5A 0E 00 00 00 00 00 7B 0C F6 [11:26:58]RasterBufferAndPrint [11:26:58]line [11:26:58]line [11:26:58]line [11:26:58]line [11:26:58]line [11:26:58]written 0, free lines is 3197 [11:26:58]MH_Cut [11:26:58]Write to MH i2c: D1 01 00 61 0E 01 41 [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: D1 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: D1 01 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: D1 01 00 61 0E 00 40 [11:26:58]Write to MH i2c: 01 00 00 62 0E 70 [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:59]OFD Sender: No OFD packet to send [11:27:00]*** Cut start [11:27:00]*** Partial cut [11:27:00]*** CUTSNS_PIN = 1 [11:27:00]*** CUTSNS_PIN = 0 [11:27:00]*** Brake cut motor [11:27:00]Read from MH i2c: 01 [11:27:00]MH_I2C_Read... [11:27:00]*** Stop cut motor [11:27:00]*** Cut end [11:27:00]Read from MH i2c: 01 07 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: 01 07 00 62 0E 00 00 00 00 00 FF 0F 85 [11:27:00]process_action close_receipt done [11:27:00]requested_data is exist [11:27:00]produce_requested_data [11:27:00]requested_item fm.sn is exist - process it [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 11 00 00 [11:27:00]Write to MH i2c: E2 08 00 63 0E 80 11 00 00 00 00 00 00 EB [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 17 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 17 00 63 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3E [11:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:27:00]wFMCommunicate OK [11:27:00]requested_item fd.num is exist - process it [11:27:00]SAM_PROTO_GetFieldsCounters [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 13 00 00 [11:27:00]Write to MH i2c: E2 08 00 64 0E 80 13 00 00 00 00 00 00 EE [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 62 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 62 00 64 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 24 45 02 00 0E 04 04 00 70 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 33 [11:27:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 24 45 02 00 0E 04 04 00 70 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 [11:27:00]wFMCommunicate OK [11:27:00]SAM_PROTO_GetFieldsCounters done [11:27:00]requested_item shift.num is exist - process it [11:27:00]requested_item shift.opened is exist - process it [11:27:00]req_shift_opened [11:27:00]FM_GetShiftState [11:27:00]SAM_PROTO_GetShiftState [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 13 01 00 [11:27:00]Write to MH i2c: E2 08 00 65 0E 80 13 01 00 00 00 00 00 F0 [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:01]Read from MH i2c: E2 [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: E2 0E 00 [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: E2 0E 00 65 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B3 [11:27:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:27:01]wFMCommunicate OK [11:27:01]SAM_PROTO_GetShiftState done [11:27:01]FM_GetShiftState done [11:27:01]req_shift_opened done [11:27:01]requested_item shift.open_date is exist - process it [11:27:01]req_shift_open_date [11:27:01]req_shift_open_date done [11:27:01]produce_requested_data done [11:27:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148772,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:27:01]process_action_free close_receipt [11:27:01]json_value_free [11:27:01]json_value_free done [11:27:01]process_json_proto returns [11:27:01]Send response to host [11:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148772,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:27:01]free response buf [11:27:01]execute_script done [11:27:01]execute_script returns [11:27:01]free content buf [11:27:01]Sock 9.Close socket [11:27:01]Sock 9.Thread stoped [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]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:35]accept exits with 7 [11:27:35]New connection [11:27:35]New thread 3067235684 created [11:27:35]Thread 3067379044 joined [11:27:35]Waiting for new connection... [11:27:35] Sock 7.Parse request [11:27:35]Sock 7.Check first char [11:27:35]Sock 7.First char is OK [11:27:35]request: POST /json_proto HTTP/1.0 [11:27:35]Method: POST [11:27:35]URL: /json_proto [11:27:35]Method is POST - this is cgi request [11:27:35]url: /json_proto [11:27:35]query_string will be loaded in cgi processing [11:27:35]execute_cgi json_proto POST (null) [11:27:35]execute_cgi path=json_proto method=POST [11:27:35]POST find Content-Length [11:27:35]Host: 172.17.38.4:8080 [11:27:35]Content-Length: 1413 [11:27:35]Content-Type: application/json [11:27:35] [11:27:35]POST finish read [11:27:35]Found Content-Length = 1413 [11:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11901", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 331.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:35]execute_script... [11:27:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11901", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 331.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:35]POST & json_proto [11:27:35]process_json_proto [11:27:35]json parsed OK: [11:27:35]protocol is kg_v1.0 [11:27:35]action value=close_receipt [11:27:35]process_action close_receipt [11:27:35]cmd_close_receipt [11:27:35]MH_GetDate [11:27:35]Write to MH i2c: F0 00 00 66 0E 63 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: F0 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: F0 09 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: F0 09 00 66 0E 00 28 FA 5E 66 CC 51 87 64 5A [11:27:35]GetLastDocTimeStamp 1717500417 [11:27:35]current date 1717500456 [11:27:35]FM_GetShiftState [11:27:35]SAM_PROTO_GetShiftState [11:27:35]wFMCommunicate request_size=4 [11:27:35]MH_SAM_APDU [11:27:35]CAPDU: 80 13 01 00 [11:27:35]Write to MH i2c: E2 08 00 67 0E 80 13 01 00 00 00 00 00 F2 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:35]Read from MH i2c: E2 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 0E 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 0E 00 67 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B5 [11:27:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:27:35]wFMCommunicate OK [11:27:35]SAM_PROTO_GetShiftState done [11:27:35]FM_GetShiftState done [11:27:35]opened in 1717460629 [11:27:35]opened+sec_in_day 1717547029 [11:27:35]quantity*price = 8500 [11:27:35]sum+1 = 8501 [11:27:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 331.00 НСП 1% : 2.93 НДС 12% : 35.15 Наличными: 0.00 Безнал.: 331.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 112 04.06.2024 11:27 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148773 ФПД: 75700722809906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112736&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148773&fm=75700722809906&tin=02508201610067®Number=0000000000092720&sum=33100 0 [11:27:37]StoreToDocumentArchive [11:27:37]shift 368 fd 148773 [11:27:37]save to /storage/0368/doc_00148773 [11:27:37]save last doc name /storage/0368/doc_00148773 to /storage/kkm_last_doc_name [11:27:37]save OK [11:27:37]Clear old archive folders... [11:27:37]ProcessDocumentItem done err = 0, tmpTLVsize=539 [11:27:37]tlvbuf is 00FA0B10 [11:27:37]SAM_PROTO_ClearQueue [11:27:37]wFMCommunicate request_size=4 [11:27:37]MH_SAM_APDU [11:27:37]CAPDU: 80 09 00 00 [11:27:37]Write to MH i2c: E2 08 00 74 0E 80 09 00 00 00 00 00 00 F4 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:37]Read from MH i2c: E2 03 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [11:27:37]RAPDU: 90 00 [11:27:37]wFMCommunicate OK [11:27:37]SAM_PROTO_ClearQueue done [11:27:37]KKMCreateOFDPacket [11:27:37]OFDProtocolAddRootSTLVToBuf [11:27:37]FM_MakeSignedData [11:27:37]FM_MakeSignedData [11:27:37]SAM_PROTO_SignData [11:27:37]wFMCommunicate request_size=4 [11:27:37]MH_SAM_APDU [11:27:37]CAPDU: 80 0D 01 02 [11:27:37]Write to MH i2c: E2 08 00 75 0E 80 0D 01 02 00 00 00 00 FC [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 03 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 03 00 75 0E 00 90 00 F7 [11:27:37]RAPDU: 90 00 [11:27:37]wFMCommunicate OK [11:27:37]wFMCommunicate request_size=255 [11:27:37]MH_SAM_APDU [11:27:37]CAPDU: 80 0D 02 02 FA 03 00 1B 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 [11:27:37]Write to MH i2c: E2 02 01 76 0E 80 0D 02 02 FA 00 03 00 1B 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 00 8B [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 03 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 03 00 76 0E 00 90 00 F8 [11:27:37]RAPDU: 90 00 [11:27:37]wFMCommunicate OK [11:27:37]wFMCommunicate request_size=255 [11:27:37]MH_SAM_APDU [11:27:37]CAPDU: 80 0D 02 02 FA 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 28 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [11:27:37]Write to MH i2c: E2 02 01 77 0E 80 0D 02 02 FA 00 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 28 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 2E [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 03 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 03 00 77 0E 00 90 00 F9 [11:27:37]RAPDU: 90 00 [11:27:37]wFMCommunicate OK [11:27:37]wFMCommunicate request_size=48 [11:27:37]MH_SAM_APDU [11:27:37]CAPDU: 80 0D 02 02 2B 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 25 45 02 00 35 04 06 00 44 D9 72 B1 3C 32 [11:27:37]Write to MH i2c: E2 33 00 78 0E 80 0D 02 02 2B 00 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 25 45 02 00 35 04 06 00 44 D9 72 B1 3C 32 00 00 10 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 03 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 03 00 78 0E 00 90 00 FA [11:27:37]RAPDU: 90 00 [11:27:37]wFMCommunicate OK [11:27:37]wFMCommunicate request_size=4 [11:27:37]MH_SAM_APDU [11:27:37]CAPDU: 80 0D 03 02 [11:27:37]Write to MH i2c: E2 08 00 79 0E 80 0D 03 02 00 00 00 00 02 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 0B 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 0B 00 79 0E 00 C4 35 2D 20 55 E3 CE DA 90 00 29 [11:27:37]RAPDU: C4 35 2D 20 55 E3 CE DA 90 00 [11:27:37]wFMCommunicate OK [11:27:37]SAM_PROTO_SignData done [11:27:37]FM_MakeSignedData done [11:27:37]CreateOFDProtocolMessage [11:27:37]wFMCommunicate request_size=4 [11:27:37]MH_SAM_APDU [11:27:37]CAPDU: 80 11 00 00 [11:27:37]Write to MH i2c: E2 08 00 7A 0E 80 11 00 00 00 00 00 00 02 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:37]Read from MH i2c: E2 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 17 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: E2 17 00 7A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 55 [11:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:27:37]wFMCommunicate OK [11:27:37]CreateOFDProtocolMessage done [11:27:37]OFDSenderStorePacket 148773 [11:27:37]StoreOFDPacket docnum=148773 [11:27:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2F 02 00 00 96 FA 27 02 40 27 5A 03 01 00 03 00 1B 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 28 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 25 45 02 00 35 04 06 00 44 D9 72 B1 3C 32 C4 35 2D 20 55 E3 CE DA [11:27:37]CheckFolder [11:27:37]dirname=/storage/ofd_packets [11:27:37]CheckFolder done [11:27:37]ProducePacketName [11:27:37]name=ofd_packets/00148773 [11:27:37]NVStorageSaveData ofd_packets/00148773 [11:27:37]File name is /storage/ofd_packets/00148773 [11:27:37]Write 589 bytes [11:27:37]NVStorageSaveData done [11:27:37]OFDSenderStorePacket done [11:27:37]KKMCreateOFDPacket done [11:27:37]NVStorageSaveData kkm_last_timestamp [11:27:37]File name is /storage/kkm_last_timestamp [11:27:37]Write 4 bytes [11:27:37]NVStorageSaveData done [11:27:37]ExternCall_PrintAddStr [11:27:37]wPrintStart [11:27:37]Write to MH i2c: 01 00 00 7B 0E 89 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 07 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 07 00 7B 0E 00 00 00 00 00 FF 0F 9E [11:27:37]RasterBufferAndPrint [11:27:37]line Счет N : (3)11901 [11:27:37]line ИНН: 02508201610067 [11:27:37]line Контрольно-Кассовый Чек [11:27:37]line ПРОДАЖА [11:27:37]line Товар: 4700000480364 [11:27:37]line Напиток энерг Nitro экзотик 0.45 ж/б [11:27:37]line 1.000 * 85.00 [11:27:37]line = 85.00 [11:27:37]line НДС 12% НСП 1% [11:27:37]line > о реализуемом товаре [11:27:37]line Товар: 4700000480302 [11:27:38]line Напиток энерг Nitro манго-клуб 0.45 ж/б [11:27:38]line 1.000 * 95.00 [11:27:38]line = 95.00 [11:27:38]line НДС 12% НСП 1% [11:27:38]line > о реализуемом товаре [11:27:38]line Товар: 48742245 [11:27:38]line Сигареты Parliament Silver Blue [11:27:38]line 1.000 * 151.00 [11:27:38]line = 151.00 [11:27:38]line НДС 12% НСП 1% [11:27:38]line > о реализуемом товаре [11:27:38]line ИТОГО: 331.00 [11:27:38]line НСП 1% : 2.93 [11:27:38]line НДС 12% : 35.15 [11:27:38]line Наличными: 0.00 [11:27:38]line Безнал.: 331.00 [11:27:38]line Место: АЗС № 68 "Партнер Нефть" [11:27:38]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:27:38]line СНО: Общий режим [11:27:38]line Чек 112 04.06.2024 11:27 [11:27:38]line Смена: 368 ФФД: 1.0 [11:27:38]line ЗНМ: 0300000035 [11:27:38]line РНМ: 0000000000092720 [11:27:38]line Версия ККМ: 001 [11:27:38]line Платежная система: KICB Банк [11:27:38]line ФМ: 0000000000875057 [11:27:38]line ФД: 148773 [11:27:38]line ФПД: 75700722809906 [11:27:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112736&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148773&fm=75700722809906&tin=02508201610067®Number=0000000000092720&sum=33100 [11:27:38]line 0 [11:27:38]OFD Sender: Processing packet 148773 [packets to send 100, broken 99] [11:27:38]ProducePacketName [11:27:38]name=ofd_packets/00148773 [11:27:38]OFD Sender: To server: pG, [11:27:38]CommunicateWithHost lk.salyk.kg:30040 [11:27:38]ConnectInit lk.salyk.kg [11:27:38]written 0, free lines is 4095 [11:27:38]Connected sock=10 [11:27:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2F 02 00 00 96 FA 27 02 40 27 5A 03 01 00 03 00 1B 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 28 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 25 45 02 00 35 04 06 00 44 D9 72 B1 3C 32 C4 35 2D 20 55 E3 CE DA [11:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 FF 43 47 00 5B BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 25 45 02 00 F4 03 04 00 4C A1 5E 66 B6 04 01 00 00 2F DC FA 8D 08 32 16 DD [11:27:38]CommunicateWithHost err = 0 [11:27:38]CheckOFDResponse [11:27:38]1017 (14) - 77093643461234 [11:27:38]1041 (16) - 0000000000875057 [11:27:38]1040 (4) - 148773 [11:27:38]1012 (4) - 04.06.2024 05:08 [11:27:38]1206 (1) - 0 [11:27:38]OFD Sender: Remove packet 148773 [11:27:38]ProducePacketName [11:27:38]name=ofd_packets/00148773 [11:27:38]NVStorageDeleteData [11:27:38]Write to MH i2c: 01 00 00 B4 0E C2 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: 01 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: 01 07 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: 01 07 00 B4 0E 00 00 00 00 00 28 0B FC [11:27:38]RasterBufferAndPrint [11:27:38]line [11:27:38]line [11:27:38]line [11:27:38]line [11:27:38]line [11:27:38]written 0, free lines is 2862 [11:27:38]MH_Cut [11:27:38]Write to MH i2c: D1 01 00 BB 0E 01 9B [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: D1 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: D1 01 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: D1 01 00 BB 0E 00 9A [11:27:38]Write to MH i2c: 01 00 00 BC 0E CA [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:39]OFD Sender: No OFD packet to send [11:27:40]*** Cut start [11:27:40]*** Partial cut [11:27:40]*** CUTSNS_PIN = 1 [11:27:40]*** CUTSNS_PIN = 0 [11:27:40]*** Brake cut motor [11:27:41]Read from MH i2c: 01 [11:27:41]MH_I2C_Read... [11:27:41]*** Stop cut motor [11:27:41]*** Cut end [11:27:41]Read from MH i2c: 01 07 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 BC 0E 00 00 00 00 00 FF 0F DF [11:27:41]process_action close_receipt done [11:27:41]requested_data is exist [11:27:41]produce_requested_data [11:27:41]requested_item fm.sn is exist - process it [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 11 00 00 [11:27:41]Write to MH i2c: E2 08 00 BD 0E 80 11 00 00 00 00 00 00 45 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 17 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 17 00 BD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 98 [11:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:27:41]wFMCommunicate OK [11:27:41]requested_item fd.num is exist - process it [11:27:41]SAM_PROTO_GetFieldsCounters [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 13 00 00 [11:27:41]Write to MH i2c: E2 08 00 BE 0E 80 13 00 00 00 00 00 00 48 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 62 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 62 00 BE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 25 45 02 00 0E 04 04 00 70 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 91 [11:27:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 25 45 02 00 0E 04 04 00 70 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 [11:27:41]wFMCommunicate OK [11:27:41]SAM_PROTO_GetFieldsCounters done [11:27:41]requested_item shift.num is exist - process it [11:27:41]requested_item shift.opened is exist - process it [11:27:41]req_shift_opened [11:27:41]FM_GetShiftState [11:27:41]SAM_PROTO_GetShiftState [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 13 01 00 [11:27:41]Write to MH i2c: E2 08 00 BF 0E 80 13 01 00 00 00 00 00 4A [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 0E 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 0E 00 BF 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0D [11:27:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:27:41]wFMCommunicate OK [11:27:41]SAM_PROTO_GetShiftState done [11:27:41]FM_GetShiftState done [11:27:41]req_shift_opened done [11:27:41]requested_item shift.open_date is exist - process it [11:27:41]req_shift_open_date [11:27:41]req_shift_open_date done [11:27:41]produce_requested_data done [11:27:41]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148773,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:27:41]process_action_free close_receipt [11:27:41]json_value_free [11:27:41]json_value_free done [11:27:41]process_json_proto returns [11:27:41]Send response to host [11:27:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148773,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:27:41]free response buf [11:27:41]execute_script done [11:27:41]execute_script returns [11:27:41]free content buf [11:27:41]Sock 7.Close socket [11:27:41]Sock 7.Thread stoped [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:42]accept exits with 9 [11:28:42]New connection [11:28:42]New thread 3067379044 created [11:28:42]Thread 3067235684 joined [11:28:42]Waiting for new connection... [11:28:42] Sock 9.Parse request [11:28:42]Sock 9.Check first char [11:28:42]Sock 9.First char is OK [11:28:42]request: POST /json_proto HTTP/1.0 [11:28:42]Method: POST [11:28:42]URL: /json_proto [11:28:42]Method is POST - this is cgi request [11:28:42]url: /json_proto [11:28:42]query_string will be loaded in cgi processing [11:28:42]execute_cgi json_proto POST (null) [11:28:42]execute_cgi path=json_proto method=POST [11:28:42]POST find Content-Length [11:28:42]Host: 172.17.38.4:8080 [11:28:42]Content-Length: 674 [11:28:42]Content-Type: application/json [11:28:42] [11:28:42]POST finish read [11:28:42]Found Content-Length = 674 [11:28:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:28:42]execute_script... [11:28: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)979701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:28:42]POST & json_proto [11:28:42]process_json_proto [11:28:42]json parsed OK: [11:28:42]protocol is kg_v1.0 [11:28:42]action value=close_receipt [11:28:42]process_action close_receipt [11:28:42]cmd_close_receipt [11:28:42]MH_GetDate [11:28:42]Write to MH i2c: F0 00 00 C0 0E BD [11:28:42]Write i2c OK [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: F0 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: F0 09 00 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: F0 09 00 C0 0E 00 6B FA 5E 66 CC 51 87 64 F7 [11:28:42]GetLastDocTimeStamp 1717500456 [11:28:42]current date 1717500523 [11:28:42]FM_GetShiftState [11:28:42]SAM_PROTO_GetShiftState [11:28:42]wFMCommunicate request_size=4 [11:28:42]MH_SAM_APDU [11:28:42]CAPDU: 80 13 01 00 [11:28:42]Write to MH i2c: E2 08 00 C1 0E 80 13 01 00 00 00 00 00 4C [11:28:42]Write i2c OK [11:28:42]MH_I2C_Read... [11:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:42]Read from MH i2c: E2 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 0E 00 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 0E 00 C1 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0F [11:28:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:28:42]wFMCommunicate OK [11:28:42]SAM_PROTO_GetShiftState done [11:28:42]FM_GetShiftState done [11:28:42]opened in 1717460629 [11:28:42]opened+sec_in_day 1717547029 [11:28:42]quantity*price = 50009 [11:28:42]sum+1 = 50010 [11:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 113 04.06.2024 11:28 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148774 ФПД: 102788997344997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112843&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148774&fm=102788997344997&tin=02508201610067®Number=0000000000092720&sum=50000 [11:28:43]StoreToDocumentArchive [11:28:43]shift 368 fd 148774 [11:28:43]save to /storage/0368/doc_00148774 [11:28:43]save last doc name /storage/0368/doc_00148774 to /storage/kkm_last_doc_name [11:28:43]save OK [11:28:43]Clear old archive folders... [11:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:28:43]tlvbuf is B6F10650 [11:28:43]SAM_PROTO_ClearQueue [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 09 00 00 [11:28:43]Write to MH i2c: E2 08 00 CE 0E 80 09 00 00 00 00 00 00 4E [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 CE 0E 00 90 00 50 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]SAM_PROTO_ClearQueue done [11:28:43]KKMCreateOFDPacket [11:28:43]OFDProtocolAddRootSTLVToBuf [11:28:43]FM_MakeSignedData [11:28:43]FM_MakeSignedData [11:28:43]SAM_PROTO_SignData [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 01 02 [11:28:43]Write to MH i2c: E2 08 00 CF 0E 80 0D 01 02 00 00 00 00 56 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 CF 0E 00 90 00 51 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=255 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 6B FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 26 45 02 00 35 04 06 00 5D 7C 6D AC [11:28:43]Write to MH i2c: E2 02 01 D0 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 6B FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 26 45 02 00 35 04 06 00 5D 7C 6D AC 00 00 65 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 D0 0E 00 90 00 52 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=7 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 02 02 02 6E E5 [11:28:43]Write to MH i2c: E2 0A 00 D1 0E 80 0D 02 02 02 00 6E E5 00 00 B0 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 D1 0E 00 90 00 53 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 03 02 [11:28:43]Write to MH i2c: E2 08 00 D2 0E 80 0D 03 02 00 00 00 00 5B [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0B 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0B 00 D2 0E 00 69 87 0A FE D7 A9 96 EF 90 00 59 [11:28:43]RAPDU: 69 87 0A FE D7 A9 96 EF 90 00 [11:28:43]wFMCommunicate OK [11:28:43]SAM_PROTO_SignData done [11:28:43]FM_MakeSignedData done [11:28:43]CreateOFDProtocolMessage [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 11 00 00 [11:28:43]Write to MH i2c: E2 08 00 D3 0E 80 11 00 00 00 00 00 00 5B [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:44]Read from MH i2c: E2 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 17 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 17 00 D3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AE [11:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:28:44]wFMCommunicate OK [11:28:44]CreateOFDProtocolMessage done [11:28:44]OFDSenderStorePacket 148774 [11:28:44]StoreOFDPacket docnum=148774 [11:28:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 62 9F 04 01 B0 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 71 00 00 00 F4 03 04 00 6B FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 26 45 02 00 35 04 06 00 5D 7C 6D AC 6E E5 69 87 0A FE D7 A9 96 EF [11:28:44]CheckFolder [11:28:44]dirname=/storage/ofd_packets [11:28:44]CheckFolder done [11:28:44]ProducePacketName [11:28:44]name=ofd_packets/00148774 [11:28:44]NVStorageSaveData ofd_packets/00148774 [11:28:44]File name is /storage/ofd_packets/00148774 [11:28:44]Write 298 bytes [11:28:44]NVStorageSaveData done [11:28:44]OFDSenderStorePacket done [11:28:44]KKMCreateOFDPacket done [11:28:44]NVStorageSaveData kkm_last_timestamp [11:28:44]File name is /storage/kkm_last_timestamp [11:28:44]Write 4 bytes [11:28:44]NVStorageSaveData done [11:28:44]ExternCall_PrintAddStr [11:28:44]wPrintStart [11:28:44]Write to MH i2c: 01 00 00 D4 0E E2 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 D4 0E 00 00 00 00 00 FF 0F F7 [11:28:44]RasterBufferAndPrint [11:28:44]line Счет N : (1)979701 [11:28:44]line ИНН: 02508201610067 [11:28:44]line Контрольно-Кассовый Чек [11:28:44]line ПРОДАЖА [11:28:44]line ТРК (МРК, ГНК) : 21 [11:28:44]line Товар: 2710194210 [11:28:44]line ДТ-К-5 [11:28:44]line 6.860 * 72.90 [11:28:44]line = 500.09 [11:28:44]line НДС 12% НСП 1% [11:28:44]line > о реализуемом товаре [11:28:44]line ОКРУГЛЕНИЕ: -0.09 [11:28:44]line ИТОГО: 500.00 [11:28:44]line Внесено: 500.00 [11:28:44]line СДАЧА: 0.00 [11:28:44]line НСП 1% : 4.43 [11:28:44]line НДС 12% : 53.11 [11:28:44]line Наличными: 500.00 [11:28:44]line Безнал.: 0.00 [11:28:44]line Место: АЗС № 68 "Партнер Нефть" [11:28:44]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:28:44]line СНО: Общий режим [11:28:44]line Чек 113 04.06.2024 11:28 [11:28:44]line Смена: 368 ФФД: 1.0 [11:28:44]line ЗНМ: 0300000035 [11:28:44]line РНМ: 0000000000092720 [11:28:44]line Версия ККМ: 001 [11:28:44]line ФМ: 0000000000875057 [11:28:44]line ФД: 148774 [11:28:44]line ФПД: 102788997344997 [11:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112843&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148774&fm=102788997344997&tin=02508201610067®Number=0000000000092720&sum=50000 [11:28:44]written 0, free lines is 4095 [11:28:44]OFD Sender: Processing packet 148774 [packets to send 100, broken 99] [11:28:44]ProducePacketName [11:28:44]name=ofd_packets/00148774 [11:28:44]OFD Sender: To server: pG, [11:28:44]CommunicateWithHost lk.salyk.kg:30040 [11:28:44]ConnectInit lk.salyk.kg [11:28:44]Connected sock=10 [11:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 62 9F 04 01 B0 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 71 00 00 00 F4 03 04 00 6B FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 26 45 02 00 35 04 06 00 5D 7C 6D AC 6E E5 69 87 0A FE D7 A9 96 EF [11:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C3 40 47 00 26 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 26 45 02 00 F4 03 04 00 8E A1 5E 66 B6 04 01 00 00 22 6B DD 7E E9 E0 87 55 [11:28:44]CommunicateWithHost err = 0 [11:28:44]CheckOFDResponse [11:28:44]1017 (14) - 77093643461234 [11:28:44]1041 (16) - 0000000000875057 [11:28:44]1040 (4) - 148774 [11:28:44]1012 (4) - 04.06.2024 05:09 [11:28:44]1206 (1) - 0 [11:28:44]OFD Sender: Remove packet 148774 [11:28:44]ProducePacketName [11:28:44]name=ofd_packets/00148774 [11:28:44]NVStorageDeleteData [11:28:44]Write to MH i2c: 01 00 00 FF 0E 0D [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 FF 0E 00 00 00 00 00 74 0C 94 [11:28:44]RasterBufferAndPrint [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]written 0, free lines is 3191 [11:28:44]MH_Cut [11:28:44]Write to MH i2c: D1 01 00 06 0F 01 E7 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 01 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 01 00 06 0F 00 E6 [11:28:44]Write to MH i2c: 01 00 00 07 0F 16 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]OFD Sender: No OFD packet to send [11:28:45]*** Cut start [11:28:45]*** Partial cut [11:28:45]*** CUTSNS_PIN = 1 [11:28:45]*** CUTSNS_PIN = 0 [11:28:46]*** Brake cut motor [11:28:46]Read from MH i2c: 01 [11:28:46]MH_I2C_Read... [11:28:46]*** Stop cut motor [11:28:46]*** Cut end [11:28:46]Read from MH i2c: 01 07 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 07 00 07 0F 00 00 00 00 00 FF 0F 2B [11:28:46]process_action close_receipt done [11:28:46]requested_data is exist [11:28:46]produce_requested_data [11:28:46]requested_item fm.sn is exist - process it [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 11 00 00 [11:28:46]Write to MH i2c: E2 08 00 08 0F 80 11 00 00 00 00 00 00 91 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 17 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 17 00 08 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E4 [11:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:28:46]wFMCommunicate OK [11:28:46]requested_item fd.num is exist - process it [11:28:46]SAM_PROTO_GetFieldsCounters [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 13 00 00 [11:28:46]Write to MH i2c: E2 08 00 09 0F 80 13 00 00 00 00 00 00 94 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 62 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 62 00 09 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 26 45 02 00 0E 04 04 00 70 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 E1 [11:28:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 26 45 02 00 0E 04 04 00 70 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 [11:28:46]wFMCommunicate OK [11:28:46]SAM_PROTO_GetFieldsCounters done [11:28:46]requested_item shift.num is exist - process it [11:28:46]requested_item shift.opened is exist - process it [11:28:46]req_shift_opened [11:28:46]FM_GetShiftState [11:28:46]SAM_PROTO_GetShiftState [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 13 01 00 [11:28:46]Write to MH i2c: E2 08 00 0A 0F 80 13 01 00 00 00 00 00 96 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 0E 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 0E 00 0A 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 59 [11:28:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:28:46]wFMCommunicate OK [11:28:46]SAM_PROTO_GetShiftState done [11:28:46]FM_GetShiftState done [11:28:46]req_shift_opened done [11:28:46]requested_item shift.open_date is exist - process it [11:28:46]req_shift_open_date [11:28:46]req_shift_open_date done [11:28:46]produce_requested_data done [11:28:46]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148774,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:28:46]process_action_free close_receipt [11:28:46]json_value_free [11:28:46]json_value_free done [11:28:46]process_json_proto returns [11:28:46]Send response to host [11:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148774,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:28:46]free response buf [11:28:46]execute_script done [11:28:46]execute_script returns [11:28:46]free content buf [11:28:46]Sock 9.Close socket [11:28:46]Sock 9.Thread stoped [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]accept exits with 7 [11:29:44]New connection [11:29:44]New thread 3067235684 created [11:29:44]Thread 3067379044 joined [11:29:44]Waiting for new connection... [11:29:44] Sock 7.Parse request [11:29:44]Sock 7.Check first char [11:29:44]Sock 7.First char is OK [11:29:44]request: POST /json_proto HTTP/1.0 [11:29:44]Method: POST [11:29:44]URL: /json_proto [11:29:44]Method is POST - this is cgi request [11:29:44]url: /json_proto [11:29:44]query_string will be loaded in cgi processing [11:29:44]execute_cgi json_proto POST (null) [11:29:44]execute_cgi path=json_proto method=POST [11:29:44]POST find Content-Length [11:29:44]Host: 172.17.38.4:8080 [11:29:44]Content-Length: 790 [11:29:44]Content-Type: application/json [11:29:44] [11:29:44]POST finish read [11:29:44]Found Content-Length = 790 [11:29:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:44]execute_script... [11:29: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)979700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:44]POST & json_proto [11:29:44]process_json_proto [11:29:44]json parsed OK: [11:29:44]protocol is kg_v1.0 [11:29:44]action value=close_receipt [11:29:44]process_action close_receipt [11:29:44]cmd_close_receipt [11:29:44]MH_GetDate [11:29:44]Write to MH i2c: F0 00 00 0B 0F 09 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: F0 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: F0 09 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: F0 09 00 0B 0F 00 A9 FA 5E 66 CC 51 87 64 81 [11:29:44]GetLastDocTimeStamp 1717500523 [11:29:44]current date 1717500585 [11:29:44]FM_GetShiftState [11:29:44]SAM_PROTO_GetShiftState [11:29:44]wFMCommunicate request_size=4 [11:29:44]MH_SAM_APDU [11:29:44]CAPDU: 80 13 01 00 [11:29:44]Write to MH i2c: E2 08 00 0C 0F 80 13 01 00 00 00 00 00 98 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:44]Read from MH i2c: E2 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 0E 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 0E 00 0C 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5B [11:29:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:29:44]wFMCommunicate OK [11:29:44]SAM_PROTO_GetShiftState done [11:29:44]FM_GetShiftState done [11:29:44]opened in 1717460629 [11:29:44]opened+sec_in_day 1717547029 [11:29:44]quantity*price = 250047 [11:29:44]sum+1 = 250048 [11:29:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.47 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.47 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 114 04.06.2024 11:29 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148775 ФПД: 183758556510737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112945&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148775&fm=183758556510737&tin=02508201610067®Number=0000000000092720&sum=250047 [11:29:45]StoreToDocumentArchive [11:29:45]shift 368 fd 148775 [11:29:45]save to /storage/0368/doc_00148775 [11:29:45]save last doc name /storage/0368/doc_00148775 to /storage/kkm_last_doc_name [11:29:45]save OK [11:29:45]Clear old archive folders... [11:29:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:29:45]tlvbuf is 00EF0900 [11:29:45]SAM_PROTO_ClearQueue [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 09 00 00 [11:29:45]Write to MH i2c: E2 08 00 19 0F 80 09 00 00 00 00 00 00 9A [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 19 0F 00 90 00 9C [11:29:45]RAPDU: 90 00 [11:29:45]wFMCommunicate OK [11:29:45]SAM_PROTO_ClearQueue done [11:29:45]KKMCreateOFDPacket [11:29:45]OFDProtocolAddRootSTLVToBuf [11:29:45]FM_MakeSignedData [11:29:45]FM_MakeSignedData [11:29:45]SAM_PROTO_SignData [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 0D 01 02 [11:29:45]Write to MH i2c: E2 08 00 1A 0F 80 0D 01 02 00 00 00 00 A2 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 1A 0F 00 90 00 9D [11:29:45]RAPDU: 90 00 [11:29:45]wFMCommunicate OK [11:29:45]wFMCommunicate request_size=255 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A9 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 27 45 02 00 35 04 06 00 A7 20 9F 7C [11:29:45]Write to MH i2c: E2 02 01 1B 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A9 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 27 45 02 00 35 04 06 00 A7 20 9F 7C 00 00 2F [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 03 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 03 00 1B 0F 00 90 00 9E [11:29:46]RAPDU: 90 00 [11:29:46]wFMCommunicate OK [11:29:46]wFMCommunicate request_size=7 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 0D 02 02 02 3A 11 [11:29:46]Write to MH i2c: E2 0A 00 1C 0F 80 0D 02 02 02 00 3A 11 00 00 F4 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 03 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 03 00 1C 0F 00 90 00 9F [11:29:46]RAPDU: 90 00 [11:29:46]wFMCommunicate OK [11:29:46]wFMCommunicate request_size=4 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 0D 03 02 [11:29:46]Write to MH i2c: E2 08 00 1D 0F 80 0D 03 02 00 00 00 00 A7 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 0B 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 0B 00 1D 0F 00 50 DE 2B 36 01 47 47 40 90 00 06 [11:29:46]RAPDU: 50 DE 2B 36 01 47 47 40 90 00 [11:29:46]wFMCommunicate OK [11:29:46]SAM_PROTO_SignData done [11:29:46]FM_MakeSignedData done [11:29:46]CreateOFDProtocolMessage [11:29:46]wFMCommunicate request_size=4 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 11 00 00 [11:29:46]Write to MH i2c: E2 08 00 1E 0F 80 11 00 00 00 00 00 00 A7 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 17 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 17 00 1E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FA [11:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:29:46]wFMCommunicate OK [11:29:46]CreateOFDProtocolMessage done [11:29:46]OFDSenderStorePacket 148775 [11:29:46]StoreOFDPacket docnum=148775 [11:29:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 86 B7 04 01 83 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A9 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 27 45 02 00 35 04 06 00 A7 20 9F 7C 3A 11 50 DE 2B 36 01 47 47 40 [11:29:46]CheckFolder [11:29:46]dirname=/storage/ofd_packets [11:29:46]CheckFolder done [11:29:46]ProducePacketName [11:29:46]name=ofd_packets/00148775 [11:29:46]NVStorageSaveData ofd_packets/00148775 [11:29:46]File name is /storage/ofd_packets/00148775 [11:29:46]Write 298 bytes [11:29:46]NVStorageSaveData done [11:29:46]OFDSenderStorePacket done [11:29:46]KKMCreateOFDPacket done [11:29:46]NVStorageSaveData kkm_last_timestamp [11:29:46]File name is /storage/kkm_last_timestamp [11:29:46]Write 4 bytes [11:29:46]NVStorageSaveData done [11:29:46]ExternCall_PrintAddStr [11:29:46]wPrintStart [11:29:46]Write to MH i2c: 01 00 00 1F 0F 2E [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: 01 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: 01 07 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: 01 07 00 1F 0F 00 00 00 00 00 FF 0F 43 [11:29:46]RasterBufferAndPrint [11:29:46]line Счет N : (1)979700 [11:29:46]line ИНН: 02508201610067 [11:29:46]line Контрольно-Кассовый Чек [11:29:46]line ПРОДАЖА [11:29:46]line ТРК (МРК, ГНК) : 52 [11:29:46]line Товар: 2710194210 [11:29:46]line ДТ-К-5 [11:29:46]line 34.300 * 72.90 [11:29:46]line = 2500.47 [11:29:46]line НДС 12% НСП 1% [11:29:46]line > о реализуемом товаре [11:29:46]line ИТОГО: 2500.47 [11:29:46]line НСП 1% : 22.13 [11:29:46]line НДС 12% : 265.54 [11:29:46]line Наличными: 0.00 [11:29:46]line Безнал.: 2500.47 [11:29:46]line Место: АЗС № 68 "Партнер Нефть" [11:29:46]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:29:46]line СНО: Общий режим [11:29:46]line Чек 114 04.06.2024 11:29 [11:29:46]line Смена: 368 ФФД: 1.0 [11:29:46]line ЗНМ: 0300000035 [11:29:46]line РНМ: 0000000000092720 [11:29:46]line Версия ККМ: 001 [11:29:46]line Платежная система: KICB Банк [11:29:46]line ФМ: 0000000000875057 [11:29:46]line ФД: 148775 [11:29:46]line ФПД: 183758556510737 [11:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112945&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148775&fm=183758556510737&tin=02508201610067®Number=0000000000092720&sum=250047 [11:29:46]OFD Sender: Processing packet 148775 [packets to send 100, broken 99] [11:29:46]ProducePacketName [11:29:46]name=ofd_packets/00148775 [11:29:46]OFD Sender: To server: pG, [11:29:46]CommunicateWithHost lk.salyk.kg:30040 [11:29:46]ConnectInit lk.salyk.kg [11:29:46]written 0, free lines is 4095 [11:29:46]Connected sock=10 [11:29:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 86 B7 04 01 83 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A9 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 27 45 02 00 35 04 06 00 A7 20 9F 7C 3A 11 50 DE 2B 36 01 47 47 40 [11:29:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 75 11 47 00 DD 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 27 45 02 00 F4 03 04 00 CD A1 5E 66 B6 04 01 00 00 5E AC 6E 97 1B 1E B0 78 [11:29:46]CommunicateWithHost err = 0 [11:29:46]CheckOFDResponse [11:29:46]1017 (14) - 77093643461234 [11:29:46]1041 (16) - 0000000000875057 [11:29:46]1040 (4) - 148775 [11:29:46]1012 (4) - 04.06.2024 05:10 [11:29:46]1206 (1) - 0 [11:29:46]OFD Sender: Remove packet 148775 [11:29:46]ProducePacketName [11:29:46]name=ofd_packets/00148775 [11:29:46]NVStorageDeleteData [11:29:47]Write to MH i2c: 01 00 00 49 0F 58 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 49 0F 00 00 00 00 00 84 0C EF [11:29:47]RasterBufferAndPrint [11:29:47]line [11:29:47]line [11:29:47]line [11:29:47]line [11:29:47]line [11:29:47]written 0, free lines is 3208 [11:29:47]MH_Cut [11:29:47]Write to MH i2c: D1 01 00 50 0F 01 31 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: D1 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: D1 01 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: D1 01 00 50 0F 00 30 [11:29:47]Write to MH i2c: 01 00 00 51 0F 60 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]OFD Sender: No OFD packet to send [11:29:48]*** Cut start [11:29:48]*** Partial cut [11:29:48]*** CUTSNS_PIN = 1 [11:29:48]*** CUTSNS_PIN = 0 [11:29:48]*** Brake cut motor [11:29:48]Read from MH i2c: 01 [11:29:48]MH_I2C_Read... [11:29:48]*** Stop cut motor [11:29:48]*** Cut end [11:29:48]Read from MH i2c: 01 07 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: 01 07 00 51 0F 00 00 00 00 00 FF 0F 75 [11:29:48]process_action close_receipt done [11:29:48]requested_data is exist [11:29:48]produce_requested_data [11:29:48]requested_item fm.sn is exist - process it [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 11 00 00 [11:29:48]Write to MH i2c: E2 08 00 52 0F 80 11 00 00 00 00 00 00 DB [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 17 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 17 00 52 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2E [11:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:29:49]wFMCommunicate OK [11:29:49]requested_item fd.num is exist - process it [11:29:49]SAM_PROTO_GetFieldsCounters [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 13 00 00 [11:29:49]Write to MH i2c: E2 08 00 53 0F 80 13 00 00 00 00 00 00 DE [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 62 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 62 00 53 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 27 45 02 00 0E 04 04 00 70 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 2F [11:29:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 27 45 02 00 0E 04 04 00 70 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 [11:29:49]wFMCommunicate OK [11:29:49]SAM_PROTO_GetFieldsCounters done [11:29:49]requested_item shift.num is exist - process it [11:29:49]requested_item shift.opened is exist - process it [11:29:49]req_shift_opened [11:29:49]FM_GetShiftState [11:29:49]SAM_PROTO_GetShiftState [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 13 01 00 [11:29:49]Write to MH i2c: E2 08 00 54 0F 80 13 01 00 00 00 00 00 E0 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 0E 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 0E 00 54 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A3 [11:29:49]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:29:49]wFMCommunicate OK [11:29:49]SAM_PROTO_GetShiftState done [11:29:49]FM_GetShiftState done [11:29:49]req_shift_opened done [11:29:49]requested_item shift.open_date is exist - process it [11:29:49]req_shift_open_date [11:29:49]req_shift_open_date done [11:29:49]produce_requested_data done [11:29:49]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148775,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:29:49]process_action_free close_receipt [11:29:49]json_value_free [11:29:49]json_value_free done [11:29:49]process_json_proto returns [11:29:49]Send response to host [11:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148775,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:29:49]free response buf [11:29:49]execute_script done [11:29:49]execute_script returns [11:29:49]free content buf [11:29:49]Sock 7.Close socket [11:29:49]Sock 7.Thread stoped [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:14]accept exits with 9 [11:30:14]New connection [11:30:14]New thread 3067379044 created [11:30:14]Thread 3067235684 joined [11:30:14]Waiting for new connection... [11:30:14] Sock 9.Parse request [11:30:14]Sock 9.Check first char [11:30:14]Sock 9.First char is OK [11:30:14]request: POST /json_proto HTTP/1.0 [11:30:14]Method: POST [11:30:14]URL: /json_proto [11:30:14]Method is POST - this is cgi request [11:30:14]url: /json_proto [11:30:14]query_string will be loaded in cgi processing [11:30:14]execute_cgi json_proto POST (null) [11:30:14]execute_cgi path=json_proto method=POST [11:30:14]POST find Content-Length [11:30:14]Host: 172.17.38.4:8080 [11:30:14]Content-Length: 674 [11:30:14]Content-Type: application/json [11:30:14] [11:30:14]POST finish read [11:30:14]Found Content-Length = 674 [11:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.630, "sum" : 410.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:14]execute_script... [11:30: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)979702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.630, "sum" : 410.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:14]POST & json_proto [11:30:14]process_json_proto [11:30:14]json parsed OK: [11:30:14]protocol is kg_v1.0 [11:30:14]action value=close_receipt [11:30:14]process_action close_receipt [11:30:14]cmd_close_receipt [11:30:14]MH_GetDate [11:30:15]Write to MH i2c: F0 00 00 55 0F 53 [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: F0 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: F0 09 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: F0 09 00 55 0F 00 C7 FA 5E 66 CC 51 87 64 E9 [11:30:15]GetLastDocTimeStamp 1717500585 [11:30:15]current date 1717500615 [11:30:15]FM_GetShiftState [11:30:15]SAM_PROTO_GetShiftState [11:30:15]wFMCommunicate request_size=4 [11:30:15]MH_SAM_APDU [11:30:15]CAPDU: 80 13 01 00 [11:30:15]Write to MH i2c: E2 08 00 56 0F 80 13 01 00 00 00 00 00 E2 [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 0E 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 0E 00 56 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A5 [11:30:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:30:15]wFMCommunicate OK [11:30:15]SAM_PROTO_GetShiftState done [11:30:15]FM_GetShiftState done [11:30:15]opened in 1717460629 [11:30:15]opened+sec_in_day 1717547029 [11:30:15]quantity*price = 41042 [11:30:15]sum+1 = 41044 [11:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.58 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 115 04.06.2024 11:30 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148776 ФПД: 119554140987007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113015&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148776&fm=119554140987007&tin=02508201610067®Number=0000000000092720&sum=41000 [11:30:16]StoreToDocumentArchive [11:30:16]shift 368 fd 148776 [11:30:16]save to /storage/0368/doc_00148776 [11:30:16]save last doc name /storage/0368/doc_00148776 to /storage/kkm_last_doc_name [11:30:16]save OK [11:30:16]Clear old archive folders... [11:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:30:16]tlvbuf is 00F1DAC0 [11:30:16]SAM_PROTO_ClearQueue [11:30:16]wFMCommunicate request_size=4 [11:30:16]MH_SAM_APDU [11:30:16]CAPDU: 80 09 00 00 [11:30:16]Write to MH i2c: E2 08 00 63 0F 80 09 00 00 00 00 00 00 E4 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:16]Read from MH i2c: E2 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 03 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 03 00 63 0F 00 90 00 E6 [11:30:16]RAPDU: 90 00 [11:30:16]wFMCommunicate OK [11:30:16]SAM_PROTO_ClearQueue done [11:30:16]KKMCreateOFDPacket [11:30:16]OFDProtocolAddRootSTLVToBuf [11:30:16]FM_MakeSignedData [11:30:16]FM_MakeSignedData [11:30:16]SAM_PROTO_SignData [11:30:16]wFMCommunicate request_size=4 [11:30:16]MH_SAM_APDU [11:30:16]CAPDU: 80 0D 01 02 [11:30:16]Write to MH i2c: E2 08 00 64 0F 80 0D 01 02 00 00 00 00 EC [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:16]Read from MH i2c: E2 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 03 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 03 00 64 0F 00 90 00 E7 [11:30:16]RAPDU: 90 00 [11:30:16]wFMCommunicate OK [11:30:16]wFMCommunicate request_size=255 [11:30:16]MH_SAM_APDU [11:30:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 11 00 00 00 00 07 04 06 00 28 A0 00 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 C7 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 28 45 02 00 35 04 06 00 6C BB DE 1A [11:30:16]Write to MH i2c: E2 02 01 65 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 11 00 00 00 00 07 04 06 00 28 A0 00 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 C7 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 28 45 02 00 35 04 06 00 6C BB DE 1A 00 00 EA [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:16]Read from MH i2c: E2 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 03 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 03 00 65 0F 00 90 00 E8 [11:30:16]RAPDU: 90 00 [11:30:16]wFMCommunicate OK [11:30:16]wFMCommunicate request_size=7 [11:30:16]MH_SAM_APDU [11:30:16]CAPDU: 80 0D 02 02 02 DE 7F [11:30:16]Write to MH i2c: E2 0A 00 66 0F 80 0D 02 02 02 00 DE 7F 00 00 50 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:16]Read from MH i2c: E2 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 03 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [11:30:16]RAPDU: 90 00 [11:30:16]wFMCommunicate OK [11:30:16]wFMCommunicate request_size=4 [11:30:16]MH_SAM_APDU [11:30:16]CAPDU: 80 0D 03 02 [11:30:16]Write to MH i2c: E2 08 00 67 0F 80 0D 03 02 00 00 00 00 F1 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:16]Read from MH i2c: E2 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 0B 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 0B 00 67 0F 00 07 0C B8 FE AF 01 57 88 90 00 4A [11:30:16]RAPDU: 07 0C B8 FE AF 01 57 88 90 00 [11:30:16]wFMCommunicate OK [11:30:16]SAM_PROTO_SignData done [11:30:16]FM_MakeSignedData done [11:30:16]CreateOFDProtocolMessage [11:30:16]wFMCommunicate request_size=4 [11:30:16]MH_SAM_APDU [11:30:16]CAPDU: 80 11 00 00 [11:30:16]Write to MH i2c: E2 08 00 68 0F 80 11 00 00 00 00 00 00 F1 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:16]Read from MH i2c: E2 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 17 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 17 00 68 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 44 [11:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:30:16]wFMCommunicate OK [11:30:16]CreateOFDProtocolMessage done [11:30:16]OFDSenderStorePacket 148776 [11:30:16]StoreOFDPacket docnum=148776 [11:30:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 E2 A7 04 01 EE F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 11 00 00 00 00 07 04 06 00 28 A0 00 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 C7 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 28 45 02 00 35 04 06 00 6C BB DE 1A DE 7F 07 0C B8 FE AF 01 57 88 [11:30:16]CheckFolder [11:30:16]dirname=/storage/ofd_packets [11:30:16]CheckFolder done [11:30:16]ProducePacketName [11:30:16]name=ofd_packets/00148776 [11:30:16]NVStorageSaveData ofd_packets/00148776 [11:30:16]File name is /storage/ofd_packets/00148776 [11:30:16]Write 298 bytes [11:30:16]NVStorageSaveData done [11:30:16]OFDSenderStorePacket done [11:30:16]KKMCreateOFDPacket done [11:30:16]NVStorageSaveData kkm_last_timestamp [11:30:16]File name is /storage/kkm_last_timestamp [11:30:16]Write 4 bytes [11:30:16]NVStorageSaveData done [11:30:16]ExternCall_PrintAddStr [11:30:16]wPrintStart [11:30:16]Write to MH i2c: 01 00 00 69 0F 78 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: 01 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: 01 07 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: 01 07 00 69 0F 00 00 00 00 00 FF 0F 8D [11:30:16]RasterBufferAndPrint [11:30:16]line Счет N : (1)979702 [11:30:16]line ИНН: 02508201610067 [11:30:16]line Контрольно-Кассовый Чек [11:30:16]line ПРОДАЖА [11:30:16]line ТРК (МРК, ГНК) : 21 [11:30:16]line Товар: 2710194210 [11:30:16]line ДТ-К-5 [11:30:16]line 5.630 * 72.90 [11:30:16]line = 410.43 [11:30:16]line НДС 12% НСП 1% [11:30:16]line > о реализуемом товаре [11:30:16]line ОКРУГЛЕНИЕ: -0.43 [11:30:16]line ИТОГО: 410.00 [11:30:16]line Внесено: 410.00 [11:30:16]line СДАЧА: 0.00 [11:30:16]line НСП 1% : 3.63 [11:30:16]line НДС 12% : 43.58 [11:30:16]line Наличными: 410.00 [11:30:16]line Безнал.: 0.00 [11:30:16]line Место: АЗС № 68 "Партнер Нефть" [11:30:16]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:30:16]line СНО: Общий режим [11:30:16]line Чек 115 04.06.2024 11:30 [11:30:16]line Смена: 368 ФФД: 1.0 [11:30:16]line ЗНМ: 0300000035 [11:30:16]line РНМ: 0000000000092720 [11:30:16]line Версия ККМ: 001 [11:30:16]line ФМ: 0000000000875057 [11:30:16]line ФД: 148776 [11:30:16]line ФПД: 119554140987007 [11:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113015&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148776&fm=119554140987007&tin=02508201610067®Number=0000000000092720&sum=41000 [11:30:17]OFD Sender: Processing packet 148776 [packets to send 100, broken 99] [11:30:17]ProducePacketName [11:30:17]name=ofd_packets/00148776 [11:30:17]OFD Sender: To server: pG, [11:30:17]CommunicateWithHost lk.salyk.kg:30040 [11:30:17]ConnectInit lk.salyk.kg [11:30:17]written 0, free lines is 4095 [11:30:17]Connected sock=10 [11:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 E2 A7 04 01 EE F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 11 00 00 00 00 07 04 06 00 28 A0 00 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 C7 FA 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 28 45 02 00 35 04 06 00 6C BB DE 1A DE 7F 07 0C B8 FE AF 01 57 88 [11:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 7B 49 47 00 6B 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 38 37 35 30 35 37 10 04 04 00 28 45 02 00 F4 03 04 00 EB A1 5E 66 B6 04 01 00 00 0B 0A 9C E4 4F 32 93 2A [11:30:17]CommunicateWithHost err = 0 [11:30:17]CheckOFDResponse [11:30:17]1017 (14) - 77093643461234 [11:30:17]1041 (16) - 0000000000875057 [11:30:17]1040 (4) - 148776 [11:30:17]1012 (4) - 04.06.2024 05:11 [11:30:17]1206 (1) - 0 [11:30:17]OFD Sender: Remove packet 148776 [11:30:17]ProducePacketName [11:30:17]name=ofd_packets/00148776 [11:30:17]NVStorageDeleteData [11:30:17]Write to MH i2c: 01 00 00 94 0F A3 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: 01 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: 01 07 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: 01 07 00 94 0F 00 00 00 00 00 6C 0C 22 [11:30:17]RasterBufferAndPrint [11:30:17]line [11:30:17]line [11:30:17]line [11:30:17]line [11:30:17]line [11:30:17]written 0, free lines is 3184 [11:30:17]MH_Cut [11:30:17]Write to MH i2c: D1 01 00 9B 0F 01 7C [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: D1 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: D1 01 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: D1 01 00 9B 0F 00 7B [11:30:17]Write to MH i2c: 01 00 00 9C 0F AB [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]OFD Sender: No OFD packet to send [11:30:18]*** Cut start [11:30:18]*** Partial cut [11:30:18]*** CUTSNS_PIN = 1 [11:30:18]*** CUTSNS_PIN = 0 [11:30:19]*** Brake cut motor [11:30:19]Read from MH i2c: 01 [11:30:19]MH_I2C_Read... [11:30:19]*** Stop cut motor [11:30:19]*** Cut end [11:30:19]Read from MH i2c: 01 07 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [11:30:19]process_action close_receipt done [11:30:19]requested_data is exist [11:30:19]produce_requested_data [11:30:19]requested_item fm.sn is exist - process it [11:30:19]wFMCommunicate request_size=4 [11:30:19]MH_SAM_APDU [11:30:19]CAPDU: 80 11 00 00 [11:30:19]Write to MH i2c: E2 08 00 9D 0F 80 11 00 00 00 00 00 00 26 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:19]Read from MH i2c: E2 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 17 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 17 00 9D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 79 [11:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:30:19]wFMCommunicate OK [11:30:19]requested_item fd.num is exist - process it [11:30:19]SAM_PROTO_GetFieldsCounters [11:30:19]wFMCommunicate request_size=4 [11:30:19]MH_SAM_APDU [11:30:19]CAPDU: 80 13 00 00 [11:30:19]Write to MH i2c: E2 08 00 9E 0F 80 13 00 00 00 00 00 00 29 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:19]Read from MH i2c: E2 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 62 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 62 00 9E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 28 45 02 00 0E 04 04 00 70 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 7E [11:30:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 28 45 02 00 0E 04 04 00 70 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 [11:30:19]wFMCommunicate OK [11:30:19]SAM_PROTO_GetFieldsCounters done [11:30:19]requested_item shift.num is exist - process it [11:30:19]requested_item shift.opened is exist - process it [11:30:19]req_shift_opened [11:30:19]FM_GetShiftState [11:30:19]SAM_PROTO_GetShiftState [11:30:19]wFMCommunicate request_size=4 [11:30:19]MH_SAM_APDU [11:30:19]CAPDU: 80 13 01 00 [11:30:19]Write to MH i2c: E2 08 00 9F 0F 80 13 01 00 00 00 00 00 2B [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:19]Read from MH i2c: E2 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 0E 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 0E 00 9F 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EE [11:30:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:30:19]wFMCommunicate OK [11:30:19]SAM_PROTO_GetShiftState done [11:30:19]FM_GetShiftState done [11:30:19]req_shift_opened done [11:30:19]requested_item shift.open_date is exist - process it [11:30:19]req_shift_open_date [11:30:19]req_shift_open_date done [11:30:19]produce_requested_data done [11:30:19]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148776,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:30:19]process_action_free close_receipt [11:30:19]json_value_free [11:30:19]json_value_free done [11:30:19]process_json_proto returns [11:30:19]Send response to host [11:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148776,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:30:19]free response buf [11:30:19]execute_script done [11:30:19]execute_script returns [11:30:19]free content buf [11:30:19]Sock 9.Close socket [11:30:19]Sock 9.Thread stoped [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:19]accept exits with 7 [11:35:19]New connection [11:35:19]New thread 3067235684 created [11:35:19]Thread 3067379044 joined [11:35:19]Waiting for new connection... [11:35:19] Sock 7.Parse request [11:35:19]Sock 7.Check first char [11:35:19]Sock 7.First char is OK [11:35:19]request: POST /json_proto HTTP/1.0 [11:35:19]Method: POST [11:35:19]URL: /json_proto [11:35:19]Method is POST - this is cgi request [11:35:19]url: /json_proto [11:35:19]query_string will be loaded in cgi processing [11:35:19]execute_cgi json_proto POST (null) [11:35:19]execute_cgi path=json_proto method=POST [11:35:19]POST find Content-Length [11:35:19]Host: 172.17.38.4:8080 [11:35:19]Content-Length: 790 [11:35:19]Content-Type: application/json [11:35:19] [11:35:19]POST finish read [11:35:19]Found Content-Length = 790 [11:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:19]execute_script... [11:35: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)979703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:19]POST & json_proto [11:35:19]process_json_proto [11:35:19]json parsed OK: [11:35:19]protocol is kg_v1.0 [11:35:19]action value=close_receipt [11:35:19]process_action close_receipt [11:35:19]cmd_close_receipt [11:35:19]MH_GetDate [11:35:19]Write to MH i2c: F0 00 00 A0 0F 9E [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: F0 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: F0 09 00 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: F0 09 00 A0 0F 00 F7 FB 5E 66 CC 51 87 64 65 [11:35:19]GetLastDocTimeStamp 1717500615 [11:35:19]current date 1717500919 [11:35:19]FM_GetShiftState [11:35:19]SAM_PROTO_GetShiftState [11:35:19]wFMCommunicate request_size=4 [11:35:19]MH_SAM_APDU [11:35:19]CAPDU: 80 13 01 00 [11:35:19]Write to MH i2c: E2 08 00 A1 0F 80 13 01 00 00 00 00 00 2D [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:19]Read from MH i2c: E2 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 0E 00 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 0E 00 A1 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F0 [11:35:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:35:19]wFMCommunicate OK [11:35:19]SAM_PROTO_GetShiftState done [11:35:19]FM_GetShiftState done [11:35:19]opened in 1717460629 [11:35:19]opened+sec_in_day 1717547029 [11:35:19]quantity*price = 50030 [11:35:19]sum+1 = 50031 [11:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.30 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.30 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 116 04.06.2024 11:35 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148777 ФПД: 220903383379430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113519&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148777&fm=220903383379430&tin=02508201610067®Number=0000000000092720&sum=50030 [11:35:20]StoreToDocumentArchive [11:35:20]shift 368 fd 148777 [11:35:20]save to /storage/0368/doc_00148777 [11:35:20]save last doc name /storage/0368/doc_00148777 to /storage/kkm_last_doc_name [11:35:20]save OK [11:35:20]Clear old archive folders... [11:35:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:20]tlvbuf is 00FDA890 [11:35:20]SAM_PROTO_ClearQueue [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 09 00 00 [11:35:20]Write to MH i2c: E2 08 00 AE 0F 80 09 00 00 00 00 00 00 2F [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:20]Read from MH i2c: E2 03 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 AE 0F 00 90 00 31 [11:35:20]RAPDU: 90 00 [11:35:20]wFMCommunicate OK [11:35:20]SAM_PROTO_ClearQueue done [11:35:20]KKMCreateOFDPacket [11:35:20]OFDProtocolAddRootSTLVToBuf [11:35:20]FM_MakeSignedData [11:35:20]FM_MakeSignedData [11:35:20]SAM_PROTO_SignData [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 0D 01 02 [11:35:20]Write to MH i2c: E2 08 00 AF 0F 80 0D 01 02 00 00 00 00 37 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 AF 0F 00 90 00 32 [11:35:20]RAPDU: 90 00 [11:35:20]wFMCommunicate OK [11:35:20]wFMCommunicate request_size=255 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F7 FB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 29 45 02 00 35 04 06 00 C8 [11:35:20]Write to MH i2c: E2 02 01 B0 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F7 FB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 29 45 02 00 35 04 06 00 C8 00 00 BD [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 B0 0F 00 90 00 33 [11:35:20]RAPDU: 90 00 [11:35:20]wFMCommunicate OK [11:35:20]wFMCommunicate request_size=10 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 0D 02 02 05 E9 13 B2 2D E6 [11:35:20]Write to MH i2c: E2 0D 00 B1 0F 80 0D 02 02 05 00 E9 13 B2 2D E6 00 00 05 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 03 00 B1 0F 00 90 00 34 [11:35:20]RAPDU: 90 00 [11:35:20]wFMCommunicate OK [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 0D 03 02 [11:35:20]Write to MH i2c: E2 08 00 B2 0F 80 0D 03 02 00 00 00 00 3C [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0B 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0B 00 B2 0F 00 11 FB 10 94 59 49 10 78 90 00 17 [11:35:20]RAPDU: 11 FB 10 94 59 49 10 78 90 00 [11:35:20]wFMCommunicate OK [11:35:20]SAM_PROTO_SignData done [11:35:20]FM_MakeSignedData done [11:35:20]CreateOFDProtocolMessage [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 11 00 00 [11:35:20]Write to MH i2c: E2 08 00 B3 0F 80 11 00 00 00 00 00 00 3C [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 17 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 17 00 B3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8F [11:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:35:20]wFMCommunicate OK [11:35:20]CreateOFDProtocolMessage done [11:35:20]OFDSenderStorePacket 148777 [11:35:20]StoreOFDPacket docnum=148777 [11:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 91 0A 07 01 77 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F7 FB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 29 45 02 00 35 04 06 00 C8 E9 13 B2 2D E6 11 FB 10 94 59 49 10 78 [11:35:20]CheckFolder [11:35:20]dirname=/storage/ofd_packets [11:35:20]CheckFolder done [11:35:20]ProducePacketName [11:35:20]name=ofd_packets/00148777 [11:35:20]NVStorageSaveData ofd_packets/00148777 [11:35:20]File name is /storage/ofd_packets/00148777 [11:35:20]Write 301 bytes [11:35:20]NVStorageSaveData done [11:35:20]OFDSenderStorePacket done [11:35:20]KKMCreateOFDPacket done [11:35:20]NVStorageSaveData kkm_last_timestamp [11:35:20]File name is /storage/kkm_last_timestamp [11:35:20]Write 4 bytes [11:35:20]NVStorageSaveData done [11:35:20]ExternCall_PrintAddStr [11:35:20]wPrintStart [11:35:20]Write to MH i2c: 01 00 00 B4 0F C3 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 07 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 07 00 B4 0F 00 00 00 00 00 FF 0F D8 [11:35:20]RasterBufferAndPrint [11:35:20]line Счет N : (1)979703 [11:35:20]line ИНН: 02508201610067 [11:35:20]line Контрольно-Кассовый Чек [11:35:20]line ПРОДАЖА [11:35:20]line ТРК (МРК, ГНК) : 23 [11:35:20]line Товар: 2710124500 [11:35:20]line Аи-95-К-5 [11:35:20]line 6.770 * 73.90 [11:35:20]line = 500.30 [11:35:20]line НДС 12% НСП 1% [11:35:20]line > о реализуемом товаре [11:35:20]line ИТОГО: 500.30 [11:35:20]line НСП 1% : 4.43 [11:35:20]line НДС 12% : 53.13 [11:35:20]line Наличными: 0.00 [11:35:20]line Безнал.: 500.30 [11:35:20]line Место: АЗС № 68 "Партнер Нефть" [11:35:20]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:35:20]line СНО: Общий режим [11:35:20]line Чек 116 04.06.2024 11:35 [11:35:20]line Смена: 368 ФФД: 1.0 [11:35:20]line ЗНМ: 0300000035 [11:35:20]line РНМ: 0000000000092720 [11:35:20]line Версия ККМ: 001 [11:35:20]line Платежная система: KICB Банк [11:35:20]line ФМ: 0000000000875057 [11:35:20]line ФД: 148777 [11:35:20]line ФПД: 220903383379430 [11:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113519&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148777&fm=220903383379430&tin=02508201610067®Number=0000000000092720&sum=50030 [11:35:21]OFD Sender: Processing packet 148777 [packets to send 100, broken 99] [11:35:21]ProducePacketName [11:35:21]name=ofd_packets/00148777 [11:35:21]OFD Sender: To server: pG, [11:35:21]CommunicateWithHost lk.salyk.kg:30040 [11:35:21]ConnectInit lk.salyk.kg [11:35:21]written 0, free lines is 4095 [11:35:21]Connected sock=10 [11:35:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 91 0A 07 01 77 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F7 FB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 29 45 02 00 35 04 06 00 C8 E9 13 B2 2D E6 11 FB 10 94 59 49 10 78 [11:35:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 24 2C 47 00 3F 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 29 45 02 00 F4 03 04 00 1C A3 5E 66 B6 04 01 00 00 31 A1 6C 63 FE 4D E7 D4 [11:35:21]CommunicateWithHost err = 0 [11:35:21]CheckOFDResponse [11:35:21]1017 (14) - 77093643461234 [11:35:21]1041 (16) - 0000000000875057 [11:35:21]1040 (4) - 148777 [11:35:21]1012 (4) - 04.06.2024 05:16 [11:35:21]1206 (1) - 0 [11:35:21]OFD Sender: Remove packet 148777 [11:35:21]ProducePacketName [11:35:21]name=ofd_packets/00148777 [11:35:21]NVStorageDeleteData [11:35:21]Write to MH i2c: 01 00 00 DE 0F ED [11:35:21]Write i2c OK [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: 01 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: 01 07 00 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: 01 07 00 DE 0F 00 00 00 00 00 86 0C 86 [11:35:21]RasterBufferAndPrint [11:35:21]line [11:35:21]line [11:35:21]line [11:35:21]line [11:35:21]line [11:35:21]written 0, free lines is 3210 [11:35:21]MH_Cut [11:35:21]Write to MH i2c: D1 01 00 E5 0F 01 C6 [11:35:21]Write i2c OK [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: D1 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: D1 01 00 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: D1 01 00 E5 0F 00 C5 [11:35:21]Write to MH i2c: 01 00 00 E6 0F F5 [11:35:21]Write i2c OK [11:35:21]MH_I2C_Read... [11:35:22]OFD Sender: No OFD packet to send [11:35:22]*** Cut start [11:35:22]*** Partial cut [11:35:22]*** CUTSNS_PIN = 1 [11:35:23]*** CUTSNS_PIN = 0 [11:35:23]*** Brake cut motor [11:35:23]Read from MH i2c: 01 [11:35:23]MH_I2C_Read... [11:35:23]*** Stop cut motor [11:35:23]*** Cut end [11:35:23]Read from MH i2c: 01 07 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: 01 07 00 E6 0F 00 00 00 00 00 FF 0F 0A [11:35:23]process_action close_receipt done [11:35:23]requested_data is exist [11:35:23]produce_requested_data [11:35:23]requested_item fm.sn is exist - process it [11:35:23]wFMCommunicate request_size=4 [11:35:23]MH_SAM_APDU [11:35:23]CAPDU: 80 11 00 00 [11:35:23]Write to MH i2c: E2 08 00 E7 0F 80 11 00 00 00 00 00 00 70 [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:23]Read from MH i2c: E2 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 17 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 17 00 E7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C3 [11:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:35:23]wFMCommunicate OK [11:35:23]requested_item fd.num is exist - process it [11:35:23]SAM_PROTO_GetFieldsCounters [11:35:23]wFMCommunicate request_size=4 [11:35:23]MH_SAM_APDU [11:35:23]CAPDU: 80 13 00 00 [11:35:23]Write to MH i2c: E2 08 00 E8 0F 80 13 00 00 00 00 00 00 73 [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:23]Read from MH i2c: E2 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 62 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 62 00 E8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 29 45 02 00 0E 04 04 00 70 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 CC [11:35:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 29 45 02 00 0E 04 04 00 70 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 [11:35:23]wFMCommunicate OK [11:35:23]SAM_PROTO_GetFieldsCounters done [11:35:23]requested_item shift.num is exist - process it [11:35:23]requested_item shift.opened is exist - process it [11:35:23]req_shift_opened [11:35:23]FM_GetShiftState [11:35:23]SAM_PROTO_GetShiftState [11:35:23]wFMCommunicate request_size=4 [11:35:23]MH_SAM_APDU [11:35:23]CAPDU: 80 13 01 00 [11:35:23]Write to MH i2c: E2 08 00 E9 0F 80 13 01 00 00 00 00 00 75 [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:23]Read from MH i2c: E2 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 0E 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 0E 00 E9 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 38 [11:35:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:35:23]wFMCommunicate OK [11:35:23]SAM_PROTO_GetShiftState done [11:35:23]FM_GetShiftState done [11:35:23]req_shift_opened done [11:35:23]requested_item shift.open_date is exist - process it [11:35:23]req_shift_open_date [11:35:23]req_shift_open_date done [11:35:23]produce_requested_data done [11:35:23]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148777,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:35:23]process_action_free close_receipt [11:35:23]json_value_free [11:35:23]json_value_free done [11:35:23]process_json_proto returns [11:35:23]Send response to host [11:35:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148777,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:35:23]free response buf [11:35:23]execute_script done [11:35:23]execute_script returns [11:35:23]free content buf [11:35:23]Sock 7.Close socket [11:35:23]Sock 7.Thread stoped [11:35:26]accept exits with 9 [11:35:26]New connection [11:35:26]New thread 3067379044 created [11:35:26]Thread 3067235684 joined [11:35:26]Waiting for new connection... [11:35:26] Sock 9.Parse request [11:35:26]Sock 9.Check first char [11:35:26]Sock 9.First char is OK [11:35:26]request: POST /json_proto HTTP/1.0 [11:35:26]Method: POST [11:35:26]URL: /json_proto [11:35:26]Method is POST - this is cgi request [11:35:26]url: /json_proto [11:35:26]query_string will be loaded in cgi processing [11:35:26]execute_cgi json_proto POST (null) [11:35:26]execute_cgi path=json_proto method=POST [11:35:26]POST find Content-Length [11:35:26]Host: 172.17.38.4:8080 [11:35:26]Content-Length: 679 [11:35:26]Content-Type: application/json [11:35:26] [11:35:26]POST finish read [11:35:26]Found Content-Length = 679 [11:35:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:35:26]execute_script... [11:35: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)979704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:35:26]POST & json_proto [11:35:26]process_json_proto [11:35:26]json parsed OK: [11:35:26]protocol is kg_v1.0 [11:35:26]action value=close_receipt [11:35:26]process_action close_receipt [11:35:26]cmd_close_receipt [11:35:26]MH_GetDate [11:35:26]Write to MH i2c: F0 00 00 EA 0F E8 [11:35:26]Write i2c OK [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 09 00 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 09 00 EA 0F 00 FF FB 5E 66 CC 51 87 64 B7 [11:35:26]GetLastDocTimeStamp 1717500919 [11:35:26]current date 1717500927 [11:35:26]FM_GetShiftState [11:35:26]SAM_PROTO_GetShiftState [11:35:26]wFMCommunicate request_size=4 [11:35:26]MH_SAM_APDU [11:35:26]CAPDU: 80 13 01 00 [11:35:26]Write to MH i2c: E2 08 00 EB 0F 80 13 01 00 00 00 00 00 77 [11:35:26]Write i2c OK [11:35:26]MH_I2C_Read... [11:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:26]Read from MH i2c: E2 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: E2 0E 00 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: E2 0E 00 EB 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3A [11:35:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:35:26]wFMCommunicate OK [11:35:26]SAM_PROTO_GetShiftState done [11:35:26]FM_GetShiftState done [11:35:26]opened in 1717460629 [11:35:26]opened+sec_in_day 1717547029 [11:35:26]quantity*price = 100018 [11:35:26]sum+1 = 100020 [11:35:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 117 04.06.2024 11:35 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148778 ФПД: 42816281967822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113527&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148778&fm=42816281967822&tin=02508201610067®Number=0000000000092720&sum=100000 [11:35:28]StoreToDocumentArchive [11:35:28]shift 368 fd 148778 [11:35:28]save to /storage/0368/doc_00148778 [11:35:28]save last doc name /storage/0368/doc_00148778 to /storage/kkm_last_doc_name [11:35:28]save OK [11:35:28]Clear old archive folders... [11:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:28]tlvbuf is 00F2AAD0 [11:35:28]SAM_PROTO_ClearQueue [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 09 00 00 [11:35:28]Write to MH i2c: E2 08 00 F8 0F 80 09 00 00 00 00 00 00 79 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [11:35:28]RAPDU: 90 00 [11:35:28]wFMCommunicate OK [11:35:28]SAM_PROTO_ClearQueue done [11:35:28]KKMCreateOFDPacket [11:35:28]OFDProtocolAddRootSTLVToBuf [11:35:28]FM_MakeSignedData [11:35:28]FM_MakeSignedData [11:35:28]SAM_PROTO_SignData [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 0D 01 02 [11:35:28]Write to MH i2c: E2 08 00 F9 0F 80 0D 01 02 00 00 00 00 81 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 F9 0F 00 90 00 7C [11:35:28]RAPDU: 90 00 [11:35:28]wFMCommunicate OK [11:35:28]wFMCommunicate request_size=255 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 FF FB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2A 45 02 00 35 04 06 00 26 F0 F1 46 [11:35:28]Write to MH i2c: E2 02 01 FA 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 FF FB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2A 45 02 00 35 04 06 00 26 F0 F1 46 00 00 44 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 FA 0F 00 90 00 7D [11:35:28]RAPDU: 90 00 [11:35:28]wFMCommunicate OK [11:35:28]wFMCommunicate request_size=7 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 0D 02 02 02 FC CE [11:35:28]Write to MH i2c: E2 0A 00 FB 0F 80 0D 02 02 02 00 FC CE 00 00 52 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 FB 0F 00 90 00 7E [11:35:28]RAPDU: 90 00 [11:35:28]wFMCommunicate OK [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 0D 03 02 [11:35:28]Write to MH i2c: E2 08 00 FC 0F 80 0D 03 02 00 00 00 00 86 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 0B 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 0B 00 FC 0F 00 E7 A3 F7 C9 C7 F4 2A CE 90 00 84 [11:35:28]RAPDU: E7 A3 F7 C9 C7 F4 2A CE 90 00 [11:35:28]wFMCommunicate OK [11:35:28]SAM_PROTO_SignData done [11:35:28]FM_MakeSignedData done [11:35:28]CreateOFDProtocolMessage [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 11 00 00 [11:35:28]Write to MH i2c: E2 08 00 FD 0F 80 11 00 00 00 00 00 00 86 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 17 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 17 00 FD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D9 [11:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:35:28]wFMCommunicate OK [11:35:28]CreateOFDProtocolMessage done [11:35:28]OFDSenderStorePacket 148778 [11:35:28]StoreOFDPacket docnum=148778 [11:35:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 14 86 04 01 97 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 FF FB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2A 45 02 00 35 04 06 00 26 F0 F1 46 FC CE E7 A3 F7 C9 C7 F4 2A CE [11:35:28]CheckFolder [11:35:28]dirname=/storage/ofd_packets [11:35:28]CheckFolder done [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00148778 [11:35:28]NVStorageSaveData ofd_packets/00148778 [11:35:28]File name is /storage/ofd_packets/00148778 [11:35:28]Write 298 bytes [11:35:28]NVStorageSaveData done [11:35:28]OFDSenderStorePacket done [11:35:28]KKMCreateOFDPacket done [11:35:28]NVStorageSaveData kkm_last_timestamp [11:35:28]File name is /storage/kkm_last_timestamp [11:35:28]Write 4 bytes [11:35:28]NVStorageSaveData done [11:35:28]ExternCall_PrintAddStr [11:35:28]wPrintStart [11:35:28]Write to MH i2c: 01 00 00 FE 0F 0D [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 FE 0F 00 00 00 00 00 FF 0F 22 [11:35:28]RasterBufferAndPrint [11:35:28]line Счет N : (1)979704 [11:35:28]line ИНН: 02508201610067 [11:35:28]line Контрольно-Кассовый Чек [11:35:28]line ПРОДАЖА [11:35:28]line ТРК (МРК, ГНК) : 51 [11:35:28]line Товар: 2710194210 [11:35:28]line ДТ-К-5 [11:35:28]line 13.720 * 72.90 [11:35:28]line = 1000.19 [11:35:28]line НДС 12% НСП 1% [11:35:28]line > о реализуемом товаре [11:35:28]line ОКРУГЛЕНИЕ: -0.19 [11:35:28]line ИТОГО: 1000.00 [11:35:28]line Внесено: 1000.00 [11:35:28]line СДАЧА: 0.00 [11:35:28]line НСП 1% : 8.85 [11:35:28]line НДС 12% : 106.21 [11:35:28]line Наличными: 1000.00 [11:35:28]line Безнал.: 0.00 [11:35:28]line Место: АЗС № 68 "Партнер Нефть" [11:35:28]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:35:28]line СНО: Общий режим [11:35:28]line Чек 117 04.06.2024 11:35 [11:35:28]line Смена: 368 ФФД: 1.0 [11:35:28]line ЗНМ: 0300000035 [11:35:28]line РНМ: 0000000000092720 [11:35:28]line Версия ККМ: 001 [11:35:28]line ФМ: 0000000000875057 [11:35:28]line ФД: 148778 [11:35:28]line ФПД: 42816281967822 [11:35:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113527&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148778&fm=42816281967822&tin=02508201610067®Number=0000000000092720&sum=100000 [11:35:28]written 0, free lines is 4095 [11:35:28]OFD Sender: Processing packet 148778 [packets to send 100, broken 99] [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00148778 [11:35:28]OFD Sender: To server: pG, [11:35:28]CommunicateWithHost lk.salyk.kg:30040 [11:35:28]ConnectInit lk.salyk.kg [11:35:28]Connected sock=10 [11:35:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 14 86 04 01 97 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 FF FB 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2A 45 02 00 35 04 06 00 26 F0 F1 46 FC CE E7 A3 F7 C9 C7 F4 2A CE [11:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1B 2C 47 00 31 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2A 45 02 00 F4 03 04 00 23 A3 5E 66 B6 04 01 00 00 66 D5 F5 67 79 B9 EB 07 [11:35:28]CommunicateWithHost err = 0 [11:35:28]CheckOFDResponse [11:35:28]1017 (14) - 77093643461234 [11:35:28]1041 (16) - 0000000000875057 [11:35:28]1040 (4) - 148778 [11:35:28]1012 (4) - 04.06.2024 05:16 [11:35:28]1206 (1) - 0 [11:35:28]OFD Sender: Remove packet 148778 [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00148778 [11:35:28]NVStorageDeleteData [11:35:29]Write to MH i2c: 01 00 00 29 10 39 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 29 10 00 00 00 00 00 6E 0C BA [11:35:29]RasterBufferAndPrint [11:35:29]line [11:35:29]line [11:35:29]line [11:35:29]line [11:35:29]line [11:35:29]written 0, free lines is 3186 [11:35:29]MH_Cut [11:35:29]Write to MH i2c: D1 01 00 30 10 01 12 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: D1 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: D1 01 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: D1 01 00 30 10 00 11 [11:35:29]Write to MH i2c: 01 00 00 31 10 41 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]OFD Sender: No OFD packet to send [11:35:30]*** Cut start [11:35:30]*** Partial cut [11:35:30]*** CUTSNS_PIN = 1 [11:35:30]*** CUTSNS_PIN = 0 [11:35:30]*** Brake cut motor [11:35:30]Read from MH i2c: 01 [11:35:30]MH_I2C_Read... [11:35:30]*** Stop cut motor [11:35:30]*** Cut end [11:35:30]Read from MH i2c: 01 07 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 FF 0F 56 [11:35:30]process_action close_receipt done [11:35:30]requested_data is exist [11:35:30]produce_requested_data [11:35:30]requested_item fm.sn is exist - process it [11:35:30]wFMCommunicate request_size=4 [11:35:30]MH_SAM_APDU [11:35:30]CAPDU: 80 11 00 00 [11:35:30]Write to MH i2c: E2 08 00 32 10 80 11 00 00 00 00 00 00 BC [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:31]Read from MH i2c: E2 [11:35:31]MH_I2C_Read... [11:35:31]Read from MH i2c: E2 17 00 [11:35:31]MH_I2C_Read... [11:35:31]Read from MH i2c: E2 17 00 32 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0F [11:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:35:31]wFMCommunicate OK [11:35:31]requested_item fd.num is exist - process it [11:35:31]SAM_PROTO_GetFieldsCounters [11:35:31]wFMCommunicate request_size=4 [11:35:31]MH_SAM_APDU [11:35:31]CAPDU: 80 13 00 00 [11:35:31]Write to MH i2c: E2 08 00 33 10 80 13 00 00 00 00 00 00 BF [11:35:31]Write i2c OK [11:35:31]MH_I2C_Read... [11:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:31]Read from MH i2c: E2 [11:35:31]MH_I2C_Read... [11:35:31]Read from MH i2c: E2 62 00 [11:35:31]MH_I2C_Read... [11:35:31]Read from MH i2c: E2 62 00 33 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2A 45 02 00 0E 04 04 00 70 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 1C [11:35:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2A 45 02 00 0E 04 04 00 70 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 [11:35:31]wFMCommunicate OK [11:35:31]SAM_PROTO_GetFieldsCounters done [11:35:31]requested_item shift.num is exist - process it [11:35:31]requested_item shift.opened is exist - process it [11:35:31]req_shift_opened [11:35:31]FM_GetShiftState [11:35:31]SAM_PROTO_GetShiftState [11:35:31]wFMCommunicate request_size=4 [11:35:31]MH_SAM_APDU [11:35:31]CAPDU: 80 13 01 00 [11:35:31]Write to MH i2c: E2 08 00 34 10 80 13 01 00 00 00 00 00 C1 [11:35:31]Write i2c OK [11:35:31]MH_I2C_Read... [11:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:31]Read from MH i2c: E2 [11:35:31]MH_I2C_Read... [11:35:31]Read from MH i2c: E2 0E 00 [11:35:31]MH_I2C_Read... [11:35:31]Read from MH i2c: E2 0E 00 34 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 84 [11:35:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:35:31]wFMCommunicate OK [11:35:31]SAM_PROTO_GetShiftState done [11:35:31]FM_GetShiftState done [11:35:31]req_shift_opened done [11:35:31]requested_item shift.open_date is exist - process it [11:35:31]req_shift_open_date [11:35:31]req_shift_open_date done [11:35:31]produce_requested_data done [11:35:31]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148778,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:35:31]process_action_free close_receipt [11:35:31]json_value_free [11:35:31]json_value_free done [11:35:31]process_json_proto returns [11:35:31]Send response to host [11:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148778,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:35:31]free response buf [11:35:31]execute_script done [11:35:31]execute_script returns [11:35:31]free content buf [11:35:31]Sock 9.Close socket [11:35:31]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [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:07]accept exits with 7 [11:37:07]New connection [11:37:07]New thread 3067235684 created [11:37:07]Thread 3067379044 joined [11:37:07]Waiting for new connection... [11:37:07] Sock 7.Parse request [11:37:07]Sock 7.Check first char [11:37:07]Sock 7.First char is OK [11:37:07]request: POST /json_proto HTTP/1.0 [11:37:07]Method: POST [11:37:07]URL: /json_proto [11:37:07]Method is POST - this is cgi request [11:37:07]url: /json_proto [11:37:07]query_string will be loaded in cgi processing [11:37:07]execute_cgi json_proto POST (null) [11:37:07]execute_cgi path=json_proto method=POST [11:37:07]POST find Content-Length [11:37:07]Host: 172.17.38.4:8080 [11:37:07]Content-Length: 677 [11:37:07]Content-Type: application/json [11:37:07] [11:37:07]POST finish read [11:37:07]Found Content-Length = 677 [11:37:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 334.00, "total" : 334.00, "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:07]execute_script... [11:37: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)979706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 334.00, "total" : 334.00, "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:07]POST & json_proto [11:37:07]process_json_proto [11:37:07]json parsed OK: [11:37:07]protocol is kg_v1.0 [11:37:07]action value=close_receipt [11:37:07]process_action close_receipt [11:37:07]cmd_close_receipt [11:37:07]MH_GetDate [11:37:07]Write to MH i2c: F0 00 00 35 10 34 [11:37:07]Write i2c OK [11:37:07]MH_I2C_Read... [11:37:07]Read from MH i2c: F0 [11:37:07]MH_I2C_Read... [11:37:07]Read from MH i2c: F0 09 00 [11:37:07]MH_I2C_Read... [11:37:07]Read from MH i2c: F0 09 00 35 10 00 64 FC 5E 66 CC 51 87 64 69 [11:37:07]GetLastDocTimeStamp 1717500927 [11:37:07]current date 1717501028 [11:37:07]FM_GetShiftState [11:37:07]SAM_PROTO_GetShiftState [11:37:07]wFMCommunicate request_size=4 [11:37:07]MH_SAM_APDU [11:37:07]CAPDU: 80 13 01 00 [11:37:07]Write to MH i2c: E2 08 00 36 10 80 13 01 00 00 00 00 00 C3 [11:37:07]Write i2c OK [11:37:07]MH_I2C_Read... [11:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:07]Read from MH i2c: E2 [11:37:07]MH_I2C_Read... [11:37:07]Read from MH i2c: E2 0E 00 [11:37:07]MH_I2C_Read... [11:37:07]Read from MH i2c: E2 0E 00 36 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 86 [11:37:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:37:07]wFMCommunicate OK [11:37:07]SAM_PROTO_GetShiftState done [11:37:07]FM_GetShiftState done [11:37:07]opened in 1717460629 [11:37:07]opened+sec_in_day 1717547029 [11:37:07]quantity*price = 33450 [11:37:07]sum+1 = 33451 [11:37:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 334.00 Внесено: 334.00 СДАЧА: 0.00 НСП 1% : 2.96 НДС 12% : 35.52 Наличными: 334.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 118 04.06.2024 11:37 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148779 ФПД: 203176864512336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113708&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148779&fm=203176864512336&tin=02508201610067®Number=0000000000092720&sum=33400 [11:37:08]StoreToDocumentArchive [11:37:08]shift 368 fd 148779 [11:37:08]save to /storage/0368/doc_00148779 [11:37:08]save last doc name /storage/0368/doc_00148779 to /storage/kkm_last_doc_name [11:37:08]save OK [11:37:08]Clear old archive folders... [11:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:08]tlvbuf is 00FD9440 [11:37:08]SAM_PROTO_ClearQueue [11:37:08]wFMCommunicate request_size=4 [11:37:08]MH_SAM_APDU [11:37:08]CAPDU: 80 09 00 00 [11:37:08]Write to MH i2c: E2 08 00 43 10 80 09 00 00 00 00 00 00 C5 [11:37:08]Write i2c OK [11:37:08]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 43 10 00 90 00 C7 [11:37:09]RAPDU: 90 00 [11:37:09]wFMCommunicate OK [11:37:09]SAM_PROTO_ClearQueue done [11:37:09]KKMCreateOFDPacket [11:37:09]OFDProtocolAddRootSTLVToBuf [11:37:09]FM_MakeSignedData [11:37:09]FM_MakeSignedData [11:37:09]SAM_PROTO_SignData [11:37:09]wFMCommunicate request_size=4 [11:37:09]MH_SAM_APDU [11:37:09]CAPDU: 80 0D 01 02 [11:37:09]Write to MH i2c: E2 08 00 44 10 80 0D 01 02 00 00 00 00 CD [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 44 10 00 90 00 C8 [11:37:09]RAPDU: 90 00 [11:37:09]wFMCommunicate OK [11:37:09]wFMCommunicate request_size=255 [11:37:09]MH_SAM_APDU [11:37:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 76 00 00 00 F4 03 04 00 64 FC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2B 45 02 00 35 04 06 00 B8 [11:37:09]Write to MH i2c: E2 02 01 45 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 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 76 00 00 00 F4 03 04 00 64 FC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2B 45 02 00 35 04 06 00 B8 00 00 14 [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 45 10 00 90 00 C9 [11:37:09]RAPDU: 90 00 [11:37:09]wFMCommunicate OK [11:37:09]wFMCommunicate request_size=10 [11:37:09]MH_SAM_APDU [11:37:09]CAPDU: 80 0D 02 02 05 C9 CC D5 F9 50 [11:37:09]Write to MH i2c: E2 0D 00 46 10 80 0D 02 02 05 00 C9 CC D5 F9 50 00 00 8D [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 03 00 46 10 00 90 00 CA [11:37:09]RAPDU: 90 00 [11:37:09]wFMCommunicate OK [11:37:09]wFMCommunicate request_size=4 [11:37:09]MH_SAM_APDU [11:37:09]CAPDU: 80 0D 03 02 [11:37:09]Write to MH i2c: E2 08 00 47 10 80 0D 03 02 00 00 00 00 D2 [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 0B 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 0B 00 47 10 00 E2 F8 EC 75 DB 6D 54 99 90 00 43 [11:37:09]RAPDU: E2 F8 EC 75 DB 6D 54 99 90 00 [11:37:09]wFMCommunicate OK [11:37:09]SAM_PROTO_SignData done [11:37:09]FM_MakeSignedData done [11:37:09]CreateOFDProtocolMessage [11:37:09]wFMCommunicate request_size=4 [11:37:09]MH_SAM_APDU [11:37:09]CAPDU: 80 11 00 00 [11:37:09]Write to MH i2c: E2 08 00 48 10 80 11 00 00 00 00 00 00 D2 [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:09]Read from MH i2c: E2 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 17 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: E2 17 00 48 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 25 [11:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:37:09]wFMCommunicate OK [11:37:09]CreateOFDProtocolMessage done [11:37:09]OFDSenderStorePacket 148779 [11:37:09]StoreOFDPacket docnum=148779 [11:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B7 B9 07 01 41 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 76 00 00 00 F4 03 04 00 64 FC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2B 45 02 00 35 04 06 00 B8 C9 CC D5 F9 50 E2 F8 EC 75 DB 6D 54 99 [11:37:09]CheckFolder [11:37:09]dirname=/storage/ofd_packets [11:37:09]CheckFolder done [11:37:09]ProducePacketName [11:37:09]name=ofd_packets/00148779 [11:37:09]NVStorageSaveData ofd_packets/00148779 [11:37:09]File name is /storage/ofd_packets/00148779 [11:37:09]Write 301 bytes [11:37:09]NVStorageSaveData done [11:37:09]OFDSenderStorePacket done [11:37:09]KKMCreateOFDPacket done [11:37:09]NVStorageSaveData kkm_last_timestamp [11:37:09]File name is /storage/kkm_last_timestamp [11:37:09]Write 4 bytes [11:37:09]NVStorageSaveData done [11:37:09]ExternCall_PrintAddStr [11:37:09]wPrintStart [11:37:09]Write to MH i2c: 01 00 00 49 10 59 [11:37:09]Write i2c OK [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: 01 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: 01 07 00 [11:37:09]MH_I2C_Read... [11:37:09]Read from MH i2c: 01 07 00 49 10 00 00 00 00 00 FF 0F 6E [11:37:09]RasterBufferAndPrint [11:37:09]line Счет N : (1)979706 [11:37:09]line ИНН: 02508201610067 [11:37:09]line Контрольно-Кассовый Чек [11:37:09]line ПРОДАЖА [11:37:09]line ТРК (МРК, ГНК) : 12 [11:37:09]line Товар: 2710124130 [11:37:09]line Аи-92-К-5 [11:37:09]line 5.000 * 66.90 [11:37:09]line = 334.50 [11:37:09]line НДС 12% НСП 1% [11:37:09]line > о реализуемом товаре [11:37:09]line ОКРУГЛЕНИЕ: -0.50 [11:37:09]line ИТОГО: 334.00 [11:37:09]line Внесено: 334.00 [11:37:09]line СДАЧА: 0.00 [11:37:09]line НСП 1% : 2.96 [11:37:09]line НДС 12% : 35.52 [11:37:09]line Наличными: 334.00 [11:37:09]line Безнал.: 0.00 [11:37:09]line Место: АЗС № 68 "Партнер Нефть" [11:37:09]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:37:09]line СНО: Общий режим [11:37:09]line Чек 118 04.06.2024 11:37 [11:37:09]line Смена: 368 ФФД: 1.0 [11:37:09]line ЗНМ: 0300000035 [11:37:09]line РНМ: 0000000000092720 [11:37:09]line Версия ККМ: 001 [11:37:09]line ФМ: 0000000000875057 [11:37:09]line ФД: 148779 [11:37:09]line ФПД: 203176864512336 [11:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113708&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148779&fm=203176864512336&tin=02508201610067®Number=0000000000092720&sum=33400 [11:37:09]OFD Sender: Processing packet 148779 [packets to send 100, broken 99] [11:37:09]ProducePacketName [11:37:09]name=ofd_packets/00148779 [11:37:09]OFD Sender: To server: pG, [11:37:09]CommunicateWithHost lk.salyk.kg:30040 [11:37:09]ConnectInit lk.salyk.kg [11:37:09]written 0, free lines is 4095 [11:37:09]Connected sock=10 [11:37:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B7 B9 07 01 41 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 76 00 00 00 F4 03 04 00 64 FC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2B 45 02 00 35 04 06 00 B8 C9 CC D5 F9 50 E2 F8 EC 75 DB 6D 54 99 [11:37:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8C 7B 47 00 8D D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2B 45 02 00 F4 03 04 00 88 A3 5E 66 B6 04 01 00 00 33 12 8C B7 70 A9 CD 99 [11:37:10]CommunicateWithHost err = 0 [11:37:10]CheckOFDResponse [11:37:10]1017 (14) - 77093643461234 [11:37:10]1041 (16) - 0000000000875057 [11:37:10]1040 (4) - 148779 [11:37:10]1012 (4) - 04.06.2024 05:18 [11:37:10]1206 (1) - 0 [11:37:10]OFD Sender: Remove packet 148779 [11:37:10]ProducePacketName [11:37:10]name=ofd_packets/00148779 [11:37:10]NVStorageDeleteData [11:37:10]Write to MH i2c: 01 00 00 74 10 84 [11:37:10]Write i2c OK [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: 01 [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: 01 07 00 [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: 01 07 00 74 10 00 00 00 00 00 69 0C 00 [11:37:10]RasterBufferAndPrint [11:37:10]line [11:37:10]line [11:37:10]line [11:37:10]line [11:37:10]line [11:37:10]written 0, free lines is 3180 [11:37:10]MH_Cut [11:37:10]Write to MH i2c: D1 01 00 7B 10 01 5D [11:37:10]Write i2c OK [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: D1 [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: D1 01 00 [11:37:10]MH_I2C_Read... [11:37:10]Read from MH i2c: D1 01 00 7B 10 00 5C [11:37:10]Write to MH i2c: 01 00 00 7C 10 8C [11:37:10]Write i2c OK [11:37:10]MH_I2C_Read... [11:37:10]OFD Sender: No OFD packet to send [11:37:11]*** Cut start [11:37:11]*** Partial cut [11:37:11]*** CUTSNS_PIN = 1 [11:37:11]*** CUTSNS_PIN = 0 [11:37:11]*** Brake cut motor [11:37:12]Read from MH i2c: 01 [11:37:12]MH_I2C_Read... [11:37:12]*** Stop cut motor [11:37:12]*** Cut end [11:37:12]Read from MH i2c: 01 07 00 [11:37:12]MH_I2C_Read... [11:37:12]Read from MH i2c: 01 07 00 7C 10 00 00 00 00 00 FF 0F A1 [11:37:12]process_action close_receipt done [11:37:12]requested_data is exist [11:37:12]produce_requested_data [11:37:12]requested_item fm.sn is exist - process it [11:37:12]wFMCommunicate request_size=4 [11:37:12]MH_SAM_APDU [11:37:12]CAPDU: 80 11 00 00 [11:37:12]Write to MH i2c: E2 08 00 7D 10 80 11 00 00 00 00 00 00 07 [11:37:12]Write i2c OK [11:37:12]MH_I2C_Read... [11:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:12]Read from MH i2c: E2 [11:37:12]MH_I2C_Read... [11:37:12]Read from MH i2c: E2 17 00 [11:37:12]MH_I2C_Read... [11:37:12]Read from MH i2c: E2 17 00 7D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5A [11:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:37:12]wFMCommunicate OK [11:37:12]requested_item fd.num is exist - process it [11:37:12]SAM_PROTO_GetFieldsCounters [11:37:12]wFMCommunicate request_size=4 [11:37:12]MH_SAM_APDU [11:37:12]CAPDU: 80 13 00 00 [11:37:12]Write to MH i2c: E2 08 00 7E 10 80 13 00 00 00 00 00 00 0A [11:37:12]Write i2c OK [11:37:12]MH_I2C_Read... [11:37:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:12]Read from MH i2c: E2 [11:37:12]MH_I2C_Read... [11:37:12]Read from MH i2c: E2 62 00 [11:37:12]MH_I2C_Read... [11:37:12]Read from MH i2c: E2 62 00 7E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2B 45 02 00 0E 04 04 00 70 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 6B [11:37:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2B 45 02 00 0E 04 04 00 70 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 [11:37:12]wFMCommunicate OK [11:37:12]SAM_PROTO_GetFieldsCounters done [11:37:12]requested_item shift.num is exist - process it [11:37:12]requested_item shift.opened is exist - process it [11:37:12]req_shift_opened [11:37:12]FM_GetShiftState [11:37:12]SAM_PROTO_GetShiftState [11:37:12]wFMCommunicate request_size=4 [11:37:12]MH_SAM_APDU [11:37:12]CAPDU: 80 13 01 00 [11:37:12]Write to MH i2c: E2 08 00 7F 10 80 13 01 00 00 00 00 00 0C [11:37:12]Write i2c OK [11:37:12]MH_I2C_Read... [11:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:12]Read from MH i2c: E2 [11:37:12]MH_I2C_Read... [11:37:12]Read from MH i2c: E2 0E 00 [11:37:12]MH_I2C_Read... [11:37:12]Read from MH i2c: E2 0E 00 7F 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CF [11:37:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:37:12]wFMCommunicate OK [11:37:12]SAM_PROTO_GetShiftState done [11:37:12]FM_GetShiftState done [11:37:12]req_shift_opened done [11:37:12]requested_item shift.open_date is exist - process it [11:37:12]req_shift_open_date [11:37:12]req_shift_open_date done [11:37:12]produce_requested_data done [11:37:12]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148779,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:37:12]process_action_free close_receipt [11:37:12]json_value_free [11:37:12]json_value_free done [11:37:12]process_json_proto returns [11:37:12]Send response to host [11:37:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148779,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:37:12]free response buf [11:37:12]execute_script done [11:37:12]execute_script returns [11:37:12]free content buf [11:37:12]Sock 7.Close socket [11:37:12]Sock 7.Thread stoped [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:45]accept exits with 9 [11:37:45]New connection [11:37:45]New thread 3067379044 created [11:37:45]Thread 3067235684 joined [11:37:45]Waiting for new connection... [11:37:45] Sock 9.Parse request [11:37:45]Sock 9.Check first char [11:37:45]Sock 9.First char is OK [11:37:45]request: POST /json_proto HTTP/1.0 [11:37:45]Method: POST [11:37:45]URL: /json_proto [11:37:45]Method is POST - this is cgi request [11:37:45]url: /json_proto [11:37:45]query_string will be loaded in cgi processing [11:37:45]execute_cgi json_proto POST (null) [11:37:45]execute_cgi path=json_proto method=POST [11:37:45]POST find Content-Length [11:37:45]Host: 172.17.38.4:8080 [11:37:45]Content-Length: 677 [11:37:45]Content-Type: application/json [11:37:45] [11:37:45]POST finish read [11:37:45]Found Content-Length = 677 [11:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:45]execute_script... [11:37: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)979705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:45]POST & json_proto [11:37:45]process_json_proto [11:37:45]json parsed OK: [11:37:45]protocol is kg_v1.0 [11:37:45]action value=close_receipt [11:37:45]process_action close_receipt [11:37:45]cmd_close_receipt [11:37:45]MH_GetDate [11:37:45]Write to MH i2c: F0 00 00 80 10 7F [11:37:45]Write i2c OK [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: F0 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: F0 09 00 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: F0 09 00 80 10 00 8A FC 5E 66 CC 51 87 64 DA [11:37:45]GetLastDocTimeStamp 1717501028 [11:37:45]current date 1717501066 [11:37:45]FM_GetShiftState [11:37:45]SAM_PROTO_GetShiftState [11:37:45]wFMCommunicate request_size=4 [11:37:45]MH_SAM_APDU [11:37:45]CAPDU: 80 13 01 00 [11:37:45]Write to MH i2c: E2 08 00 81 10 80 13 01 00 00 00 00 00 0E [11:37:45]Write i2c OK [11:37:45]MH_I2C_Read... [11:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:45]Read from MH i2c: E2 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: E2 0E 00 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: E2 0E 00 81 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D1 [11:37:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:37:45]wFMCommunicate OK [11:37:45]SAM_PROTO_GetShiftState done [11:37:45]FM_GetShiftState done [11:37:45]opened in 1717460629 [11:37:45]opened+sec_in_day 1717547029 [11:37:45]quantity*price = 50041 [11:37:45]sum+1 = 50042 [11:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 119 04.06.2024 11:37 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148780 ФПД: 117989220114510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113746&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148780&fm=117989220114510&tin=02508201610067®Number=0000000000092720&sum=50000 [11:37:46]StoreToDocumentArchive [11:37:46]shift 368 fd 148780 [11:37:46]save to /storage/0368/doc_00148780 [11:37:46]save last doc name /storage/0368/doc_00148780 to /storage/kkm_last_doc_name [11:37:46]save OK [11:37:46]Clear old archive folders... [11:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:47]tlvbuf is B6F10CF0 [11:37:47]SAM_PROTO_ClearQueue [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 09 00 00 [11:37:47]Write to MH i2c: E2 08 00 8E 10 80 09 00 00 00 00 00 00 10 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 8E 10 00 90 00 12 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]SAM_PROTO_ClearQueue done [11:37:47]KKMCreateOFDPacket [11:37:47]OFDProtocolAddRootSTLVToBuf [11:37:47]FM_MakeSignedData [11:37:47]FM_MakeSignedData [11:37:47]SAM_PROTO_SignData [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 01 02 [11:37:47]Write to MH i2c: E2 08 00 8F 10 80 0D 01 02 00 00 00 00 18 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 8F 10 00 90 00 13 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]wFMCommunicate request_size=255 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 8A FC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2C 45 02 00 35 04 06 00 6B [11:37:47]Write to MH i2c: E2 02 01 90 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 8A FC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2C 45 02 00 35 04 06 00 6B 00 00 B2 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 90 10 00 90 00 14 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]wFMCommunicate request_size=10 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 02 02 05 4F 81 8D 60 4E [11:37:47]Write to MH i2c: E2 0D 00 91 10 80 0D 02 02 05 00 4F 81 8D 60 4E 00 00 30 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 91 10 00 90 00 15 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 03 02 [11:37:47]Write to MH i2c: E2 08 00 92 10 80 0D 03 02 00 00 00 00 1D [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 0B 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 0B 00 92 10 00 AC 2B 50 E5 81 69 3A AB 90 00 F9 [11:37:47]RAPDU: AC 2B 50 E5 81 69 3A AB 90 00 [11:37:47]wFMCommunicate OK [11:37:47]SAM_PROTO_SignData done [11:37:47]FM_MakeSignedData done [11:37:47]CreateOFDProtocolMessage [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 11 00 00 [11:37:47]Write to MH i2c: E2 08 00 93 10 80 11 00 00 00 00 00 00 1D [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 17 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 17 00 93 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 70 [11:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:37:47]wFMCommunicate OK [11:37:47]CreateOFDProtocolMessage done [11:37:47]OFDSenderStorePacket 148780 [11:37:47]StoreOFDPacket docnum=148780 [11:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A2 48 07 01 B7 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 8A FC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2C 45 02 00 35 04 06 00 6B 4F 81 8D 60 4E AC 2B 50 E5 81 69 3A AB [11:37:47]CheckFolder [11:37:47]dirname=/storage/ofd_packets [11:37:47]CheckFolder done [11:37:47]ProducePacketName [11:37:47]name=ofd_packets/00148780 [11:37:47]NVStorageSaveData ofd_packets/00148780 [11:37:47]File name is /storage/ofd_packets/00148780 [11:37:47]Write 301 bytes [11:37:47]NVStorageSaveData done [11:37:47]OFDSenderStorePacket done [11:37:47]KKMCreateOFDPacket done [11:37:47]NVStorageSaveData kkm_last_timestamp [11:37:47]File name is /storage/kkm_last_timestamp [11:37:47]Write 4 bytes [11:37:47]NVStorageSaveData done [11:37:47]ExternCall_PrintAddStr [11:37:47]wPrintStart [11:37:47]Write to MH i2c: 01 00 00 94 10 A4 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 94 10 00 00 00 00 00 FF 0F B9 [11:37:47]RasterBufferAndPrint [11:37:47]line Счет N : (1)979705 [11:37:47]line ИНН: 02508201610067 [11:37:47]line Контрольно-Кассовый Чек [11:37:47]line ПРОДАЖА [11:37:47]line ТРК (МРК, ГНК) : 22 [11:37:47]line Товар: 2710124130 [11:37:47]line Аи-92-К-5 [11:37:47]line 7.480 * 66.90 [11:37:47]line = 500.41 [11:37:47]line НДС 12% НСП 1% [11:37:47]line > о реализуемом товаре [11:37:47]line ОКРУГЛЕНИЕ: -0.41 [11:37:47]line ИТОГО: 500.00 [11:37:47]line Внесено: 500.00 [11:37:47]line СДАЧА: 0.00 [11:37:47]line НСП 1% : 4.43 [11:37:47]line НДС 12% : 53.14 [11:37:47]line Наличными: 500.00 [11:37:47]line Безнал.: 0.00 [11:37:47]line Место: АЗС № 68 "Партнер Нефть" [11:37:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:37:47]line СНО: Общий режим [11:37:47]line Чек 119 04.06.2024 11:37 [11:37:47]line Смена: 368 ФФД: 1.0 [11:37:47]line ЗНМ: 0300000035 [11:37:47]line РНМ: 0000000000092720 [11:37:47]line Версия ККМ: 001 [11:37:47]line ФМ: 0000000000875057 [11:37:47]line ФД: 148780 [11:37:47]line ФПД: 117989220114510 [11:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113746&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148780&fm=117989220114510&tin=02508201610067®Number=0000000000092720&sum=50000 [11:37:47]OFD Sender: Processing packet 148780 [packets to send 100, broken 99] [11:37:47]ProducePacketName [11:37:47]name=ofd_packets/00148780 [11:37:47]OFD Sender: To server: pG, [11:37:47]CommunicateWithHost lk.salyk.kg:30040 [11:37:47]ConnectInit lk.salyk.kg [11:37:47]written 0, free lines is 4095 [11:37:47]Connected sock=7 [11:37:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A2 48 07 01 B7 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 8A FC 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2C 45 02 00 35 04 06 00 6B 4F 81 8D 60 4E AC 2B 50 E5 81 69 3A AB [11:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9E B2 47 00 29 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 38 37 35 30 35 37 10 04 04 00 2C 45 02 00 F4 03 04 00 AE A3 5E 66 B6 04 01 00 00 84 3C C3 08 7B CB 31 00 [11:37:48]CommunicateWithHost err = 0 [11:37:48]CheckOFDResponse [11:37:48]1017 (14) - 77093643461234 [11:37:48]1041 (16) - 0000000000875057 [11:37:48]1040 (4) - 148780 [11:37:48]1012 (4) - 04.06.2024 05:18 [11:37:48]1206 (1) - 0 [11:37:48]OFD Sender: Remove packet 148780 [11:37:48]ProducePacketName [11:37:48]name=ofd_packets/00148780 [11:37:48]NVStorageDeleteData [11:37:48]Write to MH i2c: 01 00 00 BF 10 CF [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: 01 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: 01 07 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: 01 07 00 BF 10 00 00 00 00 00 72 0C 54 [11:37:48]RasterBufferAndPrint [11:37:48]line [11:37:48]line [11:37:48]line [11:37:48]line [11:37:48]line [11:37:48]written 0, free lines is 3188 [11:37:48]MH_Cut [11:37:48]Write to MH i2c: D1 01 00 C6 10 01 A8 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: D1 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: D1 01 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: D1 01 00 C6 10 00 A7 [11:37:48]Write to MH i2c: 01 00 00 C7 10 D7 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]OFD Sender: No OFD packet to send [11:37:49]*** Cut start [11:37:49]*** Partial cut [11:37:49]*** CUTSNS_PIN = 1 [11:37:49]*** CUTSNS_PIN = 0 [11:37:49]*** Brake cut motor [11:37:50]Read from MH i2c: 01 [11:37:50]MH_I2C_Read... [11:37:50]*** Stop cut motor [11:37:50]*** Cut end [11:37:50]Read from MH i2c: 01 07 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: 01 07 00 C7 10 00 00 00 00 00 FF 0F EC [11:37:50]process_action close_receipt done [11:37:50]requested_data is exist [11:37:50]produce_requested_data [11:37:50]requested_item fm.sn is exist - process it [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 11 00 00 [11:37:50]Write to MH i2c: E2 08 00 C8 10 80 11 00 00 00 00 00 00 52 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 17 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 17 00 C8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A5 [11:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:37:50]wFMCommunicate OK [11:37:50]requested_item fd.num is exist - process it [11:37:50]SAM_PROTO_GetFieldsCounters [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 13 00 00 [11:37:50]Write to MH i2c: E2 08 00 C9 10 80 13 00 00 00 00 00 00 55 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 62 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 62 00 C9 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2C 45 02 00 0E 04 04 00 70 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 BA [11:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2C 45 02 00 0E 04 04 00 70 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 [11:37:50]wFMCommunicate OK [11:37:50]SAM_PROTO_GetFieldsCounters done [11:37:50]requested_item shift.num is exist - process it [11:37:50]requested_item shift.opened is exist - process it [11:37:50]req_shift_opened [11:37:50]FM_GetShiftState [11:37:50]SAM_PROTO_GetShiftState [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 13 01 00 [11:37:50]Write to MH i2c: E2 08 00 CA 10 80 13 01 00 00 00 00 00 57 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 0E 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 0E 00 CA 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1A [11:37:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:37:50]wFMCommunicate OK [11:37:50]SAM_PROTO_GetShiftState done [11:37:50]FM_GetShiftState done [11:37:50]req_shift_opened done [11:37:50]requested_item shift.open_date is exist - process it [11:37:50]req_shift_open_date [11:37:50]req_shift_open_date done [11:37:50]produce_requested_data done [11:37:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148780,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:37:50]process_action_free close_receipt [11:37:50]json_value_free [11:37:50]json_value_free done [11:37:50]process_json_proto returns [11:37:50]Send response to host [11:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148780,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:37:50]free response buf [11:37:50]execute_script done [11:37:50]execute_script returns [11:37:50]free content buf [11:37:50]Sock 9.Close socket [11:37:50]Sock 9.Thread stoped [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:30]accept exits with 10 [11:40:30]New connection [11:40:30]New thread 3067235684 created [11:40:30]Thread 3067379044 joined [11:40:30]Waiting for new connection... [11:40:30] Sock 10.Parse request [11:40:30]Sock 10.Check first char [11:40:30]Sock 10.First char is OK [11:40:30]request: POST /json_proto HTTP/1.0 [11:40:30]Method: POST [11:40:30]URL: /json_proto [11:40:30]Method is POST - this is cgi request [11:40:30]url: /json_proto [11:40:30]query_string will be loaded in cgi processing [11:40:30]execute_cgi json_proto POST (null) [11:40:30]execute_cgi path=json_proto method=POST [11:40:30]POST find Content-Length [11:40:30]Host: 172.17.38.4:8080 [11:40:30]Content-Length: 677 [11:40:30]Content-Type: application/json [11:40:30] [11:40:30]POST finish read [11:40:30]Found Content-Length = 677 [11:40:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:30]execute_script... [11:40: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)979707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:30]POST & json_proto [11:40:30]process_json_proto [11:40:30]json parsed OK: [11:40:30]protocol is kg_v1.0 [11:40:30]action value=close_receipt [11:40:30]process_action close_receipt [11:40:30]cmd_close_receipt [11:40:30]MH_GetDate [11:40:30]Write to MH i2c: F0 00 00 CB 10 CA [11:40:30]Write i2c OK [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: F0 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: F0 09 00 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: F0 09 00 CB 10 00 2F FD 5E 66 CC 51 87 64 CB [11:40:30]GetLastDocTimeStamp 1717501066 [11:40:30]current date 1717501231 [11:40:30]FM_GetShiftState [11:40:30]SAM_PROTO_GetShiftState [11:40:30]wFMCommunicate request_size=4 [11:40:30]MH_SAM_APDU [11:40:30]CAPDU: 80 13 01 00 [11:40:30]Write to MH i2c: E2 08 00 CC 10 80 13 01 00 00 00 00 00 59 [11:40:30]Write i2c OK [11:40:30]MH_I2C_Read... [11:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:30]Read from MH i2c: E2 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: E2 0E 00 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: E2 0E 00 CC 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1C [11:40:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:40:30]wFMCommunicate OK [11:40:30]SAM_PROTO_GetShiftState done [11:40:30]FM_GetShiftState done [11:40:30]opened in 1717460629 [11:40:30]opened+sec_in_day 1717547029 [11:40:30]quantity*price = 25020 [11:40:30]sum+1 = 25022 [11:40:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 120 04.06.2024 11:40 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148781 ФПД: 180585303046399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114031&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148781&fm=180585303046399&tin=02508201610067®Number=0000000000092720&sum=25000 [11:40:31]StoreToDocumentArchive [11:40:31]shift 368 fd 148781 [11:40:31]save to /storage/0368/doc_00148781 [11:40:31]save last doc name /storage/0368/doc_00148781 to /storage/kkm_last_doc_name [11:40:31]save OK [11:40:31]Clear old archive folders... [11:40:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:31]tlvbuf is B6F296D0 [11:40:31]SAM_PROTO_ClearQueue [11:40:31]wFMCommunicate request_size=4 [11:40:31]MH_SAM_APDU [11:40:31]CAPDU: 80 09 00 00 [11:40:31]Write to MH i2c: E2 08 00 D9 10 80 09 00 00 00 00 00 00 5B [11:40:31]Write i2c OK [11:40:31]MH_I2C_Read... [11:40:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:31]Read from MH i2c: E2 [11:40:31]MH_I2C_Read... [11:40:31]Read from MH i2c: E2 03 00 [11:40:31]MH_I2C_Read... [11:40:31]Read from MH i2c: E2 03 00 D9 10 00 90 00 5D [11:40:31]RAPDU: 90 00 [11:40:31]wFMCommunicate OK [11:40:31]SAM_PROTO_ClearQueue done [11:40:31]KKMCreateOFDPacket [11:40:31]OFDProtocolAddRootSTLVToBuf [11:40:31]FM_MakeSignedData [11:40:31]FM_MakeSignedData [11:40:31]SAM_PROTO_SignData [11:40:31]wFMCommunicate request_size=4 [11:40:31]MH_SAM_APDU [11:40:31]CAPDU: 80 0D 01 02 [11:40:31]Write to MH i2c: E2 08 00 DA 10 80 0D 01 02 00 00 00 00 63 [11:40:31]Write i2c OK [11:40:31]MH_I2C_Read... [11:40:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:31]Read from MH i2c: E2 [11:40:31]MH_I2C_Read... [11:40:31]Read from MH i2c: E2 03 00 [11:40:31]MH_I2C_Read... [11:40:31]Read from MH i2c: E2 03 00 DA 10 00 90 00 5E [11:40:31]RAPDU: 90 00 [11:40:31]wFMCommunicate OK [11:40:31]wFMCommunicate request_size=255 [11:40:31]MH_SAM_APDU [11:40:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2F FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2D 45 02 00 35 04 06 00 A4 [11:40:31]Write to MH i2c: E2 02 01 DB 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2F FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2D 45 02 00 35 04 06 00 A4 00 00 B7 [11:40:31]Write i2c OK [11:40:31]MH_I2C_Read... [11:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:32]Read from MH i2c: E2 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: E2 03 00 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: E2 03 00 DB 10 00 90 00 5F [11:40:32]RAPDU: 90 00 [11:40:32]wFMCommunicate OK [11:40:32]wFMCommunicate request_size=10 [11:40:32]MH_SAM_APDU [11:40:32]CAPDU: 80 0D 02 02 05 3D CA D6 F8 FF [11:40:32]Write to MH i2c: E2 0D 00 DC 10 80 0D 02 02 05 00 3D CA D6 F8 FF 00 00 44 [11:40:32]Write i2c OK [11:40:32]MH_I2C_Read... [11:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:32]Read from MH i2c: E2 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: E2 03 00 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: E2 03 00 DC 10 00 90 00 60 [11:40:32]RAPDU: 90 00 [11:40:32]wFMCommunicate OK [11:40:32]wFMCommunicate request_size=4 [11:40:32]MH_SAM_APDU [11:40:32]CAPDU: 80 0D 03 02 [11:40:32]Write to MH i2c: E2 08 00 DD 10 80 0D 03 02 00 00 00 00 68 [11:40:32]Write i2c OK [11:40:32]MH_I2C_Read... [11:40:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:32]Read from MH i2c: E2 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: E2 0B 00 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: E2 0B 00 DD 10 00 FF 5E BF 52 1B C9 C3 51 90 00 CF [11:40:32]RAPDU: FF 5E BF 52 1B C9 C3 51 90 00 [11:40:32]wFMCommunicate OK [11:40:32]SAM_PROTO_SignData done [11:40:32]FM_MakeSignedData done [11:40:32]CreateOFDProtocolMessage [11:40:32]wFMCommunicate request_size=4 [11:40:32]MH_SAM_APDU [11:40:32]CAPDU: 80 11 00 00 [11:40:32]Write to MH i2c: E2 08 00 DE 10 80 11 00 00 00 00 00 00 68 [11:40:32]Write i2c OK [11:40:32]MH_I2C_Read... [11:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:32]Read from MH i2c: E2 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: E2 17 00 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: E2 17 00 DE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BB [11:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:40:32]wFMCommunicate OK [11:40:32]CreateOFDProtocolMessage done [11:40:32]OFDSenderStorePacket 148781 [11:40:32]StoreOFDPacket docnum=148781 [11:40:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D1 9B 07 01 A5 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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2F FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2D 45 02 00 35 04 06 00 A4 3D CA D6 F8 FF FF 5E BF 52 1B C9 C3 51 [11:40:32]CheckFolder [11:40:32]dirname=/storage/ofd_packets [11:40:32]CheckFolder done [11:40:32]ProducePacketName [11:40:32]name=ofd_packets/00148781 [11:40:32]NVStorageSaveData ofd_packets/00148781 [11:40:32]File name is /storage/ofd_packets/00148781 [11:40:32]Write 301 bytes [11:40:32]NVStorageSaveData done [11:40:32]OFDSenderStorePacket done [11:40:32]KKMCreateOFDPacket done [11:40:32]NVStorageSaveData kkm_last_timestamp [11:40:32]File name is /storage/kkm_last_timestamp [11:40:32]Write 4 bytes [11:40:32]NVStorageSaveData done [11:40:32]ExternCall_PrintAddStr [11:40:32]wPrintStart [11:40:32]Write to MH i2c: 01 00 00 DF 10 EF [11:40:32]Write i2c OK [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: 01 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: 01 07 00 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: 01 07 00 DF 10 00 00 00 00 00 FF 0F 04 [11:40:32]RasterBufferAndPrint [11:40:32]line Счет N : (1)979707 [11:40:32]line ИНН: 02508201610067 [11:40:32]line Контрольно-Кассовый Чек [11:40:32]line ПРОДАЖА [11:40:32]line ТРК (МРК, ГНК) : 22 [11:40:32]line Товар: 2710124130 [11:40:32]line Аи-92-К-5 [11:40:32]line 3.740 * 66.90 [11:40:32]line = 250.21 [11:40:32]line НДС 12% НСП 1% [11:40:32]line > о реализуемом товаре [11:40:32]line ОКРУГЛЕНИЕ: -0.21 [11:40:32]line ИТОГО: 250.00 [11:40:32]line Внесено: 250.00 [11:40:32]line СДАЧА: 0.00 [11:40:32]line НСП 1% : 2.21 [11:40:32]line НДС 12% : 26.57 [11:40:32]line Наличными: 250.00 [11:40:32]line Безнал.: 0.00 [11:40:32]line Место: АЗС № 68 "Партнер Нефть" [11:40:32]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:40:32]line СНО: Общий режим [11:40:32]line Чек 120 04.06.2024 11:40 [11:40:32]line Смена: 368 ФФД: 1.0 [11:40:32]line ЗНМ: 0300000035 [11:40:32]line РНМ: 0000000000092720 [11:40:32]line Версия ККМ: 001 [11:40:32]line ФМ: 0000000000875057 [11:40:32]line ФД: 148781 [11:40:32]line ФПД: 180585303046399 [11:40:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114031&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148781&fm=180585303046399&tin=02508201610067®Number=0000000000092720&sum=25000 [11:40:32]OFD Sender: Processing packet 148781 [packets to send 100, broken 99] [11:40:32]ProducePacketName [11:40:32]name=ofd_packets/00148781 [11:40:32]OFD Sender: To server: pG, [11:40:32]CommunicateWithHost lk.salyk.kg:30040 [11:40:32]ConnectInit lk.salyk.kg [11:40:32]written 0, free lines is 4095 [11:40:32]Connected sock=9 [11:40:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D1 9B 07 01 A5 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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2F FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2D 45 02 00 35 04 06 00 A4 3D CA D6 F8 FF FF 5E BF 52 1B C9 C3 51 [11:40:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F2 0F 47 00 01 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2D 45 02 00 F4 03 04 00 53 A4 5E 66 B6 04 01 00 00 83 33 58 97 DB 99 5E F1 [11:40:33]CommunicateWithHost err = 0 [11:40:33]CheckOFDResponse [11:40:33]1017 (14) - 77093643461234 [11:40:33]1041 (16) - 0000000000875057 [11:40:33]1040 (4) - 148781 [11:40:33]1012 (4) - 04.06.2024 05:21 [11:40:33]1206 (1) - 0 [11:40:33]OFD Sender: Remove packet 148781 [11:40:33]ProducePacketName [11:40:33]name=ofd_packets/00148781 [11:40:33]NVStorageDeleteData [11:40:33]Write to MH i2c: 01 00 00 0A 11 1B [11:40:33]Write i2c OK [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: 01 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: 01 07 00 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: 01 07 00 0A 11 00 00 00 00 00 72 0C A0 [11:40:33]RasterBufferAndPrint [11:40:33]line [11:40:33]line [11:40:33]line [11:40:33]line [11:40:33]line [11:40:33]written 0, free lines is 3188 [11:40:33]MH_Cut [11:40:33]Write to MH i2c: D1 01 00 11 11 01 F4 [11:40:33]Write i2c OK [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: D1 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: D1 01 00 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: D1 01 00 11 11 00 F3 [11:40:33]Write to MH i2c: 01 00 00 12 11 23 [11:40:33]Write i2c OK [11:40:33]MH_I2C_Read... [11:40:33]OFD Sender: No OFD packet to send [11:40:34]*** Cut start [11:40:34]*** Partial cut [11:40:34]*** CUTSNS_PIN = 1 [11:40:34]*** CUTSNS_PIN = 0 [11:40:34]*** Brake cut motor [11:40:35]Read from MH i2c: 01 [11:40:35]MH_I2C_Read... [11:40:35]*** Stop cut motor [11:40:35]*** Cut end [11:40:35]Read from MH i2c: 01 07 00 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: 01 07 00 12 11 00 00 00 00 00 FF 0F 38 [11:40:35]process_action close_receipt done [11:40:35]requested_data is exist [11:40:35]produce_requested_data [11:40:35]requested_item fm.sn is exist - process it [11:40:35]wFMCommunicate request_size=4 [11:40:35]MH_SAM_APDU [11:40:35]CAPDU: 80 11 00 00 [11:40:35]Write to MH i2c: E2 08 00 13 11 80 11 00 00 00 00 00 00 9E [11:40:35]Write i2c OK [11:40:35]MH_I2C_Read... [11:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:35]Read from MH i2c: E2 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 17 00 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 17 00 13 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F1 [11:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:40:35]wFMCommunicate OK [11:40:35]requested_item fd.num is exist - process it [11:40:35]SAM_PROTO_GetFieldsCounters [11:40:35]wFMCommunicate request_size=4 [11:40:35]MH_SAM_APDU [11:40:35]CAPDU: 80 13 00 00 [11:40:35]Write to MH i2c: E2 08 00 14 11 80 13 00 00 00 00 00 00 A1 [11:40:35]Write i2c OK [11:40:35]MH_I2C_Read... [11:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:35]Read from MH i2c: E2 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 62 00 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 62 00 14 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2D 45 02 00 0E 04 04 00 70 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 0A [11:40:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2D 45 02 00 0E 04 04 00 70 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 [11:40:35]wFMCommunicate OK [11:40:35]SAM_PROTO_GetFieldsCounters done [11:40:35]requested_item shift.num is exist - process it [11:40:35]requested_item shift.opened is exist - process it [11:40:35]req_shift_opened [11:40:35]FM_GetShiftState [11:40:35]SAM_PROTO_GetShiftState [11:40:35]wFMCommunicate request_size=4 [11:40:35]MH_SAM_APDU [11:40:35]CAPDU: 80 13 01 00 [11:40:35]Write to MH i2c: E2 08 00 15 11 80 13 01 00 00 00 00 00 A3 [11:40:35]Write i2c OK [11:40:35]MH_I2C_Read... [11:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:35]Read from MH i2c: E2 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 0E 00 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 0E 00 15 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 66 [11:40:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:40:35]wFMCommunicate OK [11:40:35]SAM_PROTO_GetShiftState done [11:40:35]FM_GetShiftState done [11:40:35]req_shift_opened done [11:40:35]requested_item shift.open_date is exist - process it [11:40:35]req_shift_open_date [11:40:35]req_shift_open_date done [11:40:35]produce_requested_data done [11:40:35]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148781,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:40:35]process_action_free close_receipt [11:40:35]json_value_free [11:40:35]json_value_free done [11:40:35]process_json_proto returns [11:40:35]Send response to host [11:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148781,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:40:35]free response buf [11:40:35]execute_script done [11:40:35]execute_script returns [11:40:35]free content buf [11:40:35]Sock 10.Close socket [11:40:35]Sock 10.Thread stoped [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:41:59]accept exits with 7 [11:41:59]New connection [11:41:59]New thread 3067379044 created [11:41:59]Thread 3067235684 joined [11:41:59]Waiting for new connection... [11:41:59] Sock 7.Parse request [11:41:59]Sock 7.Check first char [11:41:59]Sock 7.First char is OK [11:41:59]request: POST /json_proto HTTP/1.0 [11:41:59]Method: POST [11:41:59]URL: /json_proto [11:41:59]Method is POST - this is cgi request [11:41:59]url: /json_proto [11:41:59]query_string will be loaded in cgi processing [11:41:59]execute_cgi json_proto POST (null) [11:41:59]execute_cgi path=json_proto method=POST [11:41:59]POST find Content-Length [11:41:59]Host: 172.17.38.4:8080 [11:41:59]Content-Length: 677 [11:41:59]Content-Type: application/json [11:41:59] [11:41:59]POST finish read [11:41:59]Found Content-Length = 677 [11:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:59]execute_script... [11:41:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:59]POST & json_proto [11:41:59]process_json_proto [11:41:59]json parsed OK: [11:41:59]protocol is kg_v1.0 [11:41:59]action value=close_receipt [11:41:59]process_action close_receipt [11:41:59]cmd_close_receipt [11:41:59]MH_GetDate [11:41:59]Write to MH i2c: F0 00 00 16 11 16 [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: F0 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: F0 09 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: F0 09 00 16 11 00 87 FD 5E 66 CC 51 87 64 6F [11:41:59]GetLastDocTimeStamp 1717501231 [11:41:59]current date 1717501319 [11:41:59]FM_GetShiftState [11:41:59]SAM_PROTO_GetShiftState [11:41:59]wFMCommunicate request_size=4 [11:41:59]MH_SAM_APDU [11:41:59]CAPDU: 80 13 01 00 [11:41:59]Write to MH i2c: E2 08 00 17 11 80 13 01 00 00 00 00 00 A5 [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:59]Read from MH i2c: E2 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 0E 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 0E 00 17 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 68 [11:41:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:41:59]wFMCommunicate OK [11:41:59]SAM_PROTO_GetShiftState done [11:41:59]FM_GetShiftState done [11:41:59]opened in 1717460629 [11:41:59]opened+sec_in_day 1717547029 [11:41:59]quantity*price = 40006 [11:41:59]sum+1 = 40007 [11:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 121 04.06.2024 11:41 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148782 ФПД: 148611868677093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114159&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148782&fm=148611868677093&tin=02508201610067®Number=0000000000092720&sum=40000 [11:42:00]StoreToDocumentArchive [11:42:00]shift 368 fd 148782 [11:42:00]save to /storage/0368/doc_00148782 [11:42:00]save last doc name /storage/0368/doc_00148782 to /storage/kkm_last_doc_name [11:42:00]save OK [11:42:00]Clear old archive folders... [11:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:00]tlvbuf is B6F109C0 [11:42:00]SAM_PROTO_ClearQueue [11:42:00]wFMCommunicate request_size=4 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 09 00 00 [11:42:00]Write to MH i2c: E2 08 00 24 11 80 09 00 00 00 00 00 00 A7 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 24 11 00 90 00 A9 [11:42:00]RAPDU: 90 00 [11:42:00]wFMCommunicate OK [11:42:00]SAM_PROTO_ClearQueue done [11:42:00]KKMCreateOFDPacket [11:42:00]OFDProtocolAddRootSTLVToBuf [11:42:00]FM_MakeSignedData [11:42:00]FM_MakeSignedData [11:42:00]SAM_PROTO_SignData [11:42:00]wFMCommunicate request_size=4 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 0D 01 02 [11:42:00]Write to MH i2c: E2 08 00 25 11 80 0D 01 02 00 00 00 00 AF [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 25 11 00 90 00 AA [11:42:00]RAPDU: 90 00 [11:42:00]wFMCommunicate OK [11:42:00]wFMCommunicate request_size=255 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 79 00 00 00 F4 03 04 00 87 FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2E 45 02 00 35 04 06 00 87 [11:42:00]Write to MH i2c: E2 02 01 26 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 87 FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2E 45 02 00 35 04 06 00 87 00 00 36 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 26 11 00 90 00 AB [11:42:00]RAPDU: 90 00 [11:42:00]wFMCommunicate OK [11:42:00]wFMCommunicate request_size=10 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 0D 02 02 05 29 65 A4 53 E5 [11:42:00]Write to MH i2c: E2 0D 00 27 11 80 0D 02 02 05 00 29 65 A4 53 E5 00 00 26 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 27 11 00 90 00 AC [11:42:00]RAPDU: 90 00 [11:42:00]wFMCommunicate OK [11:42:00]wFMCommunicate request_size=4 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 0D 03 02 [11:42:00]Write to MH i2c: E2 08 00 28 11 80 0D 03 02 00 00 00 00 B4 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 0B 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 0B 00 28 11 00 CF 5E CF DB 34 E1 25 18 90 00 DE [11:42:00]RAPDU: CF 5E CF DB 34 E1 25 18 90 00 [11:42:00]wFMCommunicate OK [11:42:00]SAM_PROTO_SignData done [11:42:00]FM_MakeSignedData done [11:42:00]CreateOFDProtocolMessage [11:42:00]wFMCommunicate request_size=4 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 11 00 00 [11:42:00]Write to MH i2c: E2 08 00 29 11 80 11 00 00 00 00 00 00 B4 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 17 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 17 00 29 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 07 [11:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:42:00]wFMCommunicate OK [11:42:00]CreateOFDProtocolMessage done [11:42:00]OFDSenderStorePacket 148782 [11:42:00]StoreOFDPacket docnum=148782 [11:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B6 B4 07 01 2F 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 87 FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2E 45 02 00 35 04 06 00 87 29 65 A4 53 E5 CF 5E CF DB 34 E1 25 18 [11:42:00]CheckFolder [11:42:00]dirname=/storage/ofd_packets [11:42:00]CheckFolder done [11:42:00]ProducePacketName [11:42:00]name=ofd_packets/00148782 [11:42:00]NVStorageSaveData ofd_packets/00148782 [11:42:00]File name is /storage/ofd_packets/00148782 [11:42:00]Write 301 bytes [11:42:00]NVStorageSaveData done [11:42:00]OFDSenderStorePacket done [11:42:00]KKMCreateOFDPacket done [11:42:00]NVStorageSaveData kkm_last_timestamp [11:42:00]File name is /storage/kkm_last_timestamp [11:42:00]Write 4 bytes [11:42:00]NVStorageSaveData done [11:42:00]ExternCall_PrintAddStr [11:42:00]wPrintStart [11:42:00]Write to MH i2c: 01 00 00 2A 11 3B [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: 01 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: 01 07 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: 01 07 00 2A 11 00 00 00 00 00 FF 0F 50 [11:42:00]RasterBufferAndPrint [11:42:00]line Счет N : (1)979708 [11:42:00]line ИНН: 02508201610067 [11:42:00]line Контрольно-Кассовый Чек [11:42:00]line ПРОДАЖА [11:42:00]line ТРК (МРК, ГНК) : 31 [11:42:00]line Товар: 2710124130 [11:42:00]line Аи-92-К-5 [11:42:00]line 5.980 * 66.90 [11:42:00]line = 400.06 [11:42:00]line НДС 12% НСП 1% [11:42:00]line > о реализуемом товаре [11:42:00]line ОКРУГЛЕНИЕ: -0.06 [11:42:00]line ИТОГО: 400.00 [11:42:00]line Внесено: 400.00 [11:42:00]line СДАЧА: 0.00 [11:42:00]line НСП 1% : 3.54 [11:42:00]line НДС 12% : 42.48 [11:42:00]line Наличными: 400.00 [11:42:00]line Безнал.: 0.00 [11:42:00]line Место: АЗС № 68 "Партнер Нефть" [11:42:00]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:42:00]line СНО: Общий режим [11:42:00]line Чек 121 04.06.2024 11:41 [11:42:00]line Смена: 368 ФФД: 1.0 [11:42:00]line ЗНМ: 0300000035 [11:42:00]line РНМ: 0000000000092720 [11:42:00]line Версия ККМ: 001 [11:42:00]line ФМ: 0000000000875057 [11:42:00]line ФД: 148782 [11:42:00]line ФПД: 148611868677093 [11:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114159&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148782&fm=148611868677093&tin=02508201610067®Number=0000000000092720&sum=40000 [11:42:01]OFD Sender: Processing packet 148782 [packets to send 100, broken 99] [11:42:01]ProducePacketName [11:42:01]name=ofd_packets/00148782 [11:42:01]OFD Sender: To server: pG, [11:42:01]CommunicateWithHost lk.salyk.kg:30040 [11:42:01]ConnectInit lk.salyk.kg [11:42:01]written 0, free lines is 4095 [11:42:01]Connected sock=10 [11:42:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B6 B4 07 01 2F 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 87 FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2E 45 02 00 35 04 06 00 87 29 65 A4 53 E5 CF 5E CF DB 34 E1 25 18 [11:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 20 A5 47 00 D1 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 38 37 35 30 35 37 10 04 04 00 2E 45 02 00 F4 03 04 00 AB A4 5E 66 B6 04 01 00 00 6C FE 33 6C F6 56 45 F2 [11:42:01]CommunicateWithHost err = 0 [11:42:01]CheckOFDResponse [11:42:01]1017 (14) - 77093643461234 [11:42:01]1041 (16) - 0000000000875057 [11:42:01]1040 (4) - 148782 [11:42:01]1012 (4) - 04.06.2024 05:22 [11:42:01]1206 (1) - 0 [11:42:01]OFD Sender: Remove packet 148782 [11:42:01]ProducePacketName [11:42:01]name=ofd_packets/00148782 [11:42:01]NVStorageDeleteData [11:42:01]Write to MH i2c: 01 00 00 55 11 66 [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 07 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 07 00 55 11 00 00 00 00 00 73 0C EC [11:42:01]RasterBufferAndPrint [11:42:01]line [11:42:01]line [11:42:01]line [11:42:01]line [11:42:01]line [11:42:01]written 0, free lines is 3190 [11:42:01]MH_Cut [11:42:01]Write to MH i2c: D1 01 00 5C 11 01 3F [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: D1 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: D1 01 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: D1 01 00 5C 11 00 3E [11:42:01]Write to MH i2c: 01 00 00 5D 11 6E [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]OFD Sender: No OFD packet to send [11:42:02]*** Cut start [11:42:02]*** Partial cut [11:42:02]*** CUTSNS_PIN = 1 [11:42:02]*** CUTSNS_PIN = 0 [11:42:03]*** Brake cut motor [11:42:03]Read from MH i2c: 01 [11:42:03]MH_I2C_Read... [11:42:03]*** Stop cut motor [11:42:03]*** Cut end [11:42:03]Read from MH i2c: 01 07 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: 01 07 00 5D 11 00 00 00 00 00 FF 0F 83 [11:42:03]process_action close_receipt done [11:42:03]requested_data is exist [11:42:03]produce_requested_data [11:42:03]requested_item fm.sn is exist - process it [11:42:03]wFMCommunicate request_size=4 [11:42:03]MH_SAM_APDU [11:42:03]CAPDU: 80 11 00 00 [11:42:03]Write to MH i2c: E2 08 00 5E 11 80 11 00 00 00 00 00 00 E9 [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:03]Read from MH i2c: E2 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 17 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 17 00 5E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3C [11:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:42:03]wFMCommunicate OK [11:42:03]requested_item fd.num is exist - process it [11:42:03]SAM_PROTO_GetFieldsCounters [11:42:03]wFMCommunicate request_size=4 [11:42:03]MH_SAM_APDU [11:42:03]CAPDU: 80 13 00 00 [11:42:03]Write to MH i2c: E2 08 00 5F 11 80 13 00 00 00 00 00 00 EC [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:03]Read from MH i2c: E2 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 62 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 62 00 5F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2E 45 02 00 0E 04 04 00 70 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 59 [11:42:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2E 45 02 00 0E 04 04 00 70 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 [11:42:03]wFMCommunicate OK [11:42:03]SAM_PROTO_GetFieldsCounters done [11:42:03]requested_item shift.num is exist - process it [11:42:03]requested_item shift.opened is exist - process it [11:42:03]req_shift_opened [11:42:03]FM_GetShiftState [11:42:03]SAM_PROTO_GetShiftState [11:42:03]wFMCommunicate request_size=4 [11:42:03]MH_SAM_APDU [11:42:03]CAPDU: 80 13 01 00 [11:42:03]Write to MH i2c: E2 08 00 60 11 80 13 01 00 00 00 00 00 EE [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:03]Read from MH i2c: E2 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 0E 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 0E 00 60 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B1 [11:42:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:42:03]wFMCommunicate OK [11:42:03]SAM_PROTO_GetShiftState done [11:42:03]FM_GetShiftState done [11:42:03]req_shift_opened done [11:42:03]requested_item shift.open_date is exist - process it [11:42:03]req_shift_open_date [11:42:03]req_shift_open_date done [11:42:03]produce_requested_data done [11:42:03]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148782,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:42:03]process_action_free close_receipt [11:42:03]json_value_free [11:42:03]json_value_free done [11:42:03]process_json_proto returns [11:42:03]Send response to host [11:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148782,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:42:03]free response buf [11:42:03]execute_script done [11:42:03]execute_script returns [11:42:03]free content buf [11:42:03]Sock 7.Close socket [11:42:03]Sock 7.Thread stoped [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:43:59]accept exits with 9 [11:43:59]New connection [11:43:59]New thread 3067235684 created [11:43:59]Thread 3067379044 joined [11:43:59]Waiting for new connection... [11:43:59] Sock 9.Parse request [11:43:59]Sock 9.Check first char [11:43:59]Sock 9.First char is OK [11:43:59]request: POST /json_proto HTTP/1.0 [11:43:59]Method: POST [11:43:59]URL: /json_proto [11:43:59]Method is POST - this is cgi request [11:43:59]url: /json_proto [11:43:59]query_string will be loaded in cgi processing [11:43:59]execute_cgi json_proto POST (null) [11:43:59]execute_cgi path=json_proto method=POST [11:43:59]POST find Content-Length [11:43:59]Host: 172.17.38.4:8080 [11:43:59]Content-Length: 678 [11:43:59]Content-Type: application/json [11:43:59] [11:43:59]POST finish read [11:43:59]Found Content-Length = 678 [11:43:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:59]execute_script... [11:43: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)979709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:59]POST & json_proto [11:43:59]process_json_proto [11:43:59]json parsed OK: [11:43:59]protocol is kg_v1.0 [11:43:59]action value=close_receipt [11:43:59]process_action close_receipt [11:43:59]cmd_close_receipt [11:43:59]MH_GetDate [11:43:59]Write to MH i2c: F0 00 00 61 11 61 [11:43:59]Write i2c OK [11:43:59]MH_I2C_Read... [11:43:59]Read from MH i2c: F0 [11:43:59]MH_I2C_Read... [11:43:59]Read from MH i2c: F0 09 00 [11:43:59]MH_I2C_Read... [11:43:59]Read from MH i2c: F0 09 00 61 11 00 FF FD 5E 66 CC 51 87 64 32 [11:43:59]GetLastDocTimeStamp 1717501319 [11:43:59]current date 1717501439 [11:43:59]FM_GetShiftState [11:43:59]SAM_PROTO_GetShiftState [11:43:59]wFMCommunicate request_size=4 [11:43:59]MH_SAM_APDU [11:43:59]CAPDU: 80 13 01 00 [11:43:59]Write to MH i2c: E2 08 00 62 11 80 13 01 00 00 00 00 00 F0 [11:43:59]Write i2c OK [11:43:59]MH_I2C_Read... [11:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:59]Read from MH i2c: E2 [11:43:59]MH_I2C_Read... [11:43:59]Read from MH i2c: E2 0E 00 [11:43:59]MH_I2C_Read... [11:43:59]Read from MH i2c: E2 0E 00 62 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B3 [11:43:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:43:59]wFMCommunicate OK [11:43:59]SAM_PROTO_GetShiftState done [11:43:59]FM_GetShiftState done [11:43:59]opened in 1717460629 [11:43:59]opened+sec_in_day 1717547029 [11:43:59]quantity*price = 80012 [11:43:59]sum+1 = 80013 [11:43:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 122 04.06.2024 11:43 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148783 ФПД: 185099881948293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114359&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148783&fm=185099881948293&tin=02508201610067®Number=0000000000092720&sum=80000 [11:44:00]StoreToDocumentArchive [11:44:00]shift 368 fd 148783 [11:44:00]save to /storage/0368/doc_00148783 [11:44:00]save last doc name /storage/0368/doc_00148783 to /storage/kkm_last_doc_name [11:44:00]save OK [11:44:00]Clear old archive folders... [11:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:00]tlvbuf is 00F26970 [11:44:00]SAM_PROTO_ClearQueue [11:44:00]wFMCommunicate request_size=4 [11:44:00]MH_SAM_APDU [11:44:00]CAPDU: 80 09 00 00 [11:44:00]Write to MH i2c: E2 08 00 6F 11 80 09 00 00 00 00 00 00 F2 [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:00]Read from MH i2c: E2 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 03 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 03 00 6F 11 00 90 00 F4 [11:44:00]RAPDU: 90 00 [11:44:00]wFMCommunicate OK [11:44:00]SAM_PROTO_ClearQueue done [11:44:00]KKMCreateOFDPacket [11:44:00]OFDProtocolAddRootSTLVToBuf [11:44:00]FM_MakeSignedData [11:44:00]FM_MakeSignedData [11:44:00]SAM_PROTO_SignData [11:44:00]wFMCommunicate request_size=4 [11:44:00]MH_SAM_APDU [11:44:00]CAPDU: 80 0D 01 02 [11:44:00]Write to MH i2c: E2 08 00 70 11 80 0D 01 02 00 00 00 00 FA [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:00]Read from MH i2c: E2 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 03 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 03 00 70 11 00 90 00 F5 [11:44:00]RAPDU: 90 00 [11:44:00]wFMCommunicate OK [11:44:00]wFMCommunicate request_size=255 [11:44:00]MH_SAM_APDU [11:44:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 FF FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2F 45 02 00 35 04 06 00 A8 [11:44:00]Write to MH i2c: E2 02 01 71 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 FF FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2F 45 02 00 35 04 06 00 A8 00 00 39 [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:00]Read from MH i2c: E2 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 03 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 03 00 71 11 00 90 00 F6 [11:44:00]RAPDU: 90 00 [11:44:00]wFMCommunicate OK [11:44:00]wFMCommunicate request_size=10 [11:44:00]MH_SAM_APDU [11:44:00]CAPDU: 80 0D 02 02 05 58 EC B6 24 85 [11:44:00]Write to MH i2c: E2 0D 00 72 11 80 0D 02 02 05 00 58 EC B6 24 85 00 00 AA [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:00]Read from MH i2c: E2 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 03 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 03 00 72 11 00 90 00 F7 [11:44:00]RAPDU: 90 00 [11:44:00]wFMCommunicate OK [11:44:00]wFMCommunicate request_size=4 [11:44:00]MH_SAM_APDU [11:44:00]CAPDU: 80 0D 03 02 [11:44:00]Write to MH i2c: E2 08 00 73 11 80 0D 03 02 00 00 00 00 FF [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:00]Read from MH i2c: E2 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 0B 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 0B 00 73 11 00 04 BA 59 B6 15 23 BE 0C 90 00 CF [11:44:00]RAPDU: 04 BA 59 B6 15 23 BE 0C 90 00 [11:44:00]wFMCommunicate OK [11:44:00]SAM_PROTO_SignData done [11:44:00]FM_MakeSignedData done [11:44:00]CreateOFDProtocolMessage [11:44:00]wFMCommunicate request_size=4 [11:44:00]MH_SAM_APDU [11:44:00]CAPDU: 80 11 00 00 [11:44:00]Write to MH i2c: E2 08 00 74 11 80 11 00 00 00 00 00 00 FF [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:00]Read from MH i2c: E2 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 17 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 17 00 74 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 52 [11:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:44:00]wFMCommunicate OK [11:44:00]CreateOFDProtocolMessage done [11:44:00]OFDSenderStorePacket 148783 [11:44:00]StoreOFDPacket docnum=148783 [11:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 DC 47 07 01 59 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 FF FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2F 45 02 00 35 04 06 00 A8 58 EC B6 24 85 04 BA 59 B6 15 23 BE 0C [11:44:00]CheckFolder [11:44:00]dirname=/storage/ofd_packets [11:44:00]CheckFolder done [11:44:00]ProducePacketName [11:44:00]name=ofd_packets/00148783 [11:44:00]NVStorageSaveData ofd_packets/00148783 [11:44:00]File name is /storage/ofd_packets/00148783 [11:44:00]Write 301 bytes [11:44:00]NVStorageSaveData done [11:44:00]OFDSenderStorePacket done [11:44:00]KKMCreateOFDPacket done [11:44:00]NVStorageSaveData kkm_last_timestamp [11:44:00]File name is /storage/kkm_last_timestamp [11:44:00]OFD Sender: Processing packet 148783 [packets to send 100, broken 99] [11:44:00]ProducePacketName [11:44:00]name=ofd_packets/00148783 [11:44:00]OFD Sender: To server: pG, [11:44:00]CommunicateWithHost lk.salyk.kg:30040 [11:44:00]ConnectInit lk.salyk.kg [11:44:00]Write 4 bytes [11:44:00]NVStorageSaveData done [11:44:00]ExternCall_PrintAddStr [11:44:00]wPrintStart [11:44:00]Write to MH i2c: 01 00 00 75 11 86 [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: 01 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: 01 07 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: 01 07 00 75 11 00 00 00 00 00 FF 0F 9B [11:44:00]RasterBufferAndPrint [11:44:00]line Счет N : (1)979709 [11:44:00]line ИНН: 02508201610067 [11:44:00]line Контрольно-Кассовый Чек [11:44:00]line ПРОДАЖА [11:44:00]line ТРК (МРК, ГНК) : 12 [11:44:00]line Товар: 2710124130 [11:44:00]line Аи-92-К-5 [11:44:00]line 11.960 * 66.90 [11:44:00]line = 800.12 [11:44:00]line НДС 12% НСП 1% [11:44:00]line > о реализуемом товаре [11:44:00]line ОКРУГЛЕНИЕ: -0.12 [11:44:00]line ИТОГО: 800.00 [11:44:00]line Внесено: 800.00 [11:44:00]line СДАЧА: 0.00 [11:44:00]line НСП 1% : 7.08 [11:44:00]line НДС 12% : 84.97 [11:44:00]line Наличными: 800.00 [11:44:00]line Безнал.: 0.00 [11:44:00]line Место: АЗС № 68 "Партнер Нефть" [11:44:00]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:44:00]line СНО: Общий режим [11:44:00]line Чек 122 04.06.2024 11:43 [11:44:00]line Смена: 368 ФФД: 1.0 [11:44:00]line ЗНМ: 0300000035 [11:44:00]line РНМ: 0000000000092720 [11:44:01]line Версия ККМ: 001 [11:44:01]line ФМ: 0000000000875057 [11:44:01]line ФД: 148783 [11:44:01]line ФПД: 185099881948293 [11:44:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114359&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148783&fm=185099881948293&tin=02508201610067®Number=0000000000092720&sum=80000 [11:44:01]Connected sock=11 [11:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 DC 47 07 01 59 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 FF FD 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2F 45 02 00 35 04 06 00 A8 58 EC B6 24 85 04 BA 59 B6 15 23 BE 0C [11:44:01]written 0, free lines is 4095 [11:44:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E7 B5 47 00 E3 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 38 37 35 30 35 37 10 04 04 00 2F 45 02 00 F4 03 04 00 23 A5 5E 66 B6 04 01 00 00 50 0D CD AB B3 23 AF 1C [11:44:01]CommunicateWithHost err = 0 [11:44:01]CheckOFDResponse [11:44:01]1017 (14) - 77093643461234 [11:44:01]1041 (16) - 0000000000875057 [11:44:01]1040 (4) - 148783 [11:44:01]1012 (4) - 04.06.2024 05:24 [11:44:01]1206 (1) - 0 [11:44:01]OFD Sender: Remove packet 148783 [11:44:01]ProducePacketName [11:44:01]name=ofd_packets/00148783 [11:44:01]NVStorageDeleteData [11:44:01]Write to MH i2c: 01 00 00 A0 11 B1 [11:44:01]Write i2c OK [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: 01 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: 01 07 00 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: 01 07 00 A0 11 00 00 00 00 00 70 0C 34 [11:44:01]RasterBufferAndPrint [11:44:01]line [11:44:01]line [11:44:01]line [11:44:01]line [11:44:01]line [11:44:01]written 0, free lines is 3187 [11:44:01]MH_Cut [11:44:01]Write to MH i2c: D1 01 00 A7 11 01 8A [11:44:01]Write i2c OK [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: D1 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: D1 01 00 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: D1 01 00 A7 11 00 89 [11:44:01]Write to MH i2c: 01 00 00 A8 11 B9 [11:44:01]Write i2c OK [11:44:01]MH_I2C_Read... [11:44:01]OFD Sender: No OFD packet to send [11:44:02]*** Cut start [11:44:02]*** Partial cut [11:44:02]*** CUTSNS_PIN = 1 [11:44:03]*** CUTSNS_PIN = 0 [11:44:03]*** Brake cut motor [11:44:03]Read from MH i2c: 01 [11:44:03]MH_I2C_Read... [11:44:03]*** Stop cut motor [11:44:03]*** Cut end [11:44:03]Read from MH i2c: 01 07 00 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: 01 07 00 A8 11 00 00 00 00 00 FF 0F CE [11:44:03]process_action close_receipt done [11:44:03]requested_data is exist [11:44:03]produce_requested_data [11:44:03]requested_item fm.sn is exist - process it [11:44:03]wFMCommunicate request_size=4 [11:44:03]MH_SAM_APDU [11:44:03]CAPDU: 80 11 00 00 [11:44:03]Write to MH i2c: E2 08 00 A9 11 80 11 00 00 00 00 00 00 34 [11:44:03]Write i2c OK [11:44:03]MH_I2C_Read... [11:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:03]Read from MH i2c: E2 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: E2 17 00 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: E2 17 00 A9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 87 [11:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:44:03]wFMCommunicate OK [11:44:03]requested_item fd.num is exist - process it [11:44:03]SAM_PROTO_GetFieldsCounters [11:44:03]wFMCommunicate request_size=4 [11:44:03]MH_SAM_APDU [11:44:03]CAPDU: 80 13 00 00 [11:44:03]Write to MH i2c: E2 08 00 AA 11 80 13 00 00 00 00 00 00 37 [11:44:03]Write i2c OK [11:44:03]MH_I2C_Read... [11:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:03]Read from MH i2c: E2 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: E2 62 00 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: E2 62 00 AA 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2F 45 02 00 0E 04 04 00 70 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 A8 [11:44:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2F 45 02 00 0E 04 04 00 70 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 [11:44:03]wFMCommunicate OK [11:44:03]SAM_PROTO_GetFieldsCounters done [11:44:03]requested_item shift.num is exist - process it [11:44:03]requested_item shift.opened is exist - process it [11:44:03]req_shift_opened [11:44:03]FM_GetShiftState [11:44:03]SAM_PROTO_GetShiftState [11:44:03]wFMCommunicate request_size=4 [11:44:03]MH_SAM_APDU [11:44:03]CAPDU: 80 13 01 00 [11:44:03]Write to MH i2c: E2 08 00 AB 11 80 13 01 00 00 00 00 00 39 [11:44:03]Write i2c OK [11:44:03]MH_I2C_Read... [11:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:03]Read from MH i2c: E2 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: E2 0E 00 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: E2 0E 00 AB 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FC [11:44:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:44:03]wFMCommunicate OK [11:44:03]SAM_PROTO_GetShiftState done [11:44:03]FM_GetShiftState done [11:44:03]req_shift_opened done [11:44:03]requested_item shift.open_date is exist - process it [11:44:03]req_shift_open_date [11:44:03]req_shift_open_date done [11:44:03]produce_requested_data done [11:44:03]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148783,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:44:03]process_action_free close_receipt [11:44:03]json_value_free [11:44:03]json_value_free done [11:44:03]process_json_proto returns [11:44:03]Send response to host [11:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148783,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:44:03]free response buf [11:44:03]execute_script done [11:44:03]execute_script returns [11:44:03]free content buf [11:44:03]Sock 9.Close socket [11:44:03]Sock 9.Thread stoped [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:42]accept exits with 10 [11:45:42]New connection [11:45:42]New thread 3067379044 created [11:45:42]Thread 3067235684 joined [11:45:42]Waiting for new connection... [11:45:42] Sock 10.Parse request [11:45:42]Sock 10.Check first char [11:45:42]Sock 10.First char is OK [11:45:42]request: POST /json_proto HTTP/1.0 [11:45:42]Method: POST [11:45:42]URL: /json_proto [11:45:42]Method is POST - this is cgi request [11:45:42]url: /json_proto [11:45:42]query_string will be loaded in cgi processing [11:45:42]execute_cgi json_proto POST (null) [11:45:42]execute_cgi path=json_proto method=POST [11:45:42]POST find Content-Length [11:45:42]Host: 172.17.38.4:8080 [11:45:42]Content-Length: 674 [11:45:42]Content-Type: application/json [11:45:42] [11:45:42]POST finish read [11:45:42]Found Content-Length = 674 [11:45:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:45:42]execute_script... [11:45: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)979711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:45:42]POST & json_proto [11:45:42]process_json_proto [11:45:42]json parsed OK: [11:45:42]protocol is kg_v1.0 [11:45:42]action value=close_receipt [11:45:42]process_action close_receipt [11:45:42]cmd_close_receipt [11:45:42]MH_GetDate [11:45:42]Write to MH i2c: F0 00 00 AC 11 AC [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: F0 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: F0 09 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: F0 09 00 AC 11 00 66 FE 5E 66 CC 51 87 64 E5 [11:45:42]GetLastDocTimeStamp 1717501439 [11:45:42]current date 1717501542 [11:45:42]FM_GetShiftState [11:45:42]SAM_PROTO_GetShiftState [11:45:42]wFMCommunicate request_size=4 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 13 01 00 [11:45:42]Write to MH i2c: E2 08 00 AD 11 80 13 01 00 00 00 00 00 3B [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 0E 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 0E 00 AD 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FE [11:45:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:45:42]wFMCommunicate OK [11:45:42]SAM_PROTO_GetShiftState done [11:45:42]FM_GetShiftState done [11:45:42]opened in 1717460629 [11:45:42]opened+sec_in_day 1717547029 [11:45:42]quantity*price = 30034 [11:45:42]sum+1 = 30036 [11:45:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 123 04.06.2024 11:45 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148784 ФПД: 201920188610374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114543&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148784&fm=201920188610374&tin=02508201610067®Number=0000000000092720&sum=30000 [11:45:43]StoreToDocumentArchive [11:45:43]shift 368 fd 148784 [11:45:43]save to /storage/0368/doc_00148784 [11:45:43]save last doc name /storage/0368/doc_00148784 to /storage/kkm_last_doc_name [11:45:43]save OK [11:45:43]Clear old archive folders... [11:45:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:45:43]tlvbuf is B6F10140 [11:45:43]SAM_PROTO_ClearQueue [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 09 00 00 [11:45:43]Write to MH i2c: E2 08 00 BA 11 80 09 00 00 00 00 00 00 3D [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 BA 11 00 90 00 3F [11:45:43]RAPDU: 90 00 [11:45:43]wFMCommunicate OK [11:45:43]SAM_PROTO_ClearQueue done [11:45:43]KKMCreateOFDPacket [11:45:43]OFDProtocolAddRootSTLVToBuf [11:45:43]FM_MakeSignedData [11:45:43]FM_MakeSignedData [11:45:43]SAM_PROTO_SignData [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 0D 01 02 [11:45:43]Write to MH i2c: E2 08 00 BB 11 80 0D 01 02 00 00 00 00 45 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 BB 11 00 90 00 40 [11:45:43]RAPDU: 90 00 [11:45:43]wFMCommunicate OK [11:45:43]wFMCommunicate request_size=255 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 67 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 30 45 02 00 35 04 06 00 B7 A5 35 1D [11:45:43]Write to MH i2c: E2 02 01 BC 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 67 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 30 45 02 00 35 04 06 00 B7 A5 35 1D 00 00 34 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 BC 11 00 90 00 41 [11:45:43]RAPDU: 90 00 [11:45:43]wFMCommunicate OK [11:45:43]wFMCommunicate request_size=7 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 0D 02 02 02 77 46 [11:45:43]Write to MH i2c: E2 0A 00 BD 11 80 0D 02 02 02 00 77 46 00 00 09 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 BD 11 00 90 00 42 [11:45:43]RAPDU: 90 00 [11:45:43]wFMCommunicate OK [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 0D 03 02 [11:45:43]Write to MH i2c: E2 08 00 BE 11 80 0D 03 02 00 00 00 00 4A [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 0B 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 0B 00 BE 11 00 13 3D CA 30 88 59 77 44 90 00 31 [11:45:43]RAPDU: 13 3D CA 30 88 59 77 44 90 00 [11:45:43]wFMCommunicate OK [11:45:43]SAM_PROTO_SignData done [11:45:43]FM_MakeSignedData done [11:45:43]CreateOFDProtocolMessage [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 11 00 00 [11:45:43]Write to MH i2c: E2 08 00 BF 11 80 11 00 00 00 00 00 00 4A [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 17 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 17 00 BF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9D [11:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:45:43]wFMCommunicate OK [11:45:43]CreateOFDProtocolMessage done [11:45:43]OFDSenderStorePacket 148784 [11:45:43]StoreOFDPacket docnum=148784 [11:45:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 7B 2C 04 01 71 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 67 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 30 45 02 00 35 04 06 00 B7 A5 35 1D 77 46 13 3D CA 30 88 59 77 44 [11:45:43]CheckFolder [11:45:43]dirname=/storage/ofd_packets [11:45:43]CheckFolder done [11:45:43]ProducePacketName [11:45:43]name=ofd_packets/00148784 [11:45:43]NVStorageSaveData ofd_packets/00148784 [11:45:43]File name is /storage/ofd_packets/00148784 [11:45:43]Write 298 bytes [11:45:43]NVStorageSaveData done [11:45:43]OFDSenderStorePacket done [11:45:43]KKMCreateOFDPacket done [11:45:43]NVStorageSaveData kkm_last_timestamp [11:45:43]File name is /storage/kkm_last_timestamp [11:45:43]Write 4 bytes [11:45:43]NVStorageSaveData done [11:45:43]ExternCall_PrintAddStr [11:45:43]wPrintStart [11:45:43]Write to MH i2c: 01 00 00 C0 11 D1 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 07 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 07 00 C0 11 00 00 00 00 00 FF 0F E6 [11:45:43]RasterBufferAndPrint [11:45:43]line Счет N : (1)979711 [11:45:43]line ИНН: 02508201610067 [11:45:43]line Контрольно-Кассовый Чек [11:45:43]line ПРОДАЖА [11:45:43]line ТРК (МРК, ГНК) : 11 [11:45:43]line Товар: 2710194210 [11:45:43]line ДТ-К-5 [11:45:43]line 4.120 * 72.90 [11:45:43]line = 300.35 [11:45:43]line НДС 12% НСП 1% [11:45:43]line > о реализуемом товаре [11:45:43]line ОКРУГЛЕНИЕ: -0.35 [11:45:43]line ИТОГО: 300.00 [11:45:43]line Внесено: 300.00 [11:45:43]line СДАЧА: 0.00 [11:45:43]line НСП 1% : 2.66 [11:45:43]line НДС 12% : 31.90 [11:45:43]line Наличными: 300.00 [11:45:43]line Безнал.: 0.00 [11:45:43]line Место: АЗС № 68 "Партнер Нефть" [11:45:43]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:45:43]line СНО: Общий режим [11:45:43]line Чек 123 04.06.2024 11:45 [11:45:43]line Смена: 368 ФФД: 1.0 [11:45:43]line ЗНМ: 0300000035 [11:45:43]line РНМ: 0000000000092720 [11:45:43]line Версия ККМ: 001 [11:45:43]line ФМ: 0000000000875057 [11:45:43]line ФД: 148784 [11:45:43]line ФПД: 201920188610374 [11:45:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114543&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148784&fm=201920188610374&tin=02508201610067®Number=0000000000092720&sum=30000 [11:45:43]written 0, free lines is 4095 [11:45:44]OFD Sender: Processing packet 148784 [packets to send 100, broken 99] [11:45:44]ProducePacketName [11:45:44]name=ofd_packets/00148784 [11:45:44]OFD Sender: To server: pG, [11:45:44]CommunicateWithHost lk.salyk.kg:30040 [11:45:44]ConnectInit lk.salyk.kg [11:45:44]Connected sock=9 [11:45:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 7B 2C 04 01 71 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 67 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 30 45 02 00 35 04 06 00 B7 A5 35 1D 77 46 13 3D CA 30 88 59 77 44 [11:45:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 06 0E 47 00 9D 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 38 37 35 30 35 37 10 04 04 00 30 45 02 00 F4 03 04 00 8A A5 5E 66 B6 04 01 00 00 B4 0B DC 59 10 16 BA E7 [11:45:44]CommunicateWithHost err = 0 [11:45:44]CheckOFDResponse [11:45:44]1017 (14) - 77093643461234 [11:45:44]1041 (16) - 0000000000875057 [11:45:44]1040 (4) - 148784 [11:45:44]1012 (4) - 04.06.2024 05:26 [11:45:44]1206 (1) - 0 [11:45:44]OFD Sender: Remove packet 148784 [11:45:44]ProducePacketName [11:45:44]name=ofd_packets/00148784 [11:45:44]NVStorageDeleteData [11:45:44]Write to MH i2c: 01 00 00 EB 11 FC [11:45:44]Write i2c OK [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: 01 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: 01 07 00 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: 01 07 00 EB 11 00 00 00 00 00 68 0C 77 [11:45:44]RasterBufferAndPrint [11:45:44]line [11:45:44]line [11:45:44]line [11:45:44]line [11:45:44]line [11:45:44]written 0, free lines is 3180 [11:45:44]MH_Cut [11:45:44]Write to MH i2c: D1 01 00 F2 11 01 D5 [11:45:44]Write i2c OK [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: D1 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: D1 01 00 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: D1 01 00 F2 11 00 D4 [11:45:44]Write to MH i2c: 01 00 00 F3 11 04 [11:45:44]Write i2c OK [11:45:44]MH_I2C_Read... [11:45:44]OFD Sender: No OFD packet to send [11:45:45]*** Cut start [11:45:45]*** Partial cut [11:45:45]*** CUTSNS_PIN = 1 [11:45:45]*** CUTSNS_PIN = 0 [11:45:46]*** Brake cut motor [11:45:46]Read from MH i2c: 01 [11:45:46]MH_I2C_Read... [11:45:46]*** Stop cut motor [11:45:46]*** Cut end [11:45:46]Read from MH i2c: 01 07 00 [11:45:46]MH_I2C_Read... [11:45:46]Read from MH i2c: 01 07 00 F3 11 00 00 00 00 00 FF 0F 19 [11:45:46]process_action close_receipt done [11:45:46]requested_data is exist [11:45:46]produce_requested_data [11:45:46]requested_item fm.sn is exist - process it [11:45:46]wFMCommunicate request_size=4 [11:45:46]MH_SAM_APDU [11:45:46]CAPDU: 80 11 00 00 [11:45:46]Write to MH i2c: E2 08 00 F4 11 80 11 00 00 00 00 00 00 7F [11:45:46]Write i2c OK [11:45:46]MH_I2C_Read... [11:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:46]Read from MH i2c: E2 [11:45:46]MH_I2C_Read... [11:45:46]Read from MH i2c: E2 17 00 [11:45:46]MH_I2C_Read... [11:45:46]Read from MH i2c: E2 17 00 F4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D2 [11:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:45:46]wFMCommunicate OK [11:45:46]requested_item fd.num is exist - process it [11:45:46]SAM_PROTO_GetFieldsCounters [11:45:46]wFMCommunicate request_size=4 [11:45:46]MH_SAM_APDU [11:45:46]CAPDU: 80 13 00 00 [11:45:46]Write to MH i2c: E2 08 00 F5 11 80 13 00 00 00 00 00 00 82 [11:45:46]Write i2c OK [11:45:46]MH_I2C_Read... [11:45:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:46]Read from MH i2c: E2 [11:45:46]MH_I2C_Read... [11:45:46]Read from MH i2c: E2 62 00 [11:45:46]MH_I2C_Read... [11:45:46]Read from MH i2c: E2 62 00 F5 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 30 45 02 00 0E 04 04 00 70 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 F7 [11:45:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 30 45 02 00 0E 04 04 00 70 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 [11:45:46]wFMCommunicate OK [11:45:46]SAM_PROTO_GetFieldsCounters done [11:45:46]requested_item shift.num is exist - process it [11:45:46]requested_item shift.opened is exist - process it [11:45:46]req_shift_opened [11:45:46]FM_GetShiftState [11:45:46]SAM_PROTO_GetShiftState [11:45:46]wFMCommunicate request_size=4 [11:45:46]MH_SAM_APDU [11:45:46]CAPDU: 80 13 01 00 [11:45:46]Write to MH i2c: E2 08 00 F6 11 80 13 01 00 00 00 00 00 84 [11:45:46]Write i2c OK [11:45:46]MH_I2C_Read... [11:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:46]Read from MH i2c: E2 [11:45:46]MH_I2C_Read... [11:45:46]Read from MH i2c: E2 0E 00 [11:45:46]MH_I2C_Read... [11:45:46]Read from MH i2c: E2 0E 00 F6 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 47 [11:45:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:45:46]wFMCommunicate OK [11:45:46]SAM_PROTO_GetShiftState done [11:45:46]FM_GetShiftState done [11:45:46]req_shift_opened done [11:45:46]requested_item shift.open_date is exist - process it [11:45:46]req_shift_open_date [11:45:46]req_shift_open_date done [11:45:46]produce_requested_data done [11:45:46]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148784,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:45:46]process_action_free close_receipt [11:45:46]json_value_free [11:45:46]json_value_free done [11:45:46]process_json_proto returns [11:45:46]Send response to host [11:45:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148784,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:45:46]free response buf [11:45:46]execute_script done [11:45:46]execute_script returns [11:45:46]free content buf [11:45:46]Sock 10.Close socket [11:45:46]Sock 10.Thread stoped [11:45:49]OFD Sender: No OFD packet to send [11:45:51]accept exits with 7 [11:45:51]New connection [11:45:51]New thread 3067235684 created [11:45:51]Thread 3067379044 joined [11:45:51]Waiting for new connection... [11:45:51] Sock 7.Parse request [11:45:51]Sock 7.Check first char [11:45:51]Sock 7.First char is OK [11:45:51]request: POST /json_proto HTTP/1.0 [11:45:51]Method: POST [11:45:51]URL: /json_proto [11:45:51]Method is POST - this is cgi request [11:45:51]url: /json_proto [11:45:51]query_string will be loaded in cgi processing [11:45:51]execute_cgi json_proto POST (null) [11:45:51]execute_cgi path=json_proto method=POST [11:45:51]POST find Content-Length [11:45:51]Host: 172.17.38.4:8080 [11:45:51]Content-Length: 671 [11:45:51]Content-Type: application/json [11:45:51] [11:45:51]POST finish read [11:45:51]Found Content-Length = 671 [11:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 10.310, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:51]execute_script... [11:45: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)979712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 10.310, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:51]POST & json_proto [11:45:51]process_json_proto [11:45:51]json parsed OK: [11:45:51]protocol is kg_v1.0 [11:45:51]action value=close_receipt [11:45:51]process_action close_receipt [11:45:51]cmd_close_receipt [11:45:51]MH_GetDate [11:45:51]Write to MH i2c: F0 00 00 F7 11 F7 [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: F0 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: F0 09 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: F0 09 00 F7 11 00 70 FE 5E 66 CC 51 87 64 3A [11:45:51]GetLastDocTimeStamp 1717501543 [11:45:51]current date 1717501552 [11:45:51]FM_GetShiftState [11:45:51]SAM_PROTO_GetShiftState [11:45:51]wFMCommunicate request_size=4 [11:45:51]MH_SAM_APDU [11:45:51]CAPDU: 80 13 01 00 [11:45:51]Write to MH i2c: E2 08 00 F8 11 80 13 01 00 00 00 00 00 86 [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 0E 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 0E 00 F8 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 49 [11:45:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:45:51]wFMCommunicate OK [11:45:51]SAM_PROTO_GetShiftState done [11:45:51]FM_GetShiftState done [11:45:51]opened in 1717460629 [11:45:51]opened+sec_in_day 1717547029 [11:45:51]quantity*price = 70004 [11:45:51]sum+1 = 70006 [11:45:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 124 04.06.2024 11:45 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148785 ФПД: 39214013041908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114552&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148785&fm=39214013041908&tin=02508201610067®Number=0000000000092720&sum=70000 [11:45:53]StoreToDocumentArchive [11:45:53]shift 368 fd 148785 [11:45:53]save to /storage/0368/doc_00148785 [11:45:53]save last doc name /storage/0368/doc_00148785 to /storage/kkm_last_doc_name [11:45:53]save OK [11:45:53]Clear old archive folders... [11:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:45:53]tlvbuf is 00FEBAA0 [11:45:53]SAM_PROTO_ClearQueue [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 09 00 00 [11:45:53]Write to MH i2c: E2 08 00 05 12 80 09 00 00 00 00 00 00 89 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 05 12 00 90 00 8B [11:45:53]RAPDU: 90 00 [11:45:53]wFMCommunicate OK [11:45:53]SAM_PROTO_ClearQueue done [11:45:53]KKMCreateOFDPacket [11:45:53]OFDProtocolAddRootSTLVToBuf [11:45:53]FM_MakeSignedData [11:45:53]FM_MakeSignedData [11:45:53]SAM_PROTO_SignData [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 0D 01 02 [11:45:53]Write to MH i2c: E2 08 00 06 12 80 0D 01 02 00 00 00 00 91 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 06 12 00 90 00 8C [11:45:53]RAPDU: 90 00 [11:45:53]wFMCommunicate OK [11:45:53]wFMCommunicate request_size=255 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 70 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 31 45 02 00 35 04 06 00 [11:45:53]Write to MH i2c: E2 02 01 07 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 70 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 31 45 02 00 35 04 06 00 00 00 F7 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 07 12 00 90 00 8D [11:45:53]RAPDU: 90 00 [11:45:53]wFMCommunicate OK [11:45:53]wFMCommunicate request_size=11 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 0D 02 02 06 23 AA 39 51 4C F4 [11:45:53]Write to MH i2c: E2 0E 00 08 12 80 0D 02 02 06 00 23 AA 39 51 4C F4 00 00 37 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 08 12 00 90 00 8E [11:45:53]RAPDU: 90 00 [11:45:53]wFMCommunicate OK [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 0D 03 02 [11:45:53]Write to MH i2c: E2 08 00 09 12 80 0D 03 02 00 00 00 00 96 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 0B 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 0B 00 09 12 00 1A F4 97 36 87 2F D7 A1 90 00 A0 [11:45:53]RAPDU: 1A F4 97 36 87 2F D7 A1 90 00 [11:45:53]wFMCommunicate OK [11:45:53]SAM_PROTO_SignData done [11:45:53]FM_MakeSignedData done [11:45:53]CreateOFDProtocolMessage [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 11 00 00 [11:45:53]Write to MH i2c: E2 08 00 0A 12 80 11 00 00 00 00 00 00 96 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 0A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E9 [11:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:45:53]wFMCommunicate OK [11:45:53]CreateOFDProtocolMessage done [11:45:53]OFDSenderStorePacket 148785 [11:45:53]StoreOFDPacket docnum=148785 [11:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 60 FC 08 01 6D 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 70 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 31 45 02 00 35 04 06 00 23 AA 39 51 4C F4 1A F4 97 36 87 2F D7 A1 [11:45:53]CheckFolder [11:45:53]dirname=/storage/ofd_packets [11:45:53]CheckFolder done [11:45:53]ProducePacketName [11:45:53]name=ofd_packets/00148785 [11:45:53]NVStorageSaveData ofd_packets/00148785 [11:45:53]File name is /storage/ofd_packets/00148785 [11:45:53]Write 302 bytes [11:45:53]NVStorageSaveData done [11:45:53]OFDSenderStorePacket done [11:45:53]KKMCreateOFDPacket done [11:45:53]NVStorageSaveData kkm_last_timestamp [11:45:53]File name is /storage/kkm_last_timestamp [11:45:53]Write 4 bytes [11:45:53]NVStorageSaveData done [11:45:53]ExternCall_PrintAddStr [11:45:53]wPrintStart [11:45:53]Write to MH i2c: 01 00 00 0B 12 1D [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 07 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 07 00 0B 12 00 00 00 00 00 FF 0F 32 [11:45:53]RasterBufferAndPrint [11:45:53]line Счет N : (1)979712 [11:45:53]line ИНН: 02508201610067 [11:45:53]line Контрольно-Кассовый Чек [11:45:53]line ПРОДАЖА [11:45:53]line ТРК (МРК, ГНК) : 43 [11:45:53]line Товар: 2710124130 [11:45:53]line SUPER 92-К-5 [11:45:53]line 10.310 * 67.90 [11:45:53]line = 700.05 [11:45:53]line НДС 12% НСП 1% [11:45:53]line > о реализуемом товаре [11:45:53]line ОКРУГЛЕНИЕ: -0.05 [11:45:53]line ИТОГО: 700.00 [11:45:53]line Внесено: 700.00 [11:45:53]line СДАЧА: 0.00 [11:45:53]line НСП 1% : 6.19 [11:45:53]line НДС 12% : 74.34 [11:45:53]line Наличными: 700.00 [11:45:53]line Безнал.: 0.00 [11:45:53]line Место: АЗС № 68 "Партнер Нефть" [11:45:53]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:45:53]line СНО: Общий режим [11:45:53]line Чек 124 04.06.2024 11:45 [11:45:53]line Смена: 368 ФФД: 1.0 [11:45:53]line ЗНМ: 0300000035 [11:45:53]line РНМ: 0000000000092720 [11:45:53]line Версия ККМ: 001 [11:45:53]line ФМ: 0000000000875057 [11:45:53]line ФД: 148785 [11:45:53]line ФПД: 39214013041908 [11:45:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114552&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148785&fm=39214013041908&tin=02508201610067®Number=0000000000092720&sum=70000 [11:45:53]written 0, free lines is 4095 [11:45:53]OFD Sender: Processing packet 148785 [packets to send 100, broken 99] [11:45:53]ProducePacketName [11:45:53]name=ofd_packets/00148785 [11:45:53]OFD Sender: To server: pG, [11:45:53]CommunicateWithHost lk.salyk.kg:30040 [11:45:53]ConnectInit lk.salyk.kg [11:45:53]Connected sock=10 [11:45:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 60 FC 08 01 6D 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 70 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 31 45 02 00 35 04 06 00 23 AA 39 51 4C F4 1A F4 97 36 87 2F D7 A1 [11:45:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 25 88 47 00 58 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 38 37 35 30 35 37 10 04 04 00 31 45 02 00 F4 03 04 00 94 A5 5E 66 B6 04 01 00 00 87 61 13 15 0C 70 67 E3 [11:45:53]CommunicateWithHost err = 0 [11:45:53]CheckOFDResponse [11:45:53]1017 (14) - 77093643461234 [11:45:53]1041 (16) - 0000000000875057 [11:45:53]1040 (4) - 148785 [11:45:53]1012 (4) - 04.06.2024 05:26 [11:45:53]1206 (1) - 0 [11:45:53]OFD Sender: Remove packet 148785 [11:45:53]ProducePacketName [11:45:53]name=ofd_packets/00148785 [11:45:53]NVStorageDeleteData [11:45:54]Write to MH i2c: 01 00 00 36 12 48 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 07 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 07 00 36 12 00 00 00 00 00 78 0C D3 [11:45:54]RasterBufferAndPrint [11:45:54]line [11:45:54]line [11:45:54]line [11:45:54]line [11:45:54]line [11:45:54]written 0, free lines is 3196 [11:45:54]MH_Cut [11:45:54]Write to MH i2c: D1 01 00 3D 12 01 21 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: D1 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: D1 01 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: D1 01 00 3D 12 00 20 [11:45:54]Write to MH i2c: 01 00 00 3E 12 50 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]OFD Sender: No OFD packet to send [11:45:55]*** Cut start [11:45:55]*** Partial cut [11:45:55]*** CUTSNS_PIN = 1 [11:45:55]*** CUTSNS_PIN = 0 [11:45:55]*** Brake cut motor [11:45:56]Read from MH i2c: 01 [11:45:56]MH_I2C_Read... [11:45:56]*** Stop cut motor [11:45:56]*** Cut end [11:45:56]Read from MH i2c: 01 07 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: 01 07 00 3E 12 00 00 00 00 00 FF 0F 65 [11:45:56]process_action close_receipt done [11:45:56]requested_data is exist [11:45:56]produce_requested_data [11:45:56]requested_item fm.sn is exist - process it [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 11 00 00 [11:45:56]Write to MH i2c: E2 08 00 3F 12 80 11 00 00 00 00 00 00 CB [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 17 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 17 00 3F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1E [11:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:45:56]wFMCommunicate OK [11:45:56]requested_item fd.num is exist - process it [11:45:56]SAM_PROTO_GetFieldsCounters [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 13 00 00 [11:45:56]Write to MH i2c: E2 08 00 40 12 80 13 00 00 00 00 00 00 CE [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 62 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 62 00 40 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 31 45 02 00 0E 04 04 00 70 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 47 [11:45:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 31 45 02 00 0E 04 04 00 70 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 [11:45:56]wFMCommunicate OK [11:45:56]SAM_PROTO_GetFieldsCounters done [11:45:56]requested_item shift.num is exist - process it [11:45:56]requested_item shift.opened is exist - process it [11:45:56]req_shift_opened [11:45:56]FM_GetShiftState [11:45:56]SAM_PROTO_GetShiftState [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 13 01 00 [11:45:56]Write to MH i2c: E2 08 00 41 12 80 13 01 00 00 00 00 00 D0 [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 0E 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 0E 00 41 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 93 [11:45:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:45:56]wFMCommunicate OK [11:45:56]SAM_PROTO_GetShiftState done [11:45:56]FM_GetShiftState done [11:45:56]req_shift_opened done [11:45:56]requested_item shift.open_date is exist - process it [11:45:56]req_shift_open_date [11:45:56]req_shift_open_date done [11:45:56]produce_requested_data done [11:45:56]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148785,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:45:56]process_action_free close_receipt [11:45:56]json_value_free [11:45:56]json_value_free done [11:45:56]process_json_proto returns [11:45:56]Send response to host [11:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148785,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:45:56]free response buf [11:45:56]execute_script done [11:45:56]execute_script returns [11:45:56]free content buf [11:45:56]Sock 7.Close socket [11:45:56]Sock 7.Thread stoped [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:02]accept exits with 9 [11:47:02]New connection [11:47:02]New thread 3067379044 created [11:47:02]Thread 3067235684 joined [11:47:02]Waiting for new connection... [11:47:02] Sock 9.Parse request [11:47:02]Sock 9.Check first char [11:47:02]Sock 9.First char is OK [11:47:02]request: POST /json_proto HTTP/1.0 [11:47:02]Method: POST [11:47:02]URL: /json_proto [11:47:02]Method is POST - this is cgi request [11:47:02]url: /json_proto [11:47:02]query_string will be loaded in cgi processing [11:47:02]execute_cgi json_proto POST (null) [11:47:02]execute_cgi path=json_proto method=POST [11:47:02]POST find Content-Length [11:47:02]Host: 172.17.38.4:8080 [11:47:02]Content-Length: 677 [11:47:02]Content-Type: application/json [11:47:02] [11:47:02]POST finish read [11:47:02]Found Content-Length = 677 [11:47:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:02]execute_script... [11:47:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:02]POST & json_proto [11:47:02]process_json_proto [11:47:02]json parsed OK: [11:47:02]protocol is kg_v1.0 [11:47:02]action value=close_receipt [11:47:02]process_action close_receipt [11:47:02]cmd_close_receipt [11:47:02]MH_GetDate [11:47:02]Write to MH i2c: F0 00 00 42 12 43 [11:47:02]Write i2c OK [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: F0 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: F0 09 00 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: F0 09 00 42 12 00 B6 FE 5E 66 CC 51 87 64 CC [11:47:02]GetLastDocTimeStamp 1717501552 [11:47:02]current date 1717501622 [11:47:02]FM_GetShiftState [11:47:02]SAM_PROTO_GetShiftState [11:47:02]wFMCommunicate request_size=4 [11:47:02]MH_SAM_APDU [11:47:02]CAPDU: 80 13 01 00 [11:47:02]Write to MH i2c: E2 08 00 43 12 80 13 01 00 00 00 00 00 D2 [11:47:02]Write i2c OK [11:47:02]MH_I2C_Read... [11:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:02]Read from MH i2c: E2 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: E2 0E 00 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: E2 0E 00 43 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 95 [11:47:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:47:02]wFMCommunicate OK [11:47:02]SAM_PROTO_GetShiftState done [11:47:02]FM_GetShiftState done [11:47:02]opened in 1717460629 [11:47:02]opened+sec_in_day 1717547029 [11:47:02]quantity*price = 35055 [11:47:02]sum+1 = 35057 [11:47:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 125 04.06.2024 11:47 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148786 ФПД: 31356472196534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114702&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148786&fm=31356472196534&tin=02508201610067®Number=0000000000092720&sum=35000 [11:47:03]StoreToDocumentArchive [11:47:03]shift 368 fd 148786 [11:47:03]save to /storage/0368/doc_00148786 [11:47:03]save last doc name /storage/0368/doc_00148786 to /storage/kkm_last_doc_name [11:47:03]save OK [11:47:03]Clear old archive folders... [11:47:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:03]tlvbuf is 00F9CCD0 [11:47:03]SAM_PROTO_ClearQueue [11:47:03]wFMCommunicate request_size=4 [11:47:03]MH_SAM_APDU [11:47:03]CAPDU: 80 09 00 00 [11:47:03]Write to MH i2c: E2 08 00 50 12 80 09 00 00 00 00 00 00 D4 [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:03]Read from MH i2c: E2 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 03 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 03 00 50 12 00 90 00 D6 [11:47:03]RAPDU: 90 00 [11:47:03]wFMCommunicate OK [11:47:03]SAM_PROTO_ClearQueue done [11:47:03]KKMCreateOFDPacket [11:47:03]OFDProtocolAddRootSTLVToBuf [11:47:03]FM_MakeSignedData [11:47:03]FM_MakeSignedData [11:47:03]SAM_PROTO_SignData [11:47:03]wFMCommunicate request_size=4 [11:47:03]MH_SAM_APDU [11:47:03]CAPDU: 80 0D 01 02 [11:47:03]Write to MH i2c: E2 08 00 51 12 80 0D 01 02 00 00 00 00 DC [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:03]Read from MH i2c: E2 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 03 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 03 00 51 12 00 90 00 D7 [11:47:03]RAPDU: 90 00 [11:47:03]wFMCommunicate OK [11:47:03]wFMCommunicate request_size=255 [11:47:03]MH_SAM_APDU [11:47:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 00 00 00 F4 03 04 00 B6 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 32 45 02 00 35 04 06 00 1C [11:47:03]Write to MH i2c: E2 02 01 52 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 00 00 00 F4 03 04 00 B6 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 32 45 02 00 35 04 06 00 1C 00 00 6C [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:03]Read from MH i2c: E2 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 03 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 03 00 52 12 00 90 00 D8 [11:47:03]RAPDU: 90 00 [11:47:03]wFMCommunicate OK [11:47:03]wFMCommunicate request_size=10 [11:47:03]MH_SAM_APDU [11:47:03]CAPDU: 80 0D 02 02 05 84 BF 62 FD B6 [11:47:03]Write to MH i2c: E2 0D 00 53 12 80 0D 02 02 05 00 84 BF 62 FD B6 00 00 41 [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:03]Read from MH i2c: E2 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 03 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 03 00 53 12 00 90 00 D9 [11:47:03]RAPDU: 90 00 [11:47:03]wFMCommunicate OK [11:47:03]wFMCommunicate request_size=4 [11:47:03]MH_SAM_APDU [11:47:03]CAPDU: 80 0D 03 02 [11:47:03]Write to MH i2c: E2 08 00 54 12 80 0D 03 02 00 00 00 00 E1 [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:03]Read from MH i2c: E2 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 0B 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 0B 00 54 12 00 6C E9 9C 29 92 AF 38 F7 90 00 6C [11:47:03]RAPDU: 6C E9 9C 29 92 AF 38 F7 90 00 [11:47:03]wFMCommunicate OK [11:47:03]SAM_PROTO_SignData done [11:47:03]FM_MakeSignedData done [11:47:03]CreateOFDProtocolMessage [11:47:03]wFMCommunicate request_size=4 [11:47:03]MH_SAM_APDU [11:47:03]CAPDU: 80 11 00 00 [11:47:03]Write to MH i2c: E2 08 00 55 12 80 11 00 00 00 00 00 00 E1 [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:03]Read from MH i2c: E2 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 17 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 17 00 55 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 34 [11:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:47:03]wFMCommunicate OK [11:47:03]CreateOFDProtocolMessage done [11:47:03]OFDSenderStorePacket 148786 [11:47:03]StoreOFDPacket docnum=148786 [11:47:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CD A5 07 01 56 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 00 00 00 F4 03 04 00 B6 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 32 45 02 00 35 04 06 00 1C 84 BF 62 FD B6 6C E9 9C 29 92 AF 38 F7 [11:47:03]CheckFolder [11:47:03]dirname=/storage/ofd_packets [11:47:03]CheckFolder done [11:47:03]ProducePacketName [11:47:03]name=ofd_packets/00148786 [11:47:03]NVStorageSaveData ofd_packets/00148786 [11:47:03]File name is /storage/ofd_packets/00148786 [11:47:03]Write 301 bytes [11:47:03]NVStorageSaveData done [11:47:03]OFDSenderStorePacket done [11:47:03]KKMCreateOFDPacket done [11:47:03]NVStorageSaveData kkm_last_timestamp [11:47:03]File name is /storage/kkm_last_timestamp [11:47:03]Write 4 bytes [11:47:03]NVStorageSaveData done [11:47:03]ExternCall_PrintAddStr [11:47:03]wPrintStart [11:47:03]Write to MH i2c: 01 00 00 56 12 68 [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: 01 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: 01 07 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: 01 07 00 56 12 00 00 00 00 00 FF 0F 7D [11:47:03]RasterBufferAndPrint [11:47:03]line Счет N : (1)979713 [11:47:03]line ИНН: 02508201610067 [11:47:03]line Контрольно-Кассовый Чек [11:47:03]line ПРОДАЖА [11:47:03]line ТРК (МРК, ГНК) : 31 [11:47:03]line Товар: 2710124130 [11:47:03]line Аи-92-К-5 [11:47:03]line 5.240 * 66.90 [11:47:03]line = 350.56 [11:47:03]line НДС 12% НСП 1% [11:47:03]line > о реализуемом товаре [11:47:03]line ОКРУГЛЕНИЕ: -0.56 [11:47:03]line ИТОГО: 350.00 [11:47:03]line Внесено: 350.00 [11:47:03]line СДАЧА: 0.00 [11:47:03]line НСП 1% : 3.10 [11:47:03]line НДС 12% : 37.23 [11:47:03]line Наличными: 350.00 [11:47:03]line Безнал.: 0.00 [11:47:03]line Место: АЗС № 68 "Партнер Нефть" [11:47:03]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:47:03]line СНО: Общий режим [11:47:03]line Чек 125 04.06.2024 11:47 [11:47:03]line Смена: 368 ФФД: 1.0 [11:47:03]line ЗНМ: 0300000035 [11:47:03]line РНМ: 0000000000092720 [11:47:03]line Версия ККМ: 001 [11:47:03]line ФМ: 0000000000875057 [11:47:03]line ФД: 148786 [11:47:03]line ФПД: 31356472196534 [11:47:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114702&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148786&fm=31356472196534&tin=02508201610067®Number=0000000000092720&sum=35000 [11:47:04]OFD Sender: Processing packet 148786 [packets to send 100, broken 99] [11:47:04]ProducePacketName [11:47:04]name=ofd_packets/00148786 [11:47:04]OFD Sender: To server: pG, [11:47:04]CommunicateWithHost lk.salyk.kg:30040 [11:47:04]ConnectInit lk.salyk.kg [11:47:04]written 0, free lines is 4095 [11:47:04]Connected sock=10 [11:47:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CD A5 07 01 56 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 00 00 00 F4 03 04 00 B6 FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 32 45 02 00 35 04 06 00 1C 84 BF 62 FD B6 6C E9 9C 29 92 AF 38 F7 [11:47:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B4 F2 47 00 EA 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 32 45 02 00 F4 03 04 00 DA A5 5E 66 B6 04 01 00 00 AB 82 7D 4E 61 07 6A 47 [11:47:04]CommunicateWithHost err = 0 [11:47:04]CheckOFDResponse [11:47:04]1017 (14) - 77093643461234 [11:47:04]1041 (16) - 0000000000875057 [11:47:04]1040 (4) - 148786 [11:47:04]1012 (4) - 04.06.2024 05:27 [11:47:04]1206 (1) - 0 [11:47:04]OFD Sender: Remove packet 148786 [11:47:04]ProducePacketName [11:47:04]name=ofd_packets/00148786 [11:47:04]NVStorageDeleteData [11:47:04]Write to MH i2c: 01 00 00 81 12 93 [11:47:04]Write i2c OK [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: 01 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: 01 07 00 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: 01 07 00 81 12 00 00 00 00 00 72 0C 18 [11:47:04]RasterBufferAndPrint [11:47:04]line [11:47:04]line [11:47:04]line [11:47:04]line [11:47:04]line [11:47:04]written 0, free lines is 3188 [11:47:04]MH_Cut [11:47:04]Write to MH i2c: D1 01 00 88 12 01 6C [11:47:04]Write i2c OK [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: D1 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: D1 01 00 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: D1 01 00 88 12 00 6B [11:47:04]Write to MH i2c: 01 00 00 89 12 9B [11:47:04]Write i2c OK [11:47:04]MH_I2C_Read... [11:47:04]OFD Sender: No OFD packet to send [11:47:05]*** Cut start [11:47:05]*** Partial cut [11:47:05]*** CUTSNS_PIN = 1 [11:47:05]*** CUTSNS_PIN = 0 [11:47:06]*** Brake cut motor [11:47:06]Read from MH i2c: 01 [11:47:06]MH_I2C_Read... [11:47:06]*** Stop cut motor [11:47:06]*** Cut end [11:47:06]Read from MH i2c: 01 07 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 07 00 89 12 00 00 00 00 00 FF 0F B0 [11:47:06]process_action close_receipt done [11:47:06]requested_data is exist [11:47:06]produce_requested_data [11:47:06]requested_item fm.sn is exist - process it [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 11 00 00 [11:47:06]Write to MH i2c: E2 08 00 8A 12 80 11 00 00 00 00 00 00 16 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 17 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 17 00 8A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 69 [11:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:47:06]wFMCommunicate OK [11:47:06]requested_item fd.num is exist - process it [11:47:06]SAM_PROTO_GetFieldsCounters [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 13 00 00 [11:47:06]Write to MH i2c: E2 08 00 8B 12 80 13 00 00 00 00 00 00 19 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 62 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 62 00 8B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 32 45 02 00 0E 04 04 00 70 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 96 [11:47:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 32 45 02 00 0E 04 04 00 70 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 [11:47:06]wFMCommunicate OK [11:47:06]SAM_PROTO_GetFieldsCounters done [11:47:06]requested_item shift.num is exist - process it [11:47:06]requested_item shift.opened is exist - process it [11:47:06]req_shift_opened [11:47:06]FM_GetShiftState [11:47:06]SAM_PROTO_GetShiftState [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 13 01 00 [11:47:06]Write to MH i2c: E2 08 00 8C 12 80 13 01 00 00 00 00 00 1B [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 0E 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 0E 00 8C 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DE [11:47:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:47:06]wFMCommunicate OK [11:47:06]SAM_PROTO_GetShiftState done [11:47:06]FM_GetShiftState done [11:47:06]req_shift_opened done [11:47:06]requested_item shift.open_date is exist - process it [11:47:06]req_shift_open_date [11:47:06]req_shift_open_date done [11:47:06]produce_requested_data done [11:47:06]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148786,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:47:06]process_action_free close_receipt [11:47:06]json_value_free [11:47:06]json_value_free done [11:47:06]process_json_proto returns [11:47:06]Send response to host [11:47:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148786,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:47:06]free response buf [11:47:06]execute_script done [11:47:06]execute_script returns [11:47:06]free content buf [11:47:06]Sock 9.Close socket [11:47:06]Sock 9.Thread stoped [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:42]accept exits with 7 [11:47:42]New connection [11:47:42]New thread 3067235684 created [11:47:42]Thread 3067379044 joined [11:47:42]Waiting for new connection... [11:47:42] Sock 7.Parse request [11:47:42]Sock 7.Check first char [11:47:42]Sock 7.First char is OK [11:47:42]request: POST /json_proto HTTP/1.0 [11:47:42]Method: POST [11:47:42]URL: /json_proto [11:47:42]Method is POST - this is cgi request [11:47:42]url: /json_proto [11:47:42]query_string will be loaded in cgi processing [11:47:42]execute_cgi json_proto POST (null) [11:47:42]execute_cgi path=json_proto method=POST [11:47:42]POST find Content-Length [11:47:42]Host: 172.17.38.4:8080 [11:47:42]Content-Length: 977 [11:47:42]Content-Type: application/json [11:47:42] [11:47:42]POST finish read [11:47:42]Found Content-Length = 977 [11:47:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.55 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:42]execute_script... [11:47: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)979710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.55 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:42]POST & json_proto [11:47:42]process_json_proto [11:47:42]json parsed OK: [11:47:42]protocol is kg_v1.0 [11:47:42]action value=close_receipt [11:47:42]process_action close_receipt [11:47:42]cmd_close_receipt [11:47:42]MH_GetDate [11:47:42]Write to MH i2c: F0 00 00 8D 12 8E [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: F0 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: F0 09 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: F0 09 00 8D 12 00 DE FE 5E 66 CC 51 87 64 3F [11:47:42]GetLastDocTimeStamp 1717501622 [11:47:42]current date 1717501662 [11:47:42]FM_GetShiftState [11:47:42]SAM_PROTO_GetShiftState [11:47:42]wFMCommunicate request_size=4 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 13 01 00 [11:47:42]Write to MH i2c: E2 08 00 8E 12 80 13 01 00 00 00 00 00 1D [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:42]Read from MH i2c: E2 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 0E 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 0E 00 8E 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E0 [11:47:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:47:42]wFMCommunicate OK [11:47:42]SAM_PROTO_GetShiftState done [11:47:42]FM_GetShiftState done [11:47:42]opened in 1717460629 [11:47:42]opened+sec_in_day 1717547029 [11:47:42]quantity*price = 500064 [11:47:42]sum+1 = 500066 [11:47:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 126 04.06.2024 11:47 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа ДТ номер 68 сэкономлено 69.55 сом ФМ: 0000000000875057 ФД: 148787 ФПД: 69717348186881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114742&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148787&fm=69717348186881&tin=02508201610067®Number=0000000000092720&sum=500000 [11:47:43]StoreToDocumentArchive [11:47:43]shift 368 fd 148787 [11:47:43]save to /storage/0368/doc_00148787 [11:47:43]save last doc name /storage/0368/doc_00148787 to /storage/kkm_last_doc_name [11:47:43]save OK [11:47:43]Clear old archive folders... [11:47:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:47:43]tlvbuf is 00F98E00 [11:47:43]SAM_PROTO_ClearQueue [11:47:43]wFMCommunicate request_size=4 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 09 00 00 [11:47:43]Write to MH i2c: E2 08 00 9B 12 80 09 00 00 00 00 00 00 1F [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:43]Read from MH i2c: E2 03 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 9B 12 00 90 00 21 [11:47:43]RAPDU: 90 00 [11:47:43]wFMCommunicate OK [11:47:43]SAM_PROTO_ClearQueue done [11:47:43]KKMCreateOFDPacket [11:47:43]OFDProtocolAddRootSTLVToBuf [11:47:43]FM_MakeSignedData [11:47:43]FM_MakeSignedData [11:47:43]SAM_PROTO_SignData [11:47:43]wFMCommunicate request_size=4 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 0D 01 02 [11:47:43]Write to MH i2c: E2 08 00 9C 12 80 0D 01 02 00 00 00 00 27 [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 9C 12 00 90 00 22 [11:47:43]RAPDU: 90 00 [11:47:43]wFMCommunicate OK [11:47:43]wFMCommunicate request_size=255 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 DE FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 33 45 02 00 35 04 06 00 3F 68 55 C5 [11:47:43]Write to MH i2c: E2 02 01 9D 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 DE FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 33 45 02 00 35 04 06 00 3F 68 55 C5 00 00 6B [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 9D 12 00 90 00 23 [11:47:43]RAPDU: 90 00 [11:47:43]wFMCommunicate OK [11:47:43]wFMCommunicate request_size=7 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 0D 02 02 02 FB 01 [11:47:43]Write to MH i2c: E2 0A 00 9E 12 80 0D 02 02 02 00 FB 01 00 00 2A [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 03 00 9E 12 00 90 00 24 [11:47:43]RAPDU: 90 00 [11:47:43]wFMCommunicate OK [11:47:43]wFMCommunicate request_size=4 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 0D 03 02 [11:47:43]Write to MH i2c: E2 08 00 9F 12 80 0D 03 02 00 00 00 00 2C [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 0B 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 0B 00 9F 12 00 22 EF 46 C8 82 8B 13 1C 90 00 88 [11:47:43]RAPDU: 22 EF 46 C8 82 8B 13 1C 90 00 [11:47:43]wFMCommunicate OK [11:47:43]SAM_PROTO_SignData done [11:47:43]FM_MakeSignedData done [11:47:43]CreateOFDProtocolMessage [11:47:43]wFMCommunicate request_size=4 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 11 00 00 [11:47:43]Write to MH i2c: E2 08 00 A0 12 80 11 00 00 00 00 00 00 2C [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 17 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 17 00 A0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7F [11:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:47:43]wFMCommunicate OK [11:47:43]CreateOFDProtocolMessage done [11:47:43]OFDSenderStorePacket 148787 [11:47:43]StoreOFDPacket docnum=148787 [11:47:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 8E AB 04 01 84 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 DE FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 33 45 02 00 35 04 06 00 3F 68 55 C5 FB 01 22 EF 46 C8 82 8B 13 1C [11:47:43]CheckFolder [11:47:43]dirname=/storage/ofd_packets [11:47:43]CheckFolder done [11:47:43]ProducePacketName [11:47:43]name=ofd_packets/00148787 [11:47:43]NVStorageSaveData ofd_packets/00148787 [11:47:43]File name is /storage/ofd_packets/00148787 [11:47:43]Write 298 bytes [11:47:43]NVStorageSaveData done [11:47:43]OFDSenderStorePacket done [11:47:43]KKMCreateOFDPacket done [11:47:43]NVStorageSaveData kkm_last_timestamp [11:47:43]File name is /storage/kkm_last_timestamp [11:47:43]Write 4 bytes [11:47:43]NVStorageSaveData done [11:47:43]ExternCall_PrintAddStr [11:47:43]wPrintStart [11:47:43]Write to MH i2c: 01 00 00 A1 12 B3 [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: 01 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: 01 07 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: 01 07 00 A1 12 00 00 00 00 00 FF 0F C8 [11:47:43]RasterBufferAndPrint [11:47:43]line Счет N : (1)979710 [11:47:43]line ИНН: 02508201610067 [11:47:43]line Контрольно-Кассовый Чек [11:47:43]line ПРОДАЖА [11:47:43]line ТРК (МРК, ГНК) : 51 [11:47:43]line Товар: 2710194210 [11:47:43]line ДТ-К-5 [11:47:43]line 69.550 * 71.90 [11:47:43]line = 5000.65 [11:47:43]line НДС 12% НСП 1% [11:47:43]line > о реализуемом товаре [11:47:43]line ОКРУГЛЕНИЕ: -0.65 [11:47:43]line ИТОГО: 5000.00 [11:47:43]line Внесено: 5000.00 [11:47:43]line СДАЧА: 0.00 [11:47:43]line НСП 1% : 44.25 [11:47:43]line НДС 12% : 531.04 [11:47:43]line Наличными: 5000.00 [11:47:43]line Безнал.: 0.00 [11:47:43]line Место: АЗС № 68 "Партнер Нефть" [11:47:43]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:47:43]line СНО: Общий режим [11:47:43]line Чек 126 04.06.2024 11:47 [11:47:43]line Смена: 368 ФФД: 1.0 [11:47:43]line ЗНМ: 0300000035 [11:47:43]line РНМ: 0000000000092720 [11:47:43]line Версия ККМ: 001 [11:47:43]line [11:47:43]line Дисконтная программа [11:47:43]line ДТ [11:47:43]line номер 68 [11:47:43]line сэкономлено 69.55 сом [11:47:43]line ФМ: 0000000000875057 [11:47:43]line ФД: 148787 [11:47:43]line ФПД: 69717348186881 [11:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114742&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148787&fm=69717348186881&tin=02508201610067®Number=0000000000092720&sum=500000 [11:47:43]written 0, free lines is 4095 [11:47:43]OFD Sender: Processing packet 148787 [packets to send 100, broken 99] [11:47:43]ProducePacketName [11:47:43]name=ofd_packets/00148787 [11:47:43]OFD Sender: To server: pG, [11:47:43]CommunicateWithHost lk.salyk.kg:30040 [11:47:43]ConnectInit lk.salyk.kg [11:47:44]Connected sock=10 [11:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 8E AB 04 01 84 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 DE FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 33 45 02 00 35 04 06 00 3F 68 55 C5 FB 01 22 EF 46 C8 82 8B 13 1C [11:47:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 6C EA 47 00 08 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 33 45 02 00 F4 03 04 00 02 A6 5E 66 B6 04 01 00 00 58 D3 42 EE 7E 3F D8 A8 [11:47:44]CommunicateWithHost err = 0 [11:47:44]CheckOFDResponse [11:47:44]1017 (14) - 77093643461234 [11:47:44]1041 (16) - 0000000000875057 [11:47:44]1040 (4) - 148787 [11:47:44]1012 (4) - 04.06.2024 05:28 [11:47:44]1206 (1) - 0 [11:47:44]OFD Sender: Remove packet 148787 [11:47:44]ProducePacketName [11:47:44]name=ofd_packets/00148787 [11:47:44]NVStorageDeleteData [11:47:44]Write to MH i2c: 01 00 00 D1 12 E3 [11:47:44]Write i2c OK [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: 01 [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: 01 07 00 [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: 01 07 00 D1 12 00 00 00 00 00 F8 0B ED [11:47:44]RasterBufferAndPrint [11:47:44]line [11:47:44]line [11:47:44]line [11:47:44]line [11:47:44]line [11:47:44]written 0, free lines is 3068 [11:47:44]MH_Cut [11:47:44]Write to MH i2c: D1 01 00 D8 12 01 BC [11:47:44]Write i2c OK [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: D1 [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: D1 01 00 [11:47:44]MH_I2C_Read... [11:47:44]Read from MH i2c: D1 01 00 D8 12 00 BB [11:47:44]Write to MH i2c: 01 00 00 D9 12 EB [11:47:44]Write i2c OK [11:47:44]MH_I2C_Read... [11:47:44]OFD Sender: No OFD packet to send [11:47:45]*** Cut start [11:47:45]*** Partial cut [11:47:45]*** CUTSNS_PIN = 1 [11:47:45]*** CUTSNS_PIN = 0 [11:47:46]*** Brake cut motor [11:47:46]Read from MH i2c: 01 [11:47:46]MH_I2C_Read... [11:47:46]*** Stop cut motor [11:47:46]*** Cut end [11:47:46]Read from MH i2c: 01 07 00 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: 01 07 00 D9 12 00 00 00 00 00 FF 0F 00 [11:47:46]process_action close_receipt done [11:47:46]requested_data is exist [11:47:46]produce_requested_data [11:47:46]requested_item fm.sn is exist - process it [11:47:46]wFMCommunicate request_size=4 [11:47:46]MH_SAM_APDU [11:47:46]CAPDU: 80 11 00 00 [11:47:46]Write to MH i2c: E2 08 00 DA 12 80 11 00 00 00 00 00 00 66 [11:47:46]Write i2c OK [11:47:46]MH_I2C_Read... [11:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:46]Read from MH i2c: E2 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 17 00 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 17 00 DA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B9 [11:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:47:46]wFMCommunicate OK [11:47:46]requested_item fd.num is exist - process it [11:47:46]SAM_PROTO_GetFieldsCounters [11:47:46]wFMCommunicate request_size=4 [11:47:46]MH_SAM_APDU [11:47:46]CAPDU: 80 13 00 00 [11:47:46]Write to MH i2c: E2 08 00 DB 12 80 13 00 00 00 00 00 00 69 [11:47:46]Write i2c OK [11:47:46]MH_I2C_Read... [11:47:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:46]Read from MH i2c: E2 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 62 00 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 62 00 DB 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 33 45 02 00 0E 04 04 00 70 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 EA [11:47:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 33 45 02 00 0E 04 04 00 70 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 [11:47:46]wFMCommunicate OK [11:47:46]SAM_PROTO_GetFieldsCounters done [11:47:46]requested_item shift.num is exist - process it [11:47:46]requested_item shift.opened is exist - process it [11:47:46]req_shift_opened [11:47:46]FM_GetShiftState [11:47:46]SAM_PROTO_GetShiftState [11:47:46]wFMCommunicate request_size=4 [11:47:46]MH_SAM_APDU [11:47:46]CAPDU: 80 13 01 00 [11:47:46]Write to MH i2c: E2 08 00 DC 12 80 13 01 00 00 00 00 00 6B [11:47:46]Write i2c OK [11:47:46]MH_I2C_Read... [11:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:46]Read from MH i2c: E2 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 0E 00 [11:47:46]MH_I2C_Read... [11:47:46]Read from MH i2c: E2 0E 00 DC 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2E [11:47:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:47:46]wFMCommunicate OK [11:47:46]SAM_PROTO_GetShiftState done [11:47:46]FM_GetShiftState done [11:47:46]req_shift_opened done [11:47:46]requested_item shift.open_date is exist - process it [11:47:46]req_shift_open_date [11:47:46]req_shift_open_date done [11:47:46]produce_requested_data done [11:47:46]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148787,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:47:46]process_action_free close_receipt [11:47:46]json_value_free [11:47:46]json_value_free done [11:47:46]process_json_proto returns [11:47:46]Send response to host [11:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148787,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:47:46]free response buf [11:47:46]execute_script done [11:47:46]execute_script returns [11:47:46]free content buf [11:47:46]Sock 7.Close socket [11:47:46]Sock 7.Thread stoped [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:11]accept exits with 9 [11:48:11]New connection [11:48:11]New thread 3067379044 created [11:48:11]Thread 3067235684 joined [11:48:11]Waiting for new connection... [11:48:11] Sock 9.Parse request [11:48:11]Sock 9.Check first char [11:48:11]Sock 9.First char is OK [11:48:11]request: POST /json_proto HTTP/1.0 [11:48:11]Method: POST [11:48:11]URL: /json_proto [11:48:11]Method is POST - this is cgi request [11:48:11]url: /json_proto [11:48:11]query_string will be loaded in cgi processing [11:48:11]execute_cgi json_proto POST (null) [11:48:11]execute_cgi path=json_proto method=POST [11:48:11]POST find Content-Length [11:48:11]Host: 172.17.38.4:8080 [11:48:11]Content-Length: 639 [11:48:11]Content-Type: application/json [11:48:11] [11:48:11]POST finish read [11:48:11]Found Content-Length = 639 [11:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.000, "sum" : 1458.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1458.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:11]execute_script... [11: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)979714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.000, "sum" : 1458.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1458.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:11]POST & json_proto [11:48:11]process_json_proto [11:48:11]json parsed OK: [11:48:11]protocol is kg_v1.0 [11:48:11]action value=close_receipt [11:48:11]process_action close_receipt [11:48:11]cmd_close_receipt [11:48:11]MH_GetDate [11:48:11]Write to MH i2c: F0 00 00 DD 12 DE [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: F0 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: F0 09 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: F0 09 00 DD 12 00 FC FE 5E 66 CC 51 87 64 AD [11:48:11]GetLastDocTimeStamp 1717501662 [11:48:11]current date 1717501692 [11:48:11]FM_GetShiftState [11:48:11]SAM_PROTO_GetShiftState [11:48:11]wFMCommunicate request_size=4 [11:48:11]MH_SAM_APDU [11:48:11]CAPDU: 80 13 01 00 [11:48:11]Write to MH i2c: E2 08 00 DE 12 80 13 01 00 00 00 00 00 6D [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 0E 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 0E 00 DE 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 30 [11:48:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:48:11]wFMCommunicate OK [11:48:11]SAM_PROTO_GetShiftState done [11:48:11]FM_GetShiftState done [11:48:11]opened in 1717460629 [11:48:11]opened+sec_in_day 1717547029 [11:48:11]quantity*price = 145800 [11:48:11]sum+1 = 145801 [11:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1458.00 НСП 1% : 12.90 НДС 12% : 154.83 Наличными: 1458.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 127 04.06.2024 11:48 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148788 ФПД: 137085634067138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114812&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148788&fm=137085634067138&tin=02508201610067®Number=0000000000092720&sum=145800 [11:48:12]StoreToDocumentArchive [11:48:12]shift 368 fd 148788 [11:48:12]save to /storage/0368/doc_00148788 [11:48:12]save last doc name /storage/0368/doc_00148788 to /storage/kkm_last_doc_name [11:48:12]save OK [11:48:12]Clear old archive folders... [11:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:48:12]tlvbuf is B6E108C0 [11:48:12]SAM_PROTO_ClearQueue [11:48:12]wFMCommunicate request_size=4 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 09 00 00 [11:48:12]Write to MH i2c: E2 08 00 EB 12 80 09 00 00 00 00 00 00 6F [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 03 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 03 00 EB 12 00 90 00 71 [11:48:13]RAPDU: 90 00 [11:48:13]wFMCommunicate OK [11:48:13]SAM_PROTO_ClearQueue done [11:48:13]KKMCreateOFDPacket [11:48:13]OFDProtocolAddRootSTLVToBuf [11:48:13]FM_MakeSignedData [11:48:13]FM_MakeSignedData [11:48:13]SAM_PROTO_SignData [11:48:13]wFMCommunicate request_size=4 [11:48:13]MH_SAM_APDU [11:48:13]CAPDU: 80 0D 01 02 [11:48:13]Write to MH i2c: E2 08 00 EC 12 80 0D 01 02 00 00 00 00 77 [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 03 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 03 00 EC 12 00 90 00 72 [11:48:13]RAPDU: 90 00 [11:48:13]wFMCommunicate OK [11:48:13]wFMCommunicate request_size=255 [11:48:13]MH_SAM_APDU [11:48:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 88 39 02 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 FC FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 34 45 02 00 35 04 06 00 7C AD BC 85 [11:48:13]Write to MH i2c: E2 02 01 ED 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 88 39 02 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 FC FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 34 45 02 00 35 04 06 00 7C AD BC 85 00 00 75 [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 03 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 03 00 ED 12 00 90 00 73 [11:48:13]RAPDU: 90 00 [11:48:13]wFMCommunicate OK [11:48:13]wFMCommunicate request_size=7 [11:48:13]MH_SAM_APDU [11:48:13]CAPDU: 80 0D 02 02 02 BA C2 [11:48:13]Write to MH i2c: E2 0A 00 EE 12 80 0D 02 02 02 00 BA C2 00 00 FA [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 03 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [11:48:13]RAPDU: 90 00 [11:48:13]wFMCommunicate OK [11:48:13]wFMCommunicate request_size=4 [11:48:13]MH_SAM_APDU [11:48:13]CAPDU: 80 0D 03 02 [11:48:13]Write to MH i2c: E2 08 00 EF 12 80 0D 03 02 00 00 00 00 7C [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 0B 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 0B 00 EF 12 00 AD 01 80 96 29 7E A1 C7 90 00 50 [11:48:13]RAPDU: AD 01 80 96 29 7E A1 C7 90 00 [11:48:13]wFMCommunicate OK [11:48:13]SAM_PROTO_SignData done [11:48:13]FM_MakeSignedData done [11:48:13]CreateOFDProtocolMessage [11:48:13]wFMCommunicate request_size=4 [11:48:13]MH_SAM_APDU [11:48:13]CAPDU: 80 11 00 00 [11:48:13]Write to MH i2c: E2 08 00 F0 12 80 11 00 00 00 00 00 00 7C [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:13]Read from MH i2c: E2 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 17 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: E2 17 00 F0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CF [11:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:48:13]wFMCommunicate OK [11:48:13]CreateOFDProtocolMessage done [11:48:13]OFDSenderStorePacket 148788 [11:48:13]StoreOFDPacket docnum=148788 [11:48:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 93 45 04 01 D6 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 88 39 02 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 FC FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 34 45 02 00 35 04 06 00 7C AD BC 85 BA C2 AD 01 80 96 29 7E A1 C7 [11:48:13]CheckFolder [11:48:13]dirname=/storage/ofd_packets [11:48:13]CheckFolder done [11:48:13]ProducePacketName [11:48:13]name=ofd_packets/00148788 [11:48:13]NVStorageSaveData ofd_packets/00148788 [11:48:13]File name is /storage/ofd_packets/00148788 [11:48:13]Write 298 bytes [11:48:13]NVStorageSaveData done [11:48:13]OFDSenderStorePacket done [11:48:13]KKMCreateOFDPacket done [11:48:13]NVStorageSaveData kkm_last_timestamp [11:48:13]File name is /storage/kkm_last_timestamp [11:48:13]Write 4 bytes [11:48:13]NVStorageSaveData done [11:48:13]ExternCall_PrintAddStr [11:48:13]wPrintStart [11:48:13]Write to MH i2c: 01 00 00 F1 12 03 [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: 01 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: 01 07 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: 01 07 00 F1 12 00 00 00 00 00 FF 0F 18 [11:48:13]RasterBufferAndPrint [11:48:13]line Счет N : (1)979714 [11:48:13]line ИНН: 02508201610067 [11:48:13]line Контрольно-Кассовый Чек [11:48:13]line ПРОДАЖА [11:48:13]line ТРК (МРК, ГНК) : 52 [11:48:13]line Товар: 2710194210 [11:48:13]line ДТ-К-5 [11:48:13]line 20.000 * 72.90 [11:48:13]line = 1458.00 [11:48:13]line НДС 12% НСП 1% [11:48:13]line > о реализуемом товаре [11:48:13]line ИТОГО: 1458.00 [11:48:13]line НСП 1% : 12.90 [11:48:13]line НДС 12% : 154.83 [11:48:13]line Наличными: 1458.00 [11:48:13]line Безнал.: 0.00 [11:48:13]line Место: АЗС № 68 "Партнер Нефть" [11:48:13]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:48:13]line СНО: Общий режим [11:48:13]line Чек 127 04.06.2024 11:48 [11:48:13]line Смена: 368 ФФД: 1.0 [11:48:13]line ЗНМ: 0300000035 [11:48:13]line РНМ: 0000000000092720 [11:48:13]line Версия ККМ: 001 [11:48:13]line ФМ: 0000000000875057 [11:48:13]line ФД: 148788 [11:48:13]line ФПД: 137085634067138 [11:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114812&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148788&fm=137085634067138&tin=02508201610067®Number=0000000000092720&sum=145800 [11:48:13]OFD Sender: Processing packet 148788 [packets to send 100, broken 99] [11:48:13]ProducePacketName [11:48:13]name=ofd_packets/00148788 [11:48:13]OFD Sender: To server: pG, [11:48:13]CommunicateWithHost lk.salyk.kg:30040 [11:48:13]ConnectInit lk.salyk.kg [11:48:13]written 0, free lines is 4095 [11:48:13]Connected sock=10 [11:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 93 45 04 01 D6 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 88 39 02 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 FC FE 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 34 45 02 00 35 04 06 00 7C AD BC 85 BA C2 AD 01 80 96 29 7E A1 C7 [11:48:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DD 9B 47 00 D6 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 34 45 02 00 F4 03 04 00 20 A6 5E 66 B6 04 01 00 00 75 1B 2C 0F 6F 82 A6 A4 [11:48:14]CommunicateWithHost err = 0 [11:48:14]CheckOFDResponse [11:48:14]1017 (14) - 77093643461234 [11:48:14]1041 (16) - 0000000000875057 [11:48:14]1040 (4) - 148788 [11:48:14]1012 (4) - 04.06.2024 05:29 [11:48:14]1206 (1) - 0 [11:48:14]OFD Sender: Remove packet 148788 [11:48:14]ProducePacketName [11:48:14]name=ofd_packets/00148788 [11:48:14]NVStorageDeleteData [11:48:14]Write to MH i2c: 01 00 00 19 13 2C [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: 01 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: 01 07 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: 01 07 00 19 13 00 00 00 00 00 AC 0C EB [11:48:14]RasterBufferAndPrint [11:48:14]line [11:48:14]line [11:48:14]line [11:48:14]line [11:48:14]line [11:48:14]written 0, free lines is 3249 [11:48:14]MH_Cut [11:48:14]Write to MH i2c: D1 01 00 20 13 01 05 [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: D1 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: D1 01 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: D1 01 00 20 13 00 04 [11:48:14]Write to MH i2c: 01 00 00 21 13 34 [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]OFD Sender: No OFD packet to send [11:48:15]*** Cut start [11:48:15]*** Partial cut [11:48:15]*** CUTSNS_PIN = 1 [11:48:15]*** CUTSNS_PIN = 0 [11:48:15]*** Brake cut motor [11:48:16]Read from MH i2c: 01 [11:48:16]MH_I2C_Read... [11:48:16]*** Stop cut motor [11:48:16]*** Cut end [11:48:16]Read from MH i2c: 01 07 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: 01 07 00 21 13 00 00 00 00 00 FF 0F 49 [11:48:16]process_action close_receipt done [11:48:16]requested_data is exist [11:48:16]produce_requested_data [11:48:16]requested_item fm.sn is exist - process it [11:48:16]wFMCommunicate request_size=4 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 11 00 00 [11:48:16]Write to MH i2c: E2 08 00 22 13 80 11 00 00 00 00 00 00 AF [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 17 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 17 00 22 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 02 [11:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:48:16]wFMCommunicate OK [11:48:16]requested_item fd.num is exist - process it [11:48:16]SAM_PROTO_GetFieldsCounters [11:48:16]wFMCommunicate request_size=4 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 13 00 00 [11:48:16]Write to MH i2c: E2 08 00 23 13 80 13 00 00 00 00 00 00 B2 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 62 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 62 00 23 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 34 45 02 00 0E 04 04 00 70 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 37 [11:48:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 34 45 02 00 0E 04 04 00 70 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 [11:48:16]wFMCommunicate OK [11:48:16]SAM_PROTO_GetFieldsCounters done [11:48:16]requested_item shift.num is exist - process it [11:48:16]requested_item shift.opened is exist - process it [11:48:16]req_shift_opened [11:48:16]FM_GetShiftState [11:48:16]SAM_PROTO_GetShiftState [11:48:16]wFMCommunicate request_size=4 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 13 01 00 [11:48:16]Write to MH i2c: E2 08 00 24 13 80 13 01 00 00 00 00 00 B4 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 0E 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 0E 00 24 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 77 [11:48:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:48:16]wFMCommunicate OK [11:48:16]SAM_PROTO_GetShiftState done [11:48:16]FM_GetShiftState done [11:48:16]req_shift_opened done [11:48:16]requested_item shift.open_date is exist - process it [11:48:16]req_shift_open_date [11:48:16]req_shift_open_date done [11:48:16]produce_requested_data done [11:48:16]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148788,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:48:16]process_action_free close_receipt [11:48:16]json_value_free [11:48:16]json_value_free done [11:48:16]process_json_proto returns [11:48:16]Send response to host [11:48:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148788,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:48:16]free response buf [11:48:16]execute_script done [11:48:16]execute_script returns [11:48:16]free content buf [11:48:16]Sock 9.Close socket [11:48:16]Sock 9.Thread stoped [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:12]accept exits with 7 [11:50:12]New connection [11:50:12]New thread 3067235684 created [11:50:12]Thread 3067379044 joined [11:50:12]Waiting for new connection... [11:50:12] Sock 7.Parse request [11:50:12]Sock 7.Check first char [11:50:12]Sock 7.First char is OK [11:50:12]request: POST /json_proto HTTP/1.0 [11:50:12]Method: POST [11:50:12]URL: /json_proto [11:50:12]Method is POST - this is cgi request [11:50:12]url: /json_proto [11:50:12]query_string will be loaded in cgi processing [11:50:12]execute_cgi json_proto POST (null) [11:50:12]execute_cgi path=json_proto method=POST [11:50:12]POST find Content-Length [11:50:12]Host: 172.17.38.4:8080 [11:50:12]Content-Length: 642 [11:50:12]Content-Type: application/json [11:50:12] [11:50:12]POST finish read [11:50:12]Found Content-Length = 642 [11:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [11:50:12]execute_script... [11: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)979715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [11:50:12]POST & json_proto [11:50:12]process_json_proto [11:50:12]json parsed OK: [11:50:12]protocol is kg_v1.0 [11:50:12]action value=close_receipt [11:50:12]process_action close_receipt [11:50:12]cmd_close_receipt [11:50:12]MH_GetDate [11:50:12]Write to MH i2c: F0 00 00 25 13 27 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: F0 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: F0 09 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: F0 09 00 25 13 00 75 FF 5E 66 CC 51 87 64 70 [11:50:12]GetLastDocTimeStamp 1717501692 [11:50:12]current date 1717501813 [11:50:12]FM_GetShiftState [11:50:12]SAM_PROTO_GetShiftState [11:50:12]wFMCommunicate request_size=4 [11:50:12]MH_SAM_APDU [11:50:12]CAPDU: 80 13 01 00 [11:50:12]Write to MH i2c: E2 08 00 26 13 80 13 01 00 00 00 00 00 B6 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:12]Read from MH i2c: E2 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: E2 0E 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: E2 0E 00 26 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 79 [11:50:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:50:12]wFMCommunicate OK [11:50:12]SAM_PROTO_GetShiftState done [11:50:12]FM_GetShiftState done [11:50:12]opened in 1717460629 [11:50:12]opened+sec_in_day 1717547029 [11:50:12]quantity*price = 133800 [11:50:12]sum+1 = 133801 [11:50:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 128 04.06.2024 11:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148789 ФПД: 234444060924891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115013&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148789&fm=234444060924891&tin=02508201610067®Number=0000000000092720&sum=133800 [11:50:13]StoreToDocumentArchive [11:50:13]shift 368 fd 148789 [11:50:13]save to /storage/0368/doc_00148789 [11:50:13]save last doc name /storage/0368/doc_00148789 to /storage/kkm_last_doc_name [11:50:13]save OK [11:50:13]Clear old archive folders... [11:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:13]tlvbuf is 00F98C80 [11:50:13]SAM_PROTO_ClearQueue [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 09 00 00 [11:50:13]Write to MH i2c: E2 08 00 33 13 80 09 00 00 00 00 00 00 B8 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 33 13 00 90 00 BA [11:50:13]RAPDU: 90 00 [11:50:13]wFMCommunicate OK [11:50:13]SAM_PROTO_ClearQueue done [11:50:13]KKMCreateOFDPacket [11:50:13]OFDProtocolAddRootSTLVToBuf [11:50:13]FM_MakeSignedData [11:50:13]FM_MakeSignedData [11:50:13]SAM_PROTO_SignData [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 0D 01 02 [11:50:13]Write to MH i2c: E2 08 00 34 13 80 0D 01 02 00 00 00 00 C0 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 34 13 00 90 00 BB [11:50:13]RAPDU: 90 00 [11:50:13]wFMCommunicate OK [11:50:13]wFMCommunicate request_size=255 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 80 00 00 00 F4 03 04 00 75 FF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 35 45 02 00 35 04 06 00 D5 [11:50:13]Write to MH i2c: E2 02 01 35 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 80 00 00 00 F4 03 04 00 75 FF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 35 45 02 00 35 04 06 00 D5 00 00 61 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 35 13 00 90 00 BC [11:50:14]RAPDU: 90 00 [11:50:14]wFMCommunicate OK [11:50:14]wFMCommunicate request_size=10 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 0D 02 02 05 39 C2 F8 9B DB [11:50:14]Write to MH i2c: E2 0D 00 36 13 80 0D 02 02 05 00 39 C2 F8 9B DB 00 00 36 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 36 13 00 90 00 BD [11:50:14]RAPDU: 90 00 [11:50:14]wFMCommunicate OK [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 0D 03 02 [11:50:14]Write to MH i2c: E2 08 00 37 13 80 0D 03 02 00 00 00 00 C5 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 0B 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 0B 00 37 13 00 A1 22 1C 53 A4 64 B9 AA 90 00 63 [11:50:14]RAPDU: A1 22 1C 53 A4 64 B9 AA 90 00 [11:50:14]wFMCommunicate OK [11:50:14]SAM_PROTO_SignData done [11:50:14]FM_MakeSignedData done [11:50:14]CreateOFDProtocolMessage [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 11 00 00 [11:50:14]Write to MH i2c: E2 08 00 38 13 80 11 00 00 00 00 00 00 C5 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 17 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 17 00 38 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 18 [11:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:50:14]wFMCommunicate OK [11:50:14]CreateOFDProtocolMessage done [11:50:14]OFDSenderStorePacket 148789 [11:50:14]StoreOFDPacket docnum=148789 [11:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A7 F0 07 01 E1 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 80 00 00 00 F4 03 04 00 75 FF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 35 45 02 00 35 04 06 00 D5 39 C2 F8 9B DB A1 22 1C 53 A4 64 B9 AA [11:50:14]CheckFolder [11:50:14]dirname=/storage/ofd_packets [11:50:14]CheckFolder done [11:50:14]ProducePacketName [11:50:14]name=ofd_packets/00148789 [11:50:14]NVStorageSaveData ofd_packets/00148789 [11:50:14]File name is /storage/ofd_packets/00148789 [11:50:14]Write 301 bytes [11:50:14]NVStorageSaveData done [11:50:14]OFDSenderStorePacket done [11:50:14]KKMCreateOFDPacket done [11:50:14]NVStorageSaveData kkm_last_timestamp [11:50:14]File name is /storage/kkm_last_timestamp [11:50:14]OFD Sender: Processing packet 148789 [packets to send 100, broken 99] [11:50:14]ProducePacketName [11:50:14]name=ofd_packets/00148789 [11:50:14]OFD Sender: To server: pG, [11:50:14]CommunicateWithHost lk.salyk.kg:30040 [11:50:14]ConnectInit lk.salyk.kg [11:50:14]Write 4 bytes [11:50:14]NVStorageSaveData done [11:50:14]ExternCall_PrintAddStr [11:50:14]wPrintStart [11:50:14]Write to MH i2c: 01 00 00 39 13 4C [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 07 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 07 00 39 13 00 00 00 00 00 FF 0F 61 [11:50:14]RasterBufferAndPrint [11:50:14]line Счет N : (1)979715 [11:50:14]line ИНН: 02508201610067 [11:50:14]line Контрольно-Кассовый Чек [11:50:14]line ПРОДАЖА [11:50:14]line ТРК (МРК, ГНК) : 12 [11:50:14]line Товар: 2710124130 [11:50:14]line Аи-92-К-5 [11:50:14]line 20.000 * 66.90 [11:50:14]line = 1338.00 [11:50:14]line НДС 12% НСП 1% [11:50:14]line > о реализуемом товаре [11:50:14]line ИТОГО: 1338.00 [11:50:14]line НСП 1% : 11.84 [11:50:14]line НДС 12% : 142.09 [11:50:14]line Наличными: 1338.00 [11:50:14]line Безнал.: 0.00 [11:50:14]line Место: АЗС № 68 "Партнер Нефть" [11:50:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:50:14]line СНО: Общий режим [11:50:14]line Чек 128 04.06.2024 11:50 [11:50:14]line Смена: 368 ФФД: 1.0 [11:50:14]line ЗНМ: 0300000035 [11:50:14]line РНМ: 0000000000092720 [11:50:14]line Версия ККМ: 001 [11:50:14]line ФМ: 0000000000875057 [11:50:14]line ФД: 148789 [11:50:14]line ФПД: 234444060924891 [11:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115013&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148789&fm=234444060924891&tin=02508201610067®Number=0000000000092720&sum=133800 [11:50:14]Connected sock=11 [11:50:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A7 F0 07 01 E1 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 80 00 00 00 F4 03 04 00 75 FF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 35 45 02 00 35 04 06 00 D5 39 C2 F8 9B DB A1 22 1C 53 A4 64 B9 AA [11:50:14]written 0, free lines is 4095 [11:50:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 0C 01 47 00 ED 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 35 45 02 00 F4 03 04 00 99 A6 5E 66 B6 04 01 00 00 2A 34 58 E4 E8 13 79 28 [11:50:14]CommunicateWithHost err = 0 [11:50:14]CheckOFDResponse [11:50:14]1017 (14) - 77093643461234 [11:50:14]1041 (16) - 0000000000875057 [11:50:14]1040 (4) - 148789 [11:50:14]1012 (4) - 04.06.2024 05:31 [11:50:14]1206 (1) - 0 [11:50:14]OFD Sender: Remove packet 148789 [11:50:14]ProducePacketName [11:50:14]name=ofd_packets/00148789 [11:50:14]NVStorageDeleteData [11:50:15]Write to MH i2c: 01 00 00 61 13 74 [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 07 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 07 00 61 13 00 00 00 00 00 B3 0C 3A [11:50:15]RasterBufferAndPrint [11:50:15]line [11:50:15]line [11:50:15]line [11:50:15]line [11:50:15]line [11:50:15]written 0, free lines is 3255 [11:50:15]MH_Cut [11:50:15]Write to MH i2c: D1 01 00 68 13 01 4D [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: D1 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: D1 01 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: D1 01 00 68 13 00 4C [11:50:15]Write to MH i2c: 01 00 00 69 13 7C [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]OFD Sender: No OFD packet to send [11:50:16]*** Cut start [11:50:16]*** Partial cut [11:50:16]*** CUTSNS_PIN = 1 [11:50:16]*** CUTSNS_PIN = 0 [11:50:16]*** Brake cut motor [11:50:16]Read from MH i2c: 01 [11:50:16]MH_I2C_Read... [11:50:16]*** Stop cut motor [11:50:16]*** Cut end [11:50:16]Read from MH i2c: 01 07 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 FF 0F 91 [11:50:16]process_action close_receipt done [11:50:16]requested_data is exist [11:50:16]produce_requested_data [11:50:16]requested_item fm.sn is exist - process it [11:50:16]wFMCommunicate request_size=4 [11:50:16]MH_SAM_APDU [11:50:16]CAPDU: 80 11 00 00 [11:50:16]Write to MH i2c: E2 08 00 6A 13 80 11 00 00 00 00 00 00 F7 [11:50:16]Write i2c OK [11:50:16]MH_I2C_Read... [11:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:16]Read from MH i2c: E2 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 17 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 17 00 6A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4A [11:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:50:16]wFMCommunicate OK [11:50:16]requested_item fd.num is exist - process it [11:50:16]SAM_PROTO_GetFieldsCounters [11:50:16]wFMCommunicate request_size=4 [11:50:16]MH_SAM_APDU [11:50:16]CAPDU: 80 13 00 00 [11:50:16]Write to MH i2c: E2 08 00 6B 13 80 13 00 00 00 00 00 00 FA [11:50:16]Write i2c OK [11:50:16]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 62 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 62 00 6B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 35 45 02 00 0E 04 04 00 70 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 83 [11:50:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 35 45 02 00 0E 04 04 00 70 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 [11:50:17]wFMCommunicate OK [11:50:17]SAM_PROTO_GetFieldsCounters done [11:50:17]requested_item shift.num is exist - process it [11:50:17]requested_item shift.opened is exist - process it [11:50:17]req_shift_opened [11:50:17]FM_GetShiftState [11:50:17]SAM_PROTO_GetShiftState [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 13 01 00 [11:50:17]Write to MH i2c: E2 08 00 6C 13 80 13 01 00 00 00 00 00 FC [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 0E 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 0E 00 6C 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BF [11:50:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:50:17]wFMCommunicate OK [11:50:17]SAM_PROTO_GetShiftState done [11:50:17]FM_GetShiftState done [11:50:17]req_shift_opened done [11:50:17]requested_item shift.open_date is exist - process it [11:50:17]req_shift_open_date [11:50:17]req_shift_open_date done [11:50:17]produce_requested_data done [11:50:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148789,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:50:17]process_action_free close_receipt [11:50:17]json_value_free [11:50:17]json_value_free done [11:50:17]process_json_proto returns [11:50:17]Send response to host [11:50:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148789,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:50:17]free response buf [11:50:17]execute_script done [11:50:17]execute_script returns [11:50:17]free content buf [11:50:17]Sock 7.Close socket [11:50:17]Sock 7.Thread stoped [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:27]accept exits with 10 [11:52:27]New connection [11:52:27]New thread 3067379044 created [11:52:27]Thread 3067235684 joined [11:52:27]Waiting for new connection... [11:52:27] Sock 10.Parse request [11:52:27]Sock 10.Check first char [11:52:27]Sock 10.First char is OK [11:52:27]request: POST /json_proto HTTP/1.0 [11:52:27]Method: POST [11:52:27]URL: /json_proto [11:52:27]Method is POST - this is cgi request [11:52:27]url: /json_proto [11:52:27]query_string will be loaded in cgi processing [11:52:27]execute_cgi json_proto POST (null) [11:52:27]execute_cgi path=json_proto method=POST [11:52:27]POST find Content-Length [11:52:27]Host: 172.17.38.4:8080 [11:52:27]Content-Length: 674 [11:52:27]Content-Type: application/json [11:52:27] [11:52:27]POST finish read [11:52:27]Found Content-Length = 674 [11:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:52:27]execute_script... [11:52: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)979717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:52:27]POST & json_proto [11:52:27]process_json_proto [11:52:27]json parsed OK: [11:52:27]protocol is kg_v1.0 [11:52:27]action value=close_receipt [11:52:27]process_action close_receipt [11:52:27]cmd_close_receipt [11:52:27]MH_GetDate [11:52:27]Write to MH i2c: F0 00 00 6D 13 6F [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: F0 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: F0 09 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: F0 09 00 6D 13 00 FB FF 5E 66 CC 51 87 64 3E [11:52:27]GetLastDocTimeStamp 1717501813 [11:52:27]current date 1717501947 [11:52:27]FM_GetShiftState [11:52:27]SAM_PROTO_GetShiftState [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 13 01 00 [11:52:27]Write to MH i2c: E2 08 00 6E 13 80 13 01 00 00 00 00 00 FE [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 0E 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 0E 00 6E 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C1 [11:52:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:52:27]wFMCommunicate OK [11:52:27]SAM_PROTO_GetShiftState done [11:52:27]FM_GetShiftState done [11:52:27]opened in 1717460629 [11:52:27]opened+sec_in_day 1717547029 [11:52:27]quantity*price = 50009 [11:52:27]sum+1 = 50010 [11:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 129 04.06.2024 11:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148790 ФПД: 6987211557794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115227&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148790&fm=6987211557794&tin=02508201610067®Number=0000000000092720&sum=50000 [11:52:28]StoreToDocumentArchive [11:52:28]shift 368 fd 148790 [11:52:28]save to /storage/0368/doc_00148790 [11:52:28]save last doc name /storage/0368/doc_00148790 to /storage/kkm_last_doc_name [11:52:28]save OK [11:52:28]Clear old archive folders... [11:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:52:28]tlvbuf is 00FEAFA0 [11:52:28]SAM_PROTO_ClearQueue [11:52:28]wFMCommunicate request_size=4 [11:52:28]MH_SAM_APDU [11:52:28]CAPDU: 80 09 00 00 [11:52:28]Write to MH i2c: E2 08 00 7B 13 80 09 00 00 00 00 00 00 00 [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:28]Read from MH i2c: E2 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 03 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 03 00 7B 13 00 90 00 02 [11:52:28]RAPDU: 90 00 [11:52:28]wFMCommunicate OK [11:52:28]SAM_PROTO_ClearQueue done [11:52:28]KKMCreateOFDPacket [11:52:28]OFDProtocolAddRootSTLVToBuf [11:52:28]FM_MakeSignedData [11:52:28]FM_MakeSignedData [11:52:28]SAM_PROTO_SignData [11:52:28]wFMCommunicate request_size=4 [11:52:28]MH_SAM_APDU [11:52:28]CAPDU: 80 0D 01 02 [11:52:28]Write to MH i2c: E2 08 00 7C 13 80 0D 01 02 00 00 00 00 08 [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:28]Read from MH i2c: E2 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 03 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 03 00 7C 13 00 90 00 03 [11:52:28]RAPDU: 90 00 [11:52:28]wFMCommunicate OK [11:52:28]wFMCommunicate request_size=255 [11:52:28]MH_SAM_APDU [11:52:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 81 00 00 00 F4 03 04 00 FB FF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 36 45 02 00 35 04 06 00 06 5A D6 43 [11:52:28]Write to MH i2c: E2 02 01 7D 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 81 00 00 00 F4 03 04 00 FB FF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 36 45 02 00 35 04 06 00 06 5A D6 43 00 00 53 [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:28]Read from MH i2c: E2 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 03 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 03 00 7D 13 00 90 00 04 [11:52:28]RAPDU: 90 00 [11:52:28]wFMCommunicate OK [11:52:28]wFMCommunicate request_size=7 [11:52:28]MH_SAM_APDU [11:52:28]CAPDU: 80 0D 02 02 02 4B A2 [11:52:28]Write to MH i2c: E2 0A 00 7E 13 80 0D 02 02 02 00 4B A2 00 00 FC [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:28]Read from MH i2c: E2 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 03 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 03 00 7E 13 00 90 00 05 [11:52:28]RAPDU: 90 00 [11:52:28]wFMCommunicate OK [11:52:28]wFMCommunicate request_size=4 [11:52:28]MH_SAM_APDU [11:52:28]CAPDU: 80 0D 03 02 [11:52:28]Write to MH i2c: E2 08 00 7F 13 80 0D 03 02 00 00 00 00 0D [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:28]Read from MH i2c: E2 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 0B 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 0B 00 7F 13 00 09 C8 42 E2 F4 B3 51 6C 90 00 67 [11:52:28]RAPDU: 09 C8 42 E2 F4 B3 51 6C 90 00 [11:52:28]wFMCommunicate OK [11:52:28]SAM_PROTO_SignData done [11:52:28]FM_MakeSignedData done [11:52:28]CreateOFDProtocolMessage [11:52:28]wFMCommunicate request_size=4 [11:52:28]MH_SAM_APDU [11:52:28]CAPDU: 80 11 00 00 [11:52:28]Write to MH i2c: E2 08 00 80 13 80 11 00 00 00 00 00 00 0D [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:28]Read from MH i2c: E2 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 17 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: E2 17 00 80 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 60 [11:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:52:28]wFMCommunicate OK [11:52:28]CreateOFDProtocolMessage done [11:52:28]OFDSenderStorePacket 148790 [11:52:28]StoreOFDPacket docnum=148790 [11:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 33 E5 04 01 DB 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 81 00 00 00 F4 03 04 00 FB FF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 36 45 02 00 35 04 06 00 06 5A D6 43 4B A2 09 C8 42 E2 F4 B3 51 6C [11:52:28]CheckFolder [11:52:28]dirname=/storage/ofd_packets [11:52:28]CheckFolder done [11:52:28]ProducePacketName [11:52:28]name=ofd_packets/00148790 [11:52:28]NVStorageSaveData ofd_packets/00148790 [11:52:28]File name is /storage/ofd_packets/00148790 [11:52:28]Write 298 bytes [11:52:28]NVStorageSaveData done [11:52:28]OFDSenderStorePacket done [11:52:28]KKMCreateOFDPacket done [11:52:28]NVStorageSaveData kkm_last_timestamp [11:52:28]File name is /storage/kkm_last_timestamp [11:52:28]Write 4 bytes [11:52:28]NVStorageSaveData done [11:52:28]ExternCall_PrintAddStr [11:52:28]wPrintStart [11:52:28]Write to MH i2c: 01 00 00 81 13 94 [11:52:28]Write i2c OK [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: 01 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: 01 07 00 [11:52:28]MH_I2C_Read... [11:52:28]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 FF 0F A9 [11:52:28]RasterBufferAndPrint [11:52:28]line Счет N : (1)979717 [11:52:28]line ИНН: 02508201610067 [11:52:28]line Контрольно-Кассовый Чек [11:52:28]line ПРОДАЖА [11:52:28]line ТРК (МРК, ГНК) : 11 [11:52:28]line Товар: 2710194210 [11:52:28]line ДТ-К-5 [11:52:28]line 6.860 * 72.90 [11:52:28]line = 500.09 [11:52:28]line НДС 12% НСП 1% [11:52:28]line > о реализуемом товаре [11:52:28]line ОКРУГЛЕНИЕ: -0.09 [11:52:28]line ИТОГО: 500.00 [11:52:28]line Внесено: 500.00 [11:52:28]line СДАЧА: 0.00 [11:52:28]line НСП 1% : 4.43 [11:52:28]line НДС 12% : 53.11 [11:52:28]line Наличными: 500.00 [11:52:28]line Безнал.: 0.00 [11:52:28]line Место: АЗС № 68 "Партнер Нефть" [11:52:28]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:52:28]line СНО: Общий режим [11:52:28]line Чек 129 04.06.2024 11:52 [11:52:28]line Смена: 368 ФФД: 1.0 [11:52:28]line ЗНМ: 0300000035 [11:52:28]line РНМ: 0000000000092720 [11:52:28]line Версия ККМ: 001 [11:52:28]line ФМ: 0000000000875057 [11:52:28]line ФД: 148790 [11:52:28]line ФПД: 6987211557794 [11:52:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115227&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148790&fm=6987211557794&tin=02508201610067®Number=0000000000092720&sum=50000 [11:52:29]OFD Sender: Processing packet 148790 [packets to send 100, broken 99] [11:52:29]ProducePacketName [11:52:29]name=ofd_packets/00148790 [11:52:29]OFD Sender: To server: pG, [11:52:29]CommunicateWithHost lk.salyk.kg:30040 [11:52:29]ConnectInit lk.salyk.kg [11:52:29]written 0, free lines is 4095 [11:52:29]Connected sock=11 [11:52:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 33 E5 04 01 DB 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 81 00 00 00 F4 03 04 00 FB FF 5E 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 36 45 02 00 35 04 06 00 06 5A D6 43 4B A2 09 C8 42 E2 F4 B3 51 6C [11:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 48 C2 47 00 11 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 38 37 35 30 35 37 10 04 04 00 36 45 02 00 F4 03 04 00 1F A7 5E 66 B6 04 01 00 00 8A FE 84 EC 34 07 9F EA [11:52:29]CommunicateWithHost err = 0 [11:52:29]CheckOFDResponse [11:52:29]1017 (14) - 77093643461234 [11:52:29]1041 (16) - 0000000000875057 [11:52:29]1040 (4) - 148790 [11:52:29]1012 (4) - 04.06.2024 05:33 [11:52:29]1206 (1) - 0 [11:52:29]OFD Sender: Remove packet 148790 [11:52:29]ProducePacketName [11:52:29]name=ofd_packets/00148790 [11:52:29]NVStorageDeleteData [11:52:29]Write to MH i2c: 01 00 00 AC 13 BF [11:52:29]Write i2c OK [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: 01 [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: 01 07 00 [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: 01 07 00 AC 13 00 00 00 00 00 66 0C 38 [11:52:29]RasterBufferAndPrint [11:52:29]line [11:52:29]line [11:52:29]line [11:52:29]line [11:52:29]line [11:52:29]written 0, free lines is 3178 [11:52:29]MH_Cut [11:52:29]Write to MH i2c: D1 01 00 B3 13 01 98 [11:52:29]Write i2c OK [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: D1 [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: D1 01 00 [11:52:29]MH_I2C_Read... [11:52:29]Read from MH i2c: D1 01 00 B3 13 00 97 [11:52:29]Write to MH i2c: 01 00 00 B4 13 C7 [11:52:29]Write i2c OK [11:52:29]MH_I2C_Read... [11:52:29]OFD Sender: No OFD packet to send [11:52:30]*** Cut start [11:52:30]*** Partial cut [11:52:30]*** CUTSNS_PIN = 1 [11:52:30]*** CUTSNS_PIN = 0 [11:52:31]*** Brake cut motor [11:52:31]Read from MH i2c: 01 [11:52:31]MH_I2C_Read... [11:52:31]*** Stop cut motor [11:52:31]*** Cut end [11:52:31]Read from MH i2c: 01 07 00 [11:52:31]MH_I2C_Read... [11:52:31]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 FF 0F DC [11:52:31]process_action close_receipt done [11:52:31]requested_data is exist [11:52:31]produce_requested_data [11:52:31]requested_item fm.sn is exist - process it [11:52:31]wFMCommunicate request_size=4 [11:52:31]MH_SAM_APDU [11:52:31]CAPDU: 80 11 00 00 [11:52:31]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [11:52:31]Write i2c OK [11:52:31]MH_I2C_Read... [11:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:31]Read from MH i2c: E2 [11:52:31]MH_I2C_Read... [11:52:31]Read from MH i2c: E2 17 00 [11:52:31]MH_I2C_Read... [11:52:31]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 95 [11:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:52:31]wFMCommunicate OK [11:52:31]requested_item fd.num is exist - process it [11:52:31]SAM_PROTO_GetFieldsCounters [11:52:31]wFMCommunicate request_size=4 [11:52:31]MH_SAM_APDU [11:52:31]CAPDU: 80 13 00 00 [11:52:31]Write to MH i2c: E2 08 00 B6 13 80 13 00 00 00 00 00 00 45 [11:52:31]Write i2c OK [11:52:31]MH_I2C_Read... [11:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:31]Read from MH i2c: E2 [11:52:31]MH_I2C_Read... [11:52:31]Read from MH i2c: E2 62 00 [11:52:31]MH_I2C_Read... [11:52:31]Read from MH i2c: E2 62 00 B6 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 36 45 02 00 0E 04 04 00 70 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 D2 [11:52:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 36 45 02 00 0E 04 04 00 70 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 [11:52:31]wFMCommunicate OK [11:52:31]SAM_PROTO_GetFieldsCounters done [11:52:31]requested_item shift.num is exist - process it [11:52:31]requested_item shift.opened is exist - process it [11:52:31]req_shift_opened [11:52:31]FM_GetShiftState [11:52:31]SAM_PROTO_GetShiftState [11:52:31]wFMCommunicate request_size=4 [11:52:31]MH_SAM_APDU [11:52:31]CAPDU: 80 13 01 00 [11:52:31]Write to MH i2c: E2 08 00 B7 13 80 13 01 00 00 00 00 00 47 [11:52:31]Write i2c OK [11:52:31]MH_I2C_Read... [11:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:31]Read from MH i2c: E2 [11:52:31]MH_I2C_Read... [11:52:31]Read from MH i2c: E2 0E 00 [11:52:31]MH_I2C_Read... [11:52:31]Read from MH i2c: E2 0E 00 B7 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0A [11:52:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:52:31]wFMCommunicate OK [11:52:31]SAM_PROTO_GetShiftState done [11:52:31]FM_GetShiftState done [11:52:31]req_shift_opened done [11:52:31]requested_item shift.open_date is exist - process it [11:52:31]req_shift_open_date [11:52:31]req_shift_open_date done [11:52:31]produce_requested_data done [11:52:31]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148790,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:52:31]process_action_free close_receipt [11:52:31]json_value_free [11:52:31]json_value_free done [11:52:31]process_json_proto returns [11:52:31]Send response to host [11:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148790,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:52:31]free response buf [11:52:31]execute_script done [11:52:31]execute_script returns [11:52:31]free content buf [11:52:31]Sock 10.Close socket [11:52:31]Sock 10.Thread stoped [11:52:32]accept exits with 7 [11:52:32]New connection [11:52:32]New thread 3067235684 created [11:52:32]Thread 3067379044 joined [11:52:32]Waiting for new connection... [11:52:32] Sock 7.Parse request [11:52:32]Sock 7.Check first char [11:52:32]Sock 7.First char is OK [11:52:32]request: POST /json_proto HTTP/1.0 [11:52:32]Method: POST [11:52:32]URL: /json_proto [11:52:32]Method is POST - this is cgi request [11:52:32]url: /json_proto [11:52:32]query_string will be loaded in cgi processing [11:52:32]execute_cgi json_proto POST (null) [11:52:32]execute_cgi path=json_proto method=POST [11:52:32]POST find Content-Length [11:52:32]Host: 172.17.38.4:8080 [11:52:32]Content-Length: 674 [11:52:32]Content-Type: application/json [11:52:32] [11:52:32]POST finish read [11:52:32]Found Content-Length = 674 [11:52:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:52:32]execute_script... [11:52:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:52:32]POST & json_proto [11:52:32]process_json_proto [11:52:32]json parsed OK: [11:52:32]protocol is kg_v1.0 [11:52:32]action value=close_receipt [11:52:32]process_action close_receipt [11:52:32]cmd_close_receipt [11:52:32]MH_GetDate [11:52:32]Write to MH i2c: F0 00 00 B8 13 BA [11:52:32]Write i2c OK [11:52:32]MH_I2C_Read... [11:52:32]Read from MH i2c: F0 [11:52:32]MH_I2C_Read... [11:52:32]Read from MH i2c: F0 09 00 [11:52:32]MH_I2C_Read... [11:52:32]Read from MH i2c: F0 09 00 B8 13 00 00 00 5F 66 CC 51 87 64 90 [11:52:32]GetLastDocTimeStamp 1717501947 [11:52:32]current date 1717501952 [11:52:32]FM_GetShiftState [11:52:32]SAM_PROTO_GetShiftState [11:52:32]wFMCommunicate request_size=4 [11:52:32]MH_SAM_APDU [11:52:32]CAPDU: 80 13 01 00 [11:52:32]Write to MH i2c: E2 08 00 B9 13 80 13 01 00 00 00 00 00 49 [11:52:32]Write i2c OK [11:52:32]MH_I2C_Read... [11:52:32]Read from MH i2c: E2 [11:52:32]MH_I2C_Read... [11:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:32]Read from MH i2c: E2 0E 00 [11:52:32]MH_I2C_Read... [11:52:32]Read from MH i2c: E2 0E 00 B9 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0C [11:52:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:52:32]wFMCommunicate OK [11:52:32]SAM_PROTO_GetShiftState done [11:52:32]FM_GetShiftState done [11:52:32]opened in 1717460629 [11:52:32]opened+sec_in_day 1717547029 [11:52:32]quantity*price = 40022 [11:52:32]sum+1 = 40023 [11:52:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 130 04.06.2024 11:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148791 ФПД: 69799405728602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115232&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148791&fm=69799405728602&tin=02508201610067®Number=0000000000092720&sum=40000 [11:52:33]StoreToDocumentArchive [11:52:33]shift 368 fd 148791 [11:52:33]save to /storage/0368/doc_00148791 [11:52:33]save last doc name /storage/0368/doc_00148791 to /storage/kkm_last_doc_name [11:52:33]save OK [11:52:33]Clear old archive folders... [11:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:52:33]tlvbuf is 00F3C300 [11:52:33]SAM_PROTO_ClearQueue [11:52:33]wFMCommunicate request_size=4 [11:52:33]MH_SAM_APDU [11:52:33]CAPDU: 80 09 00 00 [11:52:33]Write to MH i2c: E2 08 00 C6 13 80 09 00 00 00 00 00 00 4B [11:52:33]Write i2c OK [11:52:33]MH_I2C_Read... [11:52:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:33]Read from MH i2c: E2 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: E2 03 00 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: E2 03 00 C6 13 00 90 00 4D [11:52:33]RAPDU: 90 00 [11:52:33]wFMCommunicate OK [11:52:33]SAM_PROTO_ClearQueue done [11:52:33]KKMCreateOFDPacket [11:52:33]OFDProtocolAddRootSTLVToBuf [11:52:33]FM_MakeSignedData [11:52:33]FM_MakeSignedData [11:52:33]SAM_PROTO_SignData [11:52:33]wFMCommunicate request_size=4 [11:52:33]MH_SAM_APDU [11:52:33]CAPDU: 80 0D 01 02 [11:52:33]Write to MH i2c: E2 08 00 C7 13 80 0D 01 02 00 00 00 00 53 [11:52:33]Write i2c OK [11:52:33]MH_I2C_Read... [11:52:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:33]Read from MH i2c: E2 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: E2 03 00 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: E2 03 00 C7 13 00 90 00 4E [11:52:33]RAPDU: 90 00 [11:52:33]wFMCommunicate OK [11:52:33]wFMCommunicate request_size=255 [11:52:33]MH_SAM_APDU [11:52:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 00 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 37 45 02 00 35 04 06 00 3F 7B 70 C8 [11:52:33]Write to MH i2c: E2 02 01 C8 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 00 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 37 45 02 00 35 04 06 00 3F 7B 70 C8 00 00 A7 [11:52:33]Write i2c OK [11:52:33]MH_I2C_Read... [11:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:34]Read from MH i2c: E2 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 03 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [11:52:34]RAPDU: 90 00 [11:52:34]wFMCommunicate OK [11:52:34]wFMCommunicate request_size=7 [11:52:34]MH_SAM_APDU [11:52:34]CAPDU: 80 0D 02 02 02 B3 5A [11:52:34]Write to MH i2c: E2 0A 00 C9 13 80 0D 02 02 02 00 B3 5A 00 00 67 [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:34]Read from MH i2c: E2 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 03 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 03 00 C9 13 00 90 00 50 [11:52:34]RAPDU: 90 00 [11:52:34]wFMCommunicate OK [11:52:34]wFMCommunicate request_size=4 [11:52:34]MH_SAM_APDU [11:52:34]CAPDU: 80 0D 03 02 [11:52:34]Write to MH i2c: E2 08 00 CA 13 80 0D 03 02 00 00 00 00 58 [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:34]Read from MH i2c: E2 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 0B 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 0B 00 CA 13 00 65 33 3A C1 CB D1 A1 BF 90 00 E8 [11:52:34]RAPDU: 65 33 3A C1 CB D1 A1 BF 90 00 [11:52:34]wFMCommunicate OK [11:52:34]SAM_PROTO_SignData done [11:52:34]FM_MakeSignedData done [11:52:34]CreateOFDProtocolMessage [11:52:34]wFMCommunicate request_size=4 [11:52:34]MH_SAM_APDU [11:52:34]CAPDU: 80 11 00 00 [11:52:34]Write to MH i2c: E2 08 00 CB 13 80 11 00 00 00 00 00 00 58 [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:34]Read from MH i2c: E2 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 17 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 17 00 CB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AB [11:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:52:34]wFMCommunicate OK [11:52:34]CreateOFDProtocolMessage done [11:52:34]OFDSenderStorePacket 148791 [11:52:34]StoreOFDPacket docnum=148791 [11:52:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 C7 8D 04 01 AA E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 00 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 37 45 02 00 35 04 06 00 3F 7B 70 C8 B3 5A 65 33 3A C1 CB D1 A1 BF [11:52:34]CheckFolder [11:52:34]dirname=/storage/ofd_packets [11:52:34]CheckFolder done [11:52:34]ProducePacketName [11:52:34]name=ofd_packets/00148791 [11:52:34]NVStorageSaveData ofd_packets/00148791 [11:52:34]File name is /storage/ofd_packets/00148791 [11:52:34]Write 298 bytes [11:52:34]NVStorageSaveData done [11:52:34]OFDSenderStorePacket done [11:52:34]KKMCreateOFDPacket done [11:52:34]NVStorageSaveData kkm_last_timestamp [11:52:34]File name is /storage/kkm_last_timestamp [11:52:34]Write 4 bytes [11:52:34]NVStorageSaveData done [11:52:34]ExternCall_PrintAddStr [11:52:34]wPrintStart [11:52:34]Write to MH i2c: 01 00 00 CC 13 DF [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 07 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 07 00 CC 13 00 00 00 00 00 FF 0F F4 [11:52:34]RasterBufferAndPrint [11:52:34]line Счет N : (1)979716 [11:52:34]line ИНН: 02508201610067 [11:52:34]line Контрольно-Кассовый Чек [11:52:34]line ПРОДАЖА [11:52:34]line ТРК (МРК, ГНК) : 51 [11:52:34]line Товар: 2710194210 [11:52:34]line ДТ-К-5 [11:52:34]line 5.490 * 72.90 [11:52:34]line = 400.22 [11:52:34]line НДС 12% НСП 1% [11:52:34]line > о реализуемом товаре [11:52:34]line ОКРУГЛЕНИЕ: -0.22 [11:52:34]line ИТОГО: 400.00 [11:52:34]line Внесено: 400.00 [11:52:34]line СДАЧА: 0.00 [11:52:34]line НСП 1% : 3.54 [11:52:34]line НДС 12% : 42.50 [11:52:34]line Наличными: 400.00 [11:52:34]line Безнал.: 0.00 [11:52:34]line Место: АЗС № 68 "Партнер Нефть" [11:52:34]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:52:34]line СНО: Общий режим [11:52:34]line Чек 130 04.06.2024 11:52 [11:52:34]line Смена: 368 ФФД: 1.0 [11:52:34]line ЗНМ: 0300000035 [11:52:34]line РНМ: 0000000000092720 [11:52:34]line Версия ККМ: 001 [11:52:34]line ФМ: 0000000000875057 [11:52:34]line ФД: 148791 [11:52:34]line ФПД: 69799405728602 [11:52:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115232&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148791&fm=69799405728602&tin=02508201610067®Number=0000000000092720&sum=40000 [11:52:34]OFD Sender: Processing packet 148791 [packets to send 100, broken 99] [11:52:34]ProducePacketName [11:52:34]name=ofd_packets/00148791 [11:52:34]OFD Sender: To server: pG, [11:52:34]CommunicateWithHost lk.salyk.kg:30040 [11:52:34]ConnectInit lk.salyk.kg [11:52:34]written 0, free lines is 4095 [11:52:34]Connected sock=10 [11:52:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 C7 8D 04 01 AA E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 00 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 37 45 02 00 35 04 06 00 3F 7B 70 C8 B3 5A 65 33 3A C1 CB D1 A1 BF [11:52:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F8 E1 47 00 DA 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 38 37 35 30 35 37 10 04 04 00 37 45 02 00 F4 03 04 00 25 A7 5E 66 B6 04 01 00 00 54 49 F9 54 27 97 90 B3 [11:52:34]CommunicateWithHost err = 0 [11:52:34]CheckOFDResponse [11:52:34]1017 (14) - 77093643461234 [11:52:34]1041 (16) - 0000000000875057 [11:52:34]1040 (4) - 148791 [11:52:34]1012 (4) - 04.06.2024 05:33 [11:52:34]1206 (1) - 0 [11:52:34]OFD Sender: Remove packet 148791 [11:52:34]ProducePacketName [11:52:34]name=ofd_packets/00148791 [11:52:34]NVStorageDeleteData [11:52:35]Write to MH i2c: 01 00 00 F7 13 0A [11:52:35]Write i2c OK [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: 01 [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: 01 07 00 [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: 01 07 00 F7 13 00 00 00 00 00 74 0C 91 [11:52:35]RasterBufferAndPrint [11:52:35]line [11:52:35]line [11:52:35]line [11:52:35]line [11:52:35]line [11:52:35]written 0, free lines is 3193 [11:52:35]MH_Cut [11:52:35]Write to MH i2c: D1 01 00 FE 13 01 E3 [11:52:35]Write i2c OK [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: D1 [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: D1 01 00 [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: D1 01 00 FE 13 00 E2 [11:52:35]Write to MH i2c: 01 00 00 FF 13 12 [11:52:35]Write i2c OK [11:52:35]MH_I2C_Read... [11:52:35]OFD Sender: No OFD packet to send [11:52:36]*** Cut start [11:52:36]*** Partial cut [11:52:36]*** CUTSNS_PIN = 1 [11:52:36]*** CUTSNS_PIN = 0 [11:52:36]*** Brake cut motor [11:52:36]Read from MH i2c: 01 [11:52:36]MH_I2C_Read... [11:52:36]*** Stop cut motor [11:52:37]*** Cut end [11:52:37]Read from MH i2c: 01 07 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: 01 07 00 FF 13 00 00 00 00 00 FF 0F 27 [11:52:37]process_action close_receipt done [11:52:37]requested_data is exist [11:52:37]produce_requested_data [11:52:37]requested_item fm.sn is exist - process it [11:52:37]wFMCommunicate request_size=4 [11:52:37]MH_SAM_APDU [11:52:37]CAPDU: 80 11 00 00 [11:52:37]Write to MH i2c: E2 08 00 00 14 80 11 00 00 00 00 00 00 8E [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:37]Read from MH i2c: E2 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 17 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 17 00 00 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E1 [11:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:52:37]wFMCommunicate OK [11:52:37]requested_item fd.num is exist - process it [11:52:37]SAM_PROTO_GetFieldsCounters [11:52:37]wFMCommunicate request_size=4 [11:52:37]MH_SAM_APDU [11:52:37]CAPDU: 80 13 00 00 [11:52:37]Write to MH i2c: E2 08 00 01 14 80 13 00 00 00 00 00 00 91 [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:37]Read from MH i2c: E2 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 62 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 62 00 01 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 37 45 02 00 0E 04 04 00 70 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 22 [11:52:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 37 45 02 00 0E 04 04 00 70 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 [11:52:37]wFMCommunicate OK [11:52:37]SAM_PROTO_GetFieldsCounters done [11:52:37]requested_item shift.num is exist - process it [11:52:37]requested_item shift.opened is exist - process it [11:52:37]req_shift_opened [11:52:37]FM_GetShiftState [11:52:37]SAM_PROTO_GetShiftState [11:52:37]wFMCommunicate request_size=4 [11:52:37]MH_SAM_APDU [11:52:37]CAPDU: 80 13 01 00 [11:52:37]Write to MH i2c: E2 08 00 02 14 80 13 01 00 00 00 00 00 93 [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:37]Read from MH i2c: E2 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 0E 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 0E 00 02 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 56 [11:52:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:52:37]wFMCommunicate OK [11:52:37]SAM_PROTO_GetShiftState done [11:52:37]FM_GetShiftState done [11:52:37]req_shift_opened done [11:52:37]requested_item shift.open_date is exist - process it [11:52:37]req_shift_open_date [11:52:37]req_shift_open_date done [11:52:37]produce_requested_data done [11:52:37]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148791,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:52:37]process_action_free close_receipt [11:52:37]json_value_free [11:52:37]json_value_free done [11:52:37]process_json_proto returns [11:52:37]Send response to host [11:52:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148791,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:52:37]free response buf [11:52:37]execute_script done [11:52:37]execute_script returns [11:52:37]free content buf [11:52:37]Sock 7.Close socket [11:52:37]Sock 7.Thread stoped [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:52]accept exits with 9 [11:52:52]New connection [11:52:52]New thread 3067379044 created [11:52:52]Thread 3067235684 joined [11:52:52]Waiting for new connection... [11:52:52] Sock 9.Parse request [11:52:52]Sock 9.Check first char [11:52:52]Sock 9.First char is OK [11:52:52]request: POST /json_proto HTTP/1.0 [11:52:52]Method: POST [11:52:52]URL: /json_proto [11:52:52]Method is POST - this is cgi request [11:52:52]url: /json_proto [11:52:52]query_string will be loaded in cgi processing [11:52:52]execute_cgi json_proto POST (null) [11:52:52]execute_cgi path=json_proto method=POST [11:52:52]POST find Content-Length [11:52:52]Host: 172.17.38.4:8080 [11:52:52]Content-Length: 674 [11:52:52]Content-Type: application/json [11:52:52] [11:52:52]POST finish read [11:52:52]Found Content-Length = 674 [11:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.000, "sum" : 291.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 291.00, "total" : 291.00, "payments": [ { "type": 0, "sum" : 291.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:52]execute_script... [11:52: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)979718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.000, "sum" : 291.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 291.00, "total" : 291.00, "payments": [ { "type": 0, "sum" : 291.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:52]POST & json_proto [11:52:52]process_json_proto [11:52:52]json parsed OK: [11:52:52]protocol is kg_v1.0 [11:52:52]action value=close_receipt [11:52:52]process_action close_receipt [11:52:52]cmd_close_receipt [11:52:52]MH_GetDate [11:52:52]Write to MH i2c: F0 00 00 03 14 06 [11:52:52]Write i2c OK [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: F0 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: F0 09 00 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: F0 09 00 03 14 00 15 00 5F 66 CC 51 87 64 F1 [11:52:52]GetLastDocTimeStamp 1717501952 [11:52:52]current date 1717501973 [11:52:52]FM_GetShiftState [11:52:52]SAM_PROTO_GetShiftState [11:52:52]wFMCommunicate request_size=4 [11:52:52]MH_SAM_APDU [11:52:52]CAPDU: 80 13 01 00 [11:52:52]Write to MH i2c: E2 08 00 04 14 80 13 01 00 00 00 00 00 95 [11:52:52]Write i2c OK [11:52:52]MH_I2C_Read... [11:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:52]Read from MH i2c: E2 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: E2 0E 00 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: E2 0E 00 04 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 58 [11:52:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:52:52]wFMCommunicate OK [11:52:52]SAM_PROTO_GetShiftState done [11:52:52]FM_GetShiftState done [11:52:52]opened in 1717460629 [11:52:52]opened+sec_in_day 1717547029 [11:52:52]quantity*price = 29160 [11:52:52]sum+1 = 29161 [11:52:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 291.00 Внесено: 291.00 СДАЧА: 0.00 НСП 1% : 2.58 НДС 12% : 30.97 Наличными: 291.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 131 04.06.2024 11:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148792 ФПД: 261673434368355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115253&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148792&fm=261673434368355&tin=02508201610067®Number=0000000000092720&sum=29100 [11:52:53]StoreToDocumentArchive [11:52:53]shift 368 fd 148792 [11:52:53]save to /storage/0368/doc_00148792 [11:52:53]save last doc name /storage/0368/doc_00148792 to /storage/kkm_last_doc_name [11:52:53]save OK [11:52:53]Clear old archive folders... [11:52:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:52:53]tlvbuf is 00FACCD0 [11:52:53]SAM_PROTO_ClearQueue [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 09 00 00 [11:52:53]Write to MH i2c: E2 08 00 11 14 80 09 00 00 00 00 00 00 97 [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 03 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 03 00 11 14 00 90 00 99 [11:52:53]RAPDU: 90 00 [11:52:53]wFMCommunicate OK [11:52:53]SAM_PROTO_ClearQueue done [11:52:53]KKMCreateOFDPacket [11:52:53]OFDProtocolAddRootSTLVToBuf [11:52:53]FM_MakeSignedData [11:52:53]FM_MakeSignedData [11:52:53]SAM_PROTO_SignData [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 0D 01 02 [11:52:53]Write to MH i2c: E2 08 00 12 14 80 0D 01 02 00 00 00 00 9F [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 03 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 03 00 12 14 00 90 00 9A [11:52:53]RAPDU: 90 00 [11:52:53]wFMCommunicate OK [11:52:53]wFMCommunicate request_size=255 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0C 00 00 00 00 07 04 06 00 AC 71 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 15 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 38 45 02 00 35 04 06 00 ED FD 98 1A [11:52:53]Write to MH i2c: E2 02 01 13 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0C 00 00 00 00 07 04 06 00 AC 71 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 15 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 38 45 02 00 35 04 06 00 ED FD 98 1A 00 00 E0 [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 13 14 00 90 00 9B [11:52:54]RAPDU: 90 00 [11:52:54]wFMCommunicate OK [11:52:54]wFMCommunicate request_size=7 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 0D 02 02 02 49 63 [11:52:54]Write to MH i2c: E2 0A 00 14 14 80 0D 02 02 02 00 49 63 00 00 52 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 03 00 14 14 00 90 00 9C [11:52:54]RAPDU: 90 00 [11:52:54]wFMCommunicate OK [11:52:54]wFMCommunicate request_size=4 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 0D 03 02 [11:52:54]Write to MH i2c: E2 08 00 15 14 80 0D 03 02 00 00 00 00 A4 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 0B 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 0B 00 15 14 00 78 8E 97 D0 A4 B0 3C 0C 90 00 AE [11:52:54]RAPDU: 78 8E 97 D0 A4 B0 3C 0C 90 00 [11:52:54]wFMCommunicate OK [11:52:54]SAM_PROTO_SignData done [11:52:54]FM_MakeSignedData done [11:52:54]CreateOFDProtocolMessage [11:52:54]wFMCommunicate request_size=4 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 11 00 00 [11:52:54]Write to MH i2c: E2 08 00 16 14 80 11 00 00 00 00 00 00 A4 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 17 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 17 00 16 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F7 [11:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:52:54]wFMCommunicate OK [11:52:54]CreateOFDProtocolMessage done [11:52:54]OFDSenderStorePacket 148792 [11:52:54]StoreOFDPacket docnum=148792 [11:52:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 0D 48 04 01 DB 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0C 00 00 00 00 07 04 06 00 AC 71 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 15 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 38 45 02 00 35 04 06 00 ED FD 98 1A 49 63 78 8E 97 D0 A4 B0 3C 0C [11:52:54]CheckFolder [11:52:54]dirname=/storage/ofd_packets [11:52:54]CheckFolder done [11:52:54]ProducePacketName [11:52:54]name=ofd_packets/00148792 [11:52:54]NVStorageSaveData ofd_packets/00148792 [11:52:54]File name is /storage/ofd_packets/00148792 [11:52:54]Write 298 bytes [11:52:54]NVStorageSaveData done [11:52:54]OFDSenderStorePacket done [11:52:54]KKMCreateOFDPacket done [11:52:54]NVStorageSaveData kkm_last_timestamp [11:52:54]File name is /storage/kkm_last_timestamp [11:52:54]Write 4 bytes [11:52:54]NVStorageSaveData done [11:52:54]ExternCall_PrintAddStr [11:52:54]wPrintStart [11:52:54]Write to MH i2c: 01 00 00 17 14 2B [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: 01 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: 01 07 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: 01 07 00 17 14 00 00 00 00 00 FF 0F 40 [11:52:54]RasterBufferAndPrint [11:52:54]line Счет N : (1)979718 [11:52:54]line ИНН: 02508201610067 [11:52:54]line Контрольно-Кассовый Чек [11:52:54]line ПРОДАЖА [11:52:54]line ТРК (МРК, ГНК) : 21 [11:52:54]line Товар: 2710194210 [11:52:54]line ДТ-К-5 [11:52:54]line 4.000 * 72.90 [11:52:54]line = 291.60 [11:52:54]line НДС 12% НСП 1% [11:52:54]line > о реализуемом товаре [11:52:54]line ОКРУГЛЕНИЕ: -0.60 [11:52:54]line ИТОГО: 291.00 [11:52:54]line Внесено: 291.00 [11:52:54]line СДАЧА: 0.00 [11:52:54]line НСП 1% : 2.58 [11:52:54]line НДС 12% : 30.97 [11:52:54]line Наличными: 291.00 [11:52:54]line Безнал.: 0.00 [11:52:54]line Место: АЗС № 68 "Партнер Нефть" [11:52:54]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:52:54]line СНО: Общий режим [11:52:54]line Чек 131 04.06.2024 11:52 [11:52:54]line Смена: 368 ФФД: 1.0 [11:52:54]line ЗНМ: 0300000035 [11:52:54]line РНМ: 0000000000092720 [11:52:54]line Версия ККМ: 001 [11:52:54]line ФМ: 0000000000875057 [11:52:54]line ФД: 148792 [11:52:54]line ФПД: 261673434368355 [11:52:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115253&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148792&fm=261673434368355&tin=02508201610067®Number=0000000000092720&sum=29100 [11:52:54]written 0, free lines is 4095 [11:52:54]OFD Sender: Processing packet 148792 [packets to send 100, broken 99] [11:52:54]ProducePacketName [11:52:54]name=ofd_packets/00148792 [11:52:54]OFD Sender: To server: pG, [11:52:54]CommunicateWithHost lk.salyk.kg:30040 [11:52:54]ConnectInit lk.salyk.kg [11:52:54]Connected sock=10 [11:52:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 0D 48 04 01 DB 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0C 00 00 00 00 07 04 06 00 AC 71 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 15 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 38 45 02 00 35 04 06 00 ED FD 98 1A 49 63 78 8E 97 D0 A4 B0 3C 0C [11:52:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 0F 26 47 00 FC EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 38 45 02 00 F4 03 04 00 39 A7 5E 66 B6 04 01 00 00 31 9F F4 91 D5 FE 34 C0 [11:52:54]CommunicateWithHost err = 0 [11:52:54]CheckOFDResponse [11:52:54]1017 (14) - 77093643461234 [11:52:54]1041 (16) - 0000000000875057 [11:52:54]1040 (4) - 148792 [11:52:54]1012 (4) - 04.06.2024 05:33 [11:52:54]1206 (1) - 0 [11:52:54]OFD Sender: Remove packet 148792 [11:52:54]ProducePacketName [11:52:54]name=ofd_packets/00148792 [11:52:54]NVStorageDeleteData [11:52:54]Write to MH i2c: 01 00 00 42 14 56 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: 01 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: 01 07 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: 01 07 00 42 14 00 00 00 00 00 74 0C DD [11:52:54]RasterBufferAndPrint [11:52:54]line [11:52:54]line [11:52:54]line [11:52:54]line [11:52:54]line [11:52:54]written 0, free lines is 3193 [11:52:54]MH_Cut [11:52:54]Write to MH i2c: D1 01 00 49 14 01 2F [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: D1 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: D1 01 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: D1 01 00 49 14 00 2E [11:52:54]Write to MH i2c: 01 00 00 4A 14 5E [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:55]OFD Sender: No OFD packet to send [11:52:55]*** Cut start [11:52:55]*** Partial cut [11:52:55]*** CUTSNS_PIN = 1 [11:52:55]*** CUTSNS_PIN = 0 [11:52:56]*** Brake cut motor [11:52:56]Read from MH i2c: 01 [11:52:56]MH_I2C_Read... [11:52:56]*** Stop cut motor [11:52:56]*** Cut end [11:52:56]Read from MH i2c: 01 07 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: 01 07 00 4A 14 00 00 00 00 00 FF 0F 73 [11:52:56]process_action close_receipt done [11:52:56]requested_data is exist [11:52:56]produce_requested_data [11:52:56]requested_item fm.sn is exist - process it [11:52:56]wFMCommunicate request_size=4 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 11 00 00 [11:52:56]Write to MH i2c: E2 08 00 4B 14 80 11 00 00 00 00 00 00 D9 [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 17 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 17 00 4B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2C [11:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:52:56]wFMCommunicate OK [11:52:56]requested_item fd.num is exist - process it [11:52:56]SAM_PROTO_GetFieldsCounters [11:52:56]wFMCommunicate request_size=4 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 13 00 00 [11:52:56]Write to MH i2c: E2 08 00 4C 14 80 13 00 00 00 00 00 00 DC [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 62 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 62 00 4C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 38 45 02 00 0E 04 04 00 70 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 71 [11:52:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 38 45 02 00 0E 04 04 00 70 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 [11:52:56]wFMCommunicate OK [11:52:56]SAM_PROTO_GetFieldsCounters done [11:52:56]requested_item shift.num is exist - process it [11:52:56]requested_item shift.opened is exist - process it [11:52:56]req_shift_opened [11:52:56]FM_GetShiftState [11:52:56]SAM_PROTO_GetShiftState [11:52:56]wFMCommunicate request_size=4 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 13 01 00 [11:52:56]Write to MH i2c: E2 08 00 4D 14 80 13 01 00 00 00 00 00 DE [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 0E 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 0E 00 4D 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A1 [11:52:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:52:56]wFMCommunicate OK [11:52:56]SAM_PROTO_GetShiftState done [11:52:56]FM_GetShiftState done [11:52:56]req_shift_opened done [11:52:56]requested_item shift.open_date is exist - process it [11:52:56]req_shift_open_date [11:52:56]req_shift_open_date done [11:52:56]produce_requested_data done [11:52:56]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148792,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:52:56]process_action_free close_receipt [11:52:56]json_value_free [11:52:56]json_value_free done [11:52:56]process_json_proto returns [11:52:56]Send response to host [11:52:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148792,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:52:56]free response buf [11:52:56]execute_script done [11:52:56]execute_script returns [11:52:56]free content buf [11:52:56]Sock 9.Close socket [11:52:56]Sock 9.Thread stoped [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:36]accept exits with 7 [11:54:36]New connection [11:54:36]New thread 3067235684 created [11:54:36]Thread 3067379044 joined [11:54:36]Waiting for new connection... [11:54:36] Sock 7.Parse request [11:54:36]Sock 7.Check first char [11:54:36]Sock 7.First char is OK [11:54:36]request: POST /json_proto HTTP/1.0 [11:54:36]Method: POST [11:54:36]URL: /json_proto [11:54:36]Method is POST - this is cgi request [11:54:36]url: /json_proto [11:54:36]query_string will be loaded in cgi processing [11:54:36]execute_cgi json_proto POST (null) [11:54:36]execute_cgi path=json_proto method=POST [11:54:36]POST find Content-Length [11:54:36]Host: 172.17.38.4:8080 [11:54:36]Content-Length: 679 [11:54:36]Content-Type: application/json [11:54:36] [11:54:36]POST finish read [11:54:36]Found Content-Length = 679 [11:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:54:36]execute_script... [11: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)979721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:54:36]POST & json_proto [11:54:36]process_json_proto [11:54:36]json parsed OK: [11:54:36]protocol is kg_v1.0 [11:54:36]action value=close_receipt [11:54:36]process_action close_receipt [11:54:36]cmd_close_receipt [11:54:36]MH_GetDate [11:54:36]Write to MH i2c: F0 00 00 4E 14 51 [11:54:36]Write i2c OK [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: F0 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: F0 09 00 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: F0 09 00 4E 14 00 7C 00 5F 66 CC 51 87 64 A3 [11:54:36]GetLastDocTimeStamp 1717501973 [11:54:36]current date 1717502076 [11:54:36]FM_GetShiftState [11:54:36]SAM_PROTO_GetShiftState [11:54:36]wFMCommunicate request_size=4 [11:54:36]MH_SAM_APDU [11:54:36]CAPDU: 80 13 01 00 [11:54:36]Write to MH i2c: E2 08 00 4F 14 80 13 01 00 00 00 00 00 E0 [11:54:36]Write i2c OK [11:54:36]MH_I2C_Read... [11:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:36]Read from MH i2c: E2 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: E2 0E 00 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: E2 0E 00 4F 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A3 [11:54:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:54:36]wFMCommunicate OK [11:54:36]SAM_PROTO_GetShiftState done [11:54:36]FM_GetShiftState done [11:54:36]opened in 1717460629 [11:54:36]opened+sec_in_day 1717547029 [11:54:36]quantity*price = 100018 [11:54:36]sum+1 = 100020 [11:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 132 04.06.2024 11:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148793 ФПД: 203409164279218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115436&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148793&fm=203409164279218&tin=02508201610067®Number=0000000000092720&sum=100000 [11:54:37]StoreToDocumentArchive [11:54:37]shift 368 fd 148793 [11:54:37]save to /storage/0368/doc_00148793 [11:54:37]save last doc name /storage/0368/doc_00148793 to /storage/kkm_last_doc_name [11:54:37]save OK [11:54:37]Clear old archive folders... [11:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:54:37]tlvbuf is 00FC08F0 [11:54:37]SAM_PROTO_ClearQueue [11:54:37]wFMCommunicate request_size=4 [11:54:37]MH_SAM_APDU [11:54:37]CAPDU: 80 09 00 00 [11:54:37]Write to MH i2c: E2 08 00 5C 14 80 09 00 00 00 00 00 00 E2 [11:54:37]Write i2c OK [11:54:37]MH_I2C_Read... [11:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:37]Read from MH i2c: E2 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 03 00 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 03 00 5C 14 00 90 00 E4 [11:54:37]RAPDU: 90 00 [11:54:37]wFMCommunicate OK [11:54:37]SAM_PROTO_ClearQueue done [11:54:37]KKMCreateOFDPacket [11:54:37]OFDProtocolAddRootSTLVToBuf [11:54:37]FM_MakeSignedData [11:54:37]FM_MakeSignedData [11:54:37]SAM_PROTO_SignData [11:54:37]wFMCommunicate request_size=4 [11:54:37]MH_SAM_APDU [11:54:37]CAPDU: 80 0D 01 02 [11:54:37]Write to MH i2c: E2 08 00 5D 14 80 0D 01 02 00 00 00 00 EA [11:54:37]Write i2c OK [11:54:37]MH_I2C_Read... [11:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:37]Read from MH i2c: E2 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 03 00 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 03 00 5D 14 00 90 00 E5 [11:54:37]RAPDU: 90 00 [11:54:37]wFMCommunicate OK [11:54:37]wFMCommunicate request_size=255 [11:54:37]MH_SAM_APDU [11:54:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 7C 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 39 45 02 00 35 04 06 00 B8 FF E2 FB [11:54:37]Write to MH i2c: E2 02 01 5E 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 7C 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 39 45 02 00 35 04 06 00 B8 FF E2 FB 00 00 95 [11:54:37]Write i2c OK [11:54:37]MH_I2C_Read... [11:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:37]Read from MH i2c: E2 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 03 00 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 03 00 5E 14 00 90 00 E6 [11:54:37]RAPDU: 90 00 [11:54:37]wFMCommunicate OK [11:54:37]wFMCommunicate request_size=7 [11:54:37]MH_SAM_APDU [11:54:37]CAPDU: 80 0D 02 02 02 1D B2 [11:54:37]Write to MH i2c: E2 0A 00 5F 14 80 0D 02 02 02 00 1D B2 00 00 C0 [11:54:37]Write i2c OK [11:54:37]MH_I2C_Read... [11:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:37]Read from MH i2c: E2 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 03 00 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 03 00 5F 14 00 90 00 E7 [11:54:37]RAPDU: 90 00 [11:54:37]wFMCommunicate OK [11:54:37]wFMCommunicate request_size=4 [11:54:37]MH_SAM_APDU [11:54:37]CAPDU: 80 0D 03 02 [11:54:37]Write to MH i2c: E2 08 00 60 14 80 0D 03 02 00 00 00 00 EF [11:54:37]Write i2c OK [11:54:37]MH_I2C_Read... [11:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:37]Read from MH i2c: E2 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 0B 00 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 0B 00 60 14 00 D3 DB E3 78 08 26 0D 16 90 00 4A [11:54:37]RAPDU: D3 DB E3 78 08 26 0D 16 90 00 [11:54:37]wFMCommunicate OK [11:54:37]SAM_PROTO_SignData done [11:54:37]FM_MakeSignedData done [11:54:37]CreateOFDProtocolMessage [11:54:37]wFMCommunicate request_size=4 [11:54:37]MH_SAM_APDU [11:54:37]CAPDU: 80 11 00 00 [11:54:37]Write to MH i2c: E2 08 00 61 14 80 11 00 00 00 00 00 00 EF [11:54:37]Write i2c OK [11:54:37]MH_I2C_Read... [11:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:37]Read from MH i2c: E2 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 17 00 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: E2 17 00 61 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 42 [11:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:54:37]wFMCommunicate OK [11:54:37]CreateOFDProtocolMessage done [11:54:37]OFDSenderStorePacket 148793 [11:54:37]StoreOFDPacket docnum=148793 [11:54:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 13 FF 04 01 91 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 7C 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 39 45 02 00 35 04 06 00 B8 FF E2 FB 1D B2 D3 DB E3 78 08 26 0D 16 [11:54:37]CheckFolder [11:54:37]dirname=/storage/ofd_packets [11:54:37]CheckFolder done [11:54:37]ProducePacketName [11:54:37]name=ofd_packets/00148793 [11:54:37]NVStorageSaveData ofd_packets/00148793 [11:54:37]File name is /storage/ofd_packets/00148793 [11:54:37]Write 298 bytes [11:54:37]NVStorageSaveData done [11:54:37]OFDSenderStorePacket done [11:54:37]KKMCreateOFDPacket done [11:54:37]NVStorageSaveData kkm_last_timestamp [11:54:37]File name is /storage/kkm_last_timestamp [11:54:37]Write 4 bytes [11:54:37]NVStorageSaveData done [11:54:37]ExternCall_PrintAddStr [11:54:37]wPrintStart [11:54:37]Write to MH i2c: 01 00 00 62 14 76 [11:54:37]Write i2c OK [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: 01 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: 01 07 00 [11:54:37]MH_I2C_Read... [11:54:37]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 FF 0F 8B [11:54:37]RasterBufferAndPrint [11:54:37]line Счет N : (1)979721 [11:54:37]line ИНН: 02508201610067 [11:54:37]line Контрольно-Кассовый Чек [11:54:37]line ПРОДАЖА [11:54:37]line ТРК (МРК, ГНК) : 11 [11:54:37]line Товар: 2710194210 [11:54:37]line ДТ-К-5 [11:54:37]line 13.720 * 72.90 [11:54:37]line = 1000.19 [11:54:37]line НДС 12% НСП 1% [11:54:37]line > о реализуемом товаре [11:54:37]line ОКРУГЛЕНИЕ: -0.19 [11:54:37]line ИТОГО: 1000.00 [11:54:37]line Внесено: 1000.00 [11:54:37]line СДАЧА: 0.00 [11:54:37]line НСП 1% : 8.85 [11:54:37]line НДС 12% : 106.21 [11:54:37]line Наличными: 1000.00 [11:54:37]line Безнал.: 0.00 [11:54:37]line Место: АЗС № 68 "Партнер Нефть" [11:54:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:54:37]line СНО: Общий режим [11:54:37]line Чек 132 04.06.2024 11:54 [11:54:37]line Смена: 368 ФФД: 1.0 [11:54:37]line ЗНМ: 0300000035 [11:54:37]line РНМ: 0000000000092720 [11:54:37]line Версия ККМ: 001 [11:54:37]line ФМ: 0000000000875057 [11:54:37]line ФД: 148793 [11:54:37]line ФПД: 203409164279218 [11:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115436&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148793&fm=203409164279218&tin=02508201610067®Number=0000000000092720&sum=100000 [11:54:38]OFD Sender: Processing packet 148793 [packets to send 100, broken 99] [11:54:38]ProducePacketName [11:54:38]name=ofd_packets/00148793 [11:54:38]OFD Sender: To server: pG, [11:54:38]CommunicateWithHost lk.salyk.kg:30040 [11:54:38]ConnectInit lk.salyk.kg [11:54:38]written 0, free lines is 4095 [11:54:38]Connected sock=10 [11:54:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 13 FF 04 01 91 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 7C 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 39 45 02 00 35 04 06 00 B8 FF E2 FB 1D B2 D3 DB E3 78 08 26 0D 16 [11:54:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C7 BE 47 00 8F 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 38 37 35 30 35 37 10 04 04 00 39 45 02 00 F4 03 04 00 A0 A7 5E 66 B6 04 01 00 00 82 EC 9B 8A 09 EF 75 D7 [11:54:38]CommunicateWithHost err = 0 [11:54:38]CheckOFDResponse [11:54:38]1017 (14) - 77093643461234 [11:54:38]1041 (16) - 0000000000875057 [11:54:38]1040 (4) - 148793 [11:54:38]1012 (4) - 04.06.2024 05:35 [11:54:38]1206 (1) - 0 [11:54:38]OFD Sender: Remove packet 148793 [11:54:38]ProducePacketName [11:54:38]name=ofd_packets/00148793 [11:54:38]NVStorageDeleteData [11:54:38]Write to MH i2c: 01 00 00 8D 14 A1 [11:54:38]Write i2c OK [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: 01 [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: 01 07 00 [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: 01 07 00 8D 14 00 00 00 00 00 71 0C 25 [11:54:38]RasterBufferAndPrint [11:54:38]line [11:54:38]line [11:54:38]line [11:54:38]line [11:54:38]line [11:54:38]written 0, free lines is 3187 [11:54:38]MH_Cut [11:54:38]Write to MH i2c: D1 01 00 94 14 01 7A [11:54:38]Write i2c OK [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: D1 [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: D1 01 00 [11:54:38]MH_I2C_Read... [11:54:38]Read from MH i2c: D1 01 00 94 14 00 79 [11:54:38]Write to MH i2c: 01 00 00 95 14 A9 [11:54:38]Write i2c OK [11:54:38]MH_I2C_Read... [11:54:38]OFD Sender: No OFD packet to send [11:54:39]*** Cut start [11:54:39]*** Partial cut [11:54:39]*** CUTSNS_PIN = 1 [11:54:39]*** CUTSNS_PIN = 0 [11:54:40]*** Brake cut motor [11:54:40]Read from MH i2c: 01 [11:54:40]MH_I2C_Read... [11:54:40]*** Stop cut motor [11:54:40]*** Cut end [11:54:40]Read from MH i2c: 01 07 00 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: 01 07 00 95 14 00 00 00 00 00 FF 0F BE [11:54:40]process_action close_receipt done [11:54:40]requested_data is exist [11:54:40]produce_requested_data [11:54:40]requested_item fm.sn is exist - process it [11:54:40]wFMCommunicate request_size=4 [11:54:40]MH_SAM_APDU [11:54:40]CAPDU: 80 11 00 00 [11:54:40]Write to MH i2c: E2 08 00 96 14 80 11 00 00 00 00 00 00 24 [11:54:40]Write i2c OK [11:54:40]MH_I2C_Read... [11:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:40]Read from MH i2c: E2 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: E2 17 00 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: E2 17 00 96 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 77 [11:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:54:40]wFMCommunicate OK [11:54:40]requested_item fd.num is exist - process it [11:54:40]SAM_PROTO_GetFieldsCounters [11:54:40]wFMCommunicate request_size=4 [11:54:40]MH_SAM_APDU [11:54:40]CAPDU: 80 13 00 00 [11:54:40]Write to MH i2c: E2 08 00 97 14 80 13 00 00 00 00 00 00 27 [11:54:40]Write i2c OK [11:54:40]MH_I2C_Read... [11:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:40]Read from MH i2c: E2 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: E2 62 00 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: E2 62 00 97 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 39 45 02 00 0E 04 04 00 70 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 C0 [11:54:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 39 45 02 00 0E 04 04 00 70 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 [11:54:40]wFMCommunicate OK [11:54:40]SAM_PROTO_GetFieldsCounters done [11:54:40]requested_item shift.num is exist - process it [11:54:40]requested_item shift.opened is exist - process it [11:54:40]req_shift_opened [11:54:40]FM_GetShiftState [11:54:40]SAM_PROTO_GetShiftState [11:54:40]wFMCommunicate request_size=4 [11:54:40]MH_SAM_APDU [11:54:40]CAPDU: 80 13 01 00 [11:54:40]Write to MH i2c: E2 08 00 98 14 80 13 01 00 00 00 00 00 29 [11:54:40]Write i2c OK [11:54:40]MH_I2C_Read... [11:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:40]Read from MH i2c: E2 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: E2 0E 00 [11:54:40]MH_I2C_Read... [11:54:40]Read from MH i2c: E2 0E 00 98 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EC [11:54:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:54:40]wFMCommunicate OK [11:54:40]SAM_PROTO_GetShiftState done [11:54:40]FM_GetShiftState done [11:54:40]req_shift_opened done [11:54:40]requested_item shift.open_date is exist - process it [11:54:40]req_shift_open_date [11:54:40]req_shift_open_date done [11:54:40]produce_requested_data done [11:54:40]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148793,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:54:40]process_action_free close_receipt [11:54:40]json_value_free [11:54:40]json_value_free done [11:54:40]process_json_proto returns [11:54:40]Send response to host [11:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148793,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:54:40]free response buf [11:54:40]execute_script done [11:54:40]execute_script returns [11:54:40]free content buf [11:54:40]Sock 7.Close socket [11:54:40]Sock 7.Thread stoped [11:54:41]accept exits with 9 [11:54:41]New connection [11:54:41]New thread 3067379044 created [11:54:41]Thread 3067235684 joined [11:54:41]Waiting for new connection... [11:54:41] Sock 9.Parse request [11:54:41]Sock 9.Check first char [11:54:41]Sock 9.First char is OK [11:54:41]request: POST /json_proto HTTP/1.0 [11:54:41]Method: POST [11:54:41]URL: /json_proto [11:54:41]Method is POST - this is cgi request [11:54:41]url: /json_proto [11:54:41]query_string will be loaded in cgi processing [11:54:41]execute_cgi json_proto POST (null) [11:54:41]execute_cgi path=json_proto method=POST [11:54:41]POST find Content-Length [11:54:41]Host: 172.17.38.4:8080 [11:54:41]Content-Length: 677 [11:54:41]Content-Type: application/json [11:54:41] [11:54:41]POST finish read [11:54:41]Found Content-Length = 677 [11:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:41]execute_script... [11:54:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:41]POST & json_proto [11:54:41]process_json_proto [11:54:41]json parsed OK: [11:54:41]protocol is kg_v1.0 [11:54:41]action value=close_receipt [11:54:41]process_action close_receipt [11:54:41]cmd_close_receipt [11:54:41]MH_GetDate [11:54:41]Write to MH i2c: F0 00 00 99 14 9C [11:54:41]Write i2c OK [11:54:41]MH_I2C_Read... [11:54:41]Read from MH i2c: F0 [11:54:41]MH_I2C_Read... [11:54:41]Read from MH i2c: F0 09 00 [11:54:41]MH_I2C_Read... [11:54:41]Read from MH i2c: F0 09 00 99 14 00 81 00 5F 66 CC 51 87 64 F3 [11:54:41]GetLastDocTimeStamp 1717502076 [11:54:41]current date 1717502081 [11:54:41]FM_GetShiftState [11:54:41]SAM_PROTO_GetShiftState [11:54:41]wFMCommunicate request_size=4 [11:54:41]MH_SAM_APDU [11:54:41]CAPDU: 80 13 01 00 [11:54:41]Write to MH i2c: E2 08 00 9A 14 80 13 01 00 00 00 00 00 2B [11:54:41]Write i2c OK [11:54:41]MH_I2C_Read... [11:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:41]Read from MH i2c: E2 [11:54:41]MH_I2C_Read... [11:54:41]Read from MH i2c: E2 0E 00 [11:54:41]MH_I2C_Read... [11:54:41]Read from MH i2c: E2 0E 00 9A 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EE [11:54:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:54:41]wFMCommunicate OK [11:54:41]SAM_PROTO_GetShiftState done [11:54:41]FM_GetShiftState done [11:54:41]opened in 1717460629 [11:54:41]opened+sec_in_day 1717547029 [11:54:41]quantity*price = 50041 [11:54:41]sum+1 = 50042 [11:54:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 133 04.06.2024 11:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148794 ФПД: 73381360213404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115441&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148794&fm=73381360213404&tin=02508201610067®Number=0000000000092720&sum=50000 [11:54:42]StoreToDocumentArchive [11:54:42]shift 368 fd 148794 [11:54:42]save to /storage/0368/doc_00148794 [11:54:42]save last doc name /storage/0368/doc_00148794 to /storage/kkm_last_doc_name [11:54:42]save OK [11:54:42]Clear old archive folders... [11:54:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:42]tlvbuf is 00F3AE80 [11:54:42]SAM_PROTO_ClearQueue [11:54:42]wFMCommunicate request_size=4 [11:54:42]MH_SAM_APDU [11:54:42]CAPDU: 80 09 00 00 [11:54:42]Write to MH i2c: E2 08 00 A7 14 80 09 00 00 00 00 00 00 2D [11:54:42]Write i2c OK [11:54:42]MH_I2C_Read... [11:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:42]Read from MH i2c: E2 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 03 00 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 03 00 A7 14 00 90 00 2F [11:54:42]RAPDU: 90 00 [11:54:42]wFMCommunicate OK [11:54:42]SAM_PROTO_ClearQueue done [11:54:42]KKMCreateOFDPacket [11:54:42]OFDProtocolAddRootSTLVToBuf [11:54:42]FM_MakeSignedData [11:54:42]FM_MakeSignedData [11:54:42]SAM_PROTO_SignData [11:54:42]wFMCommunicate request_size=4 [11:54:42]MH_SAM_APDU [11:54:42]CAPDU: 80 0D 01 02 [11:54:42]Write to MH i2c: E2 08 00 A8 14 80 0D 01 02 00 00 00 00 35 [11:54:42]Write i2c OK [11:54:42]MH_I2C_Read... [11:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:42]Read from MH i2c: E2 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 03 00 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 03 00 A8 14 00 90 00 30 [11:54:42]RAPDU: 90 00 [11:54:42]wFMCommunicate OK [11:54:42]wFMCommunicate request_size=255 [11:54:42]MH_SAM_APDU [11:54:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 81 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3A 45 02 00 35 04 06 00 42 [11:54:42]Write to MH i2c: E2 02 01 A9 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 81 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3A 45 02 00 35 04 06 00 42 00 00 BE [11:54:42]Write i2c OK [11:54:42]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 A9 14 00 90 00 31 [11:54:43]RAPDU: 90 00 [11:54:43]wFMCommunicate OK [11:54:43]wFMCommunicate request_size=10 [11:54:43]MH_SAM_APDU [11:54:43]CAPDU: 80 0D 02 02 05 BD 6D E8 9D 9C [11:54:43]Write to MH i2c: E2 0D 00 AA 14 80 0D 02 02 05 00 BD 6D E8 9D 9C 00 00 8D [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 AA 14 00 90 00 32 [11:54:43]RAPDU: 90 00 [11:54:43]wFMCommunicate OK [11:54:43]wFMCommunicate request_size=4 [11:54:43]MH_SAM_APDU [11:54:43]CAPDU: 80 0D 03 02 [11:54:43]Write to MH i2c: E2 08 00 AB 14 80 0D 03 02 00 00 00 00 3A [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 0B 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 0B 00 AB 14 00 B2 62 E3 C5 7F 73 4B 44 90 00 78 [11:54:43]RAPDU: B2 62 E3 C5 7F 73 4B 44 90 00 [11:54:43]wFMCommunicate OK [11:54:43]SAM_PROTO_SignData done [11:54:43]FM_MakeSignedData done [11:54:43]CreateOFDProtocolMessage [11:54:43]wFMCommunicate request_size=4 [11:54:43]MH_SAM_APDU [11:54:43]CAPDU: 80 11 00 00 [11:54:43]Write to MH i2c: E2 08 00 AC 14 80 11 00 00 00 00 00 00 3A [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 17 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 17 00 AC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8D [11:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:54:43]wFMCommunicate OK [11:54:43]CreateOFDProtocolMessage done [11:54:43]OFDSenderStorePacket 148794 [11:54:43]StoreOFDPacket docnum=148794 [11:54:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7E 67 07 01 C8 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 81 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3A 45 02 00 35 04 06 00 42 BD 6D E8 9D 9C B2 62 E3 C5 7F 73 4B 44 [11:54:43]CheckFolder [11:54:43]dirname=/storage/ofd_packets [11:54:43]CheckFolder done [11:54:43]ProducePacketName [11:54:43]name=ofd_packets/00148794 [11:54:43]NVStorageSaveData ofd_packets/00148794 [11:54:43]File name is /storage/ofd_packets/00148794 [11:54:43]Write 301 bytes [11:54:43]NVStorageSaveData done [11:54:43]OFDSenderStorePacket done [11:54:43]KKMCreateOFDPacket done [11:54:43]NVStorageSaveData kkm_last_timestamp [11:54:43]File name is /storage/kkm_last_timestamp [11:54:43]Write 4 bytes [11:54:43]NVStorageSaveData done [11:54:43]ExternCall_PrintAddStr [11:54:43]wPrintStart [11:54:43]Write to MH i2c: 01 00 00 AD 14 C1 [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: 01 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: 01 07 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: 01 07 00 AD 14 00 00 00 00 00 FF 0F D6 [11:54:43]RasterBufferAndPrint [11:54:43]line Счет N : (1)979723 [11:54:43]line ИНН: 02508201610067 [11:54:43]line Контрольно-Кассовый Чек [11:54:43]line ПРОДАЖА [11:54:43]line ТРК (МРК, ГНК) : 41 [11:54:43]line Товар: 2710124130 [11:54:43]line Аи-92-К-5 [11:54:43]line 7.480 * 66.90 [11:54:43]line = 500.41 [11:54:43]line НДС 12% НСП 1% [11:54:43]line > о реализуемом товаре [11:54:43]line ОКРУГЛЕНИЕ: -0.41 [11:54:43]line ИТОГО: 500.00 [11:54:43]line Внесено: 500.00 [11:54:43]line СДАЧА: 0.00 [11:54:43]line НСП 1% : 4.43 [11:54:43]line НДС 12% : 53.14 [11:54:43]line Наличными: 500.00 [11:54:43]line Безнал.: 0.00 [11:54:43]line Место: АЗС № 68 "Партнер Нефть" [11:54:43]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:54:43]line СНО: Общий режим [11:54:43]line Чек 133 04.06.2024 11:54 [11:54:43]line Смена: 368 ФФД: 1.0 [11:54:43]line ЗНМ: 0300000035 [11:54:43]line РНМ: 0000000000092720 [11:54:43]line Версия ККМ: 001 [11:54:43]line ФМ: 0000000000875057 [11:54:43]line ФД: 148794 [11:54:43]line ФПД: 73381360213404 [11:54:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115441&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148794&fm=73381360213404&tin=02508201610067®Number=0000000000092720&sum=50000 [11:54:43]written 0, free lines is 4095 [11:54:43]OFD Sender: Processing packet 148794 [packets to send 100, broken 99] [11:54:43]ProducePacketName [11:54:43]name=ofd_packets/00148794 [11:54:43]OFD Sender: To server: pG, [11:54:43]CommunicateWithHost lk.salyk.kg:30040 [11:54:43]ConnectInit lk.salyk.kg [11:54:43]Connected sock=10 [11:54:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7E 67 07 01 C8 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 81 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3A 45 02 00 35 04 06 00 42 BD 6D E8 9D 9C B2 62 E3 C5 7F 73 4B 44 [11:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 66 0B 47 00 3C 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 38 37 35 30 35 37 10 04 04 00 3A 45 02 00 F4 03 04 00 A6 A7 5E 66 B6 04 01 00 00 B6 BA 4B 7A 2E D3 D9 6A [11:54:43]CommunicateWithHost err = 0 [11:54:43]CheckOFDResponse [11:54:43]1017 (14) - 77093643461234 [11:54:43]1041 (16) - 0000000000875057 [11:54:43]1040 (4) - 148794 [11:54:43]1012 (4) - 04.06.2024 05:35 [11:54:43]1206 (1) - 0 [11:54:43]OFD Sender: Remove packet 148794 [11:54:43]ProducePacketName [11:54:43]name=ofd_packets/00148794 [11:54:43]NVStorageDeleteData [11:54:43]Write to MH i2c: 01 00 00 D8 14 EC [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: 01 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: 01 07 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: 01 07 00 D8 14 00 00 00 00 00 75 0C 74 [11:54:43]RasterBufferAndPrint [11:54:43]line [11:54:43]line [11:54:43]line [11:54:43]line [11:54:43]line [11:54:43]written 0, free lines is 3196 [11:54:43]MH_Cut [11:54:43]Write to MH i2c: D1 01 00 DF 14 01 C5 [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: D1 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: D1 01 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: D1 01 00 DF 14 00 C4 [11:54:43]Write to MH i2c: 01 00 00 E0 14 F4 [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:44]OFD Sender: No OFD packet to send [11:54:44]*** Cut start [11:54:44]*** Partial cut [11:54:44]*** CUTSNS_PIN = 1 [11:54:44]*** CUTSNS_PIN = 0 [11:54:45]*** Brake cut motor [11:54:45]Read from MH i2c: 01 [11:54:45]MH_I2C_Read... [11:54:45]*** Stop cut motor [11:54:45]*** Cut end [11:54:45]Read from MH i2c: 01 07 00 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: 01 07 00 E0 14 00 00 00 00 00 FF 0F 09 [11:54:45]process_action close_receipt done [11:54:45]requested_data is exist [11:54:45]produce_requested_data [11:54:45]requested_item fm.sn is exist - process it [11:54:45]wFMCommunicate request_size=4 [11:54:45]MH_SAM_APDU [11:54:45]CAPDU: 80 11 00 00 [11:54:45]Write to MH i2c: E2 08 00 E1 14 80 11 00 00 00 00 00 00 6F [11:54:45]Write i2c OK [11:54:45]MH_I2C_Read... [11:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:45]Read from MH i2c: E2 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: E2 17 00 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: E2 17 00 E1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C2 [11:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:54:45]wFMCommunicate OK [11:54:45]requested_item fd.num is exist - process it [11:54:45]SAM_PROTO_GetFieldsCounters [11:54:45]wFMCommunicate request_size=4 [11:54:45]MH_SAM_APDU [11:54:45]CAPDU: 80 13 00 00 [11:54:45]Write to MH i2c: E2 08 00 E2 14 80 13 00 00 00 00 00 00 72 [11:54:45]Write i2c OK [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: E2 [11:54:45]MH_I2C_Read... [11:54:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:45]Read from MH i2c: E2 62 00 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: E2 62 00 E2 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3A 45 02 00 0E 04 04 00 70 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 0F [11:54:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3A 45 02 00 0E 04 04 00 70 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 [11:54:45]wFMCommunicate OK [11:54:45]SAM_PROTO_GetFieldsCounters done [11:54:45]requested_item shift.num is exist - process it [11:54:45]requested_item shift.opened is exist - process it [11:54:45]req_shift_opened [11:54:45]FM_GetShiftState [11:54:45]SAM_PROTO_GetShiftState [11:54:45]wFMCommunicate request_size=4 [11:54:45]MH_SAM_APDU [11:54:45]CAPDU: 80 13 01 00 [11:54:45]Write to MH i2c: E2 08 00 E3 14 80 13 01 00 00 00 00 00 74 [11:54:45]Write i2c OK [11:54:45]MH_I2C_Read... [11:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:45]Read from MH i2c: E2 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: E2 0E 00 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: E2 0E 00 E3 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 37 [11:54:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:54:45]wFMCommunicate OK [11:54:45]SAM_PROTO_GetShiftState done [11:54:45]FM_GetShiftState done [11:54:45]req_shift_opened done [11:54:45]requested_item shift.open_date is exist - process it [11:54:45]req_shift_open_date [11:54:45]req_shift_open_date done [11:54:45]produce_requested_data done [11:54:45]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148794,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:54:45]process_action_free close_receipt [11:54:45]json_value_free [11:54:45]json_value_free done [11:54:45]process_json_proto returns [11:54:45]Send response to host [11:54:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148794,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:54:45]free response buf [11:54:45]execute_script done [11:54:45]execute_script returns [11:54:45]free content buf [11:54:45]Sock 9.Close socket [11:54:45]Sock 9.Thread stoped [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:54]accept exits with 7 [11:54:54]New connection [11:54:54]New thread 3067235684 created [11:54:54]Thread 3067379044 joined [11:54:54]Waiting for new connection... [11:54:54] Sock 7.Parse request [11:54:54]Sock 7.Check first char [11:54:54]Sock 7.First char is OK [11:54:54]request: POST /json_proto HTTP/1.0 [11:54:54]Method: POST [11:54:54]URL: /json_proto [11:54:54]Method is POST - this is cgi request [11:54:54]url: /json_proto [11:54:54]query_string will be loaded in cgi processing [11:54:54]execute_cgi json_proto POST (null) [11:54:54]execute_cgi path=json_proto method=POST [11:54:54]POST find Content-Length [11:54:54]Host: 172.17.38.4:8080 [11:54:54]Content-Length: 679 [11:54:54]Content-Type: application/json [11:54:54] [11:54:54]POST finish read [11:54:54]Found Content-Length = 679 [11:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:54:54]execute_script... [11:54: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)979722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [11:54:54]POST & json_proto [11:54:54]process_json_proto [11:54:54]json parsed OK: [11:54:54]protocol is kg_v1.0 [11:54:54]action value=close_receipt [11:54:54]process_action close_receipt [11:54:54]cmd_close_receipt [11:54:54]MH_GetDate [11:54:54]Write to MH i2c: F0 00 00 E4 14 E7 [11:54:54]Write i2c OK [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: F0 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: F0 09 00 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: F0 09 00 E4 14 00 8F 00 5F 66 CC 51 87 64 4C [11:54:54]GetLastDocTimeStamp 1717502081 [11:54:54]current date 1717502095 [11:54:54]FM_GetShiftState [11:54:54]SAM_PROTO_GetShiftState [11:54:54]wFMCommunicate request_size=4 [11:54:54]MH_SAM_APDU [11:54:54]CAPDU: 80 13 01 00 [11:54:54]Write to MH i2c: E2 08 00 E5 14 80 13 01 00 00 00 00 00 76 [11:54:54]Write i2c OK [11:54:54]MH_I2C_Read... [11:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:54]Read from MH i2c: E2 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 0E 00 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 0E 00 E5 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 39 [11:54:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:54:54]wFMCommunicate OK [11:54:54]SAM_PROTO_GetShiftState done [11:54:54]FM_GetShiftState done [11:54:54]opened in 1717460629 [11:54:54]opened+sec_in_day 1717547029 [11:54:54]quantity*price = 100018 [11:54:54]sum+1 = 100020 [11:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 134 04.06.2024 11:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148795 ФПД: 45254425981245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115455&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148795&fm=45254425981245&tin=02508201610067®Number=0000000000092720&sum=100000 [11:54:55]StoreToDocumentArchive [11:54:55]shift 368 fd 148795 [11:54:55]save to /storage/0368/doc_00148795 [11:54:55]save last doc name /storage/0368/doc_00148795 to /storage/kkm_last_doc_name [11:54:55]save OK [11:54:55]Clear old archive folders... [11:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:54:55]tlvbuf is 00FD9A50 [11:54:55]SAM_PROTO_ClearQueue [11:54:55]wFMCommunicate request_size=4 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 09 00 00 [11:54:55]Write to MH i2c: E2 08 00 F2 14 80 09 00 00 00 00 00 00 78 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 F2 14 00 90 00 7A [11:54:55]RAPDU: 90 00 [11:54:55]wFMCommunicate OK [11:54:55]SAM_PROTO_ClearQueue done [11:54:55]KKMCreateOFDPacket [11:54:55]OFDProtocolAddRootSTLVToBuf [11:54:55]FM_MakeSignedData [11:54:55]FM_MakeSignedData [11:54:55]SAM_PROTO_SignData [11:54:55]wFMCommunicate request_size=4 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 0D 01 02 [11:54:55]Write to MH i2c: E2 08 00 F3 14 80 0D 01 02 00 00 00 00 80 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 F3 14 00 90 00 7B [11:54:55]RAPDU: 90 00 [11:54:55]wFMCommunicate OK [11:54:55]wFMCommunicate request_size=255 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 8F 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3B 45 02 00 35 04 06 00 29 28 9D FC [11:54:55]Write to MH i2c: E2 02 01 F4 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 8F 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3B 45 02 00 35 04 06 00 29 28 9D FC 00 00 98 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 F4 14 00 90 00 7C [11:54:55]RAPDU: 90 00 [11:54:55]wFMCommunicate OK [11:54:55]wFMCommunicate request_size=7 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 0D 02 02 02 31 3D [11:54:55]Write to MH i2c: E2 0A 00 F5 14 80 0D 02 02 02 00 31 3D 00 00 F5 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 F5 14 00 90 00 7D [11:54:55]RAPDU: 90 00 [11:54:55]wFMCommunicate OK [11:54:55]wFMCommunicate request_size=4 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 0D 03 02 [11:54:55]Write to MH i2c: E2 08 00 F6 14 80 0D 03 02 00 00 00 00 85 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 0B 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 0B 00 F6 14 00 75 BB 64 83 6E 97 FD BB 90 00 5A [11:54:55]RAPDU: 75 BB 64 83 6E 97 FD BB 90 00 [11:54:55]wFMCommunicate OK [11:54:55]SAM_PROTO_SignData done [11:54:55]FM_MakeSignedData done [11:54:55]CreateOFDProtocolMessage [11:54:55]wFMCommunicate request_size=4 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 11 00 00 [11:54:55]Write to MH i2c: E2 08 00 F7 14 80 11 00 00 00 00 00 00 85 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 17 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 17 00 F7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D8 [11:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:54:55]wFMCommunicate OK [11:54:55]CreateOFDProtocolMessage done [11:54:55]OFDSenderStorePacket 148795 [11:54:55]StoreOFDPacket docnum=148795 [11:54:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 EE B3 04 01 74 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 8F 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3B 45 02 00 35 04 06 00 29 28 9D FC 31 3D 75 BB 64 83 6E 97 FD BB [11:54:55]CheckFolder [11:54:55]dirname=/storage/ofd_packets [11:54:55]CheckFolder done [11:54:55]ProducePacketName [11:54:55]name=ofd_packets/00148795 [11:54:55]NVStorageSaveData ofd_packets/00148795 [11:54:55]File name is /storage/ofd_packets/00148795 [11:54:55]Write 298 bytes [11:54:55]NVStorageSaveData done [11:54:55]OFDSenderStorePacket done [11:54:55]KKMCreateOFDPacket done [11:54:55]NVStorageSaveData kkm_last_timestamp [11:54:55]File name is /storage/kkm_last_timestamp [11:54:55]Write 4 bytes [11:54:55]NVStorageSaveData done [11:54:55]ExternCall_PrintAddStr [11:54:55]wPrintStart [11:54:55]Write to MH i2c: 01 00 00 F8 14 0C [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 F8 14 00 00 00 00 00 FF 0F 21 [11:54:55]RasterBufferAndPrint [11:54:55]line Счет N : (1)979722 [11:54:55]line ИНН: 02508201610067 [11:54:55]line Контрольно-Кассовый Чек [11:54:55]line ПРОДАЖА [11:54:55]line ТРК (МРК, ГНК) : 51 [11:54:55]line Товар: 2710194210 [11:54:55]line ДТ-К-5 [11:54:55]line 13.720 * 72.90 [11:54:55]line = 1000.19 [11:54:55]line НДС 12% НСП 1% [11:54:55]line > о реализуемом товаре [11:54:55]line ОКРУГЛЕНИЕ: -0.19 [11:54:55]line ИТОГО: 1000.00 [11:54:55]line Внесено: 1000.00 [11:54:55]line СДАЧА: 0.00 [11:54:55]line НСП 1% : 8.85 [11:54:55]line НДС 12% : 106.21 [11:54:55]line Наличными: 1000.00 [11:54:55]line Безнал.: 0.00 [11:54:55]line Место: АЗС № 68 "Партнер Нефть" [11:54:55]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:54:55]line СНО: Общий режим [11:54:56]line Чек 134 04.06.2024 11:54 [11:54:56]line Смена: 368 ФФД: 1.0 [11:54:56]line ЗНМ: 0300000035 [11:54:56]line РНМ: 0000000000092720 [11:54:56]line Версия ККМ: 001 [11:54:56]line ФМ: 0000000000875057 [11:54:56]line ФД: 148795 [11:54:56]line ФПД: 45254425981245 [11:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115455&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148795&fm=45254425981245&tin=02508201610067®Number=0000000000092720&sum=100000 [11:54:56]OFD Sender: Processing packet 148795 [packets to send 100, broken 99] [11:54:56]ProducePacketName [11:54:56]name=ofd_packets/00148795 [11:54:56]OFD Sender: To server: pG, [11:54:56]CommunicateWithHost lk.salyk.kg:30040 [11:54:56]ConnectInit lk.salyk.kg [11:54:56]written 0, free lines is 4095 [11:54:56]Connected sock=11 [11:54:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 EE B3 04 01 74 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 8F 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3B 45 02 00 35 04 06 00 29 28 9D FC 31 3D 75 BB 64 83 6E 97 FD BB [11:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 93 C1 47 00 D3 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3B 45 02 00 F4 03 04 00 B3 A7 5E 66 B6 04 01 00 00 A2 74 91 5F 8E B1 56 DB [11:54:56]CommunicateWithHost err = 0 [11:54:56]CheckOFDResponse [11:54:56]1017 (14) - 77093643461234 [11:54:56]1041 (16) - 0000000000875057 [11:54:56]1040 (4) - 148795 [11:54:56]1012 (4) - 04.06.2024 05:35 [11:54:56]1206 (1) - 0 [11:54:56]OFD Sender: Remove packet 148795 [11:54:56]ProducePacketName [11:54:56]name=ofd_packets/00148795 [11:54:56]NVStorageDeleteData [11:54:56]Write to MH i2c: 01 00 00 23 15 38 [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: 01 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: 01 07 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: 01 07 00 23 15 00 00 00 00 00 7E 0C C9 [11:54:56]RasterBufferAndPrint [11:54:56]line [11:54:56]line [11:54:56]line [11:54:56]line [11:54:56]line [11:54:56]written 0, free lines is 3205 [11:54:56]MH_Cut [11:54:56]Write to MH i2c: D1 01 00 2A 15 01 11 [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: D1 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: D1 01 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: D1 01 00 2A 15 00 10 [11:54:56]Write to MH i2c: 01 00 00 2B 15 40 [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:57]OFD Sender: No OFD packet to send [11:54:57]*** Cut start [11:54:57]*** Partial cut [11:54:57]*** CUTSNS_PIN = 1 [11:54:57]*** CUTSNS_PIN = 0 [11:54:58]*** Brake cut motor [11:54:58]Read from MH i2c: 01 [11:54:58]MH_I2C_Read... [11:54:58]*** Stop cut motor [11:54:58]*** Cut end [11:54:58]Read from MH i2c: 01 07 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: 01 07 00 2B 15 00 00 00 00 00 FF 0F 55 [11:54:58]process_action close_receipt done [11:54:58]requested_data is exist [11:54:58]produce_requested_data [11:54:58]requested_item fm.sn is exist - process it [11:54:58]wFMCommunicate request_size=4 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 11 00 00 [11:54:58]Write to MH i2c: E2 08 00 2C 15 80 11 00 00 00 00 00 00 BB [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 17 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 17 00 2C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0E [11:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:54:58]wFMCommunicate OK [11:54:58]requested_item fd.num is exist - process it [11:54:58]SAM_PROTO_GetFieldsCounters [11:54:58]wFMCommunicate request_size=4 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 13 00 00 [11:54:58]Write to MH i2c: E2 08 00 2D 15 80 13 00 00 00 00 00 00 BE [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 62 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 62 00 2D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3B 45 02 00 0E 04 04 00 70 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 5F [11:54:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3B 45 02 00 0E 04 04 00 70 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 [11:54:58]wFMCommunicate OK [11:54:58]SAM_PROTO_GetFieldsCounters done [11:54:58]requested_item shift.num is exist - process it [11:54:58]requested_item shift.opened is exist - process it [11:54:58]req_shift_opened [11:54:58]FM_GetShiftState [11:54:58]SAM_PROTO_GetShiftState [11:54:58]wFMCommunicate request_size=4 [11:54:58]MH_SAM_APDU [11:54:58]CAPDU: 80 13 01 00 [11:54:58]Write to MH i2c: E2 08 00 2E 15 80 13 01 00 00 00 00 00 C0 [11:54:58]Write i2c OK [11:54:58]MH_I2C_Read... [11:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:58]Read from MH i2c: E2 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 0E 00 [11:54:58]MH_I2C_Read... [11:54:58]Read from MH i2c: E2 0E 00 2E 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 83 [11:54:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:54:58]wFMCommunicate OK [11:54:58]SAM_PROTO_GetShiftState done [11:54:58]FM_GetShiftState done [11:54:58]req_shift_opened done [11:54:58]requested_item shift.open_date is exist - process it [11:54:58]req_shift_open_date [11:54:58]req_shift_open_date done [11:54:58]produce_requested_data done [11:54:58]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148795,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:54:58]process_action_free close_receipt [11:54:58]json_value_free [11:54:58]json_value_free done [11:54:58]process_json_proto returns [11:54:58]Send response to host [11:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148795,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:54:58]free response buf [11:54:58]execute_script done [11:54:58]execute_script returns [11:54:58]free content buf [11:54:58]Sock 7.Close socket [11:54:58]Sock 7.Thread stoped [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:06]accept exits with 9 [11:56:06]New connection [11:56:06]New thread 3067379044 created [11:56:06]Thread 3067235684 joined [11:56:06]Waiting for new connection... [11:56:06] Sock 9.Parse request [11:56:06]Sock 9.Check first char [11:56:06]Sock 9.First char is OK [11:56:06]request: POST /json_proto HTTP/1.0 [11:56:06]Method: POST [11:56:06]URL: /json_proto [11:56:06]Method is POST - this is cgi request [11:56:06]url: /json_proto [11:56:06]query_string will be loaded in cgi processing [11:56:06]execute_cgi json_proto POST (null) [11:56:06]execute_cgi path=json_proto method=POST [11:56:06]POST find Content-Length [11:56:06]Host: 172.17.38.4:8080 [11:56:06]Content-Length: 677 [11:56:06]Content-Type: application/json [11:56:06] [11:56:06]POST finish read [11:56:06]Found Content-Length = 677 [11:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:06]execute_script... [11:56:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:06]POST & json_proto [11:56:06]process_json_proto [11:56:06]json parsed OK: [11:56:06]protocol is kg_v1.0 [11:56:06]action value=close_receipt [11:56:06]process_action close_receipt [11:56:06]cmd_close_receipt [11:56:06]MH_GetDate [11:56:06]Write to MH i2c: F0 00 00 2F 15 33 [11:56:06]Write i2c OK [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: F0 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: F0 09 00 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: F0 09 00 2F 15 00 D6 00 5F 66 CC 51 87 64 DF [11:56:06]GetLastDocTimeStamp 1717502095 [11:56:06]current date 1717502166 [11:56:06]FM_GetShiftState [11:56:06]SAM_PROTO_GetShiftState [11:56:06]wFMCommunicate request_size=4 [11:56:06]MH_SAM_APDU [11:56:06]CAPDU: 80 13 01 00 [11:56:06]Write to MH i2c: E2 08 00 30 15 80 13 01 00 00 00 00 00 C2 [11:56:06]Write i2c OK [11:56:06]MH_I2C_Read... [11:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:06]Read from MH i2c: E2 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: E2 0E 00 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: E2 0E 00 30 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 85 [11:56:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:56:06]wFMCommunicate OK [11:56:06]SAM_PROTO_GetShiftState done [11:56:06]FM_GetShiftState done [11:56:06]opened in 1717460629 [11:56:06]opened+sec_in_day 1717547029 [11:56:06]quantity*price = 20003 [11:56:06]sum+1 = 20004 [11:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 135 04.06.2024 11:56 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148796 ФПД: 224883003429314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115606&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148796&fm=224883003429314&tin=02508201610067®Number=0000000000092720&sum=20000 [11:56:07]StoreToDocumentArchive [11:56:07]shift 368 fd 148796 [11:56:07]save to /storage/0368/doc_00148796 [11:56:07]save last doc name /storage/0368/doc_00148796 to /storage/kkm_last_doc_name [11:56:07]save OK [11:56:07]Clear old archive folders... [11:56:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:07]tlvbuf is 00FA0E30 [11:56:07]SAM_PROTO_ClearQueue [11:56:07]wFMCommunicate request_size=4 [11:56:07]MH_SAM_APDU [11:56:07]CAPDU: 80 09 00 00 [11:56:07]Write to MH i2c: E2 08 00 3D 15 80 09 00 00 00 00 00 00 C4 [11:56:07]Write i2c OK [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 [11:56:07]MH_I2C_Read... [11:56:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:07]Read from MH i2c: E2 03 00 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 03 00 3D 15 00 90 00 C6 [11:56:07]RAPDU: 90 00 [11:56:07]wFMCommunicate OK [11:56:07]SAM_PROTO_ClearQueue done [11:56:07]KKMCreateOFDPacket [11:56:07]OFDProtocolAddRootSTLVToBuf [11:56:07]FM_MakeSignedData [11:56:07]FM_MakeSignedData [11:56:07]SAM_PROTO_SignData [11:56:07]wFMCommunicate request_size=4 [11:56:07]MH_SAM_APDU [11:56:07]CAPDU: 80 0D 01 02 [11:56:07]Write to MH i2c: E2 08 00 3E 15 80 0D 01 02 00 00 00 00 CC [11:56:07]Write i2c OK [11:56:07]MH_I2C_Read... [11:56:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:07]Read from MH i2c: E2 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 03 00 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 03 00 3E 15 00 90 00 C7 [11:56:07]RAPDU: 90 00 [11:56:07]wFMCommunicate OK [11:56:07]wFMCommunicate request_size=255 [11:56:07]MH_SAM_APDU [11:56:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 D6 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3C 45 02 00 35 04 06 00 CC [11:56:07]Write to MH i2c: E2 02 01 3F 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 D6 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3C 45 02 00 35 04 06 00 CC 00 00 FA [11:56:07]Write i2c OK [11:56:07]MH_I2C_Read... [11:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:07]Read from MH i2c: E2 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 03 00 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 03 00 3F 15 00 90 00 C8 [11:56:07]RAPDU: 90 00 [11:56:07]wFMCommunicate OK [11:56:07]wFMCommunicate request_size=10 [11:56:07]MH_SAM_APDU [11:56:07]CAPDU: 80 0D 02 02 05 87 A7 89 11 C2 [11:56:07]Write to MH i2c: E2 0D 00 40 15 80 0D 02 02 05 00 87 A7 89 11 C2 00 00 63 [11:56:07]Write i2c OK [11:56:07]MH_I2C_Read... [11:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:07]Read from MH i2c: E2 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 03 00 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 03 00 40 15 00 90 00 C9 [11:56:07]RAPDU: 90 00 [11:56:07]wFMCommunicate OK [11:56:07]wFMCommunicate request_size=4 [11:56:07]MH_SAM_APDU [11:56:07]CAPDU: 80 0D 03 02 [11:56:07]Write to MH i2c: E2 08 00 41 15 80 0D 03 02 00 00 00 00 D1 [11:56:07]Write i2c OK [11:56:07]MH_I2C_Read... [11:56:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:07]Read from MH i2c: E2 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 0B 00 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 0B 00 41 15 00 4C 8B 1C FC CB 3F 05 00 90 00 D0 [11:56:07]RAPDU: 4C 8B 1C FC CB 3F 05 00 90 00 [11:56:07]wFMCommunicate OK [11:56:07]SAM_PROTO_SignData done [11:56:07]FM_MakeSignedData done [11:56:07]CreateOFDProtocolMessage [11:56:07]wFMCommunicate request_size=4 [11:56:07]MH_SAM_APDU [11:56:07]CAPDU: 80 11 00 00 [11:56:07]Write to MH i2c: E2 08 00 42 15 80 11 00 00 00 00 00 00 D1 [11:56:07]Write i2c OK [11:56:07]MH_I2C_Read... [11:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:07]Read from MH i2c: E2 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 17 00 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: E2 17 00 42 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 24 [11:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:56:07]wFMCommunicate OK [11:56:07]CreateOFDProtocolMessage done [11:56:07]OFDSenderStorePacket 148796 [11:56:07]StoreOFDPacket docnum=148796 [11:56:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 73 5F 07 01 08 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 D6 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3C 45 02 00 35 04 06 00 CC 87 A7 89 11 C2 4C 8B 1C FC CB 3F 05 00 [11:56:07]CheckFolder [11:56:07]dirname=/storage/ofd_packets [11:56:07]CheckFolder done [11:56:07]ProducePacketName [11:56:07]name=ofd_packets/00148796 [11:56:07]NVStorageSaveData ofd_packets/00148796 [11:56:07]File name is /storage/ofd_packets/00148796 [11:56:07]Write 301 bytes [11:56:07]NVStorageSaveData done [11:56:07]OFDSenderStorePacket done [11:56:07]KKMCreateOFDPacket done [11:56:07]NVStorageSaveData kkm_last_timestamp [11:56:07]File name is /storage/kkm_last_timestamp [11:56:07]Write 4 bytes [11:56:07]NVStorageSaveData done [11:56:07]ExternCall_PrintAddStr [11:56:07]wPrintStart [11:56:07]Write to MH i2c: 01 00 00 43 15 58 [11:56:07]Write i2c OK [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: 01 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: 01 07 00 [11:56:07]MH_I2C_Read... [11:56:07]Read from MH i2c: 01 07 00 43 15 00 00 00 00 00 FF 0F 6D [11:56:07]RasterBufferAndPrint [11:56:07]line Счет N : (1)979724 [11:56:07]line ИНН: 02508201610067 [11:56:07]line Контрольно-Кассовый Чек [11:56:07]line ПРОДАЖА [11:56:07]line ТРК (МРК, ГНК) : 22 [11:56:07]line Товар: 2710124130 [11:56:07]line Аи-92-К-5 [11:56:07]line 2.990 * 66.90 [11:56:07]line = 200.03 [11:56:07]line НДС 12% НСП 1% [11:56:07]line > о реализуемом товаре [11:56:07]line ОКРУГЛЕНИЕ: -0.03 [11:56:07]line ИТОГО: 200.00 [11:56:07]line Внесено: 200.00 [11:56:07]line СДАЧА: 0.00 [11:56:07]line НСП 1% : 1.77 [11:56:07]line НДС 12% : 21.24 [11:56:07]line Наличными: 200.00 [11:56:07]line Безнал.: 0.00 [11:56:07]line Место: АЗС № 68 "Партнер Нефть" [11:56:07]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [11:56:07]line СНО: Общий режим [11:56:07]line Чек 135 04.06.2024 11:56 [11:56:07]line Смена: 368 ФФД: 1.0 [11:56:07]line ЗНМ: 0300000035 [11:56:07]line РНМ: 0000000000092720 [11:56:07]line Версия ККМ: 001 [11:56:07]line ФМ: 0000000000875057 [11:56:07]line ФД: 148796 [11:56:07]line ФПД: 224883003429314 [11:56:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115606&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148796&fm=224883003429314&tin=02508201610067®Number=0000000000092720&sum=20000 [11:56:08]OFD Sender: Processing packet 148796 [packets to send 100, broken 99] [11:56:08]ProducePacketName [11:56:08]name=ofd_packets/00148796 [11:56:08]OFD Sender: To server: pG, [11:56:08]CommunicateWithHost lk.salyk.kg:30040 [11:56:08]ConnectInit lk.salyk.kg [11:56:08]written 0, free lines is 4095 [11:56:08]Connected sock=10 [11:56:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 73 5F 07 01 08 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 D6 00 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3C 45 02 00 35 04 06 00 CC 87 A7 89 11 C2 4C 8B 1C FC CB 3F 05 00 [11:56:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1A A3 47 00 DB 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 38 37 35 30 35 37 10 04 04 00 3C 45 02 00 F4 03 04 00 FA A7 5E 66 B6 04 01 00 00 3B A0 AE 24 03 4D 23 42 [11:56:08]CommunicateWithHost err = 0 [11:56:08]CheckOFDResponse [11:56:08]1017 (14) - 77093643461234 [11:56:08]1041 (16) - 0000000000875057 [11:56:08]1040 (4) - 148796 [11:56:08]1012 (4) - 04.06.2024 05:36 [11:56:08]1206 (1) - 0 [11:56:08]OFD Sender: Remove packet 148796 [11:56:08]ProducePacketName [11:56:08]name=ofd_packets/00148796 [11:56:08]NVStorageDeleteData [11:56:08]Write to MH i2c: 01 00 00 6E 15 83 [11:56:08]Write i2c OK [11:56:08]MH_I2C_Read... [11:56:08]Read from MH i2c: 01 [11:56:08]MH_I2C_Read... [11:56:08]Read from MH i2c: 01 07 00 [11:56:08]MH_I2C_Read... [11:56:08]Read from MH i2c: 01 07 00 6E 15 00 00 00 00 00 74 0C 0A [11:56:08]RasterBufferAndPrint [11:56:08]line [11:56:08]line [11:56:08]line [11:56:08]line [11:56:08]line [11:56:08]written 0, free lines is 3192 [11:56:08]MH_Cut [11:56:08]Write to MH i2c: D1 01 00 75 15 01 5C [11:56:08]Write i2c OK [11:56:08]MH_I2C_Read... [11:56:08]Read from MH i2c: D1 [11:56:08]MH_I2C_Read... [11:56:08]Read from MH i2c: D1 01 00 [11:56:08]MH_I2C_Read... [11:56:08]Read from MH i2c: D1 01 00 75 15 00 5B [11:56:08]Write to MH i2c: 01 00 00 76 15 8B [11:56:08]Write i2c OK [11:56:08]MH_I2C_Read... [11:56:08]OFD Sender: No OFD packet to send [11:56:09]*** Cut start [11:56:09]*** Partial cut [11:56:09]*** CUTSNS_PIN = 1 [11:56:09]*** CUTSNS_PIN = 0 [11:56:10]*** Brake cut motor [11:56:10]Read from MH i2c: 01 [11:56:10]MH_I2C_Read... [11:56:10]*** Stop cut motor [11:56:10]*** Cut end [11:56:10]Read from MH i2c: 01 07 00 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: 01 07 00 76 15 00 00 00 00 00 FF 0F A0 [11:56:10]process_action close_receipt done [11:56:10]requested_data is exist [11:56:10]produce_requested_data [11:56:10]requested_item fm.sn is exist - process it [11:56:10]wFMCommunicate request_size=4 [11:56:10]MH_SAM_APDU [11:56:10]CAPDU: 80 11 00 00 [11:56:10]Write to MH i2c: E2 08 00 77 15 80 11 00 00 00 00 00 00 06 [11:56:10]Write i2c OK [11:56:10]MH_I2C_Read... [11:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:10]Read from MH i2c: E2 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 17 00 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 17 00 77 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 59 [11:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [11:56:10]wFMCommunicate OK [11:56:10]requested_item fd.num is exist - process it [11:56:10]SAM_PROTO_GetFieldsCounters [11:56:10]wFMCommunicate request_size=4 [11:56:10]MH_SAM_APDU [11:56:10]CAPDU: 80 13 00 00 [11:56:10]Write to MH i2c: E2 08 00 78 15 80 13 00 00 00 00 00 00 09 [11:56:10]Write i2c OK [11:56:10]MH_I2C_Read... [11:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:10]Read from MH i2c: E2 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 62 00 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 62 00 78 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3C 45 02 00 0E 04 04 00 70 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 AE [11:56:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3C 45 02 00 0E 04 04 00 70 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 [11:56:10]wFMCommunicate OK [11:56:10]SAM_PROTO_GetFieldsCounters done [11:56:10]requested_item shift.num is exist - process it [11:56:10]requested_item shift.opened is exist - process it [11:56:10]req_shift_opened [11:56:10]FM_GetShiftState [11:56:10]SAM_PROTO_GetShiftState [11:56:10]wFMCommunicate request_size=4 [11:56:10]MH_SAM_APDU [11:56:10]CAPDU: 80 13 01 00 [11:56:10]Write to MH i2c: E2 08 00 79 15 80 13 01 00 00 00 00 00 0B [11:56:10]Write i2c OK [11:56:10]MH_I2C_Read... [11:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:10]Read from MH i2c: E2 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 0E 00 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 0E 00 79 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CE [11:56:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [11:56:10]wFMCommunicate OK [11:56:10]SAM_PROTO_GetShiftState done [11:56:10]FM_GetShiftState done [11:56:10]req_shift_opened done [11:56:10]requested_item shift.open_date is exist - process it [11:56:10]req_shift_open_date [11:56:10]req_shift_open_date done [11:56:10]produce_requested_data done [11:56:10]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148796,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [11:56:10]process_action_free close_receipt [11:56:10]json_value_free [11:56:10]json_value_free done [11:56:10]process_json_proto returns [11:56:10]Send response to host [11:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148796,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [11:56:10]free response buf [11:56:10]execute_script done [11:56:10]execute_script returns [11:56:10]free content buf [11:56:10]Sock 9.Close socket [11:56:10]Sock 9.Thread stoped [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:05]accept exits with 7 [12:00:05]New connection [12:00:05]New thread 3067235684 created [12:00:05]Thread 3067379044 joined [12:00:05]Waiting for new connection... [12:00:05] Sock 7.Parse request [12:00:05]Sock 7.Check first char [12:00:05]Sock 7.First char is OK [12:00:05]request: POST /json_proto HTTP/1.0 [12:00:05]Method: POST [12:00:05]URL: /json_proto [12:00:05]Method is POST - this is cgi request [12:00:05]url: /json_proto [12:00:05]query_string will be loaded in cgi processing [12:00:05]execute_cgi json_proto POST (null) [12:00:05]execute_cgi path=json_proto method=POST [12:00:05]POST find Content-Length [12:00:05]Host: 172.17.38.4:8080 [12:00:05]Content-Length: 677 [12:00:05]Content-Type: application/json [12:00:05] [12:00:05]POST finish read [12:00:05]Found Content-Length = 677 [12:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:05]execute_script... [12:00: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)979725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:05]POST & json_proto [12:00:05]process_json_proto [12:00:05]json parsed OK: [12:00:05]protocol is kg_v1.0 [12:00:05]action value=close_receipt [12:00:05]process_action close_receipt [12:00:05]cmd_close_receipt [12:00:05]MH_GetDate [12:00:05]Write to MH i2c: F0 00 00 7A 15 7E [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: F0 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: F0 09 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: F0 09 00 7A 15 00 C6 01 5F 66 CC 51 87 64 1B [12:00:05]GetLastDocTimeStamp 1717502166 [12:00:05]current date 1717502406 [12:00:05]FM_GetShiftState [12:00:05]SAM_PROTO_GetShiftState [12:00:05]wFMCommunicate request_size=4 [12:00:05]MH_SAM_APDU [12:00:05]CAPDU: 80 13 01 00 [12:00:05]Write to MH i2c: E2 08 00 7B 15 80 13 01 00 00 00 00 00 0D [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:05]Read from MH i2c: E2 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 0E 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 0E 00 7B 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D0 [12:00:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:00:05]wFMCommunicate OK [12:00:05]SAM_PROTO_GetShiftState done [12:00:05]FM_GetShiftState done [12:00:05]opened in 1717460629 [12:00:05]opened+sec_in_day 1717547029 [12:00:05]quantity*price = 40006 [12:00:05]sum+1 = 40007 [12:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 136 04.06.2024 12:00 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148797 ФПД: 100680985750982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120006&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148797&fm=100680985750982&tin=02508201610067®Number=0000000000092720&sum=40000 [12:00:07]StoreToDocumentArchive [12:00:07]shift 368 fd 148797 [12:00:07]save to /storage/0368/doc_00148797 [12:00:07]save last doc name /storage/0368/doc_00148797 to /storage/kkm_last_doc_name [12:00:07]save OK [12:00:07]Clear old archive folders... [12:00:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:07]tlvbuf is 00F178F0 [12:00:07]SAM_PROTO_ClearQueue [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 09 00 00 [12:00:07]Write to MH i2c: E2 08 00 88 15 80 09 00 00 00 00 00 00 0F [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 88 15 00 90 00 11 [12:00:07]RAPDU: 90 00 [12:00:07]wFMCommunicate OK [12:00:07]SAM_PROTO_ClearQueue done [12:00:07]KKMCreateOFDPacket [12:00:07]OFDProtocolAddRootSTLVToBuf [12:00:07]FM_MakeSignedData [12:00:07]FM_MakeSignedData [12:00:07]SAM_PROTO_SignData [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 0D 01 02 [12:00:07]Write to MH i2c: E2 08 00 89 15 80 0D 01 02 00 00 00 00 17 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 89 15 00 90 00 12 [12:00:07]RAPDU: 90 00 [12:00:07]wFMCommunicate OK [12:00:07]wFMCommunicate request_size=255 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 88 00 00 00 F4 03 04 00 C6 01 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3D 45 02 00 35 04 06 00 5B [12:00:07]Write to MH i2c: E2 02 01 8A 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 88 00 00 00 F4 03 04 00 C6 01 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3D 45 02 00 35 04 06 00 5B 00 00 D4 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 8A 15 00 90 00 13 [12:00:07]RAPDU: 90 00 [12:00:07]wFMCommunicate OK [12:00:07]wFMCommunicate request_size=10 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 0D 02 02 05 91 9E 64 2D C6 [12:00:07]Write to MH i2c: E2 0D 00 8B 15 80 0D 02 02 05 00 91 9E 64 2D C6 00 00 AA [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 8B 15 00 90 00 14 [12:00:07]RAPDU: 90 00 [12:00:07]wFMCommunicate OK [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 0D 03 02 [12:00:07]Write to MH i2c: E2 08 00 8C 15 80 0D 03 02 00 00 00 00 1C [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 0B 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 0B 00 8C 15 00 E5 C8 F4 2E 21 7F 92 80 90 00 9E [12:00:07]RAPDU: E5 C8 F4 2E 21 7F 92 80 90 00 [12:00:07]wFMCommunicate OK [12:00:07]SAM_PROTO_SignData done [12:00:07]FM_MakeSignedData done [12:00:07]CreateOFDProtocolMessage [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 11 00 00 [12:00:07]Write to MH i2c: E2 08 00 8D 15 80 11 00 00 00 00 00 00 1C [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 17 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 17 00 8D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6F [12:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:00:07]wFMCommunicate OK [12:00:07]CreateOFDProtocolMessage done [12:00:07]OFDSenderStorePacket 148797 [12:00:07]StoreOFDPacket docnum=148797 [12:00:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 6F 70 07 01 A2 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 88 00 00 00 F4 03 04 00 C6 01 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3D 45 02 00 35 04 06 00 5B 91 9E 64 2D C6 E5 C8 F4 2E 21 7F 92 80 [12:00:07]CheckFolder [12:00:07]dirname=/storage/ofd_packets [12:00:07]CheckFolder done [12:00:07]ProducePacketName [12:00:07]name=ofd_packets/00148797 [12:00:07]NVStorageSaveData ofd_packets/00148797 [12:00:07]File name is /storage/ofd_packets/00148797 [12:00:07]Write 301 bytes [12:00:07]NVStorageSaveData done [12:00:07]OFDSenderStorePacket done [12:00:07]KKMCreateOFDPacket done [12:00:07]NVStorageSaveData kkm_last_timestamp [12:00:07]File name is /storage/kkm_last_timestamp [12:00:07]Write 4 bytes [12:00:07]NVStorageSaveData done [12:00:07]ExternCall_PrintAddStr [12:00:07]wPrintStart [12:00:07]Write to MH i2c: 01 00 00 8E 15 A3 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: 01 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: 01 07 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: 01 07 00 8E 15 00 00 00 00 00 FF 0F B8 [12:00:07]RasterBufferAndPrint [12:00:07]line Счет N : (1)979725 [12:00:07]line ИНН: 02508201610067 [12:00:07]line Контрольно-Кассовый Чек [12:00:07]line ПРОДАЖА [12:00:07]line ТРК (МРК, ГНК) : 12 [12:00:07]line Товар: 2710124130 [12:00:07]line Аи-92-К-5 [12:00:07]line 5.980 * 66.90 [12:00:07]line = 400.06 [12:00:07]line НДС 12% НСП 1% [12:00:07]line > о реализуемом товаре [12:00:07]line ОКРУГЛЕНИЕ: -0.06 [12:00:07]line ИТОГО: 400.00 [12:00:07]line Внесено: 400.00 [12:00:07]line СДАЧА: 0.00 [12:00:07]line НСП 1% : 3.54 [12:00:07]line НДС 12% : 42.48 [12:00:07]line Наличными: 400.00 [12:00:07]line Безнал.: 0.00 [12:00:07]line Место: АЗС № 68 "Партнер Нефть" [12:00:07]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:00:07]line СНО: Общий режим [12:00:07]line Чек 136 04.06.2024 12:00 [12:00:07]line Смена: 368 ФФД: 1.0 [12:00:07]line ЗНМ: 0300000035 [12:00:07]line РНМ: 0000000000092720 [12:00:07]line Версия ККМ: 001 [12:00:07]line ФМ: 0000000000875057 [12:00:07]line ФД: 148797 [12:00:07]line ФПД: 100680985750982 [12:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120006&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148797&fm=100680985750982&tin=02508201610067®Number=0000000000092720&sum=40000 [12:00:07]OFD Sender: Processing packet 148797 [packets to send 100, broken 99] [12:00:07]ProducePacketName [12:00:07]name=ofd_packets/00148797 [12:00:07]OFD Sender: To server: pG, [12:00:07]CommunicateWithHost lk.salyk.kg:30040 [12:00:07]ConnectInit lk.salyk.kg [12:00:07]written 0, free lines is 4095 [12:00:08]Connected sock=10 [12:00:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 6F 70 07 01 A2 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 88 00 00 00 F4 03 04 00 C6 01 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3D 45 02 00 35 04 06 00 5B 91 9E 64 2D C6 E5 C8 F4 2E 21 7F 92 80 [12:00:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 68 E2 47 00 95 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 38 37 35 30 35 37 10 04 04 00 3D 45 02 00 F4 03 04 00 EA A8 5E 66 B6 04 01 00 00 97 55 5C 68 DF 28 78 9F [12:00:08]CommunicateWithHost err = 0 [12:00:08]CheckOFDResponse [12:00:08]1017 (14) - 77093643461234 [12:00:08]1041 (16) - 0000000000875057 [12:00:08]1040 (4) - 148797 [12:00:08]1012 (4) - 04.06.2024 05:40 [12:00:08]1206 (1) - 0 [12:00:08]OFD Sender: Remove packet 148797 [12:00:08]ProducePacketName [12:00:08]name=ofd_packets/00148797 [12:00:08]NVStorageDeleteData [12:00:08]Write to MH i2c: 01 00 00 B9 15 CE [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: 01 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: 01 07 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: 01 07 00 B9 15 00 00 00 00 00 6A 0C 4B [12:00:08]RasterBufferAndPrint [12:00:08]line [12:00:08]line [12:00:08]line [12:00:08]line [12:00:08]line [12:00:08]written 0, free lines is 3181 [12:00:08]MH_Cut [12:00:08]Write to MH i2c: D1 01 00 C0 15 01 A7 [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: D1 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: D1 01 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: D1 01 00 C0 15 00 A6 [12:00:08]Write to MH i2c: 01 00 00 C1 15 D6 [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]OFD Sender: No OFD packet to send [12:00:09]*** Cut start [12:00:09]*** Partial cut [12:00:09]*** CUTSNS_PIN = 1 [12:00:09]*** CUTSNS_PIN = 0 [12:00:09]*** Brake cut motor [12:00:10]Read from MH i2c: 01 [12:00:10]MH_I2C_Read... [12:00:10]*** Stop cut motor [12:00:10]*** Cut end [12:00:10]Read from MH i2c: 01 07 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: 01 07 00 C1 15 00 00 00 00 00 FF 0F EB [12:00:10]process_action close_receipt done [12:00:10]requested_data is exist [12:00:10]produce_requested_data [12:00:10]requested_item fm.sn is exist - process it [12:00:10]wFMCommunicate request_size=4 [12:00:10]MH_SAM_APDU [12:00:10]CAPDU: 80 11 00 00 [12:00:10]Write to MH i2c: E2 08 00 C2 15 80 11 00 00 00 00 00 00 51 [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:10]Read from MH i2c: E2 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 17 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 17 00 C2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A4 [12:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:00:10]wFMCommunicate OK [12:00:10]requested_item fd.num is exist - process it [12:00:10]SAM_PROTO_GetFieldsCounters [12:00:10]wFMCommunicate request_size=4 [12:00:10]MH_SAM_APDU [12:00:10]CAPDU: 80 13 00 00 [12:00:10]Write to MH i2c: E2 08 00 C3 15 80 13 00 00 00 00 00 00 54 [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:10]Read from MH i2c: E2 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 62 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 62 00 C3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3D 45 02 00 0E 04 04 00 70 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 FD [12:00:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3D 45 02 00 0E 04 04 00 70 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 [12:00:10]wFMCommunicate OK [12:00:10]SAM_PROTO_GetFieldsCounters done [12:00:10]requested_item shift.num is exist - process it [12:00:10]requested_item shift.opened is exist - process it [12:00:10]req_shift_opened [12:00:10]FM_GetShiftState [12:00:10]SAM_PROTO_GetShiftState [12:00:10]wFMCommunicate request_size=4 [12:00:10]MH_SAM_APDU [12:00:10]CAPDU: 80 13 01 00 [12:00:10]Write to MH i2c: E2 08 00 C4 15 80 13 01 00 00 00 00 00 56 [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:10]Read from MH i2c: E2 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 0E 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 0E 00 C4 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 19 [12:00:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:00:10]wFMCommunicate OK [12:00:10]SAM_PROTO_GetShiftState done [12:00:10]FM_GetShiftState done [12:00:10]req_shift_opened done [12:00:10]requested_item shift.open_date is exist - process it [12:00:10]req_shift_open_date [12:00:10]req_shift_open_date done [12:00:10]produce_requested_data done [12:00:10]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148797,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:00:10]process_action_free close_receipt [12:00:10]json_value_free [12:00:10]json_value_free done [12:00:10]process_json_proto returns [12:00:10]Send response to host [12:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148797,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:00:10]free response buf [12:00:10]execute_script done [12:00:10]execute_script returns [12:00:10]free content buf [12:00:10]Sock 7.Close socket [12:00:10]Sock 7.Thread stoped [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]accept exits with 9 [12:00:48]New connection [12:00:48]New thread 3067379044 created [12:00:48]Thread 3067235684 joined [12:00:48]Waiting for new connection... [12:00:48] Sock 9.Parse request [12:00:48]Sock 9.Check first char [12:00:48]Sock 9.First char is OK [12:00:48]request: POST /json_proto HTTP/1.0 [12:00:48]Method: POST [12:00:48]URL: /json_proto [12:00:48]Method is POST - this is cgi request [12:00:48]url: /json_proto [12:00:48]query_string will be loaded in cgi processing [12:00:48]execute_cgi json_proto POST (null) [12:00:48]execute_cgi path=json_proto method=POST [12:00:48]POST find Content-Length [12:00:48]Host: 172.17.38.4:8080 [12:00:48]Content-Length: 677 [12:00:48]Content-Type: application/json [12:00:48] [12:00:48]POST finish read [12:00:48]Found Content-Length = 677 [12:00:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:48]execute_script... [12:00:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:48]POST & json_proto [12:00:48]process_json_proto [12:00:48]json parsed OK: [12:00:48]protocol is kg_v1.0 [12:00:48]action value=close_receipt [12:00:48]process_action close_receipt [12:00:48]cmd_close_receipt [12:00:48]MH_GetDate [12:00:48]Write to MH i2c: F0 00 00 C5 15 C9 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: F0 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: F0 09 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: F0 09 00 C5 15 00 F1 01 5F 66 CC 51 87 64 91 [12:00:48]GetLastDocTimeStamp 1717502406 [12:00:48]current date 1717502449 [12:00:48]FM_GetShiftState [12:00:48]SAM_PROTO_GetShiftState [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 13 01 00 [12:00:48]Write to MH i2c: E2 08 00 C6 15 80 13 01 00 00 00 00 00 58 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]OFD Sender: No OFD packet to send [12:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 C6 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1B [12:00:48]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_GetShiftState done [12:00:48]FM_GetShiftState done [12:00:48]opened in 1717460629 [12:00:48]opened+sec_in_day 1717547029 [12:00:48]quantity*price = 20003 [12:00:48]sum+1 = 20004 [12:00: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 137 04.06.2024 12:00 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148798 ФПД: 227390005377170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120049&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148798&fm=227390005377170&tin=02508201610067®Number=0000000000092720&sum=20000 [12:00:49]StoreToDocumentArchive [12:00:49]shift 368 fd 148798 [12:00:49]save to /storage/0368/doc_00148798 [12:00:49]save last doc name /storage/0368/doc_00148798 to /storage/kkm_last_doc_name [12:00:49]save OK [12:00:49]Clear old archive folders... [12:00:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:49]tlvbuf is 00FC0B00 [12:00:49]SAM_PROTO_ClearQueue [12:00:49]wFMCommunicate request_size=4 [12:00:49]MH_SAM_APDU [12:00:49]CAPDU: 80 09 00 00 [12:00:49]Write to MH i2c: E2 08 00 D3 15 80 09 00 00 00 00 00 00 5A [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:49]Read from MH i2c: E2 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 03 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 03 00 D3 15 00 90 00 5C [12:00:49]RAPDU: 90 00 [12:00:49]wFMCommunicate OK [12:00:49]SAM_PROTO_ClearQueue done [12:00:49]KKMCreateOFDPacket [12:00:49]OFDProtocolAddRootSTLVToBuf [12:00:49]FM_MakeSignedData [12:00:49]FM_MakeSignedData [12:00:49]SAM_PROTO_SignData [12:00:49]wFMCommunicate request_size=4 [12:00:49]MH_SAM_APDU [12:00:49]CAPDU: 80 0D 01 02 [12:00:49]Write to MH i2c: E2 08 00 D4 15 80 0D 01 02 00 00 00 00 62 [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 D4 15 00 90 00 5D [12:00:50]RAPDU: 90 00 [12:00:50]wFMCommunicate OK [12:00:50]wFMCommunicate request_size=255 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 F1 01 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3E 45 02 00 35 04 06 00 CE [12:00:50]Write to MH i2c: E2 02 01 D5 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 F1 01 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3E 45 02 00 35 04 06 00 CE 00 00 B2 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 D5 15 00 90 00 5E [12:00:50]RAPDU: 90 00 [12:00:50]wFMCommunicate OK [12:00:50]wFMCommunicate request_size=10 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 0D 02 02 05 CF 5C 7E F8 92 [12:00:50]Write to MH i2c: E2 0D 00 D6 15 80 0D 02 02 05 00 CF 5C 7E F8 92 00 00 A2 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 D6 15 00 90 00 5F [12:00:50]RAPDU: 90 00 [12:00:50]wFMCommunicate OK [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 0D 03 02 [12:00:50]Write to MH i2c: E2 08 00 D7 15 80 0D 03 02 00 00 00 00 67 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 0B 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 0B 00 D7 15 00 72 A2 20 62 BA C8 79 71 90 00 6A [12:00:50]RAPDU: 72 A2 20 62 BA C8 79 71 90 00 [12:00:50]wFMCommunicate OK [12:00:50]SAM_PROTO_SignData done [12:00:50]FM_MakeSignedData done [12:00:50]CreateOFDProtocolMessage [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 11 00 00 [12:00:50]Write to MH i2c: E2 08 00 D8 15 80 11 00 00 00 00 00 00 67 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 17 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 17 00 D8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BA [12:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:00:50]wFMCommunicate OK [12:00:50]CreateOFDProtocolMessage done [12:00:50]OFDSenderStorePacket 148798 [12:00:50]StoreOFDPacket docnum=148798 [12:00:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 35 86 07 01 B7 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 F1 01 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3E 45 02 00 35 04 06 00 CE CF 5C 7E F8 92 72 A2 20 62 BA C8 79 71 [12:00:50]CheckFolder [12:00:50]dirname=/storage/ofd_packets [12:00:50]CheckFolder done [12:00:50]ProducePacketName [12:00:50]name=ofd_packets/00148798 [12:00:50]NVStorageSaveData ofd_packets/00148798 [12:00:50]File name is /storage/ofd_packets/00148798 [12:00:50]Write 301 bytes [12:00:50]NVStorageSaveData done [12:00:50]OFDSenderStorePacket done [12:00:50]KKMCreateOFDPacket done [12:00:50]NVStorageSaveData kkm_last_timestamp [12:00:50]File name is /storage/kkm_last_timestamp [12:00:50]Write 4 bytes [12:00:50]NVStorageSaveData done [12:00:50]ExternCall_PrintAddStr [12:00:50]wPrintStart [12:00:50]Write to MH i2c: 01 00 00 D9 15 EE [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 07 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 07 00 D9 15 00 00 00 00 00 FF 0F 03 [12:00:50]RasterBufferAndPrint [12:00:50]line Счет N : (1)979726 [12:00:50]line ИНН: 02508201610067 [12:00:50]line Контрольно-Кассовый Чек [12:00:50]line ПРОДАЖА [12:00:50]line ТРК (МРК, ГНК) : 41 [12:00:50]line Товар: 2710124130 [12:00:50]line Аи-92-К-5 [12:00:50]line 2.990 * 66.90 [12:00:50]line = 200.03 [12:00:50]line НДС 12% НСП 1% [12:00:50]line > о реализуемом товаре [12:00:50]line ОКРУГЛЕНИЕ: -0.03 [12:00:50]line ИТОГО: 200.00 [12:00:50]line Внесено: 200.00 [12:00:50]line СДАЧА: 0.00 [12:00:50]line НСП 1% : 1.77 [12:00:50]line НДС 12% : 21.24 [12:00:50]line Наличными: 200.00 [12:00:50]line Безнал.: 0.00 [12:00:50]line Место: АЗС № 68 "Партнер Нефть" [12:00:50]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:00:50]line СНО: Общий режим [12:00:50]line Чек 137 04.06.2024 12:00 [12:00:50]line Смена: 368 ФФД: 1.0 [12:00:50]line ЗНМ: 0300000035 [12:00:50]line РНМ: 0000000000092720 [12:00:50]line Версия ККМ: 001 [12:00:50]line ФМ: 0000000000875057 [12:00:50]line ФД: 148798 [12:00:50]line ФПД: 227390005377170 [12:00:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120049&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148798&fm=227390005377170&tin=02508201610067®Number=0000000000092720&sum=20000 [12:00:50]OFD Sender: Processing packet 148798 [packets to send 100, broken 99] [12:00:50]ProducePacketName [12:00:50]name=ofd_packets/00148798 [12:00:50]OFD Sender: To server: pG, [12:00:50]CommunicateWithHost lk.salyk.kg:30040 [12:00:50]ConnectInit lk.salyk.kg [12:00:50]written 0, free lines is 4095 [12:00:50]Connected sock=10 [12:00:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 35 86 07 01 B7 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 F1 01 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3E 45 02 00 35 04 06 00 CE CF 5C 7E F8 92 72 A2 20 62 BA C8 79 71 [12:00:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 6F F1 47 00 0B 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 38 37 35 30 35 37 10 04 04 00 3E 45 02 00 F4 03 04 00 15 A9 5E 66 B6 04 01 00 00 86 22 A2 77 65 D7 74 6D [12:00:51]CommunicateWithHost err = 0 [12:00:51]CheckOFDResponse [12:00:51]1017 (14) - 77093643461234 [12:00:51]1041 (16) - 0000000000875057 [12:00:51]1040 (4) - 148798 [12:00:51]1012 (4) - 04.06.2024 05:41 [12:00:51]1206 (1) - 0 [12:00:51]OFD Sender: Remove packet 148798 [12:00:51]ProducePacketName [12:00:51]name=ofd_packets/00148798 [12:00:51]NVStorageDeleteData [12:00:51]Write to MH i2c: 01 00 00 04 16 1A [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: 01 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: 01 07 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: 01 07 00 04 16 00 00 00 00 00 6C 0C 99 [12:00:51]RasterBufferAndPrint [12:00:51]line [12:00:51]line [12:00:51]line [12:00:51]line [12:00:51]line [12:00:51]written 0, free lines is 3183 [12:00:51]MH_Cut [12:00:51]Write to MH i2c: D1 01 00 0B 16 01 F3 [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: D1 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: D1 01 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: D1 01 00 0B 16 00 F2 [12:00:51]Write to MH i2c: 01 00 00 0C 16 22 [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]OFD Sender: No OFD packet to send [12:00:52]*** Cut start [12:00:52]*** Partial cut [12:00:52]*** CUTSNS_PIN = 1 [12:00:52]*** CUTSNS_PIN = 0 [12:00:52]*** Brake cut motor [12:00:53]Read from MH i2c: 01 [12:00:53]MH_I2C_Read... [12:00:53]*** Stop cut motor [12:00:53]*** Cut end [12:00:53]Read from MH i2c: 01 07 00 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: 01 07 00 0C 16 00 00 00 00 00 FF 0F 37 [12:00:53]process_action close_receipt done [12:00:53]requested_data is exist [12:00:53]produce_requested_data [12:00:53]requested_item fm.sn is exist - process it [12:00:53]wFMCommunicate request_size=4 [12:00:53]MH_SAM_APDU [12:00:53]CAPDU: 80 11 00 00 [12:00:53]Write to MH i2c: E2 08 00 0D 16 80 11 00 00 00 00 00 00 9D [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:53]Read from MH i2c: E2 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 17 00 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 17 00 0D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F0 [12:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:00:53]wFMCommunicate OK [12:00:53]requested_item fd.num is exist - process it [12:00:53]SAM_PROTO_GetFieldsCounters [12:00:53]wFMCommunicate request_size=4 [12:00:53]MH_SAM_APDU [12:00:53]CAPDU: 80 13 00 00 [12:00:53]Write to MH i2c: E2 08 00 0E 16 80 13 00 00 00 00 00 00 A0 [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:53]Read from MH i2c: E2 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 62 00 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 62 00 0E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3E 45 02 00 0E 04 04 00 70 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 4D [12:00:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3E 45 02 00 0E 04 04 00 70 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 [12:00:53]wFMCommunicate OK [12:00:53]SAM_PROTO_GetFieldsCounters done [12:00:53]requested_item shift.num is exist - process it [12:00:53]requested_item shift.opened is exist - process it [12:00:53]req_shift_opened [12:00:53]FM_GetShiftState [12:00:53]SAM_PROTO_GetShiftState [12:00:53]wFMCommunicate request_size=4 [12:00:53]MH_SAM_APDU [12:00:53]CAPDU: 80 13 01 00 [12:00:53]Write to MH i2c: E2 08 00 0F 16 80 13 01 00 00 00 00 00 A2 [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:53]Read from MH i2c: E2 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 0E 00 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 0E 00 0F 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 65 [12:00:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:00:53]wFMCommunicate OK [12:00:53]SAM_PROTO_GetShiftState done [12:00:53]FM_GetShiftState done [12:00:53]req_shift_opened done [12:00:53]requested_item shift.open_date is exist - process it [12:00:53]req_shift_open_date [12:00:53]req_shift_open_date done [12:00:53]produce_requested_data done [12:00:53]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148798,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:00:53]process_action_free close_receipt [12:00:53]json_value_free [12:00:53]json_value_free done [12:00:53]process_json_proto returns [12:00:53]Send response to host [12:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148798,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:00:53]free response buf [12:00:53]execute_script done [12:00:53]execute_script returns [12:00:53]free content buf [12:00:53]Sock 9.Close socket [12:00:53]Sock 9.Thread stoped [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:17]accept exits with 7 [12:01:17]New connection [12:01:17]New thread 3067235684 created [12:01:17]Thread 3067379044 joined [12:01:17]Waiting for new connection... [12:01:17] Sock 7.Parse request [12:01:17]Sock 7.Check first char [12:01:17]Sock 7.First char is OK [12:01:17]request: POST /json_proto HTTP/1.0 [12:01:17]Method: POST [12:01:17]URL: /json_proto [12:01:17]Method is POST - this is cgi request [12:01:17]url: /json_proto [12:01:17]query_string will be loaded in cgi processing [12:01:17]execute_cgi json_proto POST (null) [12:01:17]execute_cgi path=json_proto method=POST [12:01:17]POST find Content-Length [12:01:17]Host: 172.17.38.4:8080 [12:01:17]Content-Length: 677 [12:01:17]Content-Type: application/json [12:01:17] [12:01:17]POST finish read [12:01:17]Found Content-Length = 677 [12:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:17]execute_script... [12:01: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)979727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:17]POST & json_proto [12:01:17]process_json_proto [12:01:17]json parsed OK: [12:01:17]protocol is kg_v1.0 [12:01:17]action value=close_receipt [12:01:17]process_action close_receipt [12:01:17]cmd_close_receipt [12:01:17]MH_GetDate [12:01:17]Write to MH i2c: F0 00 00 10 16 15 [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: F0 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: F0 09 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: F0 09 00 10 16 00 0E 02 5F 66 CC 51 87 64 FB [12:01:17]GetLastDocTimeStamp 1717502449 [12:01:17]current date 1717502478 [12:01:17]FM_GetShiftState [12:01:17]SAM_PROTO_GetShiftState [12:01:17]wFMCommunicate request_size=4 [12:01:17]MH_SAM_APDU [12:01:17]CAPDU: 80 13 01 00 [12:01:17]Write to MH i2c: E2 08 00 11 16 80 13 01 00 00 00 00 00 A4 [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:17]Read from MH i2c: E2 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 0E 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 0E 00 11 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 67 [12:01:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:01:17]wFMCommunicate OK [12:01:17]SAM_PROTO_GetShiftState done [12:01:17]FM_GetShiftState done [12:01:17]opened in 1717460629 [12:01:17]opened+sec_in_day 1717547029 [12:01:17]quantity*price = 30038 [12:01:17]sum+1 = 30039 [12:01:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 138 04.06.2024 12:01 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148799 ФПД: 8588443870660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120118&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148799&fm=8588443870660&tin=02508201610067®Number=0000000000092720&sum=30000 [12:01:19]StoreToDocumentArchive [12:01:19]shift 368 fd 148799 [12:01:19]save to /storage/0368/doc_00148799 [12:01:19]save last doc name /storage/0368/doc_00148799 to /storage/kkm_last_doc_name [12:01:19]save OK [12:01:19]Clear old archive folders... [12:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:19]tlvbuf is B6F428F0 [12:01:19]SAM_PROTO_ClearQueue [12:01:19]wFMCommunicate request_size=4 [12:01:19]MH_SAM_APDU [12:01:19]CAPDU: 80 09 00 00 [12:01:19]Write to MH i2c: E2 08 00 1E 16 80 09 00 00 00 00 00 00 A6 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 1E 16 00 90 00 A8 [12:01:19]RAPDU: 90 00 [12:01:19]wFMCommunicate OK [12:01:19]SAM_PROTO_ClearQueue done [12:01:19]KKMCreateOFDPacket [12:01:19]OFDProtocolAddRootSTLVToBuf [12:01:19]FM_MakeSignedData [12:01:19]FM_MakeSignedData [12:01:19]SAM_PROTO_SignData [12:01:19]wFMCommunicate request_size=4 [12:01:19]MH_SAM_APDU [12:01:19]CAPDU: 80 0D 01 02 [12:01:19]Write to MH i2c: E2 08 00 1F 16 80 0D 01 02 00 00 00 00 AE [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 1F 16 00 90 00 A9 [12:01:19]RAPDU: 90 00 [12:01:19]wFMCommunicate OK [12:01:19]wFMCommunicate request_size=255 [12:01:19]MH_SAM_APDU [12:01:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 0E 02 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3F 45 02 00 35 04 06 00 07 [12:01:19]Write to MH i2c: E2 02 01 20 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 0E 02 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3F 45 02 00 35 04 06 00 07 00 00 89 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 20 16 00 90 00 AA [12:01:19]RAPDU: 90 00 [12:01:19]wFMCommunicate OK [12:01:19]wFMCommunicate request_size=10 [12:01:19]MH_SAM_APDU [12:01:19]CAPDU: 80 0D 02 02 05 CF A7 25 65 C4 [12:01:19]Write to MH i2c: E2 0D 00 21 16 80 0D 02 02 05 00 CF A7 25 65 C4 00 00 7F [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 03 00 21 16 00 90 00 AB [12:01:19]RAPDU: 90 00 [12:01:19]wFMCommunicate OK [12:01:19]wFMCommunicate request_size=4 [12:01:19]MH_SAM_APDU [12:01:19]CAPDU: 80 0D 03 02 [12:01:19]Write to MH i2c: E2 08 00 22 16 80 0D 03 02 00 00 00 00 B3 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 0B 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 0B 00 22 16 00 2A 30 6B DD 28 5B 53 08 90 00 34 [12:01:19]RAPDU: 2A 30 6B DD 28 5B 53 08 90 00 [12:01:19]wFMCommunicate OK [12:01:19]SAM_PROTO_SignData done [12:01:19]FM_MakeSignedData done [12:01:19]CreateOFDProtocolMessage [12:01:19]wFMCommunicate request_size=4 [12:01:19]MH_SAM_APDU [12:01:19]CAPDU: 80 11 00 00 [12:01:19]Write to MH i2c: E2 08 00 23 16 80 11 00 00 00 00 00 00 B3 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 17 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 17 00 23 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 06 [12:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:01:19]wFMCommunicate OK [12:01:19]CreateOFDProtocolMessage done [12:01:19]OFDSenderStorePacket 148799 [12:01:19]StoreOFDPacket docnum=148799 [12:01:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 92 CF 07 01 9B 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 0E 02 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3F 45 02 00 35 04 06 00 07 CF A7 25 65 C4 2A 30 6B DD 28 5B 53 08 [12:01:19]CheckFolder [12:01:19]dirname=/storage/ofd_packets [12:01:19]CheckFolder done [12:01:19]ProducePacketName [12:01:19]name=ofd_packets/00148799 [12:01:19]NVStorageSaveData ofd_packets/00148799 [12:01:19]File name is /storage/ofd_packets/00148799 [12:01:19]Write 301 bytes [12:01:19]NVStorageSaveData done [12:01:19]OFDSenderStorePacket done [12:01:19]KKMCreateOFDPacket done [12:01:19]NVStorageSaveData kkm_last_timestamp [12:01:19]File name is /storage/kkm_last_timestamp [12:01:19]Write 4 bytes [12:01:19]NVStorageSaveData done [12:01:19]ExternCall_PrintAddStr [12:01:19]wPrintStart [12:01:19]Write to MH i2c: 01 00 00 24 16 3A [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: 01 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: 01 07 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: 01 07 00 24 16 00 00 00 00 00 FF 0F 4F [12:01:19]RasterBufferAndPrint [12:01:19]line Счет N : (1)979727 [12:01:19]line ИНН: 02508201610067 [12:01:19]line Контрольно-Кассовый Чек [12:01:19]line ПРОДАЖА [12:01:19]line ТРК (МРК, ГНК) : 22 [12:01:19]line Товар: 2710124130 [12:01:19]line Аи-92-К-5 [12:01:19]line 4.490 * 66.90 [12:01:19]line = 300.38 [12:01:19]line НДС 12% НСП 1% [12:01:19]line > о реализуемом товаре [12:01:19]line ОКРУГЛЕНИЕ: -0.38 [12:01:19]line ИТОГО: 300.00 [12:01:19]line Внесено: 300.00 [12:01:19]line СДАЧА: 0.00 [12:01:19]line НСП 1% : 2.66 [12:01:19]line НДС 12% : 31.90 [12:01:19]line Наличными: 300.00 [12:01:19]line Безнал.: 0.00 [12:01:19]line Место: АЗС № 68 "Партнер Нефть" [12:01:19]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:01:19]line СНО: Общий режим [12:01:19]line Чек 138 04.06.2024 12:01 [12:01:19]line Смена: 368 ФФД: 1.0 [12:01:19]line ЗНМ: 0300000035 [12:01:19]line РНМ: 0000000000092720 [12:01:19]line Версия ККМ: 001 [12:01:19]line ФМ: 0000000000875057 [12:01:19]line ФД: 148799 [12:01:19]line ФПД: 8588443870660 [12:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120118&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148799&fm=8588443870660&tin=02508201610067®Number=0000000000092720&sum=30000 [12:01:19]OFD Sender: Processing packet 148799 [packets to send 100, broken 99] [12:01:19]ProducePacketName [12:01:19]name=ofd_packets/00148799 [12:01:19]OFD Sender: To server: pG, [12:01:19]CommunicateWithHost lk.salyk.kg:30040 [12:01:19]ConnectInit lk.salyk.kg [12:01:19]written 0, free lines is 4095 [12:01:20]Connected sock=10 [12:01:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 92 CF 07 01 9B 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 0E 02 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3F 45 02 00 35 04 06 00 07 CF A7 25 65 C4 2A 30 6B DD 28 5B 53 08 [12:01:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 57 14 47 00 AF 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3F 45 02 00 F4 03 04 00 32 A9 5E 66 B6 04 01 00 00 0B 98 7A 8F 6B D3 E8 D4 [12:01:20]CommunicateWithHost err = 0 [12:01:20]CheckOFDResponse [12:01:20]1017 (14) - 77093643461234 [12:01:20]1041 (16) - 0000000000875057 [12:01:20]1040 (4) - 148799 [12:01:20]1012 (4) - 04.06.2024 05:42 [12:01:20]1206 (1) - 0 [12:01:20]OFD Sender: Remove packet 148799 [12:01:20]ProducePacketName [12:01:20]name=ofd_packets/00148799 [12:01:20]NVStorageDeleteData [12:01:20]Write to MH i2c: 01 00 00 4F 16 65 [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: 01 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: 01 07 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: 01 07 00 4F 16 00 00 00 00 00 76 0C EE [12:01:20]RasterBufferAndPrint [12:01:20]line [12:01:20]line [12:01:20]line [12:01:20]line [12:01:20]line [12:01:20]written 0, free lines is 3192 [12:01:20]MH_Cut [12:01:20]Write to MH i2c: D1 01 00 56 16 01 3E [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: D1 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: D1 01 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: D1 01 00 56 16 00 3D [12:01:20]Write to MH i2c: 01 00 00 57 16 6D [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]OFD Sender: No OFD packet to send [12:01:21]*** Cut start [12:01:21]*** Partial cut [12:01:21]*** CUTSNS_PIN = 1 [12:01:21]*** CUTSNS_PIN = 0 [12:01:21]*** Brake cut motor [12:01:22]Read from MH i2c: 01 [12:01:22]MH_I2C_Read... [12:01:22]*** Stop cut motor [12:01:22]*** Cut end [12:01:22]Read from MH i2c: 01 07 00 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: 01 07 00 57 16 00 00 00 00 00 FF 0F 82 [12:01:22]process_action close_receipt done [12:01:22]requested_data is exist [12:01:22]produce_requested_data [12:01:22]requested_item fm.sn is exist - process it [12:01:22]wFMCommunicate request_size=4 [12:01:22]MH_SAM_APDU [12:01:22]CAPDU: 80 11 00 00 [12:01:22]Write to MH i2c: E2 08 00 58 16 80 11 00 00 00 00 00 00 E8 [12:01:22]Write i2c OK [12:01:22]MH_I2C_Read... [12:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:22]Read from MH i2c: E2 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 17 00 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 17 00 58 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3B [12:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:01:22]wFMCommunicate OK [12:01:22]requested_item fd.num is exist - process it [12:01:22]SAM_PROTO_GetFieldsCounters [12:01:22]wFMCommunicate request_size=4 [12:01:22]MH_SAM_APDU [12:01:22]CAPDU: 80 13 00 00 [12:01:22]Write to MH i2c: E2 08 00 59 16 80 13 00 00 00 00 00 00 EB [12:01:22]Write i2c OK [12:01:22]MH_I2C_Read... [12:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:22]Read from MH i2c: E2 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 62 00 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 62 00 59 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3F 45 02 00 0E 04 04 00 70 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 9C [12:01:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3F 45 02 00 0E 04 04 00 70 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 [12:01:22]wFMCommunicate OK [12:01:22]SAM_PROTO_GetFieldsCounters done [12:01:22]requested_item shift.num is exist - process it [12:01:22]requested_item shift.opened is exist - process it [12:01:22]req_shift_opened [12:01:22]FM_GetShiftState [12:01:22]SAM_PROTO_GetShiftState [12:01:22]wFMCommunicate request_size=4 [12:01:22]MH_SAM_APDU [12:01:22]CAPDU: 80 13 01 00 [12:01:22]Write to MH i2c: E2 08 00 5A 16 80 13 01 00 00 00 00 00 ED [12:01:22]Write i2c OK [12:01:22]MH_I2C_Read... [12:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:22]Read from MH i2c: E2 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 0E 00 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: E2 0E 00 5A 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B0 [12:01:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:01:22]wFMCommunicate OK [12:01:22]SAM_PROTO_GetShiftState done [12:01:22]FM_GetShiftState done [12:01:22]req_shift_opened done [12:01:22]requested_item shift.open_date is exist - process it [12:01:22]req_shift_open_date [12:01:22]req_shift_open_date done [12:01:22]produce_requested_data done [12:01:22]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148799,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:01:22]process_action_free close_receipt [12:01:22]json_value_free [12:01:22]json_value_free done [12:01:22]process_json_proto returns [12:01:22]Send response to host [12:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148799,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:01:22]free response buf [12:01:22]execute_script done [12:01:22]execute_script returns [12:01:22]free content buf [12:01:22]Sock 7.Close socket [12:01:22]Sock 7.Thread stoped [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:11]accept exits with 9 [12:02:11]New connection [12:02:11]New thread 3067379044 created [12:02:11]Thread 3067235684 joined [12:02:11]Waiting for new connection... [12:02:11] Sock 9.Parse request [12:02:11]Sock 9.Check first char [12:02:11]Sock 9.First char is OK [12:02:11]request: POST /json_proto HTTP/1.0 [12:02:11]Method: POST [12:02:11]URL: /json_proto [12:02:11]Method is POST - this is cgi request [12:02:11]url: /json_proto [12:02:11]query_string will be loaded in cgi processing [12:02:11]execute_cgi json_proto POST (null) [12:02:11]execute_cgi path=json_proto method=POST [12:02:11]POST find Content-Length [12:02:11]Host: 172.17.38.4:8080 [12:02:11]Content-Length: 943 [12:02:11]Content-Type: application/json [12:02:11] [12:02:11]POST finish read [12:02:11]Found Content-Length = 943 [12:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 50.000, "sum" : 3295.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 3295.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:11]execute_script... [12:02: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)979728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 50.000, "sum" : 3295.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 3295.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:11]POST & json_proto [12:02:11]process_json_proto [12:02:11]json parsed OK: [12:02:11]protocol is kg_v1.0 [12:02:11]action value=close_receipt [12:02:11]process_action close_receipt [12:02:11]cmd_close_receipt [12:02:11]MH_GetDate [12:02:11]Write to MH i2c: F0 00 00 5B 16 60 [12:02:11]Write i2c OK [12:02:11]MH_I2C_Read... [12:02:11]Read from MH i2c: F0 [12:02:11]MH_I2C_Read... [12:02:11]Read from MH i2c: F0 09 00 [12:02:11]MH_I2C_Read... [12:02:11]Read from MH i2c: F0 09 00 5B 16 00 44 02 5F 66 CC 51 87 64 7C [12:02:11]GetLastDocTimeStamp 1717502478 [12:02:11]current date 1717502532 [12:02:11]FM_GetShiftState [12:02:11]SAM_PROTO_GetShiftState [12:02:11]wFMCommunicate request_size=4 [12:02:11]MH_SAM_APDU [12:02:11]CAPDU: 80 13 01 00 [12:02:11]Write to MH i2c: E2 08 00 5C 16 80 13 01 00 00 00 00 00 EF [12:02:11]Write i2c OK [12:02:11]MH_I2C_Read... [12:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:11]Read from MH i2c: E2 [12:02:11]MH_I2C_Read... [12:02:11]Read from MH i2c: E2 0E 00 [12:02:11]MH_I2C_Read... [12:02:11]Read from MH i2c: E2 0E 00 5C 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B2 [12:02:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:02:11]wFMCommunicate OK [12:02:11]SAM_PROTO_GetShiftState done [12:02:11]FM_GetShiftState done [12:02:11]opened in 1717460629 [12:02:11]opened+sec_in_day 1717547029 [12:02:11]quantity*price = 329500 [12:02:11]sum+1 = 329501 [12:02:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3295.00 НСП 1% : 29.16 НДС 12% : 349.91 Наличными: 3295.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 139 04.06.2024 12:02 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа АИ-92 номер 68 сэкономлено 50.00 сом ФМ: 0000000000875057 ФД: 148800 ФПД: 206405865989733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120212&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148800&fm=206405865989733&tin=02508201610067®Number=0000000000092720&sum=329500 [12:02:12]StoreToDocumentArchive [12:02:12]shift 368 fd 148800 [12:02:12]save to /storage/0368/doc_00148800 [12:02:12]save last doc name /storage/0368/doc_00148800 to /storage/kkm_last_doc_name [12:02:12]save OK [12:02:12]Clear old archive folders... [12:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:12]tlvbuf is 00FC0900 [12:02:12]SAM_PROTO_ClearQueue [12:02:12]wFMCommunicate request_size=4 [12:02:12]MH_SAM_APDU [12:02:12]CAPDU: 80 09 00 00 [12:02:12]Write to MH i2c: E2 08 00 69 16 80 09 00 00 00 00 00 00 F1 [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 [12:02:12]MH_I2C_Read... [12:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:12]Read from MH i2c: E2 03 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 03 00 69 16 00 90 00 F3 [12:02:12]RAPDU: 90 00 [12:02:12]wFMCommunicate OK [12:02:12]SAM_PROTO_ClearQueue done [12:02:12]KKMCreateOFDPacket [12:02:12]OFDProtocolAddRootSTLVToBuf [12:02:12]FM_MakeSignedData [12:02:12]FM_MakeSignedData [12:02:12]SAM_PROTO_SignData [12:02:12]wFMCommunicate request_size=4 [12:02:12]MH_SAM_APDU [12:02:12]CAPDU: 80 0D 01 02 [12:02:12]Write to MH i2c: E2 08 00 6A 16 80 0D 01 02 00 00 00 00 F9 [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:12]Read from MH i2c: E2 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 03 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 03 00 6A 16 00 90 00 F4 [12:02:12]RAPDU: 90 00 [12:02:12]wFMCommunicate OK [12:02:12]wFMCommunicate request_size=255 [12:02:12]MH_SAM_APDU [12:02:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 1C 07 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 07 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 88 00 00 00 00 07 04 06 00 1C 07 05 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 44 02 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 40 45 02 00 35 04 06 00 BB [12:02:12]Write to MH i2c: E2 02 01 6B 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 1C 07 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 07 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 88 00 00 00 00 07 04 06 00 1C 07 05 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 44 02 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 40 45 02 00 35 04 06 00 BB 00 00 4F [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:13]Read from MH i2c: E2 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 03 00 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 03 00 6B 16 00 90 00 F5 [12:02:13]RAPDU: 90 00 [12:02:13]wFMCommunicate OK [12:02:13]wFMCommunicate request_size=10 [12:02:13]MH_SAM_APDU [12:02:13]CAPDU: 80 0D 02 02 05 B9 9C 52 66 65 [12:02:13]Write to MH i2c: E2 0D 00 6C 16 80 0D 02 02 05 00 B9 9C 52 66 65 00 00 78 [12:02:13]Write i2c OK [12:02:13]MH_I2C_Read... [12:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:13]Read from MH i2c: E2 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 03 00 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 03 00 6C 16 00 90 00 F6 [12:02:13]RAPDU: 90 00 [12:02:13]wFMCommunicate OK [12:02:13]wFMCommunicate request_size=4 [12:02:13]MH_SAM_APDU [12:02:13]CAPDU: 80 0D 03 02 [12:02:13]Write to MH i2c: E2 08 00 6D 16 80 0D 03 02 00 00 00 00 FE [12:02:13]Write i2c OK [12:02:13]MH_I2C_Read... [12:02:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:13]Read from MH i2c: E2 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 0B 00 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 0B 00 6D 16 00 A9 64 C6 FE 2F E2 76 99 90 00 F0 [12:02:13]RAPDU: A9 64 C6 FE 2F E2 76 99 90 00 [12:02:13]wFMCommunicate OK [12:02:13]SAM_PROTO_SignData done [12:02:13]FM_MakeSignedData done [12:02:13]CreateOFDProtocolMessage [12:02:13]wFMCommunicate request_size=4 [12:02:13]MH_SAM_APDU [12:02:13]CAPDU: 80 11 00 00 [12:02:13]Write to MH i2c: E2 08 00 6E 16 80 11 00 00 00 00 00 00 FE [12:02:13]Write i2c OK [12:02:13]MH_I2C_Read... [12:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:13]Read from MH i2c: E2 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 17 00 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 17 00 6E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 51 [12:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:02:13]wFMCommunicate OK [12:02:13]CreateOFDProtocolMessage done [12:02:13]OFDSenderStorePacket 148800 [12:02:13]StoreOFDPacket docnum=148800 [12:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FD 9C 07 01 13 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 1C 07 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 07 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 88 00 00 00 00 07 04 06 00 1C 07 05 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 44 02 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 40 45 02 00 35 04 06 00 BB B9 9C 52 66 65 A9 64 C6 FE 2F E2 76 99 [12:02:13]CheckFolder [12:02:13]dirname=/storage/ofd_packets [12:02:13]CheckFolder done [12:02:13]ProducePacketName [12:02:13]name=ofd_packets/00148800 [12:02:13]NVStorageSaveData ofd_packets/00148800 [12:02:13]File name is /storage/ofd_packets/00148800 [12:02:13]Write 301 bytes [12:02:13]NVStorageSaveData done [12:02:13]OFDSenderStorePacket done [12:02:13]KKMCreateOFDPacket done [12:02:13]NVStorageSaveData kkm_last_timestamp [12:02:13]File name is /storage/kkm_last_timestamp [12:02:13]Write 4 bytes [12:02:13]NVStorageSaveData done [12:02:13]ExternCall_PrintAddStr [12:02:13]wPrintStart [12:02:13]Write to MH i2c: 01 00 00 6F 16 85 [12:02:13]Write i2c OK [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: 01 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: 01 07 00 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: 01 07 00 6F 16 00 00 00 00 00 FF 0F 9A [12:02:13]RasterBufferAndPrint [12:02:13]line Счет N : (1)979728 [12:02:13]line ИНН: 02508201610067 [12:02:13]line Контрольно-Кассовый Чек [12:02:13]line ПРОДАЖА [12:02:13]line ТРК (МРК, ГНК) : 31 [12:02:13]line Товар: 2710124130 [12:02:13]line Аи-92-К-5 [12:02:13]line 50.000 * 65.90 [12:02:13]line = 3295.00 [12:02:13]line НДС 12% НСП 1% [12:02:13]line > о реализуемом товаре [12:02:13]line ИТОГО: 3295.00 [12:02:13]line НСП 1% : 29.16 [12:02:13]line НДС 12% : 349.91 [12:02:13]line Наличными: 3295.00 [12:02:13]line Безнал.: 0.00 [12:02:13]line Место: АЗС № 68 "Партнер Нефть" [12:02:13]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:02:13]line СНО: Общий режим [12:02:13]line Чек 139 04.06.2024 12:02 [12:02:13]line Смена: 368 ФФД: 1.0 [12:02:13]line ЗНМ: 0300000035 [12:02:13]line РНМ: 0000000000092720 [12:02:13]line Версия ККМ: 001 [12:02:13]line [12:02:13]line Дисконтная программа [12:02:13]line АИ-92 [12:02:13]line номер 68 [12:02:13]line сэкономлено 50.00 сом [12:02:13]line ФМ: 0000000000875057 [12:02:13]line ФД: 148800 [12:02:13]line ФПД: 206405865989733 [12:02:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120212&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148800&fm=206405865989733&tin=02508201610067®Number=0000000000092720&sum=329500 [12:02:13]OFD Sender: Processing packet 148800 [packets to send 100, broken 99] [12:02:13]ProducePacketName [12:02:13]name=ofd_packets/00148800 [12:02:13]OFD Sender: To server: pG, [12:02:13]CommunicateWithHost lk.salyk.kg:30040 [12:02:13]ConnectInit lk.salyk.kg [12:02:13]written 0, free lines is 4095 [12:02:13]Connected sock=10 [12:02:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FD 9C 07 01 13 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 1C 07 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 07 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 88 00 00 00 00 07 04 06 00 1C 07 05 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 44 02 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 40 45 02 00 35 04 06 00 BB B9 9C 52 66 65 A9 64 C6 FE 2F E2 76 99 [12:02:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 88 EA 47 00 13 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 40 45 02 00 F4 03 04 00 68 A9 5E 66 B6 04 01 00 00 A7 56 D1 81 FC 2B 1F DC [12:02:14]CommunicateWithHost err = 0 [12:02:14]CheckOFDResponse [12:02:14]1017 (14) - 77093643461234 [12:02:14]1041 (16) - 0000000000875057 [12:02:14]1040 (4) - 148800 [12:02:14]1012 (4) - 04.06.2024 05:43 [12:02:14]1206 (1) - 0 [12:02:14]OFD Sender: Remove packet 148800 [12:02:14]ProducePacketName [12:02:14]name=ofd_packets/00148800 [12:02:14]NVStorageDeleteData [12:02:14]Write to MH i2c: 01 00 00 9C 16 B2 [12:02:14]Write i2c OK [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: 01 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: 01 07 00 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: 01 07 00 9C 16 00 00 00 00 00 3F 0C 04 [12:02:14]RasterBufferAndPrint [12:02:14]line [12:02:14]line [12:02:14]line [12:02:14]line [12:02:14]line [12:02:14]written 0, free lines is 3137 [12:02:14]MH_Cut [12:02:14]Write to MH i2c: D1 01 00 A3 16 01 8B [12:02:14]Write i2c OK [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: D1 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: D1 01 00 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: D1 01 00 A3 16 00 8A [12:02:14]Write to MH i2c: 01 00 00 A4 16 BA [12:02:14]Write i2c OK [12:02:14]MH_I2C_Read... [12:02:14]OFD Sender: No OFD packet to send [12:02:15]*** Cut start [12:02:15]*** Partial cut [12:02:15]*** CUTSNS_PIN = 1 [12:02:15]*** CUTSNS_PIN = 0 [12:02:15]*** Brake cut motor [12:02:16]Read from MH i2c: 01 [12:02:16]MH_I2C_Read... [12:02:16]*** Stop cut motor [12:02:16]*** Cut end [12:02:16]Read from MH i2c: 01 07 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: 01 07 00 A4 16 00 00 00 00 00 FF 0F CF [12:02:16]process_action close_receipt done [12:02:16]requested_data is exist [12:02:16]produce_requested_data [12:02:16]requested_item fm.sn is exist - process it [12:02:16]wFMCommunicate request_size=4 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 11 00 00 [12:02:16]Write to MH i2c: E2 08 00 A5 16 80 11 00 00 00 00 00 00 35 [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 17 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 17 00 A5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 88 [12:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:02:16]wFMCommunicate OK [12:02:16]requested_item fd.num is exist - process it [12:02:16]SAM_PROTO_GetFieldsCounters [12:02:16]wFMCommunicate request_size=4 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 13 00 00 [12:02:16]Write to MH i2c: E2 08 00 A6 16 80 13 00 00 00 00 00 00 38 [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 62 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 62 00 A6 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 40 45 02 00 0E 04 04 00 70 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 ED [12:02:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 40 45 02 00 0E 04 04 00 70 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 [12:02:16]wFMCommunicate OK [12:02:16]SAM_PROTO_GetFieldsCounters done [12:02:16]requested_item shift.num is exist - process it [12:02:16]requested_item shift.opened is exist - process it [12:02:16]req_shift_opened [12:02:16]FM_GetShiftState [12:02:16]SAM_PROTO_GetShiftState [12:02:16]wFMCommunicate request_size=4 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 13 01 00 [12:02:16]Write to MH i2c: E2 08 00 A7 16 80 13 01 00 00 00 00 00 3A [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 0E 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 0E 00 A7 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FD [12:02:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:02:16]wFMCommunicate OK [12:02:16]SAM_PROTO_GetShiftState done [12:02:16]FM_GetShiftState done [12:02:16]req_shift_opened done [12:02:16]requested_item shift.open_date is exist - process it [12:02:16]req_shift_open_date [12:02:16]req_shift_open_date done [12:02:16]produce_requested_data done [12:02:16]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148800,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:02:16]process_action_free close_receipt [12:02:16]json_value_free [12:02:16]json_value_free done [12:02:16]process_json_proto returns [12:02:16]Send response to host [12:02:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148800,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:02:16]free response buf [12:02:16]execute_script done [12:02:16]execute_script returns [12:02:16]free content buf [12:02:16]Sock 9.Close socket [12:02:16]Sock 9.Thread stoped [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:48]accept exits with 7 [12:05:48]New connection [12:05:48]New thread 3067235684 created [12:05:48]Thread 3067379044 joined [12:05:48]Waiting for new connection... [12:05:48] Sock 7.Parse request [12:05:48]Sock 7.Check first char [12:05:48]Sock 7.First char is OK [12:05:48]request: POST /json_proto HTTP/1.0 [12:05:48]Method: POST [12:05:48]URL: /json_proto [12:05:48]Method is POST - this is cgi request [12:05:48]url: /json_proto [12:05:48]query_string will be loaded in cgi processing [12:05:48]execute_cgi json_proto POST (null) [12:05:48]execute_cgi path=json_proto method=POST [12:05:48]POST find Content-Length [12:05:48]Host: 172.17.38.4:8080 [12:05:48]Content-Length: 678 [12:05:48]Content-Type: application/json [12:05:48] [12:05:48]POST finish read [12:05:48]Found Content-Length = 678 [12:05:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:48]execute_script... [12:05: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)979729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:48]POST & json_proto [12:05:48]process_json_proto [12:05:48]json parsed OK: [12:05:48]protocol is kg_v1.0 [12:05:48]action value=close_receipt [12:05:48]process_action close_receipt [12:05:48]cmd_close_receipt [12:05:48]MH_GetDate [12:05:48]Write to MH i2c: F0 00 00 A8 16 AD [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: F0 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: F0 09 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: F0 09 00 A8 16 00 1C 03 5F 66 CC 51 87 64 A2 [12:05:48]GetLastDocTimeStamp 1717502532 [12:05:48]current date 1717502748 [12:05:48]FM_GetShiftState [12:05:48]SAM_PROTO_GetShiftState [12:05:48]wFMCommunicate request_size=4 [12:05:48]MH_SAM_APDU [12:05:48]CAPDU: 80 13 01 00 [12:05:48]Write to MH i2c: E2 08 00 A9 16 80 13 01 00 00 00 00 00 3C [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:48]Read from MH i2c: E2 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 0E 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 0E 00 A9 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FF [12:05:48]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:05:48]wFMCommunicate OK [12:05:48]SAM_PROTO_GetShiftState done [12:05:48]FM_GetShiftState done [12:05:48]opened in 1717460629 [12:05:48]opened+sec_in_day 1717547029 [12:05:48]quantity*price = 70044 [12:05:48]sum+1 = 70045 [12:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 140 04.06.2024 12:05 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148801 ФПД: 78419864772111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120548&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148801&fm=78419864772111&tin=02508201610067®Number=0000000000092720&sum=70000 [12:05:49]StoreToDocumentArchive [12:05:49]shift 368 fd 148801 [12:05:49]save to /storage/0368/doc_00148801 [12:05:49]save last doc name /storage/0368/doc_00148801 to /storage/kkm_last_doc_name [12:05:49]save OK [12:05:49]Clear old archive folders... [12:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:49]tlvbuf is B6F42520 [12:05:49]SAM_PROTO_ClearQueue [12:05:49]wFMCommunicate request_size=4 [12:05:49]MH_SAM_APDU [12:05:49]CAPDU: 80 09 00 00 [12:05:49]Write to MH i2c: E2 08 00 B6 16 80 09 00 00 00 00 00 00 3E [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:49]Read from MH i2c: E2 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 B6 16 00 90 00 40 [12:05:49]RAPDU: 90 00 [12:05:49]wFMCommunicate OK [12:05:49]SAM_PROTO_ClearQueue done [12:05:49]KKMCreateOFDPacket [12:05:49]OFDProtocolAddRootSTLVToBuf [12:05:49]FM_MakeSignedData [12:05:49]FM_MakeSignedData [12:05:49]SAM_PROTO_SignData [12:05:49]wFMCommunicate request_size=4 [12:05:49]MH_SAM_APDU [12:05:49]CAPDU: 80 0D 01 02 [12:05:49]Write to MH i2c: E2 08 00 B7 16 80 0D 01 02 00 00 00 00 46 [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:49]Read from MH i2c: E2 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 B7 16 00 90 00 41 [12:05:49]RAPDU: 90 00 [12:05:49]wFMCommunicate OK [12:05:49]wFMCommunicate request_size=255 [12:05:49]MH_SAM_APDU [12:05:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 1C 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 41 45 02 00 35 04 06 00 47 [12:05:49]Write to MH i2c: E2 02 01 B8 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 1C 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 41 45 02 00 35 04 06 00 47 00 00 90 [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:49]Read from MH i2c: E2 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 B8 16 00 90 00 42 [12:05:49]RAPDU: 90 00 [12:05:49]wFMCommunicate OK [12:05:49]wFMCommunicate request_size=10 [12:05:49]MH_SAM_APDU [12:05:49]CAPDU: 80 0D 02 02 05 52 8C 2E DE 0F [12:05:49]Write to MH i2c: E2 0D 00 B9 16 80 0D 02 02 05 00 52 8C 2E DE 0F 00 00 4C [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:49]Read from MH i2c: E2 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 B9 16 00 90 00 43 [12:05:49]RAPDU: 90 00 [12:05:49]wFMCommunicate OK [12:05:49]wFMCommunicate request_size=4 [12:05:49]MH_SAM_APDU [12:05:49]CAPDU: 80 0D 03 02 [12:05:49]Write to MH i2c: E2 08 00 BA 16 80 0D 03 02 00 00 00 00 4B [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:49]Read from MH i2c: E2 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 0B 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 0B 00 BA 16 00 63 CF CB 62 B0 78 AB 2D 90 00 AB [12:05:49]RAPDU: 63 CF CB 62 B0 78 AB 2D 90 00 [12:05:49]wFMCommunicate OK [12:05:49]SAM_PROTO_SignData done [12:05:49]FM_MakeSignedData done [12:05:49]CreateOFDProtocolMessage [12:05:49]wFMCommunicate request_size=4 [12:05:49]MH_SAM_APDU [12:05:49]CAPDU: 80 11 00 00 [12:05:49]Write to MH i2c: E2 08 00 BB 16 80 11 00 00 00 00 00 00 4B [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]OFD Sender: No OFD packet to send [12:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:49]Read from MH i2c: E2 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 17 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 17 00 BB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9E [12:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:05:49]wFMCommunicate OK [12:05:49]CreateOFDProtocolMessage done [12:05:49]OFDSenderStorePacket 148801 [12:05:49]StoreOFDPacket docnum=148801 [12:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7C B2 07 01 47 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 1C 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 41 45 02 00 35 04 06 00 47 52 8C 2E DE 0F 63 CF CB 62 B0 78 AB 2D [12:05:49]CheckFolder [12:05:49]dirname=/storage/ofd_packets [12:05:49]CheckFolder done [12:05:49]ProducePacketName [12:05:49]name=ofd_packets/00148801 [12:05:49]NVStorageSaveData ofd_packets/00148801 [12:05:49]File name is /storage/ofd_packets/00148801 [12:05:49]Write 301 bytes [12:05:49]NVStorageSaveData done [12:05:49]OFDSenderStorePacket done [12:05:49]KKMCreateOFDPacket done [12:05:49]NVStorageSaveData kkm_last_timestamp [12:05:49]File name is /storage/kkm_last_timestamp [12:05:49]Write 4 bytes [12:05:49]NVStorageSaveData done [12:05:49]ExternCall_PrintAddStr [12:05:49]wPrintStart [12:05:49]Write to MH i2c: 01 00 00 BC 16 D2 [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 07 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 07 00 BC 16 00 00 00 00 00 FF 0F E7 [12:05:49]RasterBufferAndPrint [12:05:49]line Счет N : (1)979729 [12:05:49]line ИНН: 02508201610067 [12:05:49]line Контрольно-Кассовый Чек [12:05:49]line ПРОДАЖА [12:05:49]line ТРК (МРК, ГНК) : 31 [12:05:49]line Товар: 2710124130 [12:05:49]line Аи-92-К-5 [12:05:49]line 10.470 * 66.90 [12:05:49]line = 700.44 [12:05:49]line НДС 12% НСП 1% [12:05:49]line > о реализуемом товаре [12:05:49]line ОКРУГЛЕНИЕ: -0.44 [12:05:49]line ИТОГО: 700.00 [12:05:49]line Внесено: 700.00 [12:05:49]line СДАЧА: 0.00 [12:05:49]line НСП 1% : 6.20 [12:05:49]line НДС 12% : 74.38 [12:05:49]line Наличными: 700.00 [12:05:49]line Безнал.: 0.00 [12:05:49]line Место: АЗС № 68 "Партнер Нефть" [12:05:49]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:05:49]line СНО: Общий режим [12:05:49]line Чек 140 04.06.2024 12:05 [12:05:49]line Смена: 368 ФФД: 1.0 [12:05:49]line ЗНМ: 0300000035 [12:05:49]line РНМ: 0000000000092720 [12:05:49]line Версия ККМ: 001 [12:05:50]line ФМ: 0000000000875057 [12:05:50]line ФД: 148801 [12:05:50]line ФПД: 78419864772111 [12:05:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120548&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148801&fm=78419864772111&tin=02508201610067®Number=0000000000092720&sum=70000 [12:05:50]OFD Sender: Processing packet 148801 [packets to send 100, broken 99] [12:05:50]ProducePacketName [12:05:50]name=ofd_packets/00148801 [12:05:50]OFD Sender: To server: pG, [12:05:50]CommunicateWithHost lk.salyk.kg:30040 [12:05:50]ConnectInit lk.salyk.kg [12:05:50]written 0, free lines is 4095 [12:05:50]Connected sock=10 [12:05:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7C B2 07 01 47 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 1C 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 41 45 02 00 35 04 06 00 47 52 8C 2E DE 0F 63 CF CB 62 B0 78 AB 2D [12:05:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 78 D0 47 00 EF 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 38 37 35 30 35 37 10 04 04 00 41 45 02 00 F4 03 04 00 40 AA 5E 66 B6 04 01 00 00 F6 54 BC DB 80 08 1F 26 [12:05:50]CommunicateWithHost err = 0 [12:05:50]CheckOFDResponse [12:05:50]1017 (14) - 77093643461234 [12:05:50]1041 (16) - 0000000000875057 [12:05:50]1040 (4) - 148801 [12:05:50]1012 (4) - 04.06.2024 05:46 [12:05:50]1206 (1) - 0 [12:05:50]OFD Sender: Remove packet 148801 [12:05:50]ProducePacketName [12:05:50]name=ofd_packets/00148801 [12:05:50]NVStorageDeleteData [12:05:50]Write to MH i2c: 01 00 00 E7 16 FD [12:05:50]Write i2c OK [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: 01 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: 01 07 00 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 6E 0C 7E [12:05:50]RasterBufferAndPrint [12:05:50]line [12:05:50]line [12:05:50]line [12:05:50]line [12:05:50]line [12:05:50]written 0, free lines is 3185 [12:05:50]MH_Cut [12:05:50]Write to MH i2c: D1 01 00 EE 16 01 D6 [12:05:50]Write i2c OK [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: D1 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: D1 01 00 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: D1 01 00 EE 16 00 D5 [12:05:50]Write to MH i2c: 01 00 00 EF 16 05 [12:05:50]Write i2c OK [12:05:50]MH_I2C_Read... [12:05:50]OFD Sender: No OFD packet to send [12:05:51]*** Cut start [12:05:51]*** Partial cut [12:05:51]*** CUTSNS_PIN = 1 [12:05:51]*** CUTSNS_PIN = 0 [12:05:52]*** Brake cut motor [12:05:52]Read from MH i2c: 01 [12:05:52]MH_I2C_Read... [12:05:52]*** Stop cut motor [12:05:52]*** Cut end [12:05:52]Read from MH i2c: 01 07 00 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: 01 07 00 EF 16 00 00 00 00 00 FF 0F 1A [12:05:52]process_action close_receipt done [12:05:52]requested_data is exist [12:05:52]produce_requested_data [12:05:52]requested_item fm.sn is exist - process it [12:05:52]wFMCommunicate request_size=4 [12:05:52]MH_SAM_APDU [12:05:52]CAPDU: 80 11 00 00 [12:05:52]Write to MH i2c: E2 08 00 F0 16 80 11 00 00 00 00 00 00 80 [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:52]Read from MH i2c: E2 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 17 00 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 17 00 F0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D3 [12:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:05:52]wFMCommunicate OK [12:05:52]requested_item fd.num is exist - process it [12:05:52]SAM_PROTO_GetFieldsCounters [12:05:52]wFMCommunicate request_size=4 [12:05:52]MH_SAM_APDU [12:05:52]CAPDU: 80 13 00 00 [12:05:52]Write to MH i2c: E2 08 00 F1 16 80 13 00 00 00 00 00 00 83 [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:52]Read from MH i2c: E2 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 62 00 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 62 00 F1 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 41 45 02 00 0E 04 04 00 70 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 3C [12:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 41 45 02 00 0E 04 04 00 70 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 [12:05:52]wFMCommunicate OK [12:05:52]SAM_PROTO_GetFieldsCounters done [12:05:52]requested_item shift.num is exist - process it [12:05:52]requested_item shift.opened is exist - process it [12:05:52]req_shift_opened [12:05:52]FM_GetShiftState [12:05:52]SAM_PROTO_GetShiftState [12:05:52]wFMCommunicate request_size=4 [12:05:52]MH_SAM_APDU [12:05:52]CAPDU: 80 13 01 00 [12:05:52]Write to MH i2c: E2 08 00 F2 16 80 13 01 00 00 00 00 00 85 [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:52]Read from MH i2c: E2 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 0E 00 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 0E 00 F2 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 48 [12:05:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:05:52]wFMCommunicate OK [12:05:52]SAM_PROTO_GetShiftState done [12:05:52]FM_GetShiftState done [12:05:52]req_shift_opened done [12:05:52]requested_item shift.open_date is exist - process it [12:05:52]req_shift_open_date [12:05:52]req_shift_open_date done [12:05:52]produce_requested_data done [12:05:52]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148801,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:05:52]process_action_free close_receipt [12:05:52]json_value_free [12:05:52]json_value_free done [12:05:52]process_json_proto returns [12:05:52]Send response to host [12:05:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148801,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:05:52]free response buf [12:05:52]execute_script done [12:05:52]execute_script returns [12:05:52]free content buf [12:05:52]Sock 7.Close socket [12:05:52]Sock 7.Thread stoped [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:55]accept exits with 9 [12:07:55]New connection [12:07:55]New thread 3067379044 created [12:07:55]Thread 3067235684 joined [12:07:55]Waiting for new connection... [12:07:55] Sock 9.Parse request [12:07:55]Sock 9.Check first char [12:07:55]Sock 9.First char is OK [12:07:55]request: POST /json_proto HTTP/1.0 [12:07:55]Method: POST [12:07:55]URL: /json_proto [12:07:55]Method is POST - this is cgi request [12:07:55]url: /json_proto [12:07:55]query_string will be loaded in cgi processing [12:07:55]execute_cgi json_proto POST (null) [12:07:55]execute_cgi path=json_proto method=POST [12:07:55]POST find Content-Length [12:07:55]Host: 172.17.38.4:8080 [12:07:55]Content-Length: 677 [12:07:55]Content-Type: application/json [12:07:55] [12:07:55]POST finish read [12:07:55]Found Content-Length = 677 [12:07:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:55]execute_script... [12:07: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)979730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:55]POST & json_proto [12:07:55]process_json_proto [12:07:55]json parsed OK: [12:07:55]protocol is kg_v1.0 [12:07:55]action value=close_receipt [12:07:55]process_action close_receipt [12:07:55]cmd_close_receipt [12:07:55]MH_GetDate [12:07:55]Write to MH i2c: F0 00 00 F3 16 F8 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: F0 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: F0 09 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: F0 09 00 F3 16 00 9C 03 5F 66 CC 51 87 64 6D [12:07:55]GetLastDocTimeStamp 1717502748 [12:07:55]current date 1717502876 [12:07:55]FM_GetShiftState [12:07:55]SAM_PROTO_GetShiftState [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 13 01 00 [12:07:55]Write to MH i2c: E2 08 00 F4 16 80 13 01 00 00 00 00 00 87 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 0E 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 0E 00 F4 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4A [12:07:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:07:55]wFMCommunicate OK [12:07:55]SAM_PROTO_GetShiftState done [12:07:55]FM_GetShiftState done [12:07:55]opened in 1717460629 [12:07:55]opened+sec_in_day 1717547029 [12:07:55]quantity*price = 20003 [12:07:55]sum+1 = 20004 [12:07:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 141 04.06.2024 12:07 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148802 ФПД: 51992490305866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120756&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148802&fm=51992490305866&tin=02508201610067®Number=0000000000092720&sum=20000 [12:07:56]StoreToDocumentArchive [12:07:56]shift 368 fd 148802 [12:07:56]save to /storage/0368/doc_00148802 [12:07:56]save last doc name /storage/0368/doc_00148802 to /storage/kkm_last_doc_name [12:07:56]save OK [12:07:56]Clear old archive folders... [12:07:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:56]tlvbuf is B6F42B40 [12:07:56]SAM_PROTO_ClearQueue [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 09 00 00 [12:07:56]Write to MH i2c: E2 08 00 01 17 80 09 00 00 00 00 00 00 8A [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:56]Read from MH i2c: E2 03 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 03 00 01 17 00 90 00 8C [12:07:56]RAPDU: 90 00 [12:07:56]wFMCommunicate OK [12:07:56]SAM_PROTO_ClearQueue done [12:07:56]KKMCreateOFDPacket [12:07:56]OFDProtocolAddRootSTLVToBuf [12:07:56]FM_MakeSignedData [12:07:56]FM_MakeSignedData [12:07:56]SAM_PROTO_SignData [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 0D 01 02 [12:07:56]Write to MH i2c: E2 08 00 02 17 80 0D 01 02 00 00 00 00 92 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 03 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 03 00 02 17 00 90 00 8D [12:07:56]RAPDU: 90 00 [12:07:56]wFMCommunicate OK [12:07:56]wFMCommunicate request_size=255 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 9C 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 42 45 02 00 35 04 06 00 2F [12:07:56]Write to MH i2c: E2 02 01 03 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 9C 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 42 45 02 00 35 04 06 00 2F 00 00 F8 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 03 17 00 90 00 8E [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]wFMCommunicate request_size=10 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 02 02 05 49 71 EA 69 4A [12:07:57]Write to MH i2c: E2 0D 00 04 17 80 0D 02 02 05 00 49 71 EA 69 4A 00 00 F6 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 04 17 00 90 00 8F [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 03 02 [12:07:57]Write to MH i2c: E2 08 00 05 17 80 0D 03 02 00 00 00 00 97 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0B 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0B 00 05 17 00 5E B2 35 62 2D C1 89 4A 90 00 00 [12:07:57]RAPDU: 5E B2 35 62 2D C1 89 4A 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_SignData done [12:07:57]FM_MakeSignedData done [12:07:57]CreateOFDProtocolMessage [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 11 00 00 [12:07:57]Write to MH i2c: E2 08 00 06 17 80 11 00 00 00 00 00 00 97 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 17 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 17 00 06 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EA [12:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:07:57]wFMCommunicate OK [12:07:57]CreateOFDProtocolMessage done [12:07:57]OFDSenderStorePacket 148802 [12:07:57]StoreOFDPacket docnum=148802 [12:07:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 69 89 07 01 EC 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 9C 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 42 45 02 00 35 04 06 00 2F 49 71 EA 69 4A 5E B2 35 62 2D C1 89 4A [12:07:57]CheckFolder [12:07:57]dirname=/storage/ofd_packets [12:07:57]CheckFolder done [12:07:57]ProducePacketName [12:07:57]name=ofd_packets/00148802 [12:07:57]NVStorageSaveData ofd_packets/00148802 [12:07:57]File name is /storage/ofd_packets/00148802 [12:07:57]Write 301 bytes [12:07:57]NVStorageSaveData done [12:07:57]OFDSenderStorePacket done [12:07:57]KKMCreateOFDPacket done [12:07:57]NVStorageSaveData kkm_last_timestamp [12:07:57]File name is /storage/kkm_last_timestamp [12:07:57]Write 4 bytes [12:07:57]NVStorageSaveData done [12:07:57]ExternCall_PrintAddStr [12:07:57]wPrintStart [12:07:57]Write to MH i2c: 01 00 00 07 17 1E [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: 01 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: 01 07 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: 01 07 00 07 17 00 00 00 00 00 FF 0F 33 [12:07:57]RasterBufferAndPrint [12:07:57]line Счет N : (1)979730 [12:07:57]line ИНН: 02508201610067 [12:07:57]line Контрольно-Кассовый Чек [12:07:57]line ПРОДАЖА [12:07:57]line ТРК (МРК, ГНК) : 12 [12:07:57]line Товар: 2710124130 [12:07:57]line Аи-92-К-5 [12:07:57]line 2.990 * 66.90 [12:07:57]line = 200.03 [12:07:57]line НДС 12% НСП 1% [12:07:57]line > о реализуемом товаре [12:07:57]line ОКРУГЛЕНИЕ: -0.03 [12:07:57]line ИТОГО: 200.00 [12:07:57]line Внесено: 200.00 [12:07:57]line СДАЧА: 0.00 [12:07:57]line НСП 1% : 1.77 [12:07:57]line НДС 12% : 21.24 [12:07:57]line Наличными: 200.00 [12:07:57]line Безнал.: 0.00 [12:07:57]line Место: АЗС № 68 "Партнер Нефть" [12:07:57]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:07:57]line СНО: Общий режим [12:07:57]line Чек 141 04.06.2024 12:07 [12:07:57]line Смена: 368 ФФД: 1.0 [12:07:57]line ЗНМ: 0300000035 [12:07:57]line РНМ: 0000000000092720 [12:07:57]line Версия ККМ: 001 [12:07:57]line ФМ: 0000000000875057 [12:07:57]line ФД: 148802 [12:07:57]line ФПД: 51992490305866 [12:07:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120756&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148802&fm=51992490305866&tin=02508201610067®Number=0000000000092720&sum=20000 [12:07:57]OFD Sender: Processing packet 148802 [packets to send 100, broken 99] [12:07:57]ProducePacketName [12:07:57]name=ofd_packets/00148802 [12:07:57]OFD Sender: To server: pG, [12:07:57]CommunicateWithHost lk.salyk.kg:30040 [12:07:57]ConnectInit lk.salyk.kg [12:07:57]written 0, free lines is 4095 [12:07:57]Connected sock=10 [12:07:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 69 89 07 01 EC 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 9C 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 42 45 02 00 35 04 06 00 2F 49 71 EA 69 4A 5E B2 35 62 2D C1 89 4A [12:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 92 E7 47 00 75 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 38 37 35 30 35 37 10 04 04 00 42 45 02 00 F4 03 04 00 C0 AA 5E 66 B6 04 01 00 00 9E 1B 19 0C 4A 94 A0 35 [12:07:57]CommunicateWithHost err = 0 [12:07:57]CheckOFDResponse [12:07:57]1017 (14) - 77093643461234 [12:07:57]1041 (16) - 0000000000875057 [12:07:57]1040 (4) - 148802 [12:07:57]1012 (4) - 04.06.2024 05:48 [12:07:57]1206 (1) - 0 [12:07:57]OFD Sender: Remove packet 148802 [12:07:57]ProducePacketName [12:07:57]name=ofd_packets/00148802 [12:07:57]NVStorageDeleteData [12:07:58]Write to MH i2c: 01 00 00 32 17 49 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 32 17 00 00 00 00 00 68 0C C4 [12:07:58]RasterBufferAndPrint [12:07:58]line [12:07:58]line [12:07:58]line [12:07:58]line [12:07:58]line [12:07:58]written 0, free lines is 3180 [12:07:58]MH_Cut [12:07:58]Write to MH i2c: D1 01 00 39 17 01 22 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: D1 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: D1 01 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: D1 01 00 39 17 00 21 [12:07:58]Write to MH i2c: 01 00 00 3A 17 51 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]OFD Sender: No OFD packet to send [12:07:59]*** Cut start [12:07:59]*** Partial cut [12:07:59]*** CUTSNS_PIN = 1 [12:07:59]*** CUTSNS_PIN = 0 [12:07:59]*** Brake cut motor [12:08:00]Read from MH i2c: 01 [12:08:00]MH_I2C_Read... [12:08:00]*** Stop cut motor [12:08:00]*** Cut end [12:08:00]Read from MH i2c: 01 07 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: 01 07 00 3A 17 00 00 00 00 00 FF 0F 66 [12:08:00]process_action close_receipt done [12:08:00]requested_data is exist [12:08:00]produce_requested_data [12:08:00]requested_item fm.sn is exist - process it [12:08:00]wFMCommunicate request_size=4 [12:08:00]MH_SAM_APDU [12:08:00]CAPDU: 80 11 00 00 [12:08:00]Write to MH i2c: E2 08 00 3B 17 80 11 00 00 00 00 00 00 CC [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:00]Read from MH i2c: E2 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 17 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 17 00 3B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1F [12:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:08:00]wFMCommunicate OK [12:08:00]requested_item fd.num is exist - process it [12:08:00]SAM_PROTO_GetFieldsCounters [12:08:00]wFMCommunicate request_size=4 [12:08:00]MH_SAM_APDU [12:08:00]CAPDU: 80 13 00 00 [12:08:00]Write to MH i2c: E2 08 00 3C 17 80 13 00 00 00 00 00 00 CF [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:00]Read from MH i2c: E2 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 62 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 62 00 3C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 42 45 02 00 0E 04 04 00 70 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 8C [12:08:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 42 45 02 00 0E 04 04 00 70 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 [12:08:00]wFMCommunicate OK [12:08:00]SAM_PROTO_GetFieldsCounters done [12:08:00]requested_item shift.num is exist - process it [12:08:00]requested_item shift.opened is exist - process it [12:08:00]req_shift_opened [12:08:00]FM_GetShiftState [12:08:00]SAM_PROTO_GetShiftState [12:08:00]wFMCommunicate request_size=4 [12:08:00]MH_SAM_APDU [12:08:00]CAPDU: 80 13 01 00 [12:08:00]Write to MH i2c: E2 08 00 3D 17 80 13 01 00 00 00 00 00 D1 [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:00]Read from MH i2c: E2 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 0E 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 0E 00 3D 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 94 [12:08:00]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:08:00]wFMCommunicate OK [12:08:00]SAM_PROTO_GetShiftState done [12:08:00]FM_GetShiftState done [12:08:00]req_shift_opened done [12:08:00]requested_item shift.open_date is exist - process it [12:08:00]req_shift_open_date [12:08:00]req_shift_open_date done [12:08:00]produce_requested_data done [12:08:00]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148802,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:08:00]process_action_free close_receipt [12:08:00]json_value_free [12:08:00]json_value_free done [12:08:00]process_json_proto returns [12:08:00]Send response to host [12:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148802,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:08:00]free response buf [12:08:00]execute_script done [12:08:00]execute_script returns [12:08:00]free content buf [12:08:00]Sock 9.Close socket [12:08:00]Sock 9.Thread stoped [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:29]accept exits with 7 [12:08:29]New connection [12:08:29]New thread 3067235684 created [12:08:29]Thread 3067379044 joined [12:08:29]Waiting for new connection... [12:08:29] Sock 7.Parse request [12:08:29]Sock 7.Check first char [12:08:29]Sock 7.First char is OK [12:08:29]request: POST /json_proto HTTP/1.0 [12:08:29]Method: POST [12:08:29]URL: /json_proto [12:08:29]Method is POST - this is cgi request [12:08:29]url: /json_proto [12:08:29]query_string will be loaded in cgi processing [12:08:29]execute_cgi json_proto POST (null) [12:08:29]execute_cgi path=json_proto method=POST [12:08:29]POST find Content-Length [12:08:29]Host: 172.17.38.4:8080 [12:08:29]Content-Length: 677 [12:08:29]Content-Type: application/json [12:08:29] [12:08:29]POST finish read [12:08:29]Found Content-Length = 677 [12:08:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:29]execute_script... [12:08:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:29]POST & json_proto [12:08:29]process_json_proto [12:08:29]json parsed OK: [12:08:29]protocol is kg_v1.0 [12:08:29]action value=close_receipt [12:08:29]process_action close_receipt [12:08:29]cmd_close_receipt [12:08:29]MH_GetDate [12:08:29]Write to MH i2c: F0 00 00 3E 17 44 [12:08:29]Write i2c OK [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: F0 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: F0 09 00 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: F0 09 00 3E 17 00 BE 03 5F 66 CC 51 87 64 DB [12:08:29]GetLastDocTimeStamp 1717502876 [12:08:29]current date 1717502910 [12:08:29]FM_GetShiftState [12:08:29]SAM_PROTO_GetShiftState [12:08:29]wFMCommunicate request_size=4 [12:08:29]MH_SAM_APDU [12:08:29]CAPDU: 80 13 01 00 [12:08:29]Write to MH i2c: E2 08 00 3F 17 80 13 01 00 00 00 00 00 D3 [12:08:29]Write i2c OK [12:08:29]MH_I2C_Read... [12:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:29]Read from MH i2c: E2 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: E2 0E 00 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: E2 0E 00 3F 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 96 [12:08:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:08:29]wFMCommunicate OK [12:08:29]SAM_PROTO_GetShiftState done [12:08:29]FM_GetShiftState done [12:08:29]opened in 1717460629 [12:08:29]opened+sec_in_day 1717547029 [12:08:29]quantity*price = 30038 [12:08:29]sum+1 = 30039 [12:08:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 142 04.06.2024 12:08 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148803 ФПД: 211184556071497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120830&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148803&fm=211184556071497&tin=02508201610067®Number=0000000000092720&sum=30000 [12:08:31]StoreToDocumentArchive [12:08:31]shift 368 fd 148803 [12:08:31]save to /storage/0368/doc_00148803 [12:08:31]save last doc name /storage/0368/doc_00148803 to /storage/kkm_last_doc_name [12:08:31]save OK [12:08:31]Clear old archive folders... [12:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:31]tlvbuf is 00FC0770 [12:08:31]SAM_PROTO_ClearQueue [12:08:31]wFMCommunicate request_size=4 [12:08:31]MH_SAM_APDU [12:08:31]CAPDU: 80 09 00 00 [12:08:31]Write to MH i2c: E2 08 00 4C 17 80 09 00 00 00 00 00 00 D5 [12:08:31]Write i2c OK [12:08:31]MH_I2C_Read... [12:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:31]Read from MH i2c: E2 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 03 00 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 03 00 4C 17 00 90 00 D7 [12:08:31]RAPDU: 90 00 [12:08:31]wFMCommunicate OK [12:08:31]SAM_PROTO_ClearQueue done [12:08:31]KKMCreateOFDPacket [12:08:31]OFDProtocolAddRootSTLVToBuf [12:08:31]FM_MakeSignedData [12:08:31]FM_MakeSignedData [12:08:31]SAM_PROTO_SignData [12:08:31]wFMCommunicate request_size=4 [12:08:31]MH_SAM_APDU [12:08:31]CAPDU: 80 0D 01 02 [12:08:31]Write to MH i2c: E2 08 00 4D 17 80 0D 01 02 00 00 00 00 DD [12:08:31]Write i2c OK [12:08:31]MH_I2C_Read... [12:08:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:31]Read from MH i2c: E2 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 03 00 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 03 00 4D 17 00 90 00 D8 [12:08:31]RAPDU: 90 00 [12:08:31]wFMCommunicate OK [12:08:31]wFMCommunicate request_size=255 [12:08:31]MH_SAM_APDU [12:08:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 BE 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 43 45 02 00 35 04 06 00 C0 [12:08:31]Write to MH i2c: E2 02 01 4E 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 BE 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 43 45 02 00 35 04 06 00 C0 00 00 2A [12:08:31]Write i2c OK [12:08:31]MH_I2C_Read... [12:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:31]Read from MH i2c: E2 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 03 00 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 03 00 4E 17 00 90 00 D9 [12:08:31]RAPDU: 90 00 [12:08:31]wFMCommunicate OK [12:08:31]wFMCommunicate request_size=10 [12:08:31]MH_SAM_APDU [12:08:31]CAPDU: 80 0D 02 02 05 12 3C 72 5A 49 [12:08:31]Write to MH i2c: E2 0D 00 4F 17 80 0D 02 02 05 00 12 3C 72 5A 49 00 00 4D [12:08:31]Write i2c OK [12:08:31]MH_I2C_Read... [12:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:31]Read from MH i2c: E2 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 03 00 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 03 00 4F 17 00 90 00 DA [12:08:31]RAPDU: 90 00 [12:08:31]wFMCommunicate OK [12:08:31]wFMCommunicate request_size=4 [12:08:31]MH_SAM_APDU [12:08:31]CAPDU: 80 0D 03 02 [12:08:31]Write to MH i2c: E2 08 00 50 17 80 0D 03 02 00 00 00 00 E2 [12:08:31]Write i2c OK [12:08:31]MH_I2C_Read... [12:08:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:31]Read from MH i2c: E2 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 0B 00 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 0B 00 50 17 00 78 E4 8A 94 D7 13 A3 18 90 00 02 [12:08:31]RAPDU: 78 E4 8A 94 D7 13 A3 18 90 00 [12:08:31]wFMCommunicate OK [12:08:31]SAM_PROTO_SignData done [12:08:31]FM_MakeSignedData done [12:08:31]CreateOFDProtocolMessage [12:08:31]wFMCommunicate request_size=4 [12:08:31]MH_SAM_APDU [12:08:31]CAPDU: 80 11 00 00 [12:08:31]Write to MH i2c: E2 08 00 51 17 80 11 00 00 00 00 00 00 E2 [12:08:31]Write i2c OK [12:08:31]MH_I2C_Read... [12:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:31]Read from MH i2c: E2 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 17 00 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: E2 17 00 51 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 35 [12:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:08:31]wFMCommunicate OK [12:08:31]CreateOFDProtocolMessage done [12:08:31]OFDSenderStorePacket 148803 [12:08:31]StoreOFDPacket docnum=148803 [12:08:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AE 1D 07 01 D1 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BE 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 43 45 02 00 35 04 06 00 C0 12 3C 72 5A 49 78 E4 8A 94 D7 13 A3 18 [12:08:31]CheckFolder [12:08:31]dirname=/storage/ofd_packets [12:08:31]CheckFolder done [12:08:31]ProducePacketName [12:08:31]name=ofd_packets/00148803 [12:08:31]NVStorageSaveData ofd_packets/00148803 [12:08:31]File name is /storage/ofd_packets/00148803 [12:08:31]Write 301 bytes [12:08:31]NVStorageSaveData done [12:08:31]OFDSenderStorePacket done [12:08:31]KKMCreateOFDPacket done [12:08:31]NVStorageSaveData kkm_last_timestamp [12:08:31]File name is /storage/kkm_last_timestamp [12:08:31]Write 4 bytes [12:08:31]NVStorageSaveData done [12:08:31]ExternCall_PrintAddStr [12:08:31]wPrintStart [12:08:31]Write to MH i2c: 01 00 00 52 17 69 [12:08:31]Write i2c OK [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: 01 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: 01 07 00 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: 01 07 00 52 17 00 00 00 00 00 FF 0F 7E [12:08:31]RasterBufferAndPrint [12:08:31]line Счет N : (1)979731 [12:08:31]line ИНН: 02508201610067 [12:08:31]line Контрольно-Кассовый Чек [12:08:31]line ПРОДАЖА [12:08:31]line ТРК (МРК, ГНК) : 31 [12:08:31]line Товар: 2710124130 [12:08:31]line Аи-92-К-5 [12:08:31]line 4.490 * 66.90 [12:08:31]line = 300.38 [12:08:31]line НДС 12% НСП 1% [12:08:31]line > о реализуемом товаре [12:08:31]line ОКРУГЛЕНИЕ: -0.38 [12:08:31]line ИТОГО: 300.00 [12:08:31]line Внесено: 300.00 [12:08:31]line СДАЧА: 0.00 [12:08:31]line НСП 1% : 2.66 [12:08:31]line НДС 12% : 31.90 [12:08:31]line Наличными: 300.00 [12:08:31]line Безнал.: 0.00 [12:08:31]line Место: АЗС № 68 "Партнер Нефть" [12:08:31]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:08:31]line СНО: Общий режим [12:08:31]line Чек 142 04.06.2024 12:08 [12:08:31]line Смена: 368 ФФД: 1.0 [12:08:31]line ЗНМ: 0300000035 [12:08:31]line РНМ: 0000000000092720 [12:08:31]line Версия ККМ: 001 [12:08:31]line ФМ: 0000000000875057 [12:08:31]line ФД: 148803 [12:08:31]line ФПД: 211184556071497 [12:08:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120830&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148803&fm=211184556071497&tin=02508201610067®Number=0000000000092720&sum=30000 [12:08:31]OFD Sender: Processing packet 148803 [packets to send 100, broken 99] [12:08:31]ProducePacketName [12:08:31]name=ofd_packets/00148803 [12:08:31]OFD Sender: To server: pG, [12:08:31]CommunicateWithHost lk.salyk.kg:30040 [12:08:31]ConnectInit lk.salyk.kg [12:08:31]written 0, free lines is 4095 [12:08:31]Connected sock=10 [12:08:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AE 1D 07 01 D1 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BE 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 43 45 02 00 35 04 06 00 C0 12 3C 72 5A 49 78 E4 8A 94 D7 13 A3 18 [12:08:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 38 DD 47 00 F5 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 38 37 35 30 35 37 10 04 04 00 43 45 02 00 F4 03 04 00 E2 AA 5E 66 B6 04 01 00 00 AC 96 09 2C EA 19 05 29 [12:08:32]CommunicateWithHost err = 0 [12:08:32]CheckOFDResponse [12:08:32]1017 (14) - 77093643461234 [12:08:32]1041 (16) - 0000000000875057 [12:08:32]1040 (4) - 148803 [12:08:32]1012 (4) - 04.06.2024 05:49 [12:08:32]1206 (1) - 0 [12:08:32]OFD Sender: Remove packet 148803 [12:08:32]ProducePacketName [12:08:32]name=ofd_packets/00148803 [12:08:32]NVStorageDeleteData [12:08:32]Write to MH i2c: 01 00 00 7D 17 94 [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: 01 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: 01 07 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: 01 07 00 7D 17 00 00 00 00 00 6E 0C 15 [12:08:32]RasterBufferAndPrint [12:08:32]line [12:08:32]line [12:08:32]line [12:08:32]line [12:08:32]line [12:08:32]written 0, free lines is 3184 [12:08:32]MH_Cut [12:08:32]Write to MH i2c: D1 01 00 84 17 01 6D [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: D1 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: D1 01 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: D1 01 00 84 17 00 6C [12:08:32]Write to MH i2c: 01 00 00 85 17 9C [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]OFD Sender: No OFD packet to send [12:08:33]*** Cut start [12:08:33]*** Partial cut [12:08:33]*** CUTSNS_PIN = 1 [12:08:33]*** CUTSNS_PIN = 0 [12:08:33]*** Brake cut motor [12:08:34]Read from MH i2c: 01 [12:08:34]MH_I2C_Read... [12:08:34]*** Stop cut motor [12:08:34]*** Cut end [12:08:34]Read from MH i2c: 01 07 00 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: 01 07 00 85 17 00 00 00 00 00 FF 0F B1 [12:08:34]process_action close_receipt done [12:08:34]requested_data is exist [12:08:34]produce_requested_data [12:08:34]requested_item fm.sn is exist - process it [12:08:34]wFMCommunicate request_size=4 [12:08:34]MH_SAM_APDU [12:08:34]CAPDU: 80 11 00 00 [12:08:34]Write to MH i2c: E2 08 00 86 17 80 11 00 00 00 00 00 00 17 [12:08:34]Write i2c OK [12:08:34]MH_I2C_Read... [12:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:34]Read from MH i2c: E2 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: E2 17 00 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: E2 17 00 86 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6A [12:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:08:34]wFMCommunicate OK [12:08:34]requested_item fd.num is exist - process it [12:08:34]SAM_PROTO_GetFieldsCounters [12:08:34]wFMCommunicate request_size=4 [12:08:34]MH_SAM_APDU [12:08:34]CAPDU: 80 13 00 00 [12:08:34]Write to MH i2c: E2 08 00 87 17 80 13 00 00 00 00 00 00 1A [12:08:34]Write i2c OK [12:08:34]MH_I2C_Read... [12:08:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:34]Read from MH i2c: E2 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: E2 62 00 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: E2 62 00 87 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 43 45 02 00 0E 04 04 00 70 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 DB [12:08:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 43 45 02 00 0E 04 04 00 70 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 [12:08:34]wFMCommunicate OK [12:08:34]SAM_PROTO_GetFieldsCounters done [12:08:34]requested_item shift.num is exist - process it [12:08:34]requested_item shift.opened is exist - process it [12:08:34]req_shift_opened [12:08:34]FM_GetShiftState [12:08:34]SAM_PROTO_GetShiftState [12:08:34]wFMCommunicate request_size=4 [12:08:34]MH_SAM_APDU [12:08:34]CAPDU: 80 13 01 00 [12:08:34]Write to MH i2c: E2 08 00 88 17 80 13 01 00 00 00 00 00 1C [12:08:34]Write i2c OK [12:08:34]MH_I2C_Read... [12:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:34]Read from MH i2c: E2 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: E2 0E 00 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: E2 0E 00 88 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DF [12:08:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:08:34]wFMCommunicate OK [12:08:34]SAM_PROTO_GetShiftState done [12:08:34]FM_GetShiftState done [12:08:34]req_shift_opened done [12:08:34]requested_item shift.open_date is exist - process it [12:08:34]req_shift_open_date [12:08:34]req_shift_open_date done [12:08:34]produce_requested_data done [12:08:34]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148803,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:08:34]process_action_free close_receipt [12:08:34]json_value_free [12:08:34]json_value_free done [12:08:34]process_json_proto returns [12:08:34]Send response to host [12:08:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148803,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:08:34]free response buf [12:08:34]execute_script done [12:08:34]execute_script returns [12:08:34]free content buf [12:08:34]Sock 7.Close socket [12:08:34]Sock 7.Thread stoped [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:47]accept exits with 9 [12:08:47]New connection [12:08:47]New thread 3067379044 created [12:08:47]Thread 3067235684 joined [12:08:47]Waiting for new connection... [12:08:47] Sock 9.Parse request [12:08:47]Sock 9.Check first char [12:08:47]Sock 9.First char is OK [12:08:47]request: POST /json_proto HTTP/1.0 [12:08:47]Method: POST [12:08:47]URL: /json_proto [12:08:47]Method is POST - this is cgi request [12:08:47]url: /json_proto [12:08:47]query_string will be loaded in cgi processing [12:08:47]execute_cgi json_proto POST (null) [12:08:47]execute_cgi path=json_proto method=POST [12:08:47]POST find Content-Length [12:08:47]Host: 172.17.38.4:8080 [12:08:47]Content-Length: 682 [12:08:47]Content-Type: application/json [12:08:47] [12:08:47]POST finish read [12:08:47]Found Content-Length = 682 [12:08:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:47]execute_script... [12:08: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)979732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:47]POST & json_proto [12:08:47]process_json_proto [12:08:47]json parsed OK: [12:08:47]protocol is kg_v1.0 [12:08:47]action value=close_receipt [12:08:47]process_action close_receipt [12:08:47]cmd_close_receipt [12:08:47]MH_GetDate [12:08:47]Write to MH i2c: F0 00 00 89 17 8F [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: F0 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: F0 09 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: F0 09 00 89 17 00 D0 03 5F 66 CC 51 87 64 38 [12:08:47]GetLastDocTimeStamp 1717502910 [12:08:47]current date 1717502928 [12:08:47]FM_GetShiftState [12:08:47]SAM_PROTO_GetShiftState [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 13 01 00 [12:08:47]Write to MH i2c: E2 08 00 8A 17 80 13 01 00 00 00 00 00 1E [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 0E 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 0E 00 8A 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E1 [12:08:47]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:08:47]wFMCommunicate OK [12:08:47]SAM_PROTO_GetShiftState done [12:08:47]FM_GetShiftState done [12:08:47]opened in 1717460629 [12:08:47]opened+sec_in_day 1717547029 [12:08:47]quantity*price = 100015 [12:08:47]sum+1 = 100017 [12:08:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 143 04.06.2024 12:08 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148804 ФПД: 235126691352061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120848&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148804&fm=235126691352061&tin=02508201610067®Number=0000000000092720&sum=100000 [12:08:49]StoreToDocumentArchive [12:08:49]shift 368 fd 148804 [12:08:49]save to /storage/0368/doc_00148804 [12:08:49]save last doc name /storage/0368/doc_00148804 to /storage/kkm_last_doc_name [12:08:49]save OK [12:08:49]Clear old archive folders... [12:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:49]tlvbuf is B6FC0650 [12:08:49]SAM_PROTO_ClearQueue [12:08:49]wFMCommunicate request_size=4 [12:08:49]MH_SAM_APDU [12:08:49]CAPDU: 80 09 00 00 [12:08:49]Write to MH i2c: E2 08 00 97 17 80 09 00 00 00 00 00 00 20 [12:08:49]Write i2c OK [12:08:49]MH_I2C_Read... [12:08:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:49]Read from MH i2c: E2 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 03 00 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 03 00 97 17 00 90 00 22 [12:08:49]RAPDU: 90 00 [12:08:49]wFMCommunicate OK [12:08:49]SAM_PROTO_ClearQueue done [12:08:49]KKMCreateOFDPacket [12:08:49]OFDProtocolAddRootSTLVToBuf [12:08:49]FM_MakeSignedData [12:08:49]FM_MakeSignedData [12:08:49]SAM_PROTO_SignData [12:08:49]wFMCommunicate request_size=4 [12:08:49]MH_SAM_APDU [12:08:49]CAPDU: 80 0D 01 02 [12:08:49]Write to MH i2c: E2 08 00 98 17 80 0D 01 02 00 00 00 00 28 [12:08:49]Write i2c OK [12:08:49]MH_I2C_Read... [12:08:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:49]Read from MH i2c: E2 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 03 00 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 03 00 98 17 00 90 00 23 [12:08:49]RAPDU: 90 00 [12:08:49]wFMCommunicate OK [12:08:49]wFMCommunicate request_size=255 [12:08:49]MH_SAM_APDU [12:08:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D0 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 44 45 02 00 35 04 06 00 D5 [12:08:49]Write to MH i2c: E2 02 01 99 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D0 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 44 45 02 00 35 04 06 00 D5 00 00 A4 [12:08:49]Write i2c OK [12:08:49]MH_I2C_Read... [12:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:49]Read from MH i2c: E2 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 03 00 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 03 00 99 17 00 90 00 24 [12:08:49]RAPDU: 90 00 [12:08:49]wFMCommunicate OK [12:08:49]wFMCommunicate request_size=10 [12:08:49]MH_SAM_APDU [12:08:49]CAPDU: 80 0D 02 02 05 D8 B2 EA 4D FD [12:08:49]Write to MH i2c: E2 0D 00 9A 17 80 0D 02 02 05 00 D8 B2 EA 4D FD 00 00 F3 [12:08:49]Write i2c OK [12:08:49]MH_I2C_Read... [12:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:49]Read from MH i2c: E2 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 03 00 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 03 00 9A 17 00 90 00 25 [12:08:49]RAPDU: 90 00 [12:08:49]wFMCommunicate OK [12:08:49]wFMCommunicate request_size=4 [12:08:49]MH_SAM_APDU [12:08:49]CAPDU: 80 0D 03 02 [12:08:49]Write to MH i2c: E2 08 00 9B 17 80 0D 03 02 00 00 00 00 2D [12:08:49]Write i2c OK [12:08:49]MH_I2C_Read... [12:08:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:49]Read from MH i2c: E2 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 0B 00 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 0B 00 9B 17 00 DE 3D 82 AF 3C 94 4E 77 90 00 0F [12:08:49]RAPDU: DE 3D 82 AF 3C 94 4E 77 90 00 [12:08:49]wFMCommunicate OK [12:08:49]SAM_PROTO_SignData done [12:08:49]FM_MakeSignedData done [12:08:49]CreateOFDProtocolMessage [12:08:49]wFMCommunicate request_size=4 [12:08:49]MH_SAM_APDU [12:08:49]CAPDU: 80 11 00 00 [12:08:49]Write to MH i2c: E2 08 00 9C 17 80 11 00 00 00 00 00 00 2D [12:08:49]Write i2c OK [12:08:49]MH_I2C_Read... [12:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:49]Read from MH i2c: E2 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 17 00 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 17 00 9C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 80 [12:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:08:49]wFMCommunicate OK [12:08:49]CreateOFDProtocolMessage done [12:08:49]OFDSenderStorePacket 148804 [12:08:49]StoreOFDPacket docnum=148804 [12:08:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 0A D3 07 01 EC 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 D0 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 44 45 02 00 35 04 06 00 D5 D8 B2 EA 4D FD DE 3D 82 AF 3C 94 4E 77 [12:08:49]CheckFolder [12:08:49]dirname=/storage/ofd_packets [12:08:49]CheckFolder done [12:08:49]ProducePacketName [12:08:49]name=ofd_packets/00148804 [12:08:49]NVStorageSaveData ofd_packets/00148804 [12:08:49]File name is /storage/ofd_packets/00148804 [12:08:49]Write 301 bytes [12:08:49]NVStorageSaveData done [12:08:49]OFDSenderStorePacket done [12:08:49]KKMCreateOFDPacket done [12:08:49]NVStorageSaveData kkm_last_timestamp [12:08:49]File name is /storage/kkm_last_timestamp [12:08:49]Write 4 bytes [12:08:49]NVStorageSaveData done [12:08:49]ExternCall_PrintAddStr [12:08:49]wPrintStart [12:08:49]Write to MH i2c: 01 00 00 9D 17 B4 [12:08:49]Write i2c OK [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: 01 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: 01 07 00 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: 01 07 00 9D 17 00 00 00 00 00 FF 0F C9 [12:08:49]RasterBufferAndPrint [12:08:49]line Счет N : (1)979732 [12:08:49]line ИНН: 02508201610067 [12:08:49]line Контрольно-Кассовый Чек [12:08:49]line ПРОДАЖА [12:08:49]line ТРК (МРК, ГНК) : 41 [12:08:49]line Товар: 2710124130 [12:08:49]line Аи-92-К-5 [12:08:49]line 14.950 * 66.90 [12:08:49]line = 1000.16 [12:08:49]line НДС 12% НСП 1% [12:08:49]line > о реализуемом товаре [12:08:49]line ОКРУГЛЕНИЕ: -0.16 [12:08:49]line ИТОГО: 1000.00 [12:08:49]line Внесено: 1000.00 [12:08:49]line СДАЧА: 0.00 [12:08:49]line НСП 1% : 8.85 [12:08:49]line НДС 12% : 106.21 [12:08:49]line Наличными: 1000.00 [12:08:49]line Безнал.: 0.00 [12:08:49]line Место: АЗС № 68 "Партнер Нефть" [12:08:49]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:08:49]line СНО: Общий режим [12:08:49]line Чек 143 04.06.2024 12:08 [12:08:49]line Смена: 368 ФФД: 1.0 [12:08:49]line ЗНМ: 0300000035 [12:08:49]line РНМ: 0000000000092720 [12:08:49]line Версия ККМ: 001 [12:08:49]line ФМ: 0000000000875057 [12:08:49]line ФД: 148804 [12:08:49]line ФПД: 235126691352061 [12:08:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T120848&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148804&fm=235126691352061&tin=02508201610067®Number=0000000000092720&sum=100000 [12:08:49]OFD Sender: Processing packet 148804 [packets to send 100, broken 99] [12:08:49]ProducePacketName [12:08:49]name=ofd_packets/00148804 [12:08:49]OFD Sender: To server: pG, [12:08:49]CommunicateWithHost lk.salyk.kg:30040 [12:08:49]ConnectInit lk.salyk.kg [12:08:49]written 0, free lines is 4095 [12:08:50]Connected sock=10 [12:08:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 0A D3 07 01 EC 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 D0 03 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 44 45 02 00 35 04 06 00 D5 D8 B2 EA 4D FD DE 3D 82 AF 3C 94 4E 77 [12:08:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8C 50 47 00 00 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 38 37 35 30 35 37 10 04 04 00 44 45 02 00 F4 03 04 00 F4 AA 5E 66 B6 04 01 00 00 6F AE 7A 85 BE C9 70 C0 [12:08:50]CommunicateWithHost err = 0 [12:08:50]CheckOFDResponse [12:08:50]1017 (14) - 77093643461234 [12:08:50]1041 (16) - 0000000000875057 [12:08:50]1040 (4) - 148804 [12:08:50]1012 (4) - 04.06.2024 05:49 [12:08:50]1206 (1) - 0 [12:08:50]OFD Sender: Remove packet 148804 [12:08:50]ProducePacketName [12:08:50]name=ofd_packets/00148804 [12:08:50]NVStorageDeleteData [12:08:50]Write to MH i2c: 01 00 00 C8 17 DF [12:08:50]Write i2c OK [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: 01 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: 01 07 00 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: 01 07 00 C8 17 00 00 00 00 00 71 0C 63 [12:08:50]RasterBufferAndPrint [12:08:50]line [12:08:50]line [12:08:50]line [12:08:50]line [12:08:50]line [12:08:50]written 0, free lines is 3188 [12:08:50]MH_Cut [12:08:50]Write to MH i2c: D1 01 00 CF 17 01 B8 [12:08:50]Write i2c OK [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: D1 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: D1 01 00 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: D1 01 00 CF 17 00 B7 [12:08:50]Write to MH i2c: 01 00 00 D0 17 E7 [12:08:50]Write i2c OK [12:08:50]MH_I2C_Read... [12:08:50]OFD Sender: No OFD packet to send [12:08:51]*** Cut start [12:08:51]*** Partial cut [12:08:51]*** CUTSNS_PIN = 1 [12:08:51]*** CUTSNS_PIN = 0 [12:08:51]*** Brake cut motor [12:08:52]Read from MH i2c: 01 [12:08:52]MH_I2C_Read... [12:08:52]*** Stop cut motor [12:08:52]*** Cut end [12:08:52]Read from MH i2c: 01 07 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: 01 07 00 D0 17 00 00 00 00 00 FF 0F FC [12:08:52]process_action close_receipt done [12:08:52]requested_data is exist [12:08:52]produce_requested_data [12:08:52]requested_item fm.sn is exist - process it [12:08:52]wFMCommunicate request_size=4 [12:08:52]MH_SAM_APDU [12:08:52]CAPDU: 80 11 00 00 [12:08:52]Write to MH i2c: E2 08 00 D1 17 80 11 00 00 00 00 00 00 62 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:52]Read from MH i2c: E2 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 17 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 17 00 D1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B5 [12:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:08:52]wFMCommunicate OK [12:08:52]requested_item fd.num is exist - process it [12:08:52]SAM_PROTO_GetFieldsCounters [12:08:52]wFMCommunicate request_size=4 [12:08:52]MH_SAM_APDU [12:08:52]CAPDU: 80 13 00 00 [12:08:52]Write to MH i2c: E2 08 00 D2 17 80 13 00 00 00 00 00 00 65 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:52]Read from MH i2c: E2 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 62 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 62 00 D2 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 44 45 02 00 0E 04 04 00 70 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 2A [12:08:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 44 45 02 00 0E 04 04 00 70 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 [12:08:52]wFMCommunicate OK [12:08:52]SAM_PROTO_GetFieldsCounters done [12:08:52]requested_item shift.num is exist - process it [12:08:52]requested_item shift.opened is exist - process it [12:08:52]req_shift_opened [12:08:52]FM_GetShiftState [12:08:52]SAM_PROTO_GetShiftState [12:08:52]wFMCommunicate request_size=4 [12:08:52]MH_SAM_APDU [12:08:52]CAPDU: 80 13 01 00 [12:08:52]Write to MH i2c: E2 08 00 D3 17 80 13 01 00 00 00 00 00 67 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:52]Read from MH i2c: E2 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 0E 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 0E 00 D3 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2A [12:08:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:08:52]wFMCommunicate OK [12:08:52]SAM_PROTO_GetShiftState done [12:08:52]FM_GetShiftState done [12:08:52]req_shift_opened done [12:08:52]requested_item shift.open_date is exist - process it [12:08:52]req_shift_open_date [12:08:52]req_shift_open_date done [12:08:52]produce_requested_data done [12:08:52]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148804,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:08:52]process_action_free close_receipt [12:08:52]json_value_free [12:08:52]json_value_free done [12:08:52]process_json_proto returns [12:08:52]Send response to host [12:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148804,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:08:52]free response buf [12:08:52]execute_script done [12:08:52]execute_script returns [12:08:52]free content buf [12:08:52]Sock 9.Close socket [12:08:52]Sock 9.Thread stoped [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:07]accept exits with 7 [12:10:07]New connection [12:10:07]New thread 3067235684 created [12:10:07]Thread 3067379044 joined [12:10:07]Waiting for new connection... [12:10:07] Sock 7.Parse request [12:10:07]Sock 7.Check first char [12:10:07]Sock 7.First char is OK [12:10:07]request: POST /json_proto HTTP/1.0 [12:10:07]Method: POST [12:10:07]URL: /json_proto [12:10:07]Method is POST - this is cgi request [12:10:07]url: /json_proto [12:10:07]query_string will be loaded in cgi processing [12:10:07]execute_cgi json_proto POST (null) [12:10:07]execute_cgi path=json_proto method=POST [12:10:07]POST find Content-Length [12:10:07]Host: 172.17.38.4:8080 [12:10:07]Content-Length: 621 [12:10:07]Content-Type: application/json [12:10:07] [12:10:07]POST finish read [12:10:07]Found Content-Length = 621 [12:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11902", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:07]execute_script... [12:10:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11902", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:07]POST & json_proto [12:10:07]process_json_proto [12:10:07]json parsed OK: [12:10:07]protocol is kg_v1.0 [12:10:07]action value=close_receipt [12:10:07]process_action close_receipt [12:10:07]cmd_close_receipt [12:10:07]MH_GetDate [12:10:07]Write to MH i2c: F0 00 00 D4 17 DA [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: F0 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: F0 09 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: F0 09 00 D4 17 00 1F 04 5F 66 CC 51 87 64 D3 [12:10:07]GetLastDocTimeStamp 1717502928 [12:10:07]current date 1717503007 [12:10:07]FM_GetShiftState [12:10:07]SAM_PROTO_GetShiftState [12:10:07]wFMCommunicate request_size=4 [12:10:07]MH_SAM_APDU [12:10:07]CAPDU: 80 13 01 00 [12:10:07]Write to MH i2c: E2 08 00 D5 17 80 13 01 00 00 00 00 00 69 [12:10:07]Write i2c OK [12:10:07]MH_I2C_Read... [12:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:07]Read from MH i2c: E2 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 0E 00 [12:10:07]MH_I2C_Read... [12:10:07]Read from MH i2c: E2 0E 00 D5 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2C [12:10:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:10:07]wFMCommunicate OK [12:10:07]SAM_PROTO_GetShiftState done [12:10:07]FM_GetShiftState done [12:10:07]opened in 1717460629 [12:10:07]opened+sec_in_day 1717547029 [12:10:07]quantity*price = 15100 [12:10:07]sum+1 = 15101 [12:10:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 144 04.06.2024 12:10 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148805 ФПД: 183344286890413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121007&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148805&fm=183344286890413&tin=02508201610067®Number=0000000000092720&sum=15100 0 [12:10:08]StoreToDocumentArchive [12:10:08]shift 368 fd 148805 [12:10:08]save to /storage/0368/doc_00148805 [12:10:08]save last doc name /storage/0368/doc_00148805 to /storage/kkm_last_doc_name [12:10:08]save OK [12:10:08]Clear old archive folders... [12:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=274 [12:10:08]tlvbuf is B6F10090 [12:10:08]SAM_PROTO_ClearQueue [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 09 00 00 [12:10:08]Write to MH i2c: E2 08 00 E2 17 80 09 00 00 00 00 00 00 6B [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 E2 17 00 90 00 6D [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_ClearQueue done [12:10:08]KKMCreateOFDPacket [12:10:08]OFDProtocolAddRootSTLVToBuf [12:10:08]FM_MakeSignedData [12:10:08]FM_MakeSignedData [12:10:08]SAM_PROTO_SignData [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 01 02 [12:10:08]Write to MH i2c: E2 08 00 E3 17 80 0D 01 02 00 00 00 00 73 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 E3 17 00 90 00 6E [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=255 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 90 00 00 00 F4 03 04 00 1F 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 [12:10:08]Write to MH i2c: E2 02 01 E4 17 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 90 00 00 00 F4 03 04 00 1F 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 00 00 20 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 E4 17 00 90 00 6F [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=33 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 35 37 10 04 04 00 45 45 02 00 35 04 06 00 A6 C0 2B 17 79 AD [12:10:08]Write to MH i2c: E2 24 00 E5 17 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 35 37 10 04 04 00 45 45 02 00 35 04 06 00 A6 C0 2B 17 79 AD 00 00 5F [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 03 00 E5 17 00 90 00 70 [12:10:08]RAPDU: 90 00 [12:10:08]wFMCommunicate OK [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 0D 03 02 [12:10:08]Write to MH i2c: E2 08 00 E6 17 80 0D 03 02 00 00 00 00 78 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0B 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 0B 00 E6 17 00 01 3D 89 D8 39 01 69 F0 90 00 AB [12:10:08]RAPDU: 01 3D 89 D8 39 01 69 F0 90 00 [12:10:08]wFMCommunicate OK [12:10:08]SAM_PROTO_SignData done [12:10:08]FM_MakeSignedData done [12:10:08]CreateOFDProtocolMessage [12:10:08]wFMCommunicate request_size=4 [12:10:08]MH_SAM_APDU [12:10:08]CAPDU: 80 11 00 00 [12:10:08]Write to MH i2c: E2 08 00 E7 17 80 11 00 00 00 00 00 00 78 [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:08]Read from MH i2c: E2 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: E2 17 00 E7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CB [12:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:10:08]wFMCommunicate OK [12:10:08]CreateOFDProtocolMessage done [12:10:08]OFDSenderStorePacket 148805 [12:10:08]StoreOFDPacket docnum=148805 [12:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 D8 BD 1E 01 FC DE 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 90 00 00 00 F4 03 04 00 1F 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 45 45 02 00 35 04 06 00 A6 C0 2B 17 79 AD 01 3D 89 D8 39 01 69 F0 [12:10:08]CheckFolder [12:10:08]dirname=/storage/ofd_packets [12:10:08]CheckFolder done [12:10:08]ProducePacketName [12:10:08]name=ofd_packets/00148805 [12:10:08]NVStorageSaveData ofd_packets/00148805 [12:10:08]File name is /storage/ofd_packets/00148805 [12:10:08]Write 324 bytes [12:10:08]NVStorageSaveData done [12:10:08]OFDSenderStorePacket done [12:10:08]KKMCreateOFDPacket done [12:10:08]NVStorageSaveData kkm_last_timestamp [12:10:08]File name is /storage/kkm_last_timestamp [12:10:08]Write 4 bytes [12:10:08]NVStorageSaveData done [12:10:08]ExternCall_PrintAddStr [12:10:08]wPrintStart [12:10:08]Write to MH i2c: 01 00 00 E8 17 FF [12:10:08]Write i2c OK [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 [12:10:08]MH_I2C_Read... [12:10:08]Read from MH i2c: 01 07 00 E8 17 00 00 00 00 00 FF 0F 14 [12:10:08]RasterBufferAndPrint [12:10:08]line Счет N : (3)11902 [12:10:08]line ИНН: 02508201610067 [12:10:08]line Контрольно-Кассовый Чек [12:10:08]line ПРОДАЖА [12:10:08]line Товар: 48741958 [12:10:08]line Сигареты Parliament Aqua Blue [12:10:08]line 1.000 * 151.00 [12:10:08]line = 151.00 [12:10:08]line НДС 12% НСП 1% [12:10:08]line > о реализуемом товаре [12:10:08]line ИТОГО: 151.00 [12:10:08]line НСП 1% : 1.34 [12:10:08]line НДС 12% : 16.03 [12:10:08]line Наличными: 151.00 [12:10:08]line Безнал.: 0.00 [12:10:08]line Место: АЗС № 68 "Партнер Нефть" [12:10:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:10:08]line СНО: Общий режим [12:10:08]line Чек 144 04.06.2024 12:10 [12:10:08]line Смена: 368 ФФД: 1.0 [12:10:08]line ЗНМ: 0300000035 [12:10:08]line РНМ: 0000000000092720 [12:10:08]line Версия ККМ: 001 [12:10:08]line ФМ: 0000000000875057 [12:10:08]line ФД: 148805 [12:10:08]line ФПД: 183344286890413 [12:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121007&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148805&fm=183344286890413&tin=02508201610067®Number=0000000000092720&sum=15100 [12:10:09]OFD Sender: Processing packet 148805 [packets to send 100, broken 99] [12:10:09]ProducePacketName [12:10:09]name=ofd_packets/00148805 [12:10:09]OFD Sender: To server: pG, [12:10:09]CommunicateWithHost lk.salyk.kg:30040 [12:10:09]ConnectInit lk.salyk.kg [12:10:09]line 0 [12:10:09]written 0, free lines is 4095 [12:10:09]Connected sock=10 [12:10:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 D8 BD 1E 01 FC DE 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 90 00 00 00 F4 03 04 00 1F 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 45 45 02 00 35 04 06 00 A6 C0 2B 17 79 AD 01 3D 89 D8 39 01 69 F0 [12:10:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 41 54 47 00 C6 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 38 37 35 30 35 37 10 04 04 00 45 45 02 00 F4 03 04 00 43 AB 5E 66 B6 04 01 00 00 D4 81 40 7C C9 0D FC E2 [12:10:09]CommunicateWithHost err = 0 [12:10:09]CheckOFDResponse [12:10:09]1017 (14) - 77093643461234 [12:10:09]1041 (16) - 0000000000875057 [12:10:09]1040 (4) - 148805 [12:10:09]1012 (4) - 04.06.2024 05:50 [12:10:09]1206 (1) - 0 [12:10:09]OFD Sender: Remove packet 148805 [12:10:09]ProducePacketName [12:10:09]name=ofd_packets/00148805 [12:10:09]NVStorageDeleteData [12:10:09]Write to MH i2c: 01 00 00 11 18 29 [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 07 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: 01 07 00 11 18 00 00 00 00 00 77 0C B3 [12:10:09]RasterBufferAndPrint [12:10:09]line [12:10:09]line [12:10:09]line [12:10:09]line [12:10:09]line [12:10:09]written 0, free lines is 3195 [12:10:09]MH_Cut [12:10:09]Write to MH i2c: D1 01 00 18 18 01 02 [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: D1 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: D1 01 00 [12:10:09]MH_I2C_Read... [12:10:09]Read from MH i2c: D1 01 00 18 18 00 01 [12:10:09]Write to MH i2c: 01 00 00 19 18 31 [12:10:09]Write i2c OK [12:10:09]MH_I2C_Read... [12:10:09]OFD Sender: No OFD packet to send [12:10:10]*** Cut start [12:10:10]*** Partial cut [12:10:10]*** CUTSNS_PIN = 1 [12:10:10]*** CUTSNS_PIN = 0 [12:10:11]*** Brake cut motor [12:10:11]Read from MH i2c: 01 [12:10:11]MH_I2C_Read... [12:10:11]*** Stop cut motor [12:10:11]*** Cut end [12:10:11]Read from MH i2c: 01 07 00 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: 01 07 00 19 18 00 00 00 00 00 FF 0F 46 [12:10:11]process_action close_receipt done [12:10:11]requested_data is exist [12:10:11]produce_requested_data [12:10:11]requested_item fm.sn is exist - process it [12:10:11]wFMCommunicate request_size=4 [12:10:11]MH_SAM_APDU [12:10:11]CAPDU: 80 11 00 00 [12:10:11]Write to MH i2c: E2 08 00 1A 18 80 11 00 00 00 00 00 00 AC [12:10:11]Write i2c OK [12:10:11]MH_I2C_Read... [12:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:11]Read from MH i2c: E2 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 17 00 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 17 00 1A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FF [12:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:10:11]wFMCommunicate OK [12:10:11]requested_item fd.num is exist - process it [12:10:11]SAM_PROTO_GetFieldsCounters [12:10:11]wFMCommunicate request_size=4 [12:10:11]MH_SAM_APDU [12:10:11]CAPDU: 80 13 00 00 [12:10:11]Write to MH i2c: E2 08 00 1B 18 80 13 00 00 00 00 00 00 AF [12:10:11]Write i2c OK [12:10:11]MH_I2C_Read... [12:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:11]Read from MH i2c: E2 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 62 00 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 62 00 1B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 45 45 02 00 0E 04 04 00 70 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 78 [12:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 45 45 02 00 0E 04 04 00 70 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 [12:10:11]wFMCommunicate OK [12:10:11]SAM_PROTO_GetFieldsCounters done [12:10:11]requested_item shift.num is exist - process it [12:10:11]requested_item shift.opened is exist - process it [12:10:11]req_shift_opened [12:10:11]FM_GetShiftState [12:10:11]SAM_PROTO_GetShiftState [12:10:11]wFMCommunicate request_size=4 [12:10:11]MH_SAM_APDU [12:10:11]CAPDU: 80 13 01 00 [12:10:11]Write to MH i2c: E2 08 00 1C 18 80 13 01 00 00 00 00 00 B1 [12:10:11]Write i2c OK [12:10:11]MH_I2C_Read... [12:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:11]Read from MH i2c: E2 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 0E 00 [12:10:11]MH_I2C_Read... [12:10:11]Read from MH i2c: E2 0E 00 1C 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 74 [12:10:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:10:11]wFMCommunicate OK [12:10:11]SAM_PROTO_GetShiftState done [12:10:11]FM_GetShiftState done [12:10:11]req_shift_opened done [12:10:11]requested_item shift.open_date is exist - process it [12:10:11]req_shift_open_date [12:10:11]req_shift_open_date done [12:10:11]produce_requested_data done [12:10:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148805,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:10:11]process_action_free close_receipt [12:10:11]json_value_free [12:10:11]json_value_free done [12:10:11]process_json_proto returns [12:10:11]Send response to host [12:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148805,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:10:11]free response buf [12:10:11]execute_script done [12:10:11]execute_script returns [12:10:11]free content buf [12:10:11]Sock 7.Close socket [12:10:11]Sock 7.Thread stoped [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:05]accept exits with 9 [12:11:05]New connection [12:11:05]New thread 3067379044 created [12:11:05]Thread 3067235684 joined [12:11:05]Waiting for new connection... [12:11:05] Sock 9.Parse request [12:11:05]Sock 9.Check first char [12:11:05]Sock 9.First char is OK [12:11:05]request: POST /json_proto HTTP/1.0 [12:11:05]Method: POST [12:11:05]URL: /json_proto [12:11:05]Method is POST - this is cgi request [12:11:05]url: /json_proto [12:11:05]query_string will be loaded in cgi processing [12:11:05]execute_cgi json_proto POST (null) [12:11:05]execute_cgi path=json_proto method=POST [12:11:05]POST find Content-Length [12:11:05]Host: 172.17.38.4:8080 [12:11:05]Content-Length: 682 [12:11:05]Content-Type: application/json [12:11:05] [12:11:05]POST finish read [12:11:05]Found Content-Length = 682 [12:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:05]execute_script... [12:11: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)979735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:05]POST & json_proto [12:11:05]process_json_proto [12:11:05]json parsed OK: [12:11:05]protocol is kg_v1.0 [12:11:05]action value=close_receipt [12:11:05]process_action close_receipt [12:11:05]cmd_close_receipt [12:11:05]MH_GetDate [12:11:05]Write to MH i2c: F0 00 00 1D 18 24 [12:11:05]Write i2c OK [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: F0 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: F0 09 00 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: F0 09 00 1D 18 00 59 04 5F 66 CC 51 87 64 57 [12:11:05]GetLastDocTimeStamp 1717503007 [12:11:05]current date 1717503065 [12:11:05]FM_GetShiftState [12:11:05]SAM_PROTO_GetShiftState [12:11:05]wFMCommunicate request_size=4 [12:11:05]MH_SAM_APDU [12:11:05]CAPDU: 80 13 01 00 [12:11:05]Write to MH i2c: E2 08 00 1E 18 80 13 01 00 00 00 00 00 B3 [12:11:05]Write i2c OK [12:11:05]MH_I2C_Read... [12:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:05]Read from MH i2c: E2 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: E2 0E 00 [12:11:05]MH_I2C_Read... [12:11:05]Read from MH i2c: E2 0E 00 1E 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 76 [12:11:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:11:05]wFMCommunicate OK [12:11:05]SAM_PROTO_GetShiftState done [12:11:05]FM_GetShiftState done [12:11:05]opened in 1717460629 [12:11:05]opened+sec_in_day 1717547029 [12:11:05]quantity*price = 100015 [12:11:05]sum+1 = 100017 [12:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 145 04.06.2024 12:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148806 ФПД: 200983143313380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121105&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148806&fm=200983143313380&tin=02508201610067®Number=0000000000092720&sum=100000 [12:11:06]StoreToDocumentArchive [12:11:06]shift 368 fd 148806 [12:11:06]save to /storage/0368/doc_00148806 [12:11:06]save last doc name /storage/0368/doc_00148806 to /storage/kkm_last_doc_name [12:11:06]save OK [12:11:06]Clear old archive folders... [12:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:06]tlvbuf is 00F4C9E0 [12:11:06]SAM_PROTO_ClearQueue [12:11:06]wFMCommunicate request_size=4 [12:11:06]MH_SAM_APDU [12:11:06]CAPDU: 80 09 00 00 [12:11:06]Write to MH i2c: E2 08 00 2B 18 80 09 00 00 00 00 00 00 B5 [12:11:06]Write i2c OK [12:11:06]MH_I2C_Read... [12:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:06]Read from MH i2c: E2 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 03 00 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 03 00 2B 18 00 90 00 B7 [12:11:06]RAPDU: 90 00 [12:11:06]wFMCommunicate OK [12:11:06]SAM_PROTO_ClearQueue done [12:11:06]KKMCreateOFDPacket [12:11:06]OFDProtocolAddRootSTLVToBuf [12:11:06]FM_MakeSignedData [12:11:06]FM_MakeSignedData [12:11:06]SAM_PROTO_SignData [12:11:06]wFMCommunicate request_size=4 [12:11:06]MH_SAM_APDU [12:11:06]CAPDU: 80 0D 01 02 [12:11:06]Write to MH i2c: E2 08 00 2C 18 80 0D 01 02 00 00 00 00 BD [12:11:06]Write i2c OK [12:11:06]MH_I2C_Read... [12:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:06]Read from MH i2c: E2 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 03 00 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 03 00 2C 18 00 90 00 B8 [12:11:06]RAPDU: 90 00 [12:11:06]wFMCommunicate OK [12:11:06]wFMCommunicate request_size=255 [12:11:06]MH_SAM_APDU [12:11:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 59 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 46 45 02 00 35 04 06 00 B6 [12:11:06]Write to MH i2c: E2 02 01 2D 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 59 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 46 45 02 00 35 04 06 00 B6 00 00 A8 [12:11:06]Write i2c OK [12:11:06]MH_I2C_Read... [12:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:06]Read from MH i2c: E2 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 03 00 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 03 00 2D 18 00 90 00 B9 [12:11:06]RAPDU: 90 00 [12:11:06]wFMCommunicate OK [12:11:06]wFMCommunicate request_size=10 [12:11:06]MH_SAM_APDU [12:11:06]CAPDU: 80 0D 02 02 05 CB 08 DC EF E4 [12:11:06]Write to MH i2c: E2 0D 00 2E 18 80 0D 02 02 05 00 CB 08 DC EF E4 00 00 4C [12:11:06]Write i2c OK [12:11:06]MH_I2C_Read... [12:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:06]Read from MH i2c: E2 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 03 00 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 03 00 2E 18 00 90 00 BA [12:11:06]RAPDU: 90 00 [12:11:06]wFMCommunicate OK [12:11:06]wFMCommunicate request_size=4 [12:11:06]MH_SAM_APDU [12:11:06]CAPDU: 80 0D 03 02 [12:11:06]Write to MH i2c: E2 08 00 2F 18 80 0D 03 02 00 00 00 00 C2 [12:11:06]Write i2c OK [12:11:06]MH_I2C_Read... [12:11:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:06]Read from MH i2c: E2 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 0B 00 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 0B 00 2F 18 00 49 B7 0B D2 CE 8E 45 84 90 00 C5 [12:11:06]RAPDU: 49 B7 0B D2 CE 8E 45 84 90 00 [12:11:06]wFMCommunicate OK [12:11:06]SAM_PROTO_SignData done [12:11:06]FM_MakeSignedData done [12:11:06]CreateOFDProtocolMessage [12:11:06]wFMCommunicate request_size=4 [12:11:06]MH_SAM_APDU [12:11:06]CAPDU: 80 11 00 00 [12:11:06]Write to MH i2c: E2 08 00 30 18 80 11 00 00 00 00 00 00 C2 [12:11:06]Write i2c OK [12:11:06]MH_I2C_Read... [12:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:06]Read from MH i2c: E2 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 17 00 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: E2 17 00 30 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 15 [12:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:11:06]wFMCommunicate OK [12:11:06]CreateOFDProtocolMessage done [12:11:06]OFDSenderStorePacket 148806 [12:11:06]StoreOFDPacket docnum=148806 [12:11:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B3 00 07 01 2D 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 59 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 46 45 02 00 35 04 06 00 B6 CB 08 DC EF E4 49 B7 0B D2 CE 8E 45 84 [12:11:06]CheckFolder [12:11:06]dirname=/storage/ofd_packets [12:11:06]CheckFolder done [12:11:06]ProducePacketName [12:11:06]name=ofd_packets/00148806 [12:11:06]NVStorageSaveData ofd_packets/00148806 [12:11:06]File name is /storage/ofd_packets/00148806 [12:11:06]Write 301 bytes [12:11:06]NVStorageSaveData done [12:11:06]OFDSenderStorePacket done [12:11:06]KKMCreateOFDPacket done [12:11:06]NVStorageSaveData kkm_last_timestamp [12:11:06]File name is /storage/kkm_last_timestamp [12:11:06]Write 4 bytes [12:11:06]NVStorageSaveData done [12:11:06]ExternCall_PrintAddStr [12:11:06]wPrintStart [12:11:06]Write to MH i2c: 01 00 00 31 18 49 [12:11:06]Write i2c OK [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: 01 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: 01 07 00 [12:11:06]MH_I2C_Read... [12:11:06]Read from MH i2c: 01 07 00 31 18 00 00 00 00 00 FF 0F 5E [12:11:06]RasterBufferAndPrint [12:11:06]line Счет N : (1)979735 [12:11:06]line ИНН: 02508201610067 [12:11:06]line Контрольно-Кассовый Чек [12:11:06]line ПРОДАЖА [12:11:06]line ТРК (МРК, ГНК) : 31 [12:11:06]line Товар: 2710124130 [12:11:06]line Аи-92-К-5 [12:11:06]line 14.950 * 66.90 [12:11:06]line = 1000.16 [12:11:06]line НДС 12% НСП 1% [12:11:06]line > о реализуемом товаре [12:11:06]line ОКРУГЛЕНИЕ: -0.16 [12:11:06]line ИТОГО: 1000.00 [12:11:06]line Внесено: 1000.00 [12:11:06]line СДАЧА: 0.00 [12:11:06]line НСП 1% : 8.85 [12:11:06]line НДС 12% : 106.21 [12:11:06]line Наличными: 1000.00 [12:11:06]line Безнал.: 0.00 [12:11:06]line Место: АЗС № 68 "Партнер Нефть" [12:11:06]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:11:06]line СНО: Общий режим [12:11:06]line Чек 145 04.06.2024 12:11 [12:11:06]line Смена: 368 ФФД: 1.0 [12:11:06]line ЗНМ: 0300000035 [12:11:06]line РНМ: 0000000000092720 [12:11:06]line Версия ККМ: 001 [12:11:06]line ФМ: 0000000000875057 [12:11:06]line ФД: 148806 [12:11:06]line ФПД: 200983143313380 [12:11:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121105&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148806&fm=200983143313380&tin=02508201610067®Number=0000000000092720&sum=100000 [12:11:06]written 0, free lines is 4095 [12:11:06]OFD Sender: Processing packet 148806 [packets to send 100, broken 99] [12:11:06]ProducePacketName [12:11:06]name=ofd_packets/00148806 [12:11:06]OFD Sender: To server: pG, [12:11:06]CommunicateWithHost lk.salyk.kg:30040 [12:11:06]ConnectInit lk.salyk.kg [12:11:06]Connected sock=10 [12:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B3 00 07 01 2D 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 59 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 46 45 02 00 35 04 06 00 B6 CB 08 DC EF E4 49 B7 0B D2 CE 8E 45 84 [12:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 79 7B 47 00 02 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 46 45 02 00 F4 03 04 00 7D AB 5E 66 B6 04 01 00 00 49 0D EA 91 E7 FC 09 35 [12:11:07]CommunicateWithHost err = 0 [12:11:07]CheckOFDResponse [12:11:07]1017 (14) - 77093643461234 [12:11:07]1041 (16) - 0000000000875057 [12:11:07]1040 (4) - 148806 [12:11:07]1012 (4) - 04.06.2024 05:51 [12:11:07]1206 (1) - 0 [12:11:07]OFD Sender: Remove packet 148806 [12:11:07]ProducePacketName [12:11:07]name=ofd_packets/00148806 [12:11:07]NVStorageDeleteData [12:11:07]Write to MH i2c: 01 00 00 5C 18 74 [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: 01 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: 01 07 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: 01 07 00 5C 18 00 00 00 00 00 74 0C FB [12:11:07]RasterBufferAndPrint [12:11:07]line [12:11:07]line [12:11:07]line [12:11:07]line [12:11:07]line [12:11:07]written 0, free lines is 3191 [12:11:07]MH_Cut [12:11:07]Write to MH i2c: D1 01 00 63 18 01 4D [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: D1 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: D1 01 00 [12:11:07]MH_I2C_Read... [12:11:07]Read from MH i2c: D1 01 00 63 18 00 4C [12:11:07]Write to MH i2c: 01 00 00 64 18 7C [12:11:07]Write i2c OK [12:11:07]MH_I2C_Read... [12:11:07]OFD Sender: No OFD packet to send [12:11:08]*** Cut start [12:11:08]*** Partial cut [12:11:08]*** CUTSNS_PIN = 1 [12:11:08]*** CUTSNS_PIN = 0 [12:11:08]*** Brake cut motor [12:11:09]Read from MH i2c: 01 [12:11:09]MH_I2C_Read... [12:11:09]*** Stop cut motor [12:11:09]*** Cut end [12:11:09]Read from MH i2c: 01 07 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: 01 07 00 64 18 00 00 00 00 00 FF 0F 91 [12:11:09]process_action close_receipt done [12:11:09]requested_data is exist [12:11:09]produce_requested_data [12:11:09]requested_item fm.sn is exist - process it [12:11:09]wFMCommunicate request_size=4 [12:11:09]MH_SAM_APDU [12:11:09]CAPDU: 80 11 00 00 [12:11:09]Write to MH i2c: E2 08 00 65 18 80 11 00 00 00 00 00 00 F7 [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:09]Read from MH i2c: E2 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 17 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 17 00 65 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4A [12:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:11:09]wFMCommunicate OK [12:11:09]requested_item fd.num is exist - process it [12:11:09]SAM_PROTO_GetFieldsCounters [12:11:09]wFMCommunicate request_size=4 [12:11:09]MH_SAM_APDU [12:11:09]CAPDU: 80 13 00 00 [12:11:09]Write to MH i2c: E2 08 00 66 18 80 13 00 00 00 00 00 00 FA [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:09]Read from MH i2c: E2 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 62 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 62 00 66 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 46 45 02 00 0E 04 04 00 70 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 C7 [12:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 46 45 02 00 0E 04 04 00 70 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 [12:11:09]wFMCommunicate OK [12:11:09]SAM_PROTO_GetFieldsCounters done [12:11:09]requested_item shift.num is exist - process it [12:11:09]requested_item shift.opened is exist - process it [12:11:09]req_shift_opened [12:11:09]FM_GetShiftState [12:11:09]SAM_PROTO_GetShiftState [12:11:09]wFMCommunicate request_size=4 [12:11:09]MH_SAM_APDU [12:11:09]CAPDU: 80 13 01 00 [12:11:09]Write to MH i2c: E2 08 00 67 18 80 13 01 00 00 00 00 00 FC [12:11:09]Write i2c OK [12:11:09]MH_I2C_Read... [12:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:09]Read from MH i2c: E2 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 0E 00 [12:11:09]MH_I2C_Read... [12:11:09]Read from MH i2c: E2 0E 00 67 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BF [12:11:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:11:09]wFMCommunicate OK [12:11:09]SAM_PROTO_GetShiftState done [12:11:09]FM_GetShiftState done [12:11:09]req_shift_opened done [12:11:09]requested_item shift.open_date is exist - process it [12:11:09]req_shift_open_date [12:11:09]req_shift_open_date done [12:11:09]produce_requested_data done [12:11:09]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148806,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:11:09]process_action_free close_receipt [12:11:09]json_value_free [12:11:09]json_value_free done [12:11:09]process_json_proto returns [12:11:09]Send response to host [12:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148806,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:11:09]free response buf [12:11:09]execute_script done [12:11:09]execute_script returns [12:11:09]free content buf [12:11:09]Sock 9.Close socket [12:11:09]Sock 9.Thread stoped [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:38]accept exits with 7 [12:11:38]New connection [12:11:38]New thread 3067235684 created [12:11:38]Thread 3067379044 joined [12:11:38]Waiting for new connection... [12:11:38] Sock 7.Parse request [12:11:38]Sock 7.Check first char [12:11:38]Sock 7.First char is OK [12:11:38]request: POST /json_proto HTTP/1.0 [12:11:38]Method: POST [12:11:38]URL: /json_proto [12:11:38]Method is POST - this is cgi request [12:11:38]url: /json_proto [12:11:38]query_string will be loaded in cgi processing [12:11:38]execute_cgi json_proto POST (null) [12:11:38]execute_cgi path=json_proto method=POST [12:11:38]POST find Content-Length [12:11:38]Host: 172.17.38.4:8080 [12:11:38]Content-Length: 674 [12:11:38]Content-Type: application/json [12:11:38] [12:11:38]POST finish read [12:11:38]Found Content-Length = 674 [12:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:11:38]execute_script... [12:11: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)979734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:11:38]POST & json_proto [12:11:38]process_json_proto [12:11:38]json parsed OK: [12:11:38]protocol is kg_v1.0 [12:11:38]action value=close_receipt [12:11:38]process_action close_receipt [12:11:38]cmd_close_receipt [12:11:38]MH_GetDate [12:11:38]Write to MH i2c: F0 00 00 68 18 6F [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: F0 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: F0 09 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: F0 09 00 68 18 00 7B 04 5F 66 CC 51 87 64 C4 [12:11:38]GetLastDocTimeStamp 1717503065 [12:11:38]current date 1717503099 [12:11:38]FM_GetShiftState [12:11:38]SAM_PROTO_GetShiftState [12:11:38]wFMCommunicate request_size=4 [12:11:38]MH_SAM_APDU [12:11:38]CAPDU: 80 13 01 00 [12:11:38]Write to MH i2c: E2 08 00 69 18 80 13 01 00 00 00 00 00 FE [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0E 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0E 00 69 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C1 [12:11:38]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:11:38]wFMCommunicate OK [12:11:38]SAM_PROTO_GetShiftState done [12:11:38]FM_GetShiftState done [12:11:38]opened in 1717460629 [12:11:38]opened+sec_in_day 1717547029 [12:11:38]quantity*price = 50009 [12:11:38]sum+1 = 50010 [12:11:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 146 04.06.2024 12:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148807 ФПД: 278042968683299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121139&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148807&fm=278042968683299&tin=02508201610067®Number=0000000000092720&sum=50000 [12:11:40]StoreToDocumentArchive [12:11:40]shift 368 fd 148807 [12:11:40]save to /storage/0368/doc_00148807 [12:11:40]save last doc name /storage/0368/doc_00148807 to /storage/kkm_last_doc_name [12:11:40]save OK [12:11:40]Clear old archive folders... [12:11:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:40]tlvbuf is 00F0B5A0 [12:11:40]SAM_PROTO_ClearQueue [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 09 00 00 [12:11:40]Write to MH i2c: E2 08 00 76 18 80 09 00 00 00 00 00 00 00 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 76 18 00 90 00 02 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]SAM_PROTO_ClearQueue done [12:11:40]KKMCreateOFDPacket [12:11:40]OFDProtocolAddRootSTLVToBuf [12:11:40]FM_MakeSignedData [12:11:40]FM_MakeSignedData [12:11:40]SAM_PROTO_SignData [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 0D 01 02 [12:11:40]Write to MH i2c: E2 08 00 77 18 80 0D 01 02 00 00 00 00 08 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 77 18 00 90 00 03 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]wFMCommunicate request_size=255 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 92 00 00 00 F4 03 04 00 7B 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 47 45 02 00 35 04 06 00 FC E0 EC 61 [12:11:40]Write to MH i2c: E2 02 01 78 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 92 00 00 00 F4 03 04 00 7B 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 47 45 02 00 35 04 06 00 FC E0 EC 61 00 00 AB [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 78 18 00 90 00 04 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]wFMCommunicate request_size=7 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 0D 02 02 02 73 23 [12:11:40]Write to MH i2c: E2 0A 00 79 18 80 0D 02 02 02 00 73 23 00 00 A5 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 79 18 00 90 00 05 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 0D 03 02 [12:11:40]Write to MH i2c: E2 08 00 7A 18 80 0D 03 02 00 00 00 00 0D [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 0B 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 0B 00 7A 18 00 EB B7 AB A2 39 DF B7 65 90 00 31 [12:11:40]RAPDU: EB B7 AB A2 39 DF B7 65 90 00 [12:11:40]wFMCommunicate OK [12:11:40]SAM_PROTO_SignData done [12:11:40]FM_MakeSignedData done [12:11:40]CreateOFDProtocolMessage [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 11 00 00 [12:11:40]Write to MH i2c: E2 08 00 7B 18 80 11 00 00 00 00 00 00 0D [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 17 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 17 00 7B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 60 [12:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:11:40]wFMCommunicate OK [12:11:40]CreateOFDProtocolMessage done [12:11:40]OFDSenderStorePacket 148807 [12:11:40]StoreOFDPacket docnum=148807 [12:11:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 AA 51 04 01 1C BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 92 00 00 00 F4 03 04 00 7B 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 47 45 02 00 35 04 06 00 FC E0 EC 61 73 23 EB B7 AB A2 39 DF B7 65 [12:11:40]CheckFolder [12:11:40]dirname=/storage/ofd_packets [12:11:40]CheckFolder done [12:11:40]ProducePacketName [12:11:40]name=ofd_packets/00148807 [12:11:40]NVStorageSaveData ofd_packets/00148807 [12:11:40]File name is /storage/ofd_packets/00148807 [12:11:40]Write 298 bytes [12:11:40]NVStorageSaveData done [12:11:40]OFDSenderStorePacket done [12:11:40]KKMCreateOFDPacket done [12:11:40]NVStorageSaveData kkm_last_timestamp [12:11:40]File name is /storage/kkm_last_timestamp [12:11:40]Write 4 bytes [12:11:40]NVStorageSaveData done [12:11:40]ExternCall_PrintAddStr [12:11:40]wPrintStart [12:11:40]Write to MH i2c: 01 00 00 7C 18 94 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: 01 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: 01 07 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: 01 07 00 7C 18 00 00 00 00 00 FF 0F A9 [12:11:40]RasterBufferAndPrint [12:11:40]line Счет N : (1)979734 [12:11:40]line ИНН: 02508201610067 [12:11:40]line Контрольно-Кассовый Чек [12:11:40]line ПРОДАЖА [12:11:40]line ТРК (МРК, ГНК) : 52 [12:11:40]line Товар: 2710194210 [12:11:40]line ДТ-К-5 [12:11:40]line 6.860 * 72.90 [12:11:40]line = 500.09 [12:11:40]line НДС 12% НСП 1% [12:11:40]line > о реализуемом товаре [12:11:40]line ОКРУГЛЕНИЕ: -0.09 [12:11:40]line ИТОГО: 500.00 [12:11:40]line Внесено: 500.00 [12:11:40]line СДАЧА: 0.00 [12:11:40]line НСП 1% : 4.43 [12:11:40]line НДС 12% : 53.11 [12:11:40]line Наличными: 500.00 [12:11:40]line Безнал.: 0.00 [12:11:40]line Место: АЗС № 68 "Партнер Нефть" [12:11:40]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:11:40]line СНО: Общий режим [12:11:40]line Чек 146 04.06.2024 12:11 [12:11:40]line Смена: 368 ФФД: 1.0 [12:11:40]line ЗНМ: 0300000035 [12:11:40]line РНМ: 0000000000092720 [12:11:40]line Версия ККМ: 001 [12:11:40]line ФМ: 0000000000875057 [12:11:40]line ФД: 148807 [12:11:40]line ФПД: 278042968683299 [12:11:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121139&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148807&fm=278042968683299&tin=02508201610067®Number=0000000000092720&sum=50000 [12:11:40]OFD Sender: Processing packet 148807 [packets to send 100, broken 99] [12:11:40]ProducePacketName [12:11:40]name=ofd_packets/00148807 [12:11:40]OFD Sender: To server: pG, [12:11:40]CommunicateWithHost lk.salyk.kg:30040 [12:11:40]ConnectInit lk.salyk.kg [12:11:40]written 0, free lines is 4095 [12:11:40]Connected sock=10 [12:11:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 AA 51 04 01 1C BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 92 00 00 00 F4 03 04 00 7B 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 47 45 02 00 35 04 06 00 FC E0 EC 61 73 23 EB B7 AB A2 39 DF B7 65 [12:11:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 73 96 47 00 6B 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 47 45 02 00 F4 03 04 00 9F AB 5E 66 B6 04 01 00 00 4A C1 76 A1 32 28 9E 85 [12:11:41]CommunicateWithHost err = 0 [12:11:41]CheckOFDResponse [12:11:41]1017 (14) - 77093643461234 [12:11:41]1041 (16) - 0000000000875057 [12:11:41]1040 (4) - 148807 [12:11:41]1012 (4) - 04.06.2024 05:52 [12:11:41]1206 (1) - 0 [12:11:41]OFD Sender: Remove packet 148807 [12:11:41]ProducePacketName [12:11:41]name=ofd_packets/00148807 [12:11:41]NVStorageDeleteData [12:11:41]Write to MH i2c: 01 00 00 A7 18 BF [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 07 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 07 00 A7 18 00 00 00 00 00 72 0C 44 [12:11:41]RasterBufferAndPrint [12:11:41]line [12:11:41]line [12:11:41]line [12:11:41]line [12:11:41]line [12:11:41]written 0, free lines is 3187 [12:11:41]MH_Cut [12:11:41]Write to MH i2c: D1 01 00 AE 18 01 98 [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: D1 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: D1 01 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: D1 01 00 AE 18 00 97 [12:11:41]Write to MH i2c: 01 00 00 AF 18 C7 [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]OFD Sender: No OFD packet to send [12:11:42]*** Cut start [12:11:42]*** Partial cut [12:11:42]*** CUTSNS_PIN = 1 [12:11:42]*** CUTSNS_PIN = 0 [12:11:42]*** Brake cut motor [12:11:43]Read from MH i2c: 01 [12:11:43]MH_I2C_Read... [12:11:43]*** Stop cut motor [12:11:43]*** Cut end [12:11:43]Read from MH i2c: 01 07 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: 01 07 00 AF 18 00 00 00 00 00 FF 0F DC [12:11:43]process_action close_receipt done [12:11:43]requested_data is exist [12:11:43]produce_requested_data [12:11:43]requested_item fm.sn is exist - process it [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 11 00 00 [12:11:43]Write to MH i2c: E2 08 00 B0 18 80 11 00 00 00 00 00 00 42 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 17 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 17 00 B0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 95 [12:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:11:43]wFMCommunicate OK [12:11:43]requested_item fd.num is exist - process it [12:11:43]SAM_PROTO_GetFieldsCounters [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 13 00 00 [12:11:43]Write to MH i2c: E2 08 00 B1 18 80 13 00 00 00 00 00 00 45 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 62 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 62 00 B1 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 47 45 02 00 0E 04 04 00 70 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 16 [12:11:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 47 45 02 00 0E 04 04 00 70 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 [12:11:43]wFMCommunicate OK [12:11:43]SAM_PROTO_GetFieldsCounters done [12:11:43]requested_item shift.num is exist - process it [12:11:43]requested_item shift.opened is exist - process it [12:11:43]req_shift_opened [12:11:43]FM_GetShiftState [12:11:43]SAM_PROTO_GetShiftState [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 13 01 00 [12:11:43]Write to MH i2c: E2 08 00 B2 18 80 13 01 00 00 00 00 00 47 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 0E 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 0E 00 B2 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0A [12:11:43]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:11:43]wFMCommunicate OK [12:11:43]SAM_PROTO_GetShiftState done [12:11:43]FM_GetShiftState done [12:11:43]req_shift_opened done [12:11:43]requested_item shift.open_date is exist - process it [12:11:43]req_shift_open_date [12:11:43]req_shift_open_date done [12:11:43]produce_requested_data done [12:11:43]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148807,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:11:43]process_action_free close_receipt [12:11:43]json_value_free [12:11:43]json_value_free done [12:11:43]process_json_proto returns [12:11:43]Send response to host [12:11:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148807,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:11:43]free response buf [12:11:43]execute_script done [12:11:43]execute_script returns [12:11:43]free content buf [12:11:43]Sock 7.Close socket [12:11:43]Sock 7.Thread stoped [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:53]accept exits with 9 [12:11:53]New connection [12:11:53]New thread 3067379044 created [12:11:53]Thread 3067235684 joined [12:11:53]Waiting for new connection... [12:11:53] Sock 9.Parse request [12:11:53]Sock 9.Check first char [12:11:53]Sock 9.First char is OK [12:11:53]request: POST /json_proto HTTP/1.0 [12:11:53]Method: POST [12:11:53]URL: /json_proto [12:11:53]Method is POST - this is cgi request [12:11:53]url: /json_proto [12:11:53]query_string will be loaded in cgi processing [12:11:53]execute_cgi json_proto POST (null) [12:11:53]execute_cgi path=json_proto method=POST [12:11:53]POST find Content-Length [12:11:53]Host: 172.17.38.4:8080 [12:11:53]Content-Length: 679 [12:11:53]Content-Type: application/json [12:11:53] [12:11:53]POST finish read [12:11:53]Found Content-Length = 679 [12:11:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:11:53]execute_script... [12:11: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)979733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:11:53]POST & json_proto [12:11:53]process_json_proto [12:11:53]json parsed OK: [12:11:53]protocol is kg_v1.0 [12:11:53]action value=close_receipt [12:11:53]process_action close_receipt [12:11:53]cmd_close_receipt [12:11:53]MH_GetDate [12:11:53]Write to MH i2c: F0 00 00 B3 18 BA [12:11:53]Write i2c OK [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: F0 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: F0 09 00 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: F0 09 00 B3 18 00 8A 04 5F 66 CC 51 87 64 1E [12:11:53]GetLastDocTimeStamp 1717503099 [12:11:53]current date 1717503114 [12:11:53]FM_GetShiftState [12:11:53]SAM_PROTO_GetShiftState [12:11:53]wFMCommunicate request_size=4 [12:11:53]MH_SAM_APDU [12:11:53]CAPDU: 80 13 01 00 [12:11:53]Write to MH i2c: E2 08 00 B4 18 80 13 01 00 00 00 00 00 49 [12:11:53]Write i2c OK [12:11:53]MH_I2C_Read... [12:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:54]Read from MH i2c: E2 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 0E 00 [12:11:54]MH_I2C_Read... [12:11:54]Read from MH i2c: E2 0E 00 B4 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0C [12:11:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:11:54]wFMCommunicate OK [12:11:54]SAM_PROTO_GetShiftState done [12:11:54]FM_GetShiftState done [12:11:54]opened in 1717460629 [12:11:54]opened+sec_in_day 1717547029 [12:11:54]quantity*price = 300056 [12:11:54]sum+1 = 300057 [12:11:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 147 04.06.2024 12:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148808 ФПД: 196264666040311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121154&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148808&fm=196264666040311&tin=02508201610067®Number=0000000000092720&sum=300000 [12:11:55]StoreToDocumentArchive [12:11:55]shift 368 fd 148808 [12:11:55]save to /storage/0368/doc_00148808 [12:11:55]save last doc name /storage/0368/doc_00148808 to /storage/kkm_last_doc_name [12:11:55]save OK [12:11:55]Clear old archive folders... [12:11:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:55]tlvbuf is 00FC0C30 [12:11:55]SAM_PROTO_ClearQueue [12:11:55]wFMCommunicate request_size=4 [12:11:55]MH_SAM_APDU [12:11:55]CAPDU: 80 09 00 00 [12:11:55]Write to MH i2c: E2 08 00 C1 18 80 09 00 00 00 00 00 00 4B [12:11:55]Write i2c OK [12:11:55]MH_I2C_Read... [12:11:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:55]Read from MH i2c: E2 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 03 00 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 03 00 C1 18 00 90 00 4D [12:11:55]RAPDU: 90 00 [12:11:55]wFMCommunicate OK [12:11:55]SAM_PROTO_ClearQueue done [12:11:55]KKMCreateOFDPacket [12:11:55]OFDProtocolAddRootSTLVToBuf [12:11:55]FM_MakeSignedData [12:11:55]FM_MakeSignedData [12:11:55]SAM_PROTO_SignData [12:11:55]wFMCommunicate request_size=4 [12:11:55]MH_SAM_APDU [12:11:55]CAPDU: 80 0D 01 02 [12:11:55]Write to MH i2c: E2 08 00 C2 18 80 0D 01 02 00 00 00 00 53 [12:11:55]Write i2c OK [12:11:55]MH_I2C_Read... [12:11:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:55]Read from MH i2c: E2 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 03 00 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 03 00 C2 18 00 90 00 4E [12:11:55]RAPDU: 90 00 [12:11:55]wFMCommunicate OK [12:11:55]wFMCommunicate request_size=255 [12:11:55]MH_SAM_APDU [12:11:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 93 00 00 00 F4 03 04 00 8A 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 48 45 02 00 35 04 06 00 B2 80 6D B3 [12:11:55]Write to MH i2c: E2 02 01 C3 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 93 00 00 00 F4 03 04 00 8A 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 48 45 02 00 35 04 06 00 B2 80 6D B3 00 00 DC [12:11:55]Write i2c OK [12:11:55]MH_I2C_Read... [12:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:55]Read from MH i2c: E2 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 03 00 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 03 00 C3 18 00 90 00 4F [12:11:55]RAPDU: 90 00 [12:11:55]wFMCommunicate OK [12:11:55]wFMCommunicate request_size=7 [12:11:55]MH_SAM_APDU [12:11:55]CAPDU: 80 0D 02 02 02 87 F7 [12:11:55]Write to MH i2c: E2 0A 00 C4 18 80 0D 02 02 02 00 87 F7 00 00 D8 [12:11:55]Write i2c OK [12:11:55]MH_I2C_Read... [12:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:55]Read from MH i2c: E2 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 03 00 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 03 00 C4 18 00 90 00 50 [12:11:55]RAPDU: 90 00 [12:11:55]wFMCommunicate OK [12:11:55]wFMCommunicate request_size=4 [12:11:55]MH_SAM_APDU [12:11:55]CAPDU: 80 0D 03 02 [12:11:55]Write to MH i2c: E2 08 00 C5 18 80 0D 03 02 00 00 00 00 58 [12:11:55]Write i2c OK [12:11:55]MH_I2C_Read... [12:11:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:55]Read from MH i2c: E2 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 0B 00 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 0B 00 C5 18 00 36 28 20 83 C1 0A 6C 8B 90 00 1C [12:11:55]RAPDU: 36 28 20 83 C1 0A 6C 8B 90 00 [12:11:55]wFMCommunicate OK [12:11:55]SAM_PROTO_SignData done [12:11:55]FM_MakeSignedData done [12:11:55]CreateOFDProtocolMessage [12:11:55]wFMCommunicate request_size=4 [12:11:55]MH_SAM_APDU [12:11:55]CAPDU: 80 11 00 00 [12:11:55]Write to MH i2c: E2 08 00 C6 18 80 11 00 00 00 00 00 00 58 [12:11:55]Write i2c OK [12:11:55]MH_I2C_Read... [12:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:55]Read from MH i2c: E2 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 17 00 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 17 00 C6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AB [12:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:11:55]wFMCommunicate OK [12:11:55]CreateOFDProtocolMessage done [12:11:55]OFDSenderStorePacket 148808 [12:11:55]StoreOFDPacket docnum=148808 [12:11:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 72 CD 04 01 E8 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 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 93 00 00 00 F4 03 04 00 8A 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 48 45 02 00 35 04 06 00 B2 80 6D B3 87 F7 36 28 20 83 C1 0A 6C 8B [12:11:55]CheckFolder [12:11:55]dirname=/storage/ofd_packets [12:11:55]CheckFolder done [12:11:55]ProducePacketName [12:11:55]name=ofd_packets/00148808 [12:11:55]NVStorageSaveData ofd_packets/00148808 [12:11:55]File name is /storage/ofd_packets/00148808 [12:11:55]Write 298 bytes [12:11:55]NVStorageSaveData done [12:11:55]OFDSenderStorePacket done [12:11:55]KKMCreateOFDPacket done [12:11:55]NVStorageSaveData kkm_last_timestamp [12:11:55]File name is /storage/kkm_last_timestamp [12:11:55]Write 4 bytes [12:11:55]NVStorageSaveData done [12:11:55]ExternCall_PrintAddStr [12:11:55]wPrintStart [12:11:55]Write to MH i2c: 01 00 00 C7 18 DF [12:11:55]Write i2c OK [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: 01 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: 01 07 00 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: 01 07 00 C7 18 00 00 00 00 00 FF 0F F4 [12:11:55]RasterBufferAndPrint [12:11:55]line Счет N : (1)979733 [12:11:55]line ИНН: 02508201610067 [12:11:55]line Контрольно-Кассовый Чек [12:11:55]line ПРОДАЖА [12:11:55]line ТРК (МРК, ГНК) : 51 [12:11:55]line Товар: 2710194210 [12:11:55]line ДТ-К-5 [12:11:55]line 41.160 * 72.90 [12:11:55]line = 3000.56 [12:11:55]line НДС 12% НСП 1% [12:11:55]line > о реализуемом товаре [12:11:55]line ОКРУГЛЕНИЕ: -0.56 [12:11:55]line ИТОГО: 3000.00 [12:11:55]line Внесено: 3000.00 [12:11:55]line СДАЧА: 0.00 [12:11:55]line НСП 1% : 26.55 [12:11:55]line НДС 12% : 318.64 [12:11:55]line Наличными: 3000.00 [12:11:55]line Безнал.: 0.00 [12:11:55]line Место: АЗС № 68 "Партнер Нефть" [12:11:55]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:11:55]line СНО: Общий режим [12:11:55]line Чек 147 04.06.2024 12:11 [12:11:55]line Смена: 368 ФФД: 1.0 [12:11:55]line ЗНМ: 0300000035 [12:11:55]line РНМ: 0000000000092720 [12:11:55]line Версия ККМ: 001 [12:11:55]line ФМ: 0000000000875057 [12:11:55]line ФД: 148808 [12:11:55]line ФПД: 196264666040311 [12:11:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121154&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148808&fm=196264666040311&tin=02508201610067®Number=0000000000092720&sum=300000 [12:11:56]OFD Sender: Processing packet 148808 [packets to send 100, broken 99] [12:11:56]ProducePacketName [12:11:56]name=ofd_packets/00148808 [12:11:56]OFD Sender: To server: pG, [12:11:56]CommunicateWithHost lk.salyk.kg:30040 [12:11:56]ConnectInit lk.salyk.kg [12:11:56]written 0, free lines is 4095 [12:11:56]Connected sock=10 [12:11:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 72 CD 04 01 E8 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 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 93 00 00 00 F4 03 04 00 8A 04 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 48 45 02 00 35 04 06 00 B2 80 6D B3 87 F7 36 28 20 83 C1 0A 6C 8B [12:11:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 31 44 47 00 8B 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 38 37 35 30 35 37 10 04 04 00 48 45 02 00 F4 03 04 00 AE AB 5E 66 B6 04 01 00 00 17 97 35 9C F1 AB 77 C1 [12:11:56]CommunicateWithHost err = 0 [12:11:56]CheckOFDResponse [12:11:56]1017 (14) - 77093643461234 [12:11:56]1041 (16) - 0000000000875057 [12:11:56]1040 (4) - 148808 [12:11:56]1012 (4) - 04.06.2024 05:52 [12:11:56]1206 (1) - 0 [12:11:56]OFD Sender: Remove packet 148808 [12:11:56]ProducePacketName [12:11:56]name=ofd_packets/00148808 [12:11:56]NVStorageDeleteData [12:11:56]Write to MH i2c: 01 00 00 F2 18 0A [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: 01 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: 01 07 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: 01 07 00 F2 18 00 00 00 00 00 75 0C 92 [12:11:56]RasterBufferAndPrint [12:11:56]line [12:11:56]line [12:11:56]line [12:11:56]line [12:11:56]line [12:11:56]written 0, free lines is 3192 [12:11:56]MH_Cut [12:11:56]Write to MH i2c: D1 01 00 F9 18 01 E3 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: D1 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: D1 01 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: D1 01 00 F9 18 00 E2 [12:11:56]Write to MH i2c: 01 00 00 FA 18 12 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]OFD Sender: No OFD packet to send [12:11:57]*** Cut start [12:11:57]*** Partial cut [12:11:57]*** CUTSNS_PIN = 1 [12:11:57]*** CUTSNS_PIN = 0 [12:11:57]*** Brake cut motor [12:11:58]Read from MH i2c: 01 [12:11:58]MH_I2C_Read... [12:11:58]*** Stop cut motor [12:11:58]*** Cut end [12:11:58]Read from MH i2c: 01 07 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: 01 07 00 FA 18 00 00 00 00 00 FF 0F 27 [12:11:58]process_action close_receipt done [12:11:58]requested_data is exist [12:11:58]produce_requested_data [12:11:58]requested_item fm.sn is exist - process it [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 11 00 00 [12:11:58]Write to MH i2c: E2 08 00 FB 18 80 11 00 00 00 00 00 00 8D [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 17 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 17 00 FB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E0 [12:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:11:58]wFMCommunicate OK [12:11:58]requested_item fd.num is exist - process it [12:11:58]SAM_PROTO_GetFieldsCounters [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 13 00 00 [12:11:58]Write to MH i2c: E2 08 00 FC 18 80 13 00 00 00 00 00 00 90 [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 62 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 62 00 FC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 48 45 02 00 0E 04 04 00 70 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 65 [12:11:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 48 45 02 00 0E 04 04 00 70 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 [12:11:58]wFMCommunicate OK [12:11:58]SAM_PROTO_GetFieldsCounters done [12:11:58]requested_item shift.num is exist - process it [12:11:58]requested_item shift.opened is exist - process it [12:11:58]req_shift_opened [12:11:58]FM_GetShiftState [12:11:58]SAM_PROTO_GetShiftState [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 13 01 00 [12:11:58]Write to MH i2c: E2 08 00 FD 18 80 13 01 00 00 00 00 00 92 [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 0E 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 0E 00 FD 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 55 [12:11:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:11:58]wFMCommunicate OK [12:11:58]SAM_PROTO_GetShiftState done [12:11:58]FM_GetShiftState done [12:11:58]req_shift_opened done [12:11:58]requested_item shift.open_date is exist - process it [12:11:58]req_shift_open_date [12:11:58]req_shift_open_date done [12:11:58]produce_requested_data done [12:11:58]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148808,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:11:58]process_action_free close_receipt [12:11:58]json_value_free [12:11:58]json_value_free done [12:11:58]process_json_proto returns [12:11:58]Send response to host [12:11:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148808,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:11:58]free response buf [12:11:58]execute_script done [12:11:58]execute_script returns [12:11:58]free content buf [12:11:58]Sock 9.Close socket [12:11:58]Sock 9.Thread stoped [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:07]accept exits with 7 [12:13:07]New connection [12:13:07]New thread 3067235684 created [12:13:07]Thread 3067379044 joined [12:13:07]Waiting for new connection... [12:13:07] Sock 7.Parse request [12:13:07]Sock 7.Check first char [12:13:07]Sock 7.First char is OK [12:13:07]request: POST /json_proto HTTP/1.0 [12:13:07]Method: POST [12:13:07]URL: /json_proto [12:13:07]Method is POST - this is cgi request [12:13:07]url: /json_proto [12:13:07]query_string will be loaded in cgi processing [12:13:07]execute_cgi json_proto POST (null) [12:13:07]execute_cgi path=json_proto method=POST [12:13:07]POST find Content-Length [12:13:07]Host: 172.17.38.4:8080 [12:13:07]Content-Length: 674 [12:13:07]Content-Type: application/json [12:13:07] [12:13:07]POST finish read [12:13:07]Found Content-Length = 674 [12:13:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:13:07]execute_script... [12:13: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)979737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:13:07]POST & json_proto [12:13:07]process_json_proto [12:13:07]json parsed OK: [12:13:07]protocol is kg_v1.0 [12:13:07]action value=close_receipt [12:13:07]process_action close_receipt [12:13:07]cmd_close_receipt [12:13:07]MH_GetDate [12:13:07]Write to MH i2c: F0 00 00 FE 18 05 [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: F0 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: F0 09 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: F0 09 00 FE 18 00 D4 04 5F 66 CC 51 87 64 B3 [12:13:07]GetLastDocTimeStamp 1717503114 [12:13:07]current date 1717503188 [12:13:07]FM_GetShiftState [12:13:07]SAM_PROTO_GetShiftState [12:13:07]wFMCommunicate request_size=4 [12:13:07]MH_SAM_APDU [12:13:07]CAPDU: 80 13 01 00 [12:13:07]Write to MH i2c: E2 08 00 FF 18 80 13 01 00 00 00 00 00 94 [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:07]Read from MH i2c: E2 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 0E 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 0E 00 FF 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 57 [12:13:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:13:07]wFMCommunicate OK [12:13:07]SAM_PROTO_GetShiftState done [12:13:07]FM_GetShiftState done [12:13:07]opened in 1717460629 [12:13:07]opened+sec_in_day 1717547029 [12:13:07]quantity*price = 50009 [12:13:07]sum+1 = 50010 [12:13:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 149 04.06.2024 12:14 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148810 ФПД: 226821458216710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121403&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148810&fm=226821458216710&tin=02508201610067®Number=0000000000092720&sum=40000 [12:14:03]StoreToDocumentArchive [12:14:03]shift 368 fd 148810 [12:14:03]save to /storage/0368/doc_00148810 [12:14:03]save last doc name /storage/0368/doc_00148810 to /storage/kkm_last_doc_name [12:14:03]save OK [12:14:03]Clear old archive folders... [12:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:03]tlvbuf is 0047CAC0 [12:14:03]SAM_PROTO_ClearQueue [12:14:03]wFMCommunicate request_size=4 [12:14:03]MH_SAM_APDU [12:14:03]CAPDU: 80 09 00 00 [12:14:03]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:14:03]Write i2c OK [12:14:03]MH_I2C_Read... [12:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:03]Read from MH i2c: E2 [12:14:03]MH_I2C_Read... [12:14:03]Read from MH i2c: E2 03 00 [12:14:03]MH_I2C_Read... [12:14:03]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:14:03]RAPDU: 90 00 [12:14:03]wFMCommunicate OK [12:14:03]SAM_PROTO_ClearQueue done [12:14:03]KKMCreateOFDPacket [12:14:03]OFDProtocolAddRootSTLVToBuf [12:14:03]FM_MakeSignedData [12:14:03]FM_MakeSignedData [12:14:03]SAM_PROTO_SignData [12:14:03]wFMCommunicate request_size=4 [12:14:03]MH_SAM_APDU [12:14:03]CAPDU: 80 0D 01 02 [12:14:03]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:14:03]Write i2c OK [12:14:03]MH_I2C_Read... [12:14:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:03]Read from MH i2c: E2 [12:14:03]MH_I2C_Read... [12:14:03]Read from MH i2c: E2 03 00 [12:14:03]MH_I2C_Read... [12:14:03]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:14:03]RAPDU: 90 00 [12:14:03]wFMCommunicate OK [12:14:03]wFMCommunicate request_size=255 [12:14:03]MH_SAM_APDU [12:14:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 95 00 00 00 F4 03 04 00 0B 05 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4A 45 02 00 35 04 06 00 CE [12:14:03]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 95 00 00 00 F4 03 04 00 0B 05 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4A 45 02 00 35 04 06 00 CE 00 00 38 [12:14:03]Write i2c OK [12:14:03]MH_I2C_Read... [12:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:04]Read from MH i2c: E2 [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: E2 03 00 [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:14:04]RAPDU: 90 00 [12:14:04]wFMCommunicate OK [12:14:04]wFMCommunicate request_size=10 [12:14:04]MH_SAM_APDU [12:14:04]CAPDU: 80 0D 02 02 05 4A FC 71 C7 06 [12:14:04]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 4A FC 71 C7 06 00 00 36 [12:14:04]Write i2c OK [12:14:04]MH_I2C_Read... [12:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:04]Read from MH i2c: E2 [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: E2 03 00 [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:14:04]RAPDU: 90 00 [12:14:04]wFMCommunicate OK [12:14:04]wFMCommunicate request_size=4 [12:14:04]MH_SAM_APDU [12:14:04]CAPDU: 80 0D 03 02 [12:14:04]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:14:04]Write i2c OK [12:14:04]MH_I2C_Read... [12:14:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:04]Read from MH i2c: E2 [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: E2 0B 00 [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: E2 0B 00 2F 00 00 37 34 62 1F D1 E4 4D 77 90 00 10 [12:14:04]RAPDU: 37 34 62 1F D1 E4 4D 77 90 00 [12:14:04]wFMCommunicate OK [12:14:04]SAM_PROTO_SignData done [12:14:04]FM_MakeSignedData done [12:14:04]CreateOFDProtocolMessage [12:14:04]wFMCommunicate request_size=4 [12:14:04]MH_SAM_APDU [12:14:04]CAPDU: 80 11 00 00 [12:14:04]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:14:04]Write i2c OK [12:14:04]MH_I2C_Read... [12:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:04]Read from MH i2c: E2 [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: E2 17 00 [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FD [12:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:14:04]wFMCommunicate OK [12:14:04]CreateOFDProtocolMessage done [12:14:04]OFDSenderStorePacket 148810 [12:14:04]StoreOFDPacket docnum=148810 [12:14:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 98 5C 07 01 8B 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 95 00 00 00 F4 03 04 00 0B 05 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4A 45 02 00 35 04 06 00 CE 4A FC 71 C7 06 37 34 62 1F D1 E4 4D 77 [12:14:04]CheckFolder [12:14:04]dirname=/storage/ofd_packets [12:14:04]CheckFolder done [12:14:04]ProducePacketName [12:14:04]name=ofd_packets/00148810 [12:14:04]NVStorageSaveData ofd_packets/00148810 [12:14:04]File name is /storage/ofd_packets/00148810 [12:14:04]Write 301 bytes [12:14:04]NVStorageSaveData done [12:14:04]OFDSenderStorePacket done [12:14:04]KKMCreateOFDPacket done [12:14:04]NVStorageSaveData kkm_last_timestamp [12:14:04]File name is /storage/kkm_last_timestamp [12:14:04]Write 4 bytes [12:14:04]NVStorageSaveData done [12:14:04]ExternCall_PrintAddStr [12:14:04]wPrintStart [12:14:04]Write to MH i2c: 01 00 00 31 00 31 [12:14:04]Write i2c OK [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: 01 [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: 01 07 00 [12:14:04]MH_I2C_Read... [12:14:04]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:14:04]RasterBufferAndPrint [12:14:04]line Счет N : (1)979738 [12:14:04]line ИНН: 02508201610067 [12:14:04]line Контрольно-Кассовый Чек [12:14:04]line ПРОДАЖА [12:14:04]line ТРК (МРК, ГНК) : 31 [12:14:04]line Товар: 2710124130 [12:14:04]line Аи-92-К-5 [12:14:04]line 5.980 * 66.90 [12:14:04]line = 400.06 [12:14:04]line НДС 12% НСП 1% [12:14:04]line > о реализуемом товаре [12:14:04]line ОКРУГЛЕНИЕ: -0.06 [12:14:04]line ИТОГО: 400.00 [12:14:04]line Внесено: 400.00 [12:14:04]line СДАЧА: 0.00 [12:14:04]line НСП 1% : 3.54 [12:14:04]line НДС 12% : 42.48 [12:14:04]line Наличными: 400.00 [12:14:04]line Безнал.: 0.00 [12:14:04]line Место: АЗС № 68 "Партнер Нефть" [12:14:04]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:14:04]line СНО: Общий режим [12:14:04]line Чек 149 04.06.2024 12:14 [12:14:04]line Смена: 368 ФФД: 1.0 [12:14:04]line ЗНМ: 0300000035 [12:14:04]line РНМ: 0000000000092720 [12:14:04]line Версия ККМ: 001 [12:14:04]line ФМ: 0000000000875057 [12:14:04]line ФД: 148810 [12:14:04]line ФПД: 226821458216710 [12:14:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121403&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148810&fm=226821458216710&tin=02508201610067®Number=0000000000092720&sum=40000 [12:14:04]OFD Sender: Processing packet 148810 [packets to send 100, broken 99] [12:14:04]ProducePacketName [12:14:04]name=ofd_packets/00148810 [12:14:04]OFD Sender: To server: pG, [12:14:04]CommunicateWithHost lk.salyk.kg:30040 [12:14:04]ConnectInit lk.salyk.kg [12:14:04]written 0, free lines is 4095 [12:14:04]Connected sock=10 [12:14:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 98 5C 07 01 8B 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 95 00 00 00 F4 03 04 00 0B 05 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4A 45 02 00 35 04 06 00 CE 4A FC 71 C7 06 37 34 62 1F D1 E4 4D 77 [12:14:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 ED 67 47 00 2A BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4A 45 02 00 F4 03 04 00 2F AC 5E 66 B6 04 01 00 00 00 22 C5 D0 28 8E 66 76 [12:14:04]CommunicateWithHost err = 0 [12:14:04]CheckOFDResponse [12:14:04]1017 (14) - 77093643461234 [12:14:04]1041 (16) - 0000000000875057 [12:14:04]1040 (4) - 148810 [12:14:04]1012 (4) - 04.06.2024 05:54 [12:14:04]1206 (1) - 0 [12:14:04]OFD Sender: Remove packet 148810 [12:14:04]ProducePacketName [12:14:04]name=ofd_packets/00148810 [12:14:04]NVStorageDeleteData [12:14:05]Write to MH i2c: 01 00 00 5C 00 5C [12:14:05]Write i2c OK [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: 01 [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: 01 07 00 [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 69 0C D8 [12:14:05]RasterBufferAndPrint [12:14:05]line [12:14:05]line [12:14:05]line [12:14:05]line [12:14:05]line [12:14:05]written 0, free lines is 3181 [12:14:05]MH_Cut [12:14:05]Write to MH i2c: D1 01 00 63 00 01 35 [12:14:05]Write i2c OK [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: D1 [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: D1 01 00 [12:14:05]MH_I2C_Read... [12:14:05]Read from MH i2c: D1 01 00 63 00 00 34 [12:14:05]Write to MH i2c: 01 00 00 64 00 64 [12:14:05]Write i2c OK [12:14:05]MH_I2C_Read... [12:14:05]OFD Sender: No OFD packet to send [12:14:06]*** Cut start [12:14:06]*** Partial cut [12:14:06]*** CUTSNS_PIN = 1 [12:14:06]*** CUTSNS_PIN = 0 [12:14:06]*** Brake cut motor [12:14:06]Read from MH i2c: 01 [12:14:06]MH_I2C_Read... [12:14:06]*** Stop cut motor [12:14:06]*** Cut end [12:14:06]Read from MH i2c: 01 07 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [12:14:06]process_action close_receipt done [12:14:06]requested_data is exist [12:14:06]produce_requested_data [12:14:06]requested_item fm.sn is exist - process it [12:14:06]wFMCommunicate request_size=4 [12:14:06]MH_SAM_APDU [12:14:06]CAPDU: 80 11 00 00 [12:14:06]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:07]Read from MH i2c: E2 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: E2 17 00 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 32 [12:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:14:07]wFMCommunicate OK [12:14:07]requested_item fd.num is exist - process it [12:14:07]SAM_PROTO_GetFieldsCounters [12:14:07]wFMCommunicate request_size=4 [12:14:07]MH_SAM_APDU [12:14:07]CAPDU: 80 13 00 00 [12:14:07]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [12:14:07]Write i2c OK [12:14:07]MH_I2C_Read... [12:14:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:07]Read from MH i2c: E2 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: E2 62 00 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4A 45 02 00 0E 04 04 00 70 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 BF [12:14:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4A 45 02 00 0E 04 04 00 70 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 [12:14:07]wFMCommunicate OK [12:14:07]SAM_PROTO_GetFieldsCounters done [12:14:07]requested_item shift.num is exist - process it [12:14:07]requested_item shift.opened is exist - process it [12:14:07]req_shift_opened [12:14:07]FM_GetShiftState [12:14:07]SAM_PROTO_GetShiftState [12:14:07]wFMCommunicate request_size=4 [12:14:07]MH_SAM_APDU [12:14:07]CAPDU: 80 13 01 00 [12:14:07]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [12:14:07]Write i2c OK [12:14:07]MH_I2C_Read... [12:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:07]Read from MH i2c: E2 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: E2 0E 00 [12:14:07]MH_I2C_Read... [12:14:07]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A7 [12:14:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:14:07]wFMCommunicate OK [12:14:07]SAM_PROTO_GetShiftState done [12:14:07]FM_GetShiftState done [12:14:07]req_shift_opened done [12:14:07]requested_item shift.open_date is exist - process it [12:14:07]req_shift_open_date [12:14:07]req_shift_open_date done [12:14:07]produce_requested_data done [12:14:07]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148810,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:14:07]process_action_free close_receipt [12:14:07]json_value_free [12:14:07]json_value_free done [12:14:07]process_json_proto returns [12:14:07]Send response to host [12:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148810,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:14:07]free response buf [12:14:07]execute_script done [12:14:07]execute_script returns [12:14:07]free content buf [12:14:07]Sock 9.Close socket [12:14:07]Sock 9.Thread stoped [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:54]accept exits with 7 [12:16:54]New connection [12:16:54]New thread 3067264356 created [12:16:54]Thread 3067407716 joined [12:16:54]Waiting for new connection... [12:16:54] Sock 7.Parse request [12:16:54]Sock 7.Check first char [12:16:54]Sock 7.First char is OK [12:16:54]request: POST /json_proto HTTP/1.0 [12:16:54]Method: POST [12:16:54]URL: /json_proto [12:16:54]Method is POST - this is cgi request [12:16:54]url: /json_proto [12:16:54]query_string will be loaded in cgi processing [12:16:54]execute_cgi json_proto POST (null) [12:16:54]execute_cgi path=json_proto method=POST [12:16:54]POST find Content-Length [12:16:54]Host: 172.17.38.4:8080 [12:16:54]Content-Length: 677 [12:16:54]Content-Type: application/json [12:16:54] [12:16:54]POST finish read [12:16:54]Found Content-Length = 677 [12:16:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:54]execute_script... [12: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)979739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:54]POST & json_proto [12:16:54]process_json_proto [12:16:54]json parsed OK: [12:16:54]protocol is kg_v1.0 [12:16:54]action value=close_receipt [12:16:54]process_action close_receipt [12:16:54]cmd_close_receipt [12:16:54]MH_GetDate [12:16:54]Write to MH i2c: F0 00 00 68 00 57 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: F0 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: F0 09 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: F0 09 00 68 00 00 B7 05 5F 66 CC 51 87 64 E9 [12:16:54]GetLastDocTimeStamp 1717503243 [12:16:54]current date 1717503415 [12:16:54]FM_GetShiftState [12:16:54]SAM_PROTO_GetShiftState [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 13 01 00 [12:16:54]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 0E 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A9 [12:16:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:16:54]wFMCommunicate OK [12:16:54]SAM_PROTO_GetShiftState done [12:16:54]FM_GetShiftState done [12:16:54]opened in 1717460629 [12:16:54]opened+sec_in_day 1717547029 [12:16:54]quantity*price = 20003 [12:16:54]sum+1 = 20004 [12:16:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 150 04.06.2024 12:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148811 ФПД: 80616341092141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121655&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148811&fm=80616341092141&tin=02508201610067®Number=0000000000092720&sum=20000 [12:16:55]StoreToDocumentArchive [12:16:55]shift 368 fd 148811 [12:16:55]save to /storage/0368/doc_00148811 [12:16:55]save last doc name /storage/0368/doc_00148811 to /storage/kkm_last_doc_name [12:16:55]save OK [12:16:55]Clear old archive folders... [12:16:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:55]tlvbuf is B6F49B60 [12:16:55]SAM_PROTO_ClearQueue [12:16:55]wFMCommunicate request_size=4 [12:16:55]MH_SAM_APDU [12:16:55]CAPDU: 80 09 00 00 [12:16:55]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [12:16:55]Write i2c OK [12:16:55]MH_I2C_Read... [12:16:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:55]Read from MH i2c: E2 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 03 00 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [12:16:55]RAPDU: 90 00 [12:16:55]wFMCommunicate OK [12:16:55]SAM_PROTO_ClearQueue done [12:16:55]KKMCreateOFDPacket [12:16:55]OFDProtocolAddRootSTLVToBuf [12:16:55]FM_MakeSignedData [12:16:55]FM_MakeSignedData [12:16:55]SAM_PROTO_SignData [12:16:55]wFMCommunicate request_size=4 [12:16:55]MH_SAM_APDU [12:16:55]CAPDU: 80 0D 01 02 [12:16:55]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [12:16:55]Write i2c OK [12:16:55]MH_I2C_Read... [12:16:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:55]Read from MH i2c: E2 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 03 00 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [12:16:55]RAPDU: 90 00 [12:16:55]wFMCommunicate OK [12:16:55]wFMCommunicate request_size=255 [12:16:55]MH_SAM_APDU [12:16:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 B7 05 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4B 45 02 00 35 04 06 00 49 [12:16:55]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 B7 05 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4B 45 02 00 35 04 06 00 49 00 00 9F [12:16:55]Write i2c OK [12:16:55]MH_I2C_Read... [12:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:56]Read from MH i2c: E2 [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: E2 03 00 [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [12:16:56]RAPDU: 90 00 [12:16:56]wFMCommunicate OK [12:16:56]wFMCommunicate request_size=10 [12:16:56]MH_SAM_APDU [12:16:56]CAPDU: 80 0D 02 02 05 51 F4 5F B7 2D [12:16:56]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 51 F4 5F B7 2D 00 00 85 [12:16:56]Write i2c OK [12:16:56]MH_I2C_Read... [12:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:56]Read from MH i2c: E2 [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: E2 03 00 [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [12:16:56]RAPDU: 90 00 [12:16:56]wFMCommunicate OK [12:16:56]wFMCommunicate request_size=4 [12:16:56]MH_SAM_APDU [12:16:56]CAPDU: 80 0D 03 02 [12:16:56]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [12:16:56]Write i2c OK [12:16:56]MH_I2C_Read... [12:16:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:56]Read from MH i2c: E2 [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: E2 0B 00 [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: E2 0B 00 7A 00 00 57 AA 0F 55 0A F5 51 B9 90 00 64 [12:16:56]RAPDU: 57 AA 0F 55 0A F5 51 B9 90 00 [12:16:56]wFMCommunicate OK [12:16:56]SAM_PROTO_SignData done [12:16:56]FM_MakeSignedData done [12:16:56]CreateOFDProtocolMessage [12:16:56]wFMCommunicate request_size=4 [12:16:56]MH_SAM_APDU [12:16:56]CAPDU: 80 11 00 00 [12:16:56]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [12:16:56]Write i2c OK [12:16:56]MH_I2C_Read... [12:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:56]Read from MH i2c: E2 [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: E2 17 00 [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 48 [12:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:16:56]wFMCommunicate OK [12:16:56]CreateOFDProtocolMessage done [12:16:56]OFDSenderStorePacket 148811 [12:16:56]StoreOFDPacket docnum=148811 [12:16:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 35 CB 07 01 87 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 B7 05 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4B 45 02 00 35 04 06 00 49 51 F4 5F B7 2D 57 AA 0F 55 0A F5 51 B9 [12:16:56]CheckFolder [12:16:56]dirname=/storage/ofd_packets [12:16:56]CheckFolder done [12:16:56]ProducePacketName [12:16:56]name=ofd_packets/00148811 [12:16:56]NVStorageSaveData ofd_packets/00148811 [12:16:56]File name is /storage/ofd_packets/00148811 [12:16:56]Write 301 bytes [12:16:56]NVStorageSaveData done [12:16:56]OFDSenderStorePacket done [12:16:56]KKMCreateOFDPacket done [12:16:56]NVStorageSaveData kkm_last_timestamp [12:16:56]File name is /storage/kkm_last_timestamp [12:16:56]Write 4 bytes [12:16:56]NVStorageSaveData done [12:16:56]ExternCall_PrintAddStr [12:16:56]wPrintStart [12:16:56]Write to MH i2c: 01 00 00 7C 00 7C [12:16:56]Write i2c OK [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: 01 [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: 01 07 00 [12:16:56]MH_I2C_Read... [12:16:56]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [12:16:56]RasterBufferAndPrint [12:16:56]line Счет N : (1)979739 [12:16:56]line ИНН: 02508201610067 [12:16:56]line Контрольно-Кассовый Чек [12:16:56]line ПРОДАЖА [12:16:56]line ТРК (МРК, ГНК) : 41 [12:16:56]line Товар: 2710124130 [12:16:56]line Аи-92-К-5 [12:16:56]line 2.990 * 66.90 [12:16:56]line = 200.03 [12:16:56]line НДС 12% НСП 1% [12:16:56]line > о реализуемом товаре [12:16:56]line ОКРУГЛЕНИЕ: -0.03 [12:16:56]line ИТОГО: 200.00 [12:16:56]line Внесено: 200.00 [12:16:56]line СДАЧА: 0.00 [12:16:56]line НСП 1% : 1.77 [12:16:56]line НДС 12% : 21.24 [12:16:56]line Наличными: 200.00 [12:16:56]line Безнал.: 0.00 [12:16:56]line Место: АЗС № 68 "Партнер Нефть" [12:16:56]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:16:56]line СНО: Общий режим [12:16:56]line Чек 150 04.06.2024 12:16 [12:16:56]line Смена: 368 ФФД: 1.0 [12:16:56]line ЗНМ: 0300000035 [12:16:56]line РНМ: 0000000000092720 [12:16:56]line Версия ККМ: 001 [12:16:56]line ФМ: 0000000000875057 [12:16:56]line ФД: 148811 [12:16:56]line ФПД: 80616341092141 [12:16:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121655&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148811&fm=80616341092141&tin=02508201610067®Number=0000000000092720&sum=20000 [12:16:56]OFD Sender: Processing packet 148811 [packets to send 100, broken 99] [12:16:56]ProducePacketName [12:16:56]name=ofd_packets/00148811 [12:16:56]OFD Sender: To server: pG, [12:16:56]CommunicateWithHost lk.salyk.kg:30040 [12:16:56]ConnectInit lk.salyk.kg [12:16:56]written 0, free lines is 4095 [12:16:56]Connected sock=10 [12:16:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 35 CB 07 01 87 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 B7 05 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4B 45 02 00 35 04 06 00 49 51 F4 5F B7 2D 57 AA 0F 55 0A F5 51 B9 [12:16:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 44 8C 47 00 8F B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4B 45 02 00 F4 03 04 00 DB AC 5E 66 B6 04 01 00 00 2B A7 74 97 B9 20 9A 73 [12:16:56]CommunicateWithHost err = 0 [12:16:56]CheckOFDResponse [12:16:56]1017 (14) - 77093643461234 [12:16:56]1041 (16) - 0000000000875057 [12:16:56]1040 (4) - 148811 [12:16:56]1012 (4) - 04.06.2024 05:57 [12:16:56]1206 (1) - 0 [12:16:56]OFD Sender: Remove packet 148811 [12:16:56]ProducePacketName [12:16:56]name=ofd_packets/00148811 [12:16:56]NVStorageDeleteData [12:16:57]Write to MH i2c: 01 00 00 A7 00 A7 [12:16:57]Write i2c OK [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: 01 [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: 01 07 00 [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 66 0C 20 [12:16:57]RasterBufferAndPrint [12:16:57]line [12:16:57]line [12:16:57]line [12:16:57]line [12:16:57]line [12:16:57]written 0, free lines is 3177 [12:16:57]MH_Cut [12:16:57]Write to MH i2c: D1 01 00 AE 00 01 80 [12:16:57]Write i2c OK [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: D1 [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: D1 01 00 [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: D1 01 00 AE 00 00 7F [12:16:57]Write to MH i2c: 01 00 00 AF 00 AF [12:16:57]Write i2c OK [12:16:57]MH_I2C_Read... [12:16:57]OFD Sender: No OFD packet to send [12:16:58]*** Cut start [12:16:58]*** Partial cut [12:16:58]*** CUTSNS_PIN = 1 [12:16:58]*** CUTSNS_PIN = 0 [12:16:58]*** Brake cut motor [12:16:58]Read from MH i2c: 01 [12:16:58]MH_I2C_Read... [12:16:58]*** Stop cut motor [12:16:58]*** Cut end [12:16:58]Read from MH i2c: 01 07 00 [12:16:58]MH_I2C_Read... [12:16:58]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [12:16:58]process_action close_receipt done [12:16:58]requested_data is exist [12:16:58]produce_requested_data [12:16:58]requested_item fm.sn is exist - process it [12:16:58]wFMCommunicate request_size=4 [12:16:58]MH_SAM_APDU [12:16:58]CAPDU: 80 11 00 00 [12:16:58]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [12:16:58]Write i2c OK [12:16:58]MH_I2C_Read... [12:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:58]Read from MH i2c: E2 [12:16:58]MH_I2C_Read... [12:16:58]Read from MH i2c: E2 17 00 [12:16:58]MH_I2C_Read... [12:16:58]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7D [12:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:16:58]wFMCommunicate OK [12:16:58]requested_item fd.num is exist - process it [12:16:58]SAM_PROTO_GetFieldsCounters [12:16:58]wFMCommunicate request_size=4 [12:16:58]MH_SAM_APDU [12:16:58]CAPDU: 80 13 00 00 [12:16:58]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [12:16:58]Write i2c OK [12:16:58]MH_I2C_Read... [12:16:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:59]Read from MH i2c: E2 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 62 00 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4B 45 02 00 0E 04 04 00 70 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 0E [12:16:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4B 45 02 00 0E 04 04 00 70 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 [12:16:59]wFMCommunicate OK [12:16:59]SAM_PROTO_GetFieldsCounters done [12:16:59]requested_item shift.num is exist - process it [12:16:59]requested_item shift.opened is exist - process it [12:16:59]req_shift_opened [12:16:59]FM_GetShiftState [12:16:59]SAM_PROTO_GetShiftState [12:16:59]wFMCommunicate request_size=4 [12:16:59]MH_SAM_APDU [12:16:59]CAPDU: 80 13 01 00 [12:16:59]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [12:16:59]Write i2c OK [12:16:59]MH_I2C_Read... [12:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:59]Read from MH i2c: E2 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 0E 00 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F2 [12:16:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:16:59]wFMCommunicate OK [12:16:59]SAM_PROTO_GetShiftState done [12:16:59]FM_GetShiftState done [12:16:59]req_shift_opened done [12:16:59]requested_item shift.open_date is exist - process it [12:16:59]req_shift_open_date [12:16:59]req_shift_open_date done [12:16:59]produce_requested_data done [12:16:59]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148811,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:16:59]process_action_free close_receipt [12:16:59]json_value_free [12:16:59]json_value_free done [12:16:59]process_json_proto returns [12:16:59]Send response to host [12:16:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148811,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:16:59]free response buf [12:16:59]execute_script done [12:16:59]execute_script returns [12:16:59]free content buf [12:16:59]Sock 7.Close socket [12:16:59]Sock 7.Thread stoped [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]accept exits with 9 [12:19:27]New connection [12:19:27]New thread 3067407716 created [12:19:27]Thread 3067264356 joined [12:19:27]Waiting for new connection... [12:19:27] Sock 9.Parse request [12:19:27]Sock 9.Check first char [12:19:27]Sock 9.First char is OK [12:19:27]request: POST /json_proto HTTP/1.0 [12:19:27]Method: POST [12:19:27]URL: /json_proto [12:19:27]Method is POST - this is cgi request [12:19:27]url: /json_proto [12:19:27]query_string will be loaded in cgi processing [12:19:27]execute_cgi json_proto POST (null) [12:19:27]execute_cgi path=json_proto method=POST [12:19:27]POST find Content-Length [12:19:27]Host: 172.17.38.4:8080 [12:19:27]Content-Length: 677 [12:19:27]Content-Type: application/json [12:19:27] [12:19:27]POST finish read [12:19:27]Found Content-Length = 677 [12:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:27]execute_script... [12:19: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)979740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:27]POST & json_proto [12:19:27]process_json_proto [12:19:27]json parsed OK: [12:19:27]protocol is kg_v1.0 [12:19:27]action value=close_receipt [12:19:27]process_action close_receipt [12:19:27]cmd_close_receipt [12:19:27]MH_GetDate [12:19:27]Write to MH i2c: F0 00 00 B3 00 A2 [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: F0 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: F0 09 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: F0 09 00 B3 00 00 4F 06 5F 66 CC 51 87 64 CD [12:19:27]GetLastDocTimeStamp 1717503415 [12:19:27]current date 1717503567 [12:19:27]FM_GetShiftState [12:19:27]SAM_PROTO_GetShiftState [12:19:27]wFMCommunicate request_size=4 [12:19:27]MH_SAM_APDU [12:19:27]CAPDU: 80 13 01 00 [12:19:27]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:27]Read from MH i2c: E2 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 0E 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F4 [12:19:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:19:27]wFMCommunicate OK [12:19:27]SAM_PROTO_GetShiftState done [12:19:27]FM_GetShiftState done [12:19:27]opened in 1717460629 [12:19:27]opened+sec_in_day 1717547029 [12:19:27]quantity*price = 50041 [12:19:27]sum+1 = 50042 [12:19: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 151 04.06.2024 12:19 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148812 ФПД: 269424573276338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121927&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148812&fm=269424573276338&tin=02508201610067®Number=0000000000092720&sum=50000 [12:19:28]StoreToDocumentArchive [12:19:28]shift 368 fd 148812 [12:19:28]save to /storage/0368/doc_00148812 [12:19:28]save last doc name /storage/0368/doc_00148812 to /storage/kkm_last_doc_name [12:19:28]save OK [12:19:28]Clear old archive folders... [12:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:28]tlvbuf is 0046C5D0 [12:19:28]SAM_PROTO_ClearQueue [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 09 00 00 [12:19:28]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]SAM_PROTO_ClearQueue done [12:19:28]KKMCreateOFDPacket [12:19:28]OFDProtocolAddRootSTLVToBuf [12:19:28]FM_MakeSignedData [12:19:28]FM_MakeSignedData [12:19:28]SAM_PROTO_SignData [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 01 02 [12:19:28]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]wFMCommunicate request_size=255 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 4F 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4C 45 02 00 35 04 06 00 F5 [12:19:28]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 4F 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4C 45 02 00 35 04 06 00 F5 00 00 6F [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]wFMCommunicate request_size=10 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 02 02 05 0A 4B FB E0 B2 [12:19:28]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 0A 4B FB E0 B2 00 00 2A [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 03 02 [12:19:28]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0B 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0B 00 C5 00 00 6B 46 18 E2 C0 57 B8 07 90 00 C2 [12:19:28]RAPDU: 6B 46 18 E2 C0 57 B8 07 90 00 [12:19:28]wFMCommunicate OK [12:19:28]SAM_PROTO_SignData done [12:19:28]FM_MakeSignedData done [12:19:28]CreateOFDProtocolMessage [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 11 00 00 [12:19:28]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 93 [12:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:19:28]wFMCommunicate OK [12:19:28]CreateOFDProtocolMessage done [12:19:28]OFDSenderStorePacket 148812 [12:19:28]StoreOFDPacket docnum=148812 [12:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E7 C8 07 01 B8 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 4F 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4C 45 02 00 35 04 06 00 F5 0A 4B FB E0 B2 6B 46 18 E2 C0 57 B8 07 [12:19:28]CheckFolder [12:19:28]dirname=/storage/ofd_packets [12:19:28]CheckFolder done [12:19:28]ProducePacketName [12:19:28]name=ofd_packets/00148812 [12:19:28]NVStorageSaveData ofd_packets/00148812 [12:19:28]File name is /storage/ofd_packets/00148812 [12:19:28]Write 301 bytes [12:19:28]NVStorageSaveData done [12:19:28]OFDSenderStorePacket done [12:19:28]KKMCreateOFDPacket done [12:19:28]NVStorageSaveData kkm_last_timestamp [12:19:28]File name is /storage/kkm_last_timestamp [12:19:28]Write 4 bytes [12:19:28]NVStorageSaveData done [12:19:28]ExternCall_PrintAddStr [12:19:28]wPrintStart [12:19:28]Write to MH i2c: 01 00 00 C7 00 C7 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [12:19:28]RasterBufferAndPrint [12:19:28]line Счет N : (1)979740 [12:19:28]line ИНН: 02508201610067 [12:19:28]line Контрольно-Кассовый Чек [12:19:28]line ПРОДАЖА [12:19:28]line ТРК (МРК, ГНК) : 12 [12:19:28]line Товар: 2710124130 [12:19:28]line Аи-92-К-5 [12:19:28]line 7.480 * 66.90 [12:19:28]line = 500.41 [12:19:28]line НДС 12% НСП 1% [12:19:28]line > о реализуемом товаре [12:19:28]line ОКРУГЛЕНИЕ: -0.41 [12:19:28]line ИТОГО: 500.00 [12:19:28]line Внесено: 500.00 [12:19:28]line СДАЧА: 0.00 [12:19:28]line НСП 1% : 4.43 [12:19:28]line НДС 12% : 53.14 [12:19:28]line Наличными: 500.00 [12:19:28]line Безнал.: 0.00 [12:19:28]line Место: АЗС № 68 "Партнер Нефть" [12:19:28]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:19:28]line СНО: Общий режим [12:19:28]line Чек 151 04.06.2024 12:19 [12:19:28]line Смена: 368 ФФД: 1.0 [12:19:28]line ЗНМ: 0300000035 [12:19:28]line РНМ: 0000000000092720 [12:19:28]line Версия ККМ: 001 [12:19:28]line ФМ: 0000000000875057 [12:19:28]line ФД: 148812 [12:19:28]line ФПД: 269424573276338 [12:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121927&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148812&fm=269424573276338&tin=02508201610067®Number=0000000000092720&sum=50000 [12:19:29]OFD Sender: Processing packet 148812 [packets to send 100, broken 99] [12:19:29]ProducePacketName [12:19:29]name=ofd_packets/00148812 [12:19:29]OFD Sender: To server: pG, [12:19:29]CommunicateWithHost lk.salyk.kg:30040 [12:19:29]ConnectInit lk.salyk.kg [12:19:29]written 0, free lines is 4095 [12:19:29]Connected sock=10 [12:19:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E7 C8 07 01 B8 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 4F 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4C 45 02 00 35 04 06 00 F5 0A 4B FB E0 B2 6B 46 18 E2 C0 57 B8 07 [12:19:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 92 FF 47 00 43 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4C 45 02 00 F4 03 04 00 73 AD 5E 66 B6 04 01 00 00 04 27 EF 05 FB 6C DF BD [12:19:29]CommunicateWithHost err = 0 [12:19:29]CheckOFDResponse [12:19:29]1017 (14) - 77093643461234 [12:19:29]1041 (16) - 0000000000875057 [12:19:29]1040 (4) - 148812 [12:19:29]1012 (4) - 04.06.2024 06:00 [12:19:29]1206 (1) - 0 [12:19:29]OFD Sender: Remove packet 148812 [12:19:29]ProducePacketName [12:19:29]name=ofd_packets/00148812 [12:19:29]NVStorageDeleteData [12:19:29]Write to MH i2c: 01 00 00 F2 00 F2 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: 01 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: 01 07 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 68 0C 6D [12:19:29]RasterBufferAndPrint [12:19:29]line [12:19:29]line [12:19:29]line [12:19:29]line [12:19:29]line [12:19:29]written 0, free lines is 3179 [12:19:29]MH_Cut [12:19:29]Write to MH i2c: D1 01 00 F9 00 01 CB [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: D1 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: D1 01 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: D1 01 00 F9 00 00 CA [12:19:29]Write to MH i2c: 01 00 00 FA 00 FA [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:30]OFD Sender: No OFD packet to send [12:19:30]*** Cut start [12:19:30]*** Partial cut [12:19:30]*** CUTSNS_PIN = 1 [12:19:30]*** CUTSNS_PIN = 0 [12:19:31]*** Brake cut motor [12:19:31]Read from MH i2c: 01 [12:19:31]MH_I2C_Read... [12:19:31]*** Stop cut motor [12:19:31]*** Cut end [12:19:31]Read from MH i2c: 01 07 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [12:19:31]process_action close_receipt done [12:19:31]requested_data is exist [12:19:31]produce_requested_data [12:19:31]requested_item fm.sn is exist - process it [12:19:31]wFMCommunicate request_size=4 [12:19:31]MH_SAM_APDU [12:19:31]CAPDU: 80 11 00 00 [12:19:31]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:31]Read from MH i2c: E2 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 17 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C8 [12:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:19:31]wFMCommunicate OK [12:19:31]requested_item fd.num is exist - process it [12:19:31]SAM_PROTO_GetFieldsCounters [12:19:31]wFMCommunicate request_size=4 [12:19:31]MH_SAM_APDU [12:19:31]CAPDU: 80 13 00 00 [12:19:31]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:31]Read from MH i2c: E2 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 62 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 45 02 00 0E 04 04 00 70 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 5D [12:19:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 45 02 00 0E 04 04 00 70 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 [12:19:31]wFMCommunicate OK [12:19:31]SAM_PROTO_GetFieldsCounters done [12:19:31]requested_item shift.num is exist - process it [12:19:31]requested_item shift.opened is exist - process it [12:19:31]req_shift_opened [12:19:31]FM_GetShiftState [12:19:31]SAM_PROTO_GetShiftState [12:19:31]wFMCommunicate request_size=4 [12:19:31]MH_SAM_APDU [12:19:31]CAPDU: 80 13 01 00 [12:19:31]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:31]Read from MH i2c: E2 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 0E 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3D [12:19:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:19:31]wFMCommunicate OK [12:19:31]SAM_PROTO_GetShiftState done [12:19:31]FM_GetShiftState done [12:19:31]req_shift_opened done [12:19:31]requested_item shift.open_date is exist - process it [12:19:31]req_shift_open_date [12:19:31]req_shift_open_date done [12:19:31]produce_requested_data done [12:19:31]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148812,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:19:31]process_action_free close_receipt [12:19:31]json_value_free [12:19:31]json_value_free done [12:19:31]process_json_proto returns [12:19:31]Send response to host [12:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148812,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:19:31]free response buf [12:19:31]execute_script done [12:19:31]execute_script returns [12:19:31]free content buf [12:19:31]Sock 9.Close socket [12:19:31]Sock 9.Thread stoped [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:00]accept exits with 7 [12:20:00]New connection [12:20:00]New thread 3067264356 created [12:20:00]Thread 3067407716 joined [12:20:00]Waiting for new connection... [12:20:00] Sock 7.Parse request [12:20:00]Sock 7.Check first char [12:20:00]Sock 7.First char is OK [12:20:00]request: POST /json_proto HTTP/1.0 [12:20:00]Method: POST [12:20:00]URL: /json_proto [12:20:00]Method is POST - this is cgi request [12:20:00]url: /json_proto [12:20:00]query_string will be loaded in cgi processing [12:20:00]execute_cgi json_proto POST (null) [12:20:00]execute_cgi path=json_proto method=POST [12:20:00]POST find Content-Length [12:20:00]Host: 172.17.38.4:8080 [12:20:00]Content-Length: 574 [12:20:00]Content-Type: application/json [12:20:00] [12:20:00]POST finish read [12:20:00]Found Content-Length = 574 [12:20:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11903", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:00]execute_script... [12:20:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11903", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:00]POST & json_proto [12:20:00]process_json_proto [12:20:00]json parsed OK: [12:20:00]protocol is kg_v1.0 [12:20:00]action value=close_receipt [12:20:00]process_action close_receipt [12:20:00]cmd_close_receipt [12:20:00]MH_GetDate [12:20:00]Write to MH i2c: F0 00 00 FE 00 ED [12:20:00]Write i2c OK [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: F0 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: F0 09 00 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: F0 09 00 FE 00 00 70 06 5F 66 CC 51 87 64 39 [12:20:00]GetLastDocTimeStamp 1717503567 [12:20:00]current date 1717503600 [12:20:00]FM_GetShiftState [12:20:00]SAM_PROTO_GetShiftState [12:20:00]wFMCommunicate request_size=4 [12:20:00]MH_SAM_APDU [12:20:00]CAPDU: 80 13 01 00 [12:20:00]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [12:20:00]Write i2c OK [12:20:00]MH_I2C_Read... [12:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:00]Read from MH i2c: E2 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: E2 0E 00 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3F [12:20:00]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:20:00]wFMCommunicate OK [12:20:00]SAM_PROTO_GetShiftState done [12:20:00]FM_GetShiftState done [12:20:00]opened in 1717460629 [12:20:00]opened+sec_in_day 1717547029 [12:20:00]quantity*price = 13000 [12:20:00]sum+1 = 13001 [12:20:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 152 04.06.2024 12:20 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148813 ФПД: 10659219614714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122000&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148813&fm=10659219614714&tin=02508201610067®Number=0000000000092720&sum=13000 0 [12:20:01]StoreToDocumentArchive [12:20:01]shift 368 fd 148813 [12:20:01]save to /storage/0368/doc_00148813 [12:20:01]save last doc name /storage/0368/doc_00148813 to /storage/kkm_last_doc_name [12:20:01]save OK [12:20:01]Clear old archive folders... [12:20:01]ProcessDocumentItem done err = 0, tmpTLVsize=259 [12:20:01]tlvbuf is 004B39B0 [12:20:01]SAM_PROTO_ClearQueue [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 09 00 00 [12:20:01]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]SAM_PROTO_ClearQueue done [12:20:01]KKMCreateOFDPacket [12:20:01]OFDProtocolAddRootSTLVToBuf [12:20:01]FM_MakeSignedData [12:20:01]FM_MakeSignedData [12:20:01]SAM_PROTO_SignData [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 01 02 [12:20:01]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]wFMCommunicate request_size=255 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 70 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4D [12:20:01]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 70 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4D 00 00 04 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]wFMCommunicate request_size=18 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 02 02 0D 45 02 00 35 04 06 00 09 B1 CA FF AB FA [12:20:01]Write to MH i2c: E2 15 00 0F 01 80 0D 02 02 0D 00 45 02 00 35 04 06 00 09 B1 CA FF AB FA 00 00 52 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 03 02 [12:20:01]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 0B 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 0B 00 10 01 00 75 83 6C 28 98 96 61 95 90 00 3D [12:20:01]RAPDU: 75 83 6C 28 98 96 61 95 90 00 [12:20:01]wFMCommunicate OK [12:20:01]SAM_PROTO_SignData done [12:20:01]FM_MakeSignedData done [12:20:01]CreateOFDProtocolMessage [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 11 00 00 [12:20:01]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 17 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DF [12:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:20:01]wFMCommunicate OK [12:20:01]CreateOFDProtocolMessage done [12:20:01]OFDSenderStorePacket 148813 [12:20:01]StoreOFDPacket docnum=148813 [12:20:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 17 01 00 00 12 B9 0F 01 63 BB 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 70 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4D 45 02 00 35 04 06 00 09 B1 CA FF AB FA 75 83 6C 28 98 96 61 95 [12:20:01]CheckFolder [12:20:01]dirname=/storage/ofd_packets [12:20:01]CheckFolder done [12:20:01]ProducePacketName [12:20:01]name=ofd_packets/00148813 [12:20:01]NVStorageSaveData ofd_packets/00148813 [12:20:01]File name is /storage/ofd_packets/00148813 [12:20:01]Write 309 bytes [12:20:01]NVStorageSaveData done [12:20:01]OFDSenderStorePacket done [12:20:01]KKMCreateOFDPacket done [12:20:01]NVStorageSaveData kkm_last_timestamp [12:20:01]File name is /storage/kkm_last_timestamp [12:20:01]Write 4 bytes [12:20:01]NVStorageSaveData done [12:20:01]ExternCall_PrintAddStr [12:20:01]wPrintStart [12:20:01]Write to MH i2c: 01 00 00 12 01 13 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: 01 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: 01 07 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [12:20:01]RasterBufferAndPrint [12:20:01]line Счет N : (3)11903 [12:20:01]line ИНН: 02508201610067 [12:20:01]line Контрольно-Кассовый Чек [12:20:01]line ПРОДАЖА [12:20:01]line Товар: 46233820 [12:20:01]line LD Compact 100s Silver [12:20:01]line 1.000 * 130.00 [12:20:01]line = 130.00 [12:20:01]line НДС 12% НСП 1% [12:20:01]line > о реализуемом товаре [12:20:01]line ИТОГО: 130.00 [12:20:01]line НСП 1% : 1.15 [12:20:01]line НДС 12% : 13.80 [12:20:01]line Наличными: 130.00 [12:20:01]line Безнал.: 0.00 [12:20:01]line Место: АЗС № 68 "Партнер Нефть" [12:20:01]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:20:01]line СНО: Общий режим [12:20:01]line Чек 152 04.06.2024 12:20 [12:20:01]line Смена: 368 ФФД: 1.0 [12:20:01]line ЗНМ: 0300000035 [12:20:01]line РНМ: 0000000000092720 [12:20:01]line Версия ККМ: 001 [12:20:01]line ФМ: 0000000000875057 [12:20:01]line ФД: 148813 [12:20:01]line ФПД: 10659219614714 [12:20:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122000&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148813&fm=10659219614714&tin=02508201610067®Number=0000000000092720&sum=13000 [12:20:02]line 0 [12:20:02]OFD Sender: Processing packet 148813 [packets to send 100, broken 99] [12:20:02]ProducePacketName [12:20:02]name=ofd_packets/00148813 [12:20:02]OFD Sender: To server: pG, [12:20:02]CommunicateWithHost lk.salyk.kg:30040 [12:20:02]ConnectInit lk.salyk.kg [12:20:02]written 0, free lines is 4095 [12:20:02]Connected sock=10 [12:20:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 17 01 00 00 12 B9 0F 01 63 BB 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 70 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4D 45 02 00 35 04 06 00 09 B1 CA FF AB FA 75 83 6C 28 98 96 61 95 [12:20:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A2 4B 47 00 3D F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4D 45 02 00 F4 03 04 00 94 AD 5E 66 B6 04 01 00 00 E0 D3 74 39 C2 23 2D FB [12:20:02]CommunicateWithHost err = 0 [12:20:02]CheckOFDResponse [12:20:02]1017 (14) - 77093643461234 [12:20:02]1041 (16) - 0000000000875057 [12:20:02]1040 (4) - 148813 [12:20:02]1012 (4) - 04.06.2024 06:00 [12:20:02]1206 (1) - 0 [12:20:02]OFD Sender: Remove packet 148813 [12:20:02]ProducePacketName [12:20:02]name=ofd_packets/00148813 [12:20:02]NVStorageDeleteData [12:20:02]Write to MH i2c: 01 00 00 3A 01 3B [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 07 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 97 0C E5 [12:20:02]RasterBufferAndPrint [12:20:02]line [12:20:02]line [12:20:02]line [12:20:02]line [12:20:02]line [12:20:02]written 0, free lines is 3227 [12:20:02]MH_Cut [12:20:02]Write to MH i2c: D1 01 00 41 01 01 14 [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: D1 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: D1 01 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: D1 01 00 41 01 00 13 [12:20:02]Write to MH i2c: 01 00 00 42 01 43 [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]OFD Sender: No OFD packet to send [12:20:03]*** Cut start [12:20:03]*** Partial cut [12:20:03]*** CUTSNS_PIN = 1 [12:20:03]*** CUTSNS_PIN = 0 [12:20:04]*** Brake cut motor [12:20:04]Read from MH i2c: 01 [12:20:04]MH_I2C_Read... [12:20:04]*** Stop cut motor [12:20:04]*** Cut end [12:20:04]Read from MH i2c: 01 07 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [12:20:04]process_action close_receipt done [12:20:04]requested_data is exist [12:20:04]produce_requested_data [12:20:04]requested_item fm.sn is exist - process it [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 11 00 00 [12:20:04]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 17 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 11 [12:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:20:04]wFMCommunicate OK [12:20:04]requested_item fd.num is exist - process it [12:20:04]SAM_PROTO_GetFieldsCounters [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 13 00 00 [12:20:04]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 62 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4D 45 02 00 0E 04 04 00 70 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 AA [12:20:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4D 45 02 00 0E 04 04 00 70 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 [12:20:04]wFMCommunicate OK [12:20:04]SAM_PROTO_GetFieldsCounters done [12:20:04]requested_item shift.num is exist - process it [12:20:04]requested_item shift.opened is exist - process it [12:20:04]req_shift_opened [12:20:04]FM_GetShiftState [12:20:04]SAM_PROTO_GetShiftState [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 13 01 00 [12:20:04]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:04]Read from MH i2c: E2 0E 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 86 [12:20:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:20:04]wFMCommunicate OK [12:20:04]SAM_PROTO_GetShiftState done [12:20:04]FM_GetShiftState done [12:20:04]req_shift_opened done [12:20:04]requested_item shift.open_date is exist - process it [12:20:04]req_shift_open_date [12:20:04]req_shift_open_date done [12:20:04]produce_requested_data done [12:20:04]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148813,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:20:04]process_action_free close_receipt [12:20:04]json_value_free [12:20:04]json_value_free done [12:20:04]process_json_proto returns [12:20:04]Send response to host [12:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148813,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:20:04]free response buf [12:20:04]execute_script done [12:20:04]execute_script returns [12:20:04]free content buf [12:20:04]Sock 7.Close socket [12:20:04]Sock 7.Thread stoped [12:20:07]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:19]accept exits with 9 [12:20:19]New connection [12:20:19]New thread 3067407716 created [12:20:19]Thread 3067264356 joined [12:20:19]Waiting for new connection... [12:20:19] Sock 9.Parse request [12:20:19]Sock 9.Check first char [12:20:19]Sock 9.First char is OK [12:20:19]request: POST /json_proto HTTP/1.0 [12:20:19]Method: POST [12:20:19]URL: /json_proto [12:20:19]Method is POST - this is cgi request [12:20:19]url: /json_proto [12:20:19]query_string will be loaded in cgi processing [12:20:19]execute_cgi json_proto POST (null) [12:20:19]execute_cgi path=json_proto method=POST [12:20:19]POST find Content-Length [12:20:19]Host: 172.17.38.4:8080 [12:20:19]Content-Length: 677 [12:20:19]Content-Type: application/json [12:20:19] [12:20:19]POST finish read [12:20:19]Found Content-Length = 677 [12:20:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:19]execute_script... [12:20: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)979741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:19]POST & json_proto [12:20:19]process_json_proto [12:20:19]json parsed OK: [12:20:19]protocol is kg_v1.0 [12:20:19]action value=close_receipt [12:20:19]process_action close_receipt [12:20:19]cmd_close_receipt [12:20:19]MH_GetDate [12:20:19]Write to MH i2c: F0 00 00 46 01 36 [12:20:19]Write i2c OK [12:20:19]MH_I2C_Read... [12:20:19]Read from MH i2c: F0 [12:20:19]MH_I2C_Read... [12:20:19]Read from MH i2c: F0 09 00 [12:20:19]MH_I2C_Read... [12:20:19]Read from MH i2c: F0 09 00 46 01 00 83 06 5F 66 CC 51 87 64 95 [12:20:19]GetLastDocTimeStamp 1717503600 [12:20:19]current date 1717503619 [12:20:19]FM_GetShiftState [12:20:19]SAM_PROTO_GetShiftState [12:20:19]wFMCommunicate request_size=4 [12:20:19]MH_SAM_APDU [12:20:19]CAPDU: 80 13 01 00 [12:20:19]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [12:20:19]Write i2c OK [12:20:19]MH_I2C_Read... [12:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:19]Read from MH i2c: E2 [12:20:19]MH_I2C_Read... [12:20:19]Read from MH i2c: E2 0E 00 [12:20:19]MH_I2C_Read... [12:20:19]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 88 [12:20:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:20:19]wFMCommunicate OK [12:20:19]SAM_PROTO_GetShiftState done [12:20:19]FM_GetShiftState done [12:20:19]opened in 1717460629 [12:20:19]opened+sec_in_day 1717547029 [12:20:19]quantity*price = 30038 [12:20:19]sum+1 = 30039 [12:20:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 153 04.06.2024 12:20 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148814 ФПД: 114509729114595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122019&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148814&fm=114509729114595&tin=02508201610067®Number=0000000000092720&sum=30000 [12:20:20]StoreToDocumentArchive [12:20:20]shift 368 fd 148814 [12:20:20]save to /storage/0368/doc_00148814 [12:20:20]save last doc name /storage/0368/doc_00148814 to /storage/kkm_last_doc_name [12:20:20]save OK [12:20:20]Clear old archive folders... [12:20:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:20]tlvbuf is 00467970 [12:20:20]SAM_PROTO_ClearQueue [12:20:20]wFMCommunicate request_size=4 [12:20:20]MH_SAM_APDU [12:20:20]CAPDU: 80 09 00 00 [12:20:20]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 03 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [12:20:20]RAPDU: 90 00 [12:20:20]wFMCommunicate OK [12:20:20]SAM_PROTO_ClearQueue done [12:20:20]KKMCreateOFDPacket [12:20:20]OFDProtocolAddRootSTLVToBuf [12:20:20]FM_MakeSignedData [12:20:20]FM_MakeSignedData [12:20:20]SAM_PROTO_SignData [12:20:20]wFMCommunicate request_size=4 [12:20:20]MH_SAM_APDU [12:20:20]CAPDU: 80 0D 01 02 [12:20:20]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 03 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [12:20:20]RAPDU: 90 00 [12:20:20]wFMCommunicate OK [12:20:20]wFMCommunicate request_size=255 [12:20:20]MH_SAM_APDU [12:20:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 99 00 00 00 F4 03 04 00 83 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4E 45 02 00 35 04 06 00 68 [12:20:20]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 99 00 00 00 F4 03 04 00 83 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4E 45 02 00 35 04 06 00 68 00 00 A2 [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 03 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [12:20:20]RAPDU: 90 00 [12:20:20]wFMCommunicate OK [12:20:20]wFMCommunicate request_size=10 [12:20:20]MH_SAM_APDU [12:20:20]CAPDU: 80 0D 02 02 05 25 5F BA 29 E3 [12:20:20]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 25 5F BA 29 E3 00 00 26 [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 03 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [12:20:20]RAPDU: 90 00 [12:20:20]wFMCommunicate OK [12:20:20]wFMCommunicate request_size=4 [12:20:20]MH_SAM_APDU [12:20:20]CAPDU: 80 0D 03 02 [12:20:20]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 0B 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 0B 00 58 01 00 F0 73 D4 1B 4A 56 47 CA 90 00 D8 [12:20:20]RAPDU: F0 73 D4 1B 4A 56 47 CA 90 00 [12:20:20]wFMCommunicate OK [12:20:20]SAM_PROTO_SignData done [12:20:20]FM_MakeSignedData done [12:20:20]CreateOFDProtocolMessage [12:20:20]wFMCommunicate request_size=4 [12:20:20]MH_SAM_APDU [12:20:20]CAPDU: 80 11 00 00 [12:20:20]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 17 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 27 [12:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:20:20]wFMCommunicate OK [12:20:20]CreateOFDProtocolMessage done [12:20:20]OFDSenderStorePacket 148814 [12:20:20]StoreOFDPacket docnum=148814 [12:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 92 28 07 01 3E 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 83 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4E 45 02 00 35 04 06 00 68 25 5F BA 29 E3 F0 73 D4 1B 4A 56 47 CA [12:20:20]CheckFolder [12:20:20]dirname=/storage/ofd_packets [12:20:20]CheckFolder done [12:20:20]ProducePacketName [12:20:20]name=ofd_packets/00148814 [12:20:20]NVStorageSaveData ofd_packets/00148814 [12:20:20]File name is /storage/ofd_packets/00148814 [12:20:20]Write 301 bytes [12:20:20]NVStorageSaveData done [12:20:20]OFDSenderStorePacket done [12:20:20]KKMCreateOFDPacket done [12:20:20]NVStorageSaveData kkm_last_timestamp [12:20:20]File name is /storage/kkm_last_timestamp [12:20:20]Write 4 bytes [12:20:20]NVStorageSaveData done [12:20:20]ExternCall_PrintAddStr [12:20:20]wPrintStart [12:20:20]Write to MH i2c: 01 00 00 5A 01 5B [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: 01 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: 01 07 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [12:20:20]RasterBufferAndPrint [12:20:20]line Счет N : (1)979741 [12:20:20]line ИНН: 02508201610067 [12:20:20]line Контрольно-Кассовый Чек [12:20:20]line ПРОДАЖА [12:20:20]line ТРК (МРК, ГНК) : 31 [12:20:20]line Товар: 2710124130 [12:20:20]line Аи-92-К-5 [12:20:20]line 4.490 * 66.90 [12:20:20]line = 300.38 [12:20:20]line НДС 12% НСП 1% [12:20:20]line > о реализуемом товаре [12:20:20]line ОКРУГЛЕНИЕ: -0.38 [12:20:20]line ИТОГО: 300.00 [12:20:20]line Внесено: 300.00 [12:20:20]line СДАЧА: 0.00 [12:20:20]line НСП 1% : 2.66 [12:20:20]line НДС 12% : 31.90 [12:20:20]line Наличными: 300.00 [12:20:20]line Безнал.: 0.00 [12:20:20]line Место: АЗС № 68 "Партнер Нефть" [12:20:20]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:20:20]line СНО: Общий режим [12:20:20]line Чек 153 04.06.2024 12:20 [12:20:20]line Смена: 368 ФФД: 1.0 [12:20:20]line ЗНМ: 0300000035 [12:20:20]line РНМ: 0000000000092720 [12:20:20]line Версия ККМ: 001 [12:20:20]line ФМ: 0000000000875057 [12:20:20]line ФД: 148814 [12:20:20]line ФПД: 114509729114595 [12:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122019&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148814&fm=114509729114595&tin=02508201610067®Number=0000000000092720&sum=30000 [12:20:21]OFD Sender: Processing packet 148814 [packets to send 100, broken 99] [12:20:21]ProducePacketName [12:20:21]name=ofd_packets/00148814 [12:20:21]OFD Sender: To server: pG, [12:20:21]CommunicateWithHost lk.salyk.kg:30040 [12:20:21]ConnectInit lk.salyk.kg [12:20:21]written 0, free lines is 4095 [12:20:21]Connected sock=10 [12:20:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 92 28 07 01 3E 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 83 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4E 45 02 00 35 04 06 00 68 25 5F BA 29 E3 F0 73 D4 1B 4A 56 47 CA [12:20:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DB 43 47 00 7D 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 38 37 35 30 35 37 10 04 04 00 4E 45 02 00 F4 03 04 00 A7 AD 5E 66 B6 04 01 00 00 C7 48 DF 61 BF 55 71 84 [12:20:21]CommunicateWithHost err = 0 [12:20:21]CheckOFDResponse [12:20:21]1017 (14) - 77093643461234 [12:20:21]1041 (16) - 0000000000875057 [12:20:21]1040 (4) - 148814 [12:20:21]1012 (4) - 04.06.2024 06:01 [12:20:21]1206 (1) - 0 [12:20:21]OFD Sender: Remove packet 148814 [12:20:21]ProducePacketName [12:20:21]name=ofd_packets/00148814 [12:20:21]NVStorageDeleteData [12:20:21]Write to MH i2c: 01 00 00 85 01 86 [12:20:21]Write i2c OK [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: 01 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: 01 07 00 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 6B 0C 04 [12:20:21]RasterBufferAndPrint [12:20:21]line [12:20:21]line [12:20:21]line [12:20:21]line [12:20:21]line [12:20:21]written 0, free lines is 3181 [12:20:21]MH_Cut [12:20:21]Write to MH i2c: D1 01 00 8C 01 01 5F [12:20:21]Write i2c OK [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: D1 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: D1 01 00 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: D1 01 00 8C 01 00 5E [12:20:21]Write to MH i2c: 01 00 00 8D 01 8E [12:20:21]Write i2c OK [12:20:21]MH_I2C_Read... [12:20:21]OFD Sender: No OFD packet to send [12:20:22]*** Cut start [12:20:22]*** Partial cut [12:20:22]*** CUTSNS_PIN = 1 [12:20:22]*** CUTSNS_PIN = 0 [12:20:23]*** Brake cut motor [12:20:23]Read from MH i2c: 01 [12:20:23]MH_I2C_Read... [12:20:23]*** Stop cut motor [12:20:23]*** Cut end [12:20:23]Read from MH i2c: 01 07 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [12:20:23]process_action close_receipt done [12:20:23]requested_data is exist [12:20:23]produce_requested_data [12:20:23]requested_item fm.sn is exist - process it [12:20:23]wFMCommunicate request_size=4 [12:20:23]MH_SAM_APDU [12:20:23]CAPDU: 80 11 00 00 [12:20:23]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:23]Read from MH i2c: E2 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 17 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5C [12:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:20:23]wFMCommunicate OK [12:20:23]requested_item fd.num is exist - process it [12:20:23]SAM_PROTO_GetFieldsCounters [12:20:23]wFMCommunicate request_size=4 [12:20:23]MH_SAM_APDU [12:20:23]CAPDU: 80 13 00 00 [12:20:23]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:23]Read from MH i2c: E2 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 62 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4E 45 02 00 0E 04 04 00 70 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 F9 [12:20:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4E 45 02 00 0E 04 04 00 70 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 [12:20:23]wFMCommunicate OK [12:20:23]SAM_PROTO_GetFieldsCounters done [12:20:23]requested_item shift.num is exist - process it [12:20:23]requested_item shift.opened is exist - process it [12:20:23]req_shift_opened [12:20:23]FM_GetShiftState [12:20:23]SAM_PROTO_GetShiftState [12:20:23]wFMCommunicate request_size=4 [12:20:23]MH_SAM_APDU [12:20:23]CAPDU: 80 13 01 00 [12:20:23]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:23]Read from MH i2c: E2 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 0E 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D1 [12:20:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:20:23]wFMCommunicate OK [12:20:23]SAM_PROTO_GetShiftState done [12:20:23]FM_GetShiftState done [12:20:23]req_shift_opened done [12:20:23]requested_item shift.open_date is exist - process it [12:20:23]req_shift_open_date [12:20:23]req_shift_open_date done [12:20:23]produce_requested_data done [12:20:23]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148814,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:20:23]process_action_free close_receipt [12:20:23]json_value_free [12:20:23]json_value_free done [12:20:23]process_json_proto returns [12:20:23]Send response to host [12:20:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148814,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:20:23]free response buf [12:20:23]execute_script done [12:20:23]execute_script returns [12:20:23]free content buf [12:20:23]Sock 9.Close socket [12:20:23]Sock 9.Thread stoped [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:39]accept exits with 7 [12:21:39]New connection [12:21:39]New thread 3067264356 created [12:21:39]Thread 3067407716 joined [12:21:39]Waiting for new connection... [12:21:39] Sock 7.Parse request [12:21:39]Sock 7.Check first char [12:21:39]Sock 7.First char is OK [12:21:39]request: POST /json_proto HTTP/1.0 [12:21:39]Method: POST [12:21:39]URL: /json_proto [12:21:39]Method is POST - this is cgi request [12:21:39]url: /json_proto [12:21:39]query_string will be loaded in cgi processing [12:21:39]execute_cgi json_proto POST (null) [12:21:39]execute_cgi path=json_proto method=POST [12:21:39]POST find Content-Length [12:21:39]Host: 172.17.38.4:8080 [12:21:39]Content-Length: 677 [12:21:39]Content-Type: application/json [12:21:39] [12:21:39]POST finish read [12:21:39]Found Content-Length = 677 [12:21:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:39]execute_script... [12:21:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:39]POST & json_proto [12:21:39]process_json_proto [12:21:39]json parsed OK: [12:21:39]protocol is kg_v1.0 [12:21:39]action value=close_receipt [12:21:39]process_action close_receipt [12:21:39]cmd_close_receipt [12:21:39]MH_GetDate [12:21:39]Write to MH i2c: F0 00 00 91 01 81 [12:21:39]Write i2c OK [12:21:39]MH_I2C_Read... [12:21:39]Read from MH i2c: F0 [12:21:39]MH_I2C_Read... [12:21:39]Read from MH i2c: F0 09 00 [12:21:39]MH_I2C_Read... [12:21:39]Read from MH i2c: F0 09 00 91 01 00 D4 06 5F 66 CC 51 87 64 31 [12:21:39]GetLastDocTimeStamp 1717503619 [12:21:39]current date 1717503700 [12:21:39]FM_GetShiftState [12:21:39]SAM_PROTO_GetShiftState [12:21:39]wFMCommunicate request_size=4 [12:21:39]MH_SAM_APDU [12:21:39]CAPDU: 80 13 01 00 [12:21:39]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [12:21:39]Write i2c OK [12:21:39]MH_I2C_Read... [12:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:39]Read from MH i2c: E2 [12:21:39]MH_I2C_Read... [12:21:39]Read from MH i2c: E2 0E 00 [12:21:39]MH_I2C_Read... [12:21:39]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D3 [12:21:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:21:39]wFMCommunicate OK [12:21:39]SAM_PROTO_GetShiftState done [12:21:39]FM_GetShiftState done [12:21:39]opened in 1717460629 [12:21:39]opened+sec_in_day 1717547029 [12:21:39]quantity*price = 50041 [12:21:39]sum+1 = 50042 [12:21:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 154 04.06.2024 12:21 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148815 ФПД: 161434050639437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122140&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148815&fm=161434050639437&tin=02508201610067®Number=0000000000092720&sum=50000 [12:21:41]StoreToDocumentArchive [12:21:41]shift 368 fd 148815 [12:21:41]save to /storage/0368/doc_00148815 [12:21:41]save last doc name /storage/0368/doc_00148815 to /storage/kkm_last_doc_name [12:21:41]save OK [12:21:41]Clear old archive folders... [12:21:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:41]tlvbuf is 004BDF90 [12:21:41]SAM_PROTO_ClearQueue [12:21:41]wFMCommunicate request_size=4 [12:21:41]MH_SAM_APDU [12:21:41]CAPDU: 80 09 00 00 [12:21:41]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:41]Read from MH i2c: E2 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [12:21:41]RAPDU: 90 00 [12:21:41]wFMCommunicate OK [12:21:41]SAM_PROTO_ClearQueue done [12:21:41]KKMCreateOFDPacket [12:21:41]OFDProtocolAddRootSTLVToBuf [12:21:41]FM_MakeSignedData [12:21:41]FM_MakeSignedData [12:21:41]SAM_PROTO_SignData [12:21:41]wFMCommunicate request_size=4 [12:21:41]MH_SAM_APDU [12:21:41]CAPDU: 80 0D 01 02 [12:21:41]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:41]Read from MH i2c: E2 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [12:21:41]RAPDU: 90 00 [12:21:41]wFMCommunicate OK [12:21:41]wFMCommunicate request_size=255 [12:21:41]MH_SAM_APDU [12:21:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 D4 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4F 45 02 00 35 04 06 00 92 [12:21:41]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 D4 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4F 45 02 00 35 04 06 00 92 00 00 76 [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:41]Read from MH i2c: E2 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [12:21:41]RAPDU: 90 00 [12:21:41]wFMCommunicate OK [12:21:41]wFMCommunicate request_size=10 [12:21:41]MH_SAM_APDU [12:21:41]CAPDU: 80 0D 02 02 05 D2 CB 3E 36 4D [12:21:41]Write to MH i2c: E2 0D 00 A2 01 80 0D 02 02 05 00 D2 CB 3E 36 4D 00 00 85 [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:41]Read from MH i2c: E2 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [12:21:41]RAPDU: 90 00 [12:21:41]wFMCommunicate OK [12:21:41]wFMCommunicate request_size=4 [12:21:41]MH_SAM_APDU [12:21:41]CAPDU: 80 0D 03 02 [12:21:41]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:41]Read from MH i2c: E2 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 0B 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 0B 00 A3 01 00 BE BD C5 1B F4 C2 2D 44 90 00 A2 [12:21:41]RAPDU: BE BD C5 1B F4 C2 2D 44 90 00 [12:21:41]wFMCommunicate OK [12:21:41]SAM_PROTO_SignData done [12:21:41]FM_MakeSignedData done [12:21:41]CreateOFDProtocolMessage [12:21:41]wFMCommunicate request_size=4 [12:21:41]MH_SAM_APDU [12:21:41]CAPDU: 80 11 00 00 [12:21:41]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:41]Read from MH i2c: E2 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 17 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 72 [12:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:21:41]wFMCommunicate OK [12:21:41]CreateOFDProtocolMessage done [12:21:41]OFDSenderStorePacket 148815 [12:21:41]StoreOFDPacket docnum=148815 [12:21:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 44 1F 07 01 EF F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D4 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4F 45 02 00 35 04 06 00 92 D2 CB 3E 36 4D BE BD C5 1B F4 C2 2D 44 [12:21:41]CheckFolder [12:21:41]dirname=/storage/ofd_packets [12:21:41]CheckFolder done [12:21:41]ProducePacketName [12:21:41]name=ofd_packets/00148815 [12:21:41]NVStorageSaveData ofd_packets/00148815 [12:21:41]File name is /storage/ofd_packets/00148815 [12:21:41]Write 301 bytes [12:21:41]NVStorageSaveData done [12:21:41]OFDSenderStorePacket done [12:21:41]KKMCreateOFDPacket done [12:21:41]NVStorageSaveData kkm_last_timestamp [12:21:41]File name is /storage/kkm_last_timestamp [12:21:41]Write 4 bytes [12:21:41]NVStorageSaveData done [12:21:41]ExternCall_PrintAddStr [12:21:41]wPrintStart [12:21:41]Write to MH i2c: 01 00 00 A5 01 A6 [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: 01 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: 01 07 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [12:21:41]RasterBufferAndPrint [12:21:41]line Счет N : (1)979742 [12:21:41]line ИНН: 02508201610067 [12:21:41]line Контрольно-Кассовый Чек [12:21:41]line ПРОДАЖА [12:21:41]line ТРК (МРК, ГНК) : 31 [12:21:41]line Товар: 2710124130 [12:21:41]line Аи-92-К-5 [12:21:41]line 7.480 * 66.90 [12:21:41]line = 500.41 [12:21:41]line НДС 12% НСП 1% [12:21:41]line > о реализуемом товаре [12:21:41]line ОКРУГЛЕНИЕ: -0.41 [12:21:41]line ИТОГО: 500.00 [12:21:41]line Внесено: 500.00 [12:21:41]line СДАЧА: 0.00 [12:21:41]line НСП 1% : 4.43 [12:21:41]line НДС 12% : 53.14 [12:21:41]line Наличными: 500.00 [12:21:41]line Безнал.: 0.00 [12:21:41]line Место: АЗС № 68 "Партнер Нефть" [12:21:41]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:21:41]line СНО: Общий режим [12:21:41]line Чек 154 04.06.2024 12:21 [12:21:41]line Смена: 368 ФФД: 1.0 [12:21:41]line ЗНМ: 0300000035 [12:21:41]line РНМ: 0000000000092720 [12:21:41]line Версия ККМ: 001 [12:21:41]line ФМ: 0000000000875057 [12:21:41]line ФД: 148815 [12:21:41]line ФПД: 161434050639437 [12:21:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122140&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148815&fm=161434050639437&tin=02508201610067®Number=0000000000092720&sum=50000 [12:21:41]OFD Sender: Processing packet 148815 [packets to send 100, broken 99] [12:21:41]ProducePacketName [12:21:41]name=ofd_packets/00148815 [12:21:41]OFD Sender: To server: pG, [12:21:41]CommunicateWithHost lk.salyk.kg:30040 [12:21:41]ConnectInit lk.salyk.kg [12:21:41]written 0, free lines is 4095 [12:21:42]Connected sock=10 [12:21:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 44 1F 07 01 EF F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D4 06 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4F 45 02 00 35 04 06 00 92 D2 CB 3E 36 4D BE BD C5 1B F4 C2 2D 44 [12:21:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 31 48 47 00 90 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4F 45 02 00 F4 03 04 00 F8 AD 5E 66 B6 04 01 00 00 0A EF DC 22 03 BE 40 E3 [12:21:42]CommunicateWithHost err = 0 [12:21:42]CheckOFDResponse [12:21:42]1017 (14) - 77093643461234 [12:21:42]1041 (16) - 0000000000875057 [12:21:42]1040 (4) - 148815 [12:21:42]1012 (4) - 04.06.2024 06:02 [12:21:42]1206 (1) - 0 [12:21:42]OFD Sender: Remove packet 148815 [12:21:42]ProducePacketName [12:21:42]name=ofd_packets/00148815 [12:21:42]NVStorageDeleteData [12:21:42]Write to MH i2c: 01 00 00 D0 01 D1 [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: 01 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: 01 07 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 6B 0C 4F [12:21:42]RasterBufferAndPrint [12:21:42]line [12:21:42]line [12:21:42]line [12:21:42]line [12:21:42]line [12:21:42]written 0, free lines is 3182 [12:21:42]MH_Cut [12:21:42]Write to MH i2c: D1 01 00 D7 01 01 AA [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: D1 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: D1 01 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: D1 01 00 D7 01 00 A9 [12:21:42]Write to MH i2c: 01 00 00 D8 01 D9 [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]OFD Sender: No OFD packet to send [12:21:43]*** Cut start [12:21:43]*** Partial cut [12:21:43]*** CUTSNS_PIN = 1 [12:21:43]*** CUTSNS_PIN = 0 [12:21:43]*** Brake cut motor [12:21:44]Read from MH i2c: 01 [12:21:44]MH_I2C_Read... [12:21:44]*** Stop cut motor [12:21:44]*** Cut end [12:21:44]Read from MH i2c: 01 07 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [12:21:44]process_action close_receipt done [12:21:44]requested_data is exist [12:21:44]produce_requested_data [12:21:44]requested_item fm.sn is exist - process it [12:21:44]wFMCommunicate request_size=4 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 11 00 00 [12:21:44]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:44]Read from MH i2c: E2 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 17 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A7 [12:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:21:44]wFMCommunicate OK [12:21:44]requested_item fd.num is exist - process it [12:21:44]SAM_PROTO_GetFieldsCounters [12:21:44]wFMCommunicate request_size=4 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 13 00 00 [12:21:44]Write to MH i2c: E2 08 00 DA 01 80 13 00 00 00 00 00 00 57 [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:44]Read from MH i2c: E2 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 62 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 62 00 DA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4F 45 02 00 0E 04 04 00 70 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 48 [12:21:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4F 45 02 00 0E 04 04 00 70 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 [12:21:44]wFMCommunicate OK [12:21:44]SAM_PROTO_GetFieldsCounters done [12:21:44]requested_item shift.num is exist - process it [12:21:44]requested_item shift.opened is exist - process it [12:21:44]req_shift_opened [12:21:44]FM_GetShiftState [12:21:44]SAM_PROTO_GetShiftState [12:21:44]wFMCommunicate request_size=4 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 13 01 00 [12:21:44]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:44]Read from MH i2c: E2 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 0E 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1C [12:21:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:21:44]wFMCommunicate OK [12:21:44]SAM_PROTO_GetShiftState done [12:21:44]FM_GetShiftState done [12:21:44]req_shift_opened done [12:21:44]requested_item shift.open_date is exist - process it [12:21:44]req_shift_open_date [12:21:44]req_shift_open_date done [12:21:44]produce_requested_data done [12:21:44]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148815,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:21:44]process_action_free close_receipt [12:21:44]json_value_free [12:21:44]json_value_free done [12:21:44]process_json_proto returns [12:21:44]Send response to host [12:21:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148815,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:21:44]free response buf [12:21:44]execute_script done [12:21:44]execute_script returns [12:21:44]free content buf [12:21:44]Sock 7.Close socket [12:21:44]Sock 7.Thread stoped [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [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]accept exits with 9 [12:25:52]New connection [12:25:52]New thread 3067407716 created [12:25:52]Thread 3067264356 joined [12:25:52]Waiting for new connection... [12:25:52] Sock 9.Parse request [12:25:52]Sock 9.Check first char [12:25:52]Sock 9.First char is OK [12:25:52]request: POST /json_proto HTTP/1.0 [12:25:52]Method: POST [12:25:52]URL: /json_proto [12:25:52]Method is POST - this is cgi request [12:25:52]url: /json_proto [12:25:52]query_string will be loaded in cgi processing [12:25:52]execute_cgi json_proto POST (null) [12:25:52]execute_cgi path=json_proto method=POST [12:25:52]POST find Content-Length [12:25:52]Host: 172.17.38.4:8080 [12:25:52]Content-Length: 677 [12:25:52]Content-Type: application/json [12:25:52] [12:25:52]POST finish read [12:25:52]Found Content-Length = 677 [12:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:52]execute_script... [12:25: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)979743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:52]POST & json_proto [12:25:52]process_json_proto [12:25:52]json parsed OK: [12:25:52]protocol is kg_v1.0 [12:25:52]action value=close_receipt [12:25:52]process_action close_receipt [12:25:52]cmd_close_receipt [12:25:52]MH_GetDate [12:25:52]Write to MH i2c: F0 00 00 DC 01 CC [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: F0 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: F0 09 00 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: F0 09 00 DC 01 00 D1 07 5F 66 CC 51 87 64 7A [12:25:52]GetLastDocTimeStamp 1717503700 [12:25:52]current date 1717503953 [12:25:52]FM_GetShiftState [12:25:52]SAM_PROTO_GetShiftState [12:25:52]wFMCommunicate request_size=4 [12:25:52]MH_SAM_APDU [12:25:52]CAPDU: 80 13 01 00 [12:25:52]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:52]Read from MH i2c: E2 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: E2 0E 00 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1E [12:25:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:25:52]wFMCommunicate OK [12:25:52]SAM_PROTO_GetShiftState done [12:25:52]FM_GetShiftState done [12:25:52]opened in 1717460629 [12:25:52]opened+sec_in_day 1717547029 [12:25:52]quantity*price = 20003 [12:25:52]sum+1 = 20004 [12:25:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 155 04.06.2024 12:25 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148816 ФПД: 45429419485153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122553&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148816&fm=45429419485153&tin=02508201610067®Number=0000000000092720&sum=20000 [12:25:53]StoreToDocumentArchive [12:25:53]shift 368 fd 148816 [12:25:53]save to /storage/0368/doc_00148816 [12:25:53]save last doc name /storage/0368/doc_00148816 to /storage/kkm_last_doc_name [12:25:53]save OK [12:25:53]Clear old archive folders... [12:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:53]tlvbuf is 004A9C30 [12:25:53]SAM_PROTO_ClearQueue [12:25:53]wFMCommunicate request_size=4 [12:25:53]MH_SAM_APDU [12:25:53]CAPDU: 80 09 00 00 [12:25:53]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:53]Read from MH i2c: E2 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 03 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [12:25:53]RAPDU: 90 00 [12:25:53]wFMCommunicate OK [12:25:53]SAM_PROTO_ClearQueue done [12:25:53]KKMCreateOFDPacket [12:25:53]OFDProtocolAddRootSTLVToBuf [12:25:53]FM_MakeSignedData [12:25:53]FM_MakeSignedData [12:25:53]SAM_PROTO_SignData [12:25:53]wFMCommunicate request_size=4 [12:25:53]MH_SAM_APDU [12:25:53]CAPDU: 80 0D 01 02 [12:25:53]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:53]Read from MH i2c: E2 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 03 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [12:25:53]RAPDU: 90 00 [12:25:53]wFMCommunicate OK [12:25:53]wFMCommunicate request_size=255 [12:25:53]MH_SAM_APDU [12:25:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 9B 00 00 00 F4 03 04 00 D1 07 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 50 45 02 00 35 04 06 00 29 [12:25:53]Write to MH i2c: E2 02 01 EC 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 D1 07 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 50 45 02 00 35 04 06 00 29 00 00 1A [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 03 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [12:25:54]RAPDU: 90 00 [12:25:54]wFMCommunicate OK [12:25:54]wFMCommunicate request_size=10 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 0D 02 02 05 51 5C 69 27 E1 [12:25:54]Write to MH i2c: E2 0D 00 ED 01 80 0D 02 02 05 00 51 5C 69 27 E1 00 00 90 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 03 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [12:25:54]RAPDU: 90 00 [12:25:54]wFMCommunicate OK [12:25:54]wFMCommunicate request_size=4 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 0D 03 02 [12:25:54]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 0B 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 0B 00 EE 01 00 DD 48 90 79 2E D5 A7 5B 90 00 9E [12:25:54]RAPDU: DD 48 90 79 2E D5 A7 5B 90 00 [12:25:54]wFMCommunicate OK [12:25:54]SAM_PROTO_SignData done [12:25:54]FM_MakeSignedData done [12:25:54]CreateOFDProtocolMessage [12:25:54]wFMCommunicate request_size=4 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 11 00 00 [12:25:54]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 17 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BD [12:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:25:54]wFMCommunicate OK [12:25:54]CreateOFDProtocolMessage done [12:25:54]OFDSenderStorePacket 148816 [12:25:54]StoreOFDPacket docnum=148816 [12:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A7 5C 07 01 CF 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 9B 00 00 00 F4 03 04 00 D1 07 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 50 45 02 00 35 04 06 00 29 51 5C 69 27 E1 DD 48 90 79 2E D5 A7 5B [12:25:54]CheckFolder [12:25:54]dirname=/storage/ofd_packets [12:25:54]CheckFolder done [12:25:54]ProducePacketName [12:25:54]name=ofd_packets/00148816 [12:25:54]NVStorageSaveData ofd_packets/00148816 [12:25:54]File name is /storage/ofd_packets/00148816 [12:25:54]Write 301 bytes [12:25:54]NVStorageSaveData done [12:25:54]OFDSenderStorePacket done [12:25:54]KKMCreateOFDPacket done [12:25:54]NVStorageSaveData kkm_last_timestamp [12:25:54]File name is /storage/kkm_last_timestamp [12:25:54]Write 4 bytes [12:25:54]NVStorageSaveData done [12:25:54]ExternCall_PrintAddStr [12:25:54]wPrintStart [12:25:54]Write to MH i2c: 01 00 00 F0 01 F1 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: 01 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: 01 07 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [12:25:54]RasterBufferAndPrint [12:25:54]line Счет N : (1)979743 [12:25:54]line ИНН: 02508201610067 [12:25:54]line Контрольно-Кассовый Чек [12:25:54]line ПРОДАЖА [12:25:54]line ТРК (МРК, ГНК) : 41 [12:25:54]line Товар: 2710124130 [12:25:54]line Аи-92-К-5 [12:25:54]line 2.990 * 66.90 [12:25:54]line = 200.03 [12:25:54]line НДС 12% НСП 1% [12:25:54]line > о реализуемом товаре [12:25:54]line ОКРУГЛЕНИЕ: -0.03 [12:25:54]line ИТОГО: 200.00 [12:25:54]line Внесено: 200.00 [12:25:54]line СДАЧА: 0.00 [12:25:54]line НСП 1% : 1.77 [12:25:54]line НДС 12% : 21.24 [12:25:54]line Наличными: 200.00 [12:25:54]line Безнал.: 0.00 [12:25:54]line Место: АЗС № 68 "Партнер Нефть" [12:25:54]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:25:54]line СНО: Общий режим [12:25:54]line Чек 155 04.06.2024 12:25 [12:25:54]line Смена: 368 ФФД: 1.0 [12:25:54]line ЗНМ: 0300000035 [12:25:54]line РНМ: 0000000000092720 [12:25:54]line Версия ККМ: 001 [12:25:54]line ФМ: 0000000000875057 [12:25:54]line ФД: 148816 [12:25:54]line ФПД: 45429419485153 [12:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T122553&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148816&fm=45429419485153&tin=02508201610067®Number=0000000000092720&sum=20000 [12:25:54]OFD Sender: Processing packet 148816 [packets to send 100, broken 99] [12:25:54]ProducePacketName [12:25:54]name=ofd_packets/00148816 [12:25:54]OFD Sender: To server: pG, [12:25:54]CommunicateWithHost lk.salyk.kg:30040 [12:25:54]ConnectInit lk.salyk.kg [12:25:54]written 0, free lines is 4095 [12:25:54]Connected sock=7 [12:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A7 5C 07 01 CF 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 9B 00 00 00 F4 03 04 00 D1 07 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 50 45 02 00 35 04 06 00 29 51 5C 69 27 E1 DD 48 90 79 2E D5 A7 5B [12:25:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 6F 57 47 00 CD 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 50 45 02 00 F4 03 04 00 F5 AE 5E 66 B6 04 01 00 00 32 C7 B4 B7 3C 8C AB F3 [12:25:54]CommunicateWithHost err = 0 [12:25:54]CheckOFDResponse [12:25:54]1017 (14) - 77093643461234 [12:25:54]1041 (16) - 0000000000875057 [12:25:54]1040 (4) - 148816 [12:25:54]1012 (4) - 04.06.2024 06:06 [12:25:54]1206 (1) - 0 [12:25:54]OFD Sender: Remove packet 148816 [12:25:54]ProducePacketName [12:25:54]name=ofd_packets/00148816 [12:25:54]NVStorageDeleteData [12:25:54]Write to MH i2c: 01 00 00 1B 02 1D [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: 01 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: 01 07 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 66 0C 96 [12:25:54]RasterBufferAndPrint [12:25:54]line [12:25:54]line [12:25:54]line [12:25:54]line [12:25:54]line [12:25:54]written 0, free lines is 3178 [12:25:55]MH_Cut [12:25:55]Write to MH i2c: D1 01 00 22 02 01 F6 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: D1 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: D1 01 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: D1 01 00 22 02 00 F5 [12:25:55]Write to MH i2c: 01 00 00 23 02 25 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]OFD Sender: No OFD packet to send [12:25:56]*** Cut start [12:25:56]*** Partial cut [12:25:56]*** CUTSNS_PIN = 1 [12:25:56]*** CUTSNS_PIN = 0 [12:25:56]*** Brake cut motor [12:25:56]Read from MH i2c: 01 [12:25:56]MH_I2C_Read... [12:25:56]*** Stop cut motor [12:25:56]*** Cut end [12:25:56]Read from MH i2c: 01 07 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [12:25:56]process_action close_receipt done [12:25:56]requested_data is exist [12:25:56]produce_requested_data [12:25:56]requested_item fm.sn is exist - process it [12:25:56]wFMCommunicate request_size=4 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 11 00 00 [12:25:56]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 17 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F3 [12:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:25:56]wFMCommunicate OK [12:25:56]requested_item fd.num is exist - process it [12:25:56]SAM_PROTO_GetFieldsCounters [12:25:56]wFMCommunicate request_size=4 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 13 00 00 [12:25:56]Write to MH i2c: E2 08 00 25 02 80 13 00 00 00 00 00 00 A3 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 62 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 62 00 25 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 50 45 02 00 0E 04 04 00 70 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 98 [12:25:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 50 45 02 00 0E 04 04 00 70 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 [12:25:57]wFMCommunicate OK [12:25:57]SAM_PROTO_GetFieldsCounters done [12:25:57]requested_item shift.num is exist - process it [12:25:57]requested_item shift.opened is exist - process it [12:25:57]req_shift_opened [12:25:57]FM_GetShiftState [12:25:57]SAM_PROTO_GetShiftState [12:25:57]wFMCommunicate request_size=4 [12:25:57]MH_SAM_APDU [12:25:57]CAPDU: 80 13 01 00 [12:25:57]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:57]Read from MH i2c: E2 0E 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 68 [12:25:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:25:57]wFMCommunicate OK [12:25:57]SAM_PROTO_GetShiftState done [12:25:57]FM_GetShiftState done [12:25:57]req_shift_opened done [12:25:57]requested_item shift.open_date is exist - process it [12:25:57]req_shift_open_date [12:25:57]req_shift_open_date done [12:25:57]produce_requested_data done [12:25:57]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148816,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:25:57]process_action_free close_receipt [12:25:57]json_value_free [12:25:57]json_value_free done [12:25:57]process_json_proto returns [12:25:57]Send response to host [12:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148816,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:25:57]free response buf [12:25:57]execute_script done [12:25:57]execute_script returns [12:25:57]free content buf [12:25:57]Sock 9.Close socket [12:25:57]Sock 9.Thread stoped [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:23]accept exits with 10 [12:36:23]New connection [12:36:23]New thread 3067264356 created [12:36:23]Thread 3067407716 joined [12:36:23]Waiting for new connection... [12:36:23] Sock 10.Parse request [12:36:23]Sock 10.Check first char [12:36:23]Sock 10.First char is OK [12:36:23]request: POST /json_proto HTTP/1.0 [12:36:23]Method: POST [12:36:23]URL: /json_proto [12:36:23]Method is POST - this is cgi request [12:36:23]url: /json_proto [12:36:23]query_string will be loaded in cgi processing [12:36:23]execute_cgi json_proto POST (null) [12:36:23]execute_cgi path=json_proto method=POST [12:36:23]POST find Content-Length [12:36:23]Host: 172.17.38.4:8080 [12:36:23]Content-Length: 674 [12:36:23]Content-Type: application/json [12:36:23] [12:36:23]POST finish read [12:36:23]Found Content-Length = 674 [12:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:36:23]execute_script... [12:36: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)979744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:36:23]POST & json_proto [12:36:23]process_json_proto [12:36:23]json parsed OK: [12:36:23]protocol is kg_v1.0 [12:36:23]action value=close_receipt [12:36:23]process_action close_receipt [12:36:23]cmd_close_receipt [12:36:23]MH_GetDate [12:36:23]Write to MH i2c: F0 00 00 27 02 18 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 09 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 09 00 27 02 00 47 0A 5F 66 CC 51 87 64 3F [12:36:23]GetLastDocTimeStamp 1717503953 [12:36:23]current date 1717504583 [12:36:23]FM_GetShiftState [12:36:23]SAM_PROTO_GetShiftState [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 13 01 00 [12:36:23]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0E 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6A [12:36:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:36:23]wFMCommunicate OK [12:36:23]SAM_PROTO_GetShiftState done [12:36:23]FM_GetShiftState done [12:36:23]opened in 1717460629 [12:36:23]opened+sec_in_day 1717547029 [12:36:23]quantity*price = 30034 [12:36:23]sum+1 = 30036 [12:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 156 04.06.2024 12:36 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148817 ФПД: 238262918128757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T123623&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148817&fm=238262918128757&tin=02508201610067®Number=0000000000092720&sum=30000 [12:36:24]StoreToDocumentArchive [12:36:24]shift 368 fd 148817 [12:36:24]save to /storage/0368/doc_00148817 [12:36:24]save last doc name /storage/0368/doc_00148817 to /storage/kkm_last_doc_name [12:36:24]save OK [12:36:24]Clear old archive folders... [12:36:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:36:24]tlvbuf is 004A8220 [12:36:24]SAM_PROTO_ClearQueue [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 09 00 00 [12:36:24]Write to MH i2c: E2 08 00 35 02 80 09 00 00 00 00 00 00 A9 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]SAM_PROTO_ClearQueue done [12:36:24]KKMCreateOFDPacket [12:36:24]OFDProtocolAddRootSTLVToBuf [12:36:24]FM_MakeSignedData [12:36:24]FM_MakeSignedData [12:36:24]SAM_PROTO_SignData [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 01 02 [12:36:24]Write to MH i2c: E2 08 00 36 02 80 0D 01 02 00 00 00 00 B1 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]wFMCommunicate request_size=255 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9C 00 00 00 F4 03 04 00 47 0A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 51 45 02 00 35 04 06 00 D8 B2 E8 99 [12:36:24]Write to MH i2c: E2 02 01 37 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9C 00 00 00 F4 03 04 00 47 0A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 51 45 02 00 35 04 06 00 D8 B2 E8 99 00 00 2C [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]wFMCommunicate request_size=7 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 02 02 02 24 75 [12:36:24]Write to MH i2c: E2 0A 00 38 02 80 0D 02 02 02 00 24 75 00 00 51 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 03 02 [12:36:24]Write to MH i2c: E2 08 00 39 02 80 0D 03 02 00 00 00 00 B6 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 0B 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 0B 00 39 02 00 5E 8F 16 B2 FE A2 C5 19 90 00 EA [12:36:24]RAPDU: 5E 8F 16 B2 FE A2 C5 19 90 00 [12:36:24]wFMCommunicate OK [12:36:24]SAM_PROTO_SignData done [12:36:24]FM_MakeSignedData done [12:36:24]CreateOFDProtocolMessage [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 11 00 00 [12:36:24]Write to MH i2c: E2 08 00 3A 02 80 11 00 00 00 00 00 00 B6 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 17 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 17 00 3A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 09 [12:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:36:24]wFMCommunicate OK [12:36:24]CreateOFDProtocolMessage done [12:36:24]OFDSenderStorePacket 148817 [12:36:24]StoreOFDPacket docnum=148817 [12:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 A0 C4 04 01 59 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9C 00 00 00 F4 03 04 00 47 0A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 51 45 02 00 35 04 06 00 D8 B2 E8 99 24 75 5E 8F 16 B2 FE A2 C5 19 [12:36:24]CheckFolder [12:36:24]dirname=/storage/ofd_packets [12:36:24]CheckFolder done [12:36:24]ProducePacketName [12:36:24]name=ofd_packets/00148817 [12:36:24]NVStorageSaveData ofd_packets/00148817 [12:36:24]File name is /storage/ofd_packets/00148817 [12:36:24]Write 298 bytes [12:36:24]NVStorageSaveData done [12:36:24]OFDSenderStorePacket done [12:36:24]KKMCreateOFDPacket done [12:36:24]NVStorageSaveData kkm_last_timestamp [12:36:24]File name is /storage/kkm_last_timestamp [12:36:24]Write 4 bytes [12:36:24]NVStorageSaveData done [12:36:24]ExternCall_PrintAddStr [12:36:24]wPrintStart [12:36:24]Write to MH i2c: 01 00 00 3B 02 3D [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [12:36:24]RasterBufferAndPrint [12:36:24]line Счет N : (1)979744 [12:36:24]line ИНН: 02508201610067 [12:36:24]line Контрольно-Кассовый Чек [12:36:24]line ПРОДАЖА [12:36:24]line ТРК (МРК, ГНК) : 51 [12:36:24]line Товар: 2710194210 [12:36:24]line ДТ-К-5 [12:36:24]line 4.120 * 72.90 [12:36:24]line = 300.35 [12:36:24]line НДС 12% НСП 1% [12:36:24]line > о реализуемом товаре [12:36:24]line ОКРУГЛЕНИЕ: -0.35 [12:36:24]line ИТОГО: 300.00 [12:36:24]line Внесено: 300.00 [12:36:24]line СДАЧА: 0.00 [12:36:24]line НСП 1% : 2.66 [12:36:24]line НДС 12% : 31.90 [12:36:24]line Наличными: 300.00 [12:36:24]line Безнал.: 0.00 [12:36:24]line Место: АЗС № 68 "Партнер Нефть" [12:36:24]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:36:24]line СНО: Общий режим [12:36:24]line Чек 156 04.06.2024 12:36 [12:36:24]line Смена: 368 ФФД: 1.0 [12:36:24]line ЗНМ: 0300000035 [12:36:24]line РНМ: 0000000000092720 [12:36:24]line Версия ККМ: 001 [12:36:24]line ФМ: 0000000000875057 [12:36:25]line ФД: 148817 [12:36:25]line ФПД: 238262918128757 [12:36:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T123623&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148817&fm=238262918128757&tin=02508201610067®Number=0000000000092720&sum=30000 [12:36:25]OFD Sender: Processing packet 148817 [packets to send 100, broken 99] [12:36:25]ProducePacketName [12:36:25]name=ofd_packets/00148817 [12:36:25]OFD Sender: To server: pG, [12:36:25]CommunicateWithHost lk.salyk.kg:30040 [12:36:25]ConnectInit lk.salyk.kg [12:36:25]written 0, free lines is 4095 [12:36:25]Connected sock=9 [12:36:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 A0 C4 04 01 59 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9C 00 00 00 F4 03 04 00 47 0A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 51 45 02 00 35 04 06 00 D8 B2 E8 99 24 75 5E 8F 16 B2 FE A2 C5 19 [12:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 85 7B 47 00 B6 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 51 45 02 00 F4 03 04 00 6B B1 5E 66 B6 04 01 00 00 7A CC 88 EC DD EE 6E 27 [12:36:25]CommunicateWithHost err = 0 [12:36:25]CheckOFDResponse [12:36:25]1017 (14) - 77093643461234 [12:36:25]1041 (16) - 0000000000875057 [12:36:25]1040 (4) - 148817 [12:36:25]1012 (4) - 04.06.2024 06:17 [12:36:25]1206 (1) - 0 [12:36:25]OFD Sender: Remove packet 148817 [12:36:25]ProducePacketName [12:36:25]name=ofd_packets/00148817 [12:36:25]NVStorageDeleteData [12:36:25]Write to MH i2c: 01 00 00 66 02 68 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 69 0C E4 [12:36:25]RasterBufferAndPrint [12:36:25]line [12:36:25]line [12:36:25]line [12:36:25]line [12:36:25]line [12:36:25]written 0, free lines is 3180 [12:36:25]MH_Cut [12:36:25]Write to MH i2c: D1 01 00 6D 02 01 41 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: D1 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: D1 01 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: D1 01 00 6D 02 00 40 [12:36:25]Write to MH i2c: 01 00 00 6E 02 70 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]OFD Sender: No OFD packet to send [12:36:26]*** Cut start [12:36:26]*** Partial cut [12:36:26]*** CUTSNS_PIN = 1 [12:36:26]*** CUTSNS_PIN = 0 [12:36:27]*** Brake cut motor [12:36:27]Read from MH i2c: 01 [12:36:27]MH_I2C_Read... [12:36:27]*** Stop cut motor [12:36:27]*** Cut end [12:36:27]Read from MH i2c: 01 07 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [12:36:27]process_action close_receipt done [12:36:27]requested_data is exist [12:36:27]produce_requested_data [12:36:27]requested_item fm.sn is exist - process it [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 11 00 00 [12:36:27]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 17 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3E [12:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:36:27]wFMCommunicate OK [12:36:27]requested_item fd.num is exist - process it [12:36:27]SAM_PROTO_GetFieldsCounters [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 13 00 00 [12:36:27]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 62 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 62 00 70 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 51 45 02 00 0E 04 04 00 70 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 E7 [12:36:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 51 45 02 00 0E 04 04 00 70 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 [12:36:27]wFMCommunicate OK [12:36:27]SAM_PROTO_GetFieldsCounters done [12:36:27]requested_item shift.num is exist - process it [12:36:27]requested_item shift.opened is exist - process it [12:36:27]req_shift_opened [12:36:27]FM_GetShiftState [12:36:27]SAM_PROTO_GetShiftState [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 13 01 00 [12:36:27]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B3 [12:36:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:36:27]wFMCommunicate OK [12:36:27]SAM_PROTO_GetShiftState done [12:36:27]FM_GetShiftState done [12:36:27]req_shift_opened done [12:36:27]requested_item shift.open_date is exist - process it [12:36:27]req_shift_open_date [12:36:27]req_shift_open_date done [12:36:27]produce_requested_data done [12:36:27]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148817,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:36:27]process_action_free close_receipt [12:36:27]json_value_free [12:36:27]json_value_free done [12:36:27]process_json_proto returns [12:36:27]Send response to host [12:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148817,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:36:27]free response buf [12:36:27]execute_script done [12:36:27]execute_script returns [12:36:27]free content buf [12:36:27]Sock 10.Close socket [12:36:27]Sock 10.Thread stoped [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:09]accept exits with 7 [12:42:09]New connection [12:42:09]New thread 3067407716 created [12:42:09]Thread 3067264356 joined [12:42:09]Waiting for new connection... [12:42:09] Sock 7.Parse request [12:42:09]Sock 7.Check first char [12:42:09]Sock 7.First char is OK [12:42:09]request: POST /json_proto HTTP/1.0 [12:42:09]Method: POST [12:42:09]URL: /json_proto [12:42:09]Method is POST - this is cgi request [12:42:09]url: /json_proto [12:42:09]query_string will be loaded in cgi processing [12:42:09]execute_cgi json_proto POST (null) [12:42:09]execute_cgi path=json_proto method=POST [12:42:09]POST find Content-Length [12:42:09]Host: 172.17.38.4:8080 [12:42:09]Content-Length: 679 [12:42:09]Content-Type: application/json [12:42:09] [12:42:09]POST finish read [12:42:09]Found Content-Length = 679 [12:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:42:09]execute_script... [12:42:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [12:42:09]POST & json_proto [12:42:09]process_json_proto [12:42:09]json parsed OK: [12:42:09]protocol is kg_v1.0 [12:42:09]action value=close_receipt [12:42:09]process_action close_receipt [12:42:09]cmd_close_receipt [12:42:09]MH_GetDate [12:42:09]Write to MH i2c: F0 00 00 72 02 63 [12:42:09]Write i2c OK [12:42:09]MH_I2C_Read... [12:42:09]Read from MH i2c: F0 [12:42:09]MH_I2C_Read... [12:42:09]Read from MH i2c: F0 09 00 [12:42:09]MH_I2C_Read... [12:42:09]Read from MH i2c: F0 09 00 72 02 00 A1 0B 5F 66 CC 51 87 64 E5 [12:42:09]GetLastDocTimeStamp 1717504583 [12:42:09]current date 1717504929 [12:42:09]FM_GetShiftState [12:42:09]SAM_PROTO_GetShiftState [12:42:09]wFMCommunicate request_size=4 [12:42:09]MH_SAM_APDU [12:42:09]CAPDU: 80 13 01 00 [12:42:09]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [12:42:09]Write i2c OK [12:42:09]MH_I2C_Read... [12:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:09]Read from MH i2c: E2 [12:42:09]MH_I2C_Read... [12:42:09]Read from MH i2c: E2 0E 00 [12:42:09]MH_I2C_Read... [12:42:09]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B5 [12:42:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:42:09]wFMCommunicate OK [12:42:09]SAM_PROTO_GetShiftState done [12:42:09]FM_GetShiftState done [12:42:09]opened in 1717460629 [12:42:09]opened+sec_in_day 1717547029 [12:42:09]quantity*price = 100018 [12:42:09]sum+1 = 100020 [12:42:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 157 04.06.2024 12:42 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148818 ФПД: 32095365254754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T124209&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148818&fm=32095365254754&tin=02508201610067®Number=0000000000092720&sum=100000 [12:42:10]StoreToDocumentArchive [12:42:10]shift 368 fd 148818 [12:42:10]save to /storage/0368/doc_00148818 [12:42:10]save last doc name /storage/0368/doc_00148818 to /storage/kkm_last_doc_name [12:42:10]save OK [12:42:10]Clear old archive folders... [12:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:42:10]tlvbuf is 0046C1A0 [12:42:10]SAM_PROTO_ClearQueue [12:42:10]wFMCommunicate request_size=4 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 09 00 00 [12:42:10]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 03 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [12:42:10]RAPDU: 90 00 [12:42:10]wFMCommunicate OK [12:42:10]SAM_PROTO_ClearQueue done [12:42:10]KKMCreateOFDPacket [12:42:10]OFDProtocolAddRootSTLVToBuf [12:42:10]FM_MakeSignedData [12:42:10]FM_MakeSignedData [12:42:10]SAM_PROTO_SignData [12:42:10]wFMCommunicate request_size=4 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 0D 01 02 [12:42:10]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 03 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [12:42:10]RAPDU: 90 00 [12:42:10]wFMCommunicate OK [12:42:10]wFMCommunicate request_size=255 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9D 00 00 00 F4 03 04 00 A1 0B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 52 45 02 00 35 04 06 00 1D 30 C8 D8 [12:42:10]Write to MH i2c: E2 02 01 82 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9D 00 00 00 F4 03 04 00 A1 0B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 52 45 02 00 35 04 06 00 1D 30 C8 D8 00 00 62 [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 03 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [12:42:10]RAPDU: 90 00 [12:42:10]wFMCommunicate OK [12:42:10]wFMCommunicate request_size=7 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 0D 02 02 02 4E 62 [12:42:10]Write to MH i2c: E2 0A 00 83 02 80 0D 02 02 02 00 4E 62 00 00 B3 [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 03 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [12:42:10]RAPDU: 90 00 [12:42:10]wFMCommunicate OK [12:42:10]wFMCommunicate request_size=4 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 0D 03 02 [12:42:10]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 0B 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 0B 00 84 02 00 00 13 DC 35 86 2A D5 FD 90 00 A8 [12:42:10]RAPDU: 00 13 DC 35 86 2A D5 FD 90 00 [12:42:10]wFMCommunicate OK [12:42:10]SAM_PROTO_SignData done [12:42:10]FM_MakeSignedData done [12:42:10]CreateOFDProtocolMessage [12:42:10]wFMCommunicate request_size=4 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 11 00 00 [12:42:10]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 17 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 54 [12:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:42:10]wFMCommunicate OK [12:42:10]CreateOFDProtocolMessage done [12:42:10]OFDSenderStorePacket 148818 [12:42:10]StoreOFDPacket docnum=148818 [12:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 82 2A 04 01 DC 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9D 00 00 00 F4 03 04 00 A1 0B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 52 45 02 00 35 04 06 00 1D 30 C8 D8 4E 62 00 13 DC 35 86 2A D5 FD [12:42:10]CheckFolder [12:42:10]dirname=/storage/ofd_packets [12:42:10]CheckFolder done [12:42:10]ProducePacketName [12:42:10]name=ofd_packets/00148818 [12:42:10]NVStorageSaveData ofd_packets/00148818 [12:42:10]File name is /storage/ofd_packets/00148818 [12:42:10]Write 298 bytes [12:42:10]NVStorageSaveData done [12:42:10]OFDSenderStorePacket done [12:42:10]KKMCreateOFDPacket done [12:42:10]NVStorageSaveData kkm_last_timestamp [12:42:10]File name is /storage/kkm_last_timestamp [12:42:10]Write 4 bytes [12:42:10]NVStorageSaveData done [12:42:10]ExternCall_PrintAddStr [12:42:10]wPrintStart [12:42:10]Write to MH i2c: 01 00 00 86 02 88 [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: 01 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: 01 07 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [12:42:10]RasterBufferAndPrint [12:42:10]line Счет N : (1)979745 [12:42:10]line ИНН: 02508201610067 [12:42:10]line Контрольно-Кассовый Чек [12:42:10]line ПРОДАЖА [12:42:10]line ТРК (МРК, ГНК) : 21 [12:42:10]line Товар: 2710194210 [12:42:10]line ДТ-К-5 [12:42:10]line 13.720 * 72.90 [12:42:10]line = 1000.19 [12:42:10]line НДС 12% НСП 1% [12:42:10]line > о реализуемом товаре [12:42:10]line ОКРУГЛЕНИЕ: -0.19 [12:42:10]line ИТОГО: 1000.00 [12:42:10]line Внесено: 1000.00 [12:42:10]line СДАЧА: 0.00 [12:42:10]line НСП 1% : 8.85 [12:42:10]line НДС 12% : 106.21 [12:42:10]line Наличными: 1000.00 [12:42:10]line Безнал.: 0.00 [12:42:10]line Место: АЗС № 68 "Партнер Нефть" [12:42:10]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:42:10]line СНО: Общий режим [12:42:10]line Чек 157 04.06.2024 12:42 [12:42:10]line Смена: 368 ФФД: 1.0 [12:42:10]line ЗНМ: 0300000035 [12:42:10]line РНМ: 0000000000092720 [12:42:10]line Версия ККМ: 001 [12:42:10]line ФМ: 0000000000875057 [12:42:11]line ФД: 148818 [12:42:11]line ФПД: 32095365254754 [12:42:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T124209&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148818&fm=32095365254754&tin=02508201610067®Number=0000000000092720&sum=100000 [12:42:11]OFD Sender: Processing packet 148818 [packets to send 100, broken 99] [12:42:11]ProducePacketName [12:42:11]name=ofd_packets/00148818 [12:42:11]OFD Sender: To server: pG, [12:42:11]CommunicateWithHost lk.salyk.kg:30040 [12:42:11]ConnectInit lk.salyk.kg [12:42:11]written 0, free lines is 4095 [12:42:11]Connected sock=10 [12:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 82 2A 04 01 DC 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9D 00 00 00 F4 03 04 00 A1 0B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 52 45 02 00 35 04 06 00 1D 30 C8 D8 4E 62 00 13 DC 35 86 2A D5 FD [12:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 5B 87 47 00 AB 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 52 45 02 00 F4 03 04 00 C5 B2 5E 66 B6 04 01 00 00 F2 BE A5 51 90 44 84 52 [12:42:11]CommunicateWithHost err = 0 [12:42:11]CheckOFDResponse [12:42:11]1017 (14) - 77093643461234 [12:42:11]1041 (16) - 0000000000875057 [12:42:11]1040 (4) - 148818 [12:42:11]1012 (4) - 04.06.2024 06:23 [12:42:11]1206 (1) - 0 [12:42:11]OFD Sender: Remove packet 148818 [12:42:11]ProducePacketName [12:42:11]name=ofd_packets/00148818 [12:42:11]NVStorageDeleteData [12:42:11]Write to MH i2c: 01 00 00 B1 02 B3 [12:42:11]Write i2c OK [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: 01 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: 01 07 00 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 67 0C 2D [12:42:11]RasterBufferAndPrint [12:42:11]line [12:42:11]line [12:42:11]line [12:42:11]line [12:42:11]line [12:42:11]written 0, free lines is 3178 [12:42:11]MH_Cut [12:42:11]Write to MH i2c: D1 01 00 B8 02 01 8C [12:42:11]Write i2c OK [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: D1 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: D1 01 00 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: D1 01 00 B8 02 00 8B [12:42:11]Write to MH i2c: 01 00 00 B9 02 BB [12:42:11]Write i2c OK [12:42:11]MH_I2C_Read... [12:42:11]OFD Sender: No OFD packet to send [12:42:12]*** Cut start [12:42:12]*** Partial cut [12:42:12]*** CUTSNS_PIN = 1 [12:42:12]*** CUTSNS_PIN = 0 [12:42:13]*** Brake cut motor [12:42:13]Read from MH i2c: 01 [12:42:13]MH_I2C_Read... [12:42:13]*** Stop cut motor [12:42:13]*** Cut end [12:42:13]Read from MH i2c: 01 07 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [12:42:13]process_action close_receipt done [12:42:13]requested_data is exist [12:42:13]produce_requested_data [12:42:13]requested_item fm.sn is exist - process it [12:42:13]wFMCommunicate request_size=4 [12:42:13]MH_SAM_APDU [12:42:13]CAPDU: 80 11 00 00 [12:42:13]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:13]Read from MH i2c: E2 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 17 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 89 [12:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:42:13]wFMCommunicate OK [12:42:13]requested_item fd.num is exist - process it [12:42:13]SAM_PROTO_GetFieldsCounters [12:42:13]wFMCommunicate request_size=4 [12:42:13]MH_SAM_APDU [12:42:13]CAPDU: 80 13 00 00 [12:42:13]Write to MH i2c: E2 08 00 BB 02 80 13 00 00 00 00 00 00 39 [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:13]Read from MH i2c: E2 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 62 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 62 00 BB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 52 45 02 00 0E 04 04 00 70 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 36 [12:42:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 52 45 02 00 0E 04 04 00 70 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 [12:42:13]wFMCommunicate OK [12:42:13]SAM_PROTO_GetFieldsCounters done [12:42:13]requested_item shift.num is exist - process it [12:42:13]requested_item shift.opened is exist - process it [12:42:13]req_shift_opened [12:42:13]FM_GetShiftState [12:42:13]SAM_PROTO_GetShiftState [12:42:13]wFMCommunicate request_size=4 [12:42:13]MH_SAM_APDU [12:42:13]CAPDU: 80 13 01 00 [12:42:13]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:13]Read from MH i2c: E2 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 0E 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FE [12:42:13]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:42:13]wFMCommunicate OK [12:42:13]SAM_PROTO_GetShiftState done [12:42:13]FM_GetShiftState done [12:42:13]req_shift_opened done [12:42:13]requested_item shift.open_date is exist - process it [12:42:13]req_shift_open_date [12:42:13]req_shift_open_date done [12:42:13]produce_requested_data done [12:42:13]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148818,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:42:13]process_action_free close_receipt [12:42:13]json_value_free [12:42:13]json_value_free done [12:42:13]process_json_proto returns [12:42:13]Send response to host [12:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148818,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:42:13]free response buf [12:42:13]execute_script done [12:42:13]execute_script returns [12:42:13]free content buf [12:42:13]Sock 7.Close socket [12:42:13]Sock 7.Thread stoped [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:31]accept exits with 9 [12:51:31]New connection [12:51:31]New thread 3067264356 created [12:51:31]Thread 3067407716 joined [12:51:31]Waiting for new connection... [12:51:31] Sock 9.Parse request [12:51:31]Sock 9.Check first char [12:51:31]Sock 9.First char is OK [12:51:31]request: POST /json_proto HTTP/1.0 [12:51:31]Method: POST [12:51:31]URL: /json_proto [12:51:31]Method is POST - this is cgi request [12:51:31]url: /json_proto [12:51:31]query_string will be loaded in cgi processing [12:51:31]execute_cgi json_proto POST (null) [12:51:31]execute_cgi path=json_proto method=POST [12:51:31]POST find Content-Length [12:51:31]Host: 172.17.38.4:8080 [12:51:31]Content-Length: 674 [12:51:31]Content-Type: application/json [12:51:31] [12:51:31]POST finish read [12:51:31]Found Content-Length = 674 [12:51:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:51:31]execute_script... [12:51: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)979746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:51:31]POST & json_proto [12:51:31]process_json_proto [12:51:31]json parsed OK: [12:51:31]protocol is kg_v1.0 [12:51:31]action value=close_receipt [12:51:31]process_action close_receipt [12:51:31]cmd_close_receipt [12:51:31]MH_GetDate [12:51:31]Write to MH i2c: F0 00 00 BD 02 AE [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: F0 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: F0 09 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: F0 09 00 BD 02 00 D4 0D 5F 66 CC 51 87 64 65 [12:51:31]GetLastDocTimeStamp 1717504929 [12:51:31]current date 1717505492 [12:51:31]FM_GetShiftState [12:51:31]SAM_PROTO_GetShiftState [12:51:31]wFMCommunicate request_size=4 [12:51:31]MH_SAM_APDU [12:51:31]CAPDU: 80 13 01 00 [12:51:31]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:31]Read from MH i2c: E2 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 0E 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 00 [12:51:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:51:31]wFMCommunicate OK [12:51:31]SAM_PROTO_GetShiftState done [12:51:31]FM_GetShiftState done [12:51:31]opened in 1717460629 [12:51:31]opened+sec_in_day 1717547029 [12:51:31]quantity*price = 50009 [12:51:31]sum+1 = 50010 [12:51:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 158 04.06.2024 12:51 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148819 ФПД: 95618491969173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125132&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148819&fm=95618491969173&tin=02508201610067®Number=0000000000092720&sum=50000 [12:51:32]StoreToDocumentArchive [12:51:32]shift 368 fd 148819 [12:51:32]save to /storage/0368/doc_00148819 [12:51:32]save last doc name /storage/0368/doc_00148819 to /storage/kkm_last_doc_name [12:51:32]save OK [12:51:32]Clear old archive folders... [12:51:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:51:32]tlvbuf is 0046D5A0 [12:51:32]SAM_PROTO_ClearQueue [12:51:32]wFMCommunicate request_size=4 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 09 00 00 [12:51:32]Write to MH i2c: E2 08 00 CB 02 80 09 00 00 00 00 00 00 3F [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [12:51:32]RAPDU: 90 00 [12:51:32]wFMCommunicate OK [12:51:32]SAM_PROTO_ClearQueue done [12:51:32]KKMCreateOFDPacket [12:51:32]OFDProtocolAddRootSTLVToBuf [12:51:32]FM_MakeSignedData [12:51:32]FM_MakeSignedData [12:51:32]SAM_PROTO_SignData [12:51:32]wFMCommunicate request_size=4 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 0D 01 02 [12:51:32]Write to MH i2c: E2 08 00 CC 02 80 0D 01 02 00 00 00 00 47 [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [12:51:32]RAPDU: 90 00 [12:51:32]wFMCommunicate OK [12:51:32]wFMCommunicate request_size=255 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9E 00 00 00 F4 03 04 00 D4 0D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 53 45 02 00 35 04 06 00 56 F6 EA 3F [12:51:32]Write to MH i2c: E2 02 01 CD 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9E 00 00 00 F4 03 04 00 D4 0D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 53 45 02 00 35 04 06 00 56 F6 EA 3F 00 00 B0 [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [12:51:32]RAPDU: 90 00 [12:51:32]wFMCommunicate OK [12:51:32]wFMCommunicate request_size=7 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 0D 02 02 02 6E 95 [12:51:32]Write to MH i2c: E2 0A 00 CE 02 80 0D 02 02 02 00 6E 95 00 00 51 [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [12:51:32]RAPDU: 90 00 [12:51:32]wFMCommunicate OK [12:51:32]wFMCommunicate request_size=4 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 0D 03 02 [12:51:32]Write to MH i2c: E2 08 00 CF 02 80 0D 03 02 00 00 00 00 4C [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 0B 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 0B 00 CF 02 00 A0 79 AD 91 9E 55 D6 2B 90 00 98 [12:51:33]RAPDU: A0 79 AD 91 9E 55 D6 2B 90 00 [12:51:33]wFMCommunicate OK [12:51:33]SAM_PROTO_SignData done [12:51:33]FM_MakeSignedData done [12:51:33]CreateOFDProtocolMessage [12:51:33]wFMCommunicate request_size=4 [12:51:33]MH_SAM_APDU [12:51:33]CAPDU: 80 11 00 00 [12:51:33]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 17 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9F [12:51:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:51:33]wFMCommunicate OK [12:51:33]CreateOFDProtocolMessage done [12:51:33]OFDSenderStorePacket 148819 [12:51:33]StoreOFDPacket docnum=148819 [12:51:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 82 AE 04 01 BF E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 9E 00 00 00 F4 03 04 00 D4 0D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 53 45 02 00 35 04 06 00 56 F6 EA 3F 6E 95 A0 79 AD 91 9E 55 D6 2B [12:51:33]CheckFolder [12:51:33]dirname=/storage/ofd_packets [12:51:33]CheckFolder done [12:51:33]ProducePacketName [12:51:33]name=ofd_packets/00148819 [12:51:33]NVStorageSaveData ofd_packets/00148819 [12:51:33]File name is /storage/ofd_packets/00148819 [12:51:33]Write 298 bytes [12:51:33]NVStorageSaveData done [12:51:33]OFDSenderStorePacket done [12:51:33]KKMCreateOFDPacket done [12:51:33]NVStorageSaveData kkm_last_timestamp [12:51:33]File name is /storage/kkm_last_timestamp [12:51:33]Write 4 bytes [12:51:33]NVStorageSaveData done [12:51:33]ExternCall_PrintAddStr [12:51:33]wPrintStart [12:51:33]Write to MH i2c: 01 00 00 D1 02 D3 [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: 01 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: 01 07 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 FF 0F E8 [12:51:33]RasterBufferAndPrint [12:51:33]line Счет N : (1)979746 [12:51:33]line ИНН: 02508201610067 [12:51:33]line Контрольно-Кассовый Чек [12:51:33]line ПРОДАЖА [12:51:33]line ТРК (МРК, ГНК) : 52 [12:51:33]line Товар: 2710194210 [12:51:33]line ДТ-К-5 [12:51:33]line 6.860 * 72.90 [12:51:33]line = 500.09 [12:51:33]line НДС 12% НСП 1% [12:51:33]line > о реализуемом товаре [12:51:33]line ОКРУГЛЕНИЕ: -0.09 [12:51:33]line ИТОГО: 500.00 [12:51:33]line Внесено: 500.00 [12:51:33]line СДАЧА: 0.00 [12:51:33]line НСП 1% : 4.43 [12:51:33]line НДС 12% : 53.11 [12:51:33]line Наличными: 500.00 [12:51:33]line Безнал.: 0.00 [12:51:33]line Место: АЗС № 68 "Партнер Нефть" [12:51:33]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:51:33]line СНО: Общий режим [12:51:33]line Чек 158 04.06.2024 12:51 [12:51:33]line Смена: 368 ФФД: 1.0 [12:51:33]line ЗНМ: 0300000035 [12:51:33]line РНМ: 0000000000092720 [12:51:33]line Версия ККМ: 001 [12:51:33]line ФМ: 0000000000875057 [12:51:33]line ФД: 148819 [12:51:33]line ФПД: 95618491969173 [12:51:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125132&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148819&fm=95618491969173&tin=02508201610067®Number=0000000000092720&sum=50000 [12:51:33]OFD Sender: Processing packet 148819 [packets to send 100, broken 99] [12:51:33]ProducePacketName [12:51:33]name=ofd_packets/00148819 [12:51:33]OFD Sender: To server: pG, [12:51:33]CommunicateWithHost lk.salyk.kg:30040 [12:51:33]ConnectInit lk.salyk.kg [12:51:33]written 0, free lines is 4095 [12:51:33]Connected sock=10 [12:51:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 82 AE 04 01 BF E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 9E 00 00 00 F4 03 04 00 D4 0D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 53 45 02 00 35 04 06 00 56 F6 EA 3F 6E 95 A0 79 AD 91 9E 55 D6 2B [12:51:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CB 0A 47 00 5B 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 53 45 02 00 F4 03 04 00 F8 B4 5E 66 B6 04 01 00 00 5C CF D3 FA 00 51 83 37 [12:51:33]CommunicateWithHost err = 0 [12:51:33]CheckOFDResponse [12:51:33]1017 (14) - 77093643461234 [12:51:33]1041 (16) - 0000000000875057 [12:51:33]1040 (4) - 148819 [12:51:33]1012 (4) - 04.06.2024 06:32 [12:51:33]1206 (1) - 0 [12:51:33]OFD Sender: Remove packet 148819 [12:51:33]ProducePacketName [12:51:33]name=ofd_packets/00148819 [12:51:33]NVStorageDeleteData [12:51:33]Write to MH i2c: 01 00 00 FC 02 FE [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: 01 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: 01 07 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 5E 0C 6F [12:51:33]RasterBufferAndPrint [12:51:33]line [12:51:33]line [12:51:33]line [12:51:33]line [12:51:33]line [12:51:33]written 0, free lines is 3169 [12:51:33]MH_Cut [12:51:33]Write to MH i2c: D1 01 00 03 03 01 D8 [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: D1 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: D1 01 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: D1 01 00 03 03 00 D7 [12:51:33]Write to MH i2c: 01 00 00 04 03 07 [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:34]OFD Sender: No OFD packet to send [12:51:35]*** Cut start [12:51:35]*** Partial cut [12:51:35]*** CUTSNS_PIN = 1 [12:51:35]*** CUTSNS_PIN = 0 [12:51:35]*** Brake cut motor [12:51:35]Read from MH i2c: 01 [12:51:35]MH_I2C_Read... [12:51:35]*** Stop cut motor [12:51:35]*** Cut end [12:51:35]Read from MH i2c: 01 07 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [12:51:35]process_action close_receipt done [12:51:35]requested_data is exist [12:51:35]produce_requested_data [12:51:35]requested_item fm.sn is exist - process it [12:51:35]wFMCommunicate request_size=4 [12:51:35]MH_SAM_APDU [12:51:35]CAPDU: 80 11 00 00 [12:51:35]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 17 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D5 [12:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:51:35]wFMCommunicate OK [12:51:35]requested_item fd.num is exist - process it [12:51:35]SAM_PROTO_GetFieldsCounters [12:51:35]wFMCommunicate request_size=4 [12:51:35]MH_SAM_APDU [12:51:35]CAPDU: 80 13 00 00 [12:51:35]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 62 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 62 00 06 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 53 45 02 00 0E 04 04 00 70 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 86 [12:51:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 53 45 02 00 0E 04 04 00 70 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 [12:51:36]wFMCommunicate OK [12:51:36]SAM_PROTO_GetFieldsCounters done [12:51:36]requested_item shift.num is exist - process it [12:51:36]requested_item shift.opened is exist - process it [12:51:36]req_shift_opened [12:51:36]FM_GetShiftState [12:51:36]SAM_PROTO_GetShiftState [12:51:36]wFMCommunicate request_size=4 [12:51:36]MH_SAM_APDU [12:51:36]CAPDU: 80 13 01 00 [12:51:36]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [12:51:36]Write i2c OK [12:51:36]MH_I2C_Read... [12:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:36]Read from MH i2c: E2 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: E2 0E 00 [12:51:36]MH_I2C_Read... [12:51:36]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4A [12:51:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:51:36]wFMCommunicate OK [12:51:36]SAM_PROTO_GetShiftState done [12:51:36]FM_GetShiftState done [12:51:36]req_shift_opened done [12:51:36]requested_item shift.open_date is exist - process it [12:51:36]req_shift_open_date [12:51:36]req_shift_open_date done [12:51:36]produce_requested_data done [12:51:36]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148819,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:51:36]process_action_free close_receipt [12:51:36]json_value_free [12:51:36]json_value_free done [12:51:36]process_json_proto returns [12:51:36]Send response to host [12:51:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148819,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:51:36]free response buf [12:51:36]execute_script done [12:51:36]execute_script returns [12:51:36]free content buf [12:51:36]Sock 9.Close socket [12:51:36]Sock 9.Thread stoped [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:06]accept exits with 7 [12:53:06]New connection [12:53:06]New thread 3067407716 created [12:53:06]Thread 3067264356 joined [12:53:06]Waiting for new connection... [12:53:06] Sock 7.Parse request [12:53:06]Sock 7.Check first char [12:53:06]Sock 7.First char is OK [12:53:06]request: POST /json_proto HTTP/1.0 [12:53:06]Method: POST [12:53:06]URL: /json_proto [12:53:06]Method is POST - this is cgi request [12:53:06]url: /json_proto [12:53:06]query_string will be loaded in cgi processing [12:53:06]execute_cgi json_proto POST (null) [12:53:06]execute_cgi path=json_proto method=POST [12:53:06]POST find Content-Length [12:53:06]Host: 172.17.38.4:8080 [12:53:06]Content-Length: 674 [12:53:06]Content-Type: application/json [12:53:06] [12:53:06]POST finish read [12:53:06]Found Content-Length = 674 [12:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [12:53:06]execute_script... [12:53: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)979747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [12:53:06]POST & json_proto [12:53:06]process_json_proto [12:53:06]json parsed OK: [12:53:06]protocol is kg_v1.0 [12:53:06]action value=close_receipt [12:53:06]process_action close_receipt [12:53:06]cmd_close_receipt [12:53:06]MH_GetDate [12:53:06]Write to MH i2c: F0 00 00 08 03 FA [12:53:06]Write i2c OK [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: F0 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: F0 09 00 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: F0 09 00 08 03 00 33 0E 5F 66 CC 51 87 64 11 [12:53:06]GetLastDocTimeStamp 1717505492 [12:53:06]current date 1717505587 [12:53:06]FM_GetShiftState [12:53:06]SAM_PROTO_GetShiftState [12:53:06]wFMCommunicate request_size=4 [12:53:06]MH_SAM_APDU [12:53:06]CAPDU: 80 13 01 00 [12:53:06]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [12:53:06]Write i2c OK [12:53:06]MH_I2C_Read... [12:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:06]Read from MH i2c: E2 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 0E 00 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4C [12:53:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:53:06]wFMCommunicate OK [12:53:06]SAM_PROTO_GetShiftState done [12:53:06]FM_GetShiftState done [12:53:06]opened in 1717460629 [12:53:06]opened+sec_in_day 1717547029 [12:53:06]quantity*price = 60069 [12:53:06]sum+1 = 60071 [12:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 159 04.06.2024 12:53 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148820 ФПД: 102678816417015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125307&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148820&fm=102678816417015&tin=02508201610067®Number=0000000000092720&sum=60000 [12:53:07]StoreToDocumentArchive [12:53:07]shift 368 fd 148820 [12:53:07]save to /storage/0368/doc_00148820 [12:53:07]save last doc name /storage/0368/doc_00148820 to /storage/kkm_last_doc_name [12:53:07]save OK [12:53:07]Clear old archive folders... [12:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:53:07]tlvbuf is 004B8390 [12:53:07]SAM_PROTO_ClearQueue [12:53:07]wFMCommunicate request_size=4 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 09 00 00 [12:53:07]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [12:53:07]RAPDU: 90 00 [12:53:07]wFMCommunicate OK [12:53:07]SAM_PROTO_ClearQueue done [12:53:07]KKMCreateOFDPacket [12:53:07]OFDProtocolAddRootSTLVToBuf [12:53:07]FM_MakeSignedData [12:53:07]FM_MakeSignedData [12:53:07]SAM_PROTO_SignData [12:53:07]wFMCommunicate request_size=4 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 0D 01 02 [12:53:07]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [12:53:07]RAPDU: 90 00 [12:53:07]wFMCommunicate OK [12:53:07]wFMCommunicate request_size=255 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 33 0E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 54 45 02 00 35 04 06 00 5D 62 C6 60 [12:53:07]Write to MH i2c: E2 02 01 18 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 33 0E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 54 45 02 00 35 04 06 00 5D 62 C6 60 00 00 A4 [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 03 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [12:53:08]RAPDU: 90 00 [12:53:08]wFMCommunicate OK [12:53:08]wFMCommunicate request_size=7 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 0D 02 02 02 E4 F7 [12:53:08]Write to MH i2c: E2 0A 00 19 03 80 0D 02 02 02 00 E4 F7 00 00 75 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 03 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [12:53:08]RAPDU: 90 00 [12:53:08]wFMCommunicate OK [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 0D 03 02 [12:53:08]Write to MH i2c: E2 08 00 1A 03 80 0D 03 02 00 00 00 00 98 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0B 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0B 00 1A 03 00 B3 8C 9B E0 24 3D 19 C8 90 00 95 [12:53:08]RAPDU: B3 8C 9B E0 24 3D 19 C8 90 00 [12:53:08]wFMCommunicate OK [12:53:08]SAM_PROTO_SignData done [12:53:08]FM_MakeSignedData done [12:53:08]CreateOFDProtocolMessage [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 11 00 00 [12:53:08]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 17 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EB [12:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:53:08]wFMCommunicate OK [12:53:08]CreateOFDProtocolMessage done [12:53:08]OFDSenderStorePacket 148820 [12:53:08]StoreOFDPacket docnum=148820 [12:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 8F 53 04 01 98 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 33 0E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 54 45 02 00 35 04 06 00 5D 62 C6 60 E4 F7 B3 8C 9B E0 24 3D 19 C8 [12:53:08]CheckFolder [12:53:08]dirname=/storage/ofd_packets [12:53:08]CheckFolder done [12:53:08]ProducePacketName [12:53:08]name=ofd_packets/00148820 [12:53:08]NVStorageSaveData ofd_packets/00148820 [12:53:08]File name is /storage/ofd_packets/00148820 [12:53:08]Write 298 bytes [12:53:08]NVStorageSaveData done [12:53:08]OFDSenderStorePacket done [12:53:08]KKMCreateOFDPacket done [12:53:08]NVStorageSaveData kkm_last_timestamp [12:53:08]File name is /storage/kkm_last_timestamp [12:53:08]Write 4 bytes [12:53:08]NVStorageSaveData done [12:53:08]ExternCall_PrintAddStr [12:53:08]wPrintStart [12:53:08]Write to MH i2c: 01 00 00 1C 03 1F [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 07 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 07 00 1C 03 00 00 00 00 00 FF 0F 34 [12:53:08]RasterBufferAndPrint [12:53:08]line Счет N : (1)979747 [12:53:08]line ИНН: 02508201610067 [12:53:08]line Контрольно-Кассовый Чек [12:53:08]line ПРОДАЖА [12:53:08]line ТРК (МРК, ГНК) : 52 [12:53:08]line Товар: 2710194210 [12:53:08]line ДТ-К-5 [12:53:08]line 8.240 * 72.90 [12:53:08]line = 600.70 [12:53:08]line НДС 12% НСП 1% [12:53:08]line > о реализуемом товаре [12:53:08]line ОКРУГЛЕНИЕ: -0.70 [12:53:08]line ИТОГО: 600.00 [12:53:08]line Внесено: 600.00 [12:53:08]line СДАЧА: 0.00 [12:53:08]line НСП 1% : 5.32 [12:53:08]line НДС 12% : 63.79 [12:53:08]line Наличными: 600.00 [12:53:08]line Безнал.: 0.00 [12:53:08]line Место: АЗС № 68 "Партнер Нефть" [12:53:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:53:08]line СНО: Общий режим [12:53:08]line Чек 159 04.06.2024 12:53 [12:53:08]line Смена: 368 ФФД: 1.0 [12:53:08]line ЗНМ: 0300000035 [12:53:08]line РНМ: 0000000000092720 [12:53:08]line Версия ККМ: 001 [12:53:08]line ФМ: 0000000000875057 [12:53:08]line ФД: 148820 [12:53:08]line ФПД: 102678816417015 [12:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125307&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148820&fm=102678816417015&tin=02508201610067®Number=0000000000092720&sum=60000 [12:53:08]OFD Sender: Processing packet 148820 [packets to send 100, broken 99] [12:53:08]ProducePacketName [12:53:08]name=ofd_packets/00148820 [12:53:08]OFD Sender: To server: pG, [12:53:08]CommunicateWithHost lk.salyk.kg:30040 [12:53:08]ConnectInit lk.salyk.kg [12:53:08]written 0, free lines is 4095 [12:53:08]Connected sock=10 [12:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 8F 53 04 01 98 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 33 0E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 54 45 02 00 35 04 06 00 5D 62 C6 60 E4 F7 B3 8C 9B E0 24 3D 19 C8 [12:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 08 66 47 00 64 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 38 37 35 30 35 37 10 04 04 00 54 45 02 00 F4 03 04 00 57 B5 5E 66 B6 04 01 00 00 42 CB 64 92 4D BC 14 A5 [12:53:09]CommunicateWithHost err = 0 [12:53:09]CheckOFDResponse [12:53:09]1017 (14) - 77093643461234 [12:53:09]1041 (16) - 0000000000875057 [12:53:09]1040 (4) - 148820 [12:53:09]1012 (4) - 04.06.2024 06:33 [12:53:09]1206 (1) - 0 [12:53:09]OFD Sender: Remove packet 148820 [12:53:09]ProducePacketName [12:53:09]name=ofd_packets/00148820 [12:53:09]NVStorageDeleteData [12:53:09]Write to MH i2c: 01 00 00 47 03 4A [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 07 00 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 64 0C C1 [12:53:09]RasterBufferAndPrint [12:53:09]line [12:53:09]line [12:53:09]line [12:53:09]line [12:53:09]line [12:53:09]written 0, free lines is 3176 [12:53:09]MH_Cut [12:53:09]Write to MH i2c: D1 01 00 4E 03 01 23 [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: D1 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: D1 01 00 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: D1 01 00 4E 03 00 22 [12:53:09]Write to MH i2c: 01 00 00 4F 03 52 [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]OFD Sender: No OFD packet to send [12:53:10]*** Cut start [12:53:10]*** Partial cut [12:53:10]*** CUTSNS_PIN = 1 [12:53:10]*** CUTSNS_PIN = 0 [12:53:10]*** Brake cut motor [12:53:11]Read from MH i2c: 01 [12:53:11]MH_I2C_Read... [12:53:11]*** Stop cut motor [12:53:11]*** Cut end [12:53:11]Read from MH i2c: 01 07 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [12:53:11]process_action close_receipt done [12:53:11]requested_data is exist [12:53:11]produce_requested_data [12:53:11]requested_item fm.sn is exist - process it [12:53:11]wFMCommunicate request_size=4 [12:53:11]MH_SAM_APDU [12:53:11]CAPDU: 80 11 00 00 [12:53:11]Write to MH i2c: E2 08 00 50 03 80 11 00 00 00 00 00 00 CD [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:11]Read from MH i2c: E2 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 17 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 17 00 50 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 20 [12:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:53:11]wFMCommunicate OK [12:53:11]requested_item fd.num is exist - process it [12:53:11]SAM_PROTO_GetFieldsCounters [12:53:11]wFMCommunicate request_size=4 [12:53:11]MH_SAM_APDU [12:53:11]CAPDU: 80 13 00 00 [12:53:11]Write to MH i2c: E2 08 00 51 03 80 13 00 00 00 00 00 00 D0 [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:11]Read from MH i2c: E2 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 62 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 62 00 51 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 54 45 02 00 0E 04 04 00 70 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 D5 [12:53:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 54 45 02 00 0E 04 04 00 70 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 [12:53:11]wFMCommunicate OK [12:53:11]SAM_PROTO_GetFieldsCounters done [12:53:11]requested_item shift.num is exist - process it [12:53:11]requested_item shift.opened is exist - process it [12:53:11]req_shift_opened [12:53:11]FM_GetShiftState [12:53:11]SAM_PROTO_GetShiftState [12:53:11]wFMCommunicate request_size=4 [12:53:11]MH_SAM_APDU [12:53:11]CAPDU: 80 13 01 00 [12:53:11]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:11]Read from MH i2c: E2 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 0E 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 95 [12:53:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:53:11]wFMCommunicate OK [12:53:11]SAM_PROTO_GetShiftState done [12:53:11]FM_GetShiftState done [12:53:11]req_shift_opened done [12:53:11]requested_item shift.open_date is exist - process it [12:53:11]req_shift_open_date [12:53:11]req_shift_open_date done [12:53:11]produce_requested_data done [12:53:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148820,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:53:11]process_action_free close_receipt [12:53:11]json_value_free [12:53:11]json_value_free done [12:53:11]process_json_proto returns [12:53:11]Send response to host [12:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148820,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:53:11]free response buf [12:53:11]execute_script done [12:53:11]execute_script returns [12:53:11]free content buf [12:53:11]Sock 7.Close socket [12:53:11]Sock 7.Thread stoped [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:18]accept exits with 9 [12:55:18]New connection [12:55:18]New thread 3067264356 created [12:55:18]Thread 3067407716 joined [12:55:18]Waiting for new connection... [12:55:18] Sock 9.Parse request [12:55:18]Sock 9.Check first char [12:55:18]Sock 9.First char is OK [12:55:18]request: POST /json_proto HTTP/1.0 [12:55:18]Method: POST [12:55:18]URL: /json_proto [12:55:18]Method is POST - this is cgi request [12:55:18]url: /json_proto [12:55:18]query_string will be loaded in cgi processing [12:55:18]execute_cgi json_proto POST (null) [12:55:18]execute_cgi path=json_proto method=POST [12:55:18]POST find Content-Length [12:55:18]Host: 172.17.38.4:8080 [12:55:18]Content-Length: 679 [12:55:18]Content-Type: application/json [12:55:18] [12:55:18]POST finish read [12:55:18]Found Content-Length = 679 [12:55:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [12:55:18]execute_script... [12:55: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)979749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [12:55:18]POST & json_proto [12:55:18]process_json_proto [12:55:18]json parsed OK: [12:55:18]protocol is kg_v1.0 [12:55:18]action value=close_receipt [12:55:18]process_action close_receipt [12:55:18]cmd_close_receipt [12:55:18]MH_GetDate [12:55:18]Write to MH i2c: F0 00 00 53 03 45 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: F0 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: F0 09 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: F0 09 00 53 03 00 B7 0E 5F 66 CC 51 87 64 E0 [12:55:18]GetLastDocTimeStamp 1717505587 [12:55:18]current date 1717505719 [12:55:18]FM_GetShiftState [12:55:18]SAM_PROTO_GetShiftState [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 13 01 00 [12:55:18]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 0E 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 97 [12:55:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:55:18]wFMCommunicate OK [12:55:18]SAM_PROTO_GetShiftState done [12:55:18]FM_GetShiftState done [12:55:18]opened in 1717460629 [12:55:18]opened+sec_in_day 1717547029 [12:55:18]quantity*price = 100018 [12:55:18]sum+1 = 100020 [12:55:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 160 04.06.2024 12:55 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148821 ФПД: 129553420090132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125519&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148821&fm=129553420090132&tin=02508201610067®Number=0000000000092720&sum=100000 [12:55:19]StoreToDocumentArchive [12:55:19]shift 368 fd 148821 [12:55:19]save to /storage/0368/doc_00148821 [12:55:19]save last doc name /storage/0368/doc_00148821 to /storage/kkm_last_doc_name [12:55:19]save OK [12:55:19]Clear old archive folders... [12:55:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:55:19]tlvbuf is 0049FB60 [12:55:19]SAM_PROTO_ClearQueue [12:55:19]wFMCommunicate request_size=4 [12:55:19]MH_SAM_APDU [12:55:19]CAPDU: 80 09 00 00 [12:55:19]Write to MH i2c: E2 08 00 61 03 80 09 00 00 00 00 00 00 D6 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [12:55:19]RAPDU: 90 00 [12:55:19]wFMCommunicate OK [12:55:19]SAM_PROTO_ClearQueue done [12:55:19]KKMCreateOFDPacket [12:55:19]OFDProtocolAddRootSTLVToBuf [12:55:19]FM_MakeSignedData [12:55:19]FM_MakeSignedData [12:55:19]SAM_PROTO_SignData [12:55:19]wFMCommunicate request_size=4 [12:55:19]MH_SAM_APDU [12:55:19]CAPDU: 80 0D 01 02 [12:55:19]Write to MH i2c: E2 08 00 62 03 80 0D 01 02 00 00 00 00 DE [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [12:55:19]RAPDU: 90 00 [12:55:19]wFMCommunicate OK [12:55:19]wFMCommunicate request_size=255 [12:55:19]MH_SAM_APDU [12:55:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 0E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 55 45 02 00 35 04 06 00 75 D4 01 95 [12:55:19]Write to MH i2c: E2 02 01 63 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 0E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 55 45 02 00 35 04 06 00 75 D4 01 95 00 00 55 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]OFD Sender: No OFD packet to send [12:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [12:55:19]RAPDU: 90 00 [12:55:19]wFMCommunicate OK [12:55:19]wFMCommunicate request_size=7 [12:55:19]MH_SAM_APDU [12:55:19]CAPDU: 80 0D 02 02 02 7B 14 [12:55:19]Write to MH i2c: E2 0A 00 64 03 80 0D 02 02 02 00 7B 14 00 00 74 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [12:55:19]RAPDU: 90 00 [12:55:19]wFMCommunicate OK [12:55:19]wFMCommunicate request_size=4 [12:55:19]MH_SAM_APDU [12:55:19]CAPDU: 80 0D 03 02 [12:55:19]Write to MH i2c: E2 08 00 65 03 80 0D 03 02 00 00 00 00 E3 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 0B 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 0B 00 65 03 00 85 E0 C8 5B 0E 03 E7 C7 90 00 2B [12:55:19]RAPDU: 85 E0 C8 5B 0E 03 E7 C7 90 00 [12:55:19]wFMCommunicate OK [12:55:19]SAM_PROTO_SignData done [12:55:19]FM_MakeSignedData done [12:55:19]CreateOFDProtocolMessage [12:55:19]wFMCommunicate request_size=4 [12:55:19]MH_SAM_APDU [12:55:19]CAPDU: 80 11 00 00 [12:55:19]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 17 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 17 00 66 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 36 [12:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:55:19]wFMCommunicate OK [12:55:19]CreateOFDProtocolMessage done [12:55:19]OFDSenderStorePacket 148821 [12:55:19]StoreOFDPacket docnum=148821 [12:55:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 92 2D 04 01 8A A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 0E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 55 45 02 00 35 04 06 00 75 D4 01 95 7B 14 85 E0 C8 5B 0E 03 E7 C7 [12:55:19]CheckFolder [12:55:19]dirname=/storage/ofd_packets [12:55:19]CheckFolder done [12:55:19]ProducePacketName [12:55:19]name=ofd_packets/00148821 [12:55:19]NVStorageSaveData ofd_packets/00148821 [12:55:19]File name is /storage/ofd_packets/00148821 [12:55:19]Write 298 bytes [12:55:19]NVStorageSaveData done [12:55:19]OFDSenderStorePacket done [12:55:19]KKMCreateOFDPacket done [12:55:19]NVStorageSaveData kkm_last_timestamp [12:55:19]File name is /storage/kkm_last_timestamp [12:55:19]Write 4 bytes [12:55:19]NVStorageSaveData done [12:55:19]ExternCall_PrintAddStr [12:55:19]wPrintStart [12:55:19]Write to MH i2c: 01 00 00 67 03 6A [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: 01 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: 01 07 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 FF 0F 7F [12:55:19]RasterBufferAndPrint [12:55:19]line Счет N : (1)979749 [12:55:19]line ИНН: 02508201610067 [12:55:19]line Контрольно-Кассовый Чек [12:55:19]line ПРОДАЖА [12:55:19]line ТРК (МРК, ГНК) : 52 [12:55:19]line Товар: 2710194210 [12:55:19]line ДТ-К-5 [12:55:19]line 13.720 * 72.90 [12:55:19]line = 1000.19 [12:55:19]line НДС 12% НСП 1% [12:55:19]line > о реализуемом товаре [12:55:19]line ОКРУГЛЕНИЕ: -0.19 [12:55:19]line ИТОГО: 1000.00 [12:55:19]line Внесено: 1000.00 [12:55:19]line СДАЧА: 0.00 [12:55:19]line НСП 1% : 8.85 [12:55:19]line НДС 12% : 106.21 [12:55:19]line Наличными: 1000.00 [12:55:19]line Безнал.: 0.00 [12:55:19]line Место: АЗС № 68 "Партнер Нефть" [12:55:19]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:55:19]line СНО: Общий режим [12:55:19]line Чек 160 04.06.2024 12:55 [12:55:19]line Смена: 368 ФФД: 1.0 [12:55:19]line ЗНМ: 0300000035 [12:55:19]line РНМ: 0000000000092720 [12:55:19]line Версия ККМ: 001 [12:55:19]line ФМ: 0000000000875057 [12:55:19]line ФД: 148821 [12:55:19]line ФПД: 129553420090132 [12:55:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125519&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148821&fm=129553420090132&tin=02508201610067®Number=0000000000092720&sum=100000 [12:55:20]OFD Sender: Processing packet 148821 [packets to send 100, broken 99] [12:55:20]ProducePacketName [12:55:20]name=ofd_packets/00148821 [12:55:20]OFD Sender: To server: pG, [12:55:20]CommunicateWithHost lk.salyk.kg:30040 [12:55:20]ConnectInit lk.salyk.kg [12:55:20]written 0, free lines is 4095 [12:55:20]Connected sock=10 [12:55:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 92 2D 04 01 8A A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 0E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 55 45 02 00 35 04 06 00 75 D4 01 95 7B 14 85 E0 C8 5B 0E 03 E7 C7 [12:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CE 0C 47 00 5F 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 38 37 35 30 35 37 10 04 04 00 55 45 02 00 F4 03 04 00 DA B5 5E 66 B6 04 01 00 00 93 9B 6D 45 48 C0 6D 6C [12:55:20]CommunicateWithHost err = 0 [12:55:20]CheckOFDResponse [12:55:20]1017 (14) - 77093643461234 [12:55:20]1041 (16) - 0000000000875057 [12:55:20]1040 (4) - 148821 [12:55:20]1012 (4) - 04.06.2024 06:36 [12:55:20]1206 (1) - 0 [12:55:20]OFD Sender: Remove packet 148821 [12:55:20]ProducePacketName [12:55:20]name=ofd_packets/00148821 [12:55:20]NVStorageDeleteData [12:55:20]Write to MH i2c: 01 00 00 92 03 95 [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: 01 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: 01 07 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 60 0C 08 [12:55:20]RasterBufferAndPrint [12:55:20]line [12:55:20]line [12:55:20]line [12:55:20]line [12:55:20]line [12:55:20]written 0, free lines is 3172 [12:55:20]MH_Cut [12:55:20]Write to MH i2c: D1 01 00 99 03 01 6E [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: D1 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: D1 01 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: D1 01 00 99 03 00 6D [12:55:20]Write to MH i2c: 01 00 00 9A 03 9D [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]OFD Sender: No OFD packet to send [12:55:21]*** Cut start [12:55:21]*** Partial cut [12:55:21]*** CUTSNS_PIN = 1 [12:55:21]*** CUTSNS_PIN = 0 [12:55:22]*** Brake cut motor [12:55:22]Read from MH i2c: 01 [12:55:22]MH_I2C_Read... [12:55:22]*** Stop cut motor [12:55:22]*** Cut end [12:55:22]Read from MH i2c: 01 07 00 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 FF 0F B2 [12:55:22]process_action close_receipt done [12:55:22]requested_data is exist [12:55:22]produce_requested_data [12:55:22]requested_item fm.sn is exist - process it [12:55:22]wFMCommunicate request_size=4 [12:55:22]MH_SAM_APDU [12:55:22]CAPDU: 80 11 00 00 [12:55:22]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [12:55:22]Write i2c OK [12:55:22]MH_I2C_Read... [12:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:22]Read from MH i2c: E2 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 17 00 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 17 00 9B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6B [12:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:55:22]wFMCommunicate OK [12:55:22]requested_item fd.num is exist - process it [12:55:22]SAM_PROTO_GetFieldsCounters [12:55:22]wFMCommunicate request_size=4 [12:55:22]MH_SAM_APDU [12:55:22]CAPDU: 80 13 00 00 [12:55:22]Write to MH i2c: E2 08 00 9C 03 80 13 00 00 00 00 00 00 1B [12:55:22]Write i2c OK [12:55:22]MH_I2C_Read... [12:55:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:22]Read from MH i2c: E2 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 62 00 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 62 00 9C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 55 45 02 00 0E 04 04 00 70 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 24 [12:55:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 55 45 02 00 0E 04 04 00 70 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 [12:55:22]wFMCommunicate OK [12:55:22]SAM_PROTO_GetFieldsCounters done [12:55:22]requested_item shift.num is exist - process it [12:55:22]requested_item shift.opened is exist - process it [12:55:22]req_shift_opened [12:55:22]FM_GetShiftState [12:55:22]SAM_PROTO_GetShiftState [12:55:22]wFMCommunicate request_size=4 [12:55:22]MH_SAM_APDU [12:55:22]CAPDU: 80 13 01 00 [12:55:22]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [12:55:22]Write i2c OK [12:55:22]MH_I2C_Read... [12:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:22]Read from MH i2c: E2 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 0E 00 [12:55:22]MH_I2C_Read... [12:55:22]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E0 [12:55:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:55:22]wFMCommunicate OK [12:55:22]SAM_PROTO_GetShiftState done [12:55:22]FM_GetShiftState done [12:55:22]req_shift_opened done [12:55:22]requested_item shift.open_date is exist - process it [12:55:22]req_shift_open_date [12:55:22]req_shift_open_date done [12:55:22]produce_requested_data done [12:55:22]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148821,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:55:22]process_action_free close_receipt [12:55:22]json_value_free [12:55:22]json_value_free done [12:55:22]process_json_proto returns [12:55:22]Send response to host [12:55:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148821,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:55:22]free response buf [12:55:22]execute_script done [12:55:22]execute_script returns [12:55:22]free content buf [12:55:22]Sock 9.Close socket [12:55:22]Sock 9.Thread stoped [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:52]accept exits with 7 [12:55:52]New connection [12:55:52]New thread 3067407716 created [12:55:52]Thread 3067264356 joined [12:55:52]Waiting for new connection... [12:55:52] Sock 7.Parse request [12:55:52]Sock 7.Check first char [12:55:52]Sock 7.First char is OK [12:55:52]request: POST /json_proto HTTP/1.0 [12:55:52]Method: POST [12:55:52]URL: /json_proto [12:55:52]Method is POST - this is cgi request [12:55:52]url: /json_proto [12:55:52]query_string will be loaded in cgi processing [12:55:52]execute_cgi json_proto POST (null) [12:55:52]execute_cgi path=json_proto method=POST [12:55:52]POST find Content-Length [12:55:52]Host: 172.17.38.4:8080 [12:55:52]Content-Length: 1151 [12:55:52]Content-Type: application/json [12:55:52] [12:55:52]POST finish read [12:55:52]Found Content-Length = 1151 [12:55: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979748\u000A04.06.2024 12:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A30095832\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:52]execute_script... [12:55: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979748\u000A04.06.2024 12:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A30095832\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:52]POST & json_proto [12:55:52]process_json_proto [12:55:52]json parsed OK: [12:55:52]protocol is kg_v1.0 [12:55:52]action value=print_text [12:55:52]process_action print_text [12:55:52]cmd_print_text [12:55:52]ExternCall_PrintAddStr [12:55:52]wPrintStart [12:55:52]Write to MH i2c: 01 00 00 9E 03 A1 [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 9E 03 00 00 00 00 00 FF 0F B6 [12:55:52]RasterBufferAndPrint [12:55:52]line *****ТОВАРНЫЙ ЧЕК***** [12:55:52]line АЗС 68 [12:55:52]line Партнер нефть [12:55:52]line 02508201610067 [12:55:52]line Кассир : Аскаров Н. [12:55:52]line Счет N : (1)979748 [12:55:52]line 04.06.2024 12:36 [12:55:52]line ПРОДАЖА [12:55:52]line ТРК (МРК, ГНК): 31 [12:55:52]line Вид ГСМ : 2710124130 [12:55:52]line Аи-92-К-5 [12:55:52]line 30.000 x 66.90 [12:55:52]line ИТОГ: 2007.00 [12:55:52]line Тип оплаты: Талоны: ТК ГПНА Online [12:55:52]line 30095832 [12:55:52]line ______________________ [12:55:52]line (подпись) [12:55:52]written 0, free lines is 4095 [12:55:52]Write to MH i2c: 01 00 00 B2 03 B5 [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 0F 0E D9 [12:55:52]RasterBufferAndPrint [12:55:52]line [12:55:52]line [12:55:52]line [12:55:52]line [12:55:52]line [12:55:52]written 0, free lines is 3601 [12:55:52]MH_Cut [12:55:52]Write to MH i2c: D1 01 00 B9 03 01 8E [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: D1 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: D1 01 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: D1 01 00 B9 03 00 8D [12:55:52]Write to MH i2c: 01 00 00 BA 03 BD [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:53]*** Cut start [12:55:53]*** Partial cut [12:55:53]*** CUTSNS_PIN = 1 [12:55:53]*** CUTSNS_PIN = 0 [12:55:53]*** Brake cut motor [12:55:53]Read from MH i2c: 01 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 07 00 [12:55:53]MH_I2C_Read... [12:55:53]*** Stop cut motor [12:55:53]*** Cut end [12:55:53]Read from MH i2c: 01 07 00 BA 03 00 00 00 00 00 FF 0F D2 [12:55:53]process_action print_text done [12:55:53]requested_data is exist [12:55:53]produce_requested_data [12:55:53]requested_item fm.sn is exist - process it [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 11 00 00 [12:55:53]Write to MH i2c: E2 08 00 BB 03 80 11 00 00 00 00 00 00 38 [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 17 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 17 00 BB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8B [12:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:55:53]wFMCommunicate OK [12:55:53]requested_item fd.num is exist - process it [12:55:53]SAM_PROTO_GetFieldsCounters [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 13 00 00 [12:55:53]Write to MH i2c: E2 08 00 BC 03 80 13 00 00 00 00 00 00 3B [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 62 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 62 00 BC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 55 45 02 00 0E 04 04 00 70 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 44 [12:55:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 55 45 02 00 0E 04 04 00 70 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 [12:55:53]wFMCommunicate OK [12:55:53]SAM_PROTO_GetFieldsCounters done [12:55:53]requested_item shift.num is exist - process it [12:55:53]requested_item shift.opened is exist - process it [12:55:53]req_shift_opened [12:55:53]FM_GetShiftState [12:55:53]SAM_PROTO_GetShiftState [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 13 01 00 [12:55:53]Write to MH i2c: E2 08 00 BD 03 80 13 01 00 00 00 00 00 3D [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:54]Read from MH i2c: E2 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: E2 0E 00 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: E2 0E 00 BD 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 00 [12:55:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:55:54]wFMCommunicate OK [12:55:54]SAM_PROTO_GetShiftState done [12:55:54]FM_GetShiftState done [12:55:54]req_shift_opened done [12:55:54]requested_item shift.open_date is exist - process it [12:55:54]req_shift_open_date [12:55:54]req_shift_open_date done [12:55:54]produce_requested_data done [12:55:54]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148821,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:55:54]process_action_free print_text [12:55:54]json_value_free [12:55:54]json_value_free done [12:55:54]process_json_proto returns [12:55:54]Send response to host [12:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148821,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:55:54]free response buf [12:55:54]execute_script done [12:55:54]execute_script returns [12:55:54]free content buf [12:55:54]Sock 7.Close socket [12:55:54]Sock 7.Thread stoped [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:34]accept exits with 9 [12:57:34]New connection [12:57:34]New thread 3067264356 created [12:57:34]Thread 3067407716 joined [12:57:34]Waiting for new connection... [12:57:34] Sock 9.Parse request [12:57:34]Sock 9.Check first char [12:57:34]Sock 9.First char is OK [12:57:34]request: POST /json_proto HTTP/1.0 [12:57:34]Method: POST [12:57:34]URL: /json_proto [12:57:34]Method is POST - this is cgi request [12:57:34]url: /json_proto [12:57:34]query_string will be loaded in cgi processing [12:57:34]execute_cgi json_proto POST (null) [12:57:34]execute_cgi path=json_proto method=POST [12:57:34]POST find Content-Length [12:57:34]Host: 172.17.38.4:8080 [12:57:34]Content-Length: 800 [12:57:34]Content-Type: application/json [12:57:34] [12:57:34]POST finish read [12:57:34]Found Content-Length = 800 [12:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:34]execute_script... [12:57:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:34]POST & json_proto [12:57:34]process_json_proto [12:57:34]json parsed OK: [12:57:34]protocol is kg_v1.0 [12:57:34]action value=close_receipt [12:57:34]process_action close_receipt [12:57:34]cmd_close_receipt [12:57:34]MH_GetDate [12:57:34]Write to MH i2c: F0 00 00 BE 03 B0 [12:57:34]Write i2c OK [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: F0 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: F0 09 00 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: F0 09 00 BE 03 00 3F 0F 5F 66 CC 51 87 64 D4 [12:57:34]GetLastDocTimeStamp 1717505719 [12:57:34]current date 1717505855 [12:57:34]FM_GetShiftState [12:57:34]SAM_PROTO_GetShiftState [12:57:34]wFMCommunicate request_size=4 [12:57:34]MH_SAM_APDU [12:57:34]CAPDU: 80 13 01 00 [12:57:34]Write to MH i2c: E2 08 00 BF 03 80 13 01 00 00 00 00 00 3F [12:57:34]Write i2c OK [12:57:34]MH_I2C_Read... [12:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:34]Read from MH i2c: E2 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: E2 0E 00 [12:57:34]MH_I2C_Read... [12:57:34]Read from MH i2c: E2 0E 00 BF 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 02 [12:57:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:57:34]wFMCommunicate OK [12:57:34]SAM_PROTO_GetShiftState done [12:57:34]FM_GetShiftState done [12:57:34]opened in 1717460629 [12:57:34]opened+sec_in_day 1717547029 [12:57:34]quantity*price = 50041 [12:57:34]sum+1 = 50042 [12:57:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 161 04.06.2024 12:57 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148822 ФПД: 237175774419987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125735&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148822&fm=237175774419987&tin=02508201610067®Number=0000000000092720&sum=50041 [12:57:35]StoreToDocumentArchive [12:57:35]shift 368 fd 148822 [12:57:35]save to /storage/0368/doc_00148822 [12:57:35]save last doc name /storage/0368/doc_00148822 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 00466B70 [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 CC 03 80 09 00 00 00 00 00 00 41 [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 CC 03 00 90 00 43 [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 CD 03 80 0D 01 02 00 00 00 00 49 [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 CD 03 00 90 00 44 [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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 3F 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 56 45 02 00 35 04 06 00 D7 [12:57:35]Write to MH i2c: E2 02 01 CE 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A1 00 00 00 F4 03 04 00 3F 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 56 45 02 00 35 04 06 00 D7 00 00 BE [12:57:35]Write i2c OK [12:57:35]MH_I2C_Read... [12:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:36]Read from MH i2c: E2 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 03 00 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 03 00 CE 03 00 90 00 45 [12:57:36]RAPDU: 90 00 [12:57:36]wFMCommunicate OK [12:57:36]wFMCommunicate request_size=10 [12:57:36]MH_SAM_APDU [12:57:36]CAPDU: 80 0D 02 02 05 B5 C9 C8 9C 13 [12:57:36]Write to MH i2c: E2 0D 00 CF 03 80 0D 02 02 05 00 B5 C9 C8 9C 13 00 00 4B [12:57:36]Write i2c OK [12:57:36]MH_I2C_Read... [12:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:36]Read from MH i2c: E2 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 03 00 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 03 00 CF 03 00 90 00 46 [12:57:36]RAPDU: 90 00 [12:57:36]wFMCommunicate OK [12:57:36]wFMCommunicate request_size=4 [12:57:36]MH_SAM_APDU [12:57:36]CAPDU: 80 0D 03 02 [12:57:36]Write to MH i2c: E2 08 00 D0 03 80 0D 03 02 00 00 00 00 4E [12:57:36]Write i2c OK [12:57:36]MH_I2C_Read... [12:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:36]Read from MH i2c: E2 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 0B 00 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 0B 00 D0 03 00 6B 2F 1C 36 9F F9 25 04 90 00 FC [12:57:36]RAPDU: 6B 2F 1C 36 9F F9 25 04 90 00 [12:57:36]wFMCommunicate OK [12:57:36]SAM_PROTO_SignData done [12:57:36]FM_MakeSignedData done [12:57:36]CreateOFDProtocolMessage [12:57:36]wFMCommunicate request_size=4 [12:57:36]MH_SAM_APDU [12:57:36]CAPDU: 80 11 00 00 [12:57:36]Write to MH i2c: E2 08 00 D1 03 80 11 00 00 00 00 00 00 4E [12:57:36]Write i2c OK [12:57:36]MH_I2C_Read... [12:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:36]Read from MH i2c: E2 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 17 00 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: E2 17 00 D1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A1 [12:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:57:36]wFMCommunicate OK [12:57:36]CreateOFDProtocolMessage done [12:57:36]OFDSenderStorePacket 148822 [12:57:36]StoreOFDPacket docnum=148822 [12:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 35 20 07 01 76 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 3F 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 56 45 02 00 35 04 06 00 D7 B5 C9 C8 9C 13 6B 2F 1C 36 9F F9 25 04 [12:57:36]CheckFolder [12:57:36]dirname=/storage/ofd_packets [12:57:36]CheckFolder done [12:57:36]ProducePacketName [12:57:36]name=ofd_packets/00148822 [12:57:36]NVStorageSaveData ofd_packets/00148822 [12:57:36]File name is /storage/ofd_packets/00148822 [12:57:36]Write 301 bytes [12:57:36]NVStorageSaveData done [12:57:36]OFDSenderStorePacket done [12:57:36]KKMCreateOFDPacket done [12:57:36]NVStorageSaveData kkm_last_timestamp [12:57:36]File name is /storage/kkm_last_timestamp [12:57:36]Write 4 bytes [12:57:36]NVStorageSaveData done [12:57:36]ExternCall_PrintAddStr [12:57:36]wPrintStart [12:57:36]Write to MH i2c: 01 00 00 D2 03 D5 [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 D2 03 00 00 00 00 00 FF 0F EA [12:57:36]RasterBufferAndPrint [12:57:36]line Счет N : (1)979750 [12:57:36]line ИНН: 02508201610067 [12:57:36]line Контрольно-Кассовый Чек [12:57:36]line ПРОДАЖА [12:57:36]line ТРК (МРК, ГНК) : 12 [12:57:36]line Товар: 2710124130 [12:57:36]line Аи-92-К-5 [12:57:36]line 7.480 * 66.90 [12:57:36]line = 500.41 [12:57:36]line НДС 12% НСП 1% [12:57:36]line > о реализуемом товаре [12:57:36]line ИТОГО: 500.41 [12:57:36]line НСП 1% : 4.43 [12:57:36]line НДС 12% : 53.14 [12:57:36]line Наличными: 0.00 [12:57:36]line Безнал.: 500.41 [12:57:36]line Место: АЗС № 68 "Партнер Нефть" [12:57:36]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:57:36]line СНО: Общий режим [12:57:36]line Чек 161 04.06.2024 12:57 [12:57:36]line Смена: 368 ФФД: 1.0 [12:57:36]line ЗНМ: 0300000035 [12:57:36]line РНМ: 0000000000092720 [12:57:36]line Версия ККМ: 001 [12:57:36]line Платежная система: O! деньги [12:57:36]line ФМ: 0000000000875057 [12:57:36]line ФД: 148822 [12:57:36]line ФПД: 237175774419987 [12:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125735&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148822&fm=237175774419987&tin=02508201610067®Number=0000000000092720&sum=50041 [12:57:36]written 0, free lines is 4095 [12:57:36]OFD Sender: Processing packet 148822 [packets to send 100, broken 99] [12:57:36]ProducePacketName [12:57:36]name=ofd_packets/00148822 [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]Connected sock=10 [12:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 35 20 07 01 76 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 3F 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 56 45 02 00 35 04 06 00 D7 B5 C9 C8 9C 13 6B 2F 1C 36 9F F9 25 04 [12:57:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 21 61 47 00 28 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 38 37 35 30 35 37 10 04 04 00 56 45 02 00 F4 03 04 00 62 B6 5E 66 B6 04 01 00 00 1F DD 82 02 A0 D5 25 77 [12:57:36]CommunicateWithHost err = 0 [12:57:36]CheckOFDResponse [12:57:36]1017 (14) - 77093643461234 [12:57:36]1041 (16) - 0000000000875057 [12:57:36]1040 (4) - 148822 [12:57:36]1012 (4) - 04.06.2024 06:38 [12:57:36]1206 (1) - 0 [12:57:36]OFD Sender: Remove packet 148822 [12:57:36]ProducePacketName [12:57:36]name=ofd_packets/00148822 [12:57:36]NVStorageDeleteData [12:57:36]Write to MH i2c: 01 00 00 FC 03 FF [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 FC 03 00 00 00 00 00 82 0C 94 [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 3205 [12:57:36]MH_Cut [12:57:36]Write to MH i2c: D1 01 00 03 04 01 D9 [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 03 04 00 D8 [12:57:36]Write to MH i2c: 01 00 00 04 04 08 [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:38]*** Brake cut motor [12:57:38]Read from MH i2c: 01 [12:57:38]MH_I2C_Read... [12:57:38]*** Stop cut motor [12:57:38]*** Cut end [12:57:38]Read from MH i2c: 01 07 00 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: 01 07 00 04 04 00 00 00 00 00 FF 0F 1D [12:57:38]process_action close_receipt done [12:57:38]requested_data is exist [12:57:38]produce_requested_data [12:57:38]requested_item fm.sn is exist - process it [12:57:38]wFMCommunicate request_size=4 [12:57:38]MH_SAM_APDU [12:57:38]CAPDU: 80 11 00 00 [12:57:38]Write to MH i2c: E2 08 00 05 04 80 11 00 00 00 00 00 00 83 [12:57:38]Write i2c OK [12:57:38]MH_I2C_Read... [12:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:38]Read from MH i2c: E2 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: E2 17 00 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: E2 17 00 05 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D6 [12:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:57:38]wFMCommunicate OK [12:57:38]requested_item fd.num is exist - process it [12:57:38]SAM_PROTO_GetFieldsCounters [12:57:38]wFMCommunicate request_size=4 [12:57:38]MH_SAM_APDU [12:57:38]CAPDU: 80 13 00 00 [12:57:38]Write to MH i2c: E2 08 00 06 04 80 13 00 00 00 00 00 00 86 [12:57:38]Write i2c OK [12:57:38]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 06 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 56 45 02 00 0E 04 04 00 70 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 93 [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 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 56 45 02 00 0E 04 04 00 70 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 [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 07 04 80 13 01 00 00 00 00 00 88 [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 07 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4B [12:57:38]RAPDU: 09 00 01 95 5E 5E 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":"0000000000875057","fd.num":148822,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [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":"0000000000875057","fd.num":148822,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [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 9.Close socket [12:57:38]Sock 9.Thread stoped [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:29]accept exits with 7 [12:58:29]New connection [12:58:29]New thread 3067407716 created [12:58:29]Thread 3067264356 joined [12:58:29]Waiting for new connection... [12:58:29] Sock 7.Parse request [12:58:29]Sock 7.Check first char [12:58:29]Sock 7.First char is OK [12:58:29]request: POST /json_proto HTTP/1.0 [12:58:29]Method: POST [12:58:29]URL: /json_proto [12:58:29]Method is POST - this is cgi request [12:58:29]url: /json_proto [12:58:29]query_string will be loaded in cgi processing [12:58:29]execute_cgi json_proto POST (null) [12:58:29]execute_cgi path=json_proto method=POST [12:58:29]POST find Content-Length [12:58:29]Host: 172.17.38.4:8080 [12:58:29]Content-Length: 682 [12:58:29]Content-Type: application/json [12:58:29] [12:58:29]POST finish read [12:58:29]Found Content-Length = 682 [12:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:29]execute_script... [12:58: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)979751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:29]POST & json_proto [12:58:29]process_json_proto [12:58:29]json parsed OK: [12:58:29]protocol is kg_v1.0 [12:58:29]action value=close_receipt [12:58:29]process_action close_receipt [12:58:29]cmd_close_receipt [12:58:29]MH_GetDate [12:58:29]Write to MH i2c: F0 00 00 08 04 FB [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: F0 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: F0 09 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: F0 09 00 08 04 00 76 0F 5F 66 CC 51 87 64 56 [12:58:29]GetLastDocTimeStamp 1717505855 [12:58:29]current date 1717505910 [12:58:29]FM_GetShiftState [12:58:29]SAM_PROTO_GetShiftState [12:58:29]wFMCommunicate request_size=4 [12:58:29]MH_SAM_APDU [12:58:29]CAPDU: 80 13 01 00 [12:58:29]Write to MH i2c: E2 08 00 09 04 80 13 01 00 00 00 00 00 8A [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:29]Read from MH i2c: E2 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 0E 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 0E 00 09 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4D [12:58:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:58:29]wFMCommunicate OK [12:58:29]SAM_PROTO_GetShiftState done [12:58:29]FM_GetShiftState done [12:58:29]opened in 1717460629 [12:58:29]opened+sec_in_day 1717547029 [12:58:29]quantity*price = 100015 [12:58:29]sum+1 = 100017 [12:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 162 04.06.2024 12:58 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148823 ФПД: 8907395222651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125830&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148823&fm=8907395222651&tin=02508201610067®Number=0000000000092720&sum=100000 [12:58:30]StoreToDocumentArchive [12:58:30]shift 368 fd 148823 [12:58:30]save to /storage/0368/doc_00148823 [12:58:30]save last doc name /storage/0368/doc_00148823 to /storage/kkm_last_doc_name [12:58:30]save OK [12:58:30]Clear old archive folders... [12:58:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:30]tlvbuf is 0049E360 [12:58:30]SAM_PROTO_ClearQueue [12:58:30]wFMCommunicate request_size=4 [12:58:30]MH_SAM_APDU [12:58:30]CAPDU: 80 09 00 00 [12:58:30]Write to MH i2c: E2 08 00 16 04 80 09 00 00 00 00 00 00 8C [12:58:30]Write i2c OK [12:58:30]MH_I2C_Read... [12:58:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:30]Read from MH i2c: E2 [12:58:30]MH_I2C_Read... [12:58:30]Read from MH i2c: E2 03 00 [12:58:30]MH_I2C_Read... [12:58:30]Read from MH i2c: E2 03 00 16 04 00 90 00 8E [12:58:30]RAPDU: 90 00 [12:58:30]wFMCommunicate OK [12:58:30]SAM_PROTO_ClearQueue done [12:58:30]KKMCreateOFDPacket [12:58:30]OFDProtocolAddRootSTLVToBuf [12:58:30]FM_MakeSignedData [12:58:30]FM_MakeSignedData [12:58:30]SAM_PROTO_SignData [12:58:30]wFMCommunicate request_size=4 [12:58:30]MH_SAM_APDU [12:58:30]CAPDU: 80 0D 01 02 [12:58:30]Write to MH i2c: E2 08 00 17 04 80 0D 01 02 00 00 00 00 94 [12:58:30]Write i2c OK [12:58:30]MH_I2C_Read... [12:58:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:30]Read from MH i2c: E2 [12:58:30]MH_I2C_Read... [12:58:30]Read from MH i2c: E2 03 00 [12:58:30]MH_I2C_Read... [12:58:30]Read from MH i2c: E2 03 00 17 04 00 90 00 8F [12:58:30]RAPDU: 90 00 [12:58:30]wFMCommunicate OK [12:58:30]wFMCommunicate request_size=255 [12:58:30]MH_SAM_APDU [12:58:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 76 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 57 45 02 00 35 04 06 00 08 [12:58:30]Write to MH i2c: E2 02 01 18 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 76 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 57 45 02 00 35 04 06 00 08 00 00 1B [12:58:30]Write i2c OK [12:58:30]MH_I2C_Read... [12:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:31]Read from MH i2c: E2 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: E2 03 00 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: E2 03 00 18 04 00 90 00 90 [12:58:31]RAPDU: 90 00 [12:58:31]wFMCommunicate OK [12:58:31]wFMCommunicate request_size=10 [12:58:31]MH_SAM_APDU [12:58:31]CAPDU: 80 0D 02 02 05 19 EA 20 CC 7B [12:58:31]Write to MH i2c: E2 0D 00 19 04 80 0D 02 02 05 00 19 EA 20 CC 7B 00 00 0B [12:58:31]Write i2c OK [12:58:31]MH_I2C_Read... [12:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:31]Read from MH i2c: E2 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: E2 03 00 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: E2 03 00 19 04 00 90 00 91 [12:58:31]RAPDU: 90 00 [12:58:31]wFMCommunicate OK [12:58:31]wFMCommunicate request_size=4 [12:58:31]MH_SAM_APDU [12:58:31]CAPDU: 80 0D 03 02 [12:58:31]Write to MH i2c: E2 08 00 1A 04 80 0D 03 02 00 00 00 00 99 [12:58:31]Write i2c OK [12:58:31]MH_I2C_Read... [12:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:31]Read from MH i2c: E2 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: E2 0B 00 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: E2 0B 00 1A 04 00 EE B2 0E 9B 01 B9 A7 8E 90 00 D2 [12:58:31]RAPDU: EE B2 0E 9B 01 B9 A7 8E 90 00 [12:58:31]wFMCommunicate OK [12:58:31]SAM_PROTO_SignData done [12:58:31]FM_MakeSignedData done [12:58:31]CreateOFDProtocolMessage [12:58:31]wFMCommunicate request_size=4 [12:58:31]MH_SAM_APDU [12:58:31]CAPDU: 80 11 00 00 [12:58:31]Write to MH i2c: E2 08 00 1B 04 80 11 00 00 00 00 00 00 99 [12:58:31]Write i2c OK [12:58:31]MH_I2C_Read... [12:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:31]Read from MH i2c: E2 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: E2 17 00 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: E2 17 00 1B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EC [12:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:58:31]wFMCommunicate OK [12:58:31]CreateOFDProtocolMessage done [12:58:31]OFDSenderStorePacket 148823 [12:58:31]StoreOFDPacket docnum=148823 [12:58:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E6 F5 07 01 23 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A2 00 00 00 F4 03 04 00 76 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 57 45 02 00 35 04 06 00 08 19 EA 20 CC 7B EE B2 0E 9B 01 B9 A7 8E [12:58:31]CheckFolder [12:58:31]dirname=/storage/ofd_packets [12:58:31]CheckFolder done [12:58:31]ProducePacketName [12:58:31]name=ofd_packets/00148823 [12:58:31]NVStorageSaveData ofd_packets/00148823 [12:58:31]File name is /storage/ofd_packets/00148823 [12:58:31]Write 301 bytes [12:58:31]NVStorageSaveData done [12:58:31]OFDSenderStorePacket done [12:58:31]KKMCreateOFDPacket done [12:58:31]NVStorageSaveData kkm_last_timestamp [12:58:31]File name is /storage/kkm_last_timestamp [12:58:31]Write 4 bytes [12:58:31]NVStorageSaveData done [12:58:31]OFD Sender: Processing packet 148823 [packets to send 100, broken 99] [12:58:31]ProducePacketName [12:58:31]name=ofd_packets/00148823 [12:58:31]OFD Sender: To server: pG, [12:58:31]CommunicateWithHost lk.salyk.kg:30040 [12:58:31]ConnectInit lk.salyk.kg [12:58:31]ExternCall_PrintAddStr [12:58:31]wPrintStart [12:58:31]Write to MH i2c: 01 00 00 1C 04 20 [12:58:31]Write i2c OK [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: 01 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: 01 07 00 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 FF 0F 35 [12:58:31]RasterBufferAndPrint [12:58:31]line Счет N : (1)979751 [12:58:31]line ИНН: 02508201610067 [12:58:31]line Контрольно-Кассовый Чек [12:58:31]line ПРОДАЖА [12:58:31]line ТРК (МРК, ГНК) : 31 [12:58:31]line Товар: 2710124130 [12:58:31]line Аи-92-К-5 [12:58:31]line 14.950 * 66.90 [12:58:31]line = 1000.16 [12:58:31]line НДС 12% НСП 1% [12:58:31]line > о реализуемом товаре [12:58:31]line ОКРУГЛЕНИЕ: -0.16 [12:58:31]line ИТОГО: 1000.00 [12:58:31]line Внесено: 1000.00 [12:58:31]line СДАЧА: 0.00 [12:58:31]line НСП 1% : 8.85 [12:58:31]line НДС 12% : 106.21 [12:58:31]line Наличными: 1000.00 [12:58:31]line Безнал.: 0.00 [12:58:31]line Место: АЗС № 68 "Партнер Нефть" [12:58:31]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:58:31]line СНО: Общий режим [12:58:31]line Чек 162 04.06.2024 12:58 [12:58:31]line Смена: 368 ФФД: 1.0 [12:58:31]line ЗНМ: 0300000035 [12:58:31]line РНМ: 0000000000092720 [12:58:31]line Версия ККМ: 001 [12:58:31]line ФМ: 0000000000875057 [12:58:31]line ФД: 148823 [12:58:31]line ФПД: 8907395222651 [12:58:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125830&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148823&fm=8907395222651&tin=02508201610067®Number=0000000000092720&sum=100000 [12:58:31]Connected sock=11 [12:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E6 F5 07 01 23 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A2 00 00 00 F4 03 04 00 76 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 57 45 02 00 35 04 06 00 08 19 EA 20 CC 7B EE B2 0E 9B 01 B9 A7 8E [12:58:31]written 0, free lines is 4095 [12:58:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BA 00 47 00 81 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 57 45 02 00 F4 03 04 00 9A B6 5E 66 B6 04 01 00 00 56 6A 64 9A 19 DD 1C 0F [12:58:31]CommunicateWithHost err = 0 [12:58:31]CheckOFDResponse [12:58:31]1017 (14) - 77093643461234 [12:58:31]1041 (16) - 0000000000875057 [12:58:31]1040 (4) - 148823 [12:58:31]1012 (4) - 04.06.2024 06:39 [12:58:31]1206 (1) - 0 [12:58:31]OFD Sender: Remove packet 148823 [12:58:31]ProducePacketName [12:58:31]name=ofd_packets/00148823 [12:58:31]NVStorageDeleteData [12:58:31]Write to MH i2c: 01 00 00 47 04 4B [12:58:31]Write i2c OK [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: 01 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: 01 07 00 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 64 0C C2 [12:58:31]RasterBufferAndPrint [12:58:31]line [12:58:31]line [12:58:31]line [12:58:31]line [12:58:31]line [12:58:31]written 0, free lines is 3176 [12:58:31]MH_Cut [12:58:31]Write to MH i2c: D1 01 00 4E 04 01 24 [12:58:31]Write i2c OK [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: D1 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: D1 01 00 [12:58:31]MH_I2C_Read... [12:58:31]Read from MH i2c: D1 01 00 4E 04 00 23 [12:58:32]Write to MH i2c: 01 00 00 4F 04 53 [12:58:32]Write i2c OK [12:58:32]MH_I2C_Read... [12:58:32]OFD Sender: No OFD packet to send [12:58:33]*** Cut start [12:58:33]*** Partial cut [12:58:33]*** CUTSNS_PIN = 1 [12:58:33]*** CUTSNS_PIN = 0 [12:58:33]*** Brake cut motor [12:58:33]Read from MH i2c: 01 [12:58:33]MH_I2C_Read... [12:58:33]*** Stop cut motor [12:58:33]*** Cut end [12:58:33]Read from MH i2c: 01 07 00 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: 01 07 00 4F 04 00 00 00 00 00 FF 0F 68 [12:58:33]process_action close_receipt done [12:58:33]requested_data is exist [12:58:33]produce_requested_data [12:58:33]requested_item fm.sn is exist - process it [12:58:33]wFMCommunicate request_size=4 [12:58:33]MH_SAM_APDU [12:58:33]CAPDU: 80 11 00 00 [12:58:33]Write to MH i2c: E2 08 00 50 04 80 11 00 00 00 00 00 00 CE [12:58:33]Write i2c OK [12:58:33]MH_I2C_Read... [12:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:33]Read from MH i2c: E2 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 17 00 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 17 00 50 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 21 [12:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:58:33]wFMCommunicate OK [12:58:33]requested_item fd.num is exist - process it [12:58:33]SAM_PROTO_GetFieldsCounters [12:58:33]wFMCommunicate request_size=4 [12:58:33]MH_SAM_APDU [12:58:33]CAPDU: 80 13 00 00 [12:58:33]Write to MH i2c: E2 08 00 51 04 80 13 00 00 00 00 00 00 D1 [12:58:33]Write i2c OK [12:58:33]MH_I2C_Read... [12:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:34]Read from MH i2c: E2 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: E2 62 00 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: E2 62 00 51 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 57 45 02 00 0E 04 04 00 70 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 E2 [12:58:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 57 45 02 00 0E 04 04 00 70 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 [12:58:34]wFMCommunicate OK [12:58:34]SAM_PROTO_GetFieldsCounters done [12:58:34]requested_item shift.num is exist - process it [12:58:34]requested_item shift.opened is exist - process it [12:58:34]req_shift_opened [12:58:34]FM_GetShiftState [12:58:34]SAM_PROTO_GetShiftState [12:58:34]wFMCommunicate request_size=4 [12:58:34]MH_SAM_APDU [12:58:34]CAPDU: 80 13 01 00 [12:58:34]Write to MH i2c: E2 08 00 52 04 80 13 01 00 00 00 00 00 D3 [12:58:34]Write i2c OK [12:58:34]MH_I2C_Read... [12:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:34]Read from MH i2c: E2 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: E2 0E 00 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: E2 0E 00 52 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 96 [12:58:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:58:34]wFMCommunicate OK [12:58:34]SAM_PROTO_GetShiftState done [12:58:34]FM_GetShiftState done [12:58:34]req_shift_opened done [12:58:34]requested_item shift.open_date is exist - process it [12:58:34]req_shift_open_date [12:58:34]req_shift_open_date done [12:58:34]produce_requested_data done [12:58:34]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148823,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:58:34]process_action_free close_receipt [12:58:34]json_value_free [12:58:34]json_value_free done [12:58:34]process_json_proto returns [12:58:34]Send response to host [12:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148823,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:58:34]free response buf [12:58:34]execute_script done [12:58:34]execute_script returns [12:58:34]free content buf [12:58:34]Sock 7.Close socket [12:58:34]Sock 7.Thread stoped [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:42]accept exits with 9 [12:58:42]New connection [12:58:42]New thread 3067264356 created [12:58:42]Thread 3067407716 joined [12:58:42]Waiting for new connection... [12:58:42] Sock 9.Parse request [12:58:42]Sock 9.Check first char [12:58:42]Sock 9.First char is OK [12:58:42]request: POST /json_proto HTTP/1.0 [12:58:42]Method: POST [12:58:42]URL: /json_proto [12:58:42]Method is POST - this is cgi request [12:58:42]url: /json_proto [12:58:42]query_string will be loaded in cgi processing [12:58:42]execute_cgi json_proto POST (null) [12:58:42]execute_cgi path=json_proto method=POST [12:58:42]POST find Content-Length [12:58:42]Host: 172.17.38.4:8080 [12:58:42]Content-Length: 677 [12:58:42]Content-Type: application/json [12:58:42] [12:58:42]POST finish read [12:58:42]Found Content-Length = 677 [12:58:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:42]execute_script... [12:58: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)979752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:42]POST & json_proto [12:58:42]process_json_proto [12:58:42]json parsed OK: [12:58:42]protocol is kg_v1.0 [12:58:42]action value=close_receipt [12:58:42]process_action close_receipt [12:58:42]cmd_close_receipt [12:58:42]MH_GetDate [12:58:42]Write to MH i2c: F0 00 00 53 04 46 [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: F0 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: F0 09 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: F0 09 00 53 04 00 83 0F 5F 66 CC 51 87 64 AE [12:58:42]GetLastDocTimeStamp 1717505910 [12:58:42]current date 1717505923 [12:58:42]FM_GetShiftState [12:58:42]SAM_PROTO_GetShiftState [12:58:42]wFMCommunicate request_size=4 [12:58:42]MH_SAM_APDU [12:58:42]CAPDU: 80 13 01 00 [12:58:42]Write to MH i2c: E2 08 00 54 04 80 13 01 00 00 00 00 00 D5 [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:42]Read from MH i2c: E2 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 0E 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 0E 00 54 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 98 [12:58:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:58:42]wFMCommunicate OK [12:58:42]SAM_PROTO_GetShiftState done [12:58:42]FM_GetShiftState done [12:58:42]opened in 1717460629 [12:58:42]opened+sec_in_day 1717547029 [12:58:42]quantity*price = 50041 [12:58:42]sum+1 = 50042 [12:58: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 163 04.06.2024 12:58 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148824 ФПД: 258007929537493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125843&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148824&fm=258007929537493&tin=02508201610067®Number=0000000000092720&sum=50000 [12:58:43]StoreToDocumentArchive [12:58:43]shift 368 fd 148824 [12:58:43]save to /storage/0368/doc_00148824 [12:58:43]save last doc name /storage/0368/doc_00148824 to /storage/kkm_last_doc_name [12:58:43]save OK [12:58:43]Clear old archive folders... [12:58:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:43]tlvbuf is 004A7170 [12:58:43]SAM_PROTO_ClearQueue [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 09 00 00 [12:58:43]Write to MH i2c: E2 08 00 61 04 80 09 00 00 00 00 00 00 D7 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 61 04 00 90 00 D9 [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]SAM_PROTO_ClearQueue done [12:58:43]KKMCreateOFDPacket [12:58:43]OFDProtocolAddRootSTLVToBuf [12:58:43]FM_MakeSignedData [12:58:43]FM_MakeSignedData [12:58:43]SAM_PROTO_SignData [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 01 02 [12:58:43]Write to MH i2c: E2 08 00 62 04 80 0D 01 02 00 00 00 00 DF [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 62 04 00 90 00 DA [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=255 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 83 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 58 45 02 00 35 04 06 00 EA [12:58:43]Write to MH i2c: E2 02 01 63 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 83 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 58 45 02 00 35 04 06 00 EA 00 00 5D [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:44]Read from MH i2c: E2 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 03 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 03 00 63 04 00 90 00 DB [12:58:44]RAPDU: 90 00 [12:58:44]wFMCommunicate OK [12:58:44]wFMCommunicate request_size=10 [12:58:44]MH_SAM_APDU [12:58:44]CAPDU: 80 0D 02 02 05 A8 26 FD 43 D5 [12:58:44]Write to MH i2c: E2 0D 00 64 04 80 0D 02 02 05 00 A8 26 FD 43 D5 00 00 CF [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:44]Read from MH i2c: E2 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 03 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 03 00 64 04 00 90 00 DC [12:58:44]RAPDU: 90 00 [12:58:44]wFMCommunicate OK [12:58:44]wFMCommunicate request_size=4 [12:58:44]MH_SAM_APDU [12:58:44]CAPDU: 80 0D 03 02 [12:58:44]Write to MH i2c: E2 08 00 65 04 80 0D 03 02 00 00 00 00 E4 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:44]Read from MH i2c: E2 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 0B 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 0B 00 65 04 00 FF 41 70 60 91 BD 86 75 90 00 3E [12:58:44]RAPDU: FF 41 70 60 91 BD 86 75 90 00 [12:58:44]wFMCommunicate OK [12:58:44]SAM_PROTO_SignData done [12:58:44]FM_MakeSignedData done [12:58:44]CreateOFDProtocolMessage [12:58:44]wFMCommunicate request_size=4 [12:58:44]MH_SAM_APDU [12:58:44]CAPDU: 80 11 00 00 [12:58:44]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:44]Read from MH i2c: E2 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 17 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 37 [12:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:58:44]wFMCommunicate OK [12:58:44]CreateOFDProtocolMessage done [12:58:44]OFDSenderStorePacket 148824 [12:58:44]StoreOFDPacket docnum=148824 [12:58:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 81 2F 07 01 4B CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 83 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 58 45 02 00 35 04 06 00 EA A8 26 FD 43 D5 FF 41 70 60 91 BD 86 75 [12:58:44]CheckFolder [12:58:44]dirname=/storage/ofd_packets [12:58:44]CheckFolder done [12:58:44]ProducePacketName [12:58:44]name=ofd_packets/00148824 [12:58:44]NVStorageSaveData ofd_packets/00148824 [12:58:44]File name is /storage/ofd_packets/00148824 [12:58:44]Write 301 bytes [12:58:44]NVStorageSaveData done [12:58:44]OFDSenderStorePacket done [12:58:44]KKMCreateOFDPacket done [12:58:44]NVStorageSaveData kkm_last_timestamp [12:58:44]File name is /storage/kkm_last_timestamp [12:58:44]Write 4 bytes [12:58:44]NVStorageSaveData done [12:58:44]ExternCall_PrintAddStr [12:58:44]wPrintStart [12:58:44]Write to MH i2c: 01 00 00 67 04 6B [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 07 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 FF 0F 80 [12:58:44]RasterBufferAndPrint [12:58:44]line Счет N : (1)979752 [12:58:44]line ИНН: 02508201610067 [12:58:44]line Контрольно-Кассовый Чек [12:58:44]line ПРОДАЖА [12:58:44]line ТРК (МРК, ГНК) : 22 [12:58:44]line Товар: 2710124130 [12:58:44]line Аи-92-К-5 [12:58:44]line 7.480 * 66.90 [12:58:44]line = 500.41 [12:58:44]line НДС 12% НСП 1% [12:58:44]line > о реализуемом товаре [12:58:44]line ОКРУГЛЕНИЕ: -0.41 [12:58:44]line ИТОГО: 500.00 [12:58:44]line Внесено: 500.00 [12:58:44]line СДАЧА: 0.00 [12:58:44]line НСП 1% : 4.43 [12:58:44]line НДС 12% : 53.14 [12:58:44]line Наличными: 500.00 [12:58:44]line Безнал.: 0.00 [12:58:44]line Место: АЗС № 68 "Партнер Нефть" [12:58:44]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [12:58:44]line СНО: Общий режим [12:58:44]line Чек 163 04.06.2024 12:58 [12:58:44]line Смена: 368 ФФД: 1.0 [12:58:44]line ЗНМ: 0300000035 [12:58:44]line РНМ: 0000000000092720 [12:58:44]line Версия ККМ: 001 [12:58:44]line ФМ: 0000000000875057 [12:58:44]line ФД: 148824 [12:58:44]line ФПД: 258007929537493 [12:58:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125843&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148824&fm=258007929537493&tin=02508201610067®Number=0000000000092720&sum=50000 [12:58:44]OFD Sender: Processing packet 148824 [packets to send 100, broken 99] [12:58:44]ProducePacketName [12:58:44]name=ofd_packets/00148824 [12:58:44]OFD Sender: To server: pG, [12:58:44]CommunicateWithHost lk.salyk.kg:30040 [12:58:44]ConnectInit lk.salyk.kg [12:58:44]written 0, free lines is 4095 [12:58:44]Connected sock=10 [12:58:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 81 2F 07 01 4B CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 83 0F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 58 45 02 00 35 04 06 00 EA A8 26 FD 43 D5 FF 41 70 60 91 BD 86 75 [12:58:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B5 BB 47 00 7B F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 58 45 02 00 F4 03 04 00 A7 B6 5E 66 B6 04 01 00 00 38 80 24 BA 9D 43 C5 E3 [12:58:44]CommunicateWithHost err = 0 [12:58:44]CheckOFDResponse [12:58:44]1017 (14) - 77093643461234 [12:58:44]1041 (16) - 0000000000875057 [12:58:44]1040 (4) - 148824 [12:58:44]1012 (4) - 04.06.2024 06:39 [12:58:44]1206 (1) - 0 [12:58:44]OFD Sender: Remove packet 148824 [12:58:44]ProducePacketName [12:58:44]name=ofd_packets/00148824 [12:58:44]NVStorageDeleteData [12:58:44]Write to MH i2c: 01 00 00 92 04 96 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 07 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 6D 0C 16 [12:58:44]RasterBufferAndPrint [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]written 0, free lines is 3184 [12:58:45]MH_Cut [12:58:45]Write to MH i2c: D1 01 00 99 04 01 6F [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: D1 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: D1 01 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: D1 01 00 99 04 00 6E [12:58:45]Write to MH i2c: 01 00 00 9A 04 9E [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]OFD Sender: No OFD packet to send [12:58:46]*** Cut start [12:58:46]*** Partial cut [12:58:46]*** CUTSNS_PIN = 1 [12:58:46]*** CUTSNS_PIN = 0 [12:58:46]*** Brake cut motor [12:58:46]Read from MH i2c: 01 [12:58:46]MH_I2C_Read... [12:58:46]*** Stop cut motor [12:58:46]*** Cut end [12:58:46]Read from MH i2c: 01 07 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 FF 0F B3 [12:58:46]process_action close_receipt done [12:58:46]requested_data is exist [12:58:46]produce_requested_data [12:58:46]requested_item fm.sn is exist - process it [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 11 00 00 [12:58:46]Write to MH i2c: E2 08 00 9B 04 80 11 00 00 00 00 00 00 19 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 17 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 17 00 9B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6C [12:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [12:58:46]wFMCommunicate OK [12:58:46]requested_item fd.num is exist - process it [12:58:46]SAM_PROTO_GetFieldsCounters [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 13 00 00 [12:58:46]Write to MH i2c: E2 08 00 9C 04 80 13 00 00 00 00 00 00 1C [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:47]Read from MH i2c: E2 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 62 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 62 00 9C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 58 45 02 00 0E 04 04 00 70 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 31 [12:58:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 58 45 02 00 0E 04 04 00 70 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 [12:58:47]wFMCommunicate OK [12:58:47]SAM_PROTO_GetFieldsCounters done [12:58:47]requested_item shift.num is exist - process it [12:58:47]requested_item shift.opened is exist - process it [12:58:47]req_shift_opened [12:58:47]FM_GetShiftState [12:58:47]SAM_PROTO_GetShiftState [12:58:47]wFMCommunicate request_size=4 [12:58:47]MH_SAM_APDU [12:58:47]CAPDU: 80 13 01 00 [12:58:47]Write to MH i2c: E2 08 00 9D 04 80 13 01 00 00 00 00 00 1E [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:47]Read from MH i2c: E2 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 0E 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 0E 00 9D 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E1 [12:58:47]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [12:58:47]wFMCommunicate OK [12:58:47]SAM_PROTO_GetShiftState done [12:58:47]FM_GetShiftState done [12:58:47]req_shift_opened done [12:58:47]requested_item shift.open_date is exist - process it [12:58:47]req_shift_open_date [12:58:47]req_shift_open_date done [12:58:47]produce_requested_data done [12:58:47]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148824,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [12:58:47]process_action_free close_receipt [12:58:47]json_value_free [12:58:47]json_value_free done [12:58:47]process_json_proto returns [12:58:47]Send response to host [12:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148824,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [12:58:47]free response buf [12:58:47]execute_script done [12:58:47]execute_script returns [12:58:47]free content buf [12:58:47]Sock 9.Close socket [12:58:47]Sock 9.Thread stoped [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:49]accept exits with 7 [13:06:49]New connection [13:06:49]New thread 3067407716 created [13:06:49]Thread 3067264356 joined [13:06:49]Waiting for new connection... [13:06:49] Sock 7.Parse request [13:06:49]Sock 7.Check first char [13:06:49]Sock 7.First char is OK [13:06:49]request: POST /json_proto HTTP/1.0 [13:06:49]Method: POST [13:06:49]URL: /json_proto [13:06:49]Method is POST - this is cgi request [13:06:49]url: /json_proto [13:06:49]query_string will be loaded in cgi processing [13:06:49]execute_cgi json_proto POST (null) [13:06:49]execute_cgi path=json_proto method=POST [13:06:49]POST find Content-Length [13:06:49]Host: 172.17.38.4:8080 [13:06:49]Content-Length: 1148 [13:06:49]Content-Type: application/json [13:06:49] [13:06:49]POST finish read [13:06:49]Found Content-Length = 1148 [13:06: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979753\u000A04.06.2024 12:47\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-\u041A-5\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30111522\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:49]execute_script... [13:06: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979753\u000A04.06.2024 12:47\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-\u041A-5\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30111522\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:49]POST & json_proto [13:06:49]process_json_proto [13:06:49]json parsed OK: [13:06:49]protocol is kg_v1.0 [13:06:49]action value=print_text [13:06:49]process_action print_text [13:06:49]cmd_print_text [13:06:49]ExternCall_PrintAddStr [13:06:49]wPrintStart [13:06:49]Write to MH i2c: 01 00 00 9E 04 A2 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 07 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 07 00 9E 04 00 00 00 00 00 FF 0F B7 [13:06:49]RasterBufferAndPrint [13:06:49]line *****ТОВАРНЫЙ ЧЕК***** [13:06:49]line АЗС 68 [13:06:49]line Партнер нефть [13:06:49]line 02508201610067 [13:06:49]line Кассир : Аскаров Н. [13:06:49]line Счет N : (1)979753 [13:06:49]line 04.06.2024 12:47 [13:06:49]line ПРОДАЖА [13:06:49]line ТРК (МРК, ГНК): 51 [13:06:49]line Вид ГСМ : 2710194210 [13:06:49]line ДТ-К-5 [13:06:49]line 20.000 x 72.90 [13:06:49]line ИТОГ: 1458.00 [13:06:49]line Тип оплаты: Талоны: ТК ГПНА Online [13:06:49]line 30111522 [13:06:49]line ______________________ [13:06:49]line (подпись) [13:06:49]written 0, free lines is 4095 [13:06:49]Write to MH i2c: 01 00 00 B2 04 B6 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 07 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 07 00 B2 04 00 00 00 00 00 0C 0E D7 [13:06:49]RasterBufferAndPrint [13:06:49]line [13:06:49]line [13:06:49]line [13:06:49]line [13:06:49]line [13:06:49]written 0, free lines is 3598 [13:06:49]MH_Cut [13:06:49]Write to MH i2c: D1 01 00 B9 04 01 8F [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: D1 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: D1 01 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: D1 01 00 B9 04 00 8E [13:06:49]Write to MH i2c: 01 00 00 BA 04 BE [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:50]*** Cut start [13:06:50]*** Partial cut [13:06:50]*** CUTSNS_PIN = 1 [13:06:50]*** CUTSNS_PIN = 0 [13:06:50]OFD Sender: No OFD packet to send [13:06:50]*** Brake cut motor [13:06:51]Read from MH i2c: 01 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 [13:06:51]MH_I2C_Read... [13:06:51]*** Stop cut motor [13:06:51]*** Cut end [13:06:51]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 FF 0F D3 [13:06:51]process_action print_text done [13:06:51]requested_data is exist [13:06:51]produce_requested_data [13:06:51]requested_item fm.sn is exist - process it [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 11 00 00 [13:06:51]Write to MH i2c: E2 08 00 BB 04 80 11 00 00 00 00 00 00 39 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 17 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 17 00 BB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8C [13:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:06:51]wFMCommunicate OK [13:06:51]requested_item fd.num is exist - process it [13:06:51]SAM_PROTO_GetFieldsCounters [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 13 00 00 [13:06:51]Write to MH i2c: E2 08 00 BC 04 80 13 00 00 00 00 00 00 3C [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 62 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 62 00 BC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 58 45 02 00 0E 04 04 00 70 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 51 [13:06:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 58 45 02 00 0E 04 04 00 70 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 [13:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_GetFieldsCounters done [13:06:51]requested_item shift.num is exist - process it [13:06:51]requested_item shift.opened is exist - process it [13:06:51]req_shift_opened [13:06:51]FM_GetShiftState [13:06:51]SAM_PROTO_GetShiftState [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 13 01 00 [13:06:51]Write to MH i2c: E2 08 00 BD 04 80 13 01 00 00 00 00 00 3E [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0E 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0E 00 BD 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 01 [13:06:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_GetShiftState done [13:06:51]FM_GetShiftState done [13:06:51]req_shift_opened done [13:06:51]requested_item shift.open_date is exist - process it [13:06:51]req_shift_open_date [13:06:51]req_shift_open_date done [13:06:51]produce_requested_data done [13:06:51]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148824,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:06:51]process_action_free print_text [13:06:51]json_value_free [13:06:51]json_value_free done [13:06:51]process_json_proto returns [13:06:51]Send response to host [13:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148824,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:06:51]free response buf [13:06:51]execute_script done [13:06:51]execute_script returns [13:06:51]free content buf [13:06:51]Sock 7.Close socket [13:06:51]Sock 7.Thread stoped [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:42]accept exits with 9 [13:07:42]New connection [13:07:42]New thread 3067264356 created [13:07:42]Thread 3067407716 joined [13:07:42]Waiting for new connection... [13:07:42] Sock 9.Parse request [13:07:42]Sock 9.Check first char [13:07:42]Sock 9.First char is OK [13:07:42]request: POST /json_proto HTTP/1.0 [13:07:42]Method: POST [13:07:42]URL: /json_proto [13:07:42]Method is POST - this is cgi request [13:07:42]url: /json_proto [13:07:42]query_string will be loaded in cgi processing [13:07:42]execute_cgi json_proto POST (null) [13:07:42]execute_cgi path=json_proto method=POST [13:07:42]POST find Content-Length [13:07:42]Host: 172.17.38.4:8080 [13:07:42]Content-Length: 677 [13:07:42]Content-Type: application/json [13:07:42] [13:07:42]POST finish read [13:07:42]Found Content-Length = 677 [13:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:42]execute_script... [13:07: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)979754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:42]POST & json_proto [13:07:42]process_json_proto [13:07:42]json parsed OK: [13:07:42]protocol is kg_v1.0 [13:07:42]action value=close_receipt [13:07:42]process_action close_receipt [13:07:42]cmd_close_receipt [13:07:42]MH_GetDate [13:07:42]Write to MH i2c: F0 00 00 BE 04 B1 [13:07:42]Write i2c OK [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: F0 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: F0 09 00 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: F0 09 00 BE 04 00 9F 11 5F 66 CC 51 87 64 37 [13:07:42]GetLastDocTimeStamp 1717505923 [13:07:42]current date 1717506463 [13:07:42]FM_GetShiftState [13:07:42]SAM_PROTO_GetShiftState [13:07:42]wFMCommunicate request_size=4 [13:07:42]MH_SAM_APDU [13:07:42]CAPDU: 80 13 01 00 [13:07:42]Write to MH i2c: E2 08 00 BF 04 80 13 01 00 00 00 00 00 40 [13:07:42]Write i2c OK [13:07:42]MH_I2C_Read... [13:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:42]Read from MH i2c: E2 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: E2 0E 00 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: E2 0E 00 BF 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 03 [13:07:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:07:42]wFMCommunicate OK [13:07:42]SAM_PROTO_GetShiftState done [13:07:42]FM_GetShiftState done [13:07:42]opened in 1717460629 [13:07:42]opened+sec_in_day 1717547029 [13:07:42]quantity*price = 30038 [13:07:42]sum+1 = 30039 [13:07:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 164 04.06.2024 13:07 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148825 ФПД: 19451720001358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130743&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148825&fm=19451720001358&tin=02508201610067®Number=0000000000092720&sum=30000 [13:07:43]StoreToDocumentArchive [13:07:43]shift 368 fd 148825 [13:07:43]save to /storage/0368/doc_00148825 [13:07:43]save last doc name /storage/0368/doc_00148825 to /storage/kkm_last_doc_name [13:07:43]save OK [13:07:43]Clear old archive folders... [13:07:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:43]tlvbuf is 004677A0 [13:07:43]SAM_PROTO_ClearQueue [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 09 00 00 [13:07:43]Write to MH i2c: E2 08 00 CC 04 80 09 00 00 00 00 00 00 42 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]SAM_PROTO_ClearQueue done [13:07:43]KKMCreateOFDPacket [13:07:43]OFDProtocolAddRootSTLVToBuf [13:07:43]FM_MakeSignedData [13:07:43]FM_MakeSignedData [13:07:43]SAM_PROTO_SignData [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 01 02 [13:07:43]Write to MH i2c: E2 08 00 CD 04 80 0D 01 02 00 00 00 00 4A [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]wFMCommunicate request_size=255 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A4 00 00 00 F4 03 04 00 9F 11 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 59 45 02 00 35 04 06 00 11 [13:07:43]Write to MH i2c: E2 02 01 CE 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A4 00 00 00 F4 03 04 00 9F 11 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 59 45 02 00 35 04 06 00 11 00 00 03 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]wFMCommunicate request_size=10 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 02 02 05 B0 F4 DC 67 4E [13:07:43]Write to MH i2c: E2 0D 00 CF 04 80 0D 02 02 05 00 B0 F4 DC 67 4E 00 00 8C [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 03 02 [13:07:43]Write to MH i2c: E2 08 00 D0 04 80 0D 03 02 00 00 00 00 4F [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 0B 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 0B 00 D0 04 00 B6 96 AF 56 3F EE D6 B0 90 00 54 [13:07:43]RAPDU: B6 96 AF 56 3F EE D6 B0 90 00 [13:07:43]wFMCommunicate OK [13:07:43]SAM_PROTO_SignData done [13:07:43]FM_MakeSignedData done [13:07:43]CreateOFDProtocolMessage [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 11 00 00 [13:07:43]Write to MH i2c: E2 08 00 D1 04 80 11 00 00 00 00 00 00 4F [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:44]Read from MH i2c: E2 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 17 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 17 00 D1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A2 [13:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:07:44]wFMCommunicate OK [13:07:44]CreateOFDProtocolMessage done [13:07:44]OFDSenderStorePacket 148825 [13:07:44]StoreOFDPacket docnum=148825 [13:07:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3D 8D 07 01 9F 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 9F 11 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 59 45 02 00 35 04 06 00 11 B0 F4 DC 67 4E B6 96 AF 56 3F EE D6 B0 [13:07:44]CheckFolder [13:07:44]dirname=/storage/ofd_packets [13:07:44]CheckFolder done [13:07:44]ProducePacketName [13:07:44]name=ofd_packets/00148825 [13:07:44]NVStorageSaveData ofd_packets/00148825 [13:07:44]File name is /storage/ofd_packets/00148825 [13:07:44]Write 301 bytes [13:07:44]NVStorageSaveData done [13:07:44]OFDSenderStorePacket done [13:07:44]KKMCreateOFDPacket done [13:07:44]NVStorageSaveData kkm_last_timestamp [13:07:44]File name is /storage/kkm_last_timestamp [13:07:44]Write 4 bytes [13:07:44]NVStorageSaveData done [13:07:44]ExternCall_PrintAddStr [13:07:44]wPrintStart [13:07:44]Write to MH i2c: 01 00 00 D2 04 D6 [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 07 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 FF 0F EB [13:07:44]RasterBufferAndPrint [13:07:44]line Счет N : (1)979754 [13:07:44]line ИНН: 02508201610067 [13:07:44]line Контрольно-Кассовый Чек [13:07:44]line ПРОДАЖА [13:07:44]line ТРК (МРК, ГНК) : 31 [13:07:44]line Товар: 2710124130 [13:07:44]line Аи-92-К-5 [13:07:44]line 4.490 * 66.90 [13:07:44]line = 300.38 [13:07:44]line НДС 12% НСП 1% [13:07:44]line > о реализуемом товаре [13:07:44]line ОКРУГЛЕНИЕ: -0.38 [13:07:44]line ИТОГО: 300.00 [13:07:44]line Внесено: 300.00 [13:07:44]line СДАЧА: 0.00 [13:07:44]line НСП 1% : 2.66 [13:07:44]line НДС 12% : 31.90 [13:07:44]line Наличными: 300.00 [13:07:44]line Безнал.: 0.00 [13:07:44]line Место: АЗС № 68 "Партнер Нефть" [13:07:44]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:07:44]line СНО: Общий режим [13:07:44]line Чек 164 04.06.2024 13:07 [13:07:44]line Смена: 368 ФФД: 1.0 [13:07:44]line ЗНМ: 0300000035 [13:07:44]line РНМ: 0000000000092720 [13:07:44]line Версия ККМ: 001 [13:07:44]line ФМ: 0000000000875057 [13:07:44]line ФД: 148825 [13:07:44]line ФПД: 19451720001358 [13:07:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130743&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148825&fm=19451720001358&tin=02508201610067®Number=0000000000092720&sum=30000 [13:07:44]OFD Sender: Processing packet 148825 [packets to send 100, broken 99] [13:07:44]ProducePacketName [13:07:44]name=ofd_packets/00148825 [13:07:44]OFD Sender: To server: pG, [13:07:44]CommunicateWithHost lk.salyk.kg:30040 [13:07:44]ConnectInit lk.salyk.kg [13:07:44]written 0, free lines is 4095 [13:07:44]Connected sock=10 [13:07:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3D 8D 07 01 9F 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 9F 11 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 59 45 02 00 35 04 06 00 11 B0 F4 DC 67 4E B6 96 AF 56 3F EE D6 B0 [13:07:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 16 B2 47 00 1E 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 38 37 35 30 35 37 10 04 04 00 59 45 02 00 F4 03 04 00 C3 B8 5E 66 B6 04 01 00 00 94 61 49 0C 53 35 8E 77 [13:07:44]CommunicateWithHost err = 0 [13:07:44]CheckOFDResponse [13:07:44]1017 (14) - 77093643461234 [13:07:44]1041 (16) - 0000000000875057 [13:07:44]1040 (4) - 148825 [13:07:44]1012 (4) - 04.06.2024 06:48 [13:07:44]1206 (1) - 0 [13:07:44]OFD Sender: Remove packet 148825 [13:07:44]ProducePacketName [13:07:44]name=ofd_packets/00148825 [13:07:44]NVStorageDeleteData [13:07:44]Write to MH i2c: 01 00 00 FD 04 01 [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 07 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 66 0C 7A [13:07:44]RasterBufferAndPrint [13:07:44]line [13:07:44]line [13:07:44]line [13:07:44]line [13:07:44]line [13:07:44]written 0, free lines is 3178 [13:07:44]MH_Cut [13:07:44]Write to MH i2c: D1 01 00 04 05 01 DB [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: D1 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: D1 01 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: D1 01 00 04 05 00 DA [13:07:44]Write to MH i2c: 01 00 00 05 05 0A [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:45]OFD Sender: No OFD packet to send [13:07:46]*** Cut start [13:07:46]*** Partial cut [13:07:46]*** CUTSNS_PIN = 1 [13:07:46]*** CUTSNS_PIN = 0 [13:07:46]*** Brake cut motor [13:07:46]Read from MH i2c: 01 [13:07:46]MH_I2C_Read... [13:07:46]*** Stop cut motor [13:07:46]*** Cut end [13:07:46]Read from MH i2c: 01 07 00 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 FF 0F 1F [13:07:46]process_action close_receipt done [13:07:46]requested_data is exist [13:07:46]produce_requested_data [13:07:46]requested_item fm.sn is exist - process it [13:07:46]wFMCommunicate request_size=4 [13:07:46]MH_SAM_APDU [13:07:46]CAPDU: 80 11 00 00 [13:07:46]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [13:07:46]Write i2c OK [13:07:46]MH_I2C_Read... [13:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:46]Read from MH i2c: E2 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 17 00 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D8 [13:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:07:46]wFMCommunicate OK [13:07:46]requested_item fd.num is exist - process it [13:07:46]SAM_PROTO_GetFieldsCounters [13:07:46]wFMCommunicate request_size=4 [13:07:46]MH_SAM_APDU [13:07:46]CAPDU: 80 13 00 00 [13:07:46]Write to MH i2c: E2 08 00 07 05 80 13 00 00 00 00 00 00 88 [13:07:46]Write i2c OK [13:07:46]MH_I2C_Read... [13:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:46]Read from MH i2c: E2 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 62 00 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 62 00 07 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 59 45 02 00 0E 04 04 00 70 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 A1 [13:07:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 59 45 02 00 0E 04 04 00 70 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 [13:07:46]wFMCommunicate OK [13:07:46]SAM_PROTO_GetFieldsCounters done [13:07:46]requested_item shift.num is exist - process it [13:07:46]requested_item shift.opened is exist - process it [13:07:46]req_shift_opened [13:07:46]FM_GetShiftState [13:07:46]SAM_PROTO_GetShiftState [13:07:46]wFMCommunicate request_size=4 [13:07:46]MH_SAM_APDU [13:07:46]CAPDU: 80 13 01 00 [13:07:46]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [13:07:46]Write i2c OK [13:07:46]MH_I2C_Read... [13:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:46]Read from MH i2c: E2 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 0E 00 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4D [13:07:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:07:46]wFMCommunicate OK [13:07:46]SAM_PROTO_GetShiftState done [13:07:46]FM_GetShiftState done [13:07:46]req_shift_opened done [13:07:46]requested_item shift.open_date is exist - process it [13:07:46]req_shift_open_date [13:07:46]req_shift_open_date done [13:07:46]produce_requested_data done [13:07:46]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148825,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:07:46]process_action_free close_receipt [13:07:46]json_value_free [13:07:46]json_value_free done [13:07:46]process_json_proto returns [13:07:46]Send response to host [13:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148825,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:07:46]free response buf [13:07:46]execute_script done [13:07:46]execute_script returns [13:07:46]free content buf [13:07:46]Sock 9.Close socket [13:07:46]Sock 9.Thread stoped [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:16]accept exits with 7 [13:10:16]New connection [13:10:16]New thread 3067407716 created [13:10:16]Thread 3067264356 joined [13:10:16]Waiting for new connection... [13:10:16] Sock 7.Parse request [13:10:16]Sock 7.Check first char [13:10:16]Sock 7.First char is OK [13:10:16]request: POST /json_proto HTTP/1.0 [13:10:16]Method: POST [13:10:16]URL: /json_proto [13:10:16]Method is POST - this is cgi request [13:10:16]url: /json_proto [13:10:16]query_string will be loaded in cgi processing [13:10:16]execute_cgi json_proto POST (null) [13:10:16]execute_cgi path=json_proto method=POST [13:10:16]POST find Content-Length [13:10:16]Host: 172.17.38.4:8080 [13:10:16]Content-Length: 677 [13:10:16]Content-Type: application/json [13:10:16] [13:10:16]POST finish read [13:10:16]Found Content-Length = 677 [13:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "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" ] } } [13:10:16]execute_script... [13:10: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)979755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "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" ] } } [13:10:16]POST & json_proto [13:10:16]process_json_proto [13:10:16]json parsed OK: [13:10:16]protocol is kg_v1.0 [13:10:16]action value=close_receipt [13:10:16]process_action close_receipt [13:10:16]cmd_close_receipt [13:10:16]MH_GetDate [13:10:16]Write to MH i2c: F0 00 00 09 05 FD [13:10:16]Write i2c OK [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: F0 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: F0 09 00 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: F0 09 00 09 05 00 39 12 5F 66 CC 51 87 64 1E [13:10:16]GetLastDocTimeStamp 1717506463 [13:10:16]current date 1717506617 [13:10:16]FM_GetShiftState [13:10:16]SAM_PROTO_GetShiftState [13:10:16]wFMCommunicate request_size=4 [13:10:16]MH_SAM_APDU [13:10:16]CAPDU: 80 13 01 00 [13:10:16]Write to MH i2c: E2 08 00 0A 05 80 13 01 00 00 00 00 00 8C [13:10:16]Write i2c OK [13:10:16]MH_I2C_Read... [13:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:16]Read from MH i2c: E2 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: E2 0E 00 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: E2 0E 00 0A 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4F [13:10:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:10:16]wFMCommunicate OK [13:10:16]SAM_PROTO_GetShiftState done [13:10:16]FM_GetShiftState done [13:10:16]opened in 1717460629 [13:10:16]opened+sec_in_day 1717547029 [13:10:16]quantity*price = 26024 [13:10:16]sum+1 = 26025 [13:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 165 04.06.2024 13:10 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148826 ФПД: 164464126777357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131017&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148826&fm=164464126777357&tin=02508201610067®Number=0000000000092720&sum=26000 [13:10:18]StoreToDocumentArchive [13:10:18]shift 368 fd 148826 [13:10:18]save to /storage/0368/doc_00148826 [13:10:18]save last doc name /storage/0368/doc_00148826 to /storage/kkm_last_doc_name [13:10:18]save OK [13:10:18]Clear old archive folders... [13:10:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:18]tlvbuf is 0046ADA0 [13:10:18]SAM_PROTO_ClearQueue [13:10:18]wFMCommunicate request_size=4 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 09 00 00 [13:10:18]Write to MH i2c: E2 08 00 17 05 80 09 00 00 00 00 00 00 8E [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:18]Read from MH i2c: E2 03 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [13:10:18]RAPDU: 90 00 [13:10:18]wFMCommunicate OK [13:10:18]SAM_PROTO_ClearQueue done [13:10:18]KKMCreateOFDPacket [13:10:18]OFDProtocolAddRootSTLVToBuf [13:10:18]FM_MakeSignedData [13:10:18]FM_MakeSignedData [13:10:18]SAM_PROTO_SignData [13:10:18]wFMCommunicate request_size=4 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 0D 01 02 [13:10:18]Write to MH i2c: E2 08 00 18 05 80 0D 01 02 00 00 00 00 96 [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:18]Read from MH i2c: E2 03 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [13:10:18]RAPDU: 90 00 [13:10:18]wFMCommunicate OK [13:10:18]wFMCommunicate request_size=255 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 A5 00 00 00 F4 03 04 00 39 12 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5A 45 02 00 35 04 06 00 95 [13:10:18]Write to MH i2c: E2 02 01 19 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 A5 00 00 00 F4 03 04 00 39 12 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5A 45 02 00 35 04 06 00 95 00 00 27 [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 03 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [13:10:18]RAPDU: 90 00 [13:10:18]wFMCommunicate OK [13:10:18]wFMCommunicate request_size=10 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 0D 02 02 05 94 49 DA D8 0D [13:10:18]Write to MH i2c: E2 0D 00 1A 05 80 0D 02 02 05 00 94 49 DA D8 0D 00 00 3F [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 03 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [13:10:18]RAPDU: 90 00 [13:10:18]wFMCommunicate OK [13:10:18]wFMCommunicate request_size=4 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 0D 03 02 [13:10:18]Write to MH i2c: E2 08 00 1B 05 80 0D 03 02 00 00 00 00 9B [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 0B 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 0B 00 1B 05 00 53 FC F7 85 22 6F 74 6B 90 00 D7 [13:10:18]RAPDU: 53 FC F7 85 22 6F 74 6B 90 00 [13:10:18]wFMCommunicate OK [13:10:18]SAM_PROTO_SignData done [13:10:18]FM_MakeSignedData done [13:10:18]CreateOFDProtocolMessage [13:10:18]wFMCommunicate request_size=4 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 11 00 00 [13:10:18]Write to MH i2c: E2 08 00 1C 05 80 11 00 00 00 00 00 00 9B [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 17 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 17 00 1C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EE [13:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:10:18]wFMCommunicate OK [13:10:18]CreateOFDProtocolMessage done [13:10:18]OFDSenderStorePacket 148826 [13:10:18]StoreOFDPacket docnum=148826 [13:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 6F 75 07 01 07 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 A5 00 00 00 F4 03 04 00 39 12 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5A 45 02 00 35 04 06 00 95 94 49 DA D8 0D 53 FC F7 85 22 6F 74 6B [13:10:18]CheckFolder [13:10:18]dirname=/storage/ofd_packets [13:10:18]CheckFolder done [13:10:18]ProducePacketName [13:10:18]name=ofd_packets/00148826 [13:10:18]NVStorageSaveData ofd_packets/00148826 [13:10:18]File name is /storage/ofd_packets/00148826 [13:10:18]Write 301 bytes [13:10:18]NVStorageSaveData done [13:10:18]OFDSenderStorePacket done [13:10:18]KKMCreateOFDPacket done [13:10:18]NVStorageSaveData kkm_last_timestamp [13:10:18]File name is /storage/kkm_last_timestamp [13:10:18]Write 4 bytes [13:10:18]NVStorageSaveData done [13:10:18]ExternCall_PrintAddStr [13:10:18]wPrintStart [13:10:18]Write to MH i2c: 01 00 00 1D 05 22 [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: 01 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: 01 07 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: 01 07 00 1D 05 00 00 00 00 00 FF 0F 37 [13:10:18]RasterBufferAndPrint [13:10:18]line Счет N : (1)979755 [13:10:18]line ИНН: 02508201610067 [13:10:18]line Контрольно-Кассовый Чек [13:10:18]line ПРОДАЖА [13:10:18]line ТРК (МРК, ГНК) : 12 [13:10:18]line Товар: 2710124130 [13:10:18]line Аи-92-К-5 [13:10:18]line 3.890 * 66.90 [13:10:18]line = 260.24 [13:10:18]line НДС 12% НСП 1% [13:10:18]line > о реализуемом товаре [13:10:18]line ОКРУГЛЕНИЕ: -0.24 [13:10:18]line ИТОГО: 260.00 [13:10:18]line Внесено: 260.00 [13:10:18]line СДАЧА: 0.00 [13:10:18]line НСП 1% : 2.30 [13:10:18]line НДС 12% : 27.64 [13:10:18]line Наличными: 260.00 [13:10:18]line Безнал.: 0.00 [13:10:18]line Место: АЗС № 68 "Партнер Нефть" [13:10:18]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:10:18]line СНО: Общий режим [13:10:18]line Чек 165 04.06.2024 13:10 [13:10:18]line Смена: 368 ФФД: 1.0 [13:10:18]line ЗНМ: 0300000035 [13:10:18]line РНМ: 0000000000092720 [13:10:18]line Версия ККМ: 001 [13:10:18]line ФМ: 0000000000875057 [13:10:18]line ФД: 148826 [13:10:18]line ФПД: 164464126777357 [13:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131017&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148826&fm=164464126777357&tin=02508201610067®Number=0000000000092720&sum=26000 [13:10:18]OFD Sender: Processing packet 148826 [packets to send 100, broken 99] [13:10:18]ProducePacketName [13:10:18]name=ofd_packets/00148826 [13:10:18]OFD Sender: To server: pG, [13:10:18]CommunicateWithHost lk.salyk.kg:30040 [13:10:18]ConnectInit lk.salyk.kg [13:10:18]written 0, free lines is 4095 [13:10:18]Connected sock=10 [13:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 6F 75 07 01 07 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 A5 00 00 00 F4 03 04 00 39 12 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5A 45 02 00 35 04 06 00 95 94 49 DA D8 0D 53 FC F7 85 22 6F 74 6B [13:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3B C9 47 00 5F 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5A 45 02 00 F4 03 04 00 5D B9 5E 66 B6 04 01 00 00 B3 82 61 45 4B 8D 94 76 [13:10:19]CommunicateWithHost err = 0 [13:10:19]CheckOFDResponse [13:10:19]1017 (14) - 77093643461234 [13:10:19]1041 (16) - 0000000000875057 [13:10:19]1040 (4) - 148826 [13:10:19]1012 (4) - 04.06.2024 06:51 [13:10:19]1206 (1) - 0 [13:10:19]OFD Sender: Remove packet 148826 [13:10:19]ProducePacketName [13:10:19]name=ofd_packets/00148826 [13:10:19]NVStorageDeleteData [13:10:19]Write to MH i2c: 01 00 00 48 05 4D [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: 01 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: 01 07 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: 01 07 00 48 05 00 00 00 00 00 62 0C C2 [13:10:19]RasterBufferAndPrint [13:10:19]line [13:10:19]line [13:10:19]line [13:10:19]line [13:10:19]line [13:10:19]written 0, free lines is 3174 [13:10:19]MH_Cut [13:10:19]Write to MH i2c: D1 01 00 4F 05 01 26 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: D1 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: D1 01 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: D1 01 00 4F 05 00 25 [13:10:19]Write to MH i2c: 01 00 00 50 05 55 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]OFD Sender: No OFD packet to send [13:10:20]*** Cut start [13:10:20]*** Partial cut [13:10:20]*** CUTSNS_PIN = 1 [13:10:20]*** CUTSNS_PIN = 0 [13:10:20]*** Brake cut motor [13:10:21]Read from MH i2c: 01 [13:10:21]MH_I2C_Read... [13:10:21]*** Stop cut motor [13:10:21]*** Cut end [13:10:21]Read from MH i2c: 01 07 00 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: 01 07 00 50 05 00 00 00 00 00 FF 0F 6A [13:10:21]process_action close_receipt done [13:10:21]requested_data is exist [13:10:21]produce_requested_data [13:10:21]requested_item fm.sn is exist - process it [13:10:21]wFMCommunicate request_size=4 [13:10:21]MH_SAM_APDU [13:10:21]CAPDU: 80 11 00 00 [13:10:21]Write to MH i2c: E2 08 00 51 05 80 11 00 00 00 00 00 00 D0 [13:10:21]Write i2c OK [13:10:21]MH_I2C_Read... [13:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:21]Read from MH i2c: E2 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: E2 17 00 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: E2 17 00 51 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 23 [13:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:10:21]wFMCommunicate OK [13:10:21]requested_item fd.num is exist - process it [13:10:21]SAM_PROTO_GetFieldsCounters [13:10:21]wFMCommunicate request_size=4 [13:10:21]MH_SAM_APDU [13:10:21]CAPDU: 80 13 00 00 [13:10:21]Write to MH i2c: E2 08 00 52 05 80 13 00 00 00 00 00 00 D3 [13:10:21]Write i2c OK [13:10:21]MH_I2C_Read... [13:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:21]Read from MH i2c: E2 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: E2 62 00 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: E2 62 00 52 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5A 45 02 00 0E 04 04 00 70 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 F0 [13:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5A 45 02 00 0E 04 04 00 70 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 [13:10:21]wFMCommunicate OK [13:10:21]SAM_PROTO_GetFieldsCounters done [13:10:21]requested_item shift.num is exist - process it [13:10:21]requested_item shift.opened is exist - process it [13:10:21]req_shift_opened [13:10:21]FM_GetShiftState [13:10:21]SAM_PROTO_GetShiftState [13:10:21]wFMCommunicate request_size=4 [13:10:21]MH_SAM_APDU [13:10:21]CAPDU: 80 13 01 00 [13:10:21]Write to MH i2c: E2 08 00 53 05 80 13 01 00 00 00 00 00 D5 [13:10:21]Write i2c OK [13:10:21]MH_I2C_Read... [13:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:21]Read from MH i2c: E2 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: E2 0E 00 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: E2 0E 00 53 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 98 [13:10:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:10:21]wFMCommunicate OK [13:10:21]SAM_PROTO_GetShiftState done [13:10:21]FM_GetShiftState done [13:10:21]req_shift_opened done [13:10:21]requested_item shift.open_date is exist - process it [13:10:21]req_shift_open_date [13:10:21]req_shift_open_date done [13:10:21]produce_requested_data done [13:10:21]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148826,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:10:21]process_action_free close_receipt [13:10:21]json_value_free [13:10:21]json_value_free done [13:10:21]process_json_proto returns [13:10:21]Send response to host [13:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148826,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:10:21]free response buf [13:10:21]execute_script done [13:10:21]execute_script returns [13:10:21]free content buf [13:10:21]Sock 7.Close socket [13:10:21]Sock 7.Thread stoped [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:02]accept exits with 9 [13:12:02]New connection [13:12:02]New thread 3067264356 created [13:12:02]Thread 3067407716 joined [13:12:02]Waiting for new connection... [13:12:02] Sock 9.Parse request [13:12:02]Sock 9.Check first char [13:12:02]Sock 9.First char is OK [13:12:02]request: POST /json_proto HTTP/1.0 [13:12:02]Method: POST [13:12:02]URL: /json_proto [13:12:02]Method is POST - this is cgi request [13:12:02]url: /json_proto [13:12:02]query_string will be loaded in cgi processing [13:12:02]execute_cgi json_proto POST (null) [13:12:02]execute_cgi path=json_proto method=POST [13:12:02]POST find Content-Length [13:12:02]Host: 172.17.38.4:8080 [13:12:02]Content-Length: 677 [13:12:02]Content-Type: application/json [13:12:02] [13:12:02]POST finish read [13:12:02]Found Content-Length = 677 [13:12:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:02]execute_script... [13:12: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)979756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:02]POST & json_proto [13:12:02]process_json_proto [13:12:02]json parsed OK: [13:12:02]protocol is kg_v1.0 [13:12:02]action value=close_receipt [13:12:02]process_action close_receipt [13:12:02]cmd_close_receipt [13:12:02]MH_GetDate [13:12:02]Write to MH i2c: F0 00 00 54 05 48 [13:12:02]Write i2c OK [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: F0 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: F0 09 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: F0 09 00 54 05 00 A3 12 5F 66 CC 51 87 64 D3 [13:12:02]GetLastDocTimeStamp 1717506617 [13:12:02]current date 1717506723 [13:12:02]FM_GetShiftState [13:12:02]SAM_PROTO_GetShiftState [13:12:02]wFMCommunicate request_size=4 [13:12:02]MH_SAM_APDU [13:12:02]CAPDU: 80 13 01 00 [13:12:02]Write to MH i2c: E2 08 00 55 05 80 13 01 00 00 00 00 00 D7 [13:12:02]Write i2c OK [13:12:02]MH_I2C_Read... [13:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:02]Read from MH i2c: E2 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 0E 00 [13:12:02]MH_I2C_Read... [13:12:02]Read from MH i2c: E2 0E 00 55 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9A [13:12:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:12:02]wFMCommunicate OK [13:12:02]SAM_PROTO_GetShiftState done [13:12:02]FM_GetShiftState done [13:12:02]opened in 1717460629 [13:12:02]opened+sec_in_day 1717547029 [13:12:02]quantity*price = 30038 [13:12:02]sum+1 = 30039 [13:12:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 166 04.06.2024 13:12 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148827 ФПД: 124280807902260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131203&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148827&fm=124280807902260&tin=02508201610067®Number=0000000000092720&sum=30000 [13:12:03]StoreToDocumentArchive [13:12:03]shift 368 fd 148827 [13:12:03]save to /storage/0368/doc_00148827 [13:12:03]save last doc name /storage/0368/doc_00148827 to /storage/kkm_last_doc_name [13:12:03]save OK [13:12:03]Clear old archive folders... [13:12:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:03]tlvbuf is B6E17930 [13:12:03]SAM_PROTO_ClearQueue [13:12:03]wFMCommunicate request_size=4 [13:12:03]MH_SAM_APDU [13:12:03]CAPDU: 80 09 00 00 [13:12:03]Write to MH i2c: E2 08 00 62 05 80 09 00 00 00 00 00 00 D9 [13:12:03]Write i2c OK [13:12:03]MH_I2C_Read... [13:12:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:03]Read from MH i2c: E2 [13:12:03]MH_I2C_Read... [13:12:03]Read from MH i2c: E2 03 00 [13:12:03]MH_I2C_Read... [13:12:03]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [13:12:03]RAPDU: 90 00 [13:12:03]wFMCommunicate OK [13:12:03]SAM_PROTO_ClearQueue done [13:12:03]KKMCreateOFDPacket [13:12:03]OFDProtocolAddRootSTLVToBuf [13:12:03]FM_MakeSignedData [13:12:03]FM_MakeSignedData [13:12:03]SAM_PROTO_SignData [13:12:03]wFMCommunicate request_size=4 [13:12:03]MH_SAM_APDU [13:12:03]CAPDU: 80 0D 01 02 [13:12:03]Write to MH i2c: E2 08 00 63 05 80 0D 01 02 00 00 00 00 E1 [13:12:03]Write i2c OK [13:12:03]MH_I2C_Read... [13:12:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:03]Read from MH i2c: E2 [13:12:03]MH_I2C_Read... [13:12:03]Read from MH i2c: E2 03 00 [13:12:03]MH_I2C_Read... [13:12:03]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [13:12:03]RAPDU: 90 00 [13:12:03]wFMCommunicate OK [13:12:03]wFMCommunicate request_size=255 [13:12:03]MH_SAM_APDU [13:12:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A6 00 00 00 F4 03 04 00 A3 12 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5B 45 02 00 35 04 06 00 71 [13:12:03]Write to MH i2c: E2 02 01 64 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A6 00 00 00 F4 03 04 00 A3 12 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5B 45 02 00 35 04 06 00 71 00 00 03 [13:12:03]Write i2c OK [13:12:03]MH_I2C_Read... [13:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:04]Read from MH i2c: E2 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 03 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [13:12:04]RAPDU: 90 00 [13:12:04]wFMCommunicate OK [13:12:04]wFMCommunicate request_size=10 [13:12:04]MH_SAM_APDU [13:12:04]CAPDU: 80 0D 02 02 05 08 61 68 4C 34 [13:12:04]Write to MH i2c: E2 0D 00 65 05 80 0D 02 02 05 00 08 61 68 4C 34 00 00 3F [13:12:04]Write i2c OK [13:12:04]MH_I2C_Read... [13:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:04]Read from MH i2c: E2 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 03 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [13:12:04]RAPDU: 90 00 [13:12:04]wFMCommunicate OK [13:12:04]wFMCommunicate request_size=4 [13:12:04]MH_SAM_APDU [13:12:04]CAPDU: 80 0D 03 02 [13:12:04]Write to MH i2c: E2 08 00 66 05 80 0D 03 02 00 00 00 00 E6 [13:12:04]Write i2c OK [13:12:04]MH_I2C_Read... [13:12:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:04]Read from MH i2c: E2 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 0B 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 0B 00 66 05 00 52 F9 24 37 D7 EA 20 47 90 00 B5 [13:12:04]RAPDU: 52 F9 24 37 D7 EA 20 47 90 00 [13:12:04]wFMCommunicate OK [13:12:04]SAM_PROTO_SignData done [13:12:04]FM_MakeSignedData done [13:12:04]CreateOFDProtocolMessage [13:12:04]wFMCommunicate request_size=4 [13:12:04]MH_SAM_APDU [13:12:04]CAPDU: 80 11 00 00 [13:12:04]Write to MH i2c: E2 08 00 67 05 80 11 00 00 00 00 00 00 E6 [13:12:04]Write i2c OK [13:12:04]MH_I2C_Read... [13:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:04]Read from MH i2c: E2 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 17 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 17 00 67 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 39 [13:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:12:04]wFMCommunicate OK [13:12:04]CreateOFDProtocolMessage done [13:12:04]OFDSenderStorePacket 148827 [13:12:04]StoreOFDPacket docnum=148827 [13:12:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5E 36 07 01 06 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A6 00 00 00 F4 03 04 00 A3 12 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5B 45 02 00 35 04 06 00 71 08 61 68 4C 34 52 F9 24 37 D7 EA 20 47 [13:12:04]CheckFolder [13:12:04]dirname=/storage/ofd_packets [13:12:04]CheckFolder done [13:12:04]ProducePacketName [13:12:04]name=ofd_packets/00148827 [13:12:04]NVStorageSaveData ofd_packets/00148827 [13:12:04]File name is /storage/ofd_packets/00148827 [13:12:04]Write 301 bytes [13:12:04]NVStorageSaveData done [13:12:04]OFDSenderStorePacket done [13:12:04]KKMCreateOFDPacket done [13:12:04]NVStorageSaveData kkm_last_timestamp [13:12:04]File name is /storage/kkm_last_timestamp [13:12:04]Write 4 bytes [13:12:04]NVStorageSaveData done [13:12:04]ExternCall_PrintAddStr [13:12:04]wPrintStart [13:12:04]Write to MH i2c: 01 00 00 68 05 6D [13:12:04]Write i2c OK [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: 01 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: 01 07 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: 01 07 00 68 05 00 00 00 00 00 FF 0F 82 [13:12:04]RasterBufferAndPrint [13:12:04]line Счет N : (1)979756 [13:12:04]line ИНН: 02508201610067 [13:12:04]line Контрольно-Кассовый Чек [13:12:04]line ПРОДАЖА [13:12:04]line ТРК (МРК, ГНК) : 22 [13:12:04]line Товар: 2710124130 [13:12:04]line Аи-92-К-5 [13:12:04]line 4.490 * 66.90 [13:12:04]line = 300.38 [13:12:04]line НДС 12% НСП 1% [13:12:04]line > о реализуемом товаре [13:12:04]line ОКРУГЛЕНИЕ: -0.38 [13:12:04]line ИТОГО: 300.00 [13:12:04]line Внесено: 300.00 [13:12:04]line СДАЧА: 0.00 [13:12:04]line НСП 1% : 2.66 [13:12:04]line НДС 12% : 31.90 [13:12:04]line Наличными: 300.00 [13:12:04]line Безнал.: 0.00 [13:12:04]line Место: АЗС № 68 "Партнер Нефть" [13:12:04]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:12:04]line СНО: Общий режим [13:12:04]line Чек 166 04.06.2024 13:12 [13:12:04]line Смена: 368 ФФД: 1.0 [13:12:04]line ЗНМ: 0300000035 [13:12:04]line РНМ: 0000000000092720 [13:12:04]line Версия ККМ: 001 [13:12:04]line ФМ: 0000000000875057 [13:12:04]line ФД: 148827 [13:12:04]line ФПД: 124280807902260 [13:12:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131203&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148827&fm=124280807902260&tin=02508201610067®Number=0000000000092720&sum=30000 [13:12:04]OFD Sender: Processing packet 148827 [packets to send 100, broken 99] [13:12:04]ProducePacketName [13:12:04]name=ofd_packets/00148827 [13:12:04]OFD Sender: To server: pG, [13:12:04]CommunicateWithHost lk.salyk.kg:30040 [13:12:04]ConnectInit lk.salyk.kg [13:12:04]written 0, free lines is 4095 [13:12:04]Connected sock=10 [13:12:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5E 36 07 01 06 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A6 00 00 00 F4 03 04 00 A3 12 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5B 45 02 00 35 04 06 00 71 08 61 68 4C 34 52 F9 24 37 D7 EA 20 47 [13:12:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 06 01 47 00 72 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 38 37 35 30 35 37 10 04 04 00 5B 45 02 00 F4 03 04 00 C7 B9 5E 66 B6 04 01 00 00 AE FF 85 8A 35 11 3A 77 [13:12:04]CommunicateWithHost err = 0 [13:12:04]CheckOFDResponse [13:12:04]1017 (14) - 77093643461234 [13:12:04]1041 (16) - 0000000000875057 [13:12:04]1040 (4) - 148827 [13:12:04]1012 (4) - 04.06.2024 06:52 [13:12:04]1206 (1) - 0 [13:12:04]OFD Sender: Remove packet 148827 [13:12:04]ProducePacketName [13:12:04]name=ofd_packets/00148827 [13:12:04]NVStorageDeleteData [13:12:04]Write to MH i2c: 01 00 00 93 05 98 [13:12:04]Write i2c OK [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: 01 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: 01 07 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: 01 07 00 93 05 00 00 00 00 00 6A 0C 15 [13:12:04]RasterBufferAndPrint [13:12:04]line [13:12:04]line [13:12:04]line [13:12:04]line [13:12:04]line [13:12:05]written 0, free lines is 3181 [13:12:05]MH_Cut [13:12:05]Write to MH i2c: D1 01 00 9A 05 01 71 [13:12:05]Write i2c OK [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: D1 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: D1 01 00 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: D1 01 00 9A 05 00 70 [13:12:05]Write to MH i2c: 01 00 00 9B 05 A0 [13:12:05]Write i2c OK [13:12:05]MH_I2C_Read... [13:12:05]OFD Sender: No OFD packet to send [13:12:06]*** Cut start [13:12:06]*** Partial cut [13:12:06]*** CUTSNS_PIN = 1 [13:12:06]*** CUTSNS_PIN = 0 [13:12:06]*** Brake cut motor [13:12:06]Read from MH i2c: 01 [13:12:06]MH_I2C_Read... [13:12:06]*** Stop cut motor [13:12:06]*** Cut end [13:12:06]Read from MH i2c: 01 07 00 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 FF 0F B5 [13:12:06]process_action close_receipt done [13:12:06]requested_data is exist [13:12:06]produce_requested_data [13:12:06]requested_item fm.sn is exist - process it [13:12:06]wFMCommunicate request_size=4 [13:12:06]MH_SAM_APDU [13:12:06]CAPDU: 80 11 00 00 [13:12:06]Write to MH i2c: E2 08 00 9C 05 80 11 00 00 00 00 00 00 1B [13:12:06]Write i2c OK [13:12:06]MH_I2C_Read... [13:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:06]Read from MH i2c: E2 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: E2 17 00 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: E2 17 00 9C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6E [13:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:12:06]wFMCommunicate OK [13:12:06]requested_item fd.num is exist - process it [13:12:06]SAM_PROTO_GetFieldsCounters [13:12:06]wFMCommunicate request_size=4 [13:12:06]MH_SAM_APDU [13:12:06]CAPDU: 80 13 00 00 [13:12:06]Write to MH i2c: E2 08 00 9D 05 80 13 00 00 00 00 00 00 1E [13:12:06]Write i2c OK [13:12:06]MH_I2C_Read... [13:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:07]Read from MH i2c: E2 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: E2 62 00 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: E2 62 00 9D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5B 45 02 00 0E 04 04 00 70 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 3F [13:12:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5B 45 02 00 0E 04 04 00 70 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 [13:12:07]wFMCommunicate OK [13:12:07]SAM_PROTO_GetFieldsCounters done [13:12:07]requested_item shift.num is exist - process it [13:12:07]requested_item shift.opened is exist - process it [13:12:07]req_shift_opened [13:12:07]FM_GetShiftState [13:12:07]SAM_PROTO_GetShiftState [13:12:07]wFMCommunicate request_size=4 [13:12:07]MH_SAM_APDU [13:12:07]CAPDU: 80 13 01 00 [13:12:07]Write to MH i2c: E2 08 00 9E 05 80 13 01 00 00 00 00 00 20 [13:12:07]Write i2c OK [13:12:07]MH_I2C_Read... [13:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:07]Read from MH i2c: E2 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: E2 0E 00 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: E2 0E 00 9E 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E3 [13:12:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:12:07]wFMCommunicate OK [13:12:07]SAM_PROTO_GetShiftState done [13:12:07]FM_GetShiftState done [13:12:07]req_shift_opened done [13:12:07]requested_item shift.open_date is exist - process it [13:12:07]req_shift_open_date [13:12:07]req_shift_open_date done [13:12:07]produce_requested_data done [13:12:07]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148827,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:12:07]process_action_free close_receipt [13:12:07]json_value_free [13:12:07]json_value_free done [13:12:07]process_json_proto returns [13:12:07]Send response to host [13:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148827,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:12:07]free response buf [13:12:07]execute_script done [13:12:07]execute_script returns [13:12:07]free content buf [13:12:07]Sock 9.Close socket [13:12:07]Sock 9.Thread stoped [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:04]accept exits with 7 [13:15:04]New connection [13:15:04]New thread 3067407716 created [13:15:04]Thread 3067264356 joined [13:15:04]Waiting for new connection... [13:15:04] Sock 7.Parse request [13:15:04]Sock 7.Check first char [13:15:04]Sock 7.First char is OK [13:15:04]request: POST /json_proto HTTP/1.0 [13:15:04]Method: POST [13:15:04]URL: /json_proto [13:15:04]Method is POST - this is cgi request [13:15:04]url: /json_proto [13:15:04]query_string will be loaded in cgi processing [13:15:04]execute_cgi json_proto POST (null) [13:15:04]execute_cgi path=json_proto method=POST [13:15:04]POST find Content-Length [13:15:04]Host: 172.17.38.4:8080 [13:15:04]Content-Length: 674 [13:15:04]Content-Type: application/json [13:15:04] [13:15:04]POST finish read [13:15:04]Found Content-Length = 674 [13:15:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [13:15:04]execute_script... [13:15: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)979757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [13:15:04]POST & json_proto [13:15:04]process_json_proto [13:15:04]json parsed OK: [13:15:04]protocol is kg_v1.0 [13:15:04]action value=close_receipt [13:15:04]process_action close_receipt [13:15:04]cmd_close_receipt [13:15:04]MH_GetDate [13:15:04]Write to MH i2c: F0 00 00 9F 05 93 [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: F0 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: F0 09 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: F0 09 00 9F 05 00 59 13 5F 66 CC 51 87 64 D5 [13:15:04]GetLastDocTimeStamp 1717506723 [13:15:04]current date 1717506905 [13:15:04]FM_GetShiftState [13:15:04]SAM_PROTO_GetShiftState [13:15:04]wFMCommunicate request_size=4 [13:15:04]MH_SAM_APDU [13:15:04]CAPDU: 80 13 01 00 [13:15:04]Write to MH i2c: E2 08 00 A0 05 80 13 01 00 00 00 00 00 22 [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:04]Read from MH i2c: E2 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 0E 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 0E 00 A0 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E5 [13:15:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:15:04]wFMCommunicate OK [13:15:04]SAM_PROTO_GetShiftState done [13:15:04]FM_GetShiftState done [13:15:04]opened in 1717460629 [13:15:04]opened+sec_in_day 1717547029 [13:15:04]quantity*price = 60069 [13:15:04]sum+1 = 60071 [13:15:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 167 04.06.2024 13:15 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148828 ФПД: 132783417291019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131505&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148828&fm=132783417291019&tin=02508201610067®Number=0000000000092720&sum=60000 [13:15:05]StoreToDocumentArchive [13:15:05]shift 368 fd 148828 [13:15:05]save to /storage/0368/doc_00148828 [13:15:05]save last doc name /storage/0368/doc_00148828 to /storage/kkm_last_doc_name [13:15:05]save OK [13:15:05]Clear old archive folders... [13:15:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:15:05]tlvbuf is 004AE2F0 [13:15:05]SAM_PROTO_ClearQueue [13:15:05]wFMCommunicate request_size=4 [13:15:05]MH_SAM_APDU [13:15:05]CAPDU: 80 09 00 00 [13:15:05]Write to MH i2c: E2 08 00 AD 05 80 09 00 00 00 00 00 00 24 [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 [13:15:05]MH_I2C_Read... [13:15:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:05]Read from MH i2c: E2 03 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [13:15:05]RAPDU: 90 00 [13:15:05]wFMCommunicate OK [13:15:05]SAM_PROTO_ClearQueue done [13:15:05]KKMCreateOFDPacket [13:15:05]OFDProtocolAddRootSTLVToBuf [13:15:05]FM_MakeSignedData [13:15:05]FM_MakeSignedData [13:15:05]SAM_PROTO_SignData [13:15:05]wFMCommunicate request_size=4 [13:15:05]MH_SAM_APDU [13:15:05]CAPDU: 80 0D 01 02 [13:15:05]Write to MH i2c: E2 08 00 AE 05 80 0D 01 02 00 00 00 00 2C [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]OFD Sender: No OFD packet to send [13:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:05]Read from MH i2c: E2 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 03 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [13:15:05]RAPDU: 90 00 [13:15:05]wFMCommunicate OK [13:15:05]wFMCommunicate request_size=255 [13:15:05]MH_SAM_APDU [13:15:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 59 13 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5C 45 02 00 35 04 06 00 78 C4 0C 6B [13:15:05]Write to MH i2c: E2 02 01 AF 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 59 13 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5C 45 02 00 35 04 06 00 78 C4 0C 6B 00 00 46 [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:05]Read from MH i2c: E2 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 03 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [13:15:05]RAPDU: 90 00 [13:15:05]wFMCommunicate OK [13:15:05]wFMCommunicate request_size=7 [13:15:05]MH_SAM_APDU [13:15:05]CAPDU: 80 0D 02 02 02 71 0B [13:15:05]Write to MH i2c: E2 0A 00 B0 05 80 0D 02 02 02 00 71 0B 00 00 AF [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:05]Read from MH i2c: E2 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 03 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [13:15:05]RAPDU: 90 00 [13:15:05]wFMCommunicate OK [13:15:05]wFMCommunicate request_size=4 [13:15:05]MH_SAM_APDU [13:15:05]CAPDU: 80 0D 03 02 [13:15:05]Write to MH i2c: E2 08 00 B1 05 80 0D 03 02 00 00 00 00 31 [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:05]Read from MH i2c: E2 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 0B 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 0B 00 B1 05 00 F7 1F 98 10 44 15 B0 7F 90 00 78 [13:15:05]RAPDU: F7 1F 98 10 44 15 B0 7F 90 00 [13:15:05]wFMCommunicate OK [13:15:05]SAM_PROTO_SignData done [13:15:05]FM_MakeSignedData done [13:15:05]CreateOFDProtocolMessage [13:15:05]wFMCommunicate request_size=4 [13:15:05]MH_SAM_APDU [13:15:05]CAPDU: 80 11 00 00 [13:15:05]Write to MH i2c: E2 08 00 B2 05 80 11 00 00 00 00 00 00 31 [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:05]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 17 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 17 00 B2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 84 [13:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:15:06]wFMCommunicate OK [13:15:06]CreateOFDProtocolMessage done [13:15:06]OFDSenderStorePacket 148828 [13:15:06]StoreOFDPacket docnum=148828 [13:15:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 E2 25 04 01 32 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 59 13 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5C 45 02 00 35 04 06 00 78 C4 0C 6B 71 0B F7 1F 98 10 44 15 B0 7F [13:15:06]CheckFolder [13:15:06]dirname=/storage/ofd_packets [13:15:06]CheckFolder done [13:15:06]ProducePacketName [13:15:06]name=ofd_packets/00148828 [13:15:06]NVStorageSaveData ofd_packets/00148828 [13:15:06]File name is /storage/ofd_packets/00148828 [13:15:06]Write 298 bytes [13:15:06]NVStorageSaveData done [13:15:06]OFDSenderStorePacket done [13:15:06]KKMCreateOFDPacket done [13:15:06]NVStorageSaveData kkm_last_timestamp [13:15:06]File name is /storage/kkm_last_timestamp [13:15:06]Write 4 bytes [13:15:06]NVStorageSaveData done [13:15:06]ExternCall_PrintAddStr [13:15:06]wPrintStart [13:15:06]Write to MH i2c: 01 00 00 B3 05 B8 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 07 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 07 00 B3 05 00 00 00 00 00 FF 0F CD [13:15:06]RasterBufferAndPrint [13:15:06]line Счет N : (1)979757 [13:15:06]line ИНН: 02508201610067 [13:15:06]line Контрольно-Кассовый Чек [13:15:06]line ПРОДАЖА [13:15:06]line ТРК (МРК, ГНК) : 52 [13:15:06]line Товар: 2710194210 [13:15:06]line ДТ-К-5 [13:15:06]line 8.240 * 72.90 [13:15:06]line = 600.70 [13:15:06]line НДС 12% НСП 1% [13:15:06]line > о реализуемом товаре [13:15:06]line ОКРУГЛЕНИЕ: -0.70 [13:15:06]line ИТОГО: 600.00 [13:15:06]line Внесено: 600.00 [13:15:06]line СДАЧА: 0.00 [13:15:06]line НСП 1% : 5.32 [13:15:06]line НДС 12% : 63.79 [13:15:06]line Наличными: 600.00 [13:15:06]line Безнал.: 0.00 [13:15:06]line Место: АЗС № 68 "Партнер Нефть" [13:15:06]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:15:06]line СНО: Общий режим [13:15:06]line Чек 167 04.06.2024 13:15 [13:15:06]line Смена: 368 ФФД: 1.0 [13:15:06]line ЗНМ: 0300000035 [13:15:06]line РНМ: 0000000000092720 [13:15:06]line Версия ККМ: 001 [13:15:06]line ФМ: 0000000000875057 [13:15:06]line ФД: 148828 [13:15:06]line ФПД: 132783417291019 [13:15:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131505&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148828&fm=132783417291019&tin=02508201610067®Number=0000000000092720&sum=60000 [13:15:06]OFD Sender: Processing packet 148828 [packets to send 100, broken 99] [13:15:06]ProducePacketName [13:15:06]name=ofd_packets/00148828 [13:15:06]OFD Sender: To server: pG, [13:15:06]CommunicateWithHost lk.salyk.kg:30040 [13:15:06]ConnectInit lk.salyk.kg [13:15:06]written 0, free lines is 4095 [13:15:06]Connected sock=10 [13:15:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 E2 25 04 01 32 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 59 13 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5C 45 02 00 35 04 06 00 78 C4 0C 6B 71 0B F7 1F 98 10 44 15 B0 7F [13:15:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 65 68 47 00 D1 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5C 45 02 00 F4 03 04 00 7D BA 5E 66 B6 04 01 00 00 F8 CC FA F0 73 3E 1F D7 [13:15:06]CommunicateWithHost err = 0 [13:15:06]CheckOFDResponse [13:15:06]1017 (14) - 77093643461234 [13:15:06]1041 (16) - 0000000000875057 [13:15:06]1040 (4) - 148828 [13:15:06]1012 (4) - 04.06.2024 06:55 [13:15:06]1206 (1) - 0 [13:15:06]OFD Sender: Remove packet 148828 [13:15:06]ProducePacketName [13:15:06]name=ofd_packets/00148828 [13:15:06]NVStorageDeleteData [13:15:06]Write to MH i2c: 01 00 00 DE 05 E3 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 07 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 07 00 DE 05 00 00 00 00 00 69 0C 5F [13:15:06]RasterBufferAndPrint [13:15:06]line [13:15:06]line [13:15:06]line [13:15:06]line [13:15:06]line [13:15:06]written 0, free lines is 3180 [13:15:06]MH_Cut [13:15:06]Write to MH i2c: D1 01 00 E5 05 01 BC [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: D1 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: D1 01 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: D1 01 00 E5 05 00 BB [13:15:06]Write to MH i2c: 01 00 00 E6 05 EB [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:07]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:08]*** Brake cut motor [13:15:08]Read from MH i2c: 01 [13:15:08]MH_I2C_Read... [13:15:08]*** Stop cut motor [13:15:08]*** Cut end [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 E6 05 00 00 00 00 00 FF 0F 00 [13:15:08]process_action close_receipt done [13:15:08]requested_data is exist [13:15:08]produce_requested_data [13:15:08]requested_item fm.sn is exist - process it [13:15:08]wFMCommunicate request_size=4 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 11 00 00 [13:15:08]Write to MH i2c: E2 08 00 E7 05 80 11 00 00 00 00 00 00 66 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 17 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 17 00 E7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B9 [13:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:15:08]wFMCommunicate OK [13:15:08]requested_item fd.num is exist - process it [13:15:08]SAM_PROTO_GetFieldsCounters [13:15:08]wFMCommunicate request_size=4 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 13 00 00 [13:15:08]Write to MH i2c: E2 08 00 E8 05 80 13 00 00 00 00 00 00 69 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 62 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 62 00 E8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5C 45 02 00 0E 04 04 00 70 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 8E [13:15:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5C 45 02 00 0E 04 04 00 70 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 [13:15:08]wFMCommunicate OK [13:15:08]SAM_PROTO_GetFieldsCounters done [13:15:08]requested_item shift.num is exist - process it [13:15:08]requested_item shift.opened is exist - process it [13:15:08]req_shift_opened [13:15:08]FM_GetShiftState [13:15:08]SAM_PROTO_GetShiftState [13:15:08]wFMCommunicate request_size=4 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 13 01 00 [13:15:08]Write to MH i2c: E2 08 00 E9 05 80 13 01 00 00 00 00 00 6B [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 0E 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 0E 00 E9 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2E [13:15:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:15:08]wFMCommunicate OK [13:15:08]SAM_PROTO_GetShiftState done [13:15:08]FM_GetShiftState done [13:15:08]req_shift_opened done [13:15:08]requested_item shift.open_date is exist - process it [13:15:08]req_shift_open_date [13:15:08]req_shift_open_date done [13:15:08]produce_requested_data done [13:15:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148828,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:15:08]process_action_free close_receipt [13:15:08]json_value_free [13:15:08]json_value_free done [13:15:08]process_json_proto returns [13:15:08]Send response to host [13:15:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148828,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:15:08]free response buf [13:15:08]execute_script done [13:15:08]execute_script returns [13:15:08]free content buf [13:15:08]Sock 7.Close socket [13:15:08]Sock 7.Thread stoped [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:09]accept exits with 9 [13:19:09]New connection [13:19:09]New thread 3067264356 created [13:19:09]Thread 3067407716 joined [13:19:09]Waiting for new connection... [13:19:09] Sock 9.Parse request [13:19:09]Sock 9.Check first char [13:19:09]Sock 9.First char is OK [13:19:09]request: POST /json_proto HTTP/1.0 [13:19:09]Method: POST [13:19:09]URL: /json_proto [13:19:09]Method is POST - this is cgi request [13:19:09]url: /json_proto [13:19:09]query_string will be loaded in cgi processing [13:19:09]execute_cgi json_proto POST (null) [13:19:09]execute_cgi path=json_proto method=POST [13:19:09]POST find Content-Length [13:19:09]Host: 172.17.38.4:8080 [13:19:09]Content-Length: 677 [13:19:09]Content-Type: application/json [13:19:09] [13:19:09]POST finish read [13:19:09]Found Content-Length = 677 [13:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:09]execute_script... [13:19: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)979758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:09]POST & json_proto [13:19:09]process_json_proto [13:19:09]json parsed OK: [13:19:09]protocol is kg_v1.0 [13:19:09]action value=close_receipt [13:19:09]process_action close_receipt [13:19:09]cmd_close_receipt [13:19:09]MH_GetDate [13:19:09]Write to MH i2c: F0 00 00 EA 05 DE [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: F0 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: F0 09 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: F0 09 00 EA 05 00 4E 14 5F 66 CC 51 87 64 16 [13:19:09]GetLastDocTimeStamp 1717506905 [13:19:09]current date 1717507150 [13:19:09]FM_GetShiftState [13:19:09]SAM_PROTO_GetShiftState [13:19:09]wFMCommunicate request_size=4 [13:19:09]MH_SAM_APDU [13:19:09]CAPDU: 80 13 01 00 [13:19:09]Write to MH i2c: E2 08 00 EB 05 80 13 01 00 00 00 00 00 6D [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:09]Read from MH i2c: E2 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 0E 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 0E 00 EB 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 30 [13:19:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:19:09]wFMCommunicate OK [13:19:09]SAM_PROTO_GetShiftState done [13:19:09]FM_GetShiftState done [13:19:09]opened in 1717460629 [13:19:09]opened+sec_in_day 1717547029 [13:19:09]quantity*price = 50041 [13:19:09]sum+1 = 50042 [13:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 168 04.06.2024 13:19 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148829 ФПД: 175596048036452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131910&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148829&fm=175596048036452&tin=02508201610067®Number=0000000000092720&sum=50000 [13:19:10]StoreToDocumentArchive [13:19:10]shift 368 fd 148829 [13:19:10]save to /storage/0368/doc_00148829 [13:19:10]save last doc name /storage/0368/doc_00148829 to /storage/kkm_last_doc_name [13:19:10]save OK [13:19:10]Clear old archive folders... [13:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:10]tlvbuf is 0046C510 [13:19:10]SAM_PROTO_ClearQueue [13:19:10]wFMCommunicate request_size=4 [13:19:10]MH_SAM_APDU [13:19:10]CAPDU: 80 09 00 00 [13:19:10]Write to MH i2c: E2 08 00 F8 05 80 09 00 00 00 00 00 00 6F [13:19:10]Write i2c OK [13:19:10]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 [13:19:11]MH_I2C_Read... [13:19:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:11]Read from MH i2c: E2 03 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [13:19:11]RAPDU: 90 00 [13:19:11]wFMCommunicate OK [13:19:11]SAM_PROTO_ClearQueue done [13:19:11]KKMCreateOFDPacket [13:19:11]OFDProtocolAddRootSTLVToBuf [13:19:11]FM_MakeSignedData [13:19:11]FM_MakeSignedData [13:19:11]SAM_PROTO_SignData [13:19:11]wFMCommunicate request_size=4 [13:19:11]MH_SAM_APDU [13:19:11]CAPDU: 80 0D 01 02 [13:19:11]Write to MH i2c: E2 08 00 F9 05 80 0D 01 02 00 00 00 00 77 [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:11]Read from MH i2c: E2 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 03 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [13:19:11]RAPDU: 90 00 [13:19:11]wFMCommunicate OK [13:19:11]wFMCommunicate request_size=255 [13:19:11]MH_SAM_APDU [13:19:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4E 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5D 45 02 00 35 04 06 00 9F [13:19:11]Write to MH i2c: E2 02 01 FA 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4E 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5D 45 02 00 35 04 06 00 9F 00 00 84 [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:11]Read from MH i2c: E2 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 03 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [13:19:11]RAPDU: 90 00 [13:19:11]wFMCommunicate OK [13:19:11]wFMCommunicate request_size=10 [13:19:11]MH_SAM_APDU [13:19:11]CAPDU: 80 0D 02 02 05 B4 24 11 32 64 [13:19:11]Write to MH i2c: E2 0D 00 FB 05 80 0D 02 02 05 00 B4 24 11 32 64 00 00 03 [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:11]Read from MH i2c: E2 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 03 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 03 00 FB 05 00 90 00 74 [13:19:11]RAPDU: 90 00 [13:19:11]wFMCommunicate OK [13:19:11]wFMCommunicate request_size=4 [13:19:11]MH_SAM_APDU [13:19:11]CAPDU: 80 0D 03 02 [13:19:11]Write to MH i2c: E2 08 00 FC 05 80 0D 03 02 00 00 00 00 7C [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:11]Read from MH i2c: E2 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 0B 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 0B 00 FC 05 00 13 E4 B4 1B 6F 29 49 75 90 00 99 [13:19:11]RAPDU: 13 E4 B4 1B 6F 29 49 75 90 00 [13:19:11]wFMCommunicate OK [13:19:11]SAM_PROTO_SignData done [13:19:11]FM_MakeSignedData done [13:19:11]CreateOFDProtocolMessage [13:19:11]wFMCommunicate request_size=4 [13:19:11]MH_SAM_APDU [13:19:11]CAPDU: 80 11 00 00 [13:19:11]Write to MH i2c: E2 08 00 FD 05 80 11 00 00 00 00 00 00 7C [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:11]Read from MH i2c: E2 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 17 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 17 00 FD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CF [13:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:19:11]wFMCommunicate OK [13:19:11]CreateOFDProtocolMessage done [13:19:11]OFDSenderStorePacket 148829 [13:19:11]StoreOFDPacket docnum=148829 [13:19:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 21 76 07 01 7B A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4E 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5D 45 02 00 35 04 06 00 9F B4 24 11 32 64 13 E4 B4 1B 6F 29 49 75 [13:19:11]CheckFolder [13:19:11]dirname=/storage/ofd_packets [13:19:11]CheckFolder done [13:19:11]ProducePacketName [13:19:11]name=ofd_packets/00148829 [13:19:11]NVStorageSaveData ofd_packets/00148829 [13:19:11]File name is /storage/ofd_packets/00148829 [13:19:11]Write 301 bytes [13:19:11]NVStorageSaveData done [13:19:11]OFDSenderStorePacket done [13:19:11]KKMCreateOFDPacket done [13:19:11]NVStorageSaveData kkm_last_timestamp [13:19:11]File name is /storage/kkm_last_timestamp [13:19:11]Write 4 bytes [13:19:11]NVStorageSaveData done [13:19:11]ExternCall_PrintAddStr [13:19:11]wPrintStart [13:19:11]Write to MH i2c: 01 00 00 FE 05 03 [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: 01 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: 01 07 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: 01 07 00 FE 05 00 00 00 00 00 FF 0F 18 [13:19:11]RasterBufferAndPrint [13:19:11]line Счет N : (1)979758 [13:19:11]line ИНН: 02508201610067 [13:19:11]line Контрольно-Кассовый Чек [13:19:11]line ПРОДАЖА [13:19:11]line ТРК (МРК, ГНК) : 12 [13:19:11]line Товар: 2710124130 [13:19:11]line Аи-92-К-5 [13:19:11]line 7.480 * 66.90 [13:19:11]line = 500.41 [13:19:11]line НДС 12% НСП 1% [13:19:11]line > о реализуемом товаре [13:19:11]line ОКРУГЛЕНИЕ: -0.41 [13:19:11]line ИТОГО: 500.00 [13:19:11]line Внесено: 500.00 [13:19:11]line СДАЧА: 0.00 [13:19:11]line НСП 1% : 4.43 [13:19:11]line НДС 12% : 53.14 [13:19:11]line Наличными: 500.00 [13:19:11]line Безнал.: 0.00 [13:19:11]line Место: АЗС № 68 "Партнер Нефть" [13:19:11]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:19:11]line СНО: Общий режим [13:19:11]line Чек 168 04.06.2024 13:19 [13:19:11]line Смена: 368 ФФД: 1.0 [13:19:11]line ЗНМ: 0300000035 [13:19:11]line РНМ: 0000000000092720 [13:19:11]line Версия ККМ: 001 [13:19:11]line ФМ: 0000000000875057 [13:19:11]line ФД: 148829 [13:19:11]line ФПД: 175596048036452 [13:19:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131910&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148829&fm=175596048036452&tin=02508201610067®Number=0000000000092720&sum=50000 [13:19:11]OFD Sender: Processing packet 148829 [packets to send 100, broken 99] [13:19:11]ProducePacketName [13:19:11]name=ofd_packets/00148829 [13:19:11]OFD Sender: To server: pG, [13:19:11]CommunicateWithHost lk.salyk.kg:30040 [13:19:11]ConnectInit lk.salyk.kg [13:19:11]written 0, free lines is 4095 [13:19:11]Connected sock=7 [13:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 21 76 07 01 7B A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4E 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5D 45 02 00 35 04 06 00 9F B4 24 11 32 64 13 E4 B4 1B 6F 29 49 75 [13:19:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 61 E1 47 00 3F B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5D 45 02 00 F4 03 04 00 72 BB 5E 66 B6 04 01 00 00 3C 38 0C 17 FB FC 49 C4 [13:19:12]CommunicateWithHost err = 0 [13:19:12]CheckOFDResponse [13:19:12]1017 (14) - 77093643461234 [13:19:12]1041 (16) - 0000000000875057 [13:19:12]1040 (4) - 148829 [13:19:12]1012 (4) - 04.06.2024 07:00 [13:19:12]1206 (1) - 0 [13:19:12]OFD Sender: Remove packet 148829 [13:19:12]ProducePacketName [13:19:12]name=ofd_packets/00148829 [13:19:12]NVStorageDeleteData [13:19:12]Write to MH i2c: 01 00 00 29 06 2F [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: 01 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: 01 07 00 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 65 0C A7 [13:19:12]RasterBufferAndPrint [13:19:12]line [13:19:12]line [13:19:12]line [13:19:12]line [13:19:12]line [13:19:12]written 0, free lines is 3177 [13:19:12]MH_Cut [13:19:12]Write to MH i2c: D1 01 00 30 06 01 08 [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: D1 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: D1 01 00 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: D1 01 00 30 06 00 07 [13:19:12]Write to MH i2c: 01 00 00 31 06 37 [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:12]OFD Sender: No OFD packet to send [13:19:13]*** Cut start [13:19:13]*** Partial cut [13:19:13]*** CUTSNS_PIN = 1 [13:19:13]*** CUTSNS_PIN = 0 [13:19:13]*** Brake cut motor [13:19:14]Read from MH i2c: 01 [13:19:14]MH_I2C_Read... [13:19:14]*** Stop cut motor [13:19:14]*** Cut end [13:19:14]Read from MH i2c: 01 07 00 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: 01 07 00 31 06 00 00 00 00 00 FF 0F 4C [13:19:14]process_action close_receipt done [13:19:14]requested_data is exist [13:19:14]produce_requested_data [13:19:14]requested_item fm.sn is exist - process it [13:19:14]wFMCommunicate request_size=4 [13:19:14]MH_SAM_APDU [13:19:14]CAPDU: 80 11 00 00 [13:19:14]Write to MH i2c: E2 08 00 32 06 80 11 00 00 00 00 00 00 B2 [13:19:14]Write i2c OK [13:19:14]MH_I2C_Read... [13:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:14]Read from MH i2c: E2 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: E2 17 00 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: E2 17 00 32 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 05 [13:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:19:14]wFMCommunicate OK [13:19:14]requested_item fd.num is exist - process it [13:19:14]SAM_PROTO_GetFieldsCounters [13:19:14]wFMCommunicate request_size=4 [13:19:14]MH_SAM_APDU [13:19:14]CAPDU: 80 13 00 00 [13:19:14]Write to MH i2c: E2 08 00 33 06 80 13 00 00 00 00 00 00 B5 [13:19:14]Write i2c OK [13:19:14]MH_I2C_Read... [13:19:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:14]Read from MH i2c: E2 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: E2 62 00 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: E2 62 00 33 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5D 45 02 00 0E 04 04 00 70 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 DE [13:19:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5D 45 02 00 0E 04 04 00 70 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 [13:19:14]wFMCommunicate OK [13:19:14]SAM_PROTO_GetFieldsCounters done [13:19:14]requested_item shift.num is exist - process it [13:19:14]requested_item shift.opened is exist - process it [13:19:14]req_shift_opened [13:19:14]FM_GetShiftState [13:19:14]SAM_PROTO_GetShiftState [13:19:14]wFMCommunicate request_size=4 [13:19:14]MH_SAM_APDU [13:19:14]CAPDU: 80 13 01 00 [13:19:14]Write to MH i2c: E2 08 00 34 06 80 13 01 00 00 00 00 00 B7 [13:19:14]Write i2c OK [13:19:14]MH_I2C_Read... [13:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:14]Read from MH i2c: E2 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: E2 0E 00 [13:19:14]MH_I2C_Read... [13:19:14]Read from MH i2c: E2 0E 00 34 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7A [13:19:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:19:14]wFMCommunicate OK [13:19:14]SAM_PROTO_GetShiftState done [13:19:14]FM_GetShiftState done [13:19:14]req_shift_opened done [13:19:14]requested_item shift.open_date is exist - process it [13:19:14]req_shift_open_date [13:19:14]req_shift_open_date done [13:19:14]produce_requested_data done [13:19:14]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148829,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:19:14]process_action_free close_receipt [13:19:14]json_value_free [13:19:14]json_value_free done [13:19:14]process_json_proto returns [13:19:14]Send response to host [13:19:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148829,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:19:14]free response buf [13:19:14]execute_script done [13:19:14]execute_script returns [13:19:14]free content buf [13:19:14]Sock 9.Close socket [13:19:14]Sock 9.Thread stoped [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:24]accept exits with 10 [13:19:24]New connection [13:19:24]New thread 3067407716 created [13:19:24]Thread 3067264356 joined [13:19:24]Waiting for new connection... [13:19:24] Sock 10.Parse request [13:19:24]Sock 10.Check first char [13:19:24]Sock 10.First char is OK [13:19:24]request: POST /json_proto HTTP/1.0 [13:19:24]Method: POST [13:19:24]URL: /json_proto [13:19:24]Method is POST - this is cgi request [13:19:24]url: /json_proto [13:19:24]query_string will be loaded in cgi processing [13:19:24]execute_cgi json_proto POST (null) [13:19:24]execute_cgi path=json_proto method=POST [13:19:24]POST find Content-Length [13:19:24]Host: 172.17.38.4:8080 [13:19:24]Content-Length: 682 [13:19:24]Content-Type: application/json [13:19:24] [13:19:24]POST finish read [13:19:24]Found Content-Length = 682 [13:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:24]execute_script... [13: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)979759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:24]POST & json_proto [13:19:24]process_json_proto [13:19:24]json parsed OK: [13:19:24]protocol is kg_v1.0 [13:19:24]action value=close_receipt [13:19:24]process_action close_receipt [13:19:24]cmd_close_receipt [13:19:24]MH_GetDate [13:19:24]Write to MH i2c: F0 00 00 35 06 2A [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: F0 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: F0 09 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: F0 09 00 35 06 00 5D 14 5F 66 CC 51 87 64 71 [13:19:24]GetLastDocTimeStamp 1717507150 [13:19:24]current date 1717507165 [13:19:24]FM_GetShiftState [13:19:24]SAM_PROTO_GetShiftState [13:19:24]wFMCommunicate request_size=4 [13:19:24]MH_SAM_APDU [13:19:24]CAPDU: 80 13 01 00 [13:19:24]Write to MH i2c: E2 08 00 36 06 80 13 01 00 00 00 00 00 B9 [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:24]Read from MH i2c: E2 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 0E 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 0E 00 36 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7C [13:19:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:19:24]wFMCommunicate OK [13:19:24]SAM_PROTO_GetShiftState done [13:19:24]FM_GetShiftState done [13:19:24]opened in 1717460629 [13:19:24]opened+sec_in_day 1717547029 [13:19:24]quantity*price = 100015 [13:19:24]sum+1 = 100017 [13:19: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 169 04.06.2024 13:19 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148830 ФПД: 112610816338839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131925&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148830&fm=112610816338839&tin=02508201610067®Number=0000000000092720&sum=100000 [13:19:25]StoreToDocumentArchive [13:19:25]shift 368 fd 148830 [13:19:25]save to /storage/0368/doc_00148830 [13:19:25]save last doc name /storage/0368/doc_00148830 to /storage/kkm_last_doc_name [13:19:25]save OK [13:19:25]Clear old archive folders... [13:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:25]tlvbuf is 0046D840 [13:19:25]SAM_PROTO_ClearQueue [13:19:25]wFMCommunicate request_size=4 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 09 00 00 [13:19:25]Write to MH i2c: E2 08 00 43 06 80 09 00 00 00 00 00 00 BB [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [13:19:25]RAPDU: 90 00 [13:19:25]wFMCommunicate OK [13:19:25]SAM_PROTO_ClearQueue done [13:19:25]KKMCreateOFDPacket [13:19:25]OFDProtocolAddRootSTLVToBuf [13:19:25]FM_MakeSignedData [13:19:25]FM_MakeSignedData [13:19:25]SAM_PROTO_SignData [13:19:25]wFMCommunicate request_size=4 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 0D 01 02 [13:19:25]Write to MH i2c: E2 08 00 44 06 80 0D 01 02 00 00 00 00 C3 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [13:19:25]RAPDU: 90 00 [13:19:25]wFMCommunicate OK [13:19:25]wFMCommunicate request_size=255 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 5D 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5E 45 02 00 35 04 06 00 66 [13:19:25]Write to MH i2c: E2 02 01 45 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A9 00 00 00 F4 03 04 00 5D 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5E 45 02 00 35 04 06 00 66 00 00 A2 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [13:19:25]RAPDU: 90 00 [13:19:25]wFMCommunicate OK [13:19:25]wFMCommunicate request_size=10 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 0D 02 02 05 6B 3F B4 AB 97 [13:19:25]Write to MH i2c: E2 0D 00 46 06 80 0D 02 02 05 00 6B 3F B4 AB 97 00 00 70 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [13:19:25]RAPDU: 90 00 [13:19:25]wFMCommunicate OK [13:19:25]wFMCommunicate request_size=4 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 0D 03 02 [13:19:25]Write to MH i2c: E2 08 00 47 06 80 0D 03 02 00 00 00 00 C8 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 0B 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 0B 00 47 06 00 F8 F2 B1 6D 10 E1 D5 BB 90 00 52 [13:19:25]RAPDU: F8 F2 B1 6D 10 E1 D5 BB 90 00 [13:19:25]wFMCommunicate OK [13:19:25]SAM_PROTO_SignData done [13:19:25]FM_MakeSignedData done [13:19:25]CreateOFDProtocolMessage [13:19:25]wFMCommunicate request_size=4 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 11 00 00 [13:19:25]Write to MH i2c: E2 08 00 48 06 80 11 00 00 00 00 00 00 C8 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 17 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 17 00 48 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1B [13:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:19:25]wFMCommunicate OK [13:19:25]CreateOFDProtocolMessage done [13:19:25]OFDSenderStorePacket 148830 [13:19:25]StoreOFDPacket docnum=148830 [13:19:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CB B4 07 01 70 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A9 00 00 00 F4 03 04 00 5D 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5E 45 02 00 35 04 06 00 66 6B 3F B4 AB 97 F8 F2 B1 6D 10 E1 D5 BB [13:19:25]CheckFolder [13:19:25]dirname=/storage/ofd_packets [13:19:25]CheckFolder done [13:19:25]ProducePacketName [13:19:25]name=ofd_packets/00148830 [13:19:25]NVStorageSaveData ofd_packets/00148830 [13:19:25]File name is /storage/ofd_packets/00148830 [13:19:25]Write 301 bytes [13:19:25]NVStorageSaveData done [13:19:25]OFDSenderStorePacket done [13:19:25]KKMCreateOFDPacket done [13:19:25]NVStorageSaveData kkm_last_timestamp [13:19:25]File name is /storage/kkm_last_timestamp [13:19:25]Write 4 bytes [13:19:25]NVStorageSaveData done [13:19:25]ExternCall_PrintAddStr [13:19:25]wPrintStart [13:19:25]Write to MH i2c: 01 00 00 49 06 4F [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: 01 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: 01 07 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: 01 07 00 49 06 00 00 00 00 00 FF 0F 64 [13:19:26]RasterBufferAndPrint [13:19:26]line Счет N : (1)979759 [13:19:26]line ИНН: 02508201610067 [13:19:26]line Контрольно-Кассовый Чек [13:19:26]line ПРОДАЖА [13:19:26]line ТРК (МРК, ГНК) : 41 [13:19:26]line Товар: 2710124130 [13:19:26]line Аи-92-К-5 [13:19:26]line 14.950 * 66.90 [13:19:26]line = 1000.16 [13:19:26]line НДС 12% НСП 1% [13:19:26]line > о реализуемом товаре [13:19:26]line ОКРУГЛЕНИЕ: -0.16 [13:19:26]line ИТОГО: 1000.00 [13:19:26]line Внесено: 1000.00 [13:19:26]line СДАЧА: 0.00 [13:19:26]line НСП 1% : 8.85 [13:19:26]line НДС 12% : 106.21 [13:19:26]line Наличными: 1000.00 [13:19:26]line Безнал.: 0.00 [13:19:26]line Место: АЗС № 68 "Партнер Нефть" [13:19:26]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:19:26]line СНО: Общий режим [13:19:26]line Чек 169 04.06.2024 13:19 [13:19:26]line Смена: 368 ФФД: 1.0 [13:19:26]line ЗНМ: 0300000035 [13:19:26]line РНМ: 0000000000092720 [13:19:26]line Версия ККМ: 001 [13:19:26]line ФМ: 0000000000875057 [13:19:26]line ФД: 148830 [13:19:26]line ФПД: 112610816338839 [13:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131925&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148830&fm=112610816338839&tin=02508201610067®Number=0000000000092720&sum=100000 [13:19:26]OFD Sender: Processing packet 148830 [packets to send 100, broken 99] [13:19:26]ProducePacketName [13:19:26]name=ofd_packets/00148830 [13:19:26]OFD Sender: To server: pG, [13:19:26]CommunicateWithHost lk.salyk.kg:30040 [13:19:26]ConnectInit lk.salyk.kg [13:19:26]written 0, free lines is 4095 [13:19:26]Connected sock=9 [13:19:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CB B4 07 01 70 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A9 00 00 00 F4 03 04 00 5D 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5E 45 02 00 35 04 06 00 66 6B 3F B4 AB 97 F8 F2 B1 6D 10 E1 D5 BB [13:19:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C8 09 47 00 28 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 38 37 35 30 35 37 10 04 04 00 5E 45 02 00 F4 03 04 00 81 BB 5E 66 B6 04 01 00 00 94 1E 65 05 B5 21 E0 84 [13:19:26]CommunicateWithHost err = 0 [13:19:26]CheckOFDResponse [13:19:26]1017 (14) - 77093643461234 [13:19:26]1041 (16) - 0000000000875057 [13:19:26]1040 (4) - 148830 [13:19:26]1012 (4) - 04.06.2024 07:00 [13:19:26]1206 (1) - 0 [13:19:26]OFD Sender: Remove packet 148830 [13:19:26]ProducePacketName [13:19:26]name=ofd_packets/00148830 [13:19:26]NVStorageDeleteData [13:19:26]Write to MH i2c: 01 00 00 74 06 7A [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: 01 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: 01 07 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 66 0C F3 [13:19:26]RasterBufferAndPrint [13:19:26]line [13:19:26]line [13:19:26]line [13:19:26]line [13:19:26]line [13:19:26]written 0, free lines is 3179 [13:19:26]MH_Cut [13:19:26]Write to MH i2c: D1 01 00 7B 06 01 53 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: D1 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: D1 01 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: D1 01 00 7B 06 00 52 [13:19:26]Write to MH i2c: 01 00 00 7C 06 82 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:27]OFD Sender: No OFD packet to send [13:19:28]*** Cut start [13:19:28]*** Partial cut [13:19:28]*** CUTSNS_PIN = 1 [13:19:28]*** CUTSNS_PIN = 0 [13:19:28]*** Brake cut motor [13:19:28]Read from MH i2c: 01 [13:19:28]MH_I2C_Read... [13:19:28]*** Stop cut motor [13:19:28]*** Cut end [13:19:28]Read from MH i2c: 01 07 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 07 00 7C 06 00 00 00 00 00 FF 0F 97 [13:19:28]process_action close_receipt done [13:19:28]requested_data is exist [13:19:28]produce_requested_data [13:19:28]requested_item fm.sn is exist - process it [13:19:28]wFMCommunicate request_size=4 [13:19:28]MH_SAM_APDU [13:19:28]CAPDU: 80 11 00 00 [13:19:28]Write to MH i2c: E2 08 00 7D 06 80 11 00 00 00 00 00 00 FD [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:28]Read from MH i2c: E2 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 17 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 17 00 7D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 50 [13:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:19:28]wFMCommunicate OK [13:19:28]requested_item fd.num is exist - process it [13:19:28]SAM_PROTO_GetFieldsCounters [13:19:28]wFMCommunicate request_size=4 [13:19:28]MH_SAM_APDU [13:19:28]CAPDU: 80 13 00 00 [13:19:28]Write to MH i2c: E2 08 00 7E 06 80 13 00 00 00 00 00 00 00 [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:28]Read from MH i2c: E2 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 62 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 62 00 7E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5E 45 02 00 0E 04 04 00 70 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 2D [13:19:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5E 45 02 00 0E 04 04 00 70 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 [13:19:28]wFMCommunicate OK [13:19:28]SAM_PROTO_GetFieldsCounters done [13:19:28]requested_item shift.num is exist - process it [13:19:28]requested_item shift.opened is exist - process it [13:19:28]req_shift_opened [13:19:28]FM_GetShiftState [13:19:28]SAM_PROTO_GetShiftState [13:19:28]wFMCommunicate request_size=4 [13:19:28]MH_SAM_APDU [13:19:28]CAPDU: 80 13 01 00 [13:19:28]Write to MH i2c: E2 08 00 7F 06 80 13 01 00 00 00 00 00 02 [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 [13:19:28]MH_I2C_Read... [13:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:28]Read from MH i2c: E2 0E 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: E2 0E 00 7F 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C5 [13:19:28]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:19:28]wFMCommunicate OK [13:19:28]SAM_PROTO_GetShiftState done [13:19:28]FM_GetShiftState done [13:19:28]req_shift_opened done [13:19:28]requested_item shift.open_date is exist - process it [13:19:28]req_shift_open_date [13:19:28]req_shift_open_date done [13:19:28]produce_requested_data done [13:19:28]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148830,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:19:28]process_action_free close_receipt [13:19:28]json_value_free [13:19:28]json_value_free done [13:19:28]process_json_proto returns [13:19:28]Send response to host [13:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148830,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:19:28]free response buf [13:19:28]execute_script done [13:19:28]execute_script returns [13:19:28]free content buf [13:19:28]Sock 10.Close socket [13:19:28]Sock 10.Thread stoped [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:20:59]accept exits with 7 [13:20:59]New connection [13:20:59]New thread 3067264356 created [13:20:59]Thread 3067407716 joined [13:20:59]Waiting for new connection... [13:20:59] Sock 7.Parse request [13:20:59]Sock 7.Check first char [13:20:59]Sock 7.First char is OK [13:20:59]request: POST /json_proto HTTP/1.0 [13:20:59]Method: POST [13:20:59]URL: /json_proto [13:20:59]Method is POST - this is cgi request [13:20:59]url: /json_proto [13:20:59]query_string will be loaded in cgi processing [13:20:59]execute_cgi json_proto POST (null) [13:20:59]execute_cgi path=json_proto method=POST [13:20:59]POST find Content-Length [13:20:59]Host: 172.17.38.4:8080 [13:20:59]Content-Length: 674 [13:20:59]Content-Type: application/json [13:20:59] [13:20:59]POST finish read [13:20:59]Found Content-Length = 674 [13:20:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [13:20:59]execute_script... [13:20: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)979760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [13:20:59]POST & json_proto [13:20:59]process_json_proto [13:20:59]json parsed OK: [13:20:59]protocol is kg_v1.0 [13:20:59]action value=close_receipt [13:20:59]process_action close_receipt [13:20:59]cmd_close_receipt [13:20:59]MH_GetDate [13:20:59]Write to MH i2c: F0 00 00 80 06 75 [13:20:59]Write i2c OK [13:20:59]MH_I2C_Read... [13:20:59]Read from MH i2c: F0 [13:20:59]MH_I2C_Read... [13:20:59]Read from MH i2c: F0 09 00 [13:20:59]MH_I2C_Read... [13:20:59]Read from MH i2c: F0 09 00 80 06 00 BC 14 5F 66 CC 51 87 64 1B [13:20:59]GetLastDocTimeStamp 1717507165 [13:20:59]current date 1717507260 [13:20:59]FM_GetShiftState [13:20:59]SAM_PROTO_GetShiftState [13:20:59]wFMCommunicate request_size=4 [13:20:59]MH_SAM_APDU [13:20:59]CAPDU: 80 13 01 00 [13:20:59]Write to MH i2c: E2 08 00 81 06 80 13 01 00 00 00 00 00 04 [13:20:59]Write i2c OK [13:20:59]MH_I2C_Read... [13:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:59]Read from MH i2c: E2 [13:20:59]MH_I2C_Read... [13:20:59]Read from MH i2c: E2 0E 00 [13:20:59]MH_I2C_Read... [13:20:59]Read from MH i2c: E2 0E 00 81 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C7 [13:20:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:20:59]wFMCommunicate OK [13:20:59]SAM_PROTO_GetShiftState done [13:20:59]FM_GetShiftState done [13:20:59]opened in 1717460629 [13:20:59]opened+sec_in_day 1717547029 [13:20:59]quantity*price = 50009 [13:20:59]sum+1 = 50010 [13:20:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 170 04.06.2024 13:21 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148831 ФПД: 101463653153012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132100&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148831&fm=101463653153012&tin=02508201610067®Number=0000000000092720&sum=50000 [13:21:00]StoreToDocumentArchive [13:21:00]shift 368 fd 148831 [13:21:00]save to /storage/0368/doc_00148831 [13:21:00]save last doc name /storage/0368/doc_00148831 to /storage/kkm_last_doc_name [13:21:00]save OK [13:21:00]Clear old archive folders... [13:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:21:01]tlvbuf is 004ADC10 [13:21:01]SAM_PROTO_ClearQueue [13:21:01]wFMCommunicate request_size=4 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 09 00 00 [13:21:01]Write to MH i2c: E2 08 00 8E 06 80 09 00 00 00 00 00 00 06 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [13:21:01]RAPDU: 90 00 [13:21:01]wFMCommunicate OK [13:21:01]SAM_PROTO_ClearQueue done [13:21:01]KKMCreateOFDPacket [13:21:01]OFDProtocolAddRootSTLVToBuf [13:21:01]FM_MakeSignedData [13:21:01]FM_MakeSignedData [13:21:01]SAM_PROTO_SignData [13:21:01]wFMCommunicate request_size=4 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 0D 01 02 [13:21:01]Write to MH i2c: E2 08 00 8F 06 80 0D 01 02 00 00 00 00 0E [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [13:21:01]RAPDU: 90 00 [13:21:01]wFMCommunicate OK [13:21:01]wFMCommunicate request_size=255 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 AA 00 00 00 F4 03 04 00 BC 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5F 45 02 00 35 04 06 00 5C 47 D9 00 [13:21:01]Write to MH i2c: E2 02 01 90 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AA 00 00 00 F4 03 04 00 BC 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5F 45 02 00 35 04 06 00 5C 47 D9 00 00 00 85 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [13:21:01]RAPDU: 90 00 [13:21:01]wFMCommunicate OK [13:21:01]wFMCommunicate request_size=7 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 0D 02 02 02 F8 F4 [13:21:01]Write to MH i2c: E2 0A 00 91 06 80 0D 02 02 02 00 F8 F4 00 00 01 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [13:21:01]RAPDU: 90 00 [13:21:01]wFMCommunicate OK [13:21:01]wFMCommunicate request_size=4 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 0D 03 02 [13:21:01]Write to MH i2c: E2 08 00 92 06 80 0D 03 02 00 00 00 00 13 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 0B 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 0B 00 92 06 00 0F 2D FF 13 76 DE FE 09 90 00 BD [13:21:01]RAPDU: 0F 2D FF 13 76 DE FE 09 90 00 [13:21:01]wFMCommunicate OK [13:21:01]SAM_PROTO_SignData done [13:21:01]FM_MakeSignedData done [13:21:01]CreateOFDProtocolMessage [13:21:01]wFMCommunicate request_size=4 [13:21:01]MH_SAM_APDU [13:21:01]CAPDU: 80 11 00 00 [13:21:01]Write to MH i2c: E2 08 00 93 06 80 11 00 00 00 00 00 00 13 [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:01]Read from MH i2c: E2 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 17 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: E2 17 00 93 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 66 [13:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:21:01]wFMCommunicate OK [13:21:01]CreateOFDProtocolMessage done [13:21:01]OFDSenderStorePacket 148831 [13:21:01]StoreOFDPacket docnum=148831 [13:21:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 C5 3B 04 01 75 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AA 00 00 00 F4 03 04 00 BC 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5F 45 02 00 35 04 06 00 5C 47 D9 00 F8 F4 0F 2D FF 13 76 DE FE 09 [13:21:01]CheckFolder [13:21:01]dirname=/storage/ofd_packets [13:21:01]CheckFolder done [13:21:01]ProducePacketName [13:21:01]name=ofd_packets/00148831 [13:21:01]NVStorageSaveData ofd_packets/00148831 [13:21:01]File name is /storage/ofd_packets/00148831 [13:21:01]Write 298 bytes [13:21:01]NVStorageSaveData done [13:21:01]OFDSenderStorePacket done [13:21:01]KKMCreateOFDPacket done [13:21:01]NVStorageSaveData kkm_last_timestamp [13:21:01]File name is /storage/kkm_last_timestamp [13:21:01]Write 4 bytes [13:21:01]NVStorageSaveData done [13:21:01]ExternCall_PrintAddStr [13:21:01]wPrintStart [13:21:01]Write to MH i2c: 01 00 00 94 06 9A [13:21:01]Write i2c OK [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: 01 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: 01 07 00 [13:21:01]MH_I2C_Read... [13:21:01]Read from MH i2c: 01 07 00 94 06 00 00 00 00 00 FF 0F AF [13:21:01]RasterBufferAndPrint [13:21:01]line Счет N : (1)979760 [13:21:01]line ИНН: 02508201610067 [13:21:01]line Контрольно-Кассовый Чек [13:21:01]line ПРОДАЖА [13:21:01]line ТРК (МРК, ГНК) : 51 [13:21:01]line Товар: 2710194210 [13:21:01]line ДТ-К-5 [13:21:01]line 6.860 * 72.90 [13:21:01]line = 500.09 [13:21:01]line НДС 12% НСП 1% [13:21:01]line > о реализуемом товаре [13:21:01]line ОКРУГЛЕНИЕ: -0.09 [13:21:01]line ИТОГО: 500.00 [13:21:01]line Внесено: 500.00 [13:21:01]line СДАЧА: 0.00 [13:21:01]line НСП 1% : 4.43 [13:21:01]line НДС 12% : 53.11 [13:21:01]line Наличными: 500.00 [13:21:01]line Безнал.: 0.00 [13:21:01]line Место: АЗС № 68 "Партнер Нефть" [13:21:01]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:21:01]line СНО: Общий режим [13:21:01]line Чек 170 04.06.2024 13:21 [13:21:01]line Смена: 368 ФФД: 1.0 [13:21:01]line ЗНМ: 0300000035 [13:21:01]line РНМ: 0000000000092720 [13:21:01]line Версия ККМ: 001 [13:21:01]line ФМ: 0000000000875057 [13:21:01]line ФД: 148831 [13:21:01]line ФПД: 101463653153012 [13:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132100&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148831&fm=101463653153012&tin=02508201610067®Number=0000000000092720&sum=50000 [13:21:01]OFD Sender: Processing packet 148831 [packets to send 100, broken 99] [13:21:01]ProducePacketName [13:21:01]name=ofd_packets/00148831 [13:21:01]OFD Sender: To server: pG, [13:21:01]CommunicateWithHost lk.salyk.kg:30040 [13:21:01]ConnectInit lk.salyk.kg [13:21:01]written 0, free lines is 4095 [13:21:01]Connected sock=10 [13:21:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 C5 3B 04 01 75 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AA 00 00 00 F4 03 04 00 BC 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5F 45 02 00 35 04 06 00 5C 47 D9 00 F8 F4 0F 2D FF 13 76 DE FE 09 [13:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 14 25 47 00 45 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 5F 45 02 00 F4 03 04 00 E0 BB 5E 66 B6 04 01 00 00 37 7D BC AF 35 59 AF 82 [13:21:02]CommunicateWithHost err = 0 [13:21:02]CheckOFDResponse [13:21:02]1017 (14) - 77093643461234 [13:21:02]1041 (16) - 0000000000875057 [13:21:02]1040 (4) - 148831 [13:21:02]1012 (4) - 04.06.2024 07:01 [13:21:02]1206 (1) - 0 [13:21:02]OFD Sender: Remove packet 148831 [13:21:02]ProducePacketName [13:21:02]name=ofd_packets/00148831 [13:21:02]NVStorageDeleteData [13:21:02]Write to MH i2c: 01 00 00 BF 06 C5 [13:21:02]Write i2c OK [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: 01 [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: 01 07 00 [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: 01 07 00 BF 06 00 00 00 00 00 5F 0C 37 [13:21:02]RasterBufferAndPrint [13:21:02]line [13:21:02]line [13:21:02]line [13:21:02]line [13:21:02]line [13:21:02]written 0, free lines is 3170 [13:21:02]MH_Cut [13:21:02]Write to MH i2c: D1 01 00 C6 06 01 9E [13:21:02]Write i2c OK [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: D1 [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: D1 01 00 [13:21:02]MH_I2C_Read... [13:21:02]Read from MH i2c: D1 01 00 C6 06 00 9D [13:21:02]Write to MH i2c: 01 00 00 C7 06 CD [13:21:02]Write i2c OK [13:21:02]MH_I2C_Read... [13:21:02]OFD Sender: No OFD packet to send [13:21:03]*** Cut start [13:21:03]*** Partial cut [13:21:03]*** CUTSNS_PIN = 1 [13:21:03]*** CUTSNS_PIN = 0 [13:21:03]*** Brake cut motor [13:21:04]Read from MH i2c: 01 [13:21:04]*** Stop cut motor [13:21:04]*** Cut end [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: 01 07 00 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: 01 07 00 C7 06 00 00 00 00 00 FF 0F E2 [13:21:04]process_action close_receipt done [13:21:04]requested_data is exist [13:21:04]produce_requested_data [13:21:04]requested_item fm.sn is exist - process it [13:21:04]wFMCommunicate request_size=4 [13:21:04]MH_SAM_APDU [13:21:04]CAPDU: 80 11 00 00 [13:21:04]Write to MH i2c: E2 08 00 C8 06 80 11 00 00 00 00 00 00 48 [13:21:04]Write i2c OK [13:21:04]MH_I2C_Read... [13:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:04]Read from MH i2c: E2 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 17 00 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 17 00 C8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9B [13:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:21:04]wFMCommunicate OK [13:21:04]requested_item fd.num is exist - process it [13:21:04]SAM_PROTO_GetFieldsCounters [13:21:04]wFMCommunicate request_size=4 [13:21:04]MH_SAM_APDU [13:21:04]CAPDU: 80 13 00 00 [13:21:04]Write to MH i2c: E2 08 00 C9 06 80 13 00 00 00 00 00 00 4B [13:21:04]Write i2c OK [13:21:04]MH_I2C_Read... [13:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:04]Read from MH i2c: E2 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 62 00 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 62 00 C9 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5F 45 02 00 0E 04 04 00 70 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 7C [13:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 5F 45 02 00 0E 04 04 00 70 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 [13:21:04]wFMCommunicate OK [13:21:04]SAM_PROTO_GetFieldsCounters done [13:21:04]requested_item shift.num is exist - process it [13:21:04]requested_item shift.opened is exist - process it [13:21:04]req_shift_opened [13:21:04]FM_GetShiftState [13:21:04]SAM_PROTO_GetShiftState [13:21:04]wFMCommunicate request_size=4 [13:21:04]MH_SAM_APDU [13:21:04]CAPDU: 80 13 01 00 [13:21:04]Write to MH i2c: E2 08 00 CA 06 80 13 01 00 00 00 00 00 4D [13:21:04]Write i2c OK [13:21:04]MH_I2C_Read... [13:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:04]Read from MH i2c: E2 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 0E 00 [13:21:04]MH_I2C_Read... [13:21:04]Read from MH i2c: E2 0E 00 CA 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 10 [13:21:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:21:04]wFMCommunicate OK [13:21:04]SAM_PROTO_GetShiftState done [13:21:04]FM_GetShiftState done [13:21:04]req_shift_opened done [13:21:04]requested_item shift.open_date is exist - process it [13:21:04]req_shift_open_date [13:21:04]req_shift_open_date done [13:21:04]produce_requested_data done [13:21:04]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148831,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:21:04]process_action_free close_receipt [13:21:04]json_value_free [13:21:04]json_value_free done [13:21:04]process_json_proto returns [13:21:04]Send response to host [13:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148831,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:21:04]free response buf [13:21:04]execute_script done [13:21:04]execute_script returns [13:21:04]free content buf [13:21:04]Sock 7.Close socket [13:21:04]Sock 7.Thread stoped [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:30]accept exits with 9 [13:21:30]New connection [13:21:30]New thread 3067407716 created [13:21:30]Thread 3067264356 joined [13:21:30]Waiting for new connection... [13:21:30] Sock 9.Parse request [13:21:30]Sock 9.Check first char [13:21:30]Sock 9.First char is OK [13:21:30]request: POST /json_proto HTTP/1.0 [13:21:30]Method: POST [13:21:30]URL: /json_proto [13:21:30]Method is POST - this is cgi request [13:21:30]url: /json_proto [13:21:30]query_string will be loaded in cgi processing [13:21:30]execute_cgi json_proto POST (null) [13:21:30]execute_cgi path=json_proto method=POST [13:21:30]POST find Content-Length [13:21:30]Host: 172.17.38.4:8080 [13:21:30]Content-Length: 677 [13:21:30]Content-Type: application/json [13:21:30] [13:21:30]POST finish read [13:21:30]Found Content-Length = 677 [13:21:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "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:21:30]execute_script... [13: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)979761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "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:21:30]POST & json_proto [13:21:30]process_json_proto [13:21:30]json parsed OK: [13:21:30]protocol is kg_v1.0 [13:21:30]action value=close_receipt [13:21:30]process_action close_receipt [13:21:30]cmd_close_receipt [13:21:30]MH_GetDate [13:21:30]Write to MH i2c: F0 00 00 CB 06 C0 [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: F0 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: F0 09 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: F0 09 00 CB 06 00 DB 14 5F 66 CC 51 87 64 85 [13:21:30]GetLastDocTimeStamp 1717507260 [13:21:30]current date 1717507291 [13:21:30]FM_GetShiftState [13:21:30]SAM_PROTO_GetShiftState [13:21:30]wFMCommunicate request_size=4 [13:21:30]MH_SAM_APDU [13:21:30]CAPDU: 80 13 01 00 [13:21:30]Write to MH i2c: E2 08 00 CC 06 80 13 01 00 00 00 00 00 4F [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:30]Read from MH i2c: E2 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 0E 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 0E 00 CC 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 12 [13:21:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:21:30]wFMCommunicate OK [13:21:30]SAM_PROTO_GetShiftState done [13:21:30]FM_GetShiftState done [13:21:30]opened in 1717460629 [13:21:30]opened+sec_in_day 1717547029 [13:21:30]quantity*price = 50030 [13:21:30]sum+1 = 50031 [13:21:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 171 04.06.2024 13:21 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148832 ФПД: 59290496272479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132131&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148832&fm=59290496272479&tin=02508201610067®Number=0000000000092720&sum=50000 [13:21:32]StoreToDocumentArchive [13:21:32]shift 368 fd 148832 [13:21:32]save to /storage/0368/doc_00148832 [13:21:32]save last doc name /storage/0368/doc_00148832 to /storage/kkm_last_doc_name [13:21:32]save OK [13:21:32]Clear old archive folders... [13:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:32]tlvbuf is B6FC7CA0 [13:21:32]SAM_PROTO_ClearQueue [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 09 00 00 [13:21:32]Write to MH i2c: E2 08 00 D9 06 80 09 00 00 00 00 00 00 51 [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 03 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 03 00 D9 06 00 90 00 53 [13:21:32]RAPDU: 90 00 [13:21:32]wFMCommunicate OK [13:21:32]SAM_PROTO_ClearQueue done [13:21:32]KKMCreateOFDPacket [13:21:32]OFDProtocolAddRootSTLVToBuf [13:21:32]FM_MakeSignedData [13:21:32]FM_MakeSignedData [13:21:32]SAM_PROTO_SignData [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 0D 01 02 [13:21:32]Write to MH i2c: E2 08 00 DA 06 80 0D 01 02 00 00 00 00 59 [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 03 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [13:21:32]RAPDU: 90 00 [13:21:32]wFMCommunicate OK [13:21:32]wFMCommunicate request_size=255 [13:21:32]MH_SAM_APDU [13:21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 DB 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 60 45 02 00 35 04 06 00 35 [13:21:32]Write to MH i2c: E2 02 01 DB 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 DB 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 60 45 02 00 35 04 06 00 35 00 00 7C [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 03 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [13:21:32]RAPDU: 90 00 [13:21:32]wFMCommunicate OK [13:21:32]wFMCommunicate request_size=10 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 0D 02 02 05 EC A4 F8 08 5F [13:21:32]Write to MH i2c: E2 0D 00 DC 06 80 0D 02 02 05 00 EC A4 F8 08 5F 00 00 55 [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 03 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [13:21:32]RAPDU: 90 00 [13:21:32]wFMCommunicate OK [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 0D 03 02 [13:21:32]Write to MH i2c: E2 08 00 DD 06 80 0D 03 02 00 00 00 00 5E [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 0B 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 0B 00 DD 06 00 4F 52 8C 81 AF 8B F9 23 90 00 63 [13:21:32]RAPDU: 4F 52 8C 81 AF 8B F9 23 90 00 [13:21:32]wFMCommunicate OK [13:21:32]SAM_PROTO_SignData done [13:21:32]FM_MakeSignedData done [13:21:32]CreateOFDProtocolMessage [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 11 00 00 [13:21:32]Write to MH i2c: E2 08 00 DE 06 80 11 00 00 00 00 00 00 5E [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 17 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 17 00 DE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B1 [13:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:21:32]wFMCommunicate OK [13:21:32]CreateOFDProtocolMessage done [13:21:32]OFDSenderStorePacket 148832 [13:21:32]StoreOFDPacket docnum=148832 [13:21:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1D 0B 07 01 01 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 DB 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 60 45 02 00 35 04 06 00 35 EC A4 F8 08 5F 4F 52 8C 81 AF 8B F9 23 [13:21:32]CheckFolder [13:21:32]dirname=/storage/ofd_packets [13:21:32]CheckFolder done [13:21:32]ProducePacketName [13:21:32]name=ofd_packets/00148832 [13:21:32]NVStorageSaveData ofd_packets/00148832 [13:21:32]File name is /storage/ofd_packets/00148832 [13:21:32]Write 301 bytes [13:21:32]NVStorageSaveData done [13:21:32]OFDSenderStorePacket done [13:21:32]KKMCreateOFDPacket done [13:21:32]NVStorageSaveData kkm_last_timestamp [13:21:32]File name is /storage/kkm_last_timestamp [13:21:32]Write 4 bytes [13:21:32]NVStorageSaveData done [13:21:32]ExternCall_PrintAddStr [13:21:32]wPrintStart [13:21:32]Write to MH i2c: 01 00 00 DF 06 E5 [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: 01 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: 01 07 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: 01 07 00 DF 06 00 00 00 00 00 FF 0F FA [13:21:32]RasterBufferAndPrint [13:21:32]line Счет N : (1)979761 [13:21:32]line ИНН: 02508201610067 [13:21:32]line Контрольно-Кассовый Чек [13:21:32]line ПРОДАЖА [13:21:32]line ТРК (МРК, ГНК) : 42 [13:21:32]line Товар: 2710124500 [13:21:32]line Аи-95-К-5 [13:21:32]line 6.770 * 73.90 [13:21:32]line = 500.30 [13:21:32]line НДС 12% НСП 1% [13:21:32]line > о реализуемом товаре [13:21:32]line ОКРУГЛЕНИЕ: -0.30 [13:21:32]line ИТОГО: 500.00 [13:21:32]line Внесено: 500.00 [13:21:32]line СДАЧА: 0.00 [13:21:32]line НСП 1% : 4.43 [13:21:32]line НДС 12% : 53.13 [13:21:32]line Наличными: 500.00 [13:21:32]line Безнал.: 0.00 [13:21:32]line Место: АЗС № 68 "Партнер Нефть" [13:21:32]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:21:32]line СНО: Общий режим [13:21:32]line Чек 171 04.06.2024 13:21 [13:21:32]line Смена: 368 ФФД: 1.0 [13:21:32]line ЗНМ: 0300000035 [13:21:32]line РНМ: 0000000000092720 [13:21:32]line Версия ККМ: 001 [13:21:32]line ФМ: 0000000000875057 [13:21:32]line ФД: 148832 [13:21:32]line ФПД: 59290496272479 [13:21:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132131&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148832&fm=59290496272479&tin=02508201610067®Number=0000000000092720&sum=50000 [13:21:32]OFD Sender: Processing packet 148832 [packets to send 100, broken 99] [13:21:32]ProducePacketName [13:21:32]name=ofd_packets/00148832 [13:21:32]OFD Sender: To server: pG, [13:21:32]CommunicateWithHost lk.salyk.kg:30040 [13:21:32]ConnectInit lk.salyk.kg [13:21:32]written 0, free lines is 4095 [13:21:33]Connected sock=10 [13:21:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1D 0B 07 01 01 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 DB 14 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 60 45 02 00 35 04 06 00 35 EC A4 F8 08 5F 4F 52 8C 81 AF 8B F9 23 [13:21:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 2B 9B 47 00 BB CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 60 45 02 00 F4 03 04 00 FF BB 5E 66 B6 04 01 00 00 DF DF F7 B8 25 96 E3 92 [13:21:33]CommunicateWithHost err = 0 [13:21:33]CheckOFDResponse [13:21:33]1017 (14) - 77093643461234 [13:21:33]1041 (16) - 0000000000875057 [13:21:33]1040 (4) - 148832 [13:21:33]1012 (4) - 04.06.2024 07:02 [13:21:33]1206 (1) - 0 [13:21:33]OFD Sender: Remove packet 148832 [13:21:33]ProducePacketName [13:21:33]name=ofd_packets/00148832 [13:21:33]NVStorageDeleteData [13:21:33]Write to MH i2c: 01 00 00 0A 07 11 [13:21:33]Write i2c OK [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: 01 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: 01 07 00 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 66 0C 8A [13:21:33]RasterBufferAndPrint [13:21:33]line [13:21:33]line [13:21:33]line [13:21:33]line [13:21:33]line [13:21:33]written 0, free lines is 3178 [13:21:33]MH_Cut [13:21:33]Write to MH i2c: D1 01 00 11 07 01 EA [13:21:33]Write i2c OK [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: D1 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: D1 01 00 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: D1 01 00 11 07 00 E9 [13:21:33]Write to MH i2c: 01 00 00 12 07 19 [13:21:33]Write i2c OK [13:21:33]MH_I2C_Read... [13:21:33]OFD Sender: No OFD packet to send [13:21:34]*** Cut start [13:21:34]*** Partial cut [13:21:34]*** CUTSNS_PIN = 1 [13:21:34]*** CUTSNS_PIN = 0 [13:21:34]*** Brake cut motor [13:21:35]Read from MH i2c: 01 [13:21:35]MH_I2C_Read... [13:21:35]*** Stop cut motor [13:21:35]*** Cut end [13:21:35]Read from MH i2c: 01 07 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 FF 0F 2E [13:21:35]process_action close_receipt done [13:21:35]requested_data is exist [13:21:35]produce_requested_data [13:21:35]requested_item fm.sn is exist - process it [13:21:35]wFMCommunicate request_size=4 [13:21:35]MH_SAM_APDU [13:21:35]CAPDU: 80 11 00 00 [13:21:35]Write to MH i2c: E2 08 00 13 07 80 11 00 00 00 00 00 00 94 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 17 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 17 00 13 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E7 [13:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:21:35]wFMCommunicate OK [13:21:35]requested_item fd.num is exist - process it [13:21:35]SAM_PROTO_GetFieldsCounters [13:21:35]wFMCommunicate request_size=4 [13:21:35]MH_SAM_APDU [13:21:35]CAPDU: 80 13 00 00 [13:21:35]Write to MH i2c: E2 08 00 14 07 80 13 00 00 00 00 00 00 97 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 62 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 62 00 14 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 60 45 02 00 0E 04 04 00 70 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 CC [13:21:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 60 45 02 00 0E 04 04 00 70 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 [13:21:35]wFMCommunicate OK [13:21:35]SAM_PROTO_GetFieldsCounters done [13:21:35]requested_item shift.num is exist - process it [13:21:35]requested_item shift.opened is exist - process it [13:21:35]req_shift_opened [13:21:35]FM_GetShiftState [13:21:35]SAM_PROTO_GetShiftState [13:21:35]wFMCommunicate request_size=4 [13:21:35]MH_SAM_APDU [13:21:35]CAPDU: 80 13 01 00 [13:21:35]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 0E 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5C [13:21:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:21:35]wFMCommunicate OK [13:21:35]SAM_PROTO_GetShiftState done [13:21:35]FM_GetShiftState done [13:21:35]req_shift_opened done [13:21:35]requested_item shift.open_date is exist - process it [13:21:35]req_shift_open_date [13:21:35]req_shift_open_date done [13:21:35]produce_requested_data done [13:21:35]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148832,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:21:35]process_action_free close_receipt [13:21:35]json_value_free [13:21:35]json_value_free done [13:21:35]process_json_proto returns [13:21:35]Send response to host [13:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148832,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:21:35]free response buf [13:21:35]execute_script done [13:21:35]execute_script returns [13:21:35]free content buf [13:21:35]Sock 9.Close socket [13:21:35]Sock 9.Thread stoped [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25: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:26:59]accept exits with 7 [13:26:59]New connection [13:26:59]New thread 3067264356 created [13:26:59]Thread 3067407716 joined [13:26:59]Waiting for new connection... [13:26:59] Sock 7.Parse request [13:26:59]Sock 7.Check first char [13:26:59]Sock 7.First char is OK [13:26:59]request: POST /json_proto HTTP/1.0 [13:26:59]Method: POST [13:26:59]URL: /json_proto [13:26:59]Method is POST - this is cgi request [13:26:59]url: /json_proto [13:26:59]query_string will be loaded in cgi processing [13:26:59]execute_cgi json_proto POST (null) [13:26:59]execute_cgi path=json_proto method=POST [13:26:59]POST find Content-Length [13:26:59]Host: 172.17.38.4:8080 [13:26:59]Content-Length: 764 [13:26:59]Content-Type: application/json [13:26:59] [13:26:59]POST finish read [13:26:59]Found Content-Length = 764 [13:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11904", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:59]execute_script... [13:26:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11904", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:59]POST & json_proto [13:26:59]process_json_proto [13:26:59]json parsed OK: [13:26:59]protocol is kg_v1.0 [13:26:59]action value=close_receipt [13:26:59]process_action close_receipt [13:26:59]cmd_close_receipt [13:26:59]MH_GetDate [13:26:59]Write to MH i2c: F0 00 00 16 07 0C [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: F0 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: F0 09 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: F0 09 00 16 07 00 24 16 5F 66 CC 51 87 64 1C [13:26:59]GetLastDocTimeStamp 1717507291 [13:26:59]current date 1717507620 [13:26:59]FM_GetShiftState [13:26:59]SAM_PROTO_GetShiftState [13:26:59]wFMCommunicate request_size=4 [13:26:59]MH_SAM_APDU [13:26:59]CAPDU: 80 13 01 00 [13:26:59]Write to MH i2c: E2 08 00 17 07 80 13 01 00 00 00 00 00 9B [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:00]Read from MH i2c: E2 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 0E 00 [13:27:00]MH_I2C_Read... [13:27:00]Read from MH i2c: E2 0E 00 17 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5E [13:27:00]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:27:00]wFMCommunicate OK [13:27:00]SAM_PROTO_GetShiftState done [13:27:00]FM_GetShiftState done [13:27:00]opened in 1717460629 [13:27:00]opened+sec_in_day 1717547029 [13:27:00]quantity*price = 21000 [13:27:00]sum+1 = 21001 [13:27:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 0.00 Безнал.: 210.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 172 04.06.2024 13:27 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148833 ФПД: 255789467494200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132700&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148833&fm=255789467494200&tin=02508201610067®Number=0000000000092720&sum=21000 0 [13:27:01]StoreToDocumentArchive [13:27:01]shift 368 fd 148833 [13:27:01]save to /storage/0368/doc_00148833 [13:27:01]save last doc name /storage/0368/doc_00148833 to /storage/kkm_last_doc_name [13:27:01]save OK [13:27:01]Clear old archive folders... [13:27:01]ProcessDocumentItem done err = 0, tmpTLVsize=266 [13:27:01]tlvbuf is 004AD500 [13:27:01]SAM_PROTO_ClearQueue [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 09 00 00 [13:27:01]Write to MH i2c: E2 08 00 24 07 80 09 00 00 00 00 00 00 9D [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [13:27:01]RAPDU: 90 00 [13:27:01]wFMCommunicate OK [13:27:01]SAM_PROTO_ClearQueue done [13:27:01]KKMCreateOFDPacket [13:27:01]OFDProtocolAddRootSTLVToBuf [13:27:01]FM_MakeSignedData [13:27:01]FM_MakeSignedData [13:27:01]SAM_PROTO_SignData [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 0D 01 02 [13:27:01]Write to MH i2c: E2 08 00 25 07 80 0D 01 02 00 00 00 00 A5 [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [13:27:01]RAPDU: 90 00 [13:27:01]wFMCommunicate OK [13:27:01]wFMCommunicate request_size=255 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 24 16 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [13:27:01]Write to MH i2c: E2 02 01 26 07 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 24 16 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 99 [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [13:27:01]RAPDU: 90 00 [13:27:01]wFMCommunicate OK [13:27:01]wFMCommunicate request_size=25 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 0D 02 02 14 35 37 10 04 04 00 61 45 02 00 35 04 06 00 E8 A3 A0 58 E7 38 [13:27:01]Write to MH i2c: E2 1C 00 27 07 80 0D 02 02 14 00 35 37 10 04 04 00 61 45 02 00 35 04 06 00 E8 A3 A0 58 E7 38 00 00 DD [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [13:27:01]RAPDU: 90 00 [13:27:01]wFMCommunicate OK [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 0D 03 02 [13:27:01]Write to MH i2c: E2 08 00 28 07 80 0D 03 02 00 00 00 00 AA [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 0B 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 0B 00 28 07 00 F9 CF 92 55 29 98 93 A9 90 00 57 [13:27:01]RAPDU: F9 CF 92 55 29 98 93 A9 90 00 [13:27:01]wFMCommunicate OK [13:27:01]SAM_PROTO_SignData done [13:27:01]FM_MakeSignedData done [13:27:01]CreateOFDProtocolMessage [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 11 00 00 [13:27:01]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 17 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FD [13:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:27:01]wFMCommunicate OK [13:27:01]CreateOFDProtocolMessage done [13:27:01]OFDSenderStorePacket 148833 [13:27:01]StoreOFDPacket docnum=148833 [13:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 1E 01 00 00 0E 2E 16 01 DB 52 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 24 16 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 61 45 02 00 35 04 06 00 E8 A3 A0 58 E7 38 F9 CF 92 55 29 98 93 A9 [13:27:01]CheckFolder [13:27:01]dirname=/storage/ofd_packets [13:27:01]CheckFolder done [13:27:01]ProducePacketName [13:27:01]name=ofd_packets/00148833 [13:27:01]NVStorageSaveData ofd_packets/00148833 [13:27:01]File name is /storage/ofd_packets/00148833 [13:27:01]Write 316 bytes [13:27:01]NVStorageSaveData done [13:27:01]OFDSenderStorePacket done [13:27:01]KKMCreateOFDPacket done [13:27:01]NVStorageSaveData kkm_last_timestamp [13:27:01]File name is /storage/kkm_last_timestamp [13:27:01]Write 4 bytes [13:27:01]NVStorageSaveData done [13:27:01]ExternCall_PrintAddStr [13:27:01]wPrintStart [13:27:01]Write to MH i2c: 01 00 00 2A 07 31 [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: 01 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: 01 07 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: 01 07 00 2A 07 00 00 00 00 00 FF 0F 46 [13:27:01]RasterBufferAndPrint [13:27:01]line Счет N : (3)11904 [13:27:01]line ИНН: 02508201610067 [13:27:01]line Контрольно-Кассовый Чек [13:27:01]line ПРОДАЖА [13:27:01]line Товар: 4870001570095 [13:27:01]line Напиток Pepsi 2л [13:27:01]line 1.000 * 210.00 [13:27:01]line = 210.00 [13:27:01]line НДС 12% НСП 1% [13:27:01]line > о реализуемом товаре [13:27:01]line ИТОГО: 210.00 [13:27:01]line НСП 1% : 1.86 [13:27:01]line НДС 12% : 22.30 [13:27:01]line Наличными: 0.00 [13:27:01]line Безнал.: 210.00 [13:27:01]line Место: АЗС № 68 "Партнер Нефть" [13:27:01]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:27:01]line СНО: Общий режим [13:27:01]line Чек 172 04.06.2024 13:27 [13:27:01]line Смена: 368 ФФД: 1.0 [13:27:01]line ЗНМ: 0300000035 [13:27:01]line РНМ: 0000000000092720 [13:27:01]line Версия ККМ: 001 [13:27:01]line Платежная система: KICB Банк [13:27:01]line ФМ: 0000000000875057 [13:27:01]line ФД: 148833 [13:27:01]line ФПД: 255789467494200 [13:27:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T132700&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148833&fm=255789467494200&tin=02508201610067®Number=0000000000092720&sum=21000 [13:27:02]line 0 [13:27:02]OFD Sender: Processing packet 148833 [packets to send 100, broken 99] [13:27:02]ProducePacketName [13:27:02]name=ofd_packets/00148833 [13:27:02]OFD Sender: To server: pG, [13:27:02]CommunicateWithHost lk.salyk.kg:30040 [13:27:02]ConnectInit lk.salyk.kg [13:27:02]written 0, free lines is 4095 [13:27:02]Connected sock=10 [13:27:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 1E 01 00 00 0E 2E 16 01 DB 52 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 24 16 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 61 45 02 00 35 04 06 00 E8 A3 A0 58 E7 38 F9 CF 92 55 29 98 93 A9 [13:27:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8F D1 47 00 F4 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 38 37 35 30 35 37 10 04 04 00 61 45 02 00 F4 03 04 00 48 BD 5E 66 B6 04 01 00 00 5F 3D 71 57 00 51 91 7B [13:27:02]CommunicateWithHost err = 0 [13:27:02]CheckOFDResponse [13:27:02]1017 (14) - 77093643461234 [13:27:02]1041 (16) - 0000000000875057 [13:27:02]1040 (4) - 148833 [13:27:02]1012 (4) - 04.06.2024 07:07 [13:27:02]1206 (1) - 0 [13:27:02]OFD Sender: Remove packet 148833 [13:27:02]ProducePacketName [13:27:02]name=ofd_packets/00148833 [13:27:02]NVStorageDeleteData [13:27:02]Write to MH i2c: 01 00 00 54 07 5B [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: 01 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: 01 07 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: 01 07 00 54 07 00 00 00 00 00 70 0C DE [13:27:02]RasterBufferAndPrint [13:27:02]line [13:27:02]line [13:27:02]line [13:27:02]line [13:27:02]line [13:27:02]written 0, free lines is 3187 [13:27:02]MH_Cut [13:27:02]Write to MH i2c: D1 01 00 5B 07 01 34 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: D1 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: D1 01 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: D1 01 00 5B 07 00 33 [13:27:02]Write to MH i2c: 01 00 00 5C 07 63 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]OFD Sender: No OFD packet to send [13:27:03]*** Cut start [13:27:03]*** Partial cut [13:27:03]*** CUTSNS_PIN = 1 [13:27:03]*** CUTSNS_PIN = 0 [13:27:04]*** Brake cut motor [13:27:04]Read from MH i2c: 01 [13:27:04]MH_I2C_Read... [13:27:04]*** Stop cut motor [13:27:04]*** Cut end [13:27:04]Read from MH i2c: 01 07 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 5C 07 00 00 00 00 00 FF 0F 78 [13:27:04]process_action close_receipt done [13:27:04]requested_data is exist [13:27:04]produce_requested_data [13:27:04]requested_item fm.sn is exist - process it [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 11 00 00 [13:27:04]Write to MH i2c: E2 08 00 5D 07 80 11 00 00 00 00 00 00 DE [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 5D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 31 [13:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:27:04]wFMCommunicate OK [13:27:04]requested_item fd.num is exist - process it [13:27:04]SAM_PROTO_GetFieldsCounters [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 13 00 00 [13:27:04]Write to MH i2c: E2 08 00 5E 07 80 13 00 00 00 00 00 00 E1 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 62 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 62 00 5E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 61 45 02 00 0E 04 04 00 70 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 1A [13:27:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 61 45 02 00 0E 04 04 00 70 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 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_GetFieldsCounters done [13:27:04]requested_item shift.num is exist - process it [13:27:04]requested_item shift.opened is exist - process it [13:27:04]req_shift_opened [13:27:04]FM_GetShiftState [13:27:04]SAM_PROTO_GetShiftState [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 13 01 00 [13:27:04]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0E 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A6 [13:27:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_GetShiftState done [13:27:04]FM_GetShiftState done [13:27:04]req_shift_opened done [13:27:04]requested_item shift.open_date is exist - process it [13:27:04]req_shift_open_date [13:27:04]req_shift_open_date done [13:27:04]produce_requested_data done [13:27:04]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148833,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:27:04]process_action_free close_receipt [13:27:04]json_value_free [13:27:04]json_value_free done [13:27:04]process_json_proto returns [13:27:04]Send response to host [13:27:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148833,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:27:04]free response buf [13:27:04]execute_script done [13:27:04]execute_script returns [13:27:04]free content buf [13:27:04]Sock 7.Close socket [13:27:04]Sock 7.Thread stoped [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:27]accept exits with 9 [13:30:27]New connection [13:30:27]New thread 3067407716 created [13:30:27]Thread 3067264356 joined [13:30:27]Waiting for new connection... [13:30:27] Sock 9.Parse request [13:30:27]Sock 9.Check first char [13:30:27]Sock 9.First char is OK [13:30:27]request: POST /json_proto HTTP/1.0 [13:30:27]Method: POST [13:30:27]URL: /json_proto [13:30:27]Method is POST - this is cgi request [13:30:27]url: /json_proto [13:30:27]query_string will be loaded in cgi processing [13:30:27]execute_cgi json_proto POST (null) [13:30:27]execute_cgi path=json_proto method=POST [13:30:27]POST find Content-Length [13:30:27]Host: 172.17.38.4:8080 [13:30:27]Content-Length: 677 [13:30:27]Content-Type: application/json [13:30:27] [13:30:27]POST finish read [13:30:27]Found Content-Length = 677 [13:30:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:27]execute_script... [13:30: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)979762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:27]POST & json_proto [13:30:27]process_json_proto [13:30:27]json parsed OK: [13:30:27]protocol is kg_v1.0 [13:30:27]action value=close_receipt [13:30:27]process_action close_receipt [13:30:27]cmd_close_receipt [13:30:27]MH_GetDate [13:30:27]Write to MH i2c: F0 00 00 60 07 56 [13:30:27]Write i2c OK [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: F0 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: F0 09 00 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: F0 09 00 60 07 00 F4 16 5F 66 CC 51 87 64 36 [13:30:27]GetLastDocTimeStamp 1717507620 [13:30:27]current date 1717507828 [13:30:27]FM_GetShiftState [13:30:27]SAM_PROTO_GetShiftState [13:30:27]wFMCommunicate request_size=4 [13:30:27]MH_SAM_APDU [13:30:27]CAPDU: 80 13 01 00 [13:30:27]Write to MH i2c: E2 08 00 61 07 80 13 01 00 00 00 00 00 E5 [13:30:27]Write i2c OK [13:30:27]MH_I2C_Read... [13:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:27]Read from MH i2c: E2 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: E2 0E 00 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: E2 0E 00 61 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A8 [13:30:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:30:27]wFMCommunicate OK [13:30:27]SAM_PROTO_GetShiftState done [13:30:27]FM_GetShiftState done [13:30:27]opened in 1717460629 [13:30:27]opened+sec_in_day 1717547029 [13:30:27]quantity*price = 40006 [13:30:27]sum+1 = 40007 [13:30:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 173 04.06.2024 13:30 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148834 ФПД: 24887143060452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133028&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148834&fm=24887143060452&tin=02508201610067®Number=0000000000092720&sum=40000 [13:30:28]StoreToDocumentArchive [13:30:28]shift 368 fd 148834 [13:30:28]save to /storage/0368/doc_00148834 [13:30:28]save last doc name /storage/0368/doc_00148834 to /storage/kkm_last_doc_name [13:30:28]save OK [13:30:28]Clear old archive folders... [13:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:29]tlvbuf is 004B22A0 [13:30:29]SAM_PROTO_ClearQueue [13:30:29]wFMCommunicate request_size=4 [13:30:29]MH_SAM_APDU [13:30:29]CAPDU: 80 09 00 00 [13:30:29]Write to MH i2c: E2 08 00 6E 07 80 09 00 00 00 00 00 00 E7 [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:29]Read from MH i2c: E2 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 03 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [13:30:29]RAPDU: 90 00 [13:30:29]wFMCommunicate OK [13:30:29]SAM_PROTO_ClearQueue done [13:30:29]KKMCreateOFDPacket [13:30:29]OFDProtocolAddRootSTLVToBuf [13:30:29]FM_MakeSignedData [13:30:29]FM_MakeSignedData [13:30:29]SAM_PROTO_SignData [13:30:29]wFMCommunicate request_size=4 [13:30:29]MH_SAM_APDU [13:30:29]CAPDU: 80 0D 01 02 [13:30:29]Write to MH i2c: E2 08 00 6F 07 80 0D 01 02 00 00 00 00 EF [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:29]Read from MH i2c: E2 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 03 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [13:30:29]RAPDU: 90 00 [13:30:29]wFMCommunicate OK [13:30:29]wFMCommunicate request_size=255 [13:30:29]MH_SAM_APDU [13:30:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 AD 00 00 00 F4 03 04 00 F4 16 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 62 45 02 00 35 04 06 00 16 [13:30:29]Write to MH i2c: E2 02 01 70 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 AD 00 00 00 F4 03 04 00 F4 16 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 62 45 02 00 35 04 06 00 16 00 00 F4 [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:29]Read from MH i2c: E2 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 03 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [13:30:29]RAPDU: 90 00 [13:30:29]wFMCommunicate OK [13:30:29]wFMCommunicate request_size=10 [13:30:29]MH_SAM_APDU [13:30:29]CAPDU: 80 0D 02 02 05 A2 7D 52 53 E4 [13:30:29]Write to MH i2c: E2 0D 00 71 07 80 0D 02 02 05 00 A2 7D 52 53 E4 00 00 A4 [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:29]Read from MH i2c: E2 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 03 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [13:30:29]RAPDU: 90 00 [13:30:29]wFMCommunicate OK [13:30:29]wFMCommunicate request_size=4 [13:30:29]MH_SAM_APDU [13:30:29]CAPDU: 80 0D 03 02 [13:30:29]Write to MH i2c: E2 08 00 72 07 80 0D 03 02 00 00 00 00 F4 [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:29]Read from MH i2c: E2 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 0B 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 0B 00 72 07 00 BD 7B 9A C9 44 81 5A 1F 90 00 CE [13:30:29]RAPDU: BD 7B 9A C9 44 81 5A 1F 90 00 [13:30:29]wFMCommunicate OK [13:30:29]SAM_PROTO_SignData done [13:30:29]FM_MakeSignedData done [13:30:29]CreateOFDProtocolMessage [13:30:29]wFMCommunicate request_size=4 [13:30:29]MH_SAM_APDU [13:30:29]CAPDU: 80 11 00 00 [13:30:29]Write to MH i2c: E2 08 00 73 07 80 11 00 00 00 00 00 00 F4 [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:29]Read from MH i2c: E2 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 17 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 17 00 73 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 47 [13:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:30:29]wFMCommunicate OK [13:30:29]CreateOFDProtocolMessage done [13:30:29]OFDSenderStorePacket 148834 [13:30:29]StoreOFDPacket docnum=148834 [13:30:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 67 2D 07 01 8B BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 AD 00 00 00 F4 03 04 00 F4 16 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 62 45 02 00 35 04 06 00 16 A2 7D 52 53 E4 BD 7B 9A C9 44 81 5A 1F [13:30:29]CheckFolder [13:30:29]dirname=/storage/ofd_packets [13:30:29]CheckFolder done [13:30:29]ProducePacketName [13:30:29]name=ofd_packets/00148834 [13:30:29]NVStorageSaveData ofd_packets/00148834 [13:30:29]File name is /storage/ofd_packets/00148834 [13:30:29]Write 301 bytes [13:30:29]NVStorageSaveData done [13:30:29]OFDSenderStorePacket done [13:30:29]KKMCreateOFDPacket done [13:30:29]NVStorageSaveData kkm_last_timestamp [13:30:29]File name is /storage/kkm_last_timestamp [13:30:29]Write 4 bytes [13:30:29]NVStorageSaveData done [13:30:29]ExternCall_PrintAddStr [13:30:29]wPrintStart [13:30:29]Write to MH i2c: 01 00 00 74 07 7B [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: 01 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: 01 07 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: 01 07 00 74 07 00 00 00 00 00 FF 0F 90 [13:30:29]RasterBufferAndPrint [13:30:29]line Счет N : (1)979762 [13:30:29]line ИНН: 02508201610067 [13:30:29]line Контрольно-Кассовый Чек [13:30:29]line ПРОДАЖА [13:30:29]line ТРК (МРК, ГНК) : 12 [13:30:29]line Товар: 2710124130 [13:30:29]line Аи-92-К-5 [13:30:29]line 5.980 * 66.90 [13:30:29]line = 400.06 [13:30:29]line НДС 12% НСП 1% [13:30:29]line > о реализуемом товаре [13:30:29]line ОКРУГЛЕНИЕ: -0.06 [13:30:29]line ИТОГО: 400.00 [13:30:29]line Внесено: 400.00 [13:30:29]line СДАЧА: 0.00 [13:30:29]line НСП 1% : 3.54 [13:30:29]line НДС 12% : 42.48 [13:30:29]line Наличными: 400.00 [13:30:29]line Безнал.: 0.00 [13:30:29]line Место: АЗС № 68 "Партнер Нефть" [13:30:29]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:30:29]line СНО: Общий режим [13:30:29]line Чек 173 04.06.2024 13:30 [13:30:29]line Смена: 368 ФФД: 1.0 [13:30:29]line ЗНМ: 0300000035 [13:30:29]line РНМ: 0000000000092720 [13:30:29]line Версия ККМ: 001 [13:30:29]line ФМ: 0000000000875057 [13:30:29]line ФД: 148834 [13:30:29]line ФПД: 24887143060452 [13:30:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133028&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148834&fm=24887143060452&tin=02508201610067®Number=0000000000092720&sum=40000 [13:30:29]OFD Sender: Processing packet 148834 [packets to send 100, broken 99] [13:30:29]ProducePacketName [13:30:29]name=ofd_packets/00148834 [13:30:29]OFD Sender: To server: pG, [13:30:29]CommunicateWithHost lk.salyk.kg:30040 [13:30:29]ConnectInit lk.salyk.kg [13:30:29]written 0, free lines is 4095 [13:30:29]Connected sock=10 [13:30:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 67 2D 07 01 8B BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 AD 00 00 00 F4 03 04 00 F4 16 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 62 45 02 00 35 04 06 00 16 A2 7D 52 53 E4 BD 7B 9A C9 44 81 5A 1F [13:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 68 18 47 00 FC 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 62 45 02 00 F4 03 04 00 18 BE 5E 66 B6 04 01 00 00 DB 80 6B 4A 2C E5 2B FE [13:30:30]CommunicateWithHost err = 0 [13:30:30]CheckOFDResponse [13:30:30]1017 (14) - 77093643461234 [13:30:30]1041 (16) - 0000000000875057 [13:30:30]1040 (4) - 148834 [13:30:30]1012 (4) - 04.06.2024 07:11 [13:30:30]1206 (1) - 0 [13:30:30]OFD Sender: Remove packet 148834 [13:30:30]ProducePacketName [13:30:30]name=ofd_packets/00148834 [13:30:30]NVStorageDeleteData [13:30:30]Write to MH i2c: 01 00 00 9F 07 A6 [13:30:30]Write i2c OK [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: 01 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: 01 07 00 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: 01 07 00 9F 07 00 00 00 00 00 61 0C 1A [13:30:30]RasterBufferAndPrint [13:30:30]line [13:30:30]line [13:30:30]line [13:30:30]line [13:30:30]line [13:30:30]written 0, free lines is 3172 [13:30:30]MH_Cut [13:30:30]Write to MH i2c: D1 01 00 A6 07 01 7F [13:30:30]Write i2c OK [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: D1 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: D1 01 00 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: D1 01 00 A6 07 00 7E [13:30:30]Write to MH i2c: 01 00 00 A7 07 AE [13:30:30]Write i2c OK [13:30:30]MH_I2C_Read... [13:30:30]OFD Sender: No OFD packet to send [13:30:31]*** Cut start [13:30:31]*** Partial cut [13:30:31]*** CUTSNS_PIN = 1 [13:30:31]*** CUTSNS_PIN = 0 [13:30:31]*** Brake cut motor [13:30:32]Read from MH i2c: 01 [13:30:32]MH_I2C_Read... [13:30:32]*** Stop cut motor [13:30:32]*** Cut end [13:30:32]Read from MH i2c: 01 07 00 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: 01 07 00 A7 07 00 00 00 00 00 FF 0F C3 [13:30:32]process_action close_receipt done [13:30:32]requested_data is exist [13:30:32]produce_requested_data [13:30:32]requested_item fm.sn is exist - process it [13:30:32]wFMCommunicate request_size=4 [13:30:32]MH_SAM_APDU [13:30:32]CAPDU: 80 11 00 00 [13:30:32]Write to MH i2c: E2 08 00 A8 07 80 11 00 00 00 00 00 00 29 [13:30:32]Write i2c OK [13:30:32]MH_I2C_Read... [13:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:32]Read from MH i2c: E2 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 17 00 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 17 00 A8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7C [13:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:30:32]wFMCommunicate OK [13:30:32]requested_item fd.num is exist - process it [13:30:32]SAM_PROTO_GetFieldsCounters [13:30:32]wFMCommunicate request_size=4 [13:30:32]MH_SAM_APDU [13:30:32]CAPDU: 80 13 00 00 [13:30:32]Write to MH i2c: E2 08 00 A9 07 80 13 00 00 00 00 00 00 2C [13:30:32]Write i2c OK [13:30:32]MH_I2C_Read... [13:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:32]Read from MH i2c: E2 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 62 00 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 62 00 A9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 62 45 02 00 0E 04 04 00 70 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 69 [13:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 62 45 02 00 0E 04 04 00 70 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 [13:30:32]wFMCommunicate OK [13:30:32]SAM_PROTO_GetFieldsCounters done [13:30:32]requested_item shift.num is exist - process it [13:30:32]requested_item shift.opened is exist - process it [13:30:32]req_shift_opened [13:30:32]FM_GetShiftState [13:30:32]SAM_PROTO_GetShiftState [13:30:32]wFMCommunicate request_size=4 [13:30:32]MH_SAM_APDU [13:30:32]CAPDU: 80 13 01 00 [13:30:32]Write to MH i2c: E2 08 00 AA 07 80 13 01 00 00 00 00 00 2E [13:30:32]Write i2c OK [13:30:32]MH_I2C_Read... [13:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:32]Read from MH i2c: E2 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 0E 00 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 0E 00 AA 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F1 [13:30:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:30:32]wFMCommunicate OK [13:30:32]SAM_PROTO_GetShiftState done [13:30:32]FM_GetShiftState done [13:30:32]req_shift_opened done [13:30:32]requested_item shift.open_date is exist - process it [13:30:32]req_shift_open_date [13:30:32]req_shift_open_date done [13:30:32]produce_requested_data done [13:30:32]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148834,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:30:32]process_action_free close_receipt [13:30:32]json_value_free [13:30:32]json_value_free done [13:30:32]process_json_proto returns [13:30:32]Send response to host [13:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148834,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:30:32]free response buf [13:30:32]execute_script done [13:30:32]execute_script returns [13:30:32]free content buf [13:30:32]Sock 9.Close socket [13:30:32]Sock 9.Thread stoped [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:12]accept exits with 7 [13:33:12]New connection [13:33:12]New thread 3067264356 created [13:33:12]Thread 3067407716 joined [13:33:12]Waiting for new connection... [13:33:12] Sock 7.Parse request [13:33:12]Sock 7.Check first char [13:33:12]Sock 7.First char is OK [13:33:12]request: POST /json_proto HTTP/1.0 [13:33:12]Method: POST [13:33:12]URL: /json_proto [13:33:12]Method is POST - this is cgi request [13:33:12]url: /json_proto [13:33:12]query_string will be loaded in cgi processing [13:33:12]execute_cgi json_proto POST (null) [13:33:12]execute_cgi path=json_proto method=POST [13:33:12]POST find Content-Length [13:33:12]Host: 172.17.38.4:8080 [13:33:12]Content-Length: 675 [13:33:12]Content-Type: application/json [13:33:12] [13:33:12]POST finish read [13:33:12]Found Content-Length = 675 [13:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:12]execute_script... [13:33: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)979763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:12]POST & json_proto [13:33:12]process_json_proto [13:33:12]json parsed OK: [13:33:12]protocol is kg_v1.0 [13:33:12]action value=close_receipt [13:33:12]process_action close_receipt [13:33:12]cmd_close_receipt [13:33:12]MH_GetDate [13:33:12]Write to MH i2c: F0 00 00 AB 07 A1 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: F0 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: F0 09 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: F0 09 00 AB 07 00 99 17 5F 66 CC 51 87 64 27 [13:33:12]GetLastDocTimeStamp 1717507828 [13:33:12]current date 1717507993 [13:33:12]FM_GetShiftState [13:33:12]SAM_PROTO_GetShiftState [13:33:12]wFMCommunicate request_size=4 [13:33:12]MH_SAM_APDU [13:33:12]CAPDU: 80 13 01 00 [13:33:12]Write to MH i2c: E2 08 00 AC 07 80 13 01 00 00 00 00 00 30 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:12]Read from MH i2c: E2 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 0E 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 0E 00 AC 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F3 [13:33:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:33:12]wFMCommunicate OK [13:33:12]SAM_PROTO_GetShiftState done [13:33:12]FM_GetShiftState done [13:33:12]opened in 1717460629 [13:33:12]opened+sec_in_day 1717547029 [13:33:12]quantity*price = 73045 [13:33:12]sum+1 = 73047 [13:33:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.57 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 174 04.06.2024 13:33 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148835 ФПД: 276264166504052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133313&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148835&fm=276264166504052&tin=02508201610067®Number=0000000000092720&sum=73000 [13:33:13]StoreToDocumentArchive [13:33:13]shift 368 fd 148835 [13:33:13]save to /storage/0368/doc_00148835 [13:33:13]save last doc name /storage/0368/doc_00148835 to /storage/kkm_last_doc_name [13:33:13]save OK [13:33:13]Clear old archive folders... [13:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:33:13]tlvbuf is B6F177C0 [13:33:13]SAM_PROTO_ClearQueue [13:33:13]wFMCommunicate request_size=4 [13:33:13]MH_SAM_APDU [13:33:13]CAPDU: 80 09 00 00 [13:33:13]Write to MH i2c: E2 08 00 B9 07 80 09 00 00 00 00 00 00 32 [13:33:13]Write i2c OK [13:33:13]MH_I2C_Read... [13:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:13]Read from MH i2c: E2 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 03 00 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [13:33:13]RAPDU: 90 00 [13:33:13]wFMCommunicate OK [13:33:13]SAM_PROTO_ClearQueue done [13:33:13]KKMCreateOFDPacket [13:33:13]OFDProtocolAddRootSTLVToBuf [13:33:13]FM_MakeSignedData [13:33:13]FM_MakeSignedData [13:33:13]SAM_PROTO_SignData [13:33:13]wFMCommunicate request_size=4 [13:33:13]MH_SAM_APDU [13:33:13]CAPDU: 80 0D 01 02 [13:33:13]Write to MH i2c: E2 08 00 BA 07 80 0D 01 02 00 00 00 00 3A [13:33:13]Write i2c OK [13:33:13]MH_I2C_Read... [13:33:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:13]Read from MH i2c: E2 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 03 00 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [13:33:13]RAPDU: 90 00 [13:33:13]wFMCommunicate OK [13:33:13]wFMCommunicate request_size=255 [13:33:13]MH_SAM_APDU [13:33:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 99 17 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 63 45 02 00 35 04 06 00 FB 42 C3 82 [13:33:13]Write to MH i2c: E2 02 01 BB 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 99 17 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 63 45 02 00 35 04 06 00 FB 42 C3 82 00 00 26 [13:33:13]Write i2c OK [13:33:13]MH_I2C_Read... [13:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:13]Read from MH i2c: E2 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 03 00 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [13:33:13]RAPDU: 90 00 [13:33:13]wFMCommunicate OK [13:33:13]wFMCommunicate request_size=7 [13:33:13]MH_SAM_APDU [13:33:13]CAPDU: 80 0D 02 02 02 36 74 [13:33:13]Write to MH i2c: E2 0A 00 BC 07 80 0D 02 02 02 00 36 74 00 00 EB [13:33:13]Write i2c OK [13:33:13]MH_I2C_Read... [13:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:13]Read from MH i2c: E2 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 03 00 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 03 00 BC 07 00 90 00 37 [13:33:13]RAPDU: 90 00 [13:33:13]wFMCommunicate OK [13:33:13]wFMCommunicate request_size=4 [13:33:13]MH_SAM_APDU [13:33:13]CAPDU: 80 0D 03 02 [13:33:13]Write to MH i2c: E2 08 00 BD 07 80 0D 03 02 00 00 00 00 3F [13:33:13]Write i2c OK [13:33:13]MH_I2C_Read... [13:33:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:13]Read from MH i2c: E2 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 0B 00 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 0B 00 BD 07 00 D1 84 69 53 46 5F AD A8 90 00 4B [13:33:13]RAPDU: D1 84 69 53 46 5F AD A8 90 00 [13:33:13]wFMCommunicate OK [13:33:13]SAM_PROTO_SignData done [13:33:13]FM_MakeSignedData done [13:33:13]CreateOFDProtocolMessage [13:33:13]wFMCommunicate request_size=4 [13:33:13]MH_SAM_APDU [13:33:13]CAPDU: 80 11 00 00 [13:33:13]Write to MH i2c: E2 08 00 BE 07 80 11 00 00 00 00 00 00 3F [13:33:13]Write i2c OK [13:33:13]MH_I2C_Read... [13:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:13]Read from MH i2c: E2 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 17 00 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: E2 17 00 BE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 92 [13:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:33:13]wFMCommunicate OK [13:33:13]CreateOFDProtocolMessage done [13:33:13]OFDSenderStorePacket 148835 [13:33:13]StoreOFDPacket docnum=148835 [13:33:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 31 50 04 01 FC DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 99 17 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 63 45 02 00 35 04 06 00 FB 42 C3 82 36 74 D1 84 69 53 46 5F AD A8 [13:33:13]CheckFolder [13:33:13]dirname=/storage/ofd_packets [13:33:13]CheckFolder done [13:33:13]ProducePacketName [13:33:13]name=ofd_packets/00148835 [13:33:13]NVStorageSaveData ofd_packets/00148835 [13:33:13]File name is /storage/ofd_packets/00148835 [13:33:13]Write 298 bytes [13:33:13]NVStorageSaveData done [13:33:13]OFDSenderStorePacket done [13:33:13]KKMCreateOFDPacket done [13:33:13]NVStorageSaveData kkm_last_timestamp [13:33:13]File name is /storage/kkm_last_timestamp [13:33:13]Write 4 bytes [13:33:13]NVStorageSaveData done [13:33:13]ExternCall_PrintAddStr [13:33:13]wPrintStart [13:33:13]Write to MH i2c: 01 00 00 BF 07 C6 [13:33:13]Write i2c OK [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: 01 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: 01 07 00 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 FF 0F DB [13:33:13]RasterBufferAndPrint [13:33:13]line Счет N : (1)979763 [13:33:13]line ИНН: 02508201610067 [13:33:13]line Контрольно-Кассовый Чек [13:33:13]line ПРОДАЖА [13:33:13]line ТРК (МРК, ГНК) : 11 [13:33:13]line Товар: 2710194210 [13:33:13]line ДТ-К-5 [13:33:13]line 10.020 * 72.90 [13:33:13]line = 730.46 [13:33:13]line НДС 12% НСП 1% [13:33:13]line > о реализуемом товаре [13:33:13]line ОКРУГЛЕНИЕ: -0.46 [13:33:13]line ИТОГО: 730.00 [13:33:13]line Внесено: 730.00 [13:33:13]line СДАЧА: 0.00 [13:33:13]line НСП 1% : 6.46 [13:33:13]line НДС 12% : 77.57 [13:33:13]line Наличными: 730.00 [13:33:13]line Безнал.: 0.00 [13:33:13]line Место: АЗС № 68 "Партнер Нефть" [13:33:13]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:33:13]line СНО: Общий режим [13:33:13]line Чек 174 04.06.2024 13:33 [13:33:13]line Смена: 368 ФФД: 1.0 [13:33:13]line ЗНМ: 0300000035 [13:33:13]line РНМ: 0000000000092720 [13:33:13]line Версия ККМ: 001 [13:33:13]line ФМ: 0000000000875057 [13:33:14]line ФД: 148835 [13:33:14]line ФПД: 276264166504052 [13:33:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133313&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148835&fm=276264166504052&tin=02508201610067®Number=0000000000092720&sum=73000 [13:33:14]OFD Sender: Processing packet 148835 [packets to send 100, broken 99] [13:33:14]ProducePacketName [13:33:14]name=ofd_packets/00148835 [13:33:14]OFD Sender: To server: pG, [13:33:14]CommunicateWithHost lk.salyk.kg:30040 [13:33:14]ConnectInit lk.salyk.kg [13:33:14]written 0, free lines is 4095 [13:33:14]Connected sock=10 [13:33:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 31 50 04 01 FC DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 99 17 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 63 45 02 00 35 04 06 00 FB 42 C3 82 36 74 D1 84 69 53 46 5F AD A8 [13:33:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 48 A2 47 00 C9 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 63 45 02 00 F4 03 04 00 BD BE 5E 66 B6 04 01 00 00 00 61 95 28 9B C7 73 73 [13:33:14]CommunicateWithHost err = 0 [13:33:14]CheckOFDResponse [13:33:14]1017 (14) - 77093643461234 [13:33:14]1041 (16) - 0000000000875057 [13:33:14]1040 (4) - 148835 [13:33:14]1012 (4) - 04.06.2024 07:14 [13:33:14]1206 (1) - 0 [13:33:14]OFD Sender: Remove packet 148835 [13:33:14]ProducePacketName [13:33:14]name=ofd_packets/00148835 [13:33:14]NVStorageDeleteData [13:33:14]Write to MH i2c: 01 00 00 EA 07 F1 [13:33:14]Write i2c OK [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: 01 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: 01 07 00 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: 01 07 00 EA 07 00 00 00 00 00 60 0C 64 [13:33:14]RasterBufferAndPrint [13:33:14]line [13:33:14]line [13:33:14]line [13:33:14]line [13:33:14]line [13:33:14]written 0, free lines is 3172 [13:33:14]MH_Cut [13:33:14]Write to MH i2c: D1 01 00 F1 07 01 CA [13:33:14]Write i2c OK [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: D1 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: D1 01 00 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: D1 01 00 F1 07 00 C9 [13:33:14]Write to MH i2c: 01 00 00 F2 07 F9 [13:33:14]Write i2c OK [13:33:14]MH_I2C_Read... [13:33:15]OFD Sender: No OFD packet to send [13:33:15]*** Cut start [13:33:15]*** Partial cut [13:33:15]*** CUTSNS_PIN = 1 [13:33:15]*** CUTSNS_PIN = 0 [13:33:16]*** Brake cut motor [13:33:16]Read from MH i2c: 01 [13:33:16]MH_I2C_Read... [13:33:16]*** Stop cut motor [13:33:16]*** Cut end [13:33:16]Read from MH i2c: 01 07 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: 01 07 00 F2 07 00 00 00 00 00 FF 0F 0E [13:33:16]process_action close_receipt done [13:33:16]requested_data is exist [13:33:16]produce_requested_data [13:33:16]requested_item fm.sn is exist - process it [13:33:16]wFMCommunicate request_size=4 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 11 00 00 [13:33:16]Write to MH i2c: E2 08 00 F3 07 80 11 00 00 00 00 00 00 74 [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 17 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 17 00 F3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C7 [13:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:33:16]wFMCommunicate OK [13:33:16]requested_item fd.num is exist - process it [13:33:16]SAM_PROTO_GetFieldsCounters [13:33:16]wFMCommunicate request_size=4 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 13 00 00 [13:33:16]Write to MH i2c: E2 08 00 F4 07 80 13 00 00 00 00 00 00 77 [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 62 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 62 00 F4 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 63 45 02 00 0E 04 04 00 70 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 B8 [13:33:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 63 45 02 00 0E 04 04 00 70 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 [13:33:16]wFMCommunicate OK [13:33:16]SAM_PROTO_GetFieldsCounters done [13:33:16]requested_item shift.num is exist - process it [13:33:16]requested_item shift.opened is exist - process it [13:33:16]req_shift_opened [13:33:16]FM_GetShiftState [13:33:16]SAM_PROTO_GetShiftState [13:33:16]wFMCommunicate request_size=4 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 13 01 00 [13:33:16]Write to MH i2c: E2 08 00 F5 07 80 13 01 00 00 00 00 00 79 [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 0E 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 0E 00 F5 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3C [13:33:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:33:16]wFMCommunicate OK [13:33:16]SAM_PROTO_GetShiftState done [13:33:16]FM_GetShiftState done [13:33:16]req_shift_opened done [13:33:16]requested_item shift.open_date is exist - process it [13:33:16]req_shift_open_date [13:33:16]req_shift_open_date done [13:33:16]produce_requested_data done [13:33:16]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148835,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:33:16]process_action_free close_receipt [13:33:16]json_value_free [13:33:16]json_value_free done [13:33:16]process_json_proto returns [13:33:16]Send response to host [13:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148835,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:33:16]free response buf [13:33:16]execute_script done [13:33:16]execute_script returns [13:33:16]free content buf [13:33:16]Sock 7.Close socket [13:33:16]Sock 7.Thread stoped [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:06]accept exits with 9 [13:34:06]New connection [13:34:06]New thread 3067407716 created [13:34:06]Thread 3067264356 joined [13:34:06]Waiting for new connection... [13:34:06] Sock 9.Parse request [13:34:06]Sock 9.Check first char [13:34:06]Sock 9.First char is OK [13:34:06]request: POST /json_proto HTTP/1.0 [13:34:06]Method: POST [13:34:06]URL: /json_proto [13:34:06]Method is POST - this is cgi request [13:34:06]url: /json_proto [13:34:06]query_string will be loaded in cgi processing [13:34:06]execute_cgi json_proto POST (null) [13:34:06]execute_cgi path=json_proto method=POST [13:34:06]POST find Content-Length [13:34:06]Host: 172.17.38.4:8080 [13:34:06]Content-Length: 677 [13:34:06]Content-Type: application/json [13:34:06] [13:34:06]POST finish read [13:34:06]Found Content-Length = 677 [13:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.830, "sum" : 390.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:06]execute_script... [13:34: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)979764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.830, "sum" : 390.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:06]POST & json_proto [13:34:06]process_json_proto [13:34:06]json parsed OK: [13:34:06]protocol is kg_v1.0 [13:34:06]action value=close_receipt [13:34:06]process_action close_receipt [13:34:06]cmd_close_receipt [13:34:06]MH_GetDate [13:34:06]Write to MH i2c: F0 00 00 F6 07 EC [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: F0 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: F0 09 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: F0 09 00 F6 07 00 CF 17 5F 66 CC 51 87 64 A8 [13:34:06]GetLastDocTimeStamp 1717507993 [13:34:06]current date 1717508047 [13:34:06]FM_GetShiftState [13:34:06]SAM_PROTO_GetShiftState [13:34:06]wFMCommunicate request_size=4 [13:34:06]MH_SAM_APDU [13:34:06]CAPDU: 80 13 01 00 [13:34:06]Write to MH i2c: E2 08 00 F7 07 80 13 01 00 00 00 00 00 7B [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:06]Read from MH i2c: E2 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 0E 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 0E 00 F7 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3E [13:34:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:34:06]wFMCommunicate OK [13:34:06]SAM_PROTO_GetShiftState done [13:34:06]FM_GetShiftState done [13:34:06]opened in 1717460629 [13:34:06]opened+sec_in_day 1717547029 [13:34:06]quantity*price = 39002 [13:34:06]sum+1 = 39004 [13:34:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 390.00 Внесено: 390.00 СДАЧА: 0.00 НСП 1% : 3.45 НДС 12% : 41.42 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 175 04.06.2024 13:34 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148836 ФПД: 48390334208104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133407&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148836&fm=48390334208104&tin=02508201610067®Number=0000000000092720&sum=39000 [13:34:07]StoreToDocumentArchive [13:34:07]shift 368 fd 148836 [13:34:07]save to /storage/0368/doc_00148836 [13:34:07]save last doc name /storage/0368/doc_00148836 to /storage/kkm_last_doc_name [13:34:07]save OK [13:34:07]Clear old archive folders... [13:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:07]tlvbuf is 0046EC20 [13:34:07]SAM_PROTO_ClearQueue [13:34:07]wFMCommunicate request_size=4 [13:34:07]MH_SAM_APDU [13:34:07]CAPDU: 80 09 00 00 [13:34:07]Write to MH i2c: E2 08 00 04 08 80 09 00 00 00 00 00 00 7E [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:07]Read from MH i2c: E2 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 03 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [13:34:07]RAPDU: 90 00 [13:34:07]wFMCommunicate OK [13:34:07]SAM_PROTO_ClearQueue done [13:34:07]KKMCreateOFDPacket [13:34:07]OFDProtocolAddRootSTLVToBuf [13:34:07]FM_MakeSignedData [13:34:07]FM_MakeSignedData [13:34:07]SAM_PROTO_SignData [13:34:07]wFMCommunicate request_size=4 [13:34:07]MH_SAM_APDU [13:34:07]CAPDU: 80 0D 01 02 [13:34:07]Write to MH i2c: E2 08 00 05 08 80 0D 01 02 00 00 00 00 86 [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:07]Read from MH i2c: E2 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 03 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [13:34:07]RAPDU: 90 00 [13:34:07]wFMCommunicate OK [13:34:07]wFMCommunicate request_size=255 [13:34:07]MH_SAM_APDU [13:34:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CF 17 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 64 45 02 00 35 04 06 00 2C [13:34:07]Write to MH i2c: E2 02 01 06 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CF 17 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 64 45 02 00 35 04 06 00 2C 00 00 B0 [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:07]Read from MH i2c: E2 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 03 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 03 00 06 08 00 90 00 82 [13:34:07]RAPDU: 90 00 [13:34:07]wFMCommunicate OK [13:34:07]wFMCommunicate request_size=10 [13:34:07]MH_SAM_APDU [13:34:07]CAPDU: 80 0D 02 02 05 02 C0 AE 58 68 [13:34:07]Write to MH i2c: E2 0D 00 07 08 80 0D 02 02 05 00 02 C0 AE 58 68 00 00 C3 [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:08]Read from MH i2c: E2 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 03 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 03 00 07 08 00 90 00 83 [13:34:08]RAPDU: 90 00 [13:34:08]wFMCommunicate OK [13:34:08]wFMCommunicate request_size=4 [13:34:08]MH_SAM_APDU [13:34:08]CAPDU: 80 0D 03 02 [13:34:08]Write to MH i2c: E2 08 00 08 08 80 0D 03 02 00 00 00 00 8B [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:08]Read from MH i2c: E2 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 0B 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 0B 00 08 08 00 38 AC A6 37 63 58 C1 EC 90 00 B5 [13:34:08]RAPDU: 38 AC A6 37 63 58 C1 EC 90 00 [13:34:08]wFMCommunicate OK [13:34:08]SAM_PROTO_SignData done [13:34:08]FM_MakeSignedData done [13:34:08]CreateOFDProtocolMessage [13:34:08]wFMCommunicate request_size=4 [13:34:08]MH_SAM_APDU [13:34:08]CAPDU: 80 11 00 00 [13:34:08]Write to MH i2c: E2 08 00 09 08 80 11 00 00 00 00 00 00 8B [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:08]Read from MH i2c: E2 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 17 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: E2 17 00 09 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DE [13:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:34:08]wFMCommunicate OK [13:34:08]CreateOFDProtocolMessage done [13:34:08]OFDSenderStorePacket 148836 [13:34:08]StoreOFDPacket docnum=148836 [13:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 ED 94 07 01 D7 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 35 FF 03 08 00 03 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CF 17 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 64 45 02 00 35 04 06 00 2C 02 C0 AE 58 68 38 AC A6 37 63 58 C1 EC [13:34:08]CheckFolder [13:34:08]dirname=/storage/ofd_packets [13:34:08]CheckFolder done [13:34:08]ProducePacketName [13:34:08]name=ofd_packets/00148836 [13:34:08]NVStorageSaveData ofd_packets/00148836 [13:34:08]File name is /storage/ofd_packets/00148836 [13:34:08]Write 301 bytes [13:34:08]NVStorageSaveData done [13:34:08]OFDSenderStorePacket done [13:34:08]KKMCreateOFDPacket done [13:34:08]NVStorageSaveData kkm_last_timestamp [13:34:08]File name is /storage/kkm_last_timestamp [13:34:08]Write 4 bytes [13:34:08]NVStorageSaveData done [13:34:08]ExternCall_PrintAddStr [13:34:08]wPrintStart [13:34:08]Write to MH i2c: 01 00 00 0A 08 12 [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 07 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 07 00 0A 08 00 00 00 00 00 FF 0F 27 [13:34:08]RasterBufferAndPrint [13:34:08]line Счет N : (1)979764 [13:34:08]line ИНН: 02508201610067 [13:34:08]line Контрольно-Кассовый Чек [13:34:08]line ПРОДАЖА [13:34:08]line ТРК (МРК, ГНК) : 12 [13:34:08]line Товар: 2710124130 [13:34:08]line Аи-92-К-5 [13:34:08]line 5.830 * 66.90 [13:34:08]line = 390.03 [13:34:08]line НДС 12% НСП 1% [13:34:08]line > о реализуемом товаре [13:34:08]line ОКРУГЛЕНИЕ: -0.03 [13:34:08]line ИТОГО: 390.00 [13:34:08]line Внесено: 390.00 [13:34:08]line СДАЧА: 0.00 [13:34:08]line НСП 1% : 3.45 [13:34:08]line НДС 12% : 41.42 [13:34:08]line Наличными: 390.00 [13:34:08]line Безнал.: 0.00 [13:34:08]line Место: АЗС № 68 "Партнер Нефть" [13:34:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:34:08]line СНО: Общий режим [13:34:08]line Чек 175 04.06.2024 13:34 [13:34:08]line Смена: 368 ФФД: 1.0 [13:34:08]line ЗНМ: 0300000035 [13:34:08]line РНМ: 0000000000092720 [13:34:08]line Версия ККМ: 001 [13:34:08]line ФМ: 0000000000875057 [13:34:08]line ФД: 148836 [13:34:08]line ФПД: 48390334208104 [13:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133407&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148836&fm=48390334208104&tin=02508201610067®Number=0000000000092720&sum=39000 [13:34:08]OFD Sender: Processing packet 148836 [packets to send 100, broken 99] [13:34:08]ProducePacketName [13:34:08]name=ofd_packets/00148836 [13:34:08]OFD Sender: To server: pG, [13:34:08]CommunicateWithHost lk.salyk.kg:30040 [13:34:08]ConnectInit lk.salyk.kg [13:34:08]written 0, free lines is 4095 [13:34:08]Connected sock=10 [13:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 ED 94 07 01 D7 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 35 FF 03 08 00 03 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CF 17 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 64 45 02 00 35 04 06 00 2C 02 C0 AE 58 68 38 AC A6 37 63 58 C1 EC [13:34:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1F BD 47 00 AF B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 64 45 02 00 F4 03 04 00 F3 BE 5E 66 B6 04 01 00 00 BA 43 3A B8 A5 59 9E F8 [13:34:08]CommunicateWithHost err = 0 [13:34:08]CheckOFDResponse [13:34:08]1017 (14) - 77093643461234 [13:34:08]1041 (16) - 0000000000875057 [13:34:08]1040 (4) - 148836 [13:34:08]1012 (4) - 04.06.2024 07:14 [13:34:08]1206 (1) - 0 [13:34:08]OFD Sender: Remove packet 148836 [13:34:08]ProducePacketName [13:34:08]name=ofd_packets/00148836 [13:34:08]NVStorageDeleteData [13:34:08]Write to MH i2c: 01 00 00 35 08 3D [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 07 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: 01 07 00 35 08 00 00 00 00 00 68 0C B8 [13:34:08]RasterBufferAndPrint [13:34:08]line [13:34:08]line [13:34:08]line [13:34:08]line [13:34:08]line [13:34:08]written 0, free lines is 3179 [13:34:08]MH_Cut [13:34:08]Write to MH i2c: D1 01 00 3C 08 01 16 [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: D1 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: D1 01 00 [13:34:08]MH_I2C_Read... [13:34:08]Read from MH i2c: D1 01 00 3C 08 00 15 [13:34:08]Write to MH i2c: 01 00 00 3D 08 45 [13:34:08]Write i2c OK [13:34:08]MH_I2C_Read... [13:34:09]OFD Sender: No OFD packet to send [13:34:10]*** Cut start [13:34:10]*** Partial cut [13:34:10]*** CUTSNS_PIN = 1 [13:34:10]*** CUTSNS_PIN = 0 [13:34:10]*** Brake cut motor [13:34:10]Read from MH i2c: 01 [13:34:10]MH_I2C_Read... [13:34:10]*** Stop cut motor [13:34:10]*** Cut end [13:34:10]Read from MH i2c: 01 07 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: 01 07 00 3D 08 00 00 00 00 00 FF 0F 5A [13:34:10]process_action close_receipt done [13:34:10]requested_data is exist [13:34:10]produce_requested_data [13:34:10]requested_item fm.sn is exist - process it [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 11 00 00 [13:34:10]Write to MH i2c: E2 08 00 3E 08 80 11 00 00 00 00 00 00 C0 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 17 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 17 00 3E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 13 [13:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:34:10]wFMCommunicate OK [13:34:10]requested_item fd.num is exist - process it [13:34:10]SAM_PROTO_GetFieldsCounters [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 13 00 00 [13:34:10]Write to MH i2c: E2 08 00 3F 08 80 13 00 00 00 00 00 00 C3 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 62 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 62 00 3F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 64 45 02 00 0E 04 04 00 70 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 08 [13:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 64 45 02 00 0E 04 04 00 70 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 [13:34:11]wFMCommunicate OK [13:34:11]SAM_PROTO_GetFieldsCounters done [13:34:11]requested_item shift.num is exist - process it [13:34:11]requested_item shift.opened is exist - process it [13:34:11]req_shift_opened [13:34:11]FM_GetShiftState [13:34:11]SAM_PROTO_GetShiftState [13:34:11]wFMCommunicate request_size=4 [13:34:11]MH_SAM_APDU [13:34:11]CAPDU: 80 13 01 00 [13:34:11]Write to MH i2c: E2 08 00 40 08 80 13 01 00 00 00 00 00 C5 [13:34:11]Write i2c OK [13:34:11]MH_I2C_Read... [13:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:11]Read from MH i2c: E2 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: E2 0E 00 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: E2 0E 00 40 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 88 [13:34:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:34:11]wFMCommunicate OK [13:34:11]SAM_PROTO_GetShiftState done [13:34:11]FM_GetShiftState done [13:34:11]req_shift_opened done [13:34:11]requested_item shift.open_date is exist - process it [13:34:11]req_shift_open_date [13:34:11]req_shift_open_date done [13:34:11]produce_requested_data done [13:34:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148836,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:34:11]process_action_free close_receipt [13:34:11]json_value_free [13:34:11]json_value_free done [13:34:11]process_json_proto returns [13:34:11]Send response to host [13:34:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148836,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:34:11]free response buf [13:34:11]execute_script done [13:34:11]execute_script returns [13:34:11]free content buf [13:34:11]Sock 9.Close socket [13:34:11]Sock 9.Thread stoped [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:19]accept exits with 7 [13:36:19]New connection [13:36:19]New thread 3067264356 created [13:36:19]Thread 3067407716 joined [13:36:19]Waiting for new connection... [13:36:19] Sock 7.Parse request [13:36:19]Sock 7.Check first char [13:36:19]Sock 7.First char is OK [13:36:19]request: POST /json_proto HTTP/1.0 [13:36:19]Method: POST [13:36:19]URL: /json_proto [13:36:19]Method is POST - this is cgi request [13:36:19]url: /json_proto [13:36:19]query_string will be loaded in cgi processing [13:36:19]execute_cgi json_proto POST (null) [13:36:19]execute_cgi path=json_proto method=POST [13:36:19]POST find Content-Length [13:36:19]Host: 172.17.38.4:8080 [13:36:19]Content-Length: 677 [13:36:19]Content-Type: application/json [13:36:19] [13:36:19]POST finish read [13:36:19]Found Content-Length = 677 [13:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:19]execute_script... [13:36: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)979765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:19]POST & json_proto [13:36:19]process_json_proto [13:36:19]json parsed OK: [13:36:19]protocol is kg_v1.0 [13:36:19]action value=close_receipt [13:36:19]process_action close_receipt [13:36:19]cmd_close_receipt [13:36:19]MH_GetDate [13:36:19]Write to MH i2c: F0 00 00 41 08 38 [13:36:19]Write i2c OK [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: F0 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: F0 09 00 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: F0 09 00 41 08 00 54 18 5F 66 CC 51 87 64 7A [13:36:19]GetLastDocTimeStamp 1717508047 [13:36:19]current date 1717508180 [13:36:19]FM_GetShiftState [13:36:19]SAM_PROTO_GetShiftState [13:36:19]wFMCommunicate request_size=4 [13:36:19]MH_SAM_APDU [13:36:19]CAPDU: 80 13 01 00 [13:36:19]Write to MH i2c: E2 08 00 42 08 80 13 01 00 00 00 00 00 C7 [13:36:19]Write i2c OK [13:36:19]MH_I2C_Read... [13:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:19]Read from MH i2c: E2 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: E2 0E 00 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: E2 0E 00 42 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8A [13:36:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:36:19]wFMCommunicate OK [13:36:19]SAM_PROTO_GetShiftState done [13:36:19]FM_GetShiftState done [13:36:19]opened in 1717460629 [13:36:19]opened+sec_in_day 1717547029 [13:36:19]quantity*price = 20003 [13:36:19]sum+1 = 20004 [13:36:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 176 04.06.2024 13:36 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148837 ФПД: 144776935406056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133620&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148837&fm=144776935406056&tin=02508201610067®Number=0000000000092720&sum=20000 [13:36:20]StoreToDocumentArchive [13:36:20]shift 368 fd 148837 [13:36:20]save to /storage/0368/doc_00148837 [13:36:20]save last doc name /storage/0368/doc_00148837 to /storage/kkm_last_doc_name [13:36:20]save OK [13:36:20]Clear old archive folders... [13:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:20]tlvbuf is 004BE0F0 [13:36:20]SAM_PROTO_ClearQueue [13:36:20]wFMCommunicate request_size=4 [13:36:20]MH_SAM_APDU [13:36:20]CAPDU: 80 09 00 00 [13:36:20]Write to MH i2c: E2 08 00 4F 08 80 09 00 00 00 00 00 00 C9 [13:36:20]Write i2c OK [13:36:20]MH_I2C_Read... [13:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:20]Read from MH i2c: E2 [13:36:20]MH_I2C_Read... [13:36:20]Read from MH i2c: E2 03 00 [13:36:20]MH_I2C_Read... [13:36:20]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [13:36:20]RAPDU: 90 00 [13:36:20]wFMCommunicate OK [13:36:20]SAM_PROTO_ClearQueue done [13:36:20]KKMCreateOFDPacket [13:36:20]OFDProtocolAddRootSTLVToBuf [13:36:20]FM_MakeSignedData [13:36:20]FM_MakeSignedData [13:36:20]SAM_PROTO_SignData [13:36:20]wFMCommunicate request_size=4 [13:36:20]MH_SAM_APDU [13:36:20]CAPDU: 80 0D 01 02 [13:36:20]Write to MH i2c: E2 08 00 50 08 80 0D 01 02 00 00 00 00 D1 [13:36:20]Write i2c OK [13:36:20]MH_I2C_Read... [13:36:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:21]Read from MH i2c: E2 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: E2 03 00 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [13:36:21]RAPDU: 90 00 [13:36:21]wFMCommunicate OK [13:36:21]wFMCommunicate request_size=255 [13:36:21]MH_SAM_APDU [13:36:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 54 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 65 45 02 00 35 04 06 00 83 [13:36:21]Write to MH i2c: E2 02 01 51 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 54 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 65 45 02 00 35 04 06 00 83 00 00 9E [13:36:21]Write i2c OK [13:36:21]MH_I2C_Read... [13:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:21]Read from MH i2c: E2 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: E2 03 00 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [13:36:21]RAPDU: 90 00 [13:36:21]wFMCommunicate OK [13:36:21]wFMCommunicate request_size=10 [13:36:21]MH_SAM_APDU [13:36:21]CAPDU: 80 0D 02 02 05 AC 81 CE 79 E8 [13:36:21]Write to MH i2c: E2 0D 00 52 08 80 0D 02 02 05 00 AC 81 CE 79 E8 00 00 3A [13:36:21]Write i2c OK [13:36:21]MH_I2C_Read... [13:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:21]Read from MH i2c: E2 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: E2 03 00 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: E2 03 00 52 08 00 90 00 CE [13:36:21]RAPDU: 90 00 [13:36:21]wFMCommunicate OK [13:36:21]wFMCommunicate request_size=4 [13:36:21]MH_SAM_APDU [13:36:21]CAPDU: 80 0D 03 02 [13:36:21]Write to MH i2c: E2 08 00 53 08 80 0D 03 02 00 00 00 00 D6 [13:36:21]Write i2c OK [13:36:21]MH_I2C_Read... [13:36:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:21]Read from MH i2c: E2 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: E2 0B 00 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: E2 0B 00 53 08 00 3E 05 1D D4 73 F3 34 7D 90 00 22 [13:36:21]RAPDU: 3E 05 1D D4 73 F3 34 7D 90 00 [13:36:21]wFMCommunicate OK [13:36:21]SAM_PROTO_SignData done [13:36:21]FM_MakeSignedData done [13:36:21]CreateOFDProtocolMessage [13:36:21]wFMCommunicate request_size=4 [13:36:21]MH_SAM_APDU [13:36:21]CAPDU: 80 11 00 00 [13:36:21]Write to MH i2c: E2 08 00 54 08 80 11 00 00 00 00 00 00 D6 [13:36:21]Write i2c OK [13:36:21]MH_I2C_Read... [13:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:21]Read from MH i2c: E2 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: E2 17 00 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: E2 17 00 54 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 29 [13:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:36:21]wFMCommunicate OK [13:36:21]CreateOFDProtocolMessage done [13:36:21]OFDSenderStorePacket 148837 [13:36:21]StoreOFDPacket docnum=148837 [13:36:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C5 F1 07 01 09 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B0 00 00 00 F4 03 04 00 54 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 65 45 02 00 35 04 06 00 83 AC 81 CE 79 E8 3E 05 1D D4 73 F3 34 7D [13:36:21]CheckFolder [13:36:21]dirname=/storage/ofd_packets [13:36:21]CheckFolder done [13:36:21]ProducePacketName [13:36:21]name=ofd_packets/00148837 [13:36:21]NVStorageSaveData ofd_packets/00148837 [13:36:21]File name is /storage/ofd_packets/00148837 [13:36:21]Write 301 bytes [13:36:21]NVStorageSaveData done [13:36:21]OFDSenderStorePacket done [13:36:21]KKMCreateOFDPacket done [13:36:21]NVStorageSaveData kkm_last_timestamp [13:36:21]File name is /storage/kkm_last_timestamp [13:36:21]Write 4 bytes [13:36:21]NVStorageSaveData done [13:36:21]ExternCall_PrintAddStr [13:36:21]wPrintStart [13:36:21]Write to MH i2c: 01 00 00 55 08 5D [13:36:21]Write i2c OK [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: 01 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: 01 07 00 [13:36:21]MH_I2C_Read... [13:36:21]Read from MH i2c: 01 07 00 55 08 00 00 00 00 00 FF 0F 72 [13:36:21]RasterBufferAndPrint [13:36:21]line Счет N : (1)979765 [13:36:21]line ИНН: 02508201610067 [13:36:21]line Контрольно-Кассовый Чек [13:36:21]line ПРОДАЖА [13:36:21]line ТРК (МРК, ГНК) : 12 [13:36:21]line Товар: 2710124130 [13:36:21]line Аи-92-К-5 [13:36:21]line 2.990 * 66.90 [13:36:21]line = 200.03 [13:36:21]line НДС 12% НСП 1% [13:36:21]line > о реализуемом товаре [13:36:21]line ОКРУГЛЕНИЕ: -0.03 [13:36:21]line ИТОГО: 200.00 [13:36:21]line Внесено: 200.00 [13:36:21]line СДАЧА: 0.00 [13:36:21]line НСП 1% : 1.77 [13:36:21]line НДС 12% : 21.24 [13:36:21]line Наличными: 200.00 [13:36:21]line Безнал.: 0.00 [13:36:21]line Место: АЗС № 68 "Партнер Нефть" [13:36:21]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:36:21]line СНО: Общий режим [13:36:21]line Чек 176 04.06.2024 13:36 [13:36:21]line Смена: 368 ФФД: 1.0 [13:36:21]line ЗНМ: 0300000035 [13:36:21]line РНМ: 0000000000092720 [13:36:21]line Версия ККМ: 001 [13:36:21]line ФМ: 0000000000875057 [13:36:21]line ФД: 148837 [13:36:21]line ФПД: 144776935406056 [13:36:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133620&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148837&fm=144776935406056&tin=02508201610067®Number=0000000000092720&sum=20000 [13:36:21]OFD Sender: Processing packet 148837 [packets to send 100, broken 99] [13:36:21]ProducePacketName [13:36:21]name=ofd_packets/00148837 [13:36:21]OFD Sender: To server: pG, [13:36:21]CommunicateWithHost lk.salyk.kg:30040 [13:36:21]ConnectInit lk.salyk.kg [13:36:21]written 0, free lines is 4095 [13:36:22]Write to MH i2c: 01 00 00 80 08 88 [13:36:22]Write i2c OK [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: 01 [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: 01 07 00 [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: 01 07 00 80 08 00 00 00 00 00 65 0C 00 [13:36:22]RasterBufferAndPrint [13:36:22]line [13:36:22]line [13:36:22]line [13:36:22]line [13:36:22]line [13:36:22]written 0, free lines is 3176 [13:36:22]MH_Cut [13:36:22]Write to MH i2c: D1 01 00 87 08 01 61 [13:36:22]Write i2c OK [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: D1 [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: D1 01 00 [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: D1 01 00 87 08 00 60 [13:36:22]Write to MH i2c: 01 00 00 88 08 90 [13:36:22]Write i2c OK [13:36:22]MH_I2C_Read... [13:36:23]*** Cut start [13:36:23]*** Partial cut [13:36:23]*** CUTSNS_PIN = 1 [13:36:23]*** CUTSNS_PIN = 0 [13:36:23]*** Brake cut motor [13:36:24]Read from MH i2c: 01 [13:36:24]MH_I2C_Read... [13:36:24]*** Stop cut motor [13:36:24]*** Cut end [13:36:24]Read from MH i2c: 01 07 00 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: 01 07 00 88 08 00 00 00 00 00 FF 0F A5 [13:36:24]process_action close_receipt done [13:36:24]requested_data is exist [13:36:24]produce_requested_data [13:36:24]requested_item fm.sn is exist - process it [13:36:24]wFMCommunicate request_size=4 [13:36:24]MH_SAM_APDU [13:36:24]CAPDU: 80 11 00 00 [13:36:24]Write to MH i2c: E2 08 00 89 08 80 11 00 00 00 00 00 00 0B [13:36:24]Write i2c OK [13:36:24]MH_I2C_Read... [13:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:24]Read from MH i2c: E2 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 17 00 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 17 00 89 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5E [13:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:36:24]wFMCommunicate OK [13:36:24]requested_item fd.num is exist - process it [13:36:24]SAM_PROTO_GetFieldsCounters [13:36:24]wFMCommunicate request_size=4 [13:36:24]MH_SAM_APDU [13:36:24]CAPDU: 80 13 00 00 [13:36:24]Write to MH i2c: E2 08 00 8A 08 80 13 00 00 00 00 00 00 0E [13:36:24]Write i2c OK [13:36:24]MH_I2C_Read... [13:36:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:24]Read from MH i2c: E2 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 62 00 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 62 00 8A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 65 45 02 00 0E 04 04 00 70 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 57 [13:36:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 65 45 02 00 0E 04 04 00 70 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 [13:36:24]wFMCommunicate OK [13:36:24]SAM_PROTO_GetFieldsCounters done [13:36:24]requested_item shift.num is exist - process it [13:36:24]requested_item shift.opened is exist - process it [13:36:24]req_shift_opened [13:36:24]FM_GetShiftState [13:36:24]SAM_PROTO_GetShiftState [13:36:24]wFMCommunicate request_size=4 [13:36:24]MH_SAM_APDU [13:36:24]CAPDU: 80 13 01 00 [13:36:24]Write to MH i2c: E2 08 00 8B 08 80 13 01 00 00 00 00 00 10 [13:36:24]Write i2c OK [13:36:24]MH_I2C_Read... [13:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:24]Read from MH i2c: E2 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 0E 00 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 0E 00 8B 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D3 [13:36:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:36:24]wFMCommunicate OK [13:36:24]SAM_PROTO_GetShiftState done [13:36:24]FM_GetShiftState done [13:36:24]req_shift_opened done [13:36:24]requested_item shift.open_date is exist - process it [13:36:24]req_shift_open_date [13:36:24]req_shift_open_date done [13:36:24]produce_requested_data done [13:36:24]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148837,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:36:24]process_action_free close_receipt [13:36:24]json_value_free [13:36:24]json_value_free done [13:36:24]process_json_proto returns [13:36:24]Send response to host [13:36:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148837,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:36:24]free response buf [13:36:24]execute_script done [13:36:24]execute_script returns [13:36:24]free content buf [13:36:24]Sock 7.Close socket [13:36:24]Sock 7.Thread stoped [13:38:21]accept exits with 9 [13:38:21]New connection [13:38:21]New thread 3067407716 created [13:38:21]Thread 3067264356 joined [13:38:21]Waiting for new connection... [13:38:21] Sock 9.Parse request [13:38:21]Sock 9.Check first char [13:38:21]Sock 9.First char is OK [13:38:21]request: POST /json_proto HTTP/1.0 [13:38:21]Method: POST [13:38:21]URL: /json_proto [13:38:21]Method is POST - this is cgi request [13:38:21]url: /json_proto [13:38:21]query_string will be loaded in cgi processing [13:38:21]execute_cgi json_proto POST (null) [13:38:21]execute_cgi path=json_proto method=POST [13:38:21]POST find Content-Length [13:38:21]Host: 172.17.38.4:8080 [13:38:21]Content-Length: 677 [13:38:21]Content-Type: application/json [13:38:21] [13:38:21]POST finish read [13:38:21]Found Content-Length = 677 [13:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:21]execute_script... [13:38: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)979766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:21]POST & json_proto [13:38:21]process_json_proto [13:38:21]json parsed OK: [13:38:21]protocol is kg_v1.0 [13:38:21]action value=close_receipt [13:38:21]process_action close_receipt [13:38:21]cmd_close_receipt [13:38:21]MH_GetDate [13:38:21]Write to MH i2c: F0 00 00 8C 08 83 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: F0 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: F0 09 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: F0 09 00 8C 08 00 CE 18 5F 66 CC 51 87 64 3F [13:38:21]GetLastDocTimeStamp 1717508180 [13:38:21]current date 1717508302 [13:38:21]FM_GetShiftState [13:38:21]SAM_PROTO_GetShiftState [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 13 01 00 [13:38:21]Write to MH i2c: E2 08 00 8D 08 80 13 01 00 00 00 00 00 12 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 0E 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 0E 00 8D 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D5 [13:38:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:38:21]wFMCommunicate OK [13:38:21]SAM_PROTO_GetShiftState done [13:38:21]FM_GetShiftState done [13:38:21]opened in 1717460629 [13:38:21]opened+sec_in_day 1717547029 [13:38:21]quantity*price = 40006 [13:38:21]sum+1 = 40007 [13:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 177 04.06.2024 13:38 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148838 ФПД: 252894745411317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133822&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148838&fm=252894745411317&tin=02508201610067®Number=0000000000092720&sum=40000 [13:38:22]StoreToDocumentArchive [13:38:22]shift 368 fd 148838 [13:38:22]save to /storage/0368/doc_00148838 [13:38:22]save last doc name /storage/0368/doc_00148838 to /storage/kkm_last_doc_name [13:38:22]save OK [13:38:22]Clear old archive folders... [13:38:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:22]tlvbuf is 004A8150 [13:38:22]SAM_PROTO_ClearQueue [13:38:22]wFMCommunicate request_size=4 [13:38:22]MH_SAM_APDU [13:38:22]CAPDU: 80 09 00 00 [13:38:22]Write to MH i2c: E2 08 00 9A 08 80 09 00 00 00 00 00 00 14 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:22]Read from MH i2c: E2 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 03 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 03 00 9A 08 00 90 00 16 [13:38:22]RAPDU: 90 00 [13:38:22]wFMCommunicate OK [13:38:22]SAM_PROTO_ClearQueue done [13:38:22]KKMCreateOFDPacket [13:38:22]OFDProtocolAddRootSTLVToBuf [13:38:22]FM_MakeSignedData [13:38:22]FM_MakeSignedData [13:38:22]SAM_PROTO_SignData [13:38:22]wFMCommunicate request_size=4 [13:38:22]MH_SAM_APDU [13:38:22]CAPDU: 80 0D 01 02 [13:38:22]Write to MH i2c: E2 08 00 9B 08 80 0D 01 02 00 00 00 00 1C [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:22]Read from MH i2c: E2 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 03 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [13:38:22]RAPDU: 90 00 [13:38:22]wFMCommunicate OK [13:38:22]wFMCommunicate request_size=255 [13:38:22]MH_SAM_APDU [13:38:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CE 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 66 45 02 00 35 04 06 00 E6 [13:38:22]Write to MH i2c: E2 02 01 9C 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B1 00 00 00 F4 03 04 00 CE 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 66 45 02 00 35 04 06 00 E6 00 00 D5 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:22]Read from MH i2c: E2 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 03 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 03 00 9C 08 00 90 00 18 [13:38:22]RAPDU: 90 00 [13:38:22]wFMCommunicate OK [13:38:22]wFMCommunicate request_size=10 [13:38:22]MH_SAM_APDU [13:38:22]CAPDU: 80 0D 02 02 05 01 A5 77 3E F5 [13:38:22]Write to MH i2c: E2 0D 00 9D 08 80 0D 02 02 05 00 01 A5 77 3E F5 00 00 79 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:22]Read from MH i2c: E2 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 03 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 03 00 9D 08 00 90 00 19 [13:38:22]RAPDU: 90 00 [13:38:22]wFMCommunicate OK [13:38:22]wFMCommunicate request_size=4 [13:38:22]MH_SAM_APDU [13:38:22]CAPDU: 80 0D 03 02 [13:38:22]Write to MH i2c: E2 08 00 9E 08 80 0D 03 02 00 00 00 00 21 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:22]Read from MH i2c: E2 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 0B 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: E2 0B 00 9E 08 00 4F 52 E4 E6 89 05 BA A9 90 00 7E [13:38:22]RAPDU: 4F 52 E4 E6 89 05 BA A9 90 00 [13:38:22]wFMCommunicate OK [13:38:22]SAM_PROTO_SignData done [13:38:22]FM_MakeSignedData done [13:38:22]CreateOFDProtocolMessage [13:38:22]wFMCommunicate request_size=4 [13:38:22]MH_SAM_APDU [13:38:22]CAPDU: 80 11 00 00 [13:38:22]Write to MH i2c: E2 08 00 9F 08 80 11 00 00 00 00 00 00 21 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 17 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 17 00 9F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 74 [13:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:38:23]wFMCommunicate OK [13:38:23]CreateOFDProtocolMessage done [13:38:23]OFDSenderStorePacket 148838 [13:38:23]StoreOFDPacket docnum=148838 [13:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FC E5 07 01 CE 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B1 00 00 00 F4 03 04 00 CE 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 66 45 02 00 35 04 06 00 E6 01 A5 77 3E F5 4F 52 E4 E6 89 05 BA A9 [13:38:23]CheckFolder [13:38:23]dirname=/storage/ofd_packets [13:38:23]CheckFolder done [13:38:23]ProducePacketName [13:38:23]name=ofd_packets/00148838 [13:38:23]NVStorageSaveData ofd_packets/00148838 [13:38:23]File name is /storage/ofd_packets/00148838 [13:38:23]Write 301 bytes [13:38:23]NVStorageSaveData done [13:38:23]OFDSenderStorePacket done [13:38:23]KKMCreateOFDPacket done [13:38:23]NVStorageSaveData kkm_last_timestamp [13:38:23]File name is /storage/kkm_last_timestamp [13:38:23]Write 4 bytes [13:38:23]NVStorageSaveData done [13:38:23]ExternCall_PrintAddStr [13:38:23]wPrintStart [13:38:23]Write to MH i2c: 01 00 00 A0 08 A8 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 07 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 07 00 A0 08 00 00 00 00 00 FF 0F BD [13:38:23]RasterBufferAndPrint [13:38:23]line Счет N : (1)979766 [13:38:23]line ИНН: 02508201610067 [13:38:23]line Контрольно-Кассовый Чек [13:38:23]line ПРОДАЖА [13:38:23]line ТРК (МРК, ГНК) : 31 [13:38:23]line Товар: 2710124130 [13:38:23]line Аи-92-К-5 [13:38:23]line 5.980 * 66.90 [13:38:23]line = 400.06 [13:38:23]line НДС 12% НСП 1% [13:38:23]line > о реализуемом товаре [13:38:23]line ОКРУГЛЕНИЕ: -0.06 [13:38:23]line ИТОГО: 400.00 [13:38:23]line Внесено: 400.00 [13:38:23]line СДАЧА: 0.00 [13:38:23]line НСП 1% : 3.54 [13:38:23]line НДС 12% : 42.48 [13:38:23]line Наличными: 400.00 [13:38:23]line Безнал.: 0.00 [13:38:23]line Место: АЗС № 68 "Партнер Нефть" [13:38:23]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:38:23]line СНО: Общий режим [13:38:23]line Чек 177 04.06.2024 13:38 [13:38:23]line Смена: 368 ФФД: 1.0 [13:38:23]line ЗНМ: 0300000035 [13:38:23]line РНМ: 0000000000092720 [13:38:23]line Версия ККМ: 001 [13:38:23]line ФМ: 0000000000875057 [13:38:23]line ФД: 148838 [13:38:23]line ФПД: 252894745411317 [13:38:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133822&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148838&fm=252894745411317&tin=02508201610067®Number=0000000000092720&sum=40000 [13:38:23]written 0, free lines is 4095 [13:38:23]Write to MH i2c: 01 00 00 CB 08 D3 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 07 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 07 00 CB 08 00 00 00 00 00 64 0C 4A [13:38:23]RasterBufferAndPrint [13:38:23]line [13:38:23]line [13:38:23]line [13:38:23]line [13:38:23]line [13:38:23]written 0, free lines is 3175 [13:38:23]MH_Cut [13:38:23]Write to MH i2c: D1 01 00 D2 08 01 AC [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: D1 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: D1 01 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: D1 01 00 D2 08 00 AB [13:38:23]Write to MH i2c: 01 00 00 D3 08 DB [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:25]*** Cut start [13:38:25]*** Partial cut [13:38:25]*** CUTSNS_PIN = 1 [13:38:25]*** CUTSNS_PIN = 0 [13:38:25]*** Brake cut motor [13:38:25]Read from MH i2c: 01 [13:38:25]MH_I2C_Read... [13:38:25]*** Stop cut motor [13:38:25]*** Cut end [13:38:25]Read from MH i2c: 01 07 00 [13:38:25]MH_I2C_Read... [13:38:25]Read from MH i2c: 01 07 00 D3 08 00 00 00 00 00 FF 0F F0 [13:38:25]process_action close_receipt done [13:38:25]requested_data is exist [13:38:25]produce_requested_data [13:38:25]requested_item fm.sn is exist - process it [13:38:25]wFMCommunicate request_size=4 [13:38:25]MH_SAM_APDU [13:38:25]CAPDU: 80 11 00 00 [13:38:25]Write to MH i2c: E2 08 00 D4 08 80 11 00 00 00 00 00 00 56 [13:38:25]Write i2c OK [13:38:25]MH_I2C_Read... [13:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:25]Read from MH i2c: E2 [13:38:25]MH_I2C_Read... [13:38:25]Read from MH i2c: E2 17 00 [13:38:25]MH_I2C_Read... [13:38:25]Read from MH i2c: E2 17 00 D4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A9 [13:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:38:25]wFMCommunicate OK [13:38:25]requested_item fd.num is exist - process it [13:38:25]SAM_PROTO_GetFieldsCounters [13:38:25]wFMCommunicate request_size=4 [13:38:25]MH_SAM_APDU [13:38:25]CAPDU: 80 13 00 00 [13:38:25]Write to MH i2c: E2 08 00 D5 08 80 13 00 00 00 00 00 00 59 [13:38:25]Write i2c OK [13:38:25]MH_I2C_Read... [13:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:25]Read from MH i2c: E2 [13:38:25]MH_I2C_Read... [13:38:25]Read from MH i2c: E2 62 00 [13:38:25]MH_I2C_Read... [13:38:25]Read from MH i2c: E2 62 00 D5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 66 45 02 00 0E 04 04 00 70 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 A6 [13:38:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 66 45 02 00 0E 04 04 00 70 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 [13:38:25]wFMCommunicate OK [13:38:25]SAM_PROTO_GetFieldsCounters done [13:38:25]requested_item shift.num is exist - process it [13:38:25]requested_item shift.opened is exist - process it [13:38:25]req_shift_opened [13:38:25]FM_GetShiftState [13:38:25]SAM_PROTO_GetShiftState [13:38:25]wFMCommunicate request_size=4 [13:38:25]MH_SAM_APDU [13:38:25]CAPDU: 80 13 01 00 [13:38:25]Write to MH i2c: E2 08 00 D6 08 80 13 01 00 00 00 00 00 5B [13:38:25]Write i2c OK [13:38:25]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 0E 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 0E 00 D6 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1E [13:38:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:38:26]wFMCommunicate OK [13:38:26]SAM_PROTO_GetShiftState done [13:38:26]FM_GetShiftState done [13:38:26]req_shift_opened done [13:38:26]requested_item shift.open_date is exist - process it [13:38:26]req_shift_open_date [13:38:26]req_shift_open_date done [13:38:26]produce_requested_data done [13:38:26]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148838,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:38:26]process_action_free close_receipt [13:38:26]json_value_free [13:38:26]json_value_free done [13:38:26]process_json_proto returns [13:38:26]Send response to host [13:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148838,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:38:26]free response buf [13:38:26]execute_script done [13:38:26]execute_script returns [13:38:26]free content buf [13:38:26]Sock 9.Close socket [13:38:26]Sock 9.Thread stoped [13:38:31]ConnectInit Can't connect to host [13:38:31]CommunicateWithHost connect error [13:38:31]CommunicateWithHost err = -1 [13:38:31]OFD Sender: Server communicate error [13:38:31]OFD Sender: Processing packet 148837 [packets to send 101, broken 99] [13:38:31]ProducePacketName [13:38:31]name=ofd_packets/00148837 [13:38:31]OFD Sender: To server: pG, [13:38:31]CommunicateWithHost lk.salyk.kg:30040 [13:38:31]ConnectInit lk.salyk.kg [13:38:31]Connected sock=9 [13:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C5 F1 07 01 09 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B0 00 00 00 F4 03 04 00 54 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 65 45 02 00 35 04 06 00 83 AC 81 CE 79 E8 3E 05 1D D4 73 F3 34 7D [13:38:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 EB 31 47 00 3E 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 65 45 02 00 F4 03 04 00 FA BF 5E 66 B6 04 01 00 00 50 8F 9F 45 E4 A8 BF AD [13:38:31]CommunicateWithHost err = 0 [13:38:31]CheckOFDResponse [13:38:31]1017 (14) - 77093643461234 [13:38:31]1041 (16) - 0000000000875057 [13:38:31]1040 (4) - 148837 [13:38:31]1012 (4) - 04.06.2024 07:19 [13:38:31]1206 (1) - 0 [13:38:31]OFD Sender: Remove packet 148837 [13:38:31]ProducePacketName [13:38:31]name=ofd_packets/00148837 [13:38:31]NVStorageDeleteData [13:38:32]OFD Sender: Processing packet 148838 [packets to send 100, broken 99] [13:38:32]ProducePacketName [13:38:32]name=ofd_packets/00148838 [13:38:32]OFD Sender: To server: pG, [13:38:32]CommunicateWithHost lk.salyk.kg:30040 [13:38:32]ConnectInit lk.salyk.kg [13:38:32]Connected sock=9 [13:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FC E5 07 01 CE 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B1 00 00 00 F4 03 04 00 CE 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 66 45 02 00 35 04 06 00 E6 01 A5 77 3E F5 4F 52 E4 E6 89 05 BA A9 [13:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8D 49 47 00 25 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 66 45 02 00 F4 03 04 00 FA BF 5E 66 B6 04 01 00 00 20 62 61 DC 2C 72 4C A6 [13:38:32]CommunicateWithHost err = 0 [13:38:32]CheckOFDResponse [13:38:32]1017 (14) - 77093643461234 [13:38:32]1041 (16) - 0000000000875057 [13:38:32]1040 (4) - 148838 [13:38:32]1012 (4) - 04.06.2024 07:19 [13:38:32]1206 (1) - 0 [13:38:32]OFD Sender: Remove packet 148838 [13:38:32]ProducePacketName [13:38:32]name=ofd_packets/00148838 [13:38:32]NVStorageDeleteData [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:03]accept exits with 7 [13:39:03]New connection [13:39:03]New thread 3067264356 created [13:39:03]Thread 3067407716 joined [13:39:03]Waiting for new connection... [13:39:03] Sock 7.Parse request [13:39:03]Sock 7.Check first char [13:39:03]Sock 7.First char is OK [13:39:03]request: POST /json_proto HTTP/1.0 [13:39:03]Method: POST [13:39:03]URL: /json_proto [13:39:03]Method is POST - this is cgi request [13:39:03]url: /json_proto [13:39:03]query_string will be loaded in cgi processing [13:39:03]execute_cgi json_proto POST (null) [13:39:03]execute_cgi path=json_proto method=POST [13:39:03]POST find Content-Length [13:39:03]Host: 172.17.38.4:8080 [13:39:03]Content-Length: 674 [13:39:03]Content-Type: application/json [13:39:03] [13:39:03]POST finish read [13:39:03]Found Content-Length = 674 [13:39:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 3.430, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:03]execute_script... [13:39: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)979767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 3.430, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:03]POST & json_proto [13:39:03]process_json_proto [13:39:03]json parsed OK: [13:39:03]protocol is kg_v1.0 [13:39:03]action value=close_receipt [13:39:03]process_action close_receipt [13:39:03]cmd_close_receipt [13:39:03]MH_GetDate [13:39:03]Write to MH i2c: F0 00 00 D7 08 CE [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: F0 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: F0 09 00 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: F0 09 00 D7 08 00 F8 18 5F 66 CC 51 87 64 B4 [13:39:03]GetLastDocTimeStamp 1717508302 [13:39:03]current date 1717508344 [13:39:03]FM_GetShiftState [13:39:03]SAM_PROTO_GetShiftState [13:39:03]wFMCommunicate request_size=4 [13:39:03]MH_SAM_APDU [13:39:03]CAPDU: 80 13 01 00 [13:39:03]Write to MH i2c: E2 08 00 D8 08 80 13 01 00 00 00 00 00 5D [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:03]Read from MH i2c: E2 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: E2 0E 00 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: E2 0E 00 D8 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 20 [13:39:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:39:03]wFMCommunicate OK [13:39:03]SAM_PROTO_GetShiftState done [13:39:03]FM_GetShiftState done [13:39:03]opened in 1717460629 [13:39:03]opened+sec_in_day 1717547029 [13:39:03]quantity*price = 25004 [13:39:03]sum+1 = 25006 [13:39:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 178 04.06.2024 13:39 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148839 ФПД: 155898236903445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133904&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148839&fm=155898236903445&tin=02508201610067®Number=0000000000092720&sum=25000 [13:39:04]StoreToDocumentArchive [13:39:04]shift 368 fd 148839 [13:39:04]save to /storage/0368/doc_00148839 [13:39:04]save last doc name /storage/0368/doc_00148839 to /storage/kkm_last_doc_name [13:39:04]save OK [13:39:04]Clear old archive folders... [13:39:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:39:04]tlvbuf is 004BA7E0 [13:39:04]SAM_PROTO_ClearQueue [13:39:04]wFMCommunicate request_size=4 [13:39:04]MH_SAM_APDU [13:39:04]CAPDU: 80 09 00 00 [13:39:04]Write to MH i2c: E2 08 00 E5 08 80 09 00 00 00 00 00 00 5F [13:39:04]Write i2c OK [13:39:04]MH_I2C_Read... [13:39:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:04]Read from MH i2c: E2 [13:39:04]MH_I2C_Read... [13:39:04]Read from MH i2c: E2 03 00 [13:39:04]MH_I2C_Read... [13:39:04]Read from MH i2c: E2 03 00 E5 08 00 90 00 61 [13:39:04]RAPDU: 90 00 [13:39:04]wFMCommunicate OK [13:39:04]SAM_PROTO_ClearQueue done [13:39:04]KKMCreateOFDPacket [13:39:04]OFDProtocolAddRootSTLVToBuf [13:39:04]FM_MakeSignedData [13:39:04]FM_MakeSignedData [13:39:04]SAM_PROTO_SignData [13:39:04]wFMCommunicate request_size=4 [13:39:04]MH_SAM_APDU [13:39:04]CAPDU: 80 0D 01 02 [13:39:04]Write to MH i2c: E2 08 00 E6 08 80 0D 01 02 00 00 00 00 67 [13:39:04]Write i2c OK [13:39:04]MH_I2C_Read... [13:39:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:04]Read from MH i2c: E2 [13:39:04]MH_I2C_Read... [13:39:04]Read from MH i2c: E2 03 00 [13:39:04]MH_I2C_Read... [13:39:04]Read from MH i2c: E2 03 00 E6 08 00 90 00 62 [13:39:04]RAPDU: 90 00 [13:39:04]wFMCommunicate OK [13:39:04]wFMCommunicate request_size=255 [13:39:04]MH_SAM_APDU [13:39:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F8 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 67 45 02 00 35 04 06 00 8D C9 E3 08 [13:39:04]Write to MH i2c: E2 02 01 E7 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F8 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 67 45 02 00 35 04 06 00 8D C9 E3 08 00 00 15 [13:39:04]Write i2c OK [13:39:04]MH_I2C_Read... [13:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:05]Read from MH i2c: E2 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 03 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 03 00 E7 08 00 90 00 63 [13:39:05]RAPDU: 90 00 [13:39:05]wFMCommunicate OK [13:39:05]wFMCommunicate request_size=7 [13:39:05]MH_SAM_APDU [13:39:05]CAPDU: 80 0D 02 02 02 20 15 [13:39:05]Write to MH i2c: E2 0A 00 E8 08 80 0D 02 02 02 00 20 15 00 00 A3 [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:05]Read from MH i2c: E2 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 03 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 03 00 E8 08 00 90 00 64 [13:39:05]RAPDU: 90 00 [13:39:05]wFMCommunicate OK [13:39:05]wFMCommunicate request_size=4 [13:39:05]MH_SAM_APDU [13:39:05]CAPDU: 80 0D 03 02 [13:39:05]Write to MH i2c: E2 08 00 E9 08 80 0D 03 02 00 00 00 00 6C [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:05]Read from MH i2c: E2 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 0B 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 0B 00 E9 08 00 9F B2 B0 4C B8 40 1C 10 90 00 DE [13:39:05]RAPDU: 9F B2 B0 4C B8 40 1C 10 90 00 [13:39:05]wFMCommunicate OK [13:39:05]SAM_PROTO_SignData done [13:39:05]FM_MakeSignedData done [13:39:05]CreateOFDProtocolMessage [13:39:05]wFMCommunicate request_size=4 [13:39:05]MH_SAM_APDU [13:39:05]CAPDU: 80 11 00 00 [13:39:05]Write to MH i2c: E2 08 00 EA 08 80 11 00 00 00 00 00 00 6C [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:05]Read from MH i2c: E2 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 17 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 17 00 EA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BF [13:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:39:05]wFMCommunicate OK [13:39:05]CreateOFDProtocolMessage done [13:39:05]OFDSenderStorePacket 148839 [13:39:05]StoreOFDPacket docnum=148839 [13:39:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 1B 4C 04 01 08 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F8 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 67 45 02 00 35 04 06 00 8D C9 E3 08 20 15 9F B2 B0 4C B8 40 1C 10 [13:39:05]CheckFolder [13:39:05]dirname=/storage/ofd_packets [13:39:05]CheckFolder done [13:39:05]ProducePacketName [13:39:05]name=ofd_packets/00148839 [13:39:05]NVStorageSaveData ofd_packets/00148839 [13:39:05]File name is /storage/ofd_packets/00148839 [13:39:05]Write 298 bytes [13:39:05]NVStorageSaveData done [13:39:05]OFDSenderStorePacket done [13:39:05]KKMCreateOFDPacket done [13:39:05]NVStorageSaveData kkm_last_timestamp [13:39:05]File name is /storage/kkm_last_timestamp [13:39:05]Write 4 bytes [13:39:05]NVStorageSaveData done [13:39:05]ExternCall_PrintAddStr [13:39:05]wPrintStart [13:39:05]Write to MH i2c: 01 00 00 EB 08 F3 [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: 01 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: 01 07 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: 01 07 00 EB 08 00 00 00 00 00 FF 0F 08 [13:39:05]RasterBufferAndPrint [13:39:05]line Счет N : (1)979767 [13:39:05]line ИНН: 02508201610067 [13:39:05]line Контрольно-Кассовый Чек [13:39:05]line ПРОДАЖА [13:39:05]line ТРК (МРК, ГНК) : 11 [13:39:05]line Товар: 2710194210 [13:39:05]line ДТ-К-5 [13:39:05]line 3.430 * 72.90 [13:39:05]line = 250.05 [13:39:05]line НДС 12% НСП 1% [13:39:05]line > о реализуемом товаре [13:39:05]line ОКРУГЛЕНИЕ: -0.05 [13:39:05]line ИТОГО: 250.00 [13:39:05]line Внесено: 250.00 [13:39:05]line СДАЧА: 0.00 [13:39:05]line НСП 1% : 2.21 [13:39:05]line НДС 12% : 26.55 [13:39:05]line Наличными: 250.00 [13:39:05]line Безнал.: 0.00 [13:39:05]line Место: АЗС № 68 "Партнер Нефть" [13:39:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:39:05]line СНО: Общий режим [13:39:05]line Чек 178 04.06.2024 13:39 [13:39:05]line Смена: 368 ФФД: 1.0 [13:39:05]line ЗНМ: 0300000035 [13:39:05]line РНМ: 0000000000092720 [13:39:05]line Версия ККМ: 001 [13:39:05]line ФМ: 0000000000875057 [13:39:05]line ФД: 148839 [13:39:05]line ФПД: 155898236903445 [13:39:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133904&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148839&fm=155898236903445&tin=02508201610067®Number=0000000000092720&sum=25000 [13:39:05]OFD Sender: Processing packet 148839 [packets to send 100, broken 99] [13:39:05]ProducePacketName [13:39:05]name=ofd_packets/00148839 [13:39:05]OFD Sender: To server: pG, [13:39:05]CommunicateWithHost lk.salyk.kg:30040 [13:39:05]ConnectInit lk.salyk.kg [13:39:05]written 0, free lines is 4095 [13:39:05]Connected sock=10 [13:39:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 1B 4C 04 01 08 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F8 18 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 67 45 02 00 35 04 06 00 8D C9 E3 08 20 15 9F B2 B0 4C B8 40 1C 10 [13:39:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 7E 13 47 00 E3 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 67 45 02 00 F4 03 04 00 1C C0 5E 66 B6 04 01 00 00 BA BC 98 93 8B A7 22 0A [13:39:05]CommunicateWithHost err = 0 [13:39:05]CheckOFDResponse [13:39:05]1017 (14) - 77093643461234 [13:39:05]1041 (16) - 0000000000875057 [13:39:05]1040 (4) - 148839 [13:39:05]1012 (4) - 04.06.2024 07:19 [13:39:05]1206 (1) - 0 [13:39:05]OFD Sender: Remove packet 148839 [13:39:05]ProducePacketName [13:39:05]name=ofd_packets/00148839 [13:39:05]NVStorageDeleteData [13:39:05]Write to MH i2c: 01 00 00 16 09 1F [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: 01 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: 01 07 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 6C 0C 9E [13:39:06]RasterBufferAndPrint [13:39:06]line [13:39:06]line [13:39:06]line [13:39:06]line [13:39:06]line [13:39:06]written 0, free lines is 3183 [13:39:06]MH_Cut [13:39:06]Write to MH i2c: D1 01 00 1D 09 01 F8 [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: D1 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: D1 01 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: D1 01 00 1D 09 00 F7 [13:39:06]Write to MH i2c: 01 00 00 1E 09 27 [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]OFD Sender: No OFD packet to send [13:39:07]*** Cut start [13:39:07]*** Partial cut [13:39:07]*** CUTSNS_PIN = 1 [13:39:07]*** CUTSNS_PIN = 0 [13:39:07]*** Brake cut motor [13:39:07]Read from MH i2c: 01 [13:39:07]MH_I2C_Read... [13:39:07]*** Stop cut motor [13:39:07]*** Cut end [13:39:07]Read from MH i2c: 01 07 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 07 00 1E 09 00 00 00 00 00 FF 0F 3C [13:39:07]process_action close_receipt done [13:39:07]requested_data is exist [13:39:07]produce_requested_data [13:39:07]requested_item fm.sn is exist - process it [13:39:07]wFMCommunicate request_size=4 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 11 00 00 [13:39:07]Write to MH i2c: E2 08 00 1F 09 80 11 00 00 00 00 00 00 A2 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 17 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 17 00 1F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F5 [13:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:39:07]wFMCommunicate OK [13:39:07]requested_item fd.num is exist - process it [13:39:07]SAM_PROTO_GetFieldsCounters [13:39:07]wFMCommunicate request_size=4 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 13 00 00 [13:39:07]Write to MH i2c: E2 08 00 20 09 80 13 00 00 00 00 00 00 A5 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:08]Read from MH i2c: E2 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: E2 62 00 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: E2 62 00 20 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 67 45 02 00 0E 04 04 00 70 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 F6 [13:39:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 67 45 02 00 0E 04 04 00 70 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 [13:39:08]wFMCommunicate OK [13:39:08]SAM_PROTO_GetFieldsCounters done [13:39:08]requested_item shift.num is exist - process it [13:39:08]requested_item shift.opened is exist - process it [13:39:08]req_shift_opened [13:39:08]FM_GetShiftState [13:39:08]SAM_PROTO_GetShiftState [13:39:08]wFMCommunicate request_size=4 [13:39:08]MH_SAM_APDU [13:39:08]CAPDU: 80 13 01 00 [13:39:08]Write to MH i2c: E2 08 00 21 09 80 13 01 00 00 00 00 00 A7 [13:39:08]Write i2c OK [13:39:08]MH_I2C_Read... [13:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:08]Read from MH i2c: E2 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: E2 0E 00 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: E2 0E 00 21 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6A [13:39:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:39:08]wFMCommunicate OK [13:39:08]SAM_PROTO_GetShiftState done [13:39:08]FM_GetShiftState done [13:39:08]req_shift_opened done [13:39:08]requested_item shift.open_date is exist - process it [13:39:08]req_shift_open_date [13:39:08]req_shift_open_date done [13:39:08]produce_requested_data done [13:39:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148839,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:39:08]process_action_free close_receipt [13:39:08]json_value_free [13:39:08]json_value_free done [13:39:08]process_json_proto returns [13:39:08]Send response to host [13:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148839,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:39:08]free response buf [13:39:08]execute_script done [13:39:08]execute_script returns [13:39:08]free content buf [13:39:08]Sock 7.Close socket [13:39:08]Sock 7.Thread stoped [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:32]accept exits with 9 [13:40:32]New connection [13:40:32]New thread 3067407716 created [13:40:32]Thread 3067264356 joined [13:40:32]Waiting for new connection... [13:40:32] Sock 9.Parse request [13:40:32]Sock 9.Check first char [13:40:32]Sock 9.First char is OK [13:40:32]request: POST /json_proto HTTP/1.0 [13:40:32]Method: POST [13:40:32]URL: /json_proto [13:40:32]Method is POST - this is cgi request [13:40:32]url: /json_proto [13:40:32]query_string will be loaded in cgi processing [13:40:32]execute_cgi json_proto POST (null) [13:40:32]execute_cgi path=json_proto method=POST [13:40:32]POST find Content-Length [13:40:32]Host: 172.17.38.4:8080 [13:40:32]Content-Length: 677 [13:40:32]Content-Type: application/json [13:40:32] [13:40:32]POST finish read [13:40:32]Found Content-Length = 677 [13:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:32]execute_script... [13:40: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)979768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:32]POST & json_proto [13:40:32]process_json_proto [13:40:32]json parsed OK: [13:40:32]protocol is kg_v1.0 [13:40:32]action value=close_receipt [13:40:32]process_action close_receipt [13:40:32]cmd_close_receipt [13:40:32]MH_GetDate [13:40:32]Write to MH i2c: F0 00 00 22 09 1A [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: F0 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: F0 09 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: F0 09 00 22 09 00 51 19 5F 66 CC 51 87 64 5A [13:40:32]GetLastDocTimeStamp 1717508344 [13:40:32]current date 1717508433 [13:40:32]FM_GetShiftState [13:40:32]SAM_PROTO_GetShiftState [13:40:32]wFMCommunicate request_size=4 [13:40:32]MH_SAM_APDU [13:40:32]CAPDU: 80 13 01 00 [13:40:32]Write to MH i2c: E2 08 00 23 09 80 13 01 00 00 00 00 00 A9 [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:32]Read from MH i2c: E2 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 0E 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 0E 00 23 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6C [13:40:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:40:32]wFMCommunicate OK [13:40:32]SAM_PROTO_GetShiftState done [13:40:32]FM_GetShiftState done [13:40:32]opened in 1717460629 [13:40:32]opened+sec_in_day 1717547029 [13:40:32]quantity*price = 30038 [13:40:32]sum+1 = 30039 [13:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 179 04.06.2024 13:40 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148840 ФПД: 90200002756305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134033&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148840&fm=90200002756305&tin=02508201610067®Number=0000000000092720&sum=30000 [13:40:33]StoreToDocumentArchive [13:40:33]shift 368 fd 148840 [13:40:33]save to /storage/0368/doc_00148840 [13:40:33]save last doc name /storage/0368/doc_00148840 to /storage/kkm_last_doc_name [13:40:33]save OK [13:40:33]Clear old archive folders... [13:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:33]tlvbuf is 00483EA0 [13:40:33]SAM_PROTO_ClearQueue [13:40:33]wFMCommunicate request_size=4 [13:40:33]MH_SAM_APDU [13:40:33]CAPDU: 80 09 00 00 [13:40:33]Write to MH i2c: E2 08 00 30 09 80 09 00 00 00 00 00 00 AB [13:40:33]Write i2c OK [13:40:33]MH_I2C_Read... [13:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:33]Read from MH i2c: E2 [13:40:33]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 30 09 00 90 00 AD [13:40:34]RAPDU: 90 00 [13:40:34]wFMCommunicate OK [13:40:34]SAM_PROTO_ClearQueue done [13:40:34]KKMCreateOFDPacket [13:40:34]OFDProtocolAddRootSTLVToBuf [13:40:34]FM_MakeSignedData [13:40:34]FM_MakeSignedData [13:40:34]SAM_PROTO_SignData [13:40:34]wFMCommunicate request_size=4 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 0D 01 02 [13:40:34]Write to MH i2c: E2 08 00 31 09 80 0D 01 02 00 00 00 00 B3 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 31 09 00 90 00 AE [13:40:34]RAPDU: 90 00 [13:40:34]wFMCommunicate OK [13:40:34]wFMCommunicate request_size=255 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B3 00 00 00 F4 03 04 00 51 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 68 45 02 00 35 04 06 00 52 [13:40:34]Write to MH i2c: E2 02 01 32 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B3 00 00 00 F4 03 04 00 51 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 68 45 02 00 35 04 06 00 52 00 00 85 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 32 09 00 90 00 AF [13:40:34]RAPDU: 90 00 [13:40:34]wFMCommunicate OK [13:40:34]wFMCommunicate request_size=10 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 0D 02 02 05 09 53 1F 7E D1 [13:40:34]Write to MH i2c: E2 0D 00 33 09 80 0D 02 02 05 00 09 53 1F 7E D1 00 00 8A [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 33 09 00 90 00 B0 [13:40:34]RAPDU: 90 00 [13:40:34]wFMCommunicate OK [13:40:34]wFMCommunicate request_size=4 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 0D 03 02 [13:40:34]Write to MH i2c: E2 08 00 34 09 80 0D 03 02 00 00 00 00 B8 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 0B 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 0B 00 34 09 00 CE CD 18 4F A5 72 13 94 90 00 79 [13:40:34]RAPDU: CE CD 18 4F A5 72 13 94 90 00 [13:40:34]wFMCommunicate OK [13:40:34]SAM_PROTO_SignData done [13:40:34]FM_MakeSignedData done [13:40:34]CreateOFDProtocolMessage [13:40:34]wFMCommunicate request_size=4 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 11 00 00 [13:40:34]Write to MH i2c: E2 08 00 35 09 80 11 00 00 00 00 00 00 B8 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 17 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 17 00 35 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0B [13:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:40:34]wFMCommunicate OK [13:40:34]CreateOFDProtocolMessage done [13:40:34]OFDSenderStorePacket 148840 [13:40:34]StoreOFDPacket docnum=148840 [13:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 01 66 07 01 D1 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B3 00 00 00 F4 03 04 00 51 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 68 45 02 00 35 04 06 00 52 09 53 1F 7E D1 CE CD 18 4F A5 72 13 94 [13:40:34]CheckFolder [13:40:34]dirname=/storage/ofd_packets [13:40:34]CheckFolder done [13:40:34]ProducePacketName [13:40:34]name=ofd_packets/00148840 [13:40:34]NVStorageSaveData ofd_packets/00148840 [13:40:34]File name is /storage/ofd_packets/00148840 [13:40:34]Write 301 bytes [13:40:34]NVStorageSaveData done [13:40:34]OFDSenderStorePacket done [13:40:34]KKMCreateOFDPacket done [13:40:34]NVStorageSaveData kkm_last_timestamp [13:40:34]File name is /storage/kkm_last_timestamp [13:40:34]Write 4 bytes [13:40:34]NVStorageSaveData done [13:40:34]ExternCall_PrintAddStr [13:40:34]wPrintStart [13:40:34]Write to MH i2c: 01 00 00 36 09 3F [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: 01 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: 01 07 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: 01 07 00 36 09 00 00 00 00 00 FF 0F 54 [13:40:34]RasterBufferAndPrint [13:40:34]line Счет N : (1)979768 [13:40:34]line ИНН: 02508201610067 [13:40:34]line Контрольно-Кассовый Чек [13:40:34]line ПРОДАЖА [13:40:34]line ТРК (МРК, ГНК) : 31 [13:40:34]line Товар: 2710124130 [13:40:34]line Аи-92-К-5 [13:40:34]line 4.490 * 66.90 [13:40:34]line = 300.38 [13:40:34]line НДС 12% НСП 1% [13:40:34]line > о реализуемом товаре [13:40:34]line ОКРУГЛЕНИЕ: -0.38 [13:40:34]line ИТОГО: 300.00 [13:40:34]line Внесено: 300.00 [13:40:34]line СДАЧА: 0.00 [13:40:34]line НСП 1% : 2.66 [13:40:34]line НДС 12% : 31.90 [13:40:34]line Наличными: 300.00 [13:40:34]line Безнал.: 0.00 [13:40:34]line Место: АЗС № 68 "Партнер Нефть" [13:40:34]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:40:34]line СНО: Общий режим [13:40:34]line Чек 179 04.06.2024 13:40 [13:40:34]line Смена: 368 ФФД: 1.0 [13:40:34]line ЗНМ: 0300000035 [13:40:34]line РНМ: 0000000000092720 [13:40:34]line Версия ККМ: 001 [13:40:34]line ФМ: 0000000000875057 [13:40:34]line ФД: 148840 [13:40:34]line ФПД: 90200002756305 [13:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134033&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148840&fm=90200002756305&tin=02508201610067®Number=0000000000092720&sum=30000 [13:40:34]OFD Sender: Processing packet 148840 [packets to send 100, broken 99] [13:40:34]ProducePacketName [13:40:34]name=ofd_packets/00148840 [13:40:34]OFD Sender: To server: pG, [13:40:34]CommunicateWithHost lk.salyk.kg:30040 [13:40:34]ConnectInit lk.salyk.kg [13:40:34]written 0, free lines is 4095 [13:40:34]Connected sock=10 [13:40:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 01 66 07 01 D1 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B3 00 00 00 F4 03 04 00 51 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 68 45 02 00 35 04 06 00 52 09 53 1F 7E D1 CE CD 18 4F A5 72 13 94 [13:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 5E B1 47 00 E0 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 38 37 35 30 35 37 10 04 04 00 68 45 02 00 F4 03 04 00 75 C0 5E 66 B6 04 01 00 00 7E 18 BB 4D 9E D1 EF 8F [13:40:35]CommunicateWithHost err = 0 [13:40:35]CheckOFDResponse [13:40:35]1017 (14) - 77093643461234 [13:40:35]1041 (16) - 0000000000875057 [13:40:35]1040 (4) - 148840 [13:40:35]1012 (4) - 04.06.2024 07:21 [13:40:35]1206 (1) - 0 [13:40:35]OFD Sender: Remove packet 148840 [13:40:35]ProducePacketName [13:40:35]name=ofd_packets/00148840 [13:40:35]NVStorageDeleteData [13:40:35]Write to MH i2c: 01 00 00 61 09 6A [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: 01 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: 01 07 00 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: 01 07 00 61 09 00 00 00 00 00 6E 0C EB [13:40:35]RasterBufferAndPrint [13:40:35]line [13:40:35]line [13:40:35]line [13:40:35]line [13:40:35]line [13:40:35]written 0, free lines is 3185 [13:40:35]MH_Cut [13:40:35]Write to MH i2c: D1 01 00 68 09 01 43 [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: D1 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: D1 01 00 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: D1 01 00 68 09 00 42 [13:40:35]Write to MH i2c: 01 00 00 69 09 72 [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]OFD Sender: No OFD packet to send [13:40:36]*** Cut start [13:40:36]*** Partial cut [13:40:36]*** CUTSNS_PIN = 1 [13:40:36]*** CUTSNS_PIN = 0 [13:40:36]*** Brake cut motor [13:40:37]Read from MH i2c: 01 [13:40:37]MH_I2C_Read... [13:40:37]*** Stop cut motor [13:40:37]*** Cut end [13:40:37]Read from MH i2c: 01 07 00 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: 01 07 00 69 09 00 00 00 00 00 FF 0F 87 [13:40:37]process_action close_receipt done [13:40:37]requested_data is exist [13:40:37]produce_requested_data [13:40:37]requested_item fm.sn is exist - process it [13:40:37]wFMCommunicate request_size=4 [13:40:37]MH_SAM_APDU [13:40:37]CAPDU: 80 11 00 00 [13:40:37]Write to MH i2c: E2 08 00 6A 09 80 11 00 00 00 00 00 00 ED [13:40:37]Write i2c OK [13:40:37]MH_I2C_Read... [13:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:37]Read from MH i2c: E2 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: E2 17 00 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: E2 17 00 6A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 40 [13:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:40:37]wFMCommunicate OK [13:40:37]requested_item fd.num is exist - process it [13:40:37]SAM_PROTO_GetFieldsCounters [13:40:37]wFMCommunicate request_size=4 [13:40:37]MH_SAM_APDU [13:40:37]CAPDU: 80 13 00 00 [13:40:37]Write to MH i2c: E2 08 00 6B 09 80 13 00 00 00 00 00 00 F0 [13:40:37]Write i2c OK [13:40:37]MH_I2C_Read... [13:40:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:37]Read from MH i2c: E2 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: E2 62 00 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: E2 62 00 6B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 68 45 02 00 0E 04 04 00 70 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 45 [13:40:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 68 45 02 00 0E 04 04 00 70 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 [13:40:37]wFMCommunicate OK [13:40:37]SAM_PROTO_GetFieldsCounters done [13:40:37]requested_item shift.num is exist - process it [13:40:37]requested_item shift.opened is exist - process it [13:40:37]req_shift_opened [13:40:37]FM_GetShiftState [13:40:37]SAM_PROTO_GetShiftState [13:40:37]wFMCommunicate request_size=4 [13:40:37]MH_SAM_APDU [13:40:37]CAPDU: 80 13 01 00 [13:40:37]Write to MH i2c: E2 08 00 6C 09 80 13 01 00 00 00 00 00 F2 [13:40:37]Write i2c OK [13:40:37]MH_I2C_Read... [13:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:37]Read from MH i2c: E2 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: E2 0E 00 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: E2 0E 00 6C 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B5 [13:40:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:40:37]wFMCommunicate OK [13:40:37]SAM_PROTO_GetShiftState done [13:40:37]FM_GetShiftState done [13:40:37]req_shift_opened done [13:40:37]requested_item shift.open_date is exist - process it [13:40:37]req_shift_open_date [13:40:37]req_shift_open_date done [13:40:37]produce_requested_data done [13:40:37]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148840,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:40:37]process_action_free close_receipt [13:40:37]json_value_free [13:40:37]json_value_free done [13:40:37]process_json_proto returns [13:40:37]Send response to host [13:40:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148840,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:40:37]free response buf [13:40:37]execute_script done [13:40:37]execute_script returns [13:40:37]free content buf [13:40:37]Sock 9.Close socket [13:40:37]Sock 9.Thread stoped [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:15]accept exits with 7 [13:41:15]New connection [13:41:15]New thread 3067264356 created [13:41:15]Thread 3067407716 joined [13:41:15]Waiting for new connection... [13:41:15] Sock 7.Parse request [13:41:15]Sock 7.Check first char [13:41:15]Sock 7.First char is OK [13:41:15]request: POST /json_proto HTTP/1.0 [13:41:15]Method: POST [13:41:15]URL: /json_proto [13:41:15]Method is POST - this is cgi request [13:41:15]url: /json_proto [13:41:15]query_string will be loaded in cgi processing [13:41:15]execute_cgi json_proto POST (null) [13:41:15]execute_cgi path=json_proto method=POST [13:41:15]POST find Content-Length [13:41:15]Host: 172.17.38.4:8080 [13:41:15]Content-Length: 977 [13:41:15]Content-Type: application/json [13:41:15] [13:41:15]POST finish read [13:41:15]Found Content-Length = 977 [13:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.55 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:15]execute_script... [13:41: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)979769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.55 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:15]POST & json_proto [13:41:15]process_json_proto [13:41:15]json parsed OK: [13:41:15]protocol is kg_v1.0 [13:41:15]action value=close_receipt [13:41:15]process_action close_receipt [13:41:15]cmd_close_receipt [13:41:15]MH_GetDate [13:41:15]Write to MH i2c: F0 00 00 6D 09 65 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 09 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 09 00 6D 09 00 7C 19 5F 66 CC 51 87 64 D0 [13:41:15]GetLastDocTimeStamp 1717508433 [13:41:15]current date 1717508476 [13:41:15]FM_GetShiftState [13:41:15]SAM_PROTO_GetShiftState [13:41:15]wFMCommunicate request_size=4 [13:41:15]MH_SAM_APDU [13:41:15]CAPDU: 80 13 01 00 [13:41:15]Write to MH i2c: E2 08 00 6E 09 80 13 01 00 00 00 00 00 F4 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:15]Read from MH i2c: E2 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 0E 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 0E 00 6E 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B7 [13:41:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:41:15]wFMCommunicate OK [13:41:15]SAM_PROTO_GetShiftState done [13:41:15]FM_GetShiftState done [13:41:15]opened in 1717460629 [13:41:15]opened+sec_in_day 1717547029 [13:41:15]quantity*price = 500064 [13:41:15]sum+1 = 500066 [13:41:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 180 04.06.2024 13:41 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа ДТ номер 68 сэкономлено 69.55 сом ФМ: 0000000000875057 ФД: 148841 ФПД: 145921716883996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134116&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148841&fm=145921716883996&tin=02508201610067®Number=0000000000092720&sum=500000 [13:41:16]StoreToDocumentArchive [13:41:16]shift 368 fd 148841 [13:41:16]save to /storage/0368/doc_00148841 [13:41:16]save last doc name /storage/0368/doc_00148841 to /storage/kkm_last_doc_name [13:41:16]save OK [13:41:16]Clear old archive folders... [13:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:16]tlvbuf is 004A85F0 [13:41:16]SAM_PROTO_ClearQueue [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 09 00 00 [13:41:16]Write to MH i2c: E2 08 00 7B 09 80 09 00 00 00 00 00 00 F6 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [13:41:17]RAPDU: 90 00 [13:41:17]wFMCommunicate OK [13:41:17]SAM_PROTO_ClearQueue done [13:41:17]KKMCreateOFDPacket [13:41:17]OFDProtocolAddRootSTLVToBuf [13:41:17]FM_MakeSignedData [13:41:17]FM_MakeSignedData [13:41:17]SAM_PROTO_SignData [13:41:17]wFMCommunicate request_size=4 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 0D 01 02 [13:41:17]Write to MH i2c: E2 08 00 7C 09 80 0D 01 02 00 00 00 00 FE [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [13:41:17]RAPDU: 90 00 [13:41:17]wFMCommunicate OK [13:41:17]wFMCommunicate request_size=255 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7C 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 69 45 02 00 35 04 06 00 84 B7 0C 19 [13:41:17]Write to MH i2c: E2 02 01 7D 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7C 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 69 45 02 00 35 04 06 00 84 B7 0C 19 00 00 07 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 7D 09 00 90 00 FA [13:41:17]RAPDU: 90 00 [13:41:17]wFMCommunicate OK [13:41:17]wFMCommunicate request_size=7 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 0D 02 02 02 92 1C [13:41:17]Write to MH i2c: E2 0A 00 7E 09 80 0D 02 02 02 00 92 1C 00 00 B3 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 7E 09 00 90 00 FB [13:41:17]RAPDU: 90 00 [13:41:17]wFMCommunicate OK [13:41:17]wFMCommunicate request_size=4 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 0D 03 02 [13:41:17]Write to MH i2c: E2 08 00 7F 09 80 0D 03 02 00 00 00 00 03 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 0B 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 0B 00 7F 09 00 D1 39 5C 95 EC 2C F4 77 90 00 82 [13:41:17]RAPDU: D1 39 5C 95 EC 2C F4 77 90 00 [13:41:17]wFMCommunicate OK [13:41:17]SAM_PROTO_SignData done [13:41:17]FM_MakeSignedData done [13:41:17]CreateOFDProtocolMessage [13:41:17]wFMCommunicate request_size=4 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 11 00 00 [13:41:17]Write to MH i2c: E2 08 00 80 09 80 11 00 00 00 00 00 00 03 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 17 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 17 00 80 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 56 [13:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:41:17]wFMCommunicate OK [13:41:17]CreateOFDProtocolMessage done [13:41:17]OFDSenderStorePacket 148841 [13:41:17]StoreOFDPacket docnum=148841 [13:41:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 BE A2 04 01 7E D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7C 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 69 45 02 00 35 04 06 00 84 B7 0C 19 92 1C D1 39 5C 95 EC 2C F4 77 [13:41:17]CheckFolder [13:41:17]dirname=/storage/ofd_packets [13:41:17]CheckFolder done [13:41:17]ProducePacketName [13:41:17]name=ofd_packets/00148841 [13:41:17]NVStorageSaveData ofd_packets/00148841 [13:41:17]File name is /storage/ofd_packets/00148841 [13:41:17]Write 298 bytes [13:41:17]NVStorageSaveData done [13:41:17]OFDSenderStorePacket done [13:41:17]KKMCreateOFDPacket done [13:41:17]NVStorageSaveData kkm_last_timestamp [13:41:17]File name is /storage/kkm_last_timestamp [13:41:17]Write 4 bytes [13:41:17]NVStorageSaveData done [13:41:17]ExternCall_PrintAddStr [13:41:17]wPrintStart [13:41:17]Write to MH i2c: 01 00 00 81 09 8A [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 07 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 07 00 81 09 00 00 00 00 00 FF 0F 9F [13:41:17]RasterBufferAndPrint [13:41:17]line Счет N : (1)979769 [13:41:17]line ИНН: 02508201610067 [13:41:17]line Контрольно-Кассовый Чек [13:41:17]line ПРОДАЖА [13:41:17]line ТРК (МРК, ГНК) : 52 [13:41:17]line Товар: 2710194210 [13:41:17]line ДТ-К-5 [13:41:17]line 69.550 * 71.90 [13:41:17]line = 5000.65 [13:41:17]line НДС 12% НСП 1% [13:41:17]line > о реализуемом товаре [13:41:17]line ОКРУГЛЕНИЕ: -0.65 [13:41:17]line ИТОГО: 5000.00 [13:41:17]line Внесено: 5000.00 [13:41:17]line СДАЧА: 0.00 [13:41:17]line НСП 1% : 44.25 [13:41:17]line НДС 12% : 531.04 [13:41:17]line Наличными: 5000.00 [13:41:17]line Безнал.: 0.00 [13:41:17]line Место: АЗС № 68 "Партнер Нефть" [13:41:17]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:41:17]line СНО: Общий режим [13:41:17]line Чек 180 04.06.2024 13:41 [13:41:17]line Смена: 368 ФФД: 1.0 [13:41:17]line ЗНМ: 0300000035 [13:41:17]line РНМ: 0000000000092720 [13:41:17]line Версия ККМ: 001 [13:41:17]line [13:41:17]line Дисконтная программа [13:41:17]line ДТ [13:41:17]line номер 68 [13:41:17]line сэкономлено 69.55 сом [13:41:17]line ФМ: 0000000000875057 [13:41:17]line ФД: 148841 [13:41:17]line ФПД: 145921716883996 [13:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134116&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148841&fm=145921716883996&tin=02508201610067®Number=0000000000092720&sum=500000 [13:41:17]OFD Sender: Processing packet 148841 [packets to send 100, broken 99] [13:41:17]ProducePacketName [13:41:17]name=ofd_packets/00148841 [13:41:17]OFD Sender: To server: pG, [13:41:17]CommunicateWithHost lk.salyk.kg:30040 [13:41:17]ConnectInit lk.salyk.kg [13:41:17]written 0, free lines is 4095 [13:41:17]Connected sock=10 [13:41:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 BE A2 04 01 7E D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7C 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 69 45 02 00 35 04 06 00 84 B7 0C 19 92 1C D1 39 5C 95 EC 2C F4 77 [13:41:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 20 E2 47 00 FA 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 69 45 02 00 F4 03 04 00 A0 C0 5E 66 B6 04 01 00 00 8C 99 B1 83 CF 3E 4F 3D [13:41:18]CommunicateWithHost err = 0 [13:41:18]CheckOFDResponse [13:41:18]1017 (14) - 77093643461234 [13:41:18]1041 (16) - 0000000000875057 [13:41:18]1040 (4) - 148841 [13:41:18]1012 (4) - 04.06.2024 07:22 [13:41:18]1206 (1) - 0 [13:41:18]OFD Sender: Remove packet 148841 [13:41:18]ProducePacketName [13:41:18]name=ofd_packets/00148841 [13:41:18]NVStorageDeleteData [13:41:18]Write to MH i2c: 01 00 00 B1 09 BA [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: 01 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: 01 07 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: 01 07 00 B1 09 00 00 00 00 00 EF 0B BB [13:41:18]RasterBufferAndPrint [13:41:18]line [13:41:18]line [13:41:18]line [13:41:18]line [13:41:18]line [13:41:18]written 0, free lines is 3058 [13:41:18]MH_Cut [13:41:18]Write to MH i2c: D1 01 00 B8 09 01 93 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: D1 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: D1 01 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: D1 01 00 B8 09 00 92 [13:41:18]Write to MH i2c: 01 00 00 B9 09 C2 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]OFD Sender: No OFD packet to send [13:41:19]*** Cut start [13:41:19]*** Partial cut [13:41:19]*** CUTSNS_PIN = 1 [13:41:19]*** CUTSNS_PIN = 0 [13:41:19]*** Brake cut motor [13:41:20]Read from MH i2c: 01 [13:41:20]MH_I2C_Read... [13:41:20]*** Stop cut motor [13:41:20]*** Cut end [13:41:20]Read from MH i2c: 01 07 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: 01 07 00 B9 09 00 00 00 00 00 FF 0F D7 [13:41:20]process_action close_receipt done [13:41:20]requested_data is exist [13:41:20]produce_requested_data [13:41:20]requested_item fm.sn is exist - process it [13:41:20]wFMCommunicate request_size=4 [13:41:20]MH_SAM_APDU [13:41:20]CAPDU: 80 11 00 00 [13:41:20]Write to MH i2c: E2 08 00 BA 09 80 11 00 00 00 00 00 00 3D [13:41:20]Write i2c OK [13:41:20]MH_I2C_Read... [13:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:20]Read from MH i2c: E2 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 17 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 17 00 BA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 90 [13:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:41:20]wFMCommunicate OK [13:41:20]requested_item fd.num is exist - process it [13:41:20]SAM_PROTO_GetFieldsCounters [13:41:20]wFMCommunicate request_size=4 [13:41:20]MH_SAM_APDU [13:41:20]CAPDU: 80 13 00 00 [13:41:20]Write to MH i2c: E2 08 00 BB 09 80 13 00 00 00 00 00 00 40 [13:41:20]Write i2c OK [13:41:20]MH_I2C_Read... [13:41:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:20]Read from MH i2c: E2 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 62 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 62 00 BB 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 69 45 02 00 0E 04 04 00 70 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 99 [13:41:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 69 45 02 00 0E 04 04 00 70 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 [13:41:20]wFMCommunicate OK [13:41:20]SAM_PROTO_GetFieldsCounters done [13:41:20]requested_item shift.num is exist - process it [13:41:20]requested_item shift.opened is exist - process it [13:41:20]req_shift_opened [13:41:20]FM_GetShiftState [13:41:20]SAM_PROTO_GetShiftState [13:41:20]wFMCommunicate request_size=4 [13:41:20]MH_SAM_APDU [13:41:20]CAPDU: 80 13 01 00 [13:41:20]Write to MH i2c: E2 08 00 BC 09 80 13 01 00 00 00 00 00 42 [13:41:20]Write i2c OK [13:41:20]MH_I2C_Read... [13:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:20]Read from MH i2c: E2 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 0E 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 0E 00 BC 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 05 [13:41:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:41:20]wFMCommunicate OK [13:41:20]SAM_PROTO_GetShiftState done [13:41:20]FM_GetShiftState done [13:41:20]req_shift_opened done [13:41:20]requested_item shift.open_date is exist - process it [13:41:20]req_shift_open_date [13:41:20]req_shift_open_date done [13:41:20]produce_requested_data done [13:41:20]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148841,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:41:20]process_action_free close_receipt [13:41:20]json_value_free [13:41:20]json_value_free done [13:41:20]process_json_proto returns [13:41:20]Send response to host [13:41:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148841,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:41:20]free response buf [13:41:20]execute_script done [13:41:20]execute_script returns [13:41:20]free content buf [13:41:20]Sock 7.Close socket [13:41:20]Sock 7.Thread stoped [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:07]accept exits with 9 [13:42:07]New connection [13:42:07]New thread 3067407716 created [13:42:07]Thread 3067264356 joined [13:42:07]Waiting for new connection... [13:42:07] Sock 9.Parse request [13:42:07]Sock 9.Check first char [13:42:07]Sock 9.First char is OK [13:42:07]request: POST /json_proto HTTP/1.0 [13:42:07]Method: POST [13:42:07]URL: /json_proto [13:42:07]Method is POST - this is cgi request [13:42:07]url: /json_proto [13:42:07]query_string will be loaded in cgi processing [13:42:07]execute_cgi json_proto POST (null) [13:42:07]execute_cgi path=json_proto method=POST [13:42:07]POST find Content-Length [13:42:07]Host: 172.17.38.4:8080 [13:42:07]Content-Length: 677 [13:42:07]Content-Type: application/json [13:42:07] [13:42:07]POST finish read [13:42:07]Found Content-Length = 677 [13:42:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "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" ] } } [13:42:07]execute_script... [13:42: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)979770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "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" ] } } [13:42:07]POST & json_proto [13:42:07]process_json_proto [13:42:07]json parsed OK: [13:42:07]protocol is kg_v1.0 [13:42:07]action value=close_receipt [13:42:07]process_action close_receipt [13:42:07]cmd_close_receipt [13:42:07]MH_GetDate [13:42:07]Write to MH i2c: F0 00 00 BD 09 B5 [13:42:07]Write i2c OK [13:42:07]MH_I2C_Read... [13:42:07]Read from MH i2c: F0 [13:42:07]MH_I2C_Read... [13:42:07]Read from MH i2c: F0 09 00 [13:42:07]MH_I2C_Read... [13:42:07]Read from MH i2c: F0 09 00 BD 09 00 B0 19 5F 66 CC 51 87 64 54 [13:42:07]GetLastDocTimeStamp 1717508476 [13:42:07]current date 1717508528 [13:42:07]FM_GetShiftState [13:42:07]SAM_PROTO_GetShiftState [13:42:07]wFMCommunicate request_size=4 [13:42:07]MH_SAM_APDU [13:42:07]CAPDU: 80 13 01 00 [13:42:07]Write to MH i2c: E2 08 00 BE 09 80 13 01 00 00 00 00 00 44 [13:42:07]Write i2c OK [13:42:07]MH_I2C_Read... [13:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:07]Read from MH i2c: E2 [13:42:07]MH_I2C_Read... [13:42:07]Read from MH i2c: E2 0E 00 [13:42:07]MH_I2C_Read... [13:42:07]Read from MH i2c: E2 0E 00 BE 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 07 [13:42:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:42:07]wFMCommunicate OK [13:42:07]SAM_PROTO_GetShiftState done [13:42:07]FM_GetShiftState done [13:42:07]opened in 1717460629 [13:42:07]opened+sec_in_day 1717547029 [13:42:07]quantity*price = 26024 [13:42:07]sum+1 = 26025 [13:42:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 181 04.06.2024 13:42 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148842 ФПД: 242237144489164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134208&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148842&fm=242237144489164&tin=02508201610067®Number=0000000000092720&sum=26000 [13:42:08]StoreToDocumentArchive [13:42:08]shift 368 fd 148842 [13:42:08]save to /storage/0368/doc_00148842 [13:42:08]save last doc name /storage/0368/doc_00148842 to /storage/kkm_last_doc_name [13:42:08]save OK [13:42:08]Clear old archive folders... [13:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:08]tlvbuf is 0044E100 [13:42:08]SAM_PROTO_ClearQueue [13:42:08]wFMCommunicate request_size=4 [13:42:08]MH_SAM_APDU [13:42:08]CAPDU: 80 09 00 00 [13:42:08]Write to MH i2c: E2 08 00 CB 09 80 09 00 00 00 00 00 00 46 [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:08]Read from MH i2c: E2 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [13:42:08]RAPDU: 90 00 [13:42:08]wFMCommunicate OK [13:42:08]SAM_PROTO_ClearQueue done [13:42:08]KKMCreateOFDPacket [13:42:08]OFDProtocolAddRootSTLVToBuf [13:42:08]FM_MakeSignedData [13:42:08]FM_MakeSignedData [13:42:08]SAM_PROTO_SignData [13:42:08]wFMCommunicate request_size=4 [13:42:08]MH_SAM_APDU [13:42:08]CAPDU: 80 0D 01 02 [13:42:08]Write to MH i2c: E2 08 00 CC 09 80 0D 01 02 00 00 00 00 4E [13:42:08]OFD Sender: No OFD packet to send [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:08]Read from MH i2c: E2 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [13:42:08]RAPDU: 90 00 [13:42:08]wFMCommunicate OK [13:42:08]wFMCommunicate request_size=255 [13:42:08]MH_SAM_APDU [13:42:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 B5 00 00 00 F4 03 04 00 B0 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6A 45 02 00 35 04 06 00 DC [13:42:08]Write to MH i2c: E2 02 01 CD 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 B5 00 00 00 F4 03 04 00 B0 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6A 45 02 00 35 04 06 00 DC 00 00 C4 [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:09]Read from MH i2c: E2 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 03 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [13:42:09]RAPDU: 90 00 [13:42:09]wFMCommunicate OK [13:42:09]wFMCommunicate request_size=10 [13:42:09]MH_SAM_APDU [13:42:09]CAPDU: 80 0D 02 02 05 50 3A F2 DC CC [13:42:09]Write to MH i2c: E2 0D 00 CE 09 80 0D 02 02 05 00 50 3A F2 DC CC 00 00 7F [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:09]Read from MH i2c: E2 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 03 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [13:42:09]RAPDU: 90 00 [13:42:09]wFMCommunicate OK [13:42:09]wFMCommunicate request_size=4 [13:42:09]MH_SAM_APDU [13:42:09]CAPDU: 80 0D 03 02 [13:42:09]Write to MH i2c: E2 08 00 CF 09 80 0D 03 02 00 00 00 00 53 [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:09]Read from MH i2c: E2 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 0B 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 0B 00 CF 09 00 A4 2E FD 30 A2 5F 20 23 90 00 97 [13:42:09]RAPDU: A4 2E FD 30 A2 5F 20 23 90 00 [13:42:09]wFMCommunicate OK [13:42:09]SAM_PROTO_SignData done [13:42:09]FM_MakeSignedData done [13:42:09]CreateOFDProtocolMessage [13:42:09]wFMCommunicate request_size=4 [13:42:09]MH_SAM_APDU [13:42:09]CAPDU: 80 11 00 00 [13:42:09]Write to MH i2c: E2 08 00 D0 09 80 11 00 00 00 00 00 00 53 [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:09]Read from MH i2c: E2 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 17 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 17 00 D0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A6 [13:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:42:09]wFMCommunicate OK [13:42:09]CreateOFDProtocolMessage done [13:42:09]OFDSenderStorePacket 148842 [13:42:09]StoreOFDPacket docnum=148842 [13:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F2 41 07 01 2E 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 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 B5 00 00 00 F4 03 04 00 B0 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6A 45 02 00 35 04 06 00 DC 50 3A F2 DC CC A4 2E FD 30 A2 5F 20 23 [13:42:09]CheckFolder [13:42:09]dirname=/storage/ofd_packets [13:42:09]CheckFolder done [13:42:09]ProducePacketName [13:42:09]name=ofd_packets/00148842 [13:42:09]NVStorageSaveData ofd_packets/00148842 [13:42:09]File name is /storage/ofd_packets/00148842 [13:42:09]Write 301 bytes [13:42:09]NVStorageSaveData done [13:42:09]OFDSenderStorePacket done [13:42:09]KKMCreateOFDPacket done [13:42:09]NVStorageSaveData kkm_last_timestamp [13:42:09]File name is /storage/kkm_last_timestamp [13:42:09]Write 4 bytes [13:42:09]NVStorageSaveData done [13:42:09]ExternCall_PrintAddStr [13:42:09]wPrintStart [13:42:09]Write to MH i2c: 01 00 00 D1 09 DA [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 07 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 07 00 D1 09 00 00 00 00 00 FF 0F EF [13:42:09]RasterBufferAndPrint [13:42:09]line Счет N : (1)979770 [13:42:09]line ИНН: 02508201610067 [13:42:09]line Контрольно-Кассовый Чек [13:42:09]line ПРОДАЖА [13:42:09]line ТРК (МРК, ГНК) : 41 [13:42:09]line Товар: 2710124130 [13:42:09]line Аи-92-К-5 [13:42:09]line 3.890 * 66.90 [13:42:09]line = 260.24 [13:42:09]line НДС 12% НСП 1% [13:42:09]line > о реализуемом товаре [13:42:09]line ОКРУГЛЕНИЕ: -0.24 [13:42:09]line ИТОГО: 260.00 [13:42:09]line Внесено: 260.00 [13:42:09]line СДАЧА: 0.00 [13:42:09]line НСП 1% : 2.30 [13:42:09]line НДС 12% : 27.64 [13:42:09]line Наличными: 260.00 [13:42:09]line Безнал.: 0.00 [13:42:09]line Место: АЗС № 68 "Партнер Нефть" [13:42:09]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:42:09]line СНО: Общий режим [13:42:09]line Чек 181 04.06.2024 13:42 [13:42:09]line Смена: 368 ФФД: 1.0 [13:42:09]line ЗНМ: 0300000035 [13:42:09]line РНМ: 0000000000092720 [13:42:09]line Версия ККМ: 001 [13:42:09]line ФМ: 0000000000875057 [13:42:09]line ФД: 148842 [13:42:09]line ФПД: 242237144489164 [13:42:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134208&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148842&fm=242237144489164&tin=02508201610067®Number=0000000000092720&sum=26000 [13:42:09]written 0, free lines is 4095 [13:42:09]OFD Sender: Processing packet 148842 [packets to send 100, broken 99] [13:42:09]ProducePacketName [13:42:09]name=ofd_packets/00148842 [13:42:09]OFD Sender: To server: pG, [13:42:09]CommunicateWithHost lk.salyk.kg:30040 [13:42:09]ConnectInit lk.salyk.kg [13:42:09]Connected sock=11 [13:42:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F2 41 07 01 2E 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 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 B5 00 00 00 F4 03 04 00 B0 19 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6A 45 02 00 35 04 06 00 DC 50 3A F2 DC CC A4 2E FD 30 A2 5F 20 23 [13:42:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 0F 8C 47 00 21 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6A 45 02 00 F4 03 04 00 D4 C0 5E 66 B6 04 01 00 00 C0 B9 42 E2 36 53 0F B1 [13:42:09]CommunicateWithHost err = 0 [13:42:09]CheckOFDResponse [13:42:09]1017 (14) - 77093643461234 [13:42:09]1041 (16) - 0000000000875057 [13:42:09]1040 (4) - 148842 [13:42:09]1012 (4) - 04.06.2024 07:23 [13:42:09]1206 (1) - 0 [13:42:09]OFD Sender: Remove packet 148842 [13:42:09]ProducePacketName [13:42:09]name=ofd_packets/00148842 [13:42:09]NVStorageDeleteData [13:42:09]Write to MH i2c: 01 00 00 FC 09 05 [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 07 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 07 00 FC 09 00 00 00 00 00 6E 0C 86 [13:42:09]RasterBufferAndPrint [13:42:09]line [13:42:09]line [13:42:09]line [13:42:09]line [13:42:09]line [13:42:09]written 0, free lines is 3185 [13:42:09]MH_Cut [13:42:09]Write to MH i2c: D1 01 00 03 0A 01 DF [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: D1 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: D1 01 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: D1 01 00 03 0A 00 DE [13:42:09]Write to MH i2c: 01 00 00 04 0A 0E [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:10]OFD Sender: No OFD packet to send [13:42:10]*** Cut start [13:42:10]*** Partial cut [13:42:10]*** CUTSNS_PIN = 1 [13:42:10]*** CUTSNS_PIN = 0 [13:42:11]*** Brake cut motor [13:42:11]Read from MH i2c: 01 [13:42:11]MH_I2C_Read... [13:42:11]*** Stop cut motor [13:42:11]*** Cut end [13:42:11]Read from MH i2c: 01 07 00 [13:42:11]MH_I2C_Read... [13:42:11]Read from MH i2c: 01 07 00 04 0A 00 00 00 00 00 FF 0F 23 [13:42:11]process_action close_receipt done [13:42:11]requested_data is exist [13:42:11]produce_requested_data [13:42:11]requested_item fm.sn is exist - process it [13:42:11]wFMCommunicate request_size=4 [13:42:11]MH_SAM_APDU [13:42:11]CAPDU: 80 11 00 00 [13:42:11]Write to MH i2c: E2 08 00 05 0A 80 11 00 00 00 00 00 00 89 [13:42:11]Write i2c OK [13:42:11]MH_I2C_Read... [13:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:11]Read from MH i2c: E2 [13:42:11]MH_I2C_Read... [13:42:11]Read from MH i2c: E2 17 00 [13:42:11]MH_I2C_Read... [13:42:11]Read from MH i2c: E2 17 00 05 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DC [13:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:42:11]wFMCommunicate OK [13:42:11]requested_item fd.num is exist - process it [13:42:11]SAM_PROTO_GetFieldsCounters [13:42:11]wFMCommunicate request_size=4 [13:42:11]MH_SAM_APDU [13:42:11]CAPDU: 80 13 00 00 [13:42:11]Write to MH i2c: E2 08 00 06 0A 80 13 00 00 00 00 00 00 8C [13:42:11]Write i2c OK [13:42:11]MH_I2C_Read... [13:42:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:11]Read from MH i2c: E2 [13:42:11]MH_I2C_Read... [13:42:11]Read from MH i2c: E2 62 00 [13:42:11]MH_I2C_Read... [13:42:11]Read from MH i2c: E2 62 00 06 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6A 45 02 00 0E 04 04 00 70 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 E9 [13:42:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6A 45 02 00 0E 04 04 00 70 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 [13:42:11]wFMCommunicate OK [13:42:11]SAM_PROTO_GetFieldsCounters done [13:42:11]requested_item shift.num is exist - process it [13:42:11]requested_item shift.opened is exist - process it [13:42:11]req_shift_opened [13:42:11]FM_GetShiftState [13:42:11]SAM_PROTO_GetShiftState [13:42:11]wFMCommunicate request_size=4 [13:42:11]MH_SAM_APDU [13:42:11]CAPDU: 80 13 01 00 [13:42:11]Write to MH i2c: E2 08 00 07 0A 80 13 01 00 00 00 00 00 8E [13:42:11]Write i2c OK [13:42:11]MH_I2C_Read... [13:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:11]Read from MH i2c: E2 [13:42:11]MH_I2C_Read... [13:42:11]Read from MH i2c: E2 0E 00 [13:42:11]MH_I2C_Read... [13:42:11]Read from MH i2c: E2 0E 00 07 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 51 [13:42:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:42:11]wFMCommunicate OK [13:42:11]SAM_PROTO_GetShiftState done [13:42:11]FM_GetShiftState done [13:42:11]req_shift_opened done [13:42:11]requested_item shift.open_date is exist - process it [13:42:11]req_shift_open_date [13:42:11]req_shift_open_date done [13:42:11]produce_requested_data done [13:42:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148842,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:42:11]process_action_free close_receipt [13:42:11]json_value_free [13:42:11]json_value_free done [13:42:11]process_json_proto returns [13:42:11]Send response to host [13:42:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148842,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:42:11]free response buf [13:42:11]execute_script done [13:42:11]execute_script returns [13:42:11]free content buf [13:42:11]Sock 9.Close socket [13:42:11]Sock 9.Thread stoped [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:49:57]accept exits with 7 [13:49:57]New connection [13:49:57]New thread 3067264356 created [13:49:57]Thread 3067407716 joined [13:49:57]Waiting for new connection... [13:49:57] Sock 7.Parse request [13:49:57]Sock 7.Check first char [13:49:57]Sock 7.First char is OK [13:49:57]request: POST /json_proto HTTP/1.0 [13:49:57]Method: POST [13:49:57]URL: /json_proto [13:49:57]Method is POST - this is cgi request [13:49:57]url: /json_proto [13:49:57]query_string will be loaded in cgi processing [13:49:57]execute_cgi json_proto POST (null) [13:49:57]execute_cgi path=json_proto method=POST [13:49:57]POST find Content-Length [13:49:57]Host: 172.17.38.4:8080 [13:49:57]Content-Length: 790 [13:49:57]Content-Type: application/json [13:49:57] [13:49:57]POST finish read [13:49:57]Found Content-Length = 790 [13:49:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:57]execute_script... [13:49:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:57]POST & json_proto [13:49:57]process_json_proto [13:49:57]json parsed OK: [13:49:57]protocol is kg_v1.0 [13:49:57]action value=close_receipt [13:49:57]process_action close_receipt [13:49:57]cmd_close_receipt [13:49:57]MH_GetDate [13:49:57]Write to MH i2c: F0 00 00 08 0A 01 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 09 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 09 00 08 0A 00 86 1B 5F 66 CC 51 87 64 78 [13:49:57]GetLastDocTimeStamp 1717508528 [13:49:57]current date 1717508998 [13:49:57]FM_GetShiftState [13:49:57]SAM_PROTO_GetShiftState [13:49:57]wFMCommunicate request_size=4 [13:49:57]MH_SAM_APDU [13:49:57]CAPDU: 80 13 01 00 [13:49:57]Write to MH i2c: E2 08 00 09 0A 80 13 01 00 00 00 00 00 90 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:57]Read from MH i2c: E2 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 0E 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 0E 00 09 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 53 [13:49:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:49:57]wFMCommunicate OK [13:49:57]SAM_PROTO_GetShiftState done [13:49:57]FM_GetShiftState done [13:49:57]opened in 1717460629 [13:49:57]opened+sec_in_day 1717547029 [13:49:57]quantity*price = 30038 [13:49:57]sum+1 = 30039 [13:49:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 182 04.06.2024 13:49 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148843 ФПД: 64156628680525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134958&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148843&fm=64156628680525&tin=02508201610067®Number=0000000000092720&sum=30038 [13:49:58]StoreToDocumentArchive [13:49:58]shift 368 fd 148843 [13:49:58]save to /storage/0368/doc_00148843 [13:49:58]save last doc name /storage/0368/doc_00148843 to /storage/kkm_last_doc_name [13:49:58]save OK [13:49:58]Clear old archive folders... [13:49:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:58]tlvbuf is 00483C60 [13:49:58]SAM_PROTO_ClearQueue [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 09 00 00 [13:49:58]Write to MH i2c: E2 08 00 16 0A 80 09 00 00 00 00 00 00 92 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]SAM_PROTO_ClearQueue done [13:49:58]KKMCreateOFDPacket [13:49:58]OFDProtocolAddRootSTLVToBuf [13:49:58]FM_MakeSignedData [13:49:58]FM_MakeSignedData [13:49:58]SAM_PROTO_SignData [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 0D 01 02 [13:49:58]Write to MH i2c: E2 08 00 17 0A 80 0D 01 02 00 00 00 00 9A [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 17 0A 00 90 00 95 [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]wFMCommunicate request_size=255 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B6 00 00 00 F4 03 04 00 86 1B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6B 45 02 00 35 04 06 00 3A [13:49:58]Write to MH i2c: E2 02 01 18 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 86 1B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6B 45 02 00 35 04 06 00 3A 00 00 DD [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 18 0A 00 90 00 96 [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]wFMCommunicate request_size=10 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 0D 02 02 05 59 A1 0F FF 4D [13:49:58]Write to MH i2c: E2 0D 00 19 0A 80 0D 02 02 05 00 59 A1 0F FF 4D 00 00 FC [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 19 0A 00 90 00 97 [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 0D 03 02 [13:49:58]Write to MH i2c: E2 08 00 1A 0A 80 0D 03 02 00 00 00 00 9F [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 0B 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 0B 00 1A 0A 00 91 31 46 91 C5 41 1B 87 90 00 E1 [13:49:58]RAPDU: 91 31 46 91 C5 41 1B 87 90 00 [13:49:58]wFMCommunicate OK [13:49:58]SAM_PROTO_SignData done [13:49:58]FM_MakeSignedData done [13:49:58]CreateOFDProtocolMessage [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 11 00 00 [13:49:58]Write to MH i2c: E2 08 00 1B 0A 80 11 00 00 00 00 00 00 9F [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 17 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 17 00 1B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F2 [13:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:49:58]wFMCommunicate OK [13:49:58]CreateOFDProtocolMessage done [13:49:58]OFDSenderStorePacket 148843 [13:49:58]StoreOFDPacket docnum=148843 [13:49:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 6F 10 07 01 ED 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B6 00 00 00 F4 03 04 00 86 1B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6B 45 02 00 35 04 06 00 3A 59 A1 0F FF 4D 91 31 46 91 C5 41 1B 87 [13:49:58]CheckFolder [13:49:58]dirname=/storage/ofd_packets [13:49:58]CheckFolder done [13:49:58]ProducePacketName [13:49:58]name=ofd_packets/00148843 [13:49:58]NVStorageSaveData ofd_packets/00148843 [13:49:58]File name is /storage/ofd_packets/00148843 [13:49:58]Write 301 bytes [13:49:58]NVStorageSaveData done [13:49:58]OFDSenderStorePacket done [13:49:58]KKMCreateOFDPacket done [13:49:58]NVStorageSaveData kkm_last_timestamp [13:49:58]File name is /storage/kkm_last_timestamp [13:49:58]Write 4 bytes [13:49:58]NVStorageSaveData done [13:49:58]ExternCall_PrintAddStr [13:49:58]wPrintStart [13:49:58]Write to MH i2c: 01 00 00 1C 0A 26 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: 01 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: 01 07 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: 01 07 00 1C 0A 00 00 00 00 00 FF 0F 3B [13:49:58]RasterBufferAndPrint [13:49:58]line Счет N : (1)979771 [13:49:58]line ИНН: 02508201610067 [13:49:58]line Контрольно-Кассовый Чек [13:49:58]line ПРОДАЖА [13:49:58]line ТРК (МРК, ГНК) : 41 [13:49:58]line Товар: 2710124130 [13:49:58]line Аи-92-К-5 [13:49:58]line 4.490 * 66.90 [13:49:58]line = 300.38 [13:49:58]line НДС 12% НСП 1% [13:49:58]line > о реализуемом товаре [13:49:58]line ИТОГО: 300.38 [13:49:58]line НСП 1% : 2.66 [13:49:58]line НДС 12% : 31.90 [13:49:58]line Наличными: 0.00 [13:49:58]line Безнал.: 300.38 [13:49:58]line Место: АЗС № 68 "Партнер Нефть" [13:49:58]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:49:58]line СНО: Общий режим [13:49:58]line Чек 182 04.06.2024 13:49 [13:49:58]line Смена: 368 ФФД: 1.0 [13:49:58]line ЗНМ: 0300000035 [13:49:58]line РНМ: 0000000000092720 [13:49:58]line Версия ККМ: 001 [13:49:58]line Платежная система: KICB Банк [13:49:58]line ФМ: 0000000000875057 [13:49:58]line ФД: 148843 [13:49:58]line ФПД: 64156628680525 [13:49:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134958&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148843&fm=64156628680525&tin=02508201610067®Number=0000000000092720&sum=30038 [13:49:59]written 0, free lines is 4095 [13:49:59]OFD Sender: Processing packet 148843 [packets to send 100, broken 99] [13:49:59]ProducePacketName [13:49:59]name=ofd_packets/00148843 [13:49:59]OFD Sender: To server: pG, [13:49:59]CommunicateWithHost lk.salyk.kg:30040 [13:49:59]ConnectInit lk.salyk.kg [13:49:59]Connected sock=9 [13:49:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 6F 10 07 01 ED 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B6 00 00 00 F4 03 04 00 86 1B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6B 45 02 00 35 04 06 00 3A 59 A1 0F FF 4D 91 31 46 91 C5 41 1B 87 [13:49:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 AD 3A 47 00 C2 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 38 37 35 30 35 37 10 04 04 00 6B 45 02 00 F4 03 04 00 AA C2 5E 66 B6 04 01 00 00 40 85 E0 FF 25 EB 84 16 [13:49:59]CommunicateWithHost err = 0 [13:49:59]CheckOFDResponse [13:49:59]1017 (14) - 77093643461234 [13:49:59]1041 (16) - 0000000000875057 [13:49:59]1040 (4) - 148843 [13:49:59]1012 (4) - 04.06.2024 07:30 [13:49:59]1206 (1) - 0 [13:49:59]OFD Sender: Remove packet 148843 [13:49:59]ProducePacketName [13:49:59]name=ofd_packets/00148843 [13:49:59]NVStorageDeleteData [13:49:59]Write to MH i2c: 01 00 00 46 0A 50 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 46 0A 00 00 00 00 00 7F 0C E2 [13:49:59]RasterBufferAndPrint [13:49:59]line [13:49:59]line [13:49:59]line [13:49:59]line [13:49:59]line [13:49:59]written 0, free lines is 3202 [13:49:59]MH_Cut [13:49:59]Write to MH i2c: D1 01 00 4D 0A 01 29 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: D1 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: D1 01 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: D1 01 00 4D 0A 00 28 [13:49:59]Write to MH i2c: 01 00 00 4E 0A 58 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:50:00]OFD Sender: No OFD packet to send [13:50:00]*** Cut start [13:50:00]*** Partial cut [13:50:00]*** CUTSNS_PIN = 1 [13:50:00]*** CUTSNS_PIN = 0 [13:50:01]*** Brake cut motor [13:50:01]Read from MH i2c: 01 [13:50:01]MH_I2C_Read... [13:50:01]*** Stop cut motor [13:50:01]*** Cut end [13:50:01]Read from MH i2c: 01 07 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: 01 07 00 4E 0A 00 00 00 00 00 FF 0F 6D [13:50:01]process_action close_receipt done [13:50:01]requested_data is exist [13:50:01]produce_requested_data [13:50:01]requested_item fm.sn is exist - process it [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 11 00 00 [13:50:01]Write to MH i2c: E2 08 00 4F 0A 80 11 00 00 00 00 00 00 D3 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 17 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 17 00 4F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 26 [13:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:50:01]wFMCommunicate OK [13:50:01]requested_item fd.num is exist - process it [13:50:01]SAM_PROTO_GetFieldsCounters [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 13 00 00 [13:50:01]Write to MH i2c: E2 08 00 50 0A 80 13 00 00 00 00 00 00 D6 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 62 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 62 00 50 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6B 45 02 00 0E 04 04 00 70 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 37 [13:50:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6B 45 02 00 0E 04 04 00 70 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 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_GetFieldsCounters done [13:50:01]requested_item shift.num is exist - process it [13:50:01]requested_item shift.opened is exist - process it [13:50:01]req_shift_opened [13:50:01]FM_GetShiftState [13:50:01]SAM_PROTO_GetShiftState [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 13 01 00 [13:50:01]Write to MH i2c: E2 08 00 51 0A 80 13 01 00 00 00 00 00 D8 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0E 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0E 00 51 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9B [13:50:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_GetShiftState done [13:50:01]FM_GetShiftState done [13:50:01]req_shift_opened done [13:50:01]requested_item shift.open_date is exist - process it [13:50:01]req_shift_open_date [13:50:01]req_shift_open_date done [13:50:01]produce_requested_data done [13:50:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148843,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:50:01]process_action_free close_receipt [13:50:01]json_value_free [13:50:01]json_value_free done [13:50:01]process_json_proto returns [13:50:01]Send response to host [13:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148843,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:50:01]free response buf [13:50:01]execute_script done [13:50:01]execute_script returns [13:50:01]free content buf [13:50:01]Sock 7.Close socket [13:50:01]Sock 7.Thread stoped [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:30]accept exits with 10 [13:52:30]New connection [13:52:30]New thread 3067407716 created [13:52:30]Thread 3067264356 joined [13:52:30]Waiting for new connection... [13:52:30] Sock 10.Parse request [13:52:30]Sock 10.Check first char [13:52:30]Sock 10.First char is OK [13:52:30]request: POST /json_proto HTTP/1.0 [13:52:30]Method: POST [13:52:30]URL: /json_proto [13:52:30]Method is POST - this is cgi request [13:52:30]url: /json_proto [13:52:30]query_string will be loaded in cgi processing [13:52:30]execute_cgi json_proto POST (null) [13:52:30]execute_cgi path=json_proto method=POST [13:52:30]POST find Content-Length [13:52:30]Host: 172.17.38.4:8080 [13:52:30]Content-Length: 677 [13:52:30]Content-Type: application/json [13:52:30] [13:52:30]POST finish read [13:52:30]Found Content-Length = 677 [13:52:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:30]execute_script... [13:52: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)979772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:30]POST & json_proto [13:52:30]process_json_proto [13:52:30]json parsed OK: [13:52:30]protocol is kg_v1.0 [13:52:30]action value=close_receipt [13:52:30]process_action close_receipt [13:52:30]cmd_close_receipt [13:52:30]MH_GetDate [13:52:30]Write to MH i2c: F0 00 00 52 0A 4B [13:52:30]Write i2c OK [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: F0 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: F0 09 00 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: F0 09 00 52 0A 00 1F 1C 5F 66 CC 51 87 64 5C [13:52:30]GetLastDocTimeStamp 1717508998 [13:52:30]current date 1717509151 [13:52:30]FM_GetShiftState [13:52:30]SAM_PROTO_GetShiftState [13:52:30]wFMCommunicate request_size=4 [13:52:30]MH_SAM_APDU [13:52:30]CAPDU: 80 13 01 00 [13:52:30]Write to MH i2c: E2 08 00 53 0A 80 13 01 00 00 00 00 00 DA [13:52:30]Write i2c OK [13:52:30]MH_I2C_Read... [13:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:30]Read from MH i2c: E2 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: E2 0E 00 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: E2 0E 00 53 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9D [13:52:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:52:30]wFMCommunicate OK [13:52:30]SAM_PROTO_GetShiftState done [13:52:30]FM_GetShiftState done [13:52:30]opened in 1717460629 [13:52:30]opened+sec_in_day 1717547029 [13:52:30]quantity*price = 14049 [13:52:30]sum+1 = 14050 [13:52:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 183 04.06.2024 13:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148844 ФПД: 165493974093310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T135231&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148844&fm=165493974093310&tin=02508201610067®Number=0000000000092720&sum=14000 [13:52:31]StoreToDocumentArchive [13:52:31]shift 368 fd 148844 [13:52:31]save to /storage/0368/doc_00148844 [13:52:31]save last doc name /storage/0368/doc_00148844 to /storage/kkm_last_doc_name [13:52:31]save OK [13:52:31]Clear old archive folders... [13:52:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:31]tlvbuf is 004A7F10 [13:52:31]SAM_PROTO_ClearQueue [13:52:31]wFMCommunicate request_size=4 [13:52:31]MH_SAM_APDU [13:52:31]CAPDU: 80 09 00 00 [13:52:31]Write to MH i2c: E2 08 00 60 0A 80 09 00 00 00 00 00 00 DC [13:52:31]Write i2c OK [13:52:31]MH_I2C_Read... [13:52:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:31]Read from MH i2c: E2 [13:52:31]MH_I2C_Read... [13:52:31]Read from MH i2c: E2 03 00 [13:52:31]MH_I2C_Read... [13:52:31]Read from MH i2c: E2 03 00 60 0A 00 90 00 DE [13:52:31]RAPDU: 90 00 [13:52:31]wFMCommunicate OK [13:52:31]SAM_PROTO_ClearQueue done [13:52:31]KKMCreateOFDPacket [13:52:31]OFDProtocolAddRootSTLVToBuf [13:52:31]FM_MakeSignedData [13:52:31]FM_MakeSignedData [13:52:31]SAM_PROTO_SignData [13:52:31]wFMCommunicate request_size=4 [13:52:31]MH_SAM_APDU [13:52:31]CAPDU: 80 0D 01 02 [13:52:31]Write to MH i2c: E2 08 00 61 0A 80 0D 01 02 00 00 00 00 E4 [13:52:31]Write i2c OK [13:52:31]MH_I2C_Read... [13:52:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:31]Read from MH i2c: E2 [13:52:31]MH_I2C_Read... [13:52:31]Read from MH i2c: E2 03 00 [13:52:31]MH_I2C_Read... [13:52:31]Read from MH i2c: E2 03 00 61 0A 00 90 00 DF [13:52:31]RAPDU: 90 00 [13:52:31]wFMCommunicate OK [13:52:31]wFMCommunicate request_size=255 [13:52:31]MH_SAM_APDU [13:52:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1F 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6C 45 02 00 35 04 06 00 96 [13:52:31]Write to MH i2c: E2 02 01 62 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1F 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6C 45 02 00 35 04 06 00 96 00 00 0A [13:52:31]Write i2c OK [13:52:31]MH_I2C_Read... [13:52:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:32]Read from MH i2c: E2 [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: E2 03 00 [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: E2 03 00 62 0A 00 90 00 E0 [13:52:32]RAPDU: 90 00 [13:52:32]wFMCommunicate OK [13:52:32]wFMCommunicate request_size=10 [13:52:32]MH_SAM_APDU [13:52:32]CAPDU: 80 0D 02 02 05 84 11 89 CD FE [13:52:32]Write to MH i2c: E2 0D 00 63 0A 80 0D 02 02 05 00 84 11 89 CD FE 00 00 DA [13:52:32]Write i2c OK [13:52:32]MH_I2C_Read... [13:52:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:32]Read from MH i2c: E2 [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: E2 03 00 [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: E2 03 00 63 0A 00 90 00 E1 [13:52:32]RAPDU: 90 00 [13:52:32]wFMCommunicate OK [13:52:32]wFMCommunicate request_size=4 [13:52:32]MH_SAM_APDU [13:52:32]CAPDU: 80 0D 03 02 [13:52:32]Write to MH i2c: E2 08 00 64 0A 80 0D 03 02 00 00 00 00 E9 [13:52:32]Write i2c OK [13:52:32]MH_I2C_Read... [13:52:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:32]Read from MH i2c: E2 [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: E2 0B 00 [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: E2 0B 00 64 0A 00 FF 3D A4 42 70 C2 AE 2C 90 00 18 [13:52:32]RAPDU: FF 3D A4 42 70 C2 AE 2C 90 00 [13:52:32]wFMCommunicate OK [13:52:32]SAM_PROTO_SignData done [13:52:32]FM_MakeSignedData done [13:52:32]CreateOFDProtocolMessage [13:52:32]wFMCommunicate request_size=4 [13:52:32]MH_SAM_APDU [13:52:32]CAPDU: 80 11 00 00 [13:52:32]Write to MH i2c: E2 08 00 65 0A 80 11 00 00 00 00 00 00 E9 [13:52:32]Write i2c OK [13:52:32]MH_I2C_Read... [13:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:32]Read from MH i2c: E2 [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: E2 17 00 [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: E2 17 00 65 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3C [13:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:52:32]wFMCommunicate OK [13:52:32]CreateOFDProtocolMessage done [13:52:32]OFDSenderStorePacket 148844 [13:52:32]StoreOFDPacket docnum=148844 [13:52:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 BC 1D 07 01 A2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1F 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6C 45 02 00 35 04 06 00 96 84 11 89 CD FE FF 3D A4 42 70 C2 AE 2C [13:52:32]CheckFolder [13:52:32]dirname=/storage/ofd_packets [13:52:32]CheckFolder done [13:52:32]ProducePacketName [13:52:32]name=ofd_packets/00148844 [13:52:32]NVStorageSaveData ofd_packets/00148844 [13:52:32]File name is /storage/ofd_packets/00148844 [13:52:32]Write 301 bytes [13:52:32]NVStorageSaveData done [13:52:32]OFDSenderStorePacket done [13:52:32]KKMCreateOFDPacket done [13:52:32]NVStorageSaveData kkm_last_timestamp [13:52:32]File name is /storage/kkm_last_timestamp [13:52:32]Write 4 bytes [13:52:32]NVStorageSaveData done [13:52:32]ExternCall_PrintAddStr [13:52:32]wPrintStart [13:52:32]Write to MH i2c: 01 00 00 66 0A 70 [13:52:32]Write i2c OK [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: 01 [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: 01 07 00 [13:52:32]MH_I2C_Read... [13:52:32]Read from MH i2c: 01 07 00 66 0A 00 00 00 00 00 FF 0F 85 [13:52:32]RasterBufferAndPrint [13:52:32]line Счет N : (1)979772 [13:52:32]line ИНН: 02508201610067 [13:52:32]line Контрольно-Кассовый Чек [13:52:32]line ПРОДАЖА [13:52:32]line ТРК (МРК, ГНК) : 31 [13:52:32]line Товар: 2710124130 [13:52:32]line Аи-92-К-5 [13:52:32]line 2.100 * 66.90 [13:52:32]line = 140.49 [13:52:32]line НДС 12% НСП 1% [13:52:32]line > о реализуемом товаре [13:52:32]line ОКРУГЛЕНИЕ: -0.49 [13:52:32]line ИТОГО: 140.00 [13:52:32]line Внесено: 140.00 [13:52:32]line СДАЧА: 0.00 [13:52:32]line НСП 1% : 1.24 [13:52:32]line НДС 12% : 14.92 [13:52:32]line Наличными: 140.00 [13:52:32]line Безнал.: 0.00 [13:52:32]line Место: АЗС № 68 "Партнер Нефть" [13:52:32]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:52:32]line СНО: Общий режим [13:52:32]line Чек 183 04.06.2024 13:52 [13:52:32]line Смена: 368 ФФД: 1.0 [13:52:32]line ЗНМ: 0300000035 [13:52:32]line РНМ: 0000000000092720 [13:52:32]line Версия ККМ: 001 [13:52:32]line ФМ: 0000000000875057 [13:52:32]line ФД: 148844 [13:52:32]line ФПД: 165493974093310 [13:52:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T135231&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148844&fm=165493974093310&tin=02508201610067®Number=0000000000092720&sum=14000 [13:52:32]OFD Sender: Processing packet 148844 [packets to send 100, broken 99] [13:52:32]ProducePacketName [13:52:32]name=ofd_packets/00148844 [13:52:32]OFD Sender: To server: pG, [13:52:32]CommunicateWithHost lk.salyk.kg:30040 [13:52:32]ConnectInit lk.salyk.kg [13:52:32]written 0, free lines is 4095 [13:52:32]Connected sock=9 [13:52:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 BC 1D 07 01 A2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 1F 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6C 45 02 00 35 04 06 00 96 84 11 89 CD FE FF 3D A4 42 70 C2 AE 2C [13:52:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BE 5B 47 00 5C 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6C 45 02 00 F4 03 04 00 43 C3 5E 66 B6 04 01 00 00 03 FF 9F 59 5A DD 70 9A [13:52:33]CommunicateWithHost err = 0 [13:52:33]CheckOFDResponse [13:52:33]1017 (14) - 77093643461234 [13:52:33]1041 (16) - 0000000000875057 [13:52:33]1040 (4) - 148844 [13:52:33]1012 (4) - 04.06.2024 07:33 [13:52:33]1206 (1) - 0 [13:52:33]OFD Sender: Remove packet 148844 [13:52:33]ProducePacketName [13:52:33]name=ofd_packets/00148844 [13:52:33]NVStorageDeleteData [13:52:33]Write to MH i2c: 01 00 00 91 0A 9B [13:52:33]Write i2c OK [13:52:33]MH_I2C_Read... [13:52:33]Read from MH i2c: 01 [13:52:33]MH_I2C_Read... [13:52:33]Read from MH i2c: 01 07 00 [13:52:33]MH_I2C_Read... [13:52:33]Read from MH i2c: 01 07 00 91 0A 00 00 00 00 00 60 0C 0E [13:52:33]RasterBufferAndPrint [13:52:33]line [13:52:33]line [13:52:33]line [13:52:33]line [13:52:33]line [13:52:33]written 0, free lines is 3171 [13:52:33]MH_Cut [13:52:33]Write to MH i2c: D1 01 00 98 0A 01 74 [13:52:33]Write i2c OK [13:52:33]MH_I2C_Read... [13:52:33]Read from MH i2c: D1 [13:52:33]MH_I2C_Read... [13:52:33]Read from MH i2c: D1 01 00 [13:52:33]MH_I2C_Read... [13:52:33]Read from MH i2c: D1 01 00 98 0A 00 73 [13:52:33]Write to MH i2c: 01 00 00 99 0A A3 [13:52:33]Write i2c OK [13:52:33]MH_I2C_Read... [13:52:33]OFD Sender: No OFD packet to send [13:52:34]*** Cut start [13:52:34]*** Partial cut [13:52:34]*** CUTSNS_PIN = 1 [13:52:34]*** CUTSNS_PIN = 0 [13:52:34]*** Brake cut motor [13:52:35]Read from MH i2c: 01 [13:52:35]MH_I2C_Read... [13:52:35]*** Stop cut motor [13:52:35]*** Cut end [13:52:35]Read from MH i2c: 01 07 00 [13:52:35]MH_I2C_Read... [13:52:35]Read from MH i2c: 01 07 00 99 0A 00 00 00 00 00 FF 0F B8 [13:52:35]process_action close_receipt done [13:52:35]requested_data is exist [13:52:35]produce_requested_data [13:52:35]requested_item fm.sn is exist - process it [13:52:35]wFMCommunicate request_size=4 [13:52:35]MH_SAM_APDU [13:52:35]CAPDU: 80 11 00 00 [13:52:35]Write to MH i2c: E2 08 00 9A 0A 80 11 00 00 00 00 00 00 1E [13:52:35]Write i2c OK [13:52:35]MH_I2C_Read... [13:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:35]Read from MH i2c: E2 [13:52:35]MH_I2C_Read... [13:52:35]Read from MH i2c: E2 17 00 [13:52:35]MH_I2C_Read... [13:52:35]Read from MH i2c: E2 17 00 9A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 71 [13:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:52:35]wFMCommunicate OK [13:52:35]requested_item fd.num is exist - process it [13:52:35]SAM_PROTO_GetFieldsCounters [13:52:35]wFMCommunicate request_size=4 [13:52:35]MH_SAM_APDU [13:52:35]CAPDU: 80 13 00 00 [13:52:35]Write to MH i2c: E2 08 00 9B 0A 80 13 00 00 00 00 00 00 21 [13:52:35]Write i2c OK [13:52:35]MH_I2C_Read... [13:52:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:35]Read from MH i2c: E2 [13:52:35]MH_I2C_Read... [13:52:35]Read from MH i2c: E2 62 00 [13:52:35]MH_I2C_Read... [13:52:35]Read from MH i2c: E2 62 00 9B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6C 45 02 00 0E 04 04 00 70 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 86 [13:52:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6C 45 02 00 0E 04 04 00 70 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 [13:52:35]wFMCommunicate OK [13:52:35]SAM_PROTO_GetFieldsCounters done [13:52:35]requested_item shift.num is exist - process it [13:52:35]requested_item shift.opened is exist - process it [13:52:35]req_shift_opened [13:52:35]FM_GetShiftState [13:52:35]SAM_PROTO_GetShiftState [13:52:35]wFMCommunicate request_size=4 [13:52:35]MH_SAM_APDU [13:52:35]CAPDU: 80 13 01 00 [13:52:35]Write to MH i2c: E2 08 00 9C 0A 80 13 01 00 00 00 00 00 23 [13:52:35]Write i2c OK [13:52:35]MH_I2C_Read... [13:52:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:35]Read from MH i2c: E2 [13:52:35]MH_I2C_Read... [13:52:35]Read from MH i2c: E2 0E 00 [13:52:35]MH_I2C_Read... [13:52:35]Read from MH i2c: E2 0E 00 9C 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E6 [13:52:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:52:35]wFMCommunicate OK [13:52:35]SAM_PROTO_GetShiftState done [13:52:35]FM_GetShiftState done [13:52:35]req_shift_opened done [13:52:35]requested_item shift.open_date is exist - process it [13:52:35]req_shift_open_date [13:52:35]req_shift_open_date done [13:52:35]produce_requested_data done [13:52:35]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148844,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:52:35]process_action_free close_receipt [13:52:35]json_value_free [13:52:35]json_value_free done [13:52:35]process_json_proto returns [13:52:35]Send response to host [13:52:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148844,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:52:35]free response buf [13:52:35]execute_script done [13:52:35]execute_script returns [13:52:35]free content buf [13:52:35]Sock 10.Close socket [13:52:35]Sock 10.Thread stoped [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:53:59]accept exits with 7 [13:53:59]New connection [13:53:59]New thread 3067264356 created [13:53:59]Thread 3067407716 joined [13:53:59]Waiting for new connection... [13:53:59] Sock 7.Parse request [13:53:59]Sock 7.Check first char [13:53:59]Sock 7.First char is OK [13:53:59]request: POST /json_proto HTTP/1.0 [13:53:59]Method: POST [13:53:59]URL: /json_proto [13:53:59]Method is POST - this is cgi request [13:53:59]url: /json_proto [13:53:59]query_string will be loaded in cgi processing [13:53:59]execute_cgi json_proto POST (null) [13:53:59]execute_cgi path=json_proto method=POST [13:53:59]POST find Content-Length [13:53:59]Host: 172.17.38.4:8080 [13:53:59]Content-Length: 677 [13:53:59]Content-Type: application/json [13:53:59] [13:53:59]POST finish read [13:53:59]Found Content-Length = 677 [13:53:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:59]execute_script... [13:53: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)979773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:59]POST & json_proto [13:53:59]process_json_proto [13:53:59]json parsed OK: [13:53:59]protocol is kg_v1.0 [13:53:59]action value=close_receipt [13:53:59]process_action close_receipt [13:53:59]cmd_close_receipt [13:53:59]MH_GetDate [13:53:59]Write to MH i2c: F0 00 00 9D 0A 96 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: F0 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: F0 09 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: F0 09 00 9D 0A 00 79 1C 5F 66 CC 51 87 64 01 [13:53:59]GetLastDocTimeStamp 1717509151 [13:53:59]current date 1717509241 [13:53:59]FM_GetShiftState [13:53:59]SAM_PROTO_GetShiftState [13:53:59]wFMCommunicate request_size=4 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 13 01 00 [13:53:59]Write to MH i2c: E2 08 00 9E 0A 80 13 01 00 00 00 00 00 25 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 0E 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 0E 00 9E 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E8 [13:53:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:53:59]wFMCommunicate OK [13:53:59]SAM_PROTO_GetShiftState done [13:53:59]FM_GetShiftState done [13:53:59]opened in 1717460629 [13:53:59]opened+sec_in_day 1717547029 [13:53:59]quantity*price = 25020 [13:53:59]sum+1 = 25022 [13:53:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 184 04.06.2024 13:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148845 ФПД: 15305112900444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T135401&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148845&fm=15305112900444&tin=02508201610067®Number=0000000000092720&sum=25000 [13:54:01]StoreToDocumentArchive [13:54:01]shift 368 fd 148845 [13:54:01]save to /storage/0368/doc_00148845 [13:54:01]save last doc name /storage/0368/doc_00148845 to /storage/kkm_last_doc_name [13:54:01]save OK [13:54:01]Clear old archive folders... [13:54:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:01]tlvbuf is 0046E820 [13:54:01]SAM_PROTO_ClearQueue [13:54:01]wFMCommunicate request_size=4 [13:54:01]MH_SAM_APDU [13:54:01]CAPDU: 80 09 00 00 [13:54:01]Write to MH i2c: E2 08 00 AB 0A 80 09 00 00 00 00 00 00 27 [13:54:01]Write i2c OK [13:54:01]MH_I2C_Read... [13:54:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:01]Read from MH i2c: E2 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 03 00 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 03 00 AB 0A 00 90 00 29 [13:54:01]RAPDU: 90 00 [13:54:01]wFMCommunicate OK [13:54:01]SAM_PROTO_ClearQueue done [13:54:01]KKMCreateOFDPacket [13:54:01]OFDProtocolAddRootSTLVToBuf [13:54:01]FM_MakeSignedData [13:54:01]FM_MakeSignedData [13:54:01]SAM_PROTO_SignData [13:54:01]wFMCommunicate request_size=4 [13:54:01]MH_SAM_APDU [13:54:01]CAPDU: 80 0D 01 02 [13:54:01]Write to MH i2c: E2 08 00 AC 0A 80 0D 01 02 00 00 00 00 2F [13:54:01]Write i2c OK [13:54:01]MH_I2C_Read... [13:54:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:01]Read from MH i2c: E2 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 03 00 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 03 00 AC 0A 00 90 00 2A [13:54:01]RAPDU: 90 00 [13:54:01]wFMCommunicate OK [13:54:01]wFMCommunicate request_size=255 [13:54:01]MH_SAM_APDU [13:54:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 79 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6D 45 02 00 35 04 06 00 0D [13:54:01]Write to MH i2c: E2 02 01 AD 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 79 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6D 45 02 00 35 04 06 00 0D 00 00 D6 [13:54:01]Write i2c OK [13:54:01]MH_I2C_Read... [13:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:01]Read from MH i2c: E2 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 03 00 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 03 00 AD 0A 00 90 00 2B [13:54:01]RAPDU: 90 00 [13:54:01]wFMCommunicate OK [13:54:01]wFMCommunicate request_size=10 [13:54:01]MH_SAM_APDU [13:54:01]CAPDU: 80 0D 02 02 05 EB 7F D1 53 5C [13:54:01]Write to MH i2c: E2 0D 00 AE 0A 80 0D 02 02 05 00 EB 7F D1 53 5C 00 00 26 [13:54:01]Write i2c OK [13:54:01]MH_I2C_Read... [13:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:01]Read from MH i2c: E2 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 03 00 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [13:54:01]RAPDU: 90 00 [13:54:01]wFMCommunicate OK [13:54:01]wFMCommunicate request_size=4 [13:54:01]MH_SAM_APDU [13:54:01]CAPDU: 80 0D 03 02 [13:54:01]Write to MH i2c: E2 08 00 AF 0A 80 0D 03 02 00 00 00 00 34 [13:54:01]Write i2c OK [13:54:01]MH_I2C_Read... [13:54:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:01]Read from MH i2c: E2 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 0B 00 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 0B 00 AF 0A 00 6B 3C DB 0E C9 69 98 44 90 00 D3 [13:54:01]RAPDU: 6B 3C DB 0E C9 69 98 44 90 00 [13:54:01]wFMCommunicate OK [13:54:01]SAM_PROTO_SignData done [13:54:01]FM_MakeSignedData done [13:54:01]CreateOFDProtocolMessage [13:54:01]wFMCommunicate request_size=4 [13:54:01]MH_SAM_APDU [13:54:01]CAPDU: 80 11 00 00 [13:54:01]Write to MH i2c: E2 08 00 B0 0A 80 11 00 00 00 00 00 00 34 [13:54:01]Write i2c OK [13:54:01]MH_I2C_Read... [13:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:01]Read from MH i2c: E2 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 17 00 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: E2 17 00 B0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 87 [13:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:54:01]wFMCommunicate OK [13:54:01]CreateOFDProtocolMessage done [13:54:01]OFDSenderStorePacket 148845 [13:54:01]StoreOFDPacket docnum=148845 [13:54:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 0D B1 07 01 7F 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 79 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6D 45 02 00 35 04 06 00 0D EB 7F D1 53 5C 6B 3C DB 0E C9 69 98 44 [13:54:01]CheckFolder [13:54:01]dirname=/storage/ofd_packets [13:54:01]CheckFolder done [13:54:01]ProducePacketName [13:54:01]name=ofd_packets/00148845 [13:54:01]NVStorageSaveData ofd_packets/00148845 [13:54:01]File name is /storage/ofd_packets/00148845 [13:54:01]Write 301 bytes [13:54:01]NVStorageSaveData done [13:54:01]OFDSenderStorePacket done [13:54:01]KKMCreateOFDPacket done [13:54:01]NVStorageSaveData kkm_last_timestamp [13:54:01]File name is /storage/kkm_last_timestamp [13:54:01]Write 4 bytes [13:54:01]NVStorageSaveData done [13:54:01]ExternCall_PrintAddStr [13:54:01]wPrintStart [13:54:01]Write to MH i2c: 01 00 00 B1 0A BB [13:54:01]Write i2c OK [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: 01 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: 01 07 00 [13:54:01]MH_I2C_Read... [13:54:01]Read from MH i2c: 01 07 00 B1 0A 00 00 00 00 00 FF 0F D0 [13:54:01]RasterBufferAndPrint [13:54:01]line Счет N : (1)979773 [13:54:01]line ИНН: 02508201610067 [13:54:01]line Контрольно-Кассовый Чек [13:54:01]line ПРОДАЖА [13:54:01]line ТРК (МРК, ГНК) : 12 [13:54:01]line Товар: 2710124130 [13:54:01]line Аи-92-К-5 [13:54:01]line 3.740 * 66.90 [13:54:01]line = 250.21 [13:54:01]line НДС 12% НСП 1% [13:54:01]line > о реализуемом товаре [13:54:01]line ОКРУГЛЕНИЕ: -0.21 [13:54:01]line ИТОГО: 250.00 [13:54:01]line Внесено: 250.00 [13:54:01]line СДАЧА: 0.00 [13:54:01]line НСП 1% : 2.21 [13:54:01]line НДС 12% : 26.57 [13:54:01]line Наличными: 250.00 [13:54:01]line Безнал.: 0.00 [13:54:01]line Место: АЗС № 68 "Партнер Нефть" [13:54:01]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:54:01]line СНО: Общий режим [13:54:01]line Чек 184 04.06.2024 13:54 [13:54:01]line Смена: 368 ФФД: 1.0 [13:54:01]line ЗНМ: 0300000035 [13:54:01]line РНМ: 0000000000092720 [13:54:01]line Версия ККМ: 001 [13:54:01]line ФМ: 0000000000875057 [13:54:01]line ФД: 148845 [13:54:01]line ФПД: 15305112900444 [13:54:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T135401&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148845&fm=15305112900444&tin=02508201610067®Number=0000000000092720&sum=25000 [13:54:01]OFD Sender: Processing packet 148845 [packets to send 100, broken 99] [13:54:01]ProducePacketName [13:54:01]name=ofd_packets/00148845 [13:54:01]OFD Sender: To server: pG, [13:54:01]CommunicateWithHost lk.salyk.kg:30040 [13:54:01]ConnectInit lk.salyk.kg [13:54:01]written 0, free lines is 4095 [13:54:02]Connected sock=10 [13:54:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 0D B1 07 01 7F 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 79 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6D 45 02 00 35 04 06 00 0D EB 7F D1 53 5C 6B 3C DB 0E C9 69 98 44 [13:54:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 09 2C 47 00 01 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6D 45 02 00 F4 03 04 00 9C C3 5E 66 B6 04 01 00 00 87 45 97 3D 4F 3C 79 1D [13:54:02]CommunicateWithHost err = 0 [13:54:02]CheckOFDResponse [13:54:02]1017 (14) - 77093643461234 [13:54:02]1041 (16) - 0000000000875057 [13:54:02]1040 (4) - 148845 [13:54:02]1012 (4) - 04.06.2024 07:34 [13:54:02]1206 (1) - 0 [13:54:02]OFD Sender: Remove packet 148845 [13:54:02]ProducePacketName [13:54:02]name=ofd_packets/00148845 [13:54:02]NVStorageDeleteData [13:54:02]Write to MH i2c: 01 00 00 DC 0A E6 [13:54:02]Write i2c OK [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: 01 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: 01 07 00 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: 01 07 00 DC 0A 00 00 00 00 00 66 0C 5F [13:54:02]RasterBufferAndPrint [13:54:02]line [13:54:02]line [13:54:02]line [13:54:02]line [13:54:02]line [13:54:02]written 0, free lines is 3178 [13:54:02]MH_Cut [13:54:02]Write to MH i2c: D1 01 00 E3 0A 01 BF [13:54:02]Write i2c OK [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: D1 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: D1 01 00 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: D1 01 00 E3 0A 00 BE [13:54:02]Write to MH i2c: 01 00 00 E4 0A EE [13:54:02]Write i2c OK [13:54:02]MH_I2C_Read... [13:54:02]OFD Sender: No OFD packet to send [13:54:03]*** Cut start [13:54:03]*** Partial cut [13:54:03]*** CUTSNS_PIN = 1 [13:54:03]*** CUTSNS_PIN = 0 [13:54:03]*** Brake cut motor [13:54:04]Read from MH i2c: 01 [13:54:04]MH_I2C_Read... [13:54:04]*** Stop cut motor [13:54:04]*** Cut end [13:54:04]Read from MH i2c: 01 07 00 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: 01 07 00 E4 0A 00 00 00 00 00 FF 0F 03 [13:54:04]process_action close_receipt done [13:54:04]requested_data is exist [13:54:04]produce_requested_data [13:54:04]requested_item fm.sn is exist - process it [13:54:04]wFMCommunicate request_size=4 [13:54:04]MH_SAM_APDU [13:54:04]CAPDU: 80 11 00 00 [13:54:04]Write to MH i2c: E2 08 00 E5 0A 80 11 00 00 00 00 00 00 69 [13:54:04]Write i2c OK [13:54:04]MH_I2C_Read... [13:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:04]Read from MH i2c: E2 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: E2 17 00 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: E2 17 00 E5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BC [13:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:54:04]wFMCommunicate OK [13:54:04]requested_item fd.num is exist - process it [13:54:04]SAM_PROTO_GetFieldsCounters [13:54:04]wFMCommunicate request_size=4 [13:54:04]MH_SAM_APDU [13:54:04]CAPDU: 80 13 00 00 [13:54:04]Write to MH i2c: E2 08 00 E6 0A 80 13 00 00 00 00 00 00 6C [13:54:04]Write i2c OK [13:54:04]MH_I2C_Read... [13:54:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:04]Read from MH i2c: E2 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: E2 62 00 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: E2 62 00 E6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6D 45 02 00 0E 04 04 00 70 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 D5 [13:54:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6D 45 02 00 0E 04 04 00 70 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 [13:54:04]wFMCommunicate OK [13:54:04]SAM_PROTO_GetFieldsCounters done [13:54:04]requested_item shift.num is exist - process it [13:54:04]requested_item shift.opened is exist - process it [13:54:04]req_shift_opened [13:54:04]FM_GetShiftState [13:54:04]SAM_PROTO_GetShiftState [13:54:04]wFMCommunicate request_size=4 [13:54:04]MH_SAM_APDU [13:54:04]CAPDU: 80 13 01 00 [13:54:04]Write to MH i2c: E2 08 00 E7 0A 80 13 01 00 00 00 00 00 6E [13:54:04]Write i2c OK [13:54:04]MH_I2C_Read... [13:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:04]Read from MH i2c: E2 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: E2 0E 00 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: E2 0E 00 E7 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 31 [13:54:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:54:04]wFMCommunicate OK [13:54:04]SAM_PROTO_GetShiftState done [13:54:04]FM_GetShiftState done [13:54:04]req_shift_opened done [13:54:04]requested_item shift.open_date is exist - process it [13:54:04]req_shift_open_date [13:54:04]req_shift_open_date done [13:54:04]produce_requested_data done [13:54:04]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148845,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:54:04]process_action_free close_receipt [13:54:04]json_value_free [13:54:04]json_value_free done [13:54:04]process_json_proto returns [13:54:04]Send response to host [13:54:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148845,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:54:04]free response buf [13:54:04]execute_script done [13:54:04]execute_script returns [13:54:04]free content buf [13:54:04]Sock 7.Close socket [13:54:04]Sock 7.Thread stoped [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]accept exits with 9 [13:54:32]New connection [13:54:32]New thread 3067407716 created [13:54:32]Thread 3067264356 joined [13:54:32]Waiting for new connection... [13:54:32] Sock 9.Parse request [13:54:32]Sock 9.Check first char [13:54:32]Sock 9.First char is OK [13:54:32]request: POST /json_proto HTTP/1.0 [13:54:32]Method: POST [13:54:32]URL: /json_proto [13:54:32]Method is POST - this is cgi request [13:54:32]url: /json_proto [13:54:32]query_string will be loaded in cgi processing [13:54:32]execute_cgi json_proto POST (null) [13:54:32]execute_cgi path=json_proto method=POST [13:54:32]POST find Content-Length [13:54:32]Host: 172.17.38.4:8080 [13:54:32]Content-Length: 677 [13:54:32]Content-Type: application/json [13:54:32] [13:54:32]POST finish read [13:54:32]Found Content-Length = 677 [13:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:32]execute_script... [13:54: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)979774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:32]POST & json_proto [13:54:32]process_json_proto [13:54:32]json parsed OK: [13:54:32]protocol is kg_v1.0 [13:54:32]action value=close_receipt [13:54:32]process_action close_receipt [13:54:32]cmd_close_receipt [13:54:32]MH_GetDate [13:54:32]Write to MH i2c: F0 00 00 E8 0A E1 [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: F0 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: F0 09 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: F0 09 00 E8 0A 00 99 1C 5F 66 CC 51 87 64 6C [13:54:32]GetLastDocTimeStamp 1717509241 [13:54:32]current date 1717509273 [13:54:32]FM_GetShiftState [13:54:32]SAM_PROTO_GetShiftState [13:54:32]wFMCommunicate request_size=4 [13:54:32]MH_SAM_APDU [13:54:32]CAPDU: 80 13 01 00 [13:54:32]Write to MH i2c: E2 08 00 E9 0A 80 13 01 00 00 00 00 00 70 [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:32]Read from MH i2c: E2 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 0E 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: E2 0E 00 E9 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 33 [13:54:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:54:32]wFMCommunicate OK [13:54:32]SAM_PROTO_GetShiftState done [13:54:32]FM_GetShiftState done [13:54:32]opened in 1717460629 [13:54:32]opened+sec_in_day 1717547029 [13:54:32]quantity*price = 20003 [13:54:32]sum+1 = 20004 [13:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 185 04.06.2024 13:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148846 ФПД: 189448407658251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T135433&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148846&fm=189448407658251&tin=02508201610067®Number=0000000000092720&sum=20000 [13:54:33]StoreToDocumentArchive [13:54:33]shift 368 fd 148846 [13:54:33]save to /storage/0368/doc_00148846 [13:54:33]save last doc name /storage/0368/doc_00148846 to /storage/kkm_last_doc_name [13:54:33]save OK [13:54:33]Clear old archive folders... [13:54:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:33]tlvbuf is 00484550 [13:54:33]SAM_PROTO_ClearQueue [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 09 00 00 [13:54:33]Write to MH i2c: E2 08 00 F6 0A 80 09 00 00 00 00 00 00 72 [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 03 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 03 00 F6 0A 00 90 00 74 [13:54:33]RAPDU: 90 00 [13:54:33]wFMCommunicate OK [13:54:33]SAM_PROTO_ClearQueue done [13:54:33]KKMCreateOFDPacket [13:54:33]OFDProtocolAddRootSTLVToBuf [13:54:33]FM_MakeSignedData [13:54:33]FM_MakeSignedData [13:54:33]SAM_PROTO_SignData [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 0D 01 02 [13:54:33]Write to MH i2c: E2 08 00 F7 0A 80 0D 01 02 00 00 00 00 7A [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 03 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 03 00 F7 0A 00 90 00 75 [13:54:33]RAPDU: 90 00 [13:54:33]wFMCommunicate OK [13:54:33]wFMCommunicate request_size=255 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 99 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6E 45 02 00 35 04 06 00 AC [13:54:33]Write to MH i2c: E2 02 01 F8 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 99 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6E 45 02 00 35 04 06 00 AC 00 00 CB [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 03 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 03 00 F8 0A 00 90 00 76 [13:54:33]RAPDU: 90 00 [13:54:33]wFMCommunicate OK [13:54:33]wFMCommunicate request_size=10 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 0D 02 02 05 4D 65 0A AF 0B [13:54:33]Write to MH i2c: E2 0D 00 F9 0A 80 0D 02 02 05 00 4D 65 0A AF 0B 00 00 FD [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 03 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 03 00 F9 0A 00 90 00 77 [13:54:33]RAPDU: 90 00 [13:54:33]wFMCommunicate OK [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 0D 03 02 [13:54:33]Write to MH i2c: E2 08 00 FA 0A 80 0D 03 02 00 00 00 00 7F [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 0B 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 0B 00 FA 0A 00 CF 31 3C 4B 6A B2 52 0A 90 00 7F [13:54:33]RAPDU: CF 31 3C 4B 6A B2 52 0A 90 00 [13:54:33]wFMCommunicate OK [13:54:33]SAM_PROTO_SignData done [13:54:33]FM_MakeSignedData done [13:54:33]CreateOFDProtocolMessage [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 11 00 00 [13:54:33]Write to MH i2c: E2 08 00 FB 0A 80 11 00 00 00 00 00 00 7F [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 17 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 17 00 FB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D2 [13:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:54:33]wFMCommunicate OK [13:54:33]CreateOFDProtocolMessage done [13:54:33]OFDSenderStorePacket 148846 [13:54:33]StoreOFDPacket docnum=148846 [13:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CE 06 07 01 4E 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 99 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6E 45 02 00 35 04 06 00 AC 4D 65 0A AF 0B CF 31 3C 4B 6A B2 52 0A [13:54:33]CheckFolder [13:54:33]dirname=/storage/ofd_packets [13:54:33]CheckFolder done [13:54:33]ProducePacketName [13:54:33]name=ofd_packets/00148846 [13:54:33]NVStorageSaveData ofd_packets/00148846 [13:54:33]File name is /storage/ofd_packets/00148846 [13:54:33]Write 301 bytes [13:54:33]NVStorageSaveData done [13:54:33]OFDSenderStorePacket done [13:54:33]KKMCreateOFDPacket done [13:54:33]NVStorageSaveData kkm_last_timestamp [13:54:33]File name is /storage/kkm_last_timestamp [13:54:33]Write 4 bytes [13:54:33]NVStorageSaveData done [13:54:33]ExternCall_PrintAddStr [13:54:33]wPrintStart [13:54:33]Write to MH i2c: 01 00 00 FC 0A 06 [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: 01 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: 01 07 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: 01 07 00 FC 0A 00 00 00 00 00 FF 0F 1B [13:54:33]RasterBufferAndPrint [13:54:33]line Счет N : (1)979774 [13:54:33]line ИНН: 02508201610067 [13:54:33]line Контрольно-Кассовый Чек [13:54:33]line ПРОДАЖА [13:54:33]line ТРК (МРК, ГНК) : 41 [13:54:33]line Товар: 2710124130 [13:54:33]line Аи-92-К-5 [13:54:33]line 2.990 * 66.90 [13:54:33]line = 200.03 [13:54:33]line НДС 12% НСП 1% [13:54:33]line > о реализуемом товаре [13:54:33]line ОКРУГЛЕНИЕ: -0.03 [13:54:33]line ИТОГО: 200.00 [13:54:33]line Внесено: 200.00 [13:54:33]line СДАЧА: 0.00 [13:54:33]line НСП 1% : 1.77 [13:54:33]line НДС 12% : 21.24 [13:54:33]line Наличными: 200.00 [13:54:33]line Безнал.: 0.00 [13:54:33]line Место: АЗС № 68 "Партнер Нефть" [13:54:33]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [13:54:33]line СНО: Общий режим [13:54:33]line Чек 185 04.06.2024 13:54 [13:54:33]line Смена: 368 ФФД: 1.0 [13:54:33]line ЗНМ: 0300000035 [13:54:33]line РНМ: 0000000000092720 [13:54:33]line Версия ККМ: 001 [13:54:33]line ФМ: 0000000000875057 [13:54:33]line ФД: 148846 [13:54:33]line ФПД: 189448407658251 [13:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T135433&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148846&fm=189448407658251&tin=02508201610067®Number=0000000000092720&sum=20000 [13:54:34]OFD Sender: Processing packet 148846 [packets to send 100, broken 99] [13:54:34]ProducePacketName [13:54:34]name=ofd_packets/00148846 [13:54:34]OFD Sender: To server: pG, [13:54:34]CommunicateWithHost lk.salyk.kg:30040 [13:54:34]ConnectInit lk.salyk.kg [13:54:34]written 0, free lines is 4095 [13:54:34]Connected sock=10 [13:54:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CE 06 07 01 4E 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 99 1C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6E 45 02 00 35 04 06 00 AC 4D 65 0A AF 0B CF 31 3C 4B 6A B2 52 0A [13:54:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DF F9 47 00 0B 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6E 45 02 00 F4 03 04 00 BD C3 5E 66 B6 04 01 00 00 8A 89 C2 9A 66 14 E5 E3 [13:54:34]CommunicateWithHost err = 0 [13:54:34]CheckOFDResponse [13:54:34]1017 (14) - 77093643461234 [13:54:34]1041 (16) - 0000000000875057 [13:54:34]1040 (4) - 148846 [13:54:34]1012 (4) - 04.06.2024 07:35 [13:54:34]1206 (1) - 0 [13:54:34]OFD Sender: Remove packet 148846 [13:54:34]ProducePacketName [13:54:34]name=ofd_packets/00148846 [13:54:34]NVStorageDeleteData [13:54:34]Write to MH i2c: 01 00 00 27 0B 32 [13:54:34]Write i2c OK [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: 01 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: 01 07 00 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: 01 07 00 27 0B 00 00 00 00 00 6B 0C B0 [13:54:34]RasterBufferAndPrint [13:54:34]line [13:54:34]line [13:54:34]line [13:54:34]line [13:54:34]line [13:54:34]written 0, free lines is 3182 [13:54:34]MH_Cut [13:54:34]Write to MH i2c: D1 01 00 2E 0B 01 0B [13:54:34]Write i2c OK [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: D1 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: D1 01 00 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: D1 01 00 2E 0B 00 0A [13:54:34]Write to MH i2c: 01 00 00 2F 0B 3A [13:54:34]Write i2c OK [13:54:34]MH_I2C_Read... [13:54:35]OFD Sender: No OFD packet to send [13:54:35]*** Cut start [13:54:35]*** Partial cut [13:54:35]*** CUTSNS_PIN = 1 [13:54:36]*** CUTSNS_PIN = 0 [13:54:36]*** Brake cut motor [13:54:36]Read from MH i2c: 01 [13:54:36]MH_I2C_Read... [13:54:36]*** Stop cut motor [13:54:36]*** Cut end [13:54:36]Read from MH i2c: 01 07 00 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: 01 07 00 2F 0B 00 00 00 00 00 FF 0F 4F [13:54:36]process_action close_receipt done [13:54:36]requested_data is exist [13:54:36]produce_requested_data [13:54:36]requested_item fm.sn is exist - process it [13:54:36]wFMCommunicate request_size=4 [13:54:36]MH_SAM_APDU [13:54:36]CAPDU: 80 11 00 00 [13:54:36]Write to MH i2c: E2 08 00 30 0B 80 11 00 00 00 00 00 00 B5 [13:54:36]Write i2c OK [13:54:36]MH_I2C_Read... [13:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:36]Read from MH i2c: E2 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: E2 17 00 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: E2 17 00 30 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 08 [13:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [13:54:36]wFMCommunicate OK [13:54:36]requested_item fd.num is exist - process it [13:54:36]SAM_PROTO_GetFieldsCounters [13:54:36]wFMCommunicate request_size=4 [13:54:36]MH_SAM_APDU [13:54:36]CAPDU: 80 13 00 00 [13:54:36]Write to MH i2c: E2 08 00 31 0B 80 13 00 00 00 00 00 00 B8 [13:54:36]Write i2c OK [13:54:36]MH_I2C_Read... [13:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:36]Read from MH i2c: E2 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: E2 62 00 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: E2 62 00 31 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6E 45 02 00 0E 04 04 00 70 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 25 [13:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6E 45 02 00 0E 04 04 00 70 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 [13:54:36]wFMCommunicate OK [13:54:36]SAM_PROTO_GetFieldsCounters done [13:54:36]requested_item shift.num is exist - process it [13:54:36]requested_item shift.opened is exist - process it [13:54:36]req_shift_opened [13:54:36]FM_GetShiftState [13:54:36]SAM_PROTO_GetShiftState [13:54:36]wFMCommunicate request_size=4 [13:54:36]MH_SAM_APDU [13:54:36]CAPDU: 80 13 01 00 [13:54:36]Write to MH i2c: E2 08 00 32 0B 80 13 01 00 00 00 00 00 BA [13:54:36]Write i2c OK [13:54:36]MH_I2C_Read... [13:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:36]Read from MH i2c: E2 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: E2 0E 00 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: E2 0E 00 32 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7D [13:54:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [13:54:36]wFMCommunicate OK [13:54:36]SAM_PROTO_GetShiftState done [13:54:36]FM_GetShiftState done [13:54:36]req_shift_opened done [13:54:36]requested_item shift.open_date is exist - process it [13:54:36]req_shift_open_date [13:54:36]req_shift_open_date done [13:54:36]produce_requested_data done [13:54:36]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148846,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [13:54:36]process_action_free close_receipt [13:54:36]json_value_free [13:54:36]json_value_free done [13:54:36]process_json_proto returns [13:54:36]Send response to host [13:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148846,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [13:54:36]free response buf [13:54:36]execute_script done [13:54:36]execute_script returns [13:54:36]free content buf [13:54:36]Sock 9.Close socket [13:54:36]Sock 9.Thread stoped [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:06]accept exits with 7 [14:02:06]New connection [14:02:06]New thread 3067264356 created [14:02:06]Thread 3067407716 joined [14:02:06]Waiting for new connection... [14:02:06] Sock 7.Parse request [14:02:06]Sock 7.Check first char [14:02:06]Sock 7.First char is OK [14:02:06]request: POST /json_proto HTTP/1.0 [14:02:06]Method: POST [14:02:06]URL: /json_proto [14:02:06]Method is POST - this is cgi request [14:02:06]url: /json_proto [14:02:06]query_string will be loaded in cgi processing [14:02:06]execute_cgi json_proto POST (null) [14:02:06]execute_cgi path=json_proto method=POST [14:02:06]POST find Content-Length [14:02:06]Host: 172.17.38.4:8080 [14:02:06]Content-Length: 670 [14:02:06]Content-Type: application/json [14:02:06] [14:02:06]POST finish read [14:02:06]Found Content-Length = 670 [14:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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:02:06]execute_script... [14:02:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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:02:06]POST & json_proto [14:02:06]process_json_proto [14:02:06]json parsed OK: [14:02:06]protocol is kg_v1.0 [14:02:06]action value=close_receipt [14:02:06]process_action close_receipt [14:02:06]cmd_close_receipt [14:02:06]MH_GetDate [14:02:06]Write to MH i2c: F0 00 00 33 0B 2D [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: F0 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: F0 09 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: F0 09 00 33 0B 00 5F 1E 5F 66 CC 51 87 64 80 [14:02:06]GetLastDocTimeStamp 1717509273 [14:02:06]current date 1717509727 [14:02:06]FM_GetShiftState [14:02:06]SAM_PROTO_GetShiftState [14:02:06]wFMCommunicate request_size=4 [14:02:06]MH_SAM_APDU [14:02:06]CAPDU: 80 13 01 00 [14:02:06]Write to MH i2c: E2 08 00 34 0B 80 13 01 00 00 00 00 00 BC [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:06]Read from MH i2c: E2 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 0E 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 0E 00 34 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7F [14:02:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:02:06]wFMCommunicate OK [14:02:06]SAM_PROTO_GetShiftState done [14:02:06]FM_GetShiftState done [14:02:06]opened in 1717460629 [14:02:06]opened+sec_in_day 1717547029 [14:02:06]quantity*price = 50042 [14:02:06]sum+1 = 50043 [14:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 186 04.06.2024 14:02 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148847 ФПД: 145959326333963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140208&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148847&fm=145959326333963&tin=02508201610067®Number=0000000000092720&sum=50000 [14:02:08]StoreToDocumentArchive [14:02:08]shift 368 fd 148847 [14:02:08]save to /storage/0368/doc_00148847 [14:02:08]save last doc name /storage/0368/doc_00148847 to /storage/kkm_last_doc_name [14:02:08]save OK [14:02:08]Clear old archive folders... [14:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:02:08]tlvbuf is 004B3D90 [14:02:08]SAM_PROTO_ClearQueue [14:02:08]wFMCommunicate request_size=4 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 09 00 00 [14:02:08]Write to MH i2c: E2 08 00 41 0B 80 09 00 00 00 00 00 00 BE [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 41 0B 00 90 00 C0 [14:02:08]RAPDU: 90 00 [14:02:08]wFMCommunicate OK [14:02:08]SAM_PROTO_ClearQueue done [14:02:08]KKMCreateOFDPacket [14:02:08]OFDProtocolAddRootSTLVToBuf [14:02:08]FM_MakeSignedData [14:02:08]FM_MakeSignedData [14:02:08]SAM_PROTO_SignData [14:02:08]wFMCommunicate request_size=4 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 0D 01 02 [14:02:08]Write to MH i2c: E2 08 00 42 0B 80 0D 01 02 00 00 00 00 C6 [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 42 0B 00 90 00 C1 [14:02:08]RAPDU: 90 00 [14:02:08]wFMCommunicate OK [14:02:08]wFMCommunicate request_size=255 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 BA 00 00 00 F4 03 04 00 60 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6F 45 02 00 35 04 06 00 [14:02:08]Write to MH i2c: E2 02 01 43 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 BA 00 00 00 F4 03 04 00 60 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6F 45 02 00 35 04 06 00 00 00 07 [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 43 0B 00 90 00 C2 [14:02:08]RAPDU: 90 00 [14:02:08]wFMCommunicate OK [14:02:08]wFMCommunicate request_size=11 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 0D 02 02 06 84 BF CD CC 3C 0B [14:02:08]Write to MH i2c: E2 0E 00 44 0B 80 0D 02 02 06 00 84 BF CD CC 3C 0B 00 00 F8 [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [14:02:08]RAPDU: 90 00 [14:02:08]wFMCommunicate OK [14:02:08]wFMCommunicate request_size=4 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 0D 03 02 [14:02:08]Write to MH i2c: E2 08 00 45 0B 80 0D 03 02 00 00 00 00 CB [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 0B 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 0B 00 45 0B 00 73 C2 41 A7 9F 85 06 18 90 00 2B [14:02:08]RAPDU: 73 C2 41 A7 9F 85 06 18 90 00 [14:02:08]wFMCommunicate OK [14:02:08]SAM_PROTO_SignData done [14:02:08]FM_MakeSignedData done [14:02:08]CreateOFDProtocolMessage [14:02:08]wFMCommunicate request_size=4 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 11 00 00 [14:02:08]Write to MH i2c: E2 08 00 46 0B 80 11 00 00 00 00 00 00 CB [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 17 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 17 00 46 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1E [14:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:02:08]wFMCommunicate OK [14:02:08]CreateOFDProtocolMessage done [14:02:08]OFDSenderStorePacket 148847 [14:02:08]StoreOFDPacket docnum=148847 [14:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 5F 24 08 01 92 5C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 BA 00 00 00 F4 03 04 00 60 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6F 45 02 00 35 04 06 00 84 BF CD CC 3C 0B 73 C2 41 A7 9F 85 06 18 [14:02:08]CheckFolder [14:02:08]dirname=/storage/ofd_packets [14:02:08]CheckFolder done [14:02:08]ProducePacketName [14:02:08]name=ofd_packets/00148847 [14:02:08]NVStorageSaveData ofd_packets/00148847 [14:02:08]File name is /storage/ofd_packets/00148847 [14:02:08]Write 302 bytes [14:02:08]NVStorageSaveData done [14:02:08]OFDSenderStorePacket done [14:02:08]KKMCreateOFDPacket done [14:02:08]NVStorageSaveData kkm_last_timestamp [14:02:08]File name is /storage/kkm_last_timestamp [14:02:08]Write 4 bytes [14:02:08]NVStorageSaveData done [14:02:08]ExternCall_PrintAddStr [14:02:08]wPrintStart [14:02:08]Write to MH i2c: 01 00 00 47 0B 52 [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: 01 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: 01 07 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: 01 07 00 47 0B 00 00 00 00 00 FF 0F 67 [14:02:08]RasterBufferAndPrint [14:02:08]line Счет N : (1)979775 [14:02:08]line ИНН: 02508201610067 [14:02:08]line Контрольно-Кассовый Чек [14:02:08]line ПРОДАЖА [14:02:08]line ТРК (МРК, ГНК) : 33 [14:02:08]line Товар: 2710124130 [14:02:08]line SUPER 92-К-5 [14:02:08]line 7.370 * 67.90 [14:02:08]line = 500.42 [14:02:08]line НДС 12% НСП 1% [14:02:08]line > о реализуемом товаре [14:02:08]line ОКРУГЛЕНИЕ: -0.42 [14:02:08]line ИТОГО: 500.00 [14:02:08]line Внесено: 500.00 [14:02:08]line СДАЧА: 0.00 [14:02:08]line НСП 1% : 4.43 [14:02:08]line НДС 12% : 53.14 [14:02:08]line Наличными: 500.00 [14:02:08]line Безнал.: 0.00 [14:02:08]line Место: АЗС № 68 "Партнер Нефть" [14:02:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:02:08]line СНО: Общий режим [14:02:08]line Чек 186 04.06.2024 14:02 [14:02:08]line Смена: 368 ФФД: 1.0 [14:02:08]line ЗНМ: 0300000035 [14:02:08]line РНМ: 0000000000092720 [14:02:08]line Версия ККМ: 001 [14:02:08]line ФМ: 0000000000875057 [14:02:08]line ФД: 148847 [14:02:08]line ФПД: 145959326333963 [14:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140208&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148847&fm=145959326333963&tin=02508201610067®Number=0000000000092720&sum=50000 [14:02:08]OFD Sender: Processing packet 148847 [packets to send 100, broken 99] [14:02:08]ProducePacketName [14:02:08]name=ofd_packets/00148847 [14:02:08]OFD Sender: To server: pG, [14:02:08]CommunicateWithHost lk.salyk.kg:30040 [14:02:08]ConnectInit lk.salyk.kg [14:02:08]written 0, free lines is 4095 [14:02:08]Connected sock=10 [14:02:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 5F 24 08 01 92 5C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 BA 00 00 00 F4 03 04 00 60 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6F 45 02 00 35 04 06 00 84 BF CD CC 3C 0B 73 C2 41 A7 9F 85 06 18 [14:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CB 4D 47 00 36 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 6F 45 02 00 F4 03 04 00 83 C5 5E 66 B6 04 01 00 00 32 94 F2 5A F5 1E 44 C3 [14:02:09]CommunicateWithHost err = 0 [14:02:09]CheckOFDResponse [14:02:09]1017 (14) - 77093643461234 [14:02:09]1041 (16) - 0000000000875057 [14:02:09]1040 (4) - 148847 [14:02:09]1012 (4) - 04.06.2024 07:42 [14:02:09]1206 (1) - 0 [14:02:09]OFD Sender: Remove packet 148847 [14:02:09]ProducePacketName [14:02:09]name=ofd_packets/00148847 [14:02:09]NVStorageDeleteData [14:02:09]Write to MH i2c: 01 00 00 72 0B 7D [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: 01 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: 01 07 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: 01 07 00 72 0B 00 00 00 00 00 65 0C F5 [14:02:09]RasterBufferAndPrint [14:02:09]line [14:02:09]line [14:02:09]line [14:02:09]line [14:02:09]line [14:02:09]written 0, free lines is 3177 [14:02:09]MH_Cut [14:02:09]Write to MH i2c: D1 01 00 79 0B 01 56 [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: D1 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: D1 01 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: D1 01 00 79 0B 00 55 [14:02:09]Write to MH i2c: 01 00 00 7A 0B 85 [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]OFD Sender: No OFD packet to send [14:02:10]*** Cut start [14:02:10]*** Partial cut [14:02:10]*** CUTSNS_PIN = 1 [14:02:10]*** CUTSNS_PIN = 0 [14:02:10]*** Brake cut motor [14:02:11]Read from MH i2c: 01 [14:02:11]MH_I2C_Read... [14:02:11]*** Stop cut motor [14:02:11]*** Cut end [14:02:11]Read from MH i2c: 01 07 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 FF 0F 9A [14:02:11]process_action close_receipt done [14:02:11]requested_data is exist [14:02:11]produce_requested_data [14:02:11]requested_item fm.sn is exist - process it [14:02:11]wFMCommunicate request_size=4 [14:02:11]MH_SAM_APDU [14:02:11]CAPDU: 80 11 00 00 [14:02:11]Write to MH i2c: E2 08 00 7B 0B 80 11 00 00 00 00 00 00 00 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 17 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 17 00 7B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 53 [14:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:02:11]wFMCommunicate OK [14:02:11]requested_item fd.num is exist - process it [14:02:11]SAM_PROTO_GetFieldsCounters [14:02:11]wFMCommunicate request_size=4 [14:02:11]MH_SAM_APDU [14:02:11]CAPDU: 80 13 00 00 [14:02:11]Write to MH i2c: E2 08 00 7C 0B 80 13 00 00 00 00 00 00 03 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 62 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 62 00 7C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6F 45 02 00 0E 04 04 00 70 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 74 [14:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 6F 45 02 00 0E 04 04 00 70 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 [14:02:11]wFMCommunicate OK [14:02:11]SAM_PROTO_GetFieldsCounters done [14:02:11]requested_item shift.num is exist - process it [14:02:11]requested_item shift.opened is exist - process it [14:02:11]req_shift_opened [14:02:11]FM_GetShiftState [14:02:11]SAM_PROTO_GetShiftState [14:02:11]wFMCommunicate request_size=4 [14:02:11]MH_SAM_APDU [14:02:11]CAPDU: 80 13 01 00 [14:02:11]Write to MH i2c: E2 08 00 7D 0B 80 13 01 00 00 00 00 00 05 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 0E 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 0E 00 7D 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C8 [14:02:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:02:11]wFMCommunicate OK [14:02:11]SAM_PROTO_GetShiftState done [14:02:11]FM_GetShiftState done [14:02:11]req_shift_opened done [14:02:11]requested_item shift.open_date is exist - process it [14:02:11]req_shift_open_date [14:02:11]req_shift_open_date done [14:02:11]produce_requested_data done [14:02:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148847,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:02:11]process_action_free close_receipt [14:02:11]json_value_free [14:02:11]json_value_free done [14:02:11]process_json_proto returns [14:02:11]Send response to host [14:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148847,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:02:11]free response buf [14:02:11]execute_script done [14:02:11]execute_script returns [14:02:11]free content buf [14:02:11]Sock 7.Close socket [14:02:11]Sock 7.Thread stoped [14:02:14]OFD Sender: No OFD packet to send [14:02:16]accept exits with 9 [14:02:16]New connection [14:02:16]New thread 3067407716 created [14:02:16]Thread 3067264356 joined [14:02:16]Waiting for new connection... [14:02:16] Sock 9.Parse request [14:02:16]Sock 9.Check first char [14:02:16]Sock 9.First char is OK [14:02:16]request: POST /json_proto HTTP/1.0 [14:02:16]Method: POST [14:02:16]URL: /json_proto [14:02:16]Method is POST - this is cgi request [14:02:16]url: /json_proto [14:02:16]query_string will be loaded in cgi processing [14:02:16]execute_cgi json_proto POST (null) [14:02:16]execute_cgi path=json_proto method=POST [14:02:16]POST find Content-Length [14:02:16]Host: 172.17.38.4:8080 [14:02:16]Content-Length: 677 [14:02:16]Content-Type: application/json [14:02:16] [14:02:16]POST finish read [14:02:16]Found Content-Length = 677 [14:02:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:16]execute_script... [14:02: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)979776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:16]POST & json_proto [14:02:16]process_json_proto [14:02:16]json parsed OK: [14:02:16]protocol is kg_v1.0 [14:02:16]action value=close_receipt [14:02:16]process_action close_receipt [14:02:16]cmd_close_receipt [14:02:16]MH_GetDate [14:02:16]Write to MH i2c: F0 00 00 7E 0B 78 [14:02:16]Write i2c OK [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: F0 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: F0 09 00 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: F0 09 00 7E 0B 00 69 1E 5F 66 CC 51 87 64 D5 [14:02:16]GetLastDocTimeStamp 1717509728 [14:02:16]current date 1717509737 [14:02:16]FM_GetShiftState [14:02:16]SAM_PROTO_GetShiftState [14:02:16]wFMCommunicate request_size=4 [14:02:16]MH_SAM_APDU [14:02:16]CAPDU: 80 13 01 00 [14:02:16]Write to MH i2c: E2 08 00 7F 0B 80 13 01 00 00 00 00 00 07 [14:02:16]Write i2c OK [14:02:16]MH_I2C_Read... [14:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:16]Read from MH i2c: E2 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: E2 0E 00 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: E2 0E 00 7F 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CA [14:02:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:02:16]wFMCommunicate OK [14:02:16]SAM_PROTO_GetShiftState done [14:02:16]FM_GetShiftState done [14:02:16]opened in 1717460629 [14:02:16]opened+sec_in_day 1717547029 [14:02:16]quantity*price = 40006 [14:02:16]sum+1 = 40007 [14:02:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 187 04.06.2024 14:02 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148848 ФПД: 198752772281028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140217&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148848&fm=198752772281028&tin=02508201610067®Number=0000000000092720&sum=40000 [14:02:17]StoreToDocumentArchive [14:02:17]shift 368 fd 148848 [14:02:17]save to /storage/0368/doc_00148848 [14:02:17]save last doc name /storage/0368/doc_00148848 to /storage/kkm_last_doc_name [14:02:17]save OK [14:02:17]Clear old archive folders... [14:02:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:17]tlvbuf is 0046DD70 [14:02:17]SAM_PROTO_ClearQueue [14:02:17]wFMCommunicate request_size=4 [14:02:17]MH_SAM_APDU [14:02:17]CAPDU: 80 09 00 00 [14:02:17]Write to MH i2c: E2 08 00 8C 0B 80 09 00 00 00 00 00 00 09 [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:17]Read from MH i2c: E2 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 03 00 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 03 00 8C 0B 00 90 00 0B [14:02:17]RAPDU: 90 00 [14:02:17]wFMCommunicate OK [14:02:17]SAM_PROTO_ClearQueue done [14:02:17]KKMCreateOFDPacket [14:02:17]OFDProtocolAddRootSTLVToBuf [14:02:17]FM_MakeSignedData [14:02:17]FM_MakeSignedData [14:02:17]SAM_PROTO_SignData [14:02:17]wFMCommunicate request_size=4 [14:02:17]MH_SAM_APDU [14:02:17]CAPDU: 80 0D 01 02 [14:02:17]Write to MH i2c: E2 08 00 8D 0B 80 0D 01 02 00 00 00 00 11 [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:17]Read from MH i2c: E2 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 03 00 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [14:02:17]RAPDU: 90 00 [14:02:17]wFMCommunicate OK [14:02:17]wFMCommunicate request_size=255 [14:02:17]MH_SAM_APDU [14:02:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 69 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 70 45 02 00 35 04 06 00 B4 [14:02:17]Write to MH i2c: E2 02 01 8E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 69 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 70 45 02 00 35 04 06 00 B4 00 00 4D [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [14:02:18]RAPDU: 90 00 [14:02:18]wFMCommunicate OK [14:02:18]wFMCommunicate request_size=10 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 0D 02 02 05 C3 BC 63 D2 C4 [14:02:18]Write to MH i2c: E2 0D 00 8F 0B 80 0D 02 02 05 00 C3 BC 63 D2 C4 00 00 96 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [14:02:18]RAPDU: 90 00 [14:02:18]wFMCommunicate OK [14:02:18]wFMCommunicate request_size=4 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 0D 03 02 [14:02:18]Write to MH i2c: E2 08 00 90 0B 80 0D 03 02 00 00 00 00 16 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 0B 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 0B 00 90 0B 00 EB 9C F3 AE F4 F0 D5 B5 90 00 AD [14:02:18]RAPDU: EB 9C F3 AE F4 F0 D5 B5 90 00 [14:02:18]wFMCommunicate OK [14:02:18]SAM_PROTO_SignData done [14:02:18]FM_MakeSignedData done [14:02:18]CreateOFDProtocolMessage [14:02:18]wFMCommunicate request_size=4 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 11 00 00 [14:02:18]Write to MH i2c: E2 08 00 91 0B 80 11 00 00 00 00 00 00 16 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 17 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 17 00 91 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 69 [14:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:02:18]wFMCommunicate OK [14:02:18]CreateOFDProtocolMessage done [14:02:18]OFDSenderStorePacket 148848 [14:02:18]StoreOFDPacket docnum=148848 [14:02:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 77 25 07 01 C8 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 69 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 70 45 02 00 35 04 06 00 B4 C3 BC 63 D2 C4 EB 9C F3 AE F4 F0 D5 B5 [14:02:18]CheckFolder [14:02:18]dirname=/storage/ofd_packets [14:02:18]CheckFolder done [14:02:18]ProducePacketName [14:02:18]name=ofd_packets/00148848 [14:02:18]NVStorageSaveData ofd_packets/00148848 [14:02:18]File name is /storage/ofd_packets/00148848 [14:02:18]Write 301 bytes [14:02:18]NVStorageSaveData done [14:02:18]OFDSenderStorePacket done [14:02:18]KKMCreateOFDPacket done [14:02:18]NVStorageSaveData kkm_last_timestamp [14:02:18]File name is /storage/kkm_last_timestamp [14:02:18]Write 4 bytes [14:02:18]NVStorageSaveData done [14:02:18]ExternCall_PrintAddStr [14:02:18]wPrintStart [14:02:18]Write to MH i2c: 01 00 00 92 0B 9D [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: 01 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: 01 07 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: 01 07 00 92 0B 00 00 00 00 00 FF 0F B2 [14:02:18]RasterBufferAndPrint [14:02:18]line Счет N : (1)979776 [14:02:18]line ИНН: 02508201610067 [14:02:18]line Контрольно-Кассовый Чек [14:02:18]line ПРОДАЖА [14:02:18]line ТРК (МРК, ГНК) : 22 [14:02:18]line Товар: 2710124130 [14:02:18]line Аи-92-К-5 [14:02:18]line 5.980 * 66.90 [14:02:18]line = 400.06 [14:02:18]line НДС 12% НСП 1% [14:02:18]line > о реализуемом товаре [14:02:18]line ОКРУГЛЕНИЕ: -0.06 [14:02:18]line ИТОГО: 400.00 [14:02:18]line Внесено: 400.00 [14:02:18]line СДАЧА: 0.00 [14:02:18]line НСП 1% : 3.54 [14:02:18]line НДС 12% : 42.48 [14:02:18]line Наличными: 400.00 [14:02:18]line Безнал.: 0.00 [14:02:18]line Место: АЗС № 68 "Партнер Нефть" [14:02:18]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:02:18]line СНО: Общий режим [14:02:18]line Чек 187 04.06.2024 14:02 [14:02:18]line Смена: 368 ФФД: 1.0 [14:02:18]line ЗНМ: 0300000035 [14:02:18]line РНМ: 0000000000092720 [14:02:18]line Версия ККМ: 001 [14:02:18]line ФМ: 0000000000875057 [14:02:18]line ФД: 148848 [14:02:18]line ФПД: 198752772281028 [14:02:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140217&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148848&fm=198752772281028&tin=02508201610067®Number=0000000000092720&sum=40000 [14:02:18]OFD Sender: Processing packet 148848 [packets to send 100, broken 99] [14:02:18]ProducePacketName [14:02:18]name=ofd_packets/00148848 [14:02:18]OFD Sender: To server: pG, [14:02:18]CommunicateWithHost lk.salyk.kg:30040 [14:02:18]ConnectInit lk.salyk.kg [14:02:18]written 0, free lines is 4095 [14:02:18]Connected sock=10 [14:02:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 77 25 07 01 C8 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 69 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 70 45 02 00 35 04 06 00 B4 C3 BC 63 D2 C4 EB 9C F3 AE F4 F0 D5 B5 [14:02:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E3 0F 47 00 F0 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 38 37 35 30 35 37 10 04 04 00 70 45 02 00 F4 03 04 00 8D C5 5E 66 B6 04 01 00 00 A2 D8 8A C9 C3 D5 70 0D [14:02:18]CommunicateWithHost err = 0 [14:02:18]CheckOFDResponse [14:02:18]1017 (14) - 77093643461234 [14:02:18]1041 (16) - 0000000000875057 [14:02:18]1040 (4) - 148848 [14:02:18]1012 (4) - 04.06.2024 07:43 [14:02:18]1206 (1) - 0 [14:02:18]OFD Sender: Remove packet 148848 [14:02:18]ProducePacketName [14:02:18]name=ofd_packets/00148848 [14:02:18]NVStorageDeleteData [14:02:19]Write to MH i2c: 01 00 00 BD 0B C8 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 BD 0B 00 00 00 00 00 66 0C 41 [14:02:19]RasterBufferAndPrint [14:02:19]line [14:02:19]line [14:02:19]line [14:02:19]line [14:02:19]line [14:02:19]written 0, free lines is 3180 [14:02:19]MH_Cut [14:02:19]Write to MH i2c: D1 01 00 C4 0B 01 A1 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D1 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D1 01 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D1 01 00 C4 0B 00 A0 [14:02:19]Write to MH i2c: 01 00 00 C5 0B D0 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]OFD Sender: No OFD packet to send [14:02:20]*** Cut start [14:02:20]*** Partial cut [14:02:20]*** CUTSNS_PIN = 1 [14:02:20]*** CUTSNS_PIN = 0 [14:02:20]*** Brake cut motor [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]*** Stop cut motor [14:02:20]*** Cut end [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 C5 0B 00 00 00 00 00 FF 0F E5 [14:02:20]process_action close_receipt done [14:02:20]requested_data is exist [14:02:20]produce_requested_data [14:02:20]requested_item fm.sn is exist - process it [14:02:20]wFMCommunicate request_size=4 [14:02:20]MH_SAM_APDU [14:02:20]CAPDU: 80 11 00 00 [14:02:20]Write to MH i2c: E2 08 00 C6 0B 80 11 00 00 00 00 00 00 4B [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:20]Read from MH i2c: E2 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 17 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 17 00 C6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9E [14:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:02:20]wFMCommunicate OK [14:02:20]requested_item fd.num is exist - process it [14:02:20]SAM_PROTO_GetFieldsCounters [14:02:20]wFMCommunicate request_size=4 [14:02:20]MH_SAM_APDU [14:02:20]CAPDU: 80 13 00 00 [14:02:20]Write to MH i2c: E2 08 00 C7 0B 80 13 00 00 00 00 00 00 4E [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 62 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 62 00 C7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 70 45 02 00 0E 04 04 00 70 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 C3 [14:02:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 70 45 02 00 0E 04 04 00 70 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 [14:02:21]wFMCommunicate OK [14:02:21]SAM_PROTO_GetFieldsCounters done [14:02:21]requested_item shift.num is exist - process it [14:02:21]requested_item shift.opened is exist - process it [14:02:21]req_shift_opened [14:02:21]FM_GetShiftState [14:02:21]SAM_PROTO_GetShiftState [14:02:21]wFMCommunicate request_size=4 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 13 01 00 [14:02:21]Write to MH i2c: E2 08 00 C8 0B 80 13 01 00 00 00 00 00 50 [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:21]Read from MH i2c: E2 0E 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 0E 00 C8 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 13 [14:02:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:02:21]wFMCommunicate OK [14:02:21]SAM_PROTO_GetShiftState done [14:02:21]FM_GetShiftState done [14:02:21]req_shift_opened done [14:02:21]requested_item shift.open_date is exist - process it [14:02:21]req_shift_open_date [14:02:21]req_shift_open_date done [14:02:21]produce_requested_data done [14:02:21]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148848,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:02:21]process_action_free close_receipt [14:02:21]json_value_free [14:02:21]json_value_free done [14:02:21]process_json_proto returns [14:02:21]Send response to host [14:02:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148848,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:02:21]free response buf [14:02:21]execute_script done [14:02:21]execute_script returns [14:02:21]free content buf [14:02:21]Sock 9.Close socket [14:02:21]Sock 9.Thread stoped [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:37]accept exits with 7 [14:02:37]New connection [14:02:37]New thread 3067264356 created [14:02:37]Thread 3067407716 joined [14:02:37]Waiting for new connection... [14:02:37] Sock 7.Parse request [14:02:37]Sock 7.Check first char [14:02:37]Sock 7.First char is OK [14:02:37]request: POST /json_proto HTTP/1.0 [14:02:37]Method: POST [14:02:37]URL: /json_proto [14:02:37]Method is POST - this is cgi request [14:02:37]url: /json_proto [14:02:37]query_string will be loaded in cgi processing [14:02:37]execute_cgi json_proto POST (null) [14:02:37]execute_cgi path=json_proto method=POST [14:02:37]POST find Content-Length [14:02:37]Host: 172.17.38.4:8080 [14:02:37]Content-Length: 677 [14:02:37]Content-Type: application/json [14:02:37] [14:02:37]POST finish read [14:02:37]Found Content-Length = 677 [14:02:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:37]execute_script... [14:02: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)979777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:37]POST & json_proto [14:02:37]process_json_proto [14:02:37]json parsed OK: [14:02:37]protocol is kg_v1.0 [14:02:37]action value=close_receipt [14:02:37]process_action close_receipt [14:02:37]cmd_close_receipt [14:02:37]MH_GetDate [14:02:37]Write to MH i2c: F0 00 00 C9 0B C3 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: F0 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: F0 09 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: F0 09 00 C9 0B 00 7E 1E 5F 66 CC 51 87 64 35 [14:02:37]GetLastDocTimeStamp 1717509737 [14:02:37]current date 1717509758 [14:02:37]FM_GetShiftState [14:02:37]SAM_PROTO_GetShiftState [14:02:37]wFMCommunicate request_size=4 [14:02:37]MH_SAM_APDU [14:02:37]CAPDU: 80 13 01 00 [14:02:37]Write to MH i2c: E2 08 00 CA 0B 80 13 01 00 00 00 00 00 52 [14:02:37]Write i2c OK [14:02:37]MH_I2C_Read... [14:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:37]Read from MH i2c: E2 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 0E 00 [14:02:37]MH_I2C_Read... [14:02:37]Read from MH i2c: E2 0E 00 CA 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 15 [14:02:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:02:37]wFMCommunicate OK [14:02:37]SAM_PROTO_GetShiftState done [14:02:37]FM_GetShiftState done [14:02:37]opened in 1717460629 [14:02:37]opened+sec_in_day 1717547029 [14:02:37]quantity*price = 20003 [14:02:37]sum+1 = 20004 [14:02:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 188 04.06.2024 14:02 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148849 ФПД: 953054728711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140238&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148849&fm=953054728711&tin=02508201610067®Number=0000000000092720&sum=20000 [14:02:38]StoreToDocumentArchive [14:02:38]shift 368 fd 148849 [14:02:38]save to /storage/0368/doc_00148849 [14:02:38]save last doc name /storage/0368/doc_00148849 to /storage/kkm_last_doc_name [14:02:38]save OK [14:02:38]Clear old archive folders... [14:02:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:38]tlvbuf is 00484370 [14:02:38]SAM_PROTO_ClearQueue [14:02:38]wFMCommunicate request_size=4 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 09 00 00 [14:02:38]Write to MH i2c: E2 08 00 D7 0B 80 09 00 00 00 00 00 00 54 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [14:02:38]RAPDU: 90 00 [14:02:38]wFMCommunicate OK [14:02:38]SAM_PROTO_ClearQueue done [14:02:38]KKMCreateOFDPacket [14:02:38]OFDProtocolAddRootSTLVToBuf [14:02:38]FM_MakeSignedData [14:02:38]FM_MakeSignedData [14:02:38]SAM_PROTO_SignData [14:02:38]wFMCommunicate request_size=4 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 0D 01 02 [14:02:38]Write to MH i2c: E2 08 00 D8 0B 80 0D 01 02 00 00 00 00 5C [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [14:02:38]RAPDU: 90 00 [14:02:38]wFMCommunicate OK [14:02:38]wFMCommunicate request_size=255 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 71 45 02 00 35 04 06 00 00 [14:02:38]Write to MH i2c: E2 02 01 D9 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 71 45 02 00 35 04 06 00 00 00 00 EE [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [14:02:38]RAPDU: 90 00 [14:02:38]wFMCommunicate OK [14:02:38]wFMCommunicate request_size=10 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 0D 02 02 05 DD E6 7D 12 07 [14:02:38]Write to MH i2c: E2 0D 00 DA 0B 80 0D 02 02 05 00 DD E6 7D 12 07 00 00 C2 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [14:02:38]RAPDU: 90 00 [14:02:38]wFMCommunicate OK [14:02:38]wFMCommunicate request_size=4 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 0D 03 02 [14:02:38]Write to MH i2c: E2 08 00 DB 0B 80 0D 03 02 00 00 00 00 61 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:38]Read from MH i2c: E2 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 0B 00 [14:02:38]MH_I2C_Read... [14:02:38]Read from MH i2c: E2 0B 00 DB 0B 00 47 3A 02 46 70 07 D7 80 90 00 F9 [14:02:38]RAPDU: 47 3A 02 46 70 07 D7 80 90 00 [14:02:38]wFMCommunicate OK [14:02:38]SAM_PROTO_SignData done [14:02:38]FM_MakeSignedData done [14:02:38]CreateOFDProtocolMessage [14:02:38]wFMCommunicate request_size=4 [14:02:38]MH_SAM_APDU [14:02:38]CAPDU: 80 11 00 00 [14:02:38]Write to MH i2c: E2 08 00 DC 0B 80 11 00 00 00 00 00 00 61 [14:02:38]Write i2c OK [14:02:38]MH_I2C_Read... [14:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:39]Read from MH i2c: E2 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: E2 17 00 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: E2 17 00 DC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B4 [14:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:02:39]wFMCommunicate OK [14:02:39]CreateOFDProtocolMessage done [14:02:39]OFDSenderStorePacket 148849 [14:02:39]StoreOFDPacket docnum=148849 [14:02:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3E 77 07 01 CC 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 7E 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 71 45 02 00 35 04 06 00 00 DD E6 7D 12 07 47 3A 02 46 70 07 D7 80 [14:02:39]CheckFolder [14:02:39]dirname=/storage/ofd_packets [14:02:39]CheckFolder done [14:02:39]ProducePacketName [14:02:39]name=ofd_packets/00148849 [14:02:39]NVStorageSaveData ofd_packets/00148849 [14:02:39]File name is /storage/ofd_packets/00148849 [14:02:39]Write 301 bytes [14:02:39]NVStorageSaveData done [14:02:39]OFDSenderStorePacket done [14:02:39]KKMCreateOFDPacket done [14:02:39]NVStorageSaveData kkm_last_timestamp [14:02:39]File name is /storage/kkm_last_timestamp [14:02:39]Write 4 bytes [14:02:39]NVStorageSaveData done [14:02:39]ExternCall_PrintAddStr [14:02:39]wPrintStart [14:02:39]Write to MH i2c: 01 00 00 DD 0B E8 [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 DD 0B 00 00 00 00 00 FF 0F FD [14:02:39]RasterBufferAndPrint [14:02:39]line Счет N : (1)979777 [14:02:39]line ИНН: 02508201610067 [14:02:39]line Контрольно-Кассовый Чек [14:02:39]line ПРОДАЖА [14:02:39]line ТРК (МРК, ГНК) : 12 [14:02:39]line Товар: 2710124130 [14:02:39]line Аи-92-К-5 [14:02:39]line 2.990 * 66.90 [14:02:39]line = 200.03 [14:02:39]line НДС 12% НСП 1% [14:02:39]line > о реализуемом товаре [14:02:39]line ОКРУГЛЕНИЕ: -0.03 [14:02:39]line ИТОГО: 200.00 [14:02:39]line Внесено: 200.00 [14:02:39]line СДАЧА: 0.00 [14:02:39]line НСП 1% : 1.77 [14:02:39]line НДС 12% : 21.24 [14:02:39]line Наличными: 200.00 [14:02:39]line Безнал.: 0.00 [14:02:39]line Место: АЗС № 68 "Партнер Нефть" [14:02:39]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:02:39]line СНО: Общий режим [14:02:39]line Чек 188 04.06.2024 14:02 [14:02:39]line Смена: 368 ФФД: 1.0 [14:02:39]line ЗНМ: 0300000035 [14:02:39]line РНМ: 0000000000092720 [14:02:39]line Версия ККМ: 001 [14:02:39]line ФМ: 0000000000875057 [14:02:39]line ФД: 148849 [14:02:39]line ФПД: 953054728711 [14:02:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140238&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148849&fm=953054728711&tin=02508201610067®Number=0000000000092720&sum=20000 [14:02:39]OFD Sender: Processing packet 148849 [packets to send 100, broken 99] [14:02:39]ProducePacketName [14:02:39]name=ofd_packets/00148849 [14:02:39]OFD Sender: To server: pG, [14:02:39]CommunicateWithHost lk.salyk.kg:30040 [14:02:39]ConnectInit lk.salyk.kg [14:02:39]written 0, free lines is 4095 [14:02:39]Connected sock=10 [14:02:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3E 77 07 01 CC 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 7E 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 71 45 02 00 35 04 06 00 00 DD E6 7D 12 07 47 3A 02 46 70 07 D7 80 [14:02:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C0 5B 47 00 06 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 71 45 02 00 F4 03 04 00 A2 C5 5E 66 B6 04 01 00 00 27 28 68 E0 94 D5 DE 47 [14:02:39]CommunicateWithHost err = 0 [14:02:39]CheckOFDResponse [14:02:39]1017 (14) - 77093643461234 [14:02:39]1041 (16) - 0000000000875057 [14:02:39]1040 (4) - 148849 [14:02:39]1012 (4) - 04.06.2024 07:43 [14:02:39]1206 (1) - 0 [14:02:39]OFD Sender: Remove packet 148849 [14:02:39]ProducePacketName [14:02:39]name=ofd_packets/00148849 [14:02:39]NVStorageDeleteData [14:02:39]Write to MH i2c: 01 00 00 08 0C 14 [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 6B 0C 92 [14:02:39]RasterBufferAndPrint [14:02:39]line [14:02:39]line [14:02:39]line [14:02:39]line [14:02:39]line [14:02:39]written 0, free lines is 3183 [14:02:39]MH_Cut [14:02:39]Write to MH i2c: D1 01 00 0F 0C 01 ED [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: D1 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: D1 01 00 [14:02:39]MH_I2C_Read... [14:02:39]Read from MH i2c: D1 01 00 0F 0C 00 EC [14:02:39]Write to MH i2c: 01 00 00 10 0C 1C [14:02:39]Write i2c OK [14:02:39]MH_I2C_Read... [14:02:40]OFD Sender: No OFD packet to send [14:02:41]*** Cut start [14:02:41]*** Partial cut [14:02:41]*** CUTSNS_PIN = 1 [14:02:41]*** CUTSNS_PIN = 0 [14:02:41]*** Brake cut motor [14:02:41]Read from MH i2c: 01 [14:02:41]MH_I2C_Read... [14:02:41]*** Stop cut motor [14:02:41]*** Cut end [14:02:41]Read from MH i2c: 01 07 00 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: 01 07 00 10 0C 00 00 00 00 00 FF 0F 31 [14:02:41]process_action close_receipt done [14:02:41]requested_data is exist [14:02:41]produce_requested_data [14:02:41]requested_item fm.sn is exist - process it [14:02:41]wFMCommunicate request_size=4 [14:02:41]MH_SAM_APDU [14:02:41]CAPDU: 80 11 00 00 [14:02:41]Write to MH i2c: E2 08 00 11 0C 80 11 00 00 00 00 00 00 97 [14:02:41]Write i2c OK [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: E2 [14:02:41]MH_I2C_Read... [14:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:41]Read from MH i2c: E2 17 00 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: E2 17 00 11 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EA [14:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:02:41]wFMCommunicate OK [14:02:41]requested_item fd.num is exist - process it [14:02:41]SAM_PROTO_GetFieldsCounters [14:02:41]wFMCommunicate request_size=4 [14:02:41]MH_SAM_APDU [14:02:41]CAPDU: 80 13 00 00 [14:02:41]Write to MH i2c: E2 08 00 12 0C 80 13 00 00 00 00 00 00 9A [14:02:41]Write i2c OK [14:02:41]MH_I2C_Read... [14:02:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:41]Read from MH i2c: E2 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: E2 62 00 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: E2 62 00 12 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 71 45 02 00 0E 04 04 00 70 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 13 [14:02:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 71 45 02 00 0E 04 04 00 70 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 [14:02:41]wFMCommunicate OK [14:02:41]SAM_PROTO_GetFieldsCounters done [14:02:41]requested_item shift.num is exist - process it [14:02:41]requested_item shift.opened is exist - process it [14:02:41]req_shift_opened [14:02:41]FM_GetShiftState [14:02:41]SAM_PROTO_GetShiftState [14:02:41]wFMCommunicate request_size=4 [14:02:41]MH_SAM_APDU [14:02:41]CAPDU: 80 13 01 00 [14:02:41]Write to MH i2c: E2 08 00 13 0C 80 13 01 00 00 00 00 00 9C [14:02:41]Write i2c OK [14:02:41]MH_I2C_Read... [14:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:41]Read from MH i2c: E2 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: E2 0E 00 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: E2 0E 00 13 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5F [14:02:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:02:41]wFMCommunicate OK [14:02:41]SAM_PROTO_GetShiftState done [14:02:41]FM_GetShiftState done [14:02:41]req_shift_opened done [14:02:41]requested_item shift.open_date is exist - process it [14:02:41]req_shift_open_date [14:02:41]req_shift_open_date done [14:02:41]produce_requested_data done [14:02:41]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148849,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:02:41]process_action_free close_receipt [14:02:41]json_value_free [14:02:41]json_value_free done [14:02:41]process_json_proto returns [14:02:41]Send response to host [14:02:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148849,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:02:41]free response buf [14:02:41]execute_script done [14:02:41]execute_script returns [14:02:41]free content buf [14:02:41]Sock 7.Close socket [14:02:41]Sock 7.Thread stoped [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:53]accept exits with 9 [14:02:53]New connection [14:02:53]New thread 3067407716 created [14:02:53]Thread 3067264356 joined [14:02:53]Waiting for new connection... [14:02:53] Sock 9.Parse request [14:02:53]Sock 9.Check first char [14:02:53]Sock 9.First char is OK [14:02:53]request: POST /json_proto HTTP/1.0 [14:02:53]Method: POST [14:02:53]URL: /json_proto [14:02:53]Method is POST - this is cgi request [14:02:53]url: /json_proto [14:02:53]query_string will be loaded in cgi processing [14:02:53]execute_cgi json_proto POST (null) [14:02:53]execute_cgi path=json_proto method=POST [14:02:53]POST find Content-Length [14:02:53]Host: 172.17.38.4:8080 [14:02:53]Content-Length: 677 [14:02:53]Content-Type: application/json [14:02:53] [14:02:53]POST finish read [14:02:53]Found Content-Length = 677 [14:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:53]execute_script... [14:02: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)979778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:53]POST & json_proto [14:02:53]process_json_proto [14:02:53]json parsed OK: [14:02:53]protocol is kg_v1.0 [14:02:53]action value=close_receipt [14:02:53]process_action close_receipt [14:02:53]cmd_close_receipt [14:02:53]MH_GetDate [14:02:53]Write to MH i2c: F0 00 00 14 0C 0F [14:02:53]Write i2c OK [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: F0 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: F0 09 00 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: F0 09 00 14 0C 00 8E 1E 5F 66 CC 51 87 64 91 [14:02:53]GetLastDocTimeStamp 1717509758 [14:02:53]current date 1717509774 [14:02:53]FM_GetShiftState [14:02:53]SAM_PROTO_GetShiftState [14:02:53]wFMCommunicate request_size=4 [14:02:53]MH_SAM_APDU [14:02:53]CAPDU: 80 13 01 00 [14:02:53]Write to MH i2c: E2 08 00 15 0C 80 13 01 00 00 00 00 00 9E [14:02:53]Write i2c OK [14:02:53]MH_I2C_Read... [14:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:53]Read from MH i2c: E2 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 0E 00 [14:02:53]MH_I2C_Read... [14:02:53]Read from MH i2c: E2 0E 00 15 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 61 [14:02:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:02:53]wFMCommunicate OK [14:02:53]SAM_PROTO_GetShiftState done [14:02:53]FM_GetShiftState done [14:02:53]opened in 1717460629 [14:02:53]opened+sec_in_day 1717547029 [14:02:53]quantity*price = 50041 [14:02:53]sum+1 = 50042 [14:02:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 189 04.06.2024 14:02 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148850 ФПД: 232935628433509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140254&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148850&fm=232935628433509&tin=02508201610067®Number=0000000000092720&sum=50000 [14:02:54]StoreToDocumentArchive [14:02:54]shift 368 fd 148850 [14:02:54]save to /storage/0368/doc_00148850 [14:02:54]save last doc name /storage/0368/doc_00148850 to /storage/kkm_last_doc_name [14:02:54]save OK [14:02:54]Clear old archive folders... [14:02:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:54]tlvbuf is B6F30280 [14:02:54]SAM_PROTO_ClearQueue [14:02:54]wFMCommunicate request_size=4 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 09 00 00 [14:02:54]Write to MH i2c: E2 08 00 22 0C 80 09 00 00 00 00 00 00 A0 [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [14:02:54]RAPDU: 90 00 [14:02:54]wFMCommunicate OK [14:02:54]SAM_PROTO_ClearQueue done [14:02:54]KKMCreateOFDPacket [14:02:54]OFDProtocolAddRootSTLVToBuf [14:02:54]FM_MakeSignedData [14:02:54]FM_MakeSignedData [14:02:54]SAM_PROTO_SignData [14:02:54]wFMCommunicate request_size=4 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 0D 01 02 [14:02:54]Write to MH i2c: E2 08 00 23 0C 80 0D 01 02 00 00 00 00 A8 [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [14:02:54]RAPDU: 90 00 [14:02:54]wFMCommunicate OK [14:02:54]wFMCommunicate request_size=255 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 8E 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 72 45 02 00 35 04 06 00 D3 [14:02:54]Write to MH i2c: E2 02 01 24 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8E 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 72 45 02 00 35 04 06 00 D3 00 00 5D [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 24 0C 00 90 00 A4 [14:02:54]RAPDU: 90 00 [14:02:54]wFMCommunicate OK [14:02:54]wFMCommunicate request_size=10 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 0D 02 02 05 DA 8D 63 68 65 [14:02:54]Write to MH i2c: E2 0D 00 25 0C 80 0D 02 02 05 00 DA 8D 63 68 65 00 00 4C [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 03 00 25 0C 00 90 00 A5 [14:02:54]RAPDU: 90 00 [14:02:54]wFMCommunicate OK [14:02:54]wFMCommunicate request_size=4 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 0D 03 02 [14:02:54]Write to MH i2c: E2 08 00 26 0C 80 0D 03 02 00 00 00 00 AD [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 0B 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 0B 00 26 0C 00 7C B1 DC D2 EC D1 C4 96 90 00 A0 [14:02:54]RAPDU: 7C B1 DC D2 EC D1 C4 96 90 00 [14:02:54]wFMCommunicate OK [14:02:54]SAM_PROTO_SignData done [14:02:54]FM_MakeSignedData done [14:02:54]CreateOFDProtocolMessage [14:02:54]wFMCommunicate request_size=4 [14:02:54]MH_SAM_APDU [14:02:54]CAPDU: 80 11 00 00 [14:02:54]Write to MH i2c: E2 08 00 27 0C 80 11 00 00 00 00 00 00 AD [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:54]Read from MH i2c: E2 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 17 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: E2 17 00 27 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 00 [14:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:02:54]wFMCommunicate OK [14:02:54]CreateOFDProtocolMessage done [14:02:54]OFDSenderStorePacket 148850 [14:02:54]StoreOFDPacket docnum=148850 [14:02:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C7 ED 07 01 C5 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 8E 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 72 45 02 00 35 04 06 00 D3 DA 8D 63 68 65 7C B1 DC D2 EC D1 C4 96 [14:02:54]CheckFolder [14:02:54]dirname=/storage/ofd_packets [14:02:54]CheckFolder done [14:02:54]ProducePacketName [14:02:54]name=ofd_packets/00148850 [14:02:54]NVStorageSaveData ofd_packets/00148850 [14:02:54]File name is /storage/ofd_packets/00148850 [14:02:54]Write 301 bytes [14:02:54]NVStorageSaveData done [14:02:54]OFDSenderStorePacket done [14:02:54]KKMCreateOFDPacket done [14:02:54]NVStorageSaveData kkm_last_timestamp [14:02:54]File name is /storage/kkm_last_timestamp [14:02:54]Write 4 bytes [14:02:54]NVStorageSaveData done [14:02:54]ExternCall_PrintAddStr [14:02:54]wPrintStart [14:02:54]Write to MH i2c: 01 00 00 28 0C 34 [14:02:54]Write i2c OK [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: 01 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: 01 07 00 [14:02:54]MH_I2C_Read... [14:02:54]Read from MH i2c: 01 07 00 28 0C 00 00 00 00 00 FF 0F 49 [14:02:54]RasterBufferAndPrint [14:02:54]line Счет N : (1)979778 [14:02:54]line ИНН: 02508201610067 [14:02:54]line Контрольно-Кассовый Чек [14:02:54]line ПРОДАЖА [14:02:54]line ТРК (МРК, ГНК) : 41 [14:02:54]line Товар: 2710124130 [14:02:54]line Аи-92-К-5 [14:02:54]line 7.480 * 66.90 [14:02:54]line = 500.41 [14:02:54]line НДС 12% НСП 1% [14:02:54]line > о реализуемом товаре [14:02:54]line ОКРУГЛЕНИЕ: -0.41 [14:02:54]line ИТОГО: 500.00 [14:02:54]line Внесено: 500.00 [14:02:54]line СДАЧА: 0.00 [14:02:54]line НСП 1% : 4.43 [14:02:54]line НДС 12% : 53.14 [14:02:54]line Наличными: 500.00 [14:02:54]line Безнал.: 0.00 [14:02:54]line Место: АЗС № 68 "Партнер Нефть" [14:02:54]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:02:54]line СНО: Общий режим [14:02:54]line Чек 189 04.06.2024 14:02 [14:02:54]line Смена: 368 ФФД: 1.0 [14:02:54]line ЗНМ: 0300000035 [14:02:54]line РНМ: 0000000000092720 [14:02:54]line Версия ККМ: 001 [14:02:54]line ФМ: 0000000000875057 [14:02:54]line ФД: 148850 [14:02:54]line ФПД: 232935628433509 [14:02:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140254&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148850&fm=232935628433509&tin=02508201610067®Number=0000000000092720&sum=50000 [14:02:55]OFD Sender: Processing packet 148850 [packets to send 100, broken 99] [14:02:55]ProducePacketName [14:02:55]name=ofd_packets/00148850 [14:02:55]OFD Sender: To server: pG, [14:02:55]CommunicateWithHost lk.salyk.kg:30040 [14:02:55]ConnectInit lk.salyk.kg [14:02:55]written 0, free lines is 4095 [14:02:55]Connected sock=10 [14:02:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C7 ED 07 01 C5 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 8E 1E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 72 45 02 00 35 04 06 00 D3 DA 8D 63 68 65 7C B1 DC D2 EC D1 C4 96 [14:02:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A7 1E 47 00 1C 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 38 37 35 30 35 37 10 04 04 00 72 45 02 00 F4 03 04 00 B1 C5 5E 66 B6 04 01 00 00 43 EA 84 EB 29 45 5D 66 [14:02:55]CommunicateWithHost err = 0 [14:02:55]CheckOFDResponse [14:02:55]1017 (14) - 77093643461234 [14:02:55]1041 (16) - 0000000000875057 [14:02:55]1040 (4) - 148850 [14:02:55]1012 (4) - 04.06.2024 07:43 [14:02:55]1206 (1) - 0 [14:02:55]OFD Sender: Remove packet 148850 [14:02:55]ProducePacketName [14:02:55]name=ofd_packets/00148850 [14:02:55]NVStorageDeleteData [14:02:55]Write to MH i2c: 01 00 00 53 0C 5F [14:02:55]Write i2c OK [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: 01 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: 01 07 00 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: 01 07 00 53 0C 00 00 00 00 00 71 0C E3 [14:02:55]RasterBufferAndPrint [14:02:55]line [14:02:55]line [14:02:55]line [14:02:55]line [14:02:55]line [14:02:55]written 0, free lines is 3187 [14:02:55]MH_Cut [14:02:55]Write to MH i2c: D1 01 00 5A 0C 01 38 [14:02:55]Write i2c OK [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: D1 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: D1 01 00 [14:02:55]MH_I2C_Read... [14:02:55]Read from MH i2c: D1 01 00 5A 0C 00 37 [14:02:55]Write to MH i2c: 01 00 00 5B 0C 67 [14:02:55]Write i2c OK [14:02:55]MH_I2C_Read... [14:02:55]OFD Sender: No OFD packet to send [14:02:56]*** Cut start [14:02:56]*** Partial cut [14:02:56]*** CUTSNS_PIN = 1 [14:02:56]*** CUTSNS_PIN = 0 [14:02:57]*** Brake cut motor [14:02:57]Read from MH i2c: 01 [14:02:57]MH_I2C_Read... [14:02:57]*** Stop cut motor [14:02:57]*** Cut end [14:02:57]Read from MH i2c: 01 07 00 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 FF 0F 7C [14:02:57]process_action close_receipt done [14:02:57]requested_data is exist [14:02:57]produce_requested_data [14:02:57]requested_item fm.sn is exist - process it [14:02:57]wFMCommunicate request_size=4 [14:02:57]MH_SAM_APDU [14:02:57]CAPDU: 80 11 00 00 [14:02:57]Write to MH i2c: E2 08 00 5C 0C 80 11 00 00 00 00 00 00 E2 [14:02:57]Write i2c OK [14:02:57]MH_I2C_Read... [14:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:57]Read from MH i2c: E2 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 17 00 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 17 00 5C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 35 [14:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:02:57]wFMCommunicate OK [14:02:57]requested_item fd.num is exist - process it [14:02:57]SAM_PROTO_GetFieldsCounters [14:02:57]wFMCommunicate request_size=4 [14:02:57]MH_SAM_APDU [14:02:57]CAPDU: 80 13 00 00 [14:02:57]Write to MH i2c: E2 08 00 5D 0C 80 13 00 00 00 00 00 00 E5 [14:02:57]Write i2c OK [14:02:57]MH_I2C_Read... [14:02:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:57]Read from MH i2c: E2 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 62 00 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 62 00 5D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 72 45 02 00 0E 04 04 00 70 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 62 [14:02:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 72 45 02 00 0E 04 04 00 70 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 [14:02:57]wFMCommunicate OK [14:02:57]SAM_PROTO_GetFieldsCounters done [14:02:57]requested_item shift.num is exist - process it [14:02:57]requested_item shift.opened is exist - process it [14:02:57]req_shift_opened [14:02:57]FM_GetShiftState [14:02:57]SAM_PROTO_GetShiftState [14:02:57]wFMCommunicate request_size=4 [14:02:57]MH_SAM_APDU [14:02:57]CAPDU: 80 13 01 00 [14:02:57]Write to MH i2c: E2 08 00 5E 0C 80 13 01 00 00 00 00 00 E7 [14:02:57]Write i2c OK [14:02:57]MH_I2C_Read... [14:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:57]Read from MH i2c: E2 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 0E 00 [14:02:57]MH_I2C_Read... [14:02:57]Read from MH i2c: E2 0E 00 5E 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AA [14:02:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:02:57]wFMCommunicate OK [14:02:57]SAM_PROTO_GetShiftState done [14:02:57]FM_GetShiftState done [14:02:57]req_shift_opened done [14:02:57]requested_item shift.open_date is exist - process it [14:02:57]req_shift_open_date [14:02:57]req_shift_open_date done [14:02:57]produce_requested_data done [14:02:57]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148850,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:02:57]process_action_free close_receipt [14:02:57]json_value_free [14:02:57]json_value_free done [14:02:57]process_json_proto returns [14:02:57]Send response to host [14:02:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148850,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:02:57]free response buf [14:02:57]execute_script done [14:02:57]execute_script returns [14:02:57]free content buf [14:02:57]Sock 9.Close socket [14:02:57]Sock 9.Thread stoped [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:19]accept exits with 7 [14:05:19]New connection [14:05:19]New thread 3067264356 created [14:05:19]Thread 3067407716 joined [14:05:19]Waiting for new connection... [14:05:19] Sock 7.Parse request [14:05:19]Sock 7.Check first char [14:05:19]Sock 7.First char is OK [14:05:19]request: POST /json_proto HTTP/1.0 [14:05:19]Method: POST [14:05:19]URL: /json_proto [14:05:19]Method is POST - this is cgi request [14:05:19]url: /json_proto [14:05:19]query_string will be loaded in cgi processing [14:05:19]execute_cgi json_proto POST (null) [14:05:19]execute_cgi path=json_proto method=POST [14:05:19]POST find Content-Length [14:05:19]Host: 172.17.38.4:8080 [14:05:19]Content-Length: 677 [14:05:19]Content-Type: application/json [14:05:19] [14:05:19]POST finish read [14:05:19]Found Content-Length = 677 [14:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:19]execute_script... [14:05:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:19]POST & json_proto [14:05:19]process_json_proto [14:05:19]json parsed OK: [14:05:19]protocol is kg_v1.0 [14:05:19]action value=close_receipt [14:05:19]process_action close_receipt [14:05:19]cmd_close_receipt [14:05:19]MH_GetDate [14:05:19]Write to MH i2c: F0 00 00 5F 0C 5A [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: F0 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: F0 09 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: F0 09 00 5F 0C 00 20 1F 5F 66 CC 51 87 64 6F [14:05:19]GetLastDocTimeStamp 1717509774 [14:05:19]current date 1717509920 [14:05:19]FM_GetShiftState [14:05:19]SAM_PROTO_GetShiftState [14:05:19]wFMCommunicate request_size=4 [14:05:19]MH_SAM_APDU [14:05:19]CAPDU: 80 13 01 00 [14:05:19]Write to MH i2c: E2 08 00 60 0C 80 13 01 00 00 00 00 00 E9 [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:19]Read from MH i2c: E2 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 0E 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 0E 00 60 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AC [14:05:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:05:19]wFMCommunicate OK [14:05:19]SAM_PROTO_GetShiftState done [14:05:19]FM_GetShiftState done [14:05:19]opened in 1717460629 [14:05:19]opened+sec_in_day 1717547029 [14:05:19]quantity*price = 50041 [14:05:19]sum+1 = 50042 [14:05:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 190 04.06.2024 14:05 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148851 ФПД: 7322104773639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140520&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148851&fm=7322104773639&tin=02508201610067®Number=0000000000092720&sum=50000 [14:05:20]StoreToDocumentArchive [14:05:20]shift 368 fd 148851 [14:05:20]save to /storage/0368/doc_00148851 [14:05:20]save last doc name /storage/0368/doc_00148851 to /storage/kkm_last_doc_name [14:05:20]save OK [14:05:20]Clear old archive folders... [14:05:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:20]tlvbuf is B6F17540 [14:05:20]SAM_PROTO_ClearQueue [14:05:20]wFMCommunicate request_size=4 [14:05:20]MH_SAM_APDU [14:05:20]CAPDU: 80 09 00 00 [14:05:20]Write to MH i2c: E2 08 00 6D 0C 80 09 00 00 00 00 00 00 EB [14:05:20]Write i2c OK [14:05:20]MH_I2C_Read... [14:05:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:20]Read from MH i2c: E2 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: E2 03 00 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: E2 03 00 6D 0C 00 90 00 ED [14:05:20]RAPDU: 90 00 [14:05:20]wFMCommunicate OK [14:05:20]SAM_PROTO_ClearQueue done [14:05:20]KKMCreateOFDPacket [14:05:20]OFDProtocolAddRootSTLVToBuf [14:05:20]FM_MakeSignedData [14:05:20]FM_MakeSignedData [14:05:20]SAM_PROTO_SignData [14:05:20]wFMCommunicate request_size=4 [14:05:20]MH_SAM_APDU [14:05:20]CAPDU: 80 0D 01 02 [14:05:20]Write to MH i2c: E2 08 00 6E 0C 80 0D 01 02 00 00 00 00 F3 [14:05:20]Write i2c OK [14:05:20]MH_I2C_Read... [14:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:20]Read from MH i2c: E2 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: E2 03 00 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: E2 03 00 6E 0C 00 90 00 EE [14:05:20]RAPDU: 90 00 [14:05:20]wFMCommunicate OK [14:05:20]wFMCommunicate request_size=255 [14:05:20]MH_SAM_APDU [14:05:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 20 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 73 45 02 00 35 04 06 00 06 [14:05:20]Write to MH i2c: E2 02 01 6F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 20 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 73 45 02 00 35 04 06 00 06 00 00 70 [14:05:20]Write i2c OK [14:05:20]MH_I2C_Read... [14:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:20]Read from MH i2c: E2 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: E2 03 00 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [14:05:20]RAPDU: 90 00 [14:05:20]wFMCommunicate OK [14:05:20]wFMCommunicate request_size=10 [14:05:20]MH_SAM_APDU [14:05:20]CAPDU: 80 0D 02 02 05 A8 CF 74 3C 07 [14:05:20]Write to MH i2c: E2 0D 00 70 0C 80 0D 02 02 05 00 A8 CF 74 3C 07 00 00 2E [14:05:20]Write i2c OK [14:05:20]MH_I2C_Read... [14:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:20]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 03 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [14:05:21]RAPDU: 90 00 [14:05:21]wFMCommunicate OK [14:05:21]wFMCommunicate request_size=4 [14:05:21]MH_SAM_APDU [14:05:21]CAPDU: 80 0D 03 02 [14:05:21]Write to MH i2c: E2 08 00 71 0C 80 0D 03 02 00 00 00 00 F8 [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 0B 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 0B 00 71 0C 00 E9 3B B4 AA 0F 0B 28 56 90 00 13 [14:05:21]RAPDU: E9 3B B4 AA 0F 0B 28 56 90 00 [14:05:21]wFMCommunicate OK [14:05:21]SAM_PROTO_SignData done [14:05:21]FM_MakeSignedData done [14:05:21]CreateOFDProtocolMessage [14:05:21]wFMCommunicate request_size=4 [14:05:21]MH_SAM_APDU [14:05:21]CAPDU: 80 11 00 00 [14:05:21]Write to MH i2c: E2 08 00 72 0C 80 11 00 00 00 00 00 00 F8 [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]OFD Sender: No OFD packet to send [14:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 17 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 17 00 72 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4B [14:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:05:21]wFMCommunicate OK [14:05:21]CreateOFDProtocolMessage done [14:05:21]OFDSenderStorePacket 148851 [14:05:21]StoreOFDPacket docnum=148851 [14:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E1 8A 07 01 BD 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 20 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 73 45 02 00 35 04 06 00 06 A8 CF 74 3C 07 E9 3B B4 AA 0F 0B 28 56 [14:05:21]CheckFolder [14:05:21]dirname=/storage/ofd_packets [14:05:21]CheckFolder done [14:05:21]ProducePacketName [14:05:21]name=ofd_packets/00148851 [14:05:21]NVStorageSaveData ofd_packets/00148851 [14:05:21]File name is /storage/ofd_packets/00148851 [14:05:21]Write 301 bytes [14:05:21]NVStorageSaveData done [14:05:21]OFDSenderStorePacket done [14:05:21]KKMCreateOFDPacket done [14:05:21]NVStorageSaveData kkm_last_timestamp [14:05:21]File name is /storage/kkm_last_timestamp [14:05:21]Write 4 bytes [14:05:21]NVStorageSaveData done [14:05:21]ExternCall_PrintAddStr [14:05:21]wPrintStart [14:05:21]Write to MH i2c: 01 00 00 73 0C 7F [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 07 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 07 00 73 0C 00 00 00 00 00 FF 0F 94 [14:05:21]RasterBufferAndPrint [14:05:21]line Счет N : (1)979779 [14:05:21]line ИНН: 02508201610067 [14:05:21]line Контрольно-Кассовый Чек [14:05:21]line ПРОДАЖА [14:05:21]line ТРК (МРК, ГНК) : 22 [14:05:21]line Товар: 2710124130 [14:05:21]line Аи-92-К-5 [14:05:21]line 7.480 * 66.90 [14:05:21]line = 500.41 [14:05:21]line НДС 12% НСП 1% [14:05:21]line > о реализуемом товаре [14:05:21]line ОКРУГЛЕНИЕ: -0.41 [14:05:21]line ИТОГО: 500.00 [14:05:21]line Внесено: 500.00 [14:05:21]line СДАЧА: 0.00 [14:05:21]line НСП 1% : 4.43 [14:05:21]line НДС 12% : 53.14 [14:05:21]line Наличными: 500.00 [14:05:21]line Безнал.: 0.00 [14:05:21]line Место: АЗС № 68 "Партнер Нефть" [14:05:21]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:05:21]line СНО: Общий режим [14:05:21]line Чек 190 04.06.2024 14:05 [14:05:21]line Смена: 368 ФФД: 1.0 [14:05:21]line ЗНМ: 0300000035 [14:05:21]line РНМ: 0000000000092720 [14:05:21]line Версия ККМ: 001 [14:05:21]line ФМ: 0000000000875057 [14:05:21]line ФД: 148851 [14:05:21]line ФПД: 7322104773639 [14:05:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140520&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148851&fm=7322104773639&tin=02508201610067®Number=0000000000092720&sum=50000 [14:05:21]OFD Sender: Processing packet 148851 [packets to send 100, broken 99] [14:05:21]ProducePacketName [14:05:21]name=ofd_packets/00148851 [14:05:21]OFD Sender: To server: pG, [14:05:21]CommunicateWithHost lk.salyk.kg:30040 [14:05:21]ConnectInit lk.salyk.kg [14:05:21]written 0, free lines is 4095 [14:05:21]Connected sock=10 [14:05:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E1 8A 07 01 BD 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 20 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 73 45 02 00 35 04 06 00 06 A8 CF 74 3C 07 E9 3B B4 AA 0F 0B 28 56 [14:05:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9F 2A 47 00 7F 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 73 45 02 00 F4 03 04 00 44 C6 5E 66 B6 04 01 00 00 2A FA 4D 81 6A EB 53 CB [14:05:21]CommunicateWithHost err = 0 [14:05:21]CheckOFDResponse [14:05:21]1017 (14) - 77093643461234 [14:05:21]1041 (16) - 0000000000875057 [14:05:21]1040 (4) - 148851 [14:05:21]1012 (4) - 04.06.2024 07:46 [14:05:21]1206 (1) - 0 [14:05:21]OFD Sender: Remove packet 148851 [14:05:21]ProducePacketName [14:05:21]name=ofd_packets/00148851 [14:05:21]NVStorageDeleteData [14:05:21]Write to MH i2c: 01 00 00 9E 0C AA [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 07 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 07 00 9E 0C 00 00 00 00 00 68 0C 25 [14:05:21]RasterBufferAndPrint [14:05:21]line [14:05:21]line [14:05:21]line [14:05:21]line [14:05:21]line [14:05:21]written 0, free lines is 3179 [14:05:21]MH_Cut [14:05:21]Write to MH i2c: D1 01 00 A5 0C 01 83 [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: D1 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: D1 01 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: D1 01 00 A5 0C 00 82 [14:05:21]Write to MH i2c: 01 00 00 A6 0C B2 [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:22]OFD Sender: No OFD packet to send [14:05:23]*** Cut start [14:05:23]*** Partial cut [14:05:23]*** CUTSNS_PIN = 1 [14:05:23]*** CUTSNS_PIN = 0 [14:05:23]*** Brake cut motor [14:05:23]Read from MH i2c: 01 [14:05:23]MH_I2C_Read... [14:05:23]*** Stop cut motor [14:05:23]*** Cut end [14:05:23]Read from MH i2c: 01 07 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: 01 07 00 A6 0C 00 00 00 00 00 FF 0F C7 [14:05:23]process_action close_receipt done [14:05:23]requested_data is exist [14:05:23]produce_requested_data [14:05:23]requested_item fm.sn is exist - process it [14:05:23]wFMCommunicate request_size=4 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 11 00 00 [14:05:23]Write to MH i2c: E2 08 00 A7 0C 80 11 00 00 00 00 00 00 2D [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 17 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 17 00 A7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 80 [14:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:05:23]wFMCommunicate OK [14:05:23]requested_item fd.num is exist - process it [14:05:23]SAM_PROTO_GetFieldsCounters [14:05:23]wFMCommunicate request_size=4 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 13 00 00 [14:05:23]Write to MH i2c: E2 08 00 A8 0C 80 13 00 00 00 00 00 00 30 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 62 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 62 00 A8 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 73 45 02 00 0E 04 04 00 70 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 B1 [14:05:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 73 45 02 00 0E 04 04 00 70 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 [14:05:23]wFMCommunicate OK [14:05:23]SAM_PROTO_GetFieldsCounters done [14:05:23]requested_item shift.num is exist - process it [14:05:23]requested_item shift.opened is exist - process it [14:05:23]req_shift_opened [14:05:23]FM_GetShiftState [14:05:23]SAM_PROTO_GetShiftState [14:05:23]wFMCommunicate request_size=4 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 13 01 00 [14:05:23]Write to MH i2c: E2 08 00 A9 0C 80 13 01 00 00 00 00 00 32 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:24]Read from MH i2c: E2 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 0E 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 0E 00 A9 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F5 [14:05:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:05:24]wFMCommunicate OK [14:05:24]SAM_PROTO_GetShiftState done [14:05:24]FM_GetShiftState done [14:05:24]req_shift_opened done [14:05:24]requested_item shift.open_date is exist - process it [14:05:24]req_shift_open_date [14:05:24]req_shift_open_date done [14:05:24]produce_requested_data done [14:05:24]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148851,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:05:24]process_action_free close_receipt [14:05:24]json_value_free [14:05:24]json_value_free done [14:05:24]process_json_proto returns [14:05:24]Send response to host [14:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148851,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:05:24]free response buf [14:05:24]execute_script done [14:05:24]execute_script returns [14:05:24]free content buf [14:05:24]Sock 7.Close socket [14:05:24]Sock 7.Thread stoped [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:46]accept exits with 9 [14:06:46]New connection [14:06:46]New thread 3067407716 created [14:06:46]Thread 3067264356 joined [14:06:46]Waiting for new connection... [14:06:46] Sock 9.Parse request [14:06:46]Sock 9.Check first char [14:06:46]Sock 9.First char is OK [14:06:46]request: POST /json_proto HTTP/1.0 [14:06:46]Method: POST [14:06:46]URL: /json_proto [14:06:46]Method is POST - this is cgi request [14:06:46]url: /json_proto [14:06:46]query_string will be loaded in cgi processing [14:06:46]execute_cgi json_proto POST (null) [14:06:46]execute_cgi path=json_proto method=POST [14:06:46]POST find Content-Length [14:06:46]Host: 172.17.38.4:8080 [14:06:46]Content-Length: 679 [14:06:46]Content-Type: application/json [14:06:46] [14:06:46]POST finish read [14:06:46]Found Content-Length = 679 [14:06:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [14:06:46]execute_script... [14:06: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)979780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [14:06:46]POST & json_proto [14:06:46]process_json_proto [14:06:46]json parsed OK: [14:06:46]protocol is kg_v1.0 [14:06:46]action value=close_receipt [14:06:46]process_action close_receipt [14:06:46]cmd_close_receipt [14:06:46]MH_GetDate [14:06:46]Write to MH i2c: F0 00 00 AA 0C A5 [14:06:46]Write i2c OK [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: F0 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: F0 09 00 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: F0 09 00 AA 0C 00 78 1F 5F 66 CC 51 87 64 12 [14:06:46]GetLastDocTimeStamp 1717509920 [14:06:46]current date 1717510008 [14:06:46]FM_GetShiftState [14:06:46]SAM_PROTO_GetShiftState [14:06:46]wFMCommunicate request_size=4 [14:06:46]MH_SAM_APDU [14:06:46]CAPDU: 80 13 01 00 [14:06:46]Write to MH i2c: E2 08 00 AB 0C 80 13 01 00 00 00 00 00 34 [14:06:46]Write i2c OK [14:06:46]MH_I2C_Read... [14:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:47]Read from MH i2c: E2 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 0E 00 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 0E 00 AB 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F7 [14:06:47]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:06:47]wFMCommunicate OK [14:06:47]SAM_PROTO_GetShiftState done [14:06:47]FM_GetShiftState done [14:06:47]opened in 1717460629 [14:06:47]opened+sec_in_day 1717547029 [14:06:47]quantity*price = 150028 [14:06:47]sum+1 = 150029 [14:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 191 04.06.2024 14:06 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148852 ФПД: 257294588495983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140648&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148852&fm=257294588495983&tin=02508201610067®Number=0000000000092720&sum=150000 [14:06:48]StoreToDocumentArchive [14:06:48]shift 368 fd 148852 [14:06:48]save to /storage/0368/doc_00148852 [14:06:48]save last doc name /storage/0368/doc_00148852 to /storage/kkm_last_doc_name [14:06:48]save OK [14:06:48]Clear old archive folders... [14:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:06:48]tlvbuf is 00479200 [14:06:48]SAM_PROTO_ClearQueue [14:06:48]wFMCommunicate request_size=4 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 09 00 00 [14:06:48]Write to MH i2c: E2 08 00 B8 0C 80 09 00 00 00 00 00 00 36 [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [14:06:48]RAPDU: 90 00 [14:06:48]wFMCommunicate OK [14:06:48]SAM_PROTO_ClearQueue done [14:06:48]KKMCreateOFDPacket [14:06:48]OFDProtocolAddRootSTLVToBuf [14:06:48]FM_MakeSignedData [14:06:48]FM_MakeSignedData [14:06:48]SAM_PROTO_SignData [14:06:48]wFMCommunicate request_size=4 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 0D 01 02 [14:06:48]Write to MH i2c: E2 08 00 B9 0C 80 0D 01 02 00 00 00 00 3E [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [14:06:48]RAPDU: 90 00 [14:06:48]wFMCommunicate OK [14:06:48]wFMCommunicate request_size=255 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BF 00 00 00 F4 03 04 00 78 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 74 45 02 00 35 04 06 00 EA 02 10 8C [14:06:48]Write to MH i2c: E2 02 01 BA 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BF 00 00 00 F4 03 04 00 78 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 74 45 02 00 35 04 06 00 EA 02 10 8C 00 00 2C [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 BA 0C 00 90 00 3A [14:06:48]RAPDU: 90 00 [14:06:48]wFMCommunicate OK [14:06:48]wFMCommunicate request_size=7 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 0D 02 02 02 C8 6F [14:06:48]Write to MH i2c: E2 0A 00 BB 0C 80 0D 02 02 02 00 C8 6F 00 00 7C [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 BB 0C 00 90 00 3B [14:06:48]RAPDU: 90 00 [14:06:48]wFMCommunicate OK [14:06:48]wFMCommunicate request_size=4 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 0D 03 02 [14:06:48]Write to MH i2c: E2 08 00 BC 0C 80 0D 03 02 00 00 00 00 43 [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 0B 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 0B 00 BC 0C 00 41 BC 55 83 EC 09 46 BC 90 00 10 [14:06:48]RAPDU: 41 BC 55 83 EC 09 46 BC 90 00 [14:06:48]wFMCommunicate OK [14:06:48]SAM_PROTO_SignData done [14:06:48]FM_MakeSignedData done [14:06:48]CreateOFDProtocolMessage [14:06:48]wFMCommunicate request_size=4 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 11 00 00 [14:06:48]Write to MH i2c: E2 08 00 BD 0C 80 11 00 00 00 00 00 00 43 [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 17 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 17 00 BD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 96 [14:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:06:48]wFMCommunicate OK [14:06:48]CreateOFDProtocolMessage done [14:06:48]OFDSenderStorePacket 148852 [14:06:48]StoreOFDPacket docnum=148852 [14:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 7C 06 04 01 03 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BF 00 00 00 F4 03 04 00 78 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 74 45 02 00 35 04 06 00 EA 02 10 8C C8 6F 41 BC 55 83 EC 09 46 BC [14:06:48]CheckFolder [14:06:48]dirname=/storage/ofd_packets [14:06:48]CheckFolder done [14:06:48]ProducePacketName [14:06:48]name=ofd_packets/00148852 [14:06:48]NVStorageSaveData ofd_packets/00148852 [14:06:48]File name is /storage/ofd_packets/00148852 [14:06:48]Write 298 bytes [14:06:48]NVStorageSaveData done [14:06:48]OFDSenderStorePacket done [14:06:48]KKMCreateOFDPacket done [14:06:48]NVStorageSaveData kkm_last_timestamp [14:06:48]File name is /storage/kkm_last_timestamp [14:06:48]Write 4 bytes [14:06:48]NVStorageSaveData done [14:06:48]ExternCall_PrintAddStr [14:06:48]wPrintStart [14:06:48]Write to MH i2c: 01 00 00 BE 0C CA [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: 01 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: 01 07 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: 01 07 00 BE 0C 00 00 00 00 00 FF 0F DF [14:06:48]RasterBufferAndPrint [14:06:48]line Счет N : (1)979780 [14:06:48]line ИНН: 02508201610067 [14:06:48]line Контрольно-Кассовый Чек [14:06:48]line ПРОДАЖА [14:06:48]line ТРК (МРК, ГНК) : 11 [14:06:48]line Товар: 2710194210 [14:06:48]line ДТ-К-5 [14:06:48]line 20.580 * 72.90 [14:06:48]line = 1500.28 [14:06:48]line НДС 12% НСП 1% [14:06:48]line > о реализуемом товаре [14:06:48]line ОКРУГЛЕНИЕ: -0.28 [14:06:48]line ИТОГО: 1500.00 [14:06:48]line Внесено: 1500.00 [14:06:48]line СДАЧА: 0.00 [14:06:48]line НСП 1% : 13.28 [14:06:48]line НДС 12% : 159.32 [14:06:48]line Наличными: 1500.00 [14:06:48]line Безнал.: 0.00 [14:06:48]line Место: АЗС № 68 "Партнер Нефть" [14:06:48]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:06:48]line СНО: Общий режим [14:06:48]line Чек 191 04.06.2024 14:06 [14:06:48]line Смена: 368 ФФД: 1.0 [14:06:48]line ЗНМ: 0300000035 [14:06:48]line РНМ: 0000000000092720 [14:06:48]line Версия ККМ: 001 [14:06:48]line ФМ: 0000000000875057 [14:06:48]line ФД: 148852 [14:06:48]line ФПД: 257294588495983 [14:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140648&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148852&fm=257294588495983&tin=02508201610067®Number=0000000000092720&sum=150000 [14:06:49]OFD Sender: Processing packet 148852 [packets to send 100, broken 99] [14:06:49]ProducePacketName [14:06:49]name=ofd_packets/00148852 [14:06:49]OFD Sender: To server: pG, [14:06:49]CommunicateWithHost lk.salyk.kg:30040 [14:06:49]ConnectInit lk.salyk.kg [14:06:49]written 0, free lines is 4095 [14:06:49]Connected sock=10 [14:06:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 7C 06 04 01 03 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BF 00 00 00 F4 03 04 00 78 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 74 45 02 00 35 04 06 00 EA 02 10 8C C8 6F 41 BC 55 83 EC 09 46 BC [14:06:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D9 39 47 00 D0 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 38 37 35 30 35 37 10 04 04 00 74 45 02 00 F4 03 04 00 9B C6 5E 66 B6 04 01 00 00 3C DA 18 9A 5F BA 42 5A [14:06:49]CommunicateWithHost err = 0 [14:06:49]CheckOFDResponse [14:06:49]1017 (14) - 77093643461234 [14:06:49]1041 (16) - 0000000000875057 [14:06:49]1040 (4) - 148852 [14:06:49]1012 (4) - 04.06.2024 07:47 [14:06:49]1206 (1) - 0 [14:06:49]OFD Sender: Remove packet 148852 [14:06:49]ProducePacketName [14:06:49]name=ofd_packets/00148852 [14:06:49]NVStorageDeleteData [14:06:49]Write to MH i2c: 01 00 00 E9 0C F5 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 E9 0C 00 00 00 00 00 6A 0C 72 [14:06:49]RasterBufferAndPrint [14:06:49]line [14:06:49]line [14:06:49]line [14:06:49]line [14:06:49]line [14:06:49]written 0, free lines is 3181 [14:06:49]MH_Cut [14:06:49]Write to MH i2c: D1 01 00 F0 0C 01 CE [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: D1 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: D1 01 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: D1 01 00 F0 0C 00 CD [14:06:49]Write to MH i2c: 01 00 00 F1 0C FD [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]OFD Sender: No OFD packet to send [14:06:50]*** Cut start [14:06:50]*** Partial cut [14:06:50]*** CUTSNS_PIN = 1 [14:06:50]*** CUTSNS_PIN = 0 [14:06:51]*** Brake cut motor [14:06:51]Read from MH i2c: 01 [14:06:51]MH_I2C_Read... [14:06:51]*** Stop cut motor [14:06:51]*** Cut end [14:06:51]Read from MH i2c: 01 07 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: 01 07 00 F1 0C 00 00 00 00 00 FF 0F 12 [14:06:51]process_action close_receipt done [14:06:51]requested_data is exist [14:06:51]produce_requested_data [14:06:51]requested_item fm.sn is exist - process it [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 11 00 00 [14:06:51]Write to MH i2c: E2 08 00 F2 0C 80 11 00 00 00 00 00 00 78 [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 17 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 17 00 F2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CB [14:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:06:51]wFMCommunicate OK [14:06:51]requested_item fd.num is exist - process it [14:06:51]SAM_PROTO_GetFieldsCounters [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 13 00 00 [14:06:51]Write to MH i2c: E2 08 00 F3 0C 80 13 00 00 00 00 00 00 7B [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 62 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 62 00 F3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 74 45 02 00 0E 04 04 00 70 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 00 [14:06:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 74 45 02 00 0E 04 04 00 70 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 [14:06:51]wFMCommunicate OK [14:06:51]SAM_PROTO_GetFieldsCounters done [14:06:51]requested_item shift.num is exist - process it [14:06:51]requested_item shift.opened is exist - process it [14:06:51]req_shift_opened [14:06:51]FM_GetShiftState [14:06:51]SAM_PROTO_GetShiftState [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 13 01 00 [14:06:51]Write to MH i2c: E2 08 00 F4 0C 80 13 01 00 00 00 00 00 7D [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 0E 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 0E 00 F4 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 40 [14:06:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:06:51]wFMCommunicate OK [14:06:51]SAM_PROTO_GetShiftState done [14:06:51]FM_GetShiftState done [14:06:51]req_shift_opened done [14:06:51]requested_item shift.open_date is exist - process it [14:06:51]req_shift_open_date [14:06:51]req_shift_open_date done [14:06:51]produce_requested_data done [14:06:51]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148852,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:06:51]process_action_free close_receipt [14:06:51]json_value_free [14:06:51]json_value_free done [14:06:51]process_json_proto returns [14:06:51]Send response to host [14:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148852,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:06:51]free response buf [14:06:51]execute_script done [14:06:51]execute_script returns [14:06:51]free content buf [14:06:51]Sock 9.Close socket [14:06:51]Sock 9.Thread stoped [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:02]accept exits with 7 [14:07:02]New connection [14:07:02]New thread 3067264356 created [14:07:02]Thread 3067407716 joined [14:07:02]Waiting for new connection... [14:07:02] Sock 7.Parse request [14:07:02]Sock 7.Check first char [14:07:02]Sock 7.First char is OK [14:07:02]request: POST /json_proto HTTP/1.0 [14:07:02]Method: POST [14:07:02]URL: /json_proto [14:07:02]Method is POST - this is cgi request [14:07:02]url: /json_proto [14:07:02]query_string will be loaded in cgi processing [14:07:02]execute_cgi json_proto POST (null) [14:07:02]execute_cgi path=json_proto method=POST [14:07:02]POST find Content-Length [14:07:02]Host: 172.17.38.4:8080 [14:07:02]Content-Length: 677 [14:07:02]Content-Type: application/json [14:07:02] [14:07:02]POST finish read [14:07:02]Found Content-Length = 677 [14:07:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [14:07:02]execute_script... [14:07: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)979781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [14:07:02]POST & json_proto [14:07:02]process_json_proto [14:07:02]json parsed OK: [14:07:02]protocol is kg_v1.0 [14:07:02]action value=close_receipt [14:07:02]process_action close_receipt [14:07:02]cmd_close_receipt [14:07:02]MH_GetDate [14:07:02]Write to MH i2c: F0 00 00 F5 0C F0 [14:07:02]Write i2c OK [14:07:02]MH_I2C_Read... [14:07:02]Read from MH i2c: F0 [14:07:02]MH_I2C_Read... [14:07:02]Read from MH i2c: F0 09 00 [14:07:02]MH_I2C_Read... [14:07:02]Read from MH i2c: F0 09 00 F5 0C 00 87 1F 5F 66 CC 51 87 64 6C [14:07:02]GetLastDocTimeStamp 1717510008 [14:07:02]current date 1717510023 [14:07:02]FM_GetShiftState [14:07:02]SAM_PROTO_GetShiftState [14:07:02]wFMCommunicate request_size=4 [14:07:02]MH_SAM_APDU [14:07:02]CAPDU: 80 13 01 00 [14:07:02]Write to MH i2c: E2 08 00 F6 0C 80 13 01 00 00 00 00 00 7F [14:07:02]Write i2c OK [14:07:02]MH_I2C_Read... [14:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:02]Read from MH i2c: E2 [14:07:02]MH_I2C_Read... [14:07:02]Read from MH i2c: E2 0E 00 [14:07:02]MH_I2C_Read... [14:07:02]Read from MH i2c: E2 0E 00 F6 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 42 [14:07:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:07:02]wFMCommunicate OK [14:07:02]SAM_PROTO_GetShiftState done [14:07:02]FM_GetShiftState done [14:07:02]opened in 1717460629 [14:07:02]opened+sec_in_day 1717547029 [14:07:02]quantity*price = 20003 [14:07:02]sum+1 = 20004 [14:07: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 192 04.06.2024 14:07 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148853 ФПД: 180785122023279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140703&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148853&fm=180785122023279&tin=02508201610067®Number=0000000000092720&sum=20000 [14:07:03]StoreToDocumentArchive [14:07:03]shift 368 fd 148853 [14:07:03]save to /storage/0368/doc_00148853 [14:07:03]save last doc name /storage/0368/doc_00148853 to /storage/kkm_last_doc_name [14:07:03]save OK [14:07:03]Clear old archive folders... [14:07:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:03]tlvbuf is 004B4460 [14:07:03]SAM_PROTO_ClearQueue [14:07:03]wFMCommunicate request_size=4 [14:07:03]MH_SAM_APDU [14:07:03]CAPDU: 80 09 00 00 [14:07:03]Write to MH i2c: E2 08 00 03 0D 80 09 00 00 00 00 00 00 82 [14:07:03]Write i2c OK [14:07:03]MH_I2C_Read... [14:07:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:03]Read from MH i2c: E2 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 03 00 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 03 00 03 0D 00 90 00 84 [14:07:03]RAPDU: 90 00 [14:07:03]wFMCommunicate OK [14:07:03]SAM_PROTO_ClearQueue done [14:07:03]KKMCreateOFDPacket [14:07:03]OFDProtocolAddRootSTLVToBuf [14:07:03]FM_MakeSignedData [14:07:03]FM_MakeSignedData [14:07:03]SAM_PROTO_SignData [14:07:03]wFMCommunicate request_size=4 [14:07:03]MH_SAM_APDU [14:07:03]CAPDU: 80 0D 01 02 [14:07:03]Write to MH i2c: E2 08 00 04 0D 80 0D 01 02 00 00 00 00 8A [14:07:03]Write i2c OK [14:07:03]MH_I2C_Read... [14:07:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:03]Read from MH i2c: E2 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 03 00 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 03 00 04 0D 00 90 00 85 [14:07:03]RAPDU: 90 00 [14:07:03]wFMCommunicate OK [14:07:03]wFMCommunicate request_size=255 [14:07:03]MH_SAM_APDU [14:07:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 00 00 00 F4 03 04 00 87 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 75 45 02 00 35 04 06 00 A4 [14:07:03]Write to MH i2c: E2 02 01 05 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 00 00 00 F4 03 04 00 87 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 75 45 02 00 35 04 06 00 A4 00 00 D2 [14:07:03]Write i2c OK [14:07:03]MH_I2C_Read... [14:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:03]Read from MH i2c: E2 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 03 00 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 03 00 05 0D 00 90 00 86 [14:07:03]RAPDU: 90 00 [14:07:03]wFMCommunicate OK [14:07:03]wFMCommunicate request_size=10 [14:07:03]MH_SAM_APDU [14:07:03]CAPDU: 80 0D 02 02 05 6C 50 FA 97 6F [14:07:03]Write to MH i2c: E2 0D 00 06 0D 80 0D 02 02 05 00 6C 50 FA 97 6F 00 00 53 [14:07:03]Write i2c OK [14:07:03]MH_I2C_Read... [14:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:03]Read from MH i2c: E2 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 03 00 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 03 00 06 0D 00 90 00 87 [14:07:03]RAPDU: 90 00 [14:07:03]wFMCommunicate OK [14:07:03]wFMCommunicate request_size=4 [14:07:03]MH_SAM_APDU [14:07:03]CAPDU: 80 0D 03 02 [14:07:03]Write to MH i2c: E2 08 00 07 0D 80 0D 03 02 00 00 00 00 8F [14:07:03]Write i2c OK [14:07:03]MH_I2C_Read... [14:07:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:03]Read from MH i2c: E2 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 0B 00 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 0B 00 07 0D 00 00 1F 9C 1E 4E 7B 2E B9 90 00 19 [14:07:03]RAPDU: 00 1F 9C 1E 4E 7B 2E B9 90 00 [14:07:03]wFMCommunicate OK [14:07:03]SAM_PROTO_SignData done [14:07:03]FM_MakeSignedData done [14:07:03]CreateOFDProtocolMessage [14:07:03]wFMCommunicate request_size=4 [14:07:03]MH_SAM_APDU [14:07:03]CAPDU: 80 11 00 00 [14:07:03]Write to MH i2c: E2 08 00 08 0D 80 11 00 00 00 00 00 00 8F [14:07:03]Write i2c OK [14:07:03]MH_I2C_Read... [14:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:03]Read from MH i2c: E2 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 17 00 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: E2 17 00 08 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E2 [14:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:07:03]wFMCommunicate OK [14:07:03]CreateOFDProtocolMessage done [14:07:03]OFDSenderStorePacket 148853 [14:07:03]StoreOFDPacket docnum=148853 [14:07:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A9 DC 07 01 A1 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 00 00 00 F4 03 04 00 87 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 75 45 02 00 35 04 06 00 A4 6C 50 FA 97 6F 00 1F 9C 1E 4E 7B 2E B9 [14:07:03]CheckFolder [14:07:03]dirname=/storage/ofd_packets [14:07:03]CheckFolder done [14:07:03]ProducePacketName [14:07:03]name=ofd_packets/00148853 [14:07:03]NVStorageSaveData ofd_packets/00148853 [14:07:03]File name is /storage/ofd_packets/00148853 [14:07:03]Write 301 bytes [14:07:03]NVStorageSaveData done [14:07:03]OFDSenderStorePacket done [14:07:03]KKMCreateOFDPacket done [14:07:03]NVStorageSaveData kkm_last_timestamp [14:07:03]File name is /storage/kkm_last_timestamp [14:07:03]Write 4 bytes [14:07:03]NVStorageSaveData done [14:07:03]ExternCall_PrintAddStr [14:07:03]wPrintStart [14:07:03]Write to MH i2c: 01 00 00 09 0D 16 [14:07:03]Write i2c OK [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: 01 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: 01 07 00 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: 01 07 00 09 0D 00 00 00 00 00 FF 0F 2B [14:07:03]RasterBufferAndPrint [14:07:03]line Счет N : (1)979781 [14:07:03]line ИНН: 02508201610067 [14:07:03]line Контрольно-Кассовый Чек [14:07:03]line ПРОДАЖА [14:07:03]line ТРК (МРК, ГНК) : 22 [14:07:03]line Товар: 2710124130 [14:07:03]line Аи-92-К-5 [14:07:03]line 2.990 * 66.90 [14:07:03]line = 200.03 [14:07:03]line НДС 12% НСП 1% [14:07:03]line > о реализуемом товаре [14:07:03]line ОКРУГЛЕНИЕ: -0.03 [14:07:03]line ИТОГО: 200.00 [14:07:03]line Внесено: 200.00 [14:07:03]line СДАЧА: 0.00 [14:07:03]line НСП 1% : 1.77 [14:07:03]line НДС 12% : 21.24 [14:07:03]line Наличными: 200.00 [14:07:03]line Безнал.: 0.00 [14:07:03]line Место: АЗС № 68 "Партнер Нефть" [14:07:03]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:07:03]line СНО: Общий режим [14:07:03]line Чек 192 04.06.2024 14:07 [14:07:03]line Смена: 368 ФФД: 1.0 [14:07:03]line ЗНМ: 0300000035 [14:07:03]line РНМ: 0000000000092720 [14:07:03]line Версия ККМ: 001 [14:07:03]line ФМ: 0000000000875057 [14:07:03]line ФД: 148853 [14:07:03]line ФПД: 180785122023279 [14:07:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140703&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148853&fm=180785122023279&tin=02508201610067®Number=0000000000092720&sum=20000 [14:07:04]OFD Sender: Processing packet 148853 [packets to send 100, broken 99] [14:07:04]ProducePacketName [14:07:04]name=ofd_packets/00148853 [14:07:04]OFD Sender: To server: pG, [14:07:04]CommunicateWithHost lk.salyk.kg:30040 [14:07:04]ConnectInit lk.salyk.kg [14:07:04]written 0, free lines is 4095 [14:07:04]Connected sock=10 [14:07:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A9 DC 07 01 A1 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 00 00 00 F4 03 04 00 87 1F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 75 45 02 00 35 04 06 00 A4 6C 50 FA 97 6F 00 1F 9C 1E 4E 7B 2E B9 [14:07:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 44 83 47 00 26 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 75 45 02 00 F4 03 04 00 AA C6 5E 66 B6 04 01 00 00 BA 33 55 AE 21 2D BF F6 [14:07:04]CommunicateWithHost err = 0 [14:07:04]CheckOFDResponse [14:07:04]1017 (14) - 77093643461234 [14:07:04]1041 (16) - 0000000000875057 [14:07:04]1040 (4) - 148853 [14:07:04]1012 (4) - 04.06.2024 07:47 [14:07:04]1206 (1) - 0 [14:07:04]OFD Sender: Remove packet 148853 [14:07:04]ProducePacketName [14:07:04]name=ofd_packets/00148853 [14:07:04]NVStorageDeleteData [14:07:04]Write to MH i2c: 01 00 00 34 0D 41 [14:07:04]Write i2c OK [14:07:04]MH_I2C_Read... [14:07:04]Read from MH i2c: 01 [14:07:04]MH_I2C_Read... [14:07:04]Read from MH i2c: 01 07 00 [14:07:04]MH_I2C_Read... [14:07:04]Read from MH i2c: 01 07 00 34 0D 00 00 00 00 00 6B 0C BF [14:07:04]RasterBufferAndPrint [14:07:04]line [14:07:04]line [14:07:04]line [14:07:04]line [14:07:04]line [14:07:04]written 0, free lines is 3182 [14:07:04]MH_Cut [14:07:04]Write to MH i2c: D1 01 00 3B 0D 01 1A [14:07:04]Write i2c OK [14:07:04]MH_I2C_Read... [14:07:04]Read from MH i2c: D1 [14:07:04]MH_I2C_Read... [14:07:04]Read from MH i2c: D1 01 00 [14:07:04]MH_I2C_Read... [14:07:04]Read from MH i2c: D1 01 00 3B 0D 00 19 [14:07:04]Write to MH i2c: 01 00 00 3C 0D 49 [14:07:04]Write i2c OK [14:07:04]MH_I2C_Read... [14:07:04]OFD Sender: No OFD packet to send [14:07:05]*** Cut start [14:07:05]*** Partial cut [14:07:05]*** CUTSNS_PIN = 1 [14:07:05]*** CUTSNS_PIN = 0 [14:07:06]*** Brake cut motor [14:07:06]Read from MH i2c: 01 [14:07:06]MH_I2C_Read... [14:07:06]*** Stop cut motor [14:07:06]*** Cut end [14:07:06]Read from MH i2c: 01 07 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: 01 07 00 3C 0D 00 00 00 00 00 FF 0F 5E [14:07:06]process_action close_receipt done [14:07:06]requested_data is exist [14:07:06]produce_requested_data [14:07:06]requested_item fm.sn is exist - process it [14:07:06]wFMCommunicate request_size=4 [14:07:06]MH_SAM_APDU [14:07:06]CAPDU: 80 11 00 00 [14:07:06]Write to MH i2c: E2 08 00 3D 0D 80 11 00 00 00 00 00 00 C4 [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:06]Read from MH i2c: E2 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 17 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 17 00 3D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 17 [14:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:07:06]wFMCommunicate OK [14:07:06]requested_item fd.num is exist - process it [14:07:06]SAM_PROTO_GetFieldsCounters [14:07:06]wFMCommunicate request_size=4 [14:07:06]MH_SAM_APDU [14:07:06]CAPDU: 80 13 00 00 [14:07:06]Write to MH i2c: E2 08 00 3E 0D 80 13 00 00 00 00 00 00 C7 [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:06]Read from MH i2c: E2 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 62 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 62 00 3E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 75 45 02 00 0E 04 04 00 70 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 50 [14:07:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 75 45 02 00 0E 04 04 00 70 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 [14:07:06]wFMCommunicate OK [14:07:06]SAM_PROTO_GetFieldsCounters done [14:07:06]requested_item shift.num is exist - process it [14:07:06]requested_item shift.opened is exist - process it [14:07:06]req_shift_opened [14:07:06]FM_GetShiftState [14:07:06]SAM_PROTO_GetShiftState [14:07:06]wFMCommunicate request_size=4 [14:07:06]MH_SAM_APDU [14:07:06]CAPDU: 80 13 01 00 [14:07:06]Write to MH i2c: E2 08 00 3F 0D 80 13 01 00 00 00 00 00 C9 [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:06]Read from MH i2c: E2 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 0E 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 0E 00 3F 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8C [14:07:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:07:06]wFMCommunicate OK [14:07:06]SAM_PROTO_GetShiftState done [14:07:06]FM_GetShiftState done [14:07:06]req_shift_opened done [14:07:06]requested_item shift.open_date is exist - process it [14:07:06]req_shift_open_date [14:07:06]req_shift_open_date done [14:07:06]produce_requested_data done [14:07:06]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148853,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:07:06]process_action_free close_receipt [14:07:06]json_value_free [14:07:06]json_value_free done [14:07:06]process_json_proto returns [14:07:06]Send response to host [14:07:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148853,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:07:06]free response buf [14:07:06]execute_script done [14:07:06]execute_script returns [14:07:06]free content buf [14:07:06]Sock 7.Close socket [14:07:06]Sock 7.Thread stoped [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:46]accept exits with 9 [14:09:46]New connection [14:09:46]New thread 3067407716 created [14:09:46]Thread 3067264356 joined [14:09:46]Waiting for new connection... [14:09:46] Sock 9.Parse request [14:09:46]Sock 9.Check first char [14:09:46]Sock 9.First char is OK [14:09:46]request: POST /json_proto HTTP/1.0 [14:09:46]Method: POST [14:09:46]URL: /json_proto [14:09:46]Method is POST - this is cgi request [14:09:46]url: /json_proto [14:09:46]query_string will be loaded in cgi processing [14:09:46]execute_cgi json_proto POST (null) [14:09:46]execute_cgi path=json_proto method=POST [14:09:46]POST find Content-Length [14:09:46]Host: 172.17.38.4:8080 [14:09:46]Content-Length: 677 [14:09:46]Content-Type: application/json [14:09:46] [14:09:46]POST finish read [14:09:46]Found Content-Length = 677 [14:09:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:46]execute_script... [14:09: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)979782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:46]POST & json_proto [14:09:46]process_json_proto [14:09:46]json parsed OK: [14:09:46]protocol is kg_v1.0 [14:09:46]action value=close_receipt [14:09:46]process_action close_receipt [14:09:46]cmd_close_receipt [14:09:46]MH_GetDate [14:09:46]Write to MH i2c: F0 00 00 40 0D 3C [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: F0 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: F0 09 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: F0 09 00 40 0D 00 2B 20 5F 66 CC 51 87 64 5D [14:09:46]GetLastDocTimeStamp 1717510023 [14:09:46]current date 1717510187 [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 41 0D 80 13 01 00 00 00 00 00 CB [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 41 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8E [14:09:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:09:46]wFMCommunicate OK [14:09:46]SAM_PROTO_GetShiftState done [14:09:46]FM_GetShiftState done [14:09:46]opened in 1717460629 [14:09:46]opened+sec_in_day 1717547029 [14:09:46]quantity*price = 60009 [14:09:46]sum+1 = 60010 [14:09:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 193 04.06.2024 14:09 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148854 ФПД: 166811507254926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140947&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148854&fm=166811507254926&tin=02508201610067®Number=0000000000092720&sum=60000 [14:09:47]StoreToDocumentArchive [14:09:47]shift 368 fd 148854 [14:09:47]save to /storage/0368/doc_00148854 [14:09:47]save last doc name /storage/0368/doc_00148854 to /storage/kkm_last_doc_name [14:09:47]save OK [14:09:47]Clear old archive folders... [14:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:47]tlvbuf is 0047F580 [14:09:47]SAM_PROTO_ClearQueue [14:09:47]wFMCommunicate request_size=4 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 09 00 00 [14:09:47]Write to MH i2c: E2 08 00 4E 0D 80 09 00 00 00 00 00 00 CD [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:47]Read from MH i2c: E2 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 03 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 03 00 4E 0D 00 90 00 CF [14:09:47]RAPDU: 90 00 [14:09:47]wFMCommunicate OK [14:09:47]SAM_PROTO_ClearQueue done [14:09:47]KKMCreateOFDPacket [14:09:47]OFDProtocolAddRootSTLVToBuf [14:09:47]FM_MakeSignedData [14:09:47]FM_MakeSignedData [14:09:47]SAM_PROTO_SignData [14:09:47]wFMCommunicate request_size=4 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 0D 01 02 [14:09:47]Write to MH i2c: E2 08 00 4F 0D 80 0D 01 02 00 00 00 00 D5 [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:47]Read from MH i2c: E2 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 03 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 03 00 4F 0D 00 90 00 D0 [14:09:47]RAPDU: 90 00 [14:09:47]wFMCommunicate OK [14:09:47]wFMCommunicate request_size=255 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C1 00 00 00 F4 03 04 00 2B 20 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 76 45 02 00 35 04 06 00 97 [14:09:47]Write to MH i2c: E2 02 01 50 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 2B 20 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 76 45 02 00 35 04 06 00 97 00 00 D2 [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:47]Read from MH i2c: E2 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 03 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 03 00 50 0D 00 90 00 D1 [14:09:47]RAPDU: 90 00 [14:09:47]wFMCommunicate OK [14:09:47]wFMCommunicate request_size=10 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 0D 02 02 05 B6 D4 A2 66 8E [14:09:47]Write to MH i2c: E2 0D 00 51 0D 80 0D 02 02 05 00 B6 D4 A2 66 8E 00 00 02 [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:47]Read from MH i2c: E2 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 03 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 03 00 51 0D 00 90 00 D2 [14:09:47]RAPDU: 90 00 [14:09:47]wFMCommunicate OK [14:09:47]wFMCommunicate request_size=4 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 0D 03 02 [14:09:47]Write to MH i2c: E2 08 00 52 0D 80 0D 03 02 00 00 00 00 DA [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:47]Read from MH i2c: E2 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 0B 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 0B 00 52 0D 00 32 AB 3D 33 5A 38 25 AD 90 00 8C [14:09:47]RAPDU: 32 AB 3D 33 5A 38 25 AD 90 00 [14:09:47]wFMCommunicate OK [14:09:47]SAM_PROTO_SignData done [14:09:47]FM_MakeSignedData done [14:09:47]CreateOFDProtocolMessage [14:09:47]wFMCommunicate request_size=4 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 11 00 00 [14:09:47]Write to MH i2c: E2 08 00 53 0D 80 11 00 00 00 00 00 00 DA [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 17 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 17 00 53 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2D [14:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:09:48]wFMCommunicate OK [14:09:48]CreateOFDProtocolMessage done [14:09:48]OFDSenderStorePacket 148854 [14:09:48]StoreOFDPacket docnum=148854 [14:09:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AB 7B 07 01 26 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C1 00 00 00 F4 03 04 00 2B 20 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 76 45 02 00 35 04 06 00 97 B6 D4 A2 66 8E 32 AB 3D 33 5A 38 25 AD [14:09:48]CheckFolder [14:09:48]dirname=/storage/ofd_packets [14:09:48]CheckFolder done [14:09:48]ProducePacketName [14:09:48]name=ofd_packets/00148854 [14:09:48]NVStorageSaveData ofd_packets/00148854 [14:09:48]File name is /storage/ofd_packets/00148854 [14:09:48]Write 301 bytes [14:09:48]NVStorageSaveData done [14:09:48]OFDSenderStorePacket done [14:09:48]KKMCreateOFDPacket done [14:09:48]NVStorageSaveData kkm_last_timestamp [14:09:48]File name is /storage/kkm_last_timestamp [14:09:48]Write 4 bytes [14:09:48]NVStorageSaveData done [14:09:48]ExternCall_PrintAddStr [14:09:48]wPrintStart [14:09:48]Write to MH i2c: 01 00 00 54 0D 61 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: 01 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: 01 07 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: 01 07 00 54 0D 00 00 00 00 00 FF 0F 76 [14:09:48]RasterBufferAndPrint [14:09:48]line Счет N : (1)979782 [14:09:48]line ИНН: 02508201610067 [14:09:48]line Контрольно-Кассовый Чек [14:09:48]line ПРОДАЖА [14:09:48]line ТРК (МРК, ГНК) : 41 [14:09:48]line Товар: 2710124130 [14:09:48]line Аи-92-К-5 [14:09:48]line 8.970 * 66.90 [14:09:48]line = 600.09 [14:09:48]line НДС 12% НСП 1% [14:09:48]line > о реализуемом товаре [14:09:48]line ОКРУГЛЕНИЕ: -0.09 [14:09:48]line ИТОГО: 600.00 [14:09:48]line Внесено: 600.00 [14:09:48]line СДАЧА: 0.00 [14:09:48]line НСП 1% : 5.31 [14:09:48]line НДС 12% : 63.73 [14:09:48]line Наличными: 600.00 [14:09:48]line Безнал.: 0.00 [14:09:48]line Место: АЗС № 68 "Партнер Нефть" [14:09:48]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:09:48]line СНО: Общий режим [14:09:48]line Чек 193 04.06.2024 14:09 [14:09:48]line Смена: 368 ФФД: 1.0 [14:09:48]line ЗНМ: 0300000035 [14:09:48]line РНМ: 0000000000092720 [14:09:48]line Версия ККМ: 001 [14:09:48]line ФМ: 0000000000875057 [14:09:48]line ФД: 148854 [14:09:48]line ФПД: 166811507254926 [14:09:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T140947&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148854&fm=166811507254926&tin=02508201610067®Number=0000000000092720&sum=60000 [14:09:48]OFD Sender: Processing packet 148854 [packets to send 100, broken 99] [14:09:48]ProducePacketName [14:09:48]name=ofd_packets/00148854 [14:09:48]OFD Sender: To server: pG, [14:09:48]CommunicateWithHost lk.salyk.kg:30040 [14:09:48]ConnectInit lk.salyk.kg [14:09:48]written 0, free lines is 4095 [14:09:48]Connected sock=10 [14:09:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AB 7B 07 01 26 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C1 00 00 00 F4 03 04 00 2B 20 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 76 45 02 00 35 04 06 00 97 B6 D4 A2 66 8E 32 AB 3D 33 5A 38 25 AD [14:09:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B3 30 47 00 90 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 38 37 35 30 35 37 10 04 04 00 76 45 02 00 F4 03 04 00 4F C7 5E 66 B6 04 01 00 00 6D 0C 80 96 99 DA BA 18 [14:09:48]CommunicateWithHost err = 0 [14:09:48]CheckOFDResponse [14:09:48]1017 (14) - 77093643461234 [14:09:48]1041 (16) - 0000000000875057 [14:09:48]1040 (4) - 148854 [14:09:48]1012 (4) - 04.06.2024 07:50 [14:09:48]1206 (1) - 0 [14:09:48]OFD Sender: Remove packet 148854 [14:09:48]ProducePacketName [14:09:48]name=ofd_packets/00148854 [14:09:48]NVStorageDeleteData [14:09:48]Write to MH i2c: 01 00 00 7F 0D 8C [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: 01 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: 01 07 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: 01 07 00 7F 0D 00 00 00 00 00 64 0C 03 [14:09:48]RasterBufferAndPrint [14:09:48]line [14:09:48]line [14:09:48]line [14:09:48]line [14:09:48]line [14:09:48]written 0, free lines is 3177 [14:09:48]MH_Cut [14:09:48]Write to MH i2c: D1 01 00 86 0D 01 65 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: D1 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: D1 01 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: D1 01 00 86 0D 00 64 [14:09:48]Write to MH i2c: 01 00 00 87 0D 94 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:49]OFD Sender: No OFD packet to send [14:09:50]*** Cut start [14:09:50]*** Partial cut [14:09:50]*** CUTSNS_PIN = 1 [14:09:50]*** CUTSNS_PIN = 0 [14:09:50]*** Brake cut motor [14:09:50]Read from MH i2c: 01 [14:09:50]MH_I2C_Read... [14:09:50]*** Stop cut motor [14:09:50]*** Cut end [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 87 0D 00 00 00 00 00 FF 0F A9 [14:09:50]process_action close_receipt done [14:09:50]requested_data is exist [14:09:50]produce_requested_data [14:09:50]requested_item fm.sn is exist - process it [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 88 0D 80 11 00 00 00 00 00 00 0F [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [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 88 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 62 [14:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:09:50]wFMCommunicate OK [14:09:50]requested_item fd.num is exist - process it [14:09:50]SAM_PROTO_GetFieldsCounters [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 13 00 00 [14:09:50]Write to MH i2c: E2 08 00 89 0D 80 13 00 00 00 00 00 00 12 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 62 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 62 00 89 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 76 45 02 00 0E 04 04 00 70 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 9F [14:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 76 45 02 00 0E 04 04 00 70 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 [14:09:50]wFMCommunicate OK [14:09:50]SAM_PROTO_GetFieldsCounters done [14:09:50]requested_item shift.num is exist - process it [14:09:50]requested_item shift.opened is exist - process it [14:09:50]req_shift_opened [14:09:50]FM_GetShiftState [14:09:50]SAM_PROTO_GetShiftState [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 13 01 00 [14:09:50]Write to MH i2c: E2 08 00 8A 0D 80 13 01 00 00 00 00 00 14 [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 13 01 00... Resp OK rsp.len_out = 11! [14:09:50]Read from MH i2c: E2 0E 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 0E 00 8A 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D7 [14:09:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:09:50]wFMCommunicate OK [14:09:50]SAM_PROTO_GetShiftState done [14:09:50]FM_GetShiftState done [14:09:50]req_shift_opened done [14:09:50]requested_item shift.open_date is exist - process it [14:09:50]req_shift_open_date [14:09:50]req_shift_open_date done [14:09:50]produce_requested_data done [14:09:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148854,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:09:50]process_action_free close_receipt [14:09:50]json_value_free [14:09:50]json_value_free done [14:09:50]process_json_proto returns [14:09:50]Send response to host [14:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148854,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:09:50]free response buf [14:09:50]execute_script done [14:09:50]execute_script returns [14:09:50]free content buf [14:09:50]Sock 9.Close socket [14:09:50]Sock 9.Thread stoped [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:39]accept exits with 7 [14:10:39]New connection [14:10:39]New thread 3067264356 created [14:10:39]Thread 3067407716 joined [14:10:39]Waiting for new connection... [14:10:39] Sock 7.Parse request [14:10:39]Sock 7.Check first char [14:10:39]Sock 7.First char is OK [14:10:39]request: POST /json_proto HTTP/1.0 [14:10:39]Method: POST [14:10:39]URL: /json_proto [14:10:39]Method is POST - this is cgi request [14:10:39]url: /json_proto [14:10:39]query_string will be loaded in cgi processing [14:10:39]execute_cgi json_proto POST (null) [14:10:39]execute_cgi path=json_proto method=POST [14:10:39]POST find Content-Length [14:10:39]Host: 172.17.38.4:8080 [14:10:39]Content-Length: 677 [14:10:39]Content-Type: application/json [14:10:39] [14:10:39]POST finish read [14:10:39]Found Content-Length = 677 [14:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:39]execute_script... [14:10: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)979783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:39]POST & json_proto [14:10:39]process_json_proto [14:10:39]json parsed OK: [14:10:39]protocol is kg_v1.0 [14:10:39]action value=close_receipt [14:10:39]process_action close_receipt [14:10:39]cmd_close_receipt [14:10:39]MH_GetDate [14:10:39]Write to MH i2c: F0 00 00 8B 0D 87 [14:10:39]Write i2c OK [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: F0 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: F0 09 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: F0 09 00 8B 0D 00 61 20 5F 66 CC 51 87 64 DE [14:10:39]GetLastDocTimeStamp 1717510187 [14:10:39]current date 1717510241 [14:10:39]FM_GetShiftState [14:10:39]SAM_PROTO_GetShiftState [14:10:39]wFMCommunicate request_size=4 [14:10:39]MH_SAM_APDU [14:10:39]CAPDU: 80 13 01 00 [14:10:39]Write to MH i2c: E2 08 00 8C 0D 80 13 01 00 00 00 00 00 16 [14:10:39]Write i2c OK [14:10:39]MH_I2C_Read... [14:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:39]Read from MH i2c: E2 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 0E 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 0E 00 8C 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D9 [14:10:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:10:39]wFMCommunicate OK [14:10:39]SAM_PROTO_GetShiftState done [14:10:39]FM_GetShiftState done [14:10:39]opened in 1717460629 [14:10:39]opened+sec_in_day 1717547029 [14:10:39]quantity*price = 50041 [14:10:39]sum+1 = 50042 [14:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 194 04.06.2024 14:10 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148855 ФПД: 172364779422535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141041&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148855&fm=172364779422535&tin=02508201610067®Number=0000000000092720&sum=50000 [14:10:41]StoreToDocumentArchive [14:10:41]shift 368 fd 148855 [14:10:41]save to /storage/0368/doc_00148855 [14:10:41]save last doc name /storage/0368/doc_00148855 to /storage/kkm_last_doc_name [14:10:41]save OK [14:10:41]Clear old archive folders... [14:10:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:41]tlvbuf is 004836B0 [14:10:41]SAM_PROTO_ClearQueue [14:10:41]wFMCommunicate request_size=4 [14:10:41]MH_SAM_APDU [14:10:41]CAPDU: 80 09 00 00 [14:10:41]Write to MH i2c: E2 08 00 99 0D 80 09 00 00 00 00 00 00 18 [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:41]Read from MH i2c: E2 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 03 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 03 00 99 0D 00 90 00 1A [14:10:41]RAPDU: 90 00 [14:10:41]wFMCommunicate OK [14:10:41]SAM_PROTO_ClearQueue done [14:10:41]KKMCreateOFDPacket [14:10:41]OFDProtocolAddRootSTLVToBuf [14:10:41]FM_MakeSignedData [14:10:41]FM_MakeSignedData [14:10:41]SAM_PROTO_SignData [14:10:41]wFMCommunicate request_size=4 [14:10:41]MH_SAM_APDU [14:10:41]CAPDU: 80 0D 01 02 [14:10:41]Write to MH i2c: E2 08 00 9A 0D 80 0D 01 02 00 00 00 00 20 [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:41]Read from MH i2c: E2 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 03 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 03 00 9A 0D 00 90 00 1B [14:10:41]RAPDU: 90 00 [14:10:41]wFMCommunicate OK [14:10:41]wFMCommunicate request_size=255 [14:10:41]MH_SAM_APDU [14:10:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 61 20 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 77 45 02 00 35 04 06 00 9C [14:10:41]Write to MH i2c: E2 02 01 9B 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 61 20 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 77 45 02 00 35 04 06 00 9C 00 00 7D [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:41]Read from MH i2c: E2 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 03 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [14:10:41]RAPDU: 90 00 [14:10:41]wFMCommunicate OK [14:10:41]wFMCommunicate request_size=10 [14:10:41]MH_SAM_APDU [14:10:41]CAPDU: 80 0D 02 02 05 C3 CD 73 03 47 [14:10:41]Write to MH i2c: E2 0D 00 9C 0D 80 0D 02 02 05 00 C3 CD 73 03 47 00 00 7A [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:41]Read from MH i2c: E2 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 03 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [14:10:41]RAPDU: 90 00 [14:10:41]wFMCommunicate OK [14:10:41]wFMCommunicate request_size=4 [14:10:41]MH_SAM_APDU [14:10:41]CAPDU: 80 0D 03 02 [14:10:41]Write to MH i2c: E2 08 00 9D 0D 80 0D 03 02 00 00 00 00 25 [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:41]Read from MH i2c: E2 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 0B 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 0B 00 9D 0D 00 B9 38 40 E4 BA 95 4F FD 90 00 D6 [14:10:41]RAPDU: B9 38 40 E4 BA 95 4F FD 90 00 [14:10:41]wFMCommunicate OK [14:10:41]SAM_PROTO_SignData done [14:10:41]FM_MakeSignedData done [14:10:41]CreateOFDProtocolMessage [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 9E 0D 80 11 00 00 00 00 00 00 25 [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 9E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 78 [14:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:10:41]wFMCommunicate OK [14:10:41]CreateOFDProtocolMessage done [14:10:41]OFDSenderStorePacket 148855 [14:10:41]StoreOFDPacket docnum=148855 [14:10:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F6 83 07 01 BB 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 61 20 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 77 45 02 00 35 04 06 00 9C C3 CD 73 03 47 B9 38 40 E4 BA 95 4F FD [14:10:41]CheckFolder [14:10:41]dirname=/storage/ofd_packets [14:10:41]CheckFolder done [14:10:41]ProducePacketName [14:10:41]name=ofd_packets/00148855 [14:10:41]NVStorageSaveData ofd_packets/00148855 [14:10:41]File name is /storage/ofd_packets/00148855 [14:10:41]Write 301 bytes [14:10:41]NVStorageSaveData done [14:10:41]OFDSenderStorePacket done [14:10:41]KKMCreateOFDPacket done [14:10:41]NVStorageSaveData kkm_last_timestamp [14:10:41]File name is /storage/kkm_last_timestamp [14:10:41]Write 4 bytes [14:10:41]NVStorageSaveData done [14:10:41]ExternCall_PrintAddStr [14:10:41]wPrintStart [14:10:41]Write to MH i2c: 01 00 00 9F 0D AC [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: 01 [14:10:41]MH_I2C_Read... [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 9F 0D 00 00 00 00 00 FF 0F C1 [14:10:41]RasterBufferAndPrint [14:10:41]line Счет N : (1)979783 [14:10:41]line ИНН: 02508201610067 [14:10:41]line Контрольно-Кассовый Чек [14:10:41]line ПРОДАЖА [14:10:41]line ТРК (МРК, ГНК) : 31 [14:10:41]line Товар: 2710124130 [14:10:41]line Аи-92-К-5 [14:10:41]line 7.480 * 66.90 [14:10:41]line = 500.41 [14:10:41]line НДС 12% НСП 1% [14:10:41]line > о реализуемом товаре [14:10:41]line ОКРУГЛЕНИЕ: -0.41 [14:10:41]line ИТОГО: 500.00 [14:10:41]line Внесено: 500.00 [14:10:41]line СДАЧА: 0.00 [14:10:41]line НСП 1% : 4.43 [14:10:41]line НДС 12% : 53.14 [14:10:41]line Наличными: 500.00 [14:10:41]line Безнал.: 0.00 [14:10:41]line Место: АЗС № 68 "Партнер Нефть" [14:10:41]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:10:41]line СНО: Общий режим [14:10:41]line Чек 194 04.06.2024 14:10 [14:10:41]line Смена: 368 ФФД: 1.0 [14:10:41]line ЗНМ: 0300000035 [14:10:41]line РНМ: 0000000000092720 [14:10:41]line Версия ККМ: 001 [14:10:41]line ФМ: 0000000000875057 [14:10:41]line ФД: 148855 [14:10:41]line ФПД: 172364779422535 [14:10:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141041&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148855&fm=172364779422535&tin=02508201610067®Number=0000000000092720&sum=50000 [14:10:41]OFD Sender: Processing packet 148855 [packets to send 100, broken 99] [14:10:41]ProducePacketName [14:10:41]name=ofd_packets/00148855 [14:10:41]OFD Sender: To server: pG, [14:10:41]CommunicateWithHost lk.salyk.kg:30040 [14:10:41]ConnectInit lk.salyk.kg [14:10:41]written 0, free lines is 4095 [14:10:42]Connected sock=10 [14:10:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F6 83 07 01 BB 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 61 20 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 77 45 02 00 35 04 06 00 9C C3 CD 73 03 47 B9 38 40 E4 BA 95 4F FD [14:10:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B5 6A 47 00 D9 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 77 45 02 00 F4 03 04 00 84 C7 5E 66 B6 04 01 00 00 68 6D AB 39 CC A9 39 CD [14:10:42]CommunicateWithHost err = 0 [14:10:42]CheckOFDResponse [14:10:42]1017 (14) - 77093643461234 [14:10:42]1041 (16) - 0000000000875057 [14:10:42]1040 (4) - 148855 [14:10:42]1012 (4) - 04.06.2024 07:51 [14:10:42]1206 (1) - 0 [14:10:42]OFD Sender: Remove packet 148855 [14:10:42]ProducePacketName [14:10:42]name=ofd_packets/00148855 [14:10:42]NVStorageDeleteData [14:10:42]Write to MH i2c: 01 00 00 CA 0D D7 [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: 01 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: 01 07 00 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: 01 07 00 CA 0D 00 00 00 00 00 6C 0C 56 [14:10:42]RasterBufferAndPrint [14:10:42]line [14:10:42]line [14:10:42]line [14:10:42]line [14:10:42]line [14:10:42]written 0, free lines is 3183 [14:10:42]MH_Cut [14:10:42]Write to MH i2c: D1 01 00 D1 0D 01 B0 [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: D1 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: D1 01 00 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: D1 01 00 D1 0D 00 AF [14:10:42]Write to MH i2c: 01 00 00 D2 0D DF [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]OFD Sender: No OFD packet to send [14:10:43]*** Cut start [14:10:43]*** Partial cut [14:10:43]*** CUTSNS_PIN = 1 [14:10:43]*** CUTSNS_PIN = 0 [14:10:43]*** Brake cut motor [14:10:44]Read from MH i2c: 01 [14:10:44]MH_I2C_Read... [14:10:44]*** Stop cut motor [14:10:44]*** Cut end [14:10:44]Read from MH i2c: 01 07 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: 01 07 00 D2 0D 00 00 00 00 00 FF 0F F4 [14:10:44]process_action close_receipt done [14:10:44]requested_data is exist [14:10:44]produce_requested_data [14:10:44]requested_item fm.sn is exist - process it [14:10:44]wFMCommunicate request_size=4 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 11 00 00 [14:10:44]Write to MH i2c: E2 08 00 D3 0D 80 11 00 00 00 00 00 00 5A [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:44]Read from MH i2c: E2 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 17 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 17 00 D3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AD [14:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:10:44]wFMCommunicate OK [14:10:44]requested_item fd.num is exist - process it [14:10:44]SAM_PROTO_GetFieldsCounters [14:10:44]wFMCommunicate request_size=4 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 13 00 00 [14:10:44]Write to MH i2c: E2 08 00 D4 0D 80 13 00 00 00 00 00 00 5D [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:44]Read from MH i2c: E2 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 62 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 62 00 D4 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 77 45 02 00 0E 04 04 00 70 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 EE [14:10:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 77 45 02 00 0E 04 04 00 70 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 [14:10:44]wFMCommunicate OK [14:10:44]SAM_PROTO_GetFieldsCounters done [14:10:44]requested_item shift.num is exist - process it [14:10:44]requested_item shift.opened is exist - process it [14:10:44]req_shift_opened [14:10:44]FM_GetShiftState [14:10:44]SAM_PROTO_GetShiftState [14:10:44]wFMCommunicate request_size=4 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 13 01 00 [14:10:44]Write to MH i2c: E2 08 00 D5 0D 80 13 01 00 00 00 00 00 5F [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:44]Read from MH i2c: E2 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 0E 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 0E 00 D5 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 22 [14:10:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:10:44]wFMCommunicate OK [14:10:44]SAM_PROTO_GetShiftState done [14:10:44]FM_GetShiftState done [14:10:44]req_shift_opened done [14:10:44]requested_item shift.open_date is exist - process it [14:10:44]req_shift_open_date [14:10:44]req_shift_open_date done [14:10:44]produce_requested_data done [14:10:44]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148855,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:10:44]process_action_free close_receipt [14:10:44]json_value_free [14:10:44]json_value_free done [14:10:44]process_json_proto returns [14:10:44]Send response to host [14:10:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148855,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:10:44]free response buf [14:10:44]execute_script done [14:10:44]execute_script returns [14:10:44]free content buf [14:10:44]Sock 7.Close socket [14:10:44]Sock 7.Thread stoped [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:29]accept exits with 9 [14:13:29]New connection [14:13:29]New thread 3067407716 created [14:13:29]Thread 3067264356 joined [14:13:29]Waiting for new connection... [14:13:29] Sock 9.Parse request [14:13:29]Sock 9.Check first char [14:13:29]Sock 9.First char is OK [14:13:29]request: POST /json_proto HTTP/1.0 [14:13:29]Method: POST [14:13:29]URL: /json_proto [14:13:29]Method is POST - this is cgi request [14:13:29]url: /json_proto [14:13:29]query_string will be loaded in cgi processing [14:13:29]execute_cgi json_proto POST (null) [14:13:29]execute_cgi path=json_proto method=POST [14:13:29]POST find Content-Length [14:13:29]Host: 172.17.38.4:8080 [14:13:29]Content-Length: 677 [14:13:29]Content-Type: application/json [14:13:29] [14:13:29]POST finish read [14:13:29]Found Content-Length = 677 [14:13:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:29]execute_script... [14:13: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)979784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:29]POST & json_proto [14:13:29]process_json_proto [14:13:29]json parsed OK: [14:13:29]protocol is kg_v1.0 [14:13:29]action value=close_receipt [14:13:29]process_action close_receipt [14:13:29]cmd_close_receipt [14:13:29]MH_GetDate [14:13:29]Write to MH i2c: F0 00 00 D6 0D D2 [14:13:29]Write i2c OK [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: F0 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: F0 09 00 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: F0 09 00 D6 0D 00 0A 21 5F 66 CC 51 87 64 D3 [14:13:29]GetLastDocTimeStamp 1717510241 [14:13:29]current date 1717510410 [14:13:29]FM_GetShiftState [14:13:29]SAM_PROTO_GetShiftState [14:13:29]wFMCommunicate request_size=4 [14:13:29]MH_SAM_APDU [14:13:29]CAPDU: 80 13 01 00 [14:13:29]Write to MH i2c: E2 08 00 D7 0D 80 13 01 00 00 00 00 00 61 [14:13:29]Write i2c OK [14:13:29]MH_I2C_Read... [14:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:29]Read from MH i2c: E2 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 0E 00 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: E2 0E 00 D7 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 24 [14:13:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:13:29]wFMCommunicate OK [14:13:29]SAM_PROTO_GetShiftState done [14:13:29]FM_GetShiftState done [14:13:29]opened in 1717460629 [14:13:29]opened+sec_in_day 1717547029 [14:13:29]quantity*price = 30038 [14:13:29]sum+1 = 30039 [14:13:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 195 04.06.2024 14:13 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148856 ФПД: 128517866884121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141330&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148856&fm=128517866884121&tin=02508201610067®Number=0000000000092720&sum=30000 [14:13:30]StoreToDocumentArchive [14:13:30]shift 368 fd 148856 [14:13:30]save to /storage/0368/doc_00148856 [14:13:30]save last doc name /storage/0368/doc_00148856 to /storage/kkm_last_doc_name [14:13:30]save OK [14:13:30]Clear old archive folders... [14:13:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:30]tlvbuf is 0047FBE0 [14:13:30]SAM_PROTO_ClearQueue [14:13:30]wFMCommunicate request_size=4 [14:13:30]MH_SAM_APDU [14:13:30]CAPDU: 80 09 00 00 [14:13:30]Write to MH i2c: E2 08 00 E4 0D 80 09 00 00 00 00 00 00 63 [14:13:30]Write i2c OK [14:13:30]MH_I2C_Read... [14:13:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:30]Read from MH i2c: E2 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: E2 03 00 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: E2 03 00 E4 0D 00 90 00 65 [14:13:30]RAPDU: 90 00 [14:13:30]wFMCommunicate OK [14:13:30]SAM_PROTO_ClearQueue done [14:13:30]KKMCreateOFDPacket [14:13:30]OFDProtocolAddRootSTLVToBuf [14:13:30]FM_MakeSignedData [14:13:30]FM_MakeSignedData [14:13:30]SAM_PROTO_SignData [14:13:30]wFMCommunicate request_size=4 [14:13:30]MH_SAM_APDU [14:13:30]CAPDU: 80 0D 01 02 [14:13:30]Write to MH i2c: E2 08 00 E5 0D 80 0D 01 02 00 00 00 00 6B [14:13:30]Write i2c OK [14:13:30]MH_I2C_Read... [14:13:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:30]Read from MH i2c: E2 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: E2 03 00 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [14:13:30]RAPDU: 90 00 [14:13:30]wFMCommunicate OK [14:13:30]wFMCommunicate request_size=255 [14:13:30]MH_SAM_APDU [14:13:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C3 00 00 00 F4 03 04 00 0A 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 78 45 02 00 35 04 06 00 74 [14:13:30]Write to MH i2c: E2 02 01 E6 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C3 00 00 00 F4 03 04 00 0A 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 78 45 02 00 35 04 06 00 74 00 00 40 [14:13:30]Write i2c OK [14:13:30]MH_I2C_Read... [14:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:31]Read from MH i2c: E2 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 03 00 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [14:13:31]RAPDU: 90 00 [14:13:31]wFMCommunicate OK [14:13:31]wFMCommunicate request_size=10 [14:13:31]MH_SAM_APDU [14:13:31]CAPDU: 80 0D 02 02 05 E2 E5 CD 8C 19 [14:13:31]Write to MH i2c: E2 0D 00 E7 0D 80 0D 02 02 05 00 E2 E5 CD 8C 19 00 00 B1 [14:13:31]Write i2c OK [14:13:31]MH_I2C_Read... [14:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:31]Read from MH i2c: E2 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 03 00 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [14:13:31]RAPDU: 90 00 [14:13:31]wFMCommunicate OK [14:13:31]wFMCommunicate request_size=4 [14:13:31]MH_SAM_APDU [14:13:31]CAPDU: 80 0D 03 02 [14:13:31]Write to MH i2c: E2 08 00 E8 0D 80 0D 03 02 00 00 00 00 70 [14:13:31]Write i2c OK [14:13:31]MH_I2C_Read... [14:13:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:31]Read from MH i2c: E2 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 0B 00 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 0B 00 E8 0D 00 3E EA 06 64 E9 B8 CE D5 90 00 47 [14:13:31]RAPDU: 3E EA 06 64 E9 B8 CE D5 90 00 [14:13:31]wFMCommunicate OK [14:13:31]SAM_PROTO_SignData done [14:13:31]FM_MakeSignedData done [14:13:31]CreateOFDProtocolMessage [14:13:31]wFMCommunicate request_size=4 [14:13:31]MH_SAM_APDU [14:13:31]CAPDU: 80 11 00 00 [14:13:31]Write to MH i2c: E2 08 00 E9 0D 80 11 00 00 00 00 00 00 70 [14:13:31]Write i2c OK [14:13:31]MH_I2C_Read... [14:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:31]Read from MH i2c: E2 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 17 00 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: E2 17 00 E9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C3 [14:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:13:31]wFMCommunicate OK [14:13:31]CreateOFDProtocolMessage done [14:13:31]OFDSenderStorePacket 148856 [14:13:31]StoreOFDPacket docnum=148856 [14:13:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 44 AB 07 01 EE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0A 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 78 45 02 00 35 04 06 00 74 E2 E5 CD 8C 19 3E EA 06 64 E9 B8 CE D5 [14:13:31]CheckFolder [14:13:31]dirname=/storage/ofd_packets [14:13:31]CheckFolder done [14:13:31]ProducePacketName [14:13:31]name=ofd_packets/00148856 [14:13:31]NVStorageSaveData ofd_packets/00148856 [14:13:31]File name is /storage/ofd_packets/00148856 [14:13:31]Write 301 bytes [14:13:31]NVStorageSaveData done [14:13:31]OFDSenderStorePacket done [14:13:31]KKMCreateOFDPacket done [14:13:31]NVStorageSaveData kkm_last_timestamp [14:13:31]File name is /storage/kkm_last_timestamp [14:13:31]Write 4 bytes [14:13:31]NVStorageSaveData done [14:13:31]OFD Sender: Processing packet 148856 [packets to send 100, broken 99] [14:13:31]ProducePacketName [14:13:31]name=ofd_packets/00148856 [14:13:31]OFD Sender: To server: pG, [14:13:31]CommunicateWithHost lk.salyk.kg:30040 [14:13:31]ConnectInit lk.salyk.kg [14:13:31]ExternCall_PrintAddStr [14:13:31]wPrintStart [14:13:31]Write to MH i2c: 01 00 00 EA 0D F7 [14:13:31]Write i2c OK [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: 01 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: 01 07 00 [14:13:31]MH_I2C_Read... [14:13:31]Read from MH i2c: 01 07 00 EA 0D 00 00 00 00 00 FF 0F 0C [14:13:31]RasterBufferAndPrint [14:13:31]line Счет N : (1)979784 [14:13:31]line ИНН: 02508201610067 [14:13:31]line Контрольно-Кассовый Чек [14:13:31]line ПРОДАЖА [14:13:31]line ТРК (МРК, ГНК) : 41 [14:13:31]line Товар: 2710124130 [14:13:31]line Аи-92-К-5 [14:13:31]line 4.490 * 66.90 [14:13:31]line = 300.38 [14:13:31]line НДС 12% НСП 1% [14:13:31]line > о реализуемом товаре [14:13:31]line ОКРУГЛЕНИЕ: -0.38 [14:13:31]line ИТОГО: 300.00 [14:13:31]line Внесено: 300.00 [14:13:31]line СДАЧА: 0.00 [14:13:31]line НСП 1% : 2.66 [14:13:31]line НДС 12% : 31.90 [14:13:31]line Наличными: 300.00 [14:13:31]line Безнал.: 0.00 [14:13:31]line Место: АЗС № 68 "Партнер Нефть" [14:13:31]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:13:31]line СНО: Общий режим [14:13:31]line Чек 195 04.06.2024 14:13 [14:13:31]line Смена: 368 ФФД: 1.0 [14:13:31]line ЗНМ: 0300000035 [14:13:31]line РНМ: 0000000000092720 [14:13:31]line Версия ККМ: 001 [14:13:31]line ФМ: 0000000000875057 [14:13:31]line ФД: 148856 [14:13:31]line ФПД: 128517866884121 [14:13:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141330&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148856&fm=128517866884121&tin=02508201610067®Number=0000000000092720&sum=30000 [14:13:31]Connected sock=11 [14:13:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 44 AB 07 01 EE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0A 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 78 45 02 00 35 04 06 00 74 E2 E5 CD 8C 19 3E EA 06 64 E9 B8 CE D5 [14:13:31]written 0, free lines is 4095 [14:13:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 6C A1 47 00 5D 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 38 37 35 30 35 37 10 04 04 00 78 45 02 00 F4 03 04 00 2E C8 5E 66 B6 04 01 00 00 63 F1 7D 2D FC 4F EF D5 [14:13:31]CommunicateWithHost err = 0 [14:13:31]CheckOFDResponse [14:13:31]1017 (14) - 77093643461234 [14:13:31]1041 (16) - 0000000000875057 [14:13:31]1040 (4) - 148856 [14:13:31]1012 (4) - 04.06.2024 07:54 [14:13:31]1206 (1) - 0 [14:13:31]OFD Sender: Remove packet 148856 [14:13:31]ProducePacketName [14:13:31]name=ofd_packets/00148856 [14:13:31]NVStorageDeleteData [14:13:32]Write to MH i2c: 01 00 00 15 0E 23 [14:13:32]Write i2c OK [14:13:32]MH_I2C_Read... [14:13:32]Read from MH i2c: 01 [14:13:32]MH_I2C_Read... [14:13:32]Read from MH i2c: 01 07 00 [14:13:32]MH_I2C_Read... [14:13:32]Read from MH i2c: 01 07 00 15 0E 00 00 00 00 00 6B 0C A1 [14:13:32]RasterBufferAndPrint [14:13:32]line [14:13:32]line [14:13:32]line [14:13:32]line [14:13:32]line [14:13:32]written 0, free lines is 3183 [14:13:32]MH_Cut [14:13:32]Write to MH i2c: D1 01 00 1C 0E 01 FC [14:13:32]Write i2c OK [14:13:32]MH_I2C_Read... [14:13:32]Read from MH i2c: D1 [14:13:32]MH_I2C_Read... [14:13:32]Read from MH i2c: D1 01 00 [14:13:32]MH_I2C_Read... [14:13:32]Read from MH i2c: D1 01 00 1C 0E 00 FB [14:13:32]Write to MH i2c: 01 00 00 1D 0E 2B [14:13:32]Write i2c OK [14:13:32]MH_I2C_Read... [14:13:32]OFD Sender: No OFD packet to send [14:13:33]*** Cut start [14:13:33]*** Partial cut [14:13:33]*** CUTSNS_PIN = 1 [14:13:33]*** CUTSNS_PIN = 0 [14:13:33]*** Brake cut motor [14:13:33]Read from MH i2c: 01 [14:13:33]MH_I2C_Read... [14:13:33]*** Stop cut motor [14:13:33]*** Cut end [14:13:33]Read from MH i2c: 01 07 00 [14:13:33]MH_I2C_Read... [14:13:33]Read from MH i2c: 01 07 00 1D 0E 00 00 00 00 00 FF 0F 40 [14:13:33]process_action close_receipt done [14:13:33]requested_data is exist [14:13:33]produce_requested_data [14:13:33]requested_item fm.sn is exist - process it [14:13:33]wFMCommunicate request_size=4 [14:13:33]MH_SAM_APDU [14:13:33]CAPDU: 80 11 00 00 [14:13:33]Write to MH i2c: E2 08 00 1E 0E 80 11 00 00 00 00 00 00 A6 [14:13:33]Write i2c OK [14:13:33]MH_I2C_Read... [14:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:34]Read from MH i2c: E2 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: E2 17 00 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: E2 17 00 1E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F9 [14:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:13:34]wFMCommunicate OK [14:13:34]requested_item fd.num is exist - process it [14:13:34]SAM_PROTO_GetFieldsCounters [14:13:34]wFMCommunicate request_size=4 [14:13:34]MH_SAM_APDU [14:13:34]CAPDU: 80 13 00 00 [14:13:34]Write to MH i2c: E2 08 00 1F 0E 80 13 00 00 00 00 00 00 A9 [14:13:34]Write i2c OK [14:13:34]MH_I2C_Read... [14:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:34]Read from MH i2c: E2 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: E2 62 00 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: E2 62 00 1F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 78 45 02 00 0E 04 04 00 70 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 3E [14:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 78 45 02 00 0E 04 04 00 70 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 [14:13:34]wFMCommunicate OK [14:13:34]SAM_PROTO_GetFieldsCounters done [14:13:34]requested_item shift.num is exist - process it [14:13:34]requested_item shift.opened is exist - process it [14:13:34]req_shift_opened [14:13:34]FM_GetShiftState [14:13:34]SAM_PROTO_GetShiftState [14:13:34]wFMCommunicate request_size=4 [14:13:34]MH_SAM_APDU [14:13:34]CAPDU: 80 13 01 00 [14:13:34]Write to MH i2c: E2 08 00 20 0E 80 13 01 00 00 00 00 00 AB [14:13:34]Write i2c OK [14:13:34]MH_I2C_Read... [14:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:34]Read from MH i2c: E2 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: E2 0E 00 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: E2 0E 00 20 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6E [14:13:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:13:34]wFMCommunicate OK [14:13:34]SAM_PROTO_GetShiftState done [14:13:34]FM_GetShiftState done [14:13:34]req_shift_opened done [14:13:34]requested_item shift.open_date is exist - process it [14:13:34]req_shift_open_date [14:13:34]req_shift_open_date done [14:13:34]produce_requested_data done [14:13:34]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148856,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:13:34]process_action_free close_receipt [14:13:34]json_value_free [14:13:34]json_value_free done [14:13:34]process_json_proto returns [14:13:34]Send response to host [14:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148856,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:13:34]free response buf [14:13:34]execute_script done [14:13:34]execute_script returns [14:13:34]free content buf [14:13:34]Sock 9.Close socket [14:13:34]Sock 9.Thread stoped [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:03]accept exits with 7 [14:14:03]New connection [14:14:03]New thread 3067264356 created [14:14:03]Thread 3067407716 joined [14:14:03]Waiting for new connection... [14:14:03] Sock 7.Parse request [14:14:03]Sock 7.Check first char [14:14:03]Sock 7.First char is OK [14:14:03]request: POST /json_proto HTTP/1.0 [14:14:03]Method: POST [14:14:03]URL: /json_proto [14:14:03]Method is POST - this is cgi request [14:14:03]url: /json_proto [14:14:03]query_string will be loaded in cgi processing [14:14:03]execute_cgi json_proto POST (null) [14:14:03]execute_cgi path=json_proto method=POST [14:14:03]POST find Content-Length [14:14:03]Host: 172.17.38.4:8080 [14:14:03]Content-Length: 677 [14:14:03]Content-Type: application/json [14:14:03] [14:14:03]POST finish read [14:14:03]Found Content-Length = 677 [14:14:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:03]execute_script... [14:14:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:03]POST & json_proto [14:14:03]process_json_proto [14:14:03]json parsed OK: [14:14:03]protocol is kg_v1.0 [14:14:03]action value=close_receipt [14:14:03]process_action close_receipt [14:14:03]cmd_close_receipt [14:14:03]MH_GetDate [14:14:03]Write to MH i2c: F0 00 00 21 0E 1E [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: F0 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: F0 09 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: F0 09 00 21 0E 00 2D 21 5F 66 CC 51 87 64 42 [14:14:03]GetLastDocTimeStamp 1717510410 [14:14:03]current date 1717510445 [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 22 0E 80 13 01 00 00 00 00 00 AD [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:04]Read from MH i2c: E2 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 0E 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 0E 00 22 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 70 [14:14:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:14:04]wFMCommunicate OK [14:14:04]SAM_PROTO_GetShiftState done [14:14:04]FM_GetShiftState done [14:14:04]opened in 1717460629 [14:14:04]opened+sec_in_day 1717547029 [14:14:04]quantity*price = 45023 [14:14:04]sum+1 = 45025 [14:14:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 196 04.06.2024 14:14 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148857 ФПД: 186387992709284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141405&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148857&fm=186387992709284&tin=02508201610067®Number=0000000000092720&sum=45000 [14:14:05]StoreToDocumentArchive [14:14:05]shift 368 fd 148857 [14:14:05]save to /storage/0368/doc_00148857 [14:14:05]save last doc name /storage/0368/doc_00148857 to /storage/kkm_last_doc_name [14:14:05]save OK [14:14:05]Clear old archive folders... [14:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:05]tlvbuf is B6F301D0 [14:14:05]SAM_PROTO_ClearQueue [14:14:05]wFMCommunicate request_size=4 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 09 00 00 [14:14:05]Write to MH i2c: E2 08 00 2F 0E 80 09 00 00 00 00 00 00 AF [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 2F 0E 00 90 00 B1 [14:14:05]RAPDU: 90 00 [14:14:05]wFMCommunicate OK [14:14:05]SAM_PROTO_ClearQueue done [14:14:05]KKMCreateOFDPacket [14:14:05]OFDProtocolAddRootSTLVToBuf [14:14:05]FM_MakeSignedData [14:14:05]FM_MakeSignedData [14:14:05]SAM_PROTO_SignData [14:14:05]wFMCommunicate request_size=4 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 0D 01 02 [14:14:05]Write to MH i2c: E2 08 00 30 0E 80 0D 01 02 00 00 00 00 B7 [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 30 0E 00 90 00 B2 [14:14:05]RAPDU: 90 00 [14:14:05]wFMCommunicate OK [14:14:05]wFMCommunicate request_size=255 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 2D 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 79 45 02 00 35 04 06 00 A9 [14:14:05]Write to MH i2c: E2 02 01 31 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 2D 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 79 45 02 00 35 04 06 00 A9 00 00 D8 [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [14:14:05]RAPDU: 90 00 [14:14:05]wFMCommunicate OK [14:14:05]wFMCommunicate request_size=10 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 0D 02 02 05 84 D6 18 88 A4 [14:14:05]Write to MH i2c: E2 0D 00 32 0E 80 0D 02 02 05 00 84 D6 18 88 A4 00 00 62 [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 03 00 32 0E 00 90 00 B4 [14:14:05]RAPDU: 90 00 [14:14:05]wFMCommunicate OK [14:14:05]wFMCommunicate request_size=4 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 0D 03 02 [14:14:05]Write to MH i2c: E2 08 00 33 0E 80 0D 03 02 00 00 00 00 BC [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 0B 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 0B 00 33 0E 00 57 7C B7 15 5F 36 03 7C 90 00 70 [14:14:05]RAPDU: 57 7C B7 15 5F 36 03 7C 90 00 [14:14:05]wFMCommunicate OK [14:14:05]SAM_PROTO_SignData done [14:14:05]FM_MakeSignedData done [14:14:05]CreateOFDProtocolMessage [14:14:05]wFMCommunicate request_size=4 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 11 00 00 [14:14:05]Write to MH i2c: E2 08 00 34 0E 80 11 00 00 00 00 00 00 BC [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 17 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 17 00 34 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0F [14:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:14:05]wFMCommunicate OK [14:14:05]CreateOFDProtocolMessage done [14:14:05]OFDSenderStorePacket 148857 [14:14:05]StoreOFDPacket docnum=148857 [14:14:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4D 5E 07 01 76 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 2D 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 79 45 02 00 35 04 06 00 A9 84 D6 18 88 A4 57 7C B7 15 5F 36 03 7C [14:14:05]CheckFolder [14:14:05]dirname=/storage/ofd_packets [14:14:05]CheckFolder done [14:14:05]ProducePacketName [14:14:05]name=ofd_packets/00148857 [14:14:05]NVStorageSaveData ofd_packets/00148857 [14:14:05]File name is /storage/ofd_packets/00148857 [14:14:05]Write 301 bytes [14:14:05]NVStorageSaveData done [14:14:05]OFDSenderStorePacket done [14:14:05]KKMCreateOFDPacket done [14:14:05]NVStorageSaveData kkm_last_timestamp [14:14:05]File name is /storage/kkm_last_timestamp [14:14:05]Write 4 bytes [14:14:05]NVStorageSaveData done [14:14:05]ExternCall_PrintAddStr [14:14:05]wPrintStart [14:14:05]Write to MH i2c: 01 00 00 35 0E 43 [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: 01 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: 01 07 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: 01 07 00 35 0E 00 00 00 00 00 FF 0F 58 [14:14:05]RasterBufferAndPrint [14:14:05]line Счет N : (1)979785 [14:14:05]line ИНН: 02508201610067 [14:14:05]line Контрольно-Кассовый Чек [14:14:05]line ПРОДАЖА [14:14:05]line ТРК (МРК, ГНК) : 12 [14:14:05]line Товар: 2710124130 [14:14:05]line Аи-92-К-5 [14:14:05]line 6.730 * 66.90 [14:14:05]line = 450.24 [14:14:05]line НДС 12% НСП 1% [14:14:05]line > о реализуемом товаре [14:14:05]line ОКРУГЛЕНИЕ: -0.24 [14:14:05]line ИТОГО: 450.00 [14:14:05]line Внесено: 450.00 [14:14:05]line СДАЧА: 0.00 [14:14:05]line НСП 1% : 3.98 [14:14:05]line НДС 12% : 47.81 [14:14:05]line Наличными: 450.00 [14:14:05]line Безнал.: 0.00 [14:14:05]line Место: АЗС № 68 "Партнер Нефть" [14:14:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:14:05]line СНО: Общий режим [14:14:05]line Чек 196 04.06.2024 14:14 [14:14:05]line Смена: 368 ФФД: 1.0 [14:14:05]line ЗНМ: 0300000035 [14:14:05]line РНМ: 0000000000092720 [14:14:05]line Версия ККМ: 001 [14:14:05]line ФМ: 0000000000875057 [14:14:05]line ФД: 148857 [14:14:05]line ФПД: 186387992709284 [14:14:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141405&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148857&fm=186387992709284&tin=02508201610067®Number=0000000000092720&sum=45000 [14:14:06]OFD Sender: Processing packet 148857 [packets to send 100, broken 99] [14:14:06]ProducePacketName [14:14:06]name=ofd_packets/00148857 [14:14:06]OFD Sender: To server: pG, [14:14:06]CommunicateWithHost lk.salyk.kg:30040 [14:14:06]ConnectInit lk.salyk.kg [14:14:06]written 0, free lines is 4095 [14:14:06]Connected sock=9 [14:14:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4D 5E 07 01 76 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 2D 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 79 45 02 00 35 04 06 00 A9 84 D6 18 88 A4 57 7C B7 15 5F 36 03 7C [14:14:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A5 0B 47 00 A5 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 38 37 35 30 35 37 10 04 04 00 79 45 02 00 F4 03 04 00 50 C8 5E 66 B6 04 01 00 00 CE 0C D8 D0 F6 EF 9B 96 [14:14:06]CommunicateWithHost err = 0 [14:14:06]CheckOFDResponse [14:14:06]1017 (14) - 77093643461234 [14:14:06]1041 (16) - 0000000000875057 [14:14:06]1040 (4) - 148857 [14:14:06]1012 (4) - 04.06.2024 07:54 [14:14:06]1206 (1) - 0 [14:14:06]OFD Sender: Remove packet 148857 [14:14:06]ProducePacketName [14:14:06]name=ofd_packets/00148857 [14:14:06]NVStorageDeleteData [14:14:06]Write to MH i2c: 01 00 00 60 0E 6E [14:14:06]Write i2c OK [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: 01 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: 01 07 00 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: 01 07 00 60 0E 00 00 00 00 00 6A 0C EB [14:14:06]RasterBufferAndPrint [14:14:06]line [14:14:06]line [14:14:06]line [14:14:06]line [14:14:06]line [14:14:06]written 0, free lines is 3182 [14:14:06]MH_Cut [14:14:06]Write to MH i2c: D1 01 00 67 0E 01 47 [14:14:06]Write i2c OK [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: D1 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: D1 01 00 [14:14:06]MH_I2C_Read... [14:14:06]Read from MH i2c: D1 01 00 67 0E 00 46 [14:14:06]Write to MH i2c: 01 00 00 68 0E 76 [14:14:06]Write i2c OK [14:14:06]MH_I2C_Read... [14:14:06]OFD Sender: No OFD packet to send [14:14:07]*** Cut start [14:14:07]*** Partial cut [14:14:07]*** CUTSNS_PIN = 1 [14:14:07]*** CUTSNS_PIN = 0 [14:14:08]*** Brake cut motor [14:14:08]Read from MH i2c: 01 [14:14:08]MH_I2C_Read... [14:14:08]*** Stop cut motor [14:14:08]*** Cut end [14:14:08]Read from MH i2c: 01 07 00 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: 01 07 00 68 0E 00 00 00 00 00 FF 0F 8B [14:14:08]process_action close_receipt done [14:14:08]requested_data is exist [14:14:08]produce_requested_data [14:14:08]requested_item fm.sn is exist - process it [14:14:08]wFMCommunicate request_size=4 [14:14:08]MH_SAM_APDU [14:14:08]CAPDU: 80 11 00 00 [14:14:08]Write to MH i2c: E2 08 00 69 0E 80 11 00 00 00 00 00 00 F1 [14:14:08]Write i2c OK [14:14:08]MH_I2C_Read... [14:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:08]Read from MH i2c: E2 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 17 00 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 17 00 69 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 44 [14:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:14:08]wFMCommunicate OK [14:14:08]requested_item fd.num is exist - process it [14:14:08]SAM_PROTO_GetFieldsCounters [14:14:08]wFMCommunicate request_size=4 [14:14:08]MH_SAM_APDU [14:14:08]CAPDU: 80 13 00 00 [14:14:08]Write to MH i2c: E2 08 00 6A 0E 80 13 00 00 00 00 00 00 F4 [14:14:08]Write i2c OK [14:14:08]MH_I2C_Read... [14:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:08]Read from MH i2c: E2 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 62 00 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 62 00 6A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 79 45 02 00 0E 04 04 00 70 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 8D [14:14:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 79 45 02 00 0E 04 04 00 70 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 [14:14:08]wFMCommunicate OK [14:14:08]SAM_PROTO_GetFieldsCounters done [14:14:08]requested_item shift.num is exist - process it [14:14:08]requested_item shift.opened is exist - process it [14:14:08]req_shift_opened [14:14:08]FM_GetShiftState [14:14:08]SAM_PROTO_GetShiftState [14:14:08]wFMCommunicate request_size=4 [14:14:08]MH_SAM_APDU [14:14:08]CAPDU: 80 13 01 00 [14:14:08]Write to MH i2c: E2 08 00 6B 0E 80 13 01 00 00 00 00 00 F6 [14:14:08]Write i2c OK [14:14:08]MH_I2C_Read... [14:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:08]Read from MH i2c: E2 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 0E 00 [14:14:08]MH_I2C_Read... [14:14:08]Read from MH i2c: E2 0E 00 6B 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B9 [14:14:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:14:08]wFMCommunicate OK [14:14:08]SAM_PROTO_GetShiftState done [14:14:08]FM_GetShiftState done [14:14:08]req_shift_opened done [14:14:08]requested_item shift.open_date is exist - process it [14:14:08]req_shift_open_date [14:14:08]req_shift_open_date done [14:14:08]produce_requested_data done [14:14:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148857,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:14:08]process_action_free close_receipt [14:14:08]json_value_free [14:14:08]json_value_free done [14:14:08]process_json_proto returns [14:14:08]Send response to host [14:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148857,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:14:08]free response buf [14:14:08]execute_script done [14:14:08]execute_script returns [14:14:08]free content buf [14:14:08]Sock 7.Close socket [14:14:08]Sock 7.Thread stoped [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:39]accept exits with 10 [14:16:39]New connection [14:16:39]New thread 3067407716 created [14:16:39]Thread 3067264356 joined [14:16:39]Waiting for new connection... [14:16:39] Sock 10.Parse request [14:16:39]Sock 10.Check first char [14:16:39]Sock 10.First char is OK [14:16:39]request: POST /json_proto HTTP/1.0 [14:16:39]Method: POST [14:16:39]URL: /json_proto [14:16:39]Method is POST - this is cgi request [14:16:39]url: /json_proto [14:16:39]query_string will be loaded in cgi processing [14:16:39]execute_cgi json_proto POST (null) [14:16:39]execute_cgi path=json_proto method=POST [14:16:39]POST find Content-Length [14:16:39]Host: 172.17.38.4:8080 [14:16:39]Content-Length: 803 [14:16:39]Content-Type: application/json [14:16:39] [14:16:39]POST finish read [14:16:39]Found Content-Length = 803 [14:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [14:16:39]execute_script... [14:16: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)979786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [14:16:39]POST & json_proto [14:16:39]process_json_proto [14:16:39]json parsed OK: [14:16:39]protocol is kg_v1.0 [14:16:39]action value=close_receipt [14:16:39]process_action close_receipt [14:16:39]cmd_close_receipt [14:16:39]MH_GetDate [14:16:39]Write to MH i2c: F0 00 00 6C 0E 69 [14:16:39]Write i2c OK [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: F0 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: F0 09 00 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: F0 09 00 6C 0E 00 C8 21 5F 66 CC 51 87 64 28 [14:16:39]GetLastDocTimeStamp 1717510445 [14:16:39]current date 1717510600 [14:16:39]FM_GetShiftState [14:16:39]SAM_PROTO_GetShiftState [14:16:39]wFMCommunicate request_size=4 [14:16:39]MH_SAM_APDU [14:16:39]CAPDU: 80 13 01 00 [14:16:39]Write to MH i2c: E2 08 00 6D 0E 80 13 01 00 00 00 00 00 F8 [14:16:39]Write i2c OK [14:16:39]MH_I2C_Read... [14:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:39]Read from MH i2c: E2 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: E2 0E 00 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: E2 0E 00 6D 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BB [14:16:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:16:39]wFMCommunicate OK [14:16:39]SAM_PROTO_GetShiftState done [14:16:39]FM_GetShiftState done [14:16:39]opened in 1717460629 [14:16:39]opened+sec_in_day 1717547029 [14:16:39]quantity*price = 100015 [14:16:39]sum+1 = 100017 [14:16:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 197 04.06.2024 14:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148858 ФПД: 215182761982106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141640&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148858&fm=215182761982106&tin=02508201610067®Number=0000000000092720&sum=100016 [14:16:40]StoreToDocumentArchive [14:16:40]shift 368 fd 148858 [14:16:40]save to /storage/0368/doc_00148858 [14:16:40]save last doc name /storage/0368/doc_00148858 to /storage/kkm_last_doc_name [14:16:40]save OK [14:16:40]Clear old archive folders... [14:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:40]tlvbuf is 0047FDF0 [14:16:40]SAM_PROTO_ClearQueue [14:16:40]wFMCommunicate request_size=4 [14:16:40]MH_SAM_APDU [14:16:40]CAPDU: 80 09 00 00 [14:16:40]Write to MH i2c: E2 08 00 7A 0E 80 09 00 00 00 00 00 00 FA [14:16:40]Write i2c OK [14:16:40]MH_I2C_Read... [14:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:40]Read from MH i2c: E2 [14:16:40]MH_I2C_Read... [14:16:40]Read from MH i2c: E2 03 00 [14:16:40]MH_I2C_Read... [14:16:40]Read from MH i2c: E2 03 00 7A 0E 00 90 00 FC [14:16:40]RAPDU: 90 00 [14:16:40]wFMCommunicate OK [14:16:40]SAM_PROTO_ClearQueue done [14:16:40]KKMCreateOFDPacket [14:16:40]OFDProtocolAddRootSTLVToBuf [14:16:40]FM_MakeSignedData [14:16:40]FM_MakeSignedData [14:16:40]SAM_PROTO_SignData [14:16:40]wFMCommunicate request_size=4 [14:16:40]MH_SAM_APDU [14:16:40]CAPDU: 80 0D 01 02 [14:16:40]Write to MH i2c: E2 08 00 7B 0E 80 0D 01 02 00 00 00 00 02 [14:16:40]Write i2c OK [14:16:40]MH_I2C_Read... [14:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:40]Read from MH i2c: E2 [14:16:40]MH_I2C_Read... [14:16:40]Read from MH i2c: E2 03 00 [14:16:40]MH_I2C_Read... [14:16:40]Read from MH i2c: E2 03 00 7B 0E 00 90 00 FD [14:16:40]RAPDU: 90 00 [14:16:40]wFMCommunicate OK [14:16:40]wFMCommunicate request_size=255 [14:16:40]MH_SAM_APDU [14:16:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 C8 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7A 45 02 00 35 04 06 00 C3 [14:16:40]Write to MH i2c: E2 02 01 7C 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C5 00 00 00 F4 03 04 00 C8 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7A 45 02 00 35 04 06 00 C3 00 00 0E [14:16:40]Write i2c OK [14:16:40]MH_I2C_Read... [14:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:40]Read from MH i2c: E2 [14:16:40]MH_I2C_Read... [14:16:40]Read from MH i2c: E2 03 00 [14:16:40]MH_I2C_Read... [14:16:40]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [14:16:40]RAPDU: 90 00 [14:16:40]wFMCommunicate OK [14:16:40]wFMCommunicate request_size=10 [14:16:40]MH_SAM_APDU [14:16:40]CAPDU: 80 0D 02 02 05 B5 24 16 F8 9A [14:16:40]Write to MH i2c: E2 0D 00 7D 0E 80 0D 02 02 05 00 B5 24 16 F8 9A 00 00 90 [14:16:40]Write i2c OK [14:16:40]MH_I2C_Read... [14:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:40]Read from MH i2c: E2 [14:16:40]MH_I2C_Read... [14:16:40]Read from MH i2c: E2 03 00 [14:16:40]MH_I2C_Read... [14:16:40]Read from MH i2c: E2 03 00 7D 0E 00 90 00 FF [14:16:40]RAPDU: 90 00 [14:16:40]wFMCommunicate OK [14:16:40]wFMCommunicate request_size=4 [14:16:40]MH_SAM_APDU [14:16:40]CAPDU: 80 0D 03 02 [14:16:40]Write to MH i2c: E2 08 00 7E 0E 80 0D 03 02 00 00 00 00 07 [14:16:40]Write i2c OK [14:16:40]MH_I2C_Read... [14:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:41]Read from MH i2c: E2 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: E2 0B 00 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: E2 0B 00 7E 0E 00 E7 A1 0F 7B 85 C3 4B FB 90 00 A8 [14:16:41]RAPDU: E7 A1 0F 7B 85 C3 4B FB 90 00 [14:16:41]wFMCommunicate OK [14:16:41]SAM_PROTO_SignData done [14:16:41]FM_MakeSignedData done [14:16:41]CreateOFDProtocolMessage [14:16:41]wFMCommunicate request_size=4 [14:16:41]MH_SAM_APDU [14:16:41]CAPDU: 80 11 00 00 [14:16:41]Write to MH i2c: E2 08 00 7F 0E 80 11 00 00 00 00 00 00 07 [14:16:41]Write i2c OK [14:16:41]MH_I2C_Read... [14:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:41]Read from MH i2c: E2 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: E2 17 00 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: E2 17 00 7F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5A [14:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:16:41]wFMCommunicate OK [14:16:41]CreateOFDProtocolMessage done [14:16:41]OFDSenderStorePacket 148858 [14:16:41]StoreOFDPacket docnum=148858 [14:16:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B7 31 07 01 E1 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 C8 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7A 45 02 00 35 04 06 00 C3 B5 24 16 F8 9A E7 A1 0F 7B 85 C3 4B FB [14:16:41]CheckFolder [14:16:41]dirname=/storage/ofd_packets [14:16:41]CheckFolder done [14:16:41]ProducePacketName [14:16:41]name=ofd_packets/00148858 [14:16:41]NVStorageSaveData ofd_packets/00148858 [14:16:41]File name is /storage/ofd_packets/00148858 [14:16:41]Write 301 bytes [14:16:41]NVStorageSaveData done [14:16:41]OFDSenderStorePacket done [14:16:41]KKMCreateOFDPacket done [14:16:41]NVStorageSaveData kkm_last_timestamp [14:16:41]File name is /storage/kkm_last_timestamp [14:16:41]Write 4 bytes [14:16:41]NVStorageSaveData done [14:16:41]ExternCall_PrintAddStr [14:16:41]wPrintStart [14:16:41]Write to MH i2c: 01 00 00 80 0E 8E [14:16:41]Write i2c OK [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: 01 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: 01 07 00 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: 01 07 00 80 0E 00 00 00 00 00 FF 0F A3 [14:16:41]RasterBufferAndPrint [14:16:41]line Счет N : (1)979786 [14:16:41]line ИНН: 02508201610067 [14:16:41]line Контрольно-Кассовый Чек [14:16:41]line ПРОДАЖА [14:16:41]line ТРК (МРК, ГНК) : 31 [14:16:41]line Товар: 2710124130 [14:16:41]line Аи-92-К-5 [14:16:41]line 14.950 * 66.90 [14:16:41]line = 1000.16 [14:16:41]line НДС 12% НСП 1% [14:16:41]line > о реализуемом товаре [14:16:41]line ИТОГО: 1000.16 [14:16:41]line НСП 1% : 8.85 [14:16:41]line НДС 12% : 106.21 [14:16:41]line Наличными: 0.00 [14:16:41]line Безнал.: 1000.16 [14:16:41]line Место: АЗС № 68 "Партнер Нефть" [14:16:41]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:16:41]line СНО: Общий режим [14:16:41]line Чек 197 04.06.2024 14:16 [14:16:41]line Смена: 368 ФФД: 1.0 [14:16:41]line ЗНМ: 0300000035 [14:16:41]line РНМ: 0000000000092720 [14:16:41]line Версия ККМ: 001 [14:16:41]line Платежная система: O! деньги [14:16:41]line ФМ: 0000000000875057 [14:16:41]line ФД: 148858 [14:16:41]line ФПД: 215182761982106 [14:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141640&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148858&fm=215182761982106&tin=02508201610067®Number=0000000000092720&sum=100016 [14:16:41]OFD Sender: Processing packet 148858 [packets to send 100, broken 99] [14:16:41]ProducePacketName [14:16:41]name=ofd_packets/00148858 [14:16:41]OFD Sender: To server: pG, [14:16:41]CommunicateWithHost lk.salyk.kg:30040 [14:16:41]ConnectInit lk.salyk.kg [14:16:41]written 0, free lines is 4095 [14:16:41]Connected sock=9 [14:16:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B7 31 07 01 E1 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 C8 21 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7A 45 02 00 35 04 06 00 C3 B5 24 16 F8 9A E7 A1 0F 7B 85 C3 4B FB [14:16:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 52 0A 47 00 DB D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7A 45 02 00 F4 03 04 00 EC C8 5E 66 B6 04 01 00 00 22 B4 D6 80 1E 10 86 49 [14:16:41]CommunicateWithHost err = 0 [14:16:41]CheckOFDResponse [14:16:41]1017 (14) - 77093643461234 [14:16:41]1041 (16) - 0000000000875057 [14:16:41]1040 (4) - 148858 [14:16:41]1012 (4) - 04.06.2024 07:57 [14:16:41]1206 (1) - 0 [14:16:41]OFD Sender: Remove packet 148858 [14:16:41]ProducePacketName [14:16:41]name=ofd_packets/00148858 [14:16:41]NVStorageDeleteData [14:16:41]Write to MH i2c: 01 00 00 AA 0E B8 [14:16:41]Write i2c OK [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: 01 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: 01 07 00 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: 01 07 00 AA 0E 00 00 00 00 00 7D 0C 48 [14:16:41]RasterBufferAndPrint [14:16:41]line [14:16:41]line [14:16:41]line [14:16:41]line [14:16:41]line [14:16:41]written 0, free lines is 3200 [14:16:41]MH_Cut [14:16:41]Write to MH i2c: D1 01 00 B1 0E 01 91 [14:16:41]Write i2c OK [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: D1 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: D1 01 00 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: D1 01 00 B1 0E 00 90 [14:16:41]Write to MH i2c: 01 00 00 B2 0E C0 [14:16:41]Write i2c OK [14:16:41]MH_I2C_Read... [14:16:42]OFD Sender: No OFD packet to send [14:16:43]*** Cut start [14:16:43]*** Partial cut [14:16:43]*** CUTSNS_PIN = 1 [14:16:43]*** CUTSNS_PIN = 0 [14:16:43]*** Brake cut motor [14:16:43]Read from MH i2c: 01 [14:16:43]MH_I2C_Read... [14:16:43]*** Stop cut motor [14:16:43]*** Cut end [14:16:43]Read from MH i2c: 01 07 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: 01 07 00 B2 0E 00 00 00 00 00 FF 0F D5 [14:16:43]process_action close_receipt done [14:16:43]requested_data is exist [14:16:43]produce_requested_data [14:16:43]requested_item fm.sn is exist - process it [14:16:43]wFMCommunicate request_size=4 [14:16:43]MH_SAM_APDU [14:16:43]CAPDU: 80 11 00 00 [14:16:43]Write to MH i2c: E2 08 00 B3 0E 80 11 00 00 00 00 00 00 3B [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: E2 [14:16:43]MH_I2C_Read... [14:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:43]Read from MH i2c: E2 17 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: E2 17 00 B3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8E [14:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:16:43]wFMCommunicate OK [14:16:43]requested_item fd.num is exist - process it [14:16:43]SAM_PROTO_GetFieldsCounters [14:16:43]wFMCommunicate request_size=4 [14:16:43]MH_SAM_APDU [14:16:43]CAPDU: 80 13 00 00 [14:16:43]Write to MH i2c: E2 08 00 B4 0E 80 13 00 00 00 00 00 00 3E [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:43]Read from MH i2c: E2 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: E2 62 00 [14:16:43]MH_I2C_Read... [14:16:43]Read from MH i2c: E2 62 00 B4 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7A 45 02 00 0E 04 04 00 70 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 DB [14:16:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7A 45 02 00 0E 04 04 00 70 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 [14:16:43]wFMCommunicate OK [14:16:43]SAM_PROTO_GetFieldsCounters done [14:16:43]requested_item shift.num is exist - process it [14:16:43]requested_item shift.opened is exist - process it [14:16:43]req_shift_opened [14:16:43]FM_GetShiftState [14:16:43]SAM_PROTO_GetShiftState [14:16:43]wFMCommunicate request_size=4 [14:16:43]MH_SAM_APDU [14:16:43]CAPDU: 80 13 01 00 [14:16:43]Write to MH i2c: E2 08 00 B5 0E 80 13 01 00 00 00 00 00 40 [14:16:43]Write i2c OK [14:16:43]MH_I2C_Read... [14:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:44]Read from MH i2c: E2 [14:16:44]MH_I2C_Read... [14:16:44]Read from MH i2c: E2 0E 00 [14:16:44]MH_I2C_Read... [14:16:44]Read from MH i2c: E2 0E 00 B5 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 03 [14:16:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:16:44]wFMCommunicate OK [14:16:44]SAM_PROTO_GetShiftState done [14:16:44]FM_GetShiftState done [14:16:44]req_shift_opened done [14:16:44]requested_item shift.open_date is exist - process it [14:16:44]req_shift_open_date [14:16:44]req_shift_open_date done [14:16:44]produce_requested_data done [14:16:44]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148858,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:16:44]process_action_free close_receipt [14:16:44]json_value_free [14:16:44]json_value_free done [14:16:44]process_json_proto returns [14:16:44]Send response to host [14:16:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148858,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:16:44]free response buf [14:16:44]execute_script done [14:16:44]execute_script returns [14:16:44]free content buf [14:16:44]Sock 10.Close socket [14:16:44]Sock 10.Thread stoped [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [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:40]accept exits with 7 [14:19:40]New connection [14:19:40]New thread 3067264356 created [14:19:40]Thread 3067407716 joined [14:19:40]Waiting for new connection... [14:19:40] Sock 7.Parse request [14:19:40]Sock 7.Check first char [14:19:40]Sock 7.First char is OK [14:19:40]request: POST /json_proto HTTP/1.0 [14:19:40]Method: POST [14:19:40]URL: /json_proto [14:19:40]Method is POST - this is cgi request [14:19:40]url: /json_proto [14:19:40]query_string will be loaded in cgi processing [14:19:40]execute_cgi json_proto POST (null) [14:19:40]execute_cgi path=json_proto method=POST [14:19:40]POST find Content-Length [14:19:40]Host: 172.17.38.4:8080 [14:19:40]Content-Length: 679 [14:19:40]Content-Type: application/json [14:19:40] [14:19:40]POST finish read [14:19:40]Found Content-Length = 679 [14:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 26.070, "sum" : 1900.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:40]execute_script... [14:19: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)979787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 26.070, "sum" : 1900.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:40]POST & json_proto [14:19:40]process_json_proto [14:19:40]json parsed OK: [14:19:40]protocol is kg_v1.0 [14:19:40]action value=close_receipt [14:19:40]process_action close_receipt [14:19:40]cmd_close_receipt [14:19:40]MH_GetDate [14:19:40]Write to MH i2c: F0 00 00 B6 0E B3 [14:19:40]Write i2c OK [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: F0 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: F0 09 00 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: F0 09 00 B6 0E 00 7E 22 5F 66 CC 51 87 64 29 [14:19:40]GetLastDocTimeStamp 1717510600 [14:19:40]current date 1717510782 [14:19:40]FM_GetShiftState [14:19:40]SAM_PROTO_GetShiftState [14:19:40]wFMCommunicate request_size=4 [14:19:40]MH_SAM_APDU [14:19:40]CAPDU: 80 13 01 00 [14:19:40]Write to MH i2c: E2 08 00 B7 0E 80 13 01 00 00 00 00 00 42 [14:19:40]Write i2c OK [14:19:40]MH_I2C_Read... [14:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:41]Read from MH i2c: E2 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 0E 00 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 0E 00 B7 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 05 [14:19:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:19:41]wFMCommunicate OK [14:19:41]SAM_PROTO_GetShiftState done [14:19:41]FM_GetShiftState done [14:19:41]opened in 1717460629 [14:19:41]opened+sec_in_day 1717547029 [14:19:41]quantity*price = 190050 [14:19:41]sum+1 = 190051 [14:19:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.82 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 198 04.06.2024 14:19 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148859 ФПД: 275526812566184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141942&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148859&fm=275526812566184&tin=02508201610067®Number=0000000000092720&sum=190000 [14:19:42]StoreToDocumentArchive [14:19:42]shift 368 fd 148859 [14:19:42]save to /storage/0368/doc_00148859 [14:19:42]save last doc name /storage/0368/doc_00148859 to /storage/kkm_last_doc_name [14:19:42]save OK [14:19:42]Clear old archive folders... [14:19:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:19:42]tlvbuf is 00466600 [14:19:42]SAM_PROTO_ClearQueue [14:19:42]wFMCommunicate request_size=4 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 09 00 00 [14:19:42]Write to MH i2c: E2 08 00 C4 0E 80 09 00 00 00 00 00 00 44 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 C4 0E 00 90 00 46 [14:19:42]RAPDU: 90 00 [14:19:42]wFMCommunicate OK [14:19:42]SAM_PROTO_ClearQueue done [14:19:42]KKMCreateOFDPacket [14:19:42]OFDProtocolAddRootSTLVToBuf [14:19:42]FM_MakeSignedData [14:19:42]FM_MakeSignedData [14:19:42]SAM_PROTO_SignData [14:19:42]wFMCommunicate request_size=4 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 0D 01 02 [14:19:42]Write to MH i2c: E2 08 00 C5 0E 80 0D 01 02 00 00 00 00 4C [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 C5 0E 00 90 00 47 [14:19:42]RAPDU: 90 00 [14:19:42]wFMCommunicate OK [14:19:42]wFMCommunicate request_size=255 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 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 7E 22 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7B 45 02 00 35 04 06 00 FA 97 15 CA [14:19:42]Write to MH i2c: E2 02 01 C6 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 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 7E 22 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7B 45 02 00 35 04 06 00 FA 97 15 CA 00 00 79 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]OFD Sender: No OFD packet to send [14:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 C6 0E 00 90 00 48 [14:19:42]RAPDU: 90 00 [14:19:42]wFMCommunicate OK [14:19:42]wFMCommunicate request_size=7 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 0D 02 02 02 02 A8 [14:19:42]Write to MH i2c: E2 0A 00 C7 0E 80 0D 02 02 02 00 02 A8 00 00 FD [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 C7 0E 00 90 00 49 [14:19:42]RAPDU: 90 00 [14:19:42]wFMCommunicate OK [14:19:42]wFMCommunicate request_size=4 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 0D 03 02 [14:19:42]Write to MH i2c: E2 08 00 C8 0E 80 0D 03 02 00 00 00 00 51 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 0B 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 0B 00 C8 0E 00 8B 4E ED 1D A1 E3 7E 01 90 00 38 [14:19:42]RAPDU: 8B 4E ED 1D A1 E3 7E 01 90 00 [14:19:42]wFMCommunicate OK [14:19:42]SAM_PROTO_SignData done [14:19:42]FM_MakeSignedData done [14:19:42]CreateOFDProtocolMessage [14:19:42]wFMCommunicate request_size=4 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 11 00 00 [14:19:42]Write to MH i2c: E2 08 00 C9 0E 80 11 00 00 00 00 00 00 51 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 17 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 17 00 C9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A4 [14:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:19:42]wFMCommunicate OK [14:19:42]CreateOFDProtocolMessage done [14:19:42]OFDSenderStorePacket 148859 [14:19:42]StoreOFDPacket docnum=148859 [14:19:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 22 5E 04 01 FB DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 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 7E 22 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7B 45 02 00 35 04 06 00 FA 97 15 CA 02 A8 8B 4E ED 1D A1 E3 7E 01 [14:19:42]CheckFolder [14:19:42]dirname=/storage/ofd_packets [14:19:42]CheckFolder done [14:19:42]ProducePacketName [14:19:42]name=ofd_packets/00148859 [14:19:42]NVStorageSaveData ofd_packets/00148859 [14:19:42]File name is /storage/ofd_packets/00148859 [14:19:42]Write 298 bytes [14:19:42]NVStorageSaveData done [14:19:42]OFDSenderStorePacket done [14:19:42]KKMCreateOFDPacket done [14:19:42]NVStorageSaveData kkm_last_timestamp [14:19:42]File name is /storage/kkm_last_timestamp [14:19:42]Write 4 bytes [14:19:42]NVStorageSaveData done [14:19:42]ExternCall_PrintAddStr [14:19:42]wPrintStart [14:19:42]Write to MH i2c: 01 00 00 CA 0E D8 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: 01 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: 01 07 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: 01 07 00 CA 0E 00 00 00 00 00 FF 0F ED [14:19:42]RasterBufferAndPrint [14:19:42]line Счет N : (1)979787 [14:19:42]line ИНН: 02508201610067 [14:19:42]line Контрольно-Кассовый Чек [14:19:42]line ПРОДАЖА [14:19:42]line ТРК (МРК, ГНК) : 51 [14:19:42]line Товар: 2710194210 [14:19:42]line ДТ-К-5 [14:19:42]line 26.070 * 72.90 [14:19:42]line = 1900.50 [14:19:42]line НДС 12% НСП 1% [14:19:42]line > о реализуемом товаре [14:19:42]line ОКРУГЛЕНИЕ: -0.50 [14:19:42]line ИТОГО: 1900.00 [14:19:42]line Внесено: 1900.00 [14:19:42]line СДАЧА: 0.00 [14:19:42]line НСП 1% : 16.82 [14:19:42]line НДС 12% : 201.82 [14:19:42]line Наличными: 1900.00 [14:19:42]line Безнал.: 0.00 [14:19:42]line Место: АЗС № 68 "Партнер Нефть" [14:19:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:19:42]line СНО: Общий режим [14:19:42]line Чек 198 04.06.2024 14:19 [14:19:42]line Смена: 368 ФФД: 1.0 [14:19:42]line ЗНМ: 0300000035 [14:19:42]line РНМ: 0000000000092720 [14:19:42]line Версия ККМ: 001 [14:19:42]line ФМ: 0000000000875057 [14:19:42]line ФД: 148859 [14:19:42]line ФПД: 275526812566184 [14:19:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T141942&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148859&fm=275526812566184&tin=02508201610067®Number=0000000000092720&sum=190000 [14:19:43]OFD Sender: Processing packet 148859 [packets to send 100, broken 99] [14:19:43]ProducePacketName [14:19:43]name=ofd_packets/00148859 [14:19:43]OFD Sender: To server: pG, [14:19:43]CommunicateWithHost lk.salyk.kg:30040 [14:19:43]ConnectInit lk.salyk.kg [14:19:43]written 0, free lines is 4095 [14:19:43]Connected sock=10 [14:19:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 22 5E 04 01 FB DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 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 7E 22 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7B 45 02 00 35 04 06 00 FA 97 15 CA 02 A8 8B 4E ED 1D A1 E3 7E 01 [14:19:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C2 D7 47 00 FA 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 38 37 35 30 35 37 10 04 04 00 7B 45 02 00 F4 03 04 00 A1 C9 5E 66 B6 04 01 00 00 13 F3 66 15 9C 1F 31 E1 [14:19:43]CommunicateWithHost err = 0 [14:19:43]CheckOFDResponse [14:19:43]1017 (14) - 77093643461234 [14:19:43]1041 (16) - 0000000000875057 [14:19:43]1040 (4) - 148859 [14:19:43]1012 (4) - 04.06.2024 08:00 [14:19:43]1206 (1) - 0 [14:19:43]OFD Sender: Remove packet 148859 [14:19:43]ProducePacketName [14:19:43]name=ofd_packets/00148859 [14:19:43]NVStorageDeleteData [14:19:43]Write to MH i2c: 01 00 00 F5 0E 03 [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: 01 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: 01 07 00 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: 01 07 00 F5 0E 00 00 00 00 00 68 0C 7E [14:19:43]RasterBufferAndPrint [14:19:43]line [14:19:43]line [14:19:43]line [14:19:43]line [14:19:43]line [14:19:43]written 0, free lines is 3179 [14:19:43]MH_Cut [14:19:43]Write to MH i2c: D1 01 00 FC 0E 01 DC [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: D1 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: D1 01 00 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: D1 01 00 FC 0E 00 DB [14:19:43]Write to MH i2c: 01 00 00 FD 0E 0B [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19:43]OFD Sender: No OFD packet to send [14:19:44]*** Cut start [14:19:44]*** Partial cut [14:19:44]*** CUTSNS_PIN = 1 [14:19:44]*** CUTSNS_PIN = 0 [14:19:45]*** Brake cut motor [14:19:45]Read from MH i2c: 01 [14:19:45]MH_I2C_Read... [14:19:45]*** Stop cut motor [14:19:45]*** Cut end [14:19:45]Read from MH i2c: 01 07 00 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: 01 07 00 FD 0E 00 00 00 00 00 FF 0F 20 [14:19:45]process_action close_receipt done [14:19:45]requested_data is exist [14:19:45]produce_requested_data [14:19:45]requested_item fm.sn is exist - process it [14:19:45]wFMCommunicate request_size=4 [14:19:45]MH_SAM_APDU [14:19:45]CAPDU: 80 11 00 00 [14:19:45]Write to MH i2c: E2 08 00 FE 0E 80 11 00 00 00 00 00 00 86 [14:19:45]Write i2c OK [14:19:45]MH_I2C_Read... [14:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:45]Read from MH i2c: E2 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 17 00 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 17 00 FE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D9 [14:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:19:45]wFMCommunicate OK [14:19:45]requested_item fd.num is exist - process it [14:19:45]SAM_PROTO_GetFieldsCounters [14:19:45]wFMCommunicate request_size=4 [14:19:45]MH_SAM_APDU [14:19:45]CAPDU: 80 13 00 00 [14:19:45]Write to MH i2c: E2 08 00 FF 0E 80 13 00 00 00 00 00 00 89 [14:19:45]Write i2c OK [14:19:45]MH_I2C_Read... [14:19:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:45]Read from MH i2c: E2 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 62 00 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 62 00 FF 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7B 45 02 00 0E 04 04 00 70 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 2A [14:19:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7B 45 02 00 0E 04 04 00 70 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 [14:19:45]wFMCommunicate OK [14:19:45]SAM_PROTO_GetFieldsCounters done [14:19:45]requested_item shift.num is exist - process it [14:19:45]requested_item shift.opened is exist - process it [14:19:45]req_shift_opened [14:19:45]FM_GetShiftState [14:19:45]SAM_PROTO_GetShiftState [14:19:45]wFMCommunicate request_size=4 [14:19:45]MH_SAM_APDU [14:19:45]CAPDU: 80 13 01 00 [14:19:45]Write to MH i2c: E2 08 00 00 0F 80 13 01 00 00 00 00 00 8C [14:19:45]Write i2c OK [14:19:45]MH_I2C_Read... [14:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:45]Read from MH i2c: E2 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 0E 00 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 0E 00 00 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4F [14:19:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:19:45]wFMCommunicate OK [14:19:45]SAM_PROTO_GetShiftState done [14:19:45]FM_GetShiftState done [14:19:45]req_shift_opened done [14:19:45]requested_item shift.open_date is exist - process it [14:19:45]req_shift_open_date [14:19:45]req_shift_open_date done [14:19:45]produce_requested_data done [14:19:45]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148859,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:19:45]process_action_free close_receipt [14:19:45]json_value_free [14:19:45]json_value_free done [14:19:45]process_json_proto returns [14:19:45]Send response to host [14:19:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148859,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:19:45]free response buf [14:19:45]execute_script done [14:19:45]execute_script returns [14:19:45]free content buf [14:19:45]Sock 7.Close socket [14:19:45]Sock 7.Thread stoped [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]accept exits with 9 [14:20:58]New connection [14:20:58]New thread 3067407716 created [14:20:58]Thread 3067264356 joined [14:20:58]Waiting for new connection... [14:20:58] Sock 9.Parse request [14:20:58]Sock 9.Check first char [14:20:58]Sock 9.First char is OK [14:20:58]request: POST /json_proto HTTP/1.0 [14:20:58]Method: POST [14:20:58]URL: /json_proto [14:20:58]Method is POST - this is cgi request [14:20:58]url: /json_proto [14:20:58]query_string will be loaded in cgi processing [14:20:58]execute_cgi json_proto POST (null) [14:20:58]execute_cgi path=json_proto method=POST [14:20:58]POST find Content-Length [14:20:58]Host: 172.17.38.4:8080 [14:20:58]Content-Length: 677 [14:20:58]Content-Type: application/json [14:20:58] [14:20:58]POST finish read [14:20:58]Found Content-Length = 677 [14:20:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:58]execute_script... [14:20: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)979788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:58]POST & json_proto [14:20:58]process_json_proto [14:20:58]json parsed OK: [14:20:58]protocol is kg_v1.0 [14:20:58]action value=close_receipt [14:20:58]process_action close_receipt [14:20:58]cmd_close_receipt [14:20:58]MH_GetDate [14:20:58]Write to MH i2c: F0 00 00 01 0F FF [14:20:58]Write i2c OK [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: F0 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: F0 09 00 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: F0 09 00 01 0F 00 CB 22 5F 66 CC 51 87 64 C2 [14:20:58]GetLastDocTimeStamp 1717510782 [14:20:58]current date 1717510859 [14:20:58]FM_GetShiftState [14:20:58]SAM_PROTO_GetShiftState [14:20:58]wFMCommunicate request_size=4 [14:20:58]MH_SAM_APDU [14:20:58]CAPDU: 80 13 01 00 [14:20:58]Write to MH i2c: E2 08 00 02 0F 80 13 01 00 00 00 00 00 8E [14:20:58]Write i2c OK [14:20:58]MH_I2C_Read... [14:20:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:58]Read from MH i2c: E2 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: E2 0E 00 [14:20:58]MH_I2C_Read... [14:20:58]Read from MH i2c: E2 0E 00 02 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 51 [14:20:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:20:58]wFMCommunicate OK [14:20:58]SAM_PROTO_GetShiftState done [14:20:58]FM_GetShiftState done [14:20:58]opened in 1717460629 [14:20:58]opened+sec_in_day 1717547029 [14:20:58]quantity*price = 50041 [14:20:58]sum+1 = 50042 [14:20:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 199 04.06.2024 14:20 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148860 ФПД: 13830208154206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142059&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148860&fm=13830208154206&tin=02508201610067®Number=0000000000092720&sum=50000 [14:20:59]StoreToDocumentArchive [14:20:59]shift 368 fd 148860 [14:20:59]save to /storage/0368/doc_00148860 [14:20:59]save last doc name /storage/0368/doc_00148860 to /storage/kkm_last_doc_name [14:20:59]save OK [14:20:59]Clear old archive folders... [14:20:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:59]tlvbuf is 0046AD40 [14:20:59]SAM_PROTO_ClearQueue [14:20:59]wFMCommunicate request_size=4 [14:20:59]MH_SAM_APDU [14:20:59]CAPDU: 80 09 00 00 [14:20:59]Write to MH i2c: E2 08 00 0F 0F 80 09 00 00 00 00 00 00 90 [14:20:59]Write i2c OK [14:20:59]MH_I2C_Read... [14:20:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:59]Read from MH i2c: E2 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: E2 03 00 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: E2 03 00 0F 0F 00 90 00 92 [14:20:59]RAPDU: 90 00 [14:20:59]wFMCommunicate OK [14:20:59]SAM_PROTO_ClearQueue done [14:20:59]KKMCreateOFDPacket [14:20:59]OFDProtocolAddRootSTLVToBuf [14:20:59]FM_MakeSignedData [14:20:59]FM_MakeSignedData [14:20:59]SAM_PROTO_SignData [14:20:59]wFMCommunicate request_size=4 [14:20:59]MH_SAM_APDU [14:20:59]CAPDU: 80 0D 01 02 [14:20:59]Write to MH i2c: E2 08 00 10 0F 80 0D 01 02 00 00 00 00 98 [14:20:59]Write i2c OK [14:20:59]MH_I2C_Read... [14:20:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:59]Read from MH i2c: E2 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: E2 03 00 [14:20:59]MH_I2C_Read... [14:20:59]Read from MH i2c: E2 03 00 10 0F 00 90 00 93 [14:20:59]RAPDU: 90 00 [14:20:59]wFMCommunicate OK [14:20:59]wFMCommunicate request_size=255 [14:20:59]MH_SAM_APDU [14:20:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CB 22 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7C 45 02 00 35 04 06 00 0C [14:20:59]Write to MH i2c: E2 02 01 11 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CB 22 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7C 45 02 00 35 04 06 00 0C 00 00 DB [14:20:59]Write i2c OK [14:20:59]MH_I2C_Read... [14:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:00]Read from MH i2c: E2 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 03 00 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 03 00 11 0F 00 90 00 94 [14:21:00]RAPDU: 90 00 [14:21:00]wFMCommunicate OK [14:21:00]wFMCommunicate request_size=10 [14:21:00]MH_SAM_APDU [14:21:00]CAPDU: 80 0D 02 02 05 94 18 A4 EA 5E [14:21:00]Write to MH i2c: E2 0D 00 12 0F 80 0D 02 02 05 00 94 18 A4 EA 5E 00 00 3D [14:21:00]Write i2c OK [14:21:00]MH_I2C_Read... [14:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:00]Read from MH i2c: E2 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 03 00 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 03 00 12 0F 00 90 00 95 [14:21:00]RAPDU: 90 00 [14:21:00]wFMCommunicate OK [14:21:00]wFMCommunicate request_size=4 [14:21:00]MH_SAM_APDU [14:21:00]CAPDU: 80 0D 03 02 [14:21:00]Write to MH i2c: E2 08 00 13 0F 80 0D 03 02 00 00 00 00 9D [14:21:00]Write i2c OK [14:21:00]MH_I2C_Read... [14:21:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:00]Read from MH i2c: E2 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 0B 00 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 0B 00 13 0F 00 86 27 34 50 62 25 39 EF 90 00 7E [14:21:00]RAPDU: 86 27 34 50 62 25 39 EF 90 00 [14:21:00]wFMCommunicate OK [14:21:00]SAM_PROTO_SignData done [14:21:00]FM_MakeSignedData done [14:21:00]CreateOFDProtocolMessage [14:21:00]wFMCommunicate request_size=4 [14:21:00]MH_SAM_APDU [14:21:00]CAPDU: 80 11 00 00 [14:21:00]Write to MH i2c: E2 08 00 14 0F 80 11 00 00 00 00 00 00 9D [14:21:00]Write i2c OK [14:21:00]MH_I2C_Read... [14:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:00]Read from MH i2c: E2 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 17 00 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: E2 17 00 14 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F0 [14:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:21:00]wFMCommunicate OK [14:21:00]CreateOFDProtocolMessage done [14:21:00]OFDSenderStorePacket 148860 [14:21:00]StoreOFDPacket docnum=148860 [14:21:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 82 68 07 01 6F 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CB 22 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7C 45 02 00 35 04 06 00 0C 94 18 A4 EA 5E 86 27 34 50 62 25 39 EF [14:21:00]CheckFolder [14:21:00]dirname=/storage/ofd_packets [14:21:00]CheckFolder done [14:21:00]ProducePacketName [14:21:00]name=ofd_packets/00148860 [14:21:00]NVStorageSaveData ofd_packets/00148860 [14:21:00]File name is /storage/ofd_packets/00148860 [14:21:00]Write 301 bytes [14:21:00]NVStorageSaveData done [14:21:00]OFDSenderStorePacket done [14:21:00]KKMCreateOFDPacket done [14:21:00]NVStorageSaveData kkm_last_timestamp [14:21:00]File name is /storage/kkm_last_timestamp [14:21:00]Write 4 bytes [14:21:00]NVStorageSaveData done [14:21:00]ExternCall_PrintAddStr [14:21:00]wPrintStart [14:21:00]Write to MH i2c: 01 00 00 15 0F 24 [14:21:00]Write i2c OK [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: 01 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: 01 07 00 [14:21:00]MH_I2C_Read... [14:21:00]Read from MH i2c: 01 07 00 15 0F 00 00 00 00 00 FF 0F 39 [14:21:00]RasterBufferAndPrint [14:21:00]line Счет N : (1)979788 [14:21:00]line ИНН: 02508201610067 [14:21:00]line Контрольно-Кассовый Чек [14:21:00]line ПРОДАЖА [14:21:00]line ТРК (МРК, ГНК) : 31 [14:21:00]line Товар: 2710124130 [14:21:00]line Аи-92-К-5 [14:21:00]line 7.480 * 66.90 [14:21:00]line = 500.41 [14:21:00]line НДС 12% НСП 1% [14:21:00]line > о реализуемом товаре [14:21:00]line ОКРУГЛЕНИЕ: -0.41 [14:21:00]line ИТОГО: 500.00 [14:21:00]line Внесено: 500.00 [14:21:00]line СДАЧА: 0.00 [14:21:00]line НСП 1% : 4.43 [14:21:00]line НДС 12% : 53.14 [14:21:00]line Наличными: 500.00 [14:21:00]line Безнал.: 0.00 [14:21:00]line Место: АЗС № 68 "Партнер Нефть" [14:21:00]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:21:00]line СНО: Общий режим [14:21:00]line Чек 199 04.06.2024 14:20 [14:21:00]line Смена: 368 ФФД: 1.0 [14:21:00]line ЗНМ: 0300000035 [14:21:00]line РНМ: 0000000000092720 [14:21:00]line Версия ККМ: 001 [14:21:00]line ФМ: 0000000000875057 [14:21:00]line ФД: 148860 [14:21:00]line ФПД: 13830208154206 [14:21:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142059&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148860&fm=13830208154206&tin=02508201610067®Number=0000000000092720&sum=50000 [14:21:00]OFD Sender: Processing packet 148860 [packets to send 100, broken 99] [14:21:00]ProducePacketName [14:21:00]name=ofd_packets/00148860 [14:21:00]OFD Sender: To server: pG, [14:21:00]CommunicateWithHost lk.salyk.kg:30040 [14:21:00]ConnectInit lk.salyk.kg [14:21:00]written 0, free lines is 4095 [14:21:00]Connected sock=10 [14:21:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 82 68 07 01 6F 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CB 22 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7C 45 02 00 35 04 06 00 0C 94 18 A4 EA 5E 86 27 34 50 62 25 39 EF [14:21:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 FA EF 47 00 E7 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 38 37 35 30 35 37 10 04 04 00 7C 45 02 00 F4 03 04 00 EF C9 5E 66 B6 04 01 00 00 1B 83 77 0E 5D E4 6F 97 [14:21:01]CommunicateWithHost err = 0 [14:21:01]CheckOFDResponse [14:21:01]1017 (14) - 77093643461234 [14:21:01]1041 (16) - 0000000000875057 [14:21:01]1040 (4) - 148860 [14:21:01]1012 (4) - 04.06.2024 08:01 [14:21:01]1206 (1) - 0 [14:21:01]OFD Sender: Remove packet 148860 [14:21:01]ProducePacketName [14:21:01]name=ofd_packets/00148860 [14:21:01]NVStorageDeleteData [14:21:01]Write to MH i2c: 01 00 00 40 0F 4F [14:21:01]Write i2c OK [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: 01 [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: 01 07 00 [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: 01 07 00 40 0F 00 00 00 00 00 65 0C C7 [14:21:01]RasterBufferAndPrint [14:21:01]line [14:21:01]line [14:21:01]line [14:21:01]line [14:21:01]line [14:21:01]written 0, free lines is 3177 [14:21:01]MH_Cut [14:21:01]Write to MH i2c: D1 01 00 47 0F 01 28 [14:21:01]Write i2c OK [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: D1 [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: D1 01 00 [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: D1 01 00 47 0F 00 27 [14:21:01]Write to MH i2c: 01 00 00 48 0F 57 [14:21:01]Write i2c OK [14:21:01]MH_I2C_Read... [14:21:01]OFD Sender: No OFD packet to send [14:21:02]*** Cut start [14:21:02]*** Partial cut [14:21:02]*** CUTSNS_PIN = 1 [14:21:02]*** CUTSNS_PIN = 0 [14:21:02]*** Brake cut motor [14:21:03]Read from MH i2c: 01 [14:21:03]MH_I2C_Read... [14:21:03]*** Stop cut motor [14:21:03]*** Cut end [14:21:03]Read from MH i2c: 01 07 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: 01 07 00 48 0F 00 00 00 00 00 FF 0F 6C [14:21:03]process_action close_receipt done [14:21:03]requested_data is exist [14:21:03]produce_requested_data [14:21:03]requested_item fm.sn is exist - process it [14:21:03]wFMCommunicate request_size=4 [14:21:03]MH_SAM_APDU [14:21:03]CAPDU: 80 11 00 00 [14:21:03]Write to MH i2c: E2 08 00 49 0F 80 11 00 00 00 00 00 00 D2 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:03]Read from MH i2c: E2 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 17 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 17 00 49 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 25 [14:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:21:03]wFMCommunicate OK [14:21:03]requested_item fd.num is exist - process it [14:21:03]SAM_PROTO_GetFieldsCounters [14:21:03]wFMCommunicate request_size=4 [14:21:03]MH_SAM_APDU [14:21:03]CAPDU: 80 13 00 00 [14:21:03]Write to MH i2c: E2 08 00 4A 0F 80 13 00 00 00 00 00 00 D5 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:03]Read from MH i2c: E2 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 62 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 62 00 4A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7C 45 02 00 0E 04 04 00 70 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 7A [14:21:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7C 45 02 00 0E 04 04 00 70 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 [14:21:03]wFMCommunicate OK [14:21:03]SAM_PROTO_GetFieldsCounters done [14:21:03]requested_item shift.num is exist - process it [14:21:03]requested_item shift.opened is exist - process it [14:21:03]req_shift_opened [14:21:03]FM_GetShiftState [14:21:03]SAM_PROTO_GetShiftState [14:21:03]wFMCommunicate request_size=4 [14:21:03]MH_SAM_APDU [14:21:03]CAPDU: 80 13 01 00 [14:21:03]Write to MH i2c: E2 08 00 4B 0F 80 13 01 00 00 00 00 00 D7 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:03]Read from MH i2c: E2 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 0E 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 0E 00 4B 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9A [14:21:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:21:03]wFMCommunicate OK [14:21:03]SAM_PROTO_GetShiftState done [14:21:03]FM_GetShiftState done [14:21:03]req_shift_opened done [14:21:03]requested_item shift.open_date is exist - process it [14:21:03]req_shift_open_date [14:21:03]req_shift_open_date done [14:21:03]produce_requested_data done [14:21:03]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148860,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:21:03]process_action_free close_receipt [14:21:03]json_value_free [14:21:03]json_value_free done [14:21:03]process_json_proto returns [14:21:03]Send response to host [14:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148860,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:21:03]free response buf [14:21:03]execute_script done [14:21:03]execute_script returns [14:21:03]free content buf [14:21:03]Sock 9.Close socket [14:21:03]Sock 9.Thread stoped [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:38]accept exits with 7 [14:36:38]New connection [14:36:38]New thread 3067264356 created [14:36:38]Thread 3067407716 joined [14:36:38]Waiting for new connection... [14:36:38] Sock 7.Parse request [14:36:38]Sock 7.Check first char [14:36:38]Sock 7.First char is OK [14:36:38]request: POST /json_proto HTTP/1.0 [14:36:38]Method: POST [14:36:38]URL: /json_proto [14:36:38]Method is POST - this is cgi request [14:36:38]url: /json_proto [14:36:38]query_string will be loaded in cgi processing [14:36:38]execute_cgi json_proto POST (null) [14:36:38]execute_cgi path=json_proto method=POST [14:36:38]POST find Content-Length [14:36:38]Host: 172.17.38.4:8080 [14:36:38]Content-Length: 678 [14:36:38]Content-Type: application/json [14:36:38] [14:36:38]POST finish read [14:36:38]Found Content-Length = 678 [14:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:38]execute_script... [14:36: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)979789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:38]POST & json_proto [14:36:38]process_json_proto [14:36:38]json parsed OK: [14:36:38]protocol is kg_v1.0 [14:36:38]action value=close_receipt [14:36:38]process_action close_receipt [14:36:38]cmd_close_receipt [14:36:38]MH_GetDate [14:36:38]Write to MH i2c: F0 00 00 4C 0F 4A [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: F0 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: F0 09 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: F0 09 00 4C 0F 00 78 26 5F 66 CC 51 87 64 BE [14:36:38]GetLastDocTimeStamp 1717510859 [14:36:38]current date 1717511800 [14:36:38]FM_GetShiftState [14:36:38]SAM_PROTO_GetShiftState [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 13 01 00 [14:36:38]Write to MH i2c: E2 08 00 4D 0F 80 13 01 00 00 00 00 00 D9 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 0E 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 0E 00 4D 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9C [14:36:38]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:36:38]wFMCommunicate OK [14:36:39]SAM_PROTO_GetShiftState done [14:36:39]FM_GetShiftState done [14:36:39]opened in 1717460629 [14:36:39]opened+sec_in_day 1717547029 [14:36:39]quantity*price = 70044 [14:36:39]sum+1 = 70045 [14:36:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 200 04.06.2024 14:36 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148861 ФПД: 204234606400589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143640&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148861&fm=204234606400589&tin=02508201610067®Number=0000000000092720&sum=70000 [14:36:40]StoreToDocumentArchive [14:36:40]shift 368 fd 148861 [14:36:40]save to /storage/0368/doc_00148861 [14:36:40]save last doc name /storage/0368/doc_00148861 to /storage/kkm_last_doc_name [14:36:40]save OK [14:36:40]Clear old archive folders... [14:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:40]tlvbuf is 004B39C0 [14:36:40]SAM_PROTO_ClearQueue [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 09 00 00 [14:36:40]Write to MH i2c: E2 08 00 5A 0F 80 09 00 00 00 00 00 00 DB [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 5A 0F 00 90 00 DD [14:36:40]RAPDU: 90 00 [14:36:40]wFMCommunicate OK [14:36:40]SAM_PROTO_ClearQueue done [14:36:40]KKMCreateOFDPacket [14:36:40]OFDProtocolAddRootSTLVToBuf [14:36:40]FM_MakeSignedData [14:36:40]FM_MakeSignedData [14:36:40]SAM_PROTO_SignData [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 0D 01 02 [14:36:40]Write to MH i2c: E2 08 00 5B 0F 80 0D 01 02 00 00 00 00 E3 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 5B 0F 00 90 00 DE [14:36:40]RAPDU: 90 00 [14:36:40]wFMCommunicate OK [14:36:40]wFMCommunicate request_size=255 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C8 00 00 00 F4 03 04 00 78 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7D 45 02 00 35 04 06 00 B9 [14:36:40]Write to MH i2c: E2 02 01 5C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C8 00 00 00 F4 03 04 00 78 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7D 45 02 00 35 04 06 00 B9 00 00 96 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 5C 0F 00 90 00 DF [14:36:40]RAPDU: 90 00 [14:36:40]wFMCommunicate OK [14:36:40]wFMCommunicate request_size=10 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 0D 02 02 05 C0 13 2A 54 4D [14:36:40]Write to MH i2c: E2 0D 00 5D 0F 80 0D 02 02 05 00 C0 13 2A 54 4D 00 00 8E [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 03 00 5D 0F 00 90 00 E0 [14:36:40]RAPDU: 90 00 [14:36:40]wFMCommunicate OK [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 0D 03 02 [14:36:40]Write to MH i2c: E2 08 00 5E 0F 80 0D 03 02 00 00 00 00 E8 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 0B 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 0B 00 5E 0F 00 B8 68 AB 2E 5D 9D 13 68 90 00 57 [14:36:40]RAPDU: B8 68 AB 2E 5D 9D 13 68 90 00 [14:36:40]wFMCommunicate OK [14:36:40]SAM_PROTO_SignData done [14:36:40]FM_MakeSignedData done [14:36:40]CreateOFDProtocolMessage [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 11 00 00 [14:36:40]Write to MH i2c: E2 08 00 5F 0F 80 11 00 00 00 00 00 00 E8 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 17 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 17 00 5F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3B [14:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:36:40]wFMCommunicate OK [14:36:40]CreateOFDProtocolMessage done [14:36:40]OFDSenderStorePacket 148861 [14:36:40]StoreOFDPacket docnum=148861 [14:36:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 98 28 07 01 BF 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C8 00 00 00 F4 03 04 00 78 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7D 45 02 00 35 04 06 00 B9 C0 13 2A 54 4D B8 68 AB 2E 5D 9D 13 68 [14:36:40]CheckFolder [14:36:40]dirname=/storage/ofd_packets [14:36:40]CheckFolder done [14:36:40]ProducePacketName [14:36:40]name=ofd_packets/00148861 [14:36:40]NVStorageSaveData ofd_packets/00148861 [14:36:40]File name is /storage/ofd_packets/00148861 [14:36:40]Write 301 bytes [14:36:40]NVStorageSaveData done [14:36:40]OFDSenderStorePacket done [14:36:40]KKMCreateOFDPacket done [14:36:40]NVStorageSaveData kkm_last_timestamp [14:36:40]File name is /storage/kkm_last_timestamp [14:36:40]Write 4 bytes [14:36:40]NVStorageSaveData done [14:36:40]ExternCall_PrintAddStr [14:36:40]wPrintStart [14:36:40]Write to MH i2c: 01 00 00 60 0F 6F [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: 01 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: 01 07 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: 01 07 00 60 0F 00 00 00 00 00 FF 0F 84 [14:36:40]RasterBufferAndPrint [14:36:40]line Счет N : (1)979789 [14:36:40]line ИНН: 02508201610067 [14:36:40]line Контрольно-Кассовый Чек [14:36:40]line ПРОДАЖА [14:36:40]line ТРК (МРК, ГНК) : 22 [14:36:40]line Товар: 2710124130 [14:36:40]line Аи-92-К-5 [14:36:40]line 10.470 * 66.90 [14:36:40]line = 700.44 [14:36:40]line НДС 12% НСП 1% [14:36:40]line > о реализуемом товаре [14:36:40]line ОКРУГЛЕНИЕ: -0.44 [14:36:40]line ИТОГО: 700.00 [14:36:40]line Внесено: 700.00 [14:36:40]line СДАЧА: 0.00 [14:36:40]line НСП 1% : 6.20 [14:36:40]line НДС 12% : 74.38 [14:36:40]line Наличными: 700.00 [14:36:40]line Безнал.: 0.00 [14:36:40]line Место: АЗС № 68 "Партнер Нефть" [14:36:40]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:36:40]line СНО: Общий режим [14:36:40]line Чек 200 04.06.2024 14:36 [14:36:40]line Смена: 368 ФФД: 1.0 [14:36:40]line ЗНМ: 0300000035 [14:36:40]line РНМ: 0000000000092720 [14:36:40]line Версия ККМ: 001 [14:36:40]line ФМ: 0000000000875057 [14:36:40]line ФД: 148861 [14:36:40]line ФПД: 204234606400589 [14:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143640&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148861&fm=204234606400589&tin=02508201610067®Number=0000000000092720&sum=70000 [14:36:41]OFD Sender: Processing packet 148861 [packets to send 100, broken 99] [14:36:41]ProducePacketName [14:36:41]name=ofd_packets/00148861 [14:36:41]OFD Sender: To server: pG, [14:36:41]CommunicateWithHost lk.salyk.kg:30040 [14:36:41]ConnectInit lk.salyk.kg [14:36:41]written 0, free lines is 4095 [14:36:41]Write to MH i2c: 01 00 00 8B 0F 9A [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 07 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 07 00 8B 0F 00 00 00 00 00 6B 0C 18 [14:36:41]RasterBufferAndPrint [14:36:41]line [14:36:41]line [14:36:41]line [14:36:41]line [14:36:41]line [14:36:41]written 0, free lines is 3181 [14:36:41]MH_Cut [14:36:41]Write to MH i2c: D1 01 00 92 0F 01 73 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: D1 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: D1 01 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: D1 01 00 92 0F 00 72 [14:36:41]Write to MH i2c: 01 00 00 93 0F A2 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:42]*** Cut start [14:36:42]*** Partial cut [14:36:42]*** CUTSNS_PIN = 1 [14:36:42]*** CUTSNS_PIN = 0 [14:36:43]*** Brake cut motor [14:36:43]Read from MH i2c: 01 [14:36:43]MH_I2C_Read... [14:36:43]*** Stop cut motor [14:36:43]*** Cut end [14:36:43]Read from MH i2c: 01 07 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: 01 07 00 93 0F 00 00 00 00 00 FF 0F B7 [14:36:43]process_action close_receipt done [14:36:43]requested_data is exist [14:36:43]produce_requested_data [14:36:43]requested_item fm.sn is exist - process it [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 11 00 00 [14:36:43]Write to MH i2c: E2 08 00 94 0F 80 11 00 00 00 00 00 00 1D [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 17 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 17 00 94 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 70 [14:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:36:43]wFMCommunicate OK [14:36:43]requested_item fd.num is exist - process it [14:36:43]SAM_PROTO_GetFieldsCounters [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 13 00 00 [14:36:43]Write to MH i2c: E2 08 00 95 0F 80 13 00 00 00 00 00 00 20 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 62 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 62 00 95 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7D 45 02 00 0E 04 04 00 70 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 C9 [14:36:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7D 45 02 00 0E 04 04 00 70 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 [14:36:43]wFMCommunicate OK [14:36:43]SAM_PROTO_GetFieldsCounters done [14:36:43]requested_item shift.num is exist - process it [14:36:43]requested_item shift.opened is exist - process it [14:36:43]req_shift_opened [14:36:43]FM_GetShiftState [14:36:43]SAM_PROTO_GetShiftState [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 13 01 00 [14:36:43]Write to MH i2c: E2 08 00 96 0F 80 13 01 00 00 00 00 00 22 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 0E 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 0E 00 96 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E5 [14:36:43]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:36:43]wFMCommunicate OK [14:36:43]SAM_PROTO_GetShiftState done [14:36:43]FM_GetShiftState done [14:36:43]req_shift_opened done [14:36:43]requested_item shift.open_date is exist - process it [14:36:43]req_shift_open_date [14:36:43]req_shift_open_date done [14:36:43]produce_requested_data done [14:36:43]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148861,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:36:43]process_action_free close_receipt [14:36:43]json_value_free [14:36:43]json_value_free done [14:36:43]process_json_proto returns [14:36:43]Send response to host [14:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148861,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:36:43]free response buf [14:36:43]execute_script done [14:36:43]execute_script returns [14:36:43]free content buf [14:36:43]Sock 7.Close socket [14:36:43]Sock 7.Thread stoped [14:37:39]accept exits with 9 [14:37:39]New connection [14:37:39]New thread 3067407716 created [14:37:39]Thread 3067264356 joined [14:37:39]Waiting for new connection... [14:37:39] Sock 9.Parse request [14:37:39]Sock 9.Check first char [14:37:39]Sock 9.First char is OK [14:37:39]request: POST /json_proto HTTP/1.0 [14:37:39]Method: POST [14:37:39]URL: /json_proto [14:37:39]Method is POST - this is cgi request [14:37:39]url: /json_proto [14:37:39]query_string will be loaded in cgi processing [14:37:39]execute_cgi json_proto POST (null) [14:37:39]execute_cgi path=json_proto method=POST [14:37:39]POST find Content-Length [14:37:39]Host: 172.17.38.4:8080 [14:37:39]Content-Length: 677 [14:37:39]Content-Type: application/json [14:37:39] [14:37:39]POST finish read [14:37:39]Found Content-Length = 677 [14:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:39]execute_script... [14:37: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)979790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:39]POST & json_proto [14:37:39]process_json_proto [14:37:39]json parsed OK: [14:37:39]protocol is kg_v1.0 [14:37:39]action value=close_receipt [14:37:39]process_action close_receipt [14:37:39]cmd_close_receipt [14:37:39]MH_GetDate [14:37:39]Write to MH i2c: F0 00 00 97 0F 95 [14:37:39]Write i2c OK [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: F0 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: F0 09 00 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: F0 09 00 97 0F 00 B4 26 5F 66 CC 51 87 64 45 [14:37:39]GetLastDocTimeStamp 1717511800 [14:37:39]current date 1717511860 [14:37:39]FM_GetShiftState [14:37:39]SAM_PROTO_GetShiftState [14:37:39]wFMCommunicate request_size=4 [14:37:39]MH_SAM_APDU [14:37:39]CAPDU: 80 13 01 00 [14:37:39]Write to MH i2c: E2 08 00 98 0F 80 13 01 00 00 00 00 00 24 [14:37:39]Write i2c OK [14:37:39]MH_I2C_Read... [14:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:39]Read from MH i2c: E2 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: E2 0E 00 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: E2 0E 00 98 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E7 [14:37:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:37:39]wFMCommunicate OK [14:37:39]SAM_PROTO_GetShiftState done [14:37:39]FM_GetShiftState done [14:37:39]opened in 1717460629 [14:37:39]opened+sec_in_day 1717547029 [14:37:39]quantity*price = 60009 [14:37:39]sum+1 = 60010 [14:37:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 201 04.06.2024 14:37 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148862 ФПД: 220443486081544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143740&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148862&fm=220443486081544&tin=02508201610067®Number=0000000000092720&sum=60000 [14:37:40]StoreToDocumentArchive [14:37:40]shift 368 fd 148862 [14:37:40]save to /storage/0368/doc_00148862 [14:37:40]save last doc name /storage/0368/doc_00148862 to /storage/kkm_last_doc_name [14:37:40]save OK [14:37:40]Clear old archive folders... [14:37:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:40]tlvbuf is 004836B0 [14:37:40]SAM_PROTO_ClearQueue [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 09 00 00 [14:37:40]Write to MH i2c: E2 08 00 A5 0F 80 09 00 00 00 00 00 00 26 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 A5 0F 00 90 00 28 [14:37:40]RAPDU: 90 00 [14:37:40]wFMCommunicate OK [14:37:40]SAM_PROTO_ClearQueue done [14:37:40]KKMCreateOFDPacket [14:37:40]OFDProtocolAddRootSTLVToBuf [14:37:40]FM_MakeSignedData [14:37:40]FM_MakeSignedData [14:37:40]SAM_PROTO_SignData [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 0D 01 02 [14:37:40]Write to MH i2c: E2 08 00 A6 0F 80 0D 01 02 00 00 00 00 2E [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 A6 0F 00 90 00 29 [14:37:40]RAPDU: 90 00 [14:37:40]wFMCommunicate OK [14:37:40]wFMCommunicate request_size=255 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 B4 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7E 45 02 00 35 04 06 00 C8 [14:37:40]Write to MH i2c: E2 02 01 A7 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 B4 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7E 45 02 00 35 04 06 00 C8 00 00 FB [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [14:37:40]RAPDU: 90 00 [14:37:40]wFMCommunicate OK [14:37:40]wFMCommunicate request_size=10 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 0D 02 02 05 7D FF AE 52 08 [14:37:40]Write to MH i2c: E2 0D 00 A8 0F 80 0D 02 02 05 00 7D FF AE 52 08 00 00 BF [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:41]Read from MH i2c: E2 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 03 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [14:37:41]RAPDU: 90 00 [14:37:41]wFMCommunicate OK [14:37:41]wFMCommunicate request_size=4 [14:37:41]MH_SAM_APDU [14:37:41]CAPDU: 80 0D 03 02 [14:37:41]Write to MH i2c: E2 08 00 A9 0F 80 0D 03 02 00 00 00 00 33 [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:41]Read from MH i2c: E2 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 0B 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 0B 00 A9 0F 00 18 38 71 25 79 4F 9F 8B 90 00 0C [14:37:41]RAPDU: 18 38 71 25 79 4F 9F 8B 90 00 [14:37:41]wFMCommunicate OK [14:37:41]SAM_PROTO_SignData done [14:37:41]FM_MakeSignedData done [14:37:41]CreateOFDProtocolMessage [14:37:41]wFMCommunicate request_size=4 [14:37:41]MH_SAM_APDU [14:37:41]CAPDU: 80 11 00 00 [14:37:41]Write to MH i2c: E2 08 00 AA 0F 80 11 00 00 00 00 00 00 33 [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:41]Read from MH i2c: E2 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 17 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 17 00 AA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 86 [14:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:37:41]wFMCommunicate OK [14:37:41]CreateOFDProtocolMessage done [14:37:41]OFDSenderStorePacket 148862 [14:37:41]StoreOFDPacket docnum=148862 [14:37:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 21 29 07 01 8B F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 B4 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7E 45 02 00 35 04 06 00 C8 7D FF AE 52 08 18 38 71 25 79 4F 9F 8B [14:37:41]CheckFolder [14:37:41]dirname=/storage/ofd_packets [14:37:41]CheckFolder done [14:37:41]ProducePacketName [14:37:41]name=ofd_packets/00148862 [14:37:41]NVStorageSaveData ofd_packets/00148862 [14:37:41]File name is /storage/ofd_packets/00148862 [14:37:41]Write 301 bytes [14:37:41]NVStorageSaveData done [14:37:41]OFDSenderStorePacket done [14:37:41]KKMCreateOFDPacket done [14:37:41]NVStorageSaveData kkm_last_timestamp [14:37:41]File name is /storage/kkm_last_timestamp [14:37:41]Write 4 bytes [14:37:41]NVStorageSaveData done [14:37:41]ExternCall_PrintAddStr [14:37:41]wPrintStart [14:37:41]Write to MH i2c: 01 00 00 AB 0F BA [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 AB 0F 00 00 00 00 00 FF 0F CF [14:37:41]RasterBufferAndPrint [14:37:41]line Счет N : (1)979790 [14:37:41]line ИНН: 02508201610067 [14:37:41]line Контрольно-Кассовый Чек [14:37:41]line ПРОДАЖА [14:37:41]line ТРК (МРК, ГНК) : 12 [14:37:41]line Товар: 2710124130 [14:37:41]line Аи-92-К-5 [14:37:41]line 8.970 * 66.90 [14:37:41]line = 600.09 [14:37:41]line НДС 12% НСП 1% [14:37:41]line > о реализуемом товаре [14:37:41]line ОКРУГЛЕНИЕ: -0.09 [14:37:41]line ИТОГО: 600.00 [14:37:41]line Внесено: 600.00 [14:37:41]line СДАЧА: 0.00 [14:37:41]line НСП 1% : 5.31 [14:37:41]line НДС 12% : 63.73 [14:37:41]line Наличными: 600.00 [14:37:41]line Безнал.: 0.00 [14:37:41]line Место: АЗС № 68 "Партнер Нефть" [14:37:41]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:37:41]line СНО: Общий режим [14:37:41]line Чек 201 04.06.2024 14:37 [14:37:41]line Смена: 368 ФФД: 1.0 [14:37:41]line ЗНМ: 0300000035 [14:37:41]line РНМ: 0000000000092720 [14:37:41]line Версия ККМ: 001 [14:37:41]line ФМ: 0000000000875057 [14:37:41]line ФД: 148862 [14:37:41]line ФПД: 220443486081544 [14:37:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143740&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148862&fm=220443486081544&tin=02508201610067®Number=0000000000092720&sum=60000 [14:37:41]written 0, free lines is 4095 [14:37:41]Write to MH i2c: 01 00 00 D6 0F E5 [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 D6 0F 00 00 00 00 00 69 0C 61 [14:37:41]RasterBufferAndPrint [14:37:41]line [14:37:41]line [14:37:41]line [14:37:41]line [14:37:41]line [14:37:41]written 0, free lines is 3180 [14:37:41]MH_Cut [14:37:41]Write to MH i2c: D1 01 00 DD 0F 01 BE [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: D1 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: D1 01 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: D1 01 00 DD 0F 00 BD [14:37:41]Write to MH i2c: 01 00 00 DE 0F ED [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:43]*** Cut start [14:37:43]*** Partial cut [14:37:43]*** CUTSNS_PIN = 1 [14:37:43]*** CUTSNS_PIN = 0 [14:37:43]*** Brake cut motor [14:37:43]Read from MH i2c: 01 [14:37:43]MH_I2C_Read... [14:37:43]*** Stop cut motor [14:37:43]*** Cut end [14:37:43]Read from MH i2c: 01 07 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: 01 07 00 DE 0F 00 00 00 00 00 FF 0F 02 [14:37:43]process_action close_receipt done [14:37:43]requested_data is exist [14:37:43]produce_requested_data [14:37:43]requested_item fm.sn is exist - process it [14:37:43]wFMCommunicate request_size=4 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 11 00 00 [14:37:43]Write to MH i2c: E2 08 00 DF 0F 80 11 00 00 00 00 00 00 68 [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:43]Read from MH i2c: E2 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 17 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: E2 17 00 DF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BB [14:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:37:43]wFMCommunicate OK [14:37:43]requested_item fd.num is exist - process it [14:37:43]SAM_PROTO_GetFieldsCounters [14:37:43]wFMCommunicate request_size=4 [14:37:43]MH_SAM_APDU [14:37:43]CAPDU: 80 13 00 00 [14:37:43]Write to MH i2c: E2 08 00 E0 0F 80 13 00 00 00 00 00 00 6B [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:44]Read from MH i2c: E2 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 62 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 62 00 E0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7E 45 02 00 0E 04 04 00 70 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 18 [14:37:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7E 45 02 00 0E 04 04 00 70 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 [14:37:44]wFMCommunicate OK [14:37:44]SAM_PROTO_GetFieldsCounters done [14:37:44]requested_item shift.num is exist - process it [14:37:44]requested_item shift.opened is exist - process it [14:37:44]req_shift_opened [14:37:44]FM_GetShiftState [14:37:44]SAM_PROTO_GetShiftState [14:37:44]wFMCommunicate request_size=4 [14:37:44]MH_SAM_APDU [14:37:44]CAPDU: 80 13 01 00 [14:37:44]Write to MH i2c: E2 08 00 E1 0F 80 13 01 00 00 00 00 00 6D [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:44]Read from MH i2c: E2 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 0E 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 0E 00 E1 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 30 [14:37:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:37:44]wFMCommunicate OK [14:37:44]SAM_PROTO_GetShiftState done [14:37:44]FM_GetShiftState done [14:37:44]req_shift_opened done [14:37:44]requested_item shift.open_date is exist - process it [14:37:44]req_shift_open_date [14:37:44]req_shift_open_date done [14:37:44]produce_requested_data done [14:37:44]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148862,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:37:44]process_action_free close_receipt [14:37:44]json_value_free [14:37:44]json_value_free done [14:37:44]process_json_proto returns [14:37:44]Send response to host [14:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148862,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:37:44]free response buf [14:37:44]execute_script done [14:37:44]execute_script returns [14:37:44]free content buf [14:37:44]Sock 9.Close socket [14:37:44]Sock 9.Thread stoped [14:37:54]accept exits with 7 [14:37:54]New connection [14:37:54]New thread 3067264356 created [14:37:54]Thread 3067407716 joined [14:37:54]Waiting for new connection... [14:37:54] Sock 7.Parse request [14:37:54]Sock 7.Check first char [14:37:54]Sock 7.First char is OK [14:37:54]request: POST /json_proto HTTP/1.0 [14:37:54]Method: POST [14:37:54]URL: /json_proto [14:37:54]Method is POST - this is cgi request [14:37:54]url: /json_proto [14:37:54]query_string will be loaded in cgi processing [14:37:54]execute_cgi json_proto POST (null) [14:37:54]execute_cgi path=json_proto method=POST [14:37:54]POST find Content-Length [14:37:54]Host: 172.17.38.4:8080 [14:37:54]Content-Length: 1175 [14:37:54]Content-Type: application/json [14:37:54] [14:37:54]POST finish read [14:37:54]Found Content-Length = 1175 [14:37: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979791\u000A04.06.2024 14:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3752332\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:54]execute_script... [14:37: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979791\u000A04.06.2024 14:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3752332\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:54]POST & json_proto [14:37:54]process_json_proto [14:37:54]json parsed OK: [14:37:54]protocol is kg_v1.0 [14:37:54]action value=print_text [14:37:54]process_action print_text [14:37:54]cmd_print_text [14:37:54]ExternCall_PrintAddStr [14:37:54]wPrintStart [14:37:54]Write to MH i2c: 01 00 00 E2 0F F1 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 07 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 07 00 E2 0F 00 00 00 00 00 FF 0F 06 [14:37:54]RasterBufferAndPrint [14:37:54]line *****ТОВАРНЫЙ ЧЕК***** [14:37:54]line АЗС 68 [14:37:54]line Партнер нефть [14:37:54]line 02508201610067 [14:37:54]line Кассир : Аскаров Н. [14:37:54]line Счет N : (1)979791 [14:37:54]line 04.06.2024 14:18 [14:37:54]line ПРОДАЖА [14:37:54]line ТРК (МРК, ГНК): 52 [14:37:54]line Вид ГСМ : 2710194210 [14:37:54]line ДТ-К-5 [14:37:54]line 10.000 x 72.90 [14:37:54]line ИТОГ: 729.00 [14:37:54]line Тип оплаты: Талоны: Партнер нефть [14:37:54]line 3752332 [14:37:54]line ______________________ [14:37:54]line (подпись) [14:37:54]written 0, free lines is 4095 [14:37:54]Write to MH i2c: 01 00 00 F6 0F 05 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 07 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 07 00 F6 0F 00 00 00 00 00 10 0E 2A [14:37:54]RasterBufferAndPrint [14:37:54]line [14:37:54]line [14:37:54]line [14:37:54]line [14:37:54]line [14:37:54]written 0, free lines is 3601 [14:37:54]MH_Cut [14:37:54]Write to MH i2c: D1 01 00 FD 0F 01 DE [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: D1 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: D1 01 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: D1 01 00 FD 0F 00 DD [14:37:54]Write to MH i2c: 01 00 00 FE 0F 0D [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:55]*** Cut start [14:37:55]*** Partial cut [14:37:55]*** CUTSNS_PIN = 1 [14:37:55]*** CUTSNS_PIN = 0 [14:37:55]*** Brake cut motor [14:37:55]Read from MH i2c: 01 [14:37:55]MH_I2C_Read... [14:37:55]*** Stop cut motor [14:37:55]*** Cut end [14:37:55]Read from MH i2c: 01 07 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 07 00 FE 0F 00 00 00 00 00 FF 0F 22 [14:37:55]process_action print_text done [14:37:55]requested_data is exist [14:37:55]produce_requested_data [14:37:55]requested_item fm.sn is exist - process it [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 11 00 00 [14:37:55]Write to MH i2c: E2 08 00 FF 0F 80 11 00 00 00 00 00 00 88 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 17 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 17 00 FF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DB [14:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:37:55]wFMCommunicate OK [14:37:55]requested_item fd.num is exist - process it [14:37:55]SAM_PROTO_GetFieldsCounters [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 13 00 00 [14:37:55]Write to MH i2c: E2 08 00 00 10 80 13 00 00 00 00 00 00 8C [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 62 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 62 00 00 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7E 45 02 00 0E 04 04 00 70 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 39 [14:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7E 45 02 00 0E 04 04 00 70 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 [14:37:55]wFMCommunicate OK [14:37:55]SAM_PROTO_GetFieldsCounters done [14:37:55]requested_item shift.num is exist - process it [14:37:55]requested_item shift.opened is exist - process it [14:37:55]req_shift_opened [14:37:55]FM_GetShiftState [14:37:55]SAM_PROTO_GetShiftState [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 13 01 00 [14:37:55]Write to MH i2c: E2 08 00 01 10 80 13 01 00 00 00 00 00 8E [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 0E 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 0E 00 01 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 51 [14:37:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:37:55]wFMCommunicate OK [14:37:55]SAM_PROTO_GetShiftState done [14:37:55]FM_GetShiftState done [14:37:55]req_shift_opened done [14:37:55]requested_item shift.open_date is exist - process it [14:37:55]req_shift_open_date [14:37:55]req_shift_open_date done [14:37:55]produce_requested_data done [14:37:55]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148862,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:37:55]process_action_free print_text [14:37:55]json_value_free [14:37:55]json_value_free done [14:37:55]process_json_proto returns [14:37:55]Send response to host [14:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148862,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:37:55]free response buf [14:37:55]execute_script done [14:37:55]execute_script returns [14:37:55]free content buf [14:37:55]Sock 7.Close socket [14:37:55]Sock 7.Thread stoped [14:38:01]accept exits with 9 [14:38:01]New connection [14:38:01]New thread 3067407716 created [14:38:01]Thread 3067264356 joined [14:38:01]Waiting for new connection... [14:38:01] Sock 9.Parse request [14:38:01]Sock 9.Check first char [14:38:01]Sock 9.First char is OK [14:38:01]request: POST /json_proto HTTP/1.0 [14:38:01]Method: POST [14:38:01]URL: /json_proto [14:38:01]Method is POST - this is cgi request [14:38:01]url: /json_proto [14:38:01]query_string will be loaded in cgi processing [14:38:01]execute_cgi json_proto POST (null) [14:38:01]execute_cgi path=json_proto method=POST [14:38:01]POST find Content-Length [14:38:01]Host: 172.17.38.4:8080 [14:38:01]Content-Length: 677 [14:38:01]Content-Type: application/json [14:38:01] [14:38:01]POST finish read [14:38:01]Found Content-Length = 677 [14:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:01]execute_script... [14:38: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)979792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:01]POST & json_proto [14:38:01]process_json_proto [14:38:01]json parsed OK: [14:38:01]protocol is kg_v1.0 [14:38:01]action value=close_receipt [14:38:01]process_action close_receipt [14:38:01]cmd_close_receipt [14:38:01]MH_GetDate [14:38:01]Write to MH i2c: F0 00 00 02 10 01 [14:38:01]Write i2c OK [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: F0 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: F0 09 00 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: F0 09 00 02 10 00 CA 26 5F 66 CC 51 87 64 C7 [14:38:01]GetLastDocTimeStamp 1717511860 [14:38:01]current date 1717511882 [14:38:01]FM_GetShiftState [14:38:01]SAM_PROTO_GetShiftState [14:38:01]wFMCommunicate request_size=4 [14:38:01]MH_SAM_APDU [14:38:01]CAPDU: 80 13 01 00 [14:38:01]Write to MH i2c: E2 08 00 03 10 80 13 01 00 00 00 00 00 90 [14:38:01]Write i2c OK [14:38:01]MH_I2C_Read... [14:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:01]Read from MH i2c: E2 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: E2 0E 00 [14:38:01]MH_I2C_Read... [14:38:01]Read from MH i2c: E2 0E 00 03 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 53 [14:38:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:38:01]wFMCommunicate OK [14:38:01]SAM_PROTO_GetShiftState done [14:38:01]FM_GetShiftState done [14:38:01]opened in 1717460629 [14:38:01]opened+sec_in_day 1717547029 [14:38:01]quantity*price = 20003 [14:38:01]sum+1 = 20004 [14:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 202 04.06.2024 14:38 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148863 ФПД: 163818673902178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143802&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148863&fm=163818673902178&tin=02508201610067®Number=0000000000092720&sum=20000 [14:38:02]StoreToDocumentArchive [14:38:02]shift 368 fd 148863 [14:38:02]save to /storage/0368/doc_00148863 [14:38:02]save last doc name /storage/0368/doc_00148863 to /storage/kkm_last_doc_name [14:38:02]save OK [14:38:02]Clear old archive folders... [14:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:02]tlvbuf is B6F300E0 [14:38:02]SAM_PROTO_ClearQueue [14:38:02]wFMCommunicate request_size=4 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 09 00 00 [14:38:02]Write to MH i2c: E2 08 00 10 10 80 09 00 00 00 00 00 00 92 [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 10 10 00 90 00 94 [14:38:02]RAPDU: 90 00 [14:38:02]wFMCommunicate OK [14:38:02]SAM_PROTO_ClearQueue done [14:38:02]KKMCreateOFDPacket [14:38:02]OFDProtocolAddRootSTLVToBuf [14:38:02]FM_MakeSignedData [14:38:02]FM_MakeSignedData [14:38:02]SAM_PROTO_SignData [14:38:02]wFMCommunicate request_size=4 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 0D 01 02 [14:38:02]Write to MH i2c: E2 08 00 11 10 80 0D 01 02 00 00 00 00 9A [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 11 10 00 90 00 95 [14:38:02]RAPDU: 90 00 [14:38:02]wFMCommunicate OK [14:38:02]wFMCommunicate request_size=255 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 CA 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7F 45 02 00 35 04 06 00 94 [14:38:02]Write to MH i2c: E2 02 01 12 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CA 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7F 45 02 00 35 04 06 00 94 00 00 30 [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 12 10 00 90 00 96 [14:38:02]RAPDU: 90 00 [14:38:02]wFMCommunicate OK [14:38:02]wFMCommunicate request_size=10 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 0D 02 02 05 FE 01 DD 92 62 [14:38:02]Write to MH i2c: E2 0D 00 13 10 80 0D 02 02 05 00 FE 01 DD 92 62 00 00 77 [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 03 00 13 10 00 90 00 97 [14:38:02]RAPDU: 90 00 [14:38:02]wFMCommunicate OK [14:38:02]wFMCommunicate request_size=4 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 0D 03 02 [14:38:02]Write to MH i2c: E2 08 00 14 10 80 0D 03 02 00 00 00 00 9F [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 0B 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 0B 00 14 10 00 E4 58 F4 60 E6 EE 7F 10 90 00 93 [14:38:02]RAPDU: E4 58 F4 60 E6 EE 7F 10 90 00 [14:38:02]wFMCommunicate OK [14:38:02]SAM_PROTO_SignData done [14:38:02]FM_MakeSignedData done [14:38:02]CreateOFDProtocolMessage [14:38:02]wFMCommunicate request_size=4 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 11 00 00 [14:38:02]Write to MH i2c: E2 08 00 15 10 80 11 00 00 00 00 00 00 9F [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 17 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 17 00 15 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F2 [14:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:38:02]wFMCommunicate OK [14:38:02]CreateOFDProtocolMessage done [14:38:02]OFDSenderStorePacket 148863 [14:38:02]StoreOFDPacket docnum=148863 [14:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CF 1A 07 01 79 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 CA 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7F 45 02 00 35 04 06 00 94 FE 01 DD 92 62 E4 58 F4 60 E6 EE 7F 10 [14:38:02]CheckFolder [14:38:02]dirname=/storage/ofd_packets [14:38:02]CheckFolder done [14:38:02]ProducePacketName [14:38:02]name=ofd_packets/00148863 [14:38:02]NVStorageSaveData ofd_packets/00148863 [14:38:02]File name is /storage/ofd_packets/00148863 [14:38:02]Write 301 bytes [14:38:02]NVStorageSaveData done [14:38:02]OFDSenderStorePacket done [14:38:02]KKMCreateOFDPacket done [14:38:02]NVStorageSaveData kkm_last_timestamp [14:38:02]File name is /storage/kkm_last_timestamp [14:38:02]Write 4 bytes [14:38:02]NVStorageSaveData done [14:38:02]ExternCall_PrintAddStr [14:38:02]wPrintStart [14:38:02]Write to MH i2c: 01 00 00 16 10 26 [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: 01 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: 01 07 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: 01 07 00 16 10 00 00 00 00 00 FF 0F 3B [14:38:02]RasterBufferAndPrint [14:38:02]line Счет N : (1)979792 [14:38:02]line ИНН: 02508201610067 [14:38:02]line Контрольно-Кассовый Чек [14:38:02]line ПРОДАЖА [14:38:02]line ТРК (МРК, ГНК) : 31 [14:38:02]line Товар: 2710124130 [14:38:02]line Аи-92-К-5 [14:38:02]line 2.990 * 66.90 [14:38:02]line = 200.03 [14:38:02]line НДС 12% НСП 1% [14:38:02]line > о реализуемом товаре [14:38:02]line ОКРУГЛЕНИЕ: -0.03 [14:38:02]line ИТОГО: 200.00 [14:38:02]line Внесено: 200.00 [14:38:02]line СДАЧА: 0.00 [14:38:02]line НСП 1% : 1.77 [14:38:02]line НДС 12% : 21.24 [14:38:02]line Наличными: 200.00 [14:38:02]line Безнал.: 0.00 [14:38:02]line Место: АЗС № 68 "Партнер Нефть" [14:38:02]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:38:02]line СНО: Общий режим [14:38:02]line Чек 202 04.06.2024 14:38 [14:38:02]line Смена: 368 ФФД: 1.0 [14:38:02]line ЗНМ: 0300000035 [14:38:02]line РНМ: 0000000000092720 [14:38:02]line Версия ККМ: 001 [14:38:02]line ФМ: 0000000000875057 [14:38:02]line ФД: 148863 [14:38:02]line ФПД: 163818673902178 [14:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143802&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148863&fm=163818673902178&tin=02508201610067®Number=0000000000092720&sum=20000 [14:38:03]written 0, free lines is 4095 [14:38:03]Write to MH i2c: 01 00 00 41 10 51 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: 01 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: 01 07 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: 01 07 00 41 10 00 00 00 00 00 6B 0C CF [14:38:03]RasterBufferAndPrint [14:38:03]line [14:38:03]line [14:38:03]line [14:38:03]line [14:38:03]line [14:38:03]written 0, free lines is 3182 [14:38:03]MH_Cut [14:38:03]Write to MH i2c: D1 01 00 48 10 01 2A [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: D1 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: D1 01 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: D1 01 00 48 10 00 29 [14:38:03]Write to MH i2c: 01 00 00 49 10 59 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:04]*** Cut start [14:38:04]*** Partial cut [14:38:04]*** CUTSNS_PIN = 1 [14:38:04]*** CUTSNS_PIN = 0 [14:38:05]*** Brake cut motor [14:38:05]Read from MH i2c: 01 [14:38:05]MH_I2C_Read... [14:38:05]*** Stop cut motor [14:38:05]*** Cut end [14:38:05]Read from MH i2c: 01 07 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 07 00 49 10 00 00 00 00 00 FF 0F 6E [14:38:05]process_action close_receipt done [14:38:05]requested_data is exist [14:38:05]produce_requested_data [14:38:05]requested_item fm.sn is exist - process it [14:38:05]wFMCommunicate request_size=4 [14:38:05]MH_SAM_APDU [14:38:05]CAPDU: 80 11 00 00 [14:38:05]Write to MH i2c: E2 08 00 4A 10 80 11 00 00 00 00 00 00 D4 [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:05]Read from MH i2c: E2 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 17 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 17 00 4A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 27 [14:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:38:05]wFMCommunicate OK [14:38:05]requested_item fd.num is exist - process it [14:38:05]SAM_PROTO_GetFieldsCounters [14:38:05]wFMCommunicate request_size=4 [14:38:05]MH_SAM_APDU [14:38:05]CAPDU: 80 13 00 00 [14:38:05]Write to MH i2c: E2 08 00 4B 10 80 13 00 00 00 00 00 00 D7 [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:05]Read from MH i2c: E2 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 62 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 62 00 4B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7F 45 02 00 0E 04 04 00 70 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 88 [14:38:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 7F 45 02 00 0E 04 04 00 70 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 [14:38:05]wFMCommunicate OK [14:38:05]SAM_PROTO_GetFieldsCounters done [14:38:05]requested_item shift.num is exist - process it [14:38:05]requested_item shift.opened is exist - process it [14:38:05]req_shift_opened [14:38:05]FM_GetShiftState [14:38:05]SAM_PROTO_GetShiftState [14:38:05]wFMCommunicate request_size=4 [14:38:05]MH_SAM_APDU [14:38:05]CAPDU: 80 13 01 00 [14:38:05]Write to MH i2c: E2 08 00 4C 10 80 13 01 00 00 00 00 00 D9 [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:05]Read from MH i2c: E2 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 0E 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 0E 00 4C 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9C [14:38:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:38:05]wFMCommunicate OK [14:38:05]SAM_PROTO_GetShiftState done [14:38:05]FM_GetShiftState done [14:38:05]req_shift_opened done [14:38:05]requested_item shift.open_date is exist - process it [14:38:05]req_shift_open_date [14:38:05]req_shift_open_date done [14:38:05]produce_requested_data done [14:38:05]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148863,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:38:05]process_action_free close_receipt [14:38:05]json_value_free [14:38:05]json_value_free done [14:38:05]process_json_proto returns [14:38:05]Send response to host [14:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148863,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:38:05]free response buf [14:38:05]execute_script done [14:38:05]execute_script returns [14:38:05]free content buf [14:38:05]Sock 9.Close socket [14:38:05]Sock 9.Thread stoped [14:38:51]ConnectInit Can't connect to host [14:38:51]CommunicateWithHost connect error [14:38:51]CommunicateWithHost err = -1 [14:38:51]OFD Sender: Server communicate error [14:38:51]OFD Sender: Processing packet 148861 [packets to send 102, broken 99] [14:38:51]ProducePacketName [14:38:51]name=ofd_packets/00148861 [14:38:51]OFD Sender: To server: pG, [14:38:51]CommunicateWithHost lk.salyk.kg:30040 [14:38:51]ConnectInit lk.salyk.kg [14:38:51]Connected sock=9 [14:38:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 98 28 07 01 BF 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C8 00 00 00 F4 03 04 00 78 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7D 45 02 00 35 04 06 00 B9 C0 13 2A 54 4D B8 68 AB 2E 5D 9D 13 68 [14:38:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3B 95 47 00 D3 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7D 45 02 00 F4 03 04 00 1E CE 5E 66 B6 04 01 00 00 E3 0B 0B 39 6E B2 AC 71 [14:38:51]CommunicateWithHost err = 0 [14:38:51]CheckOFDResponse [14:38:51]1017 (14) - 77093643461234 [14:38:51]1041 (16) - 0000000000875057 [14:38:51]1040 (4) - 148861 [14:38:51]1012 (4) - 04.06.2024 08:19 [14:38:51]1206 (1) - 0 [14:38:51]OFD Sender: Remove packet 148861 [14:38:51]ProducePacketName [14:38:51]name=ofd_packets/00148861 [14:38:51]NVStorageDeleteData [14:38:51]OFD Sender: Processing packet 148862 [packets to send 101, broken 99] [14:38:51]ProducePacketName [14:38:51]name=ofd_packets/00148862 [14:38:51]OFD Sender: To server: pG, [14:38:51]CommunicateWithHost lk.salyk.kg:30040 [14:38:51]ConnectInit lk.salyk.kg [14:38:52]Connected sock=9 [14:38:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 21 29 07 01 8B F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 B4 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7E 45 02 00 35 04 06 00 C8 7D FF AE 52 08 18 38 71 25 79 4F 9F 8B [14:38:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8E 76 47 00 44 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 38 37 35 30 35 37 10 04 04 00 7E 45 02 00 F4 03 04 00 1E CE 5E 66 B6 04 01 00 00 F5 1C 30 61 F3 5D CC 5A [14:38:52]CommunicateWithHost err = 0 [14:38:52]CheckOFDResponse [14:38:52]1017 (14) - 77093643461234 [14:38:52]1041 (16) - 0000000000875057 [14:38:52]1040 (4) - 148862 [14:38:52]1012 (4) - 04.06.2024 08:19 [14:38:52]1206 (1) - 0 [14:38:52]OFD Sender: Remove packet 148862 [14:38:52]ProducePacketName [14:38:52]name=ofd_packets/00148862 [14:38:52]NVStorageDeleteData [14:38:52]OFD Sender: Processing packet 148863 [packets to send 100, broken 99] [14:38:52]ProducePacketName [14:38:52]name=ofd_packets/00148863 [14:38:52]OFD Sender: To server: pG, [14:38:52]CommunicateWithHost lk.salyk.kg:30040 [14:38:52]ConnectInit lk.salyk.kg [14:38:52]Connected sock=9 [14:38:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 CF 1A 07 01 79 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 CA 26 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 7F 45 02 00 35 04 06 00 94 FE 01 DD 92 62 E4 58 F4 60 E6 EE 7F 10 [14:38:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D4 4A 47 00 6C 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 38 37 35 30 35 37 10 04 04 00 7F 45 02 00 F4 03 04 00 1F CE 5E 66 B6 04 01 00 00 F5 97 3D 92 46 2A CF 69 [14:38:53]CommunicateWithHost err = 0 [14:38:53]CheckOFDResponse [14:38:53]1017 (14) - 77093643461234 [14:38:53]1041 (16) - 0000000000875057 [14:38:53]1040 (4) - 148863 [14:38:53]1012 (4) - 04.06.2024 08:19 [14:38:53]1206 (1) - 0 [14:38:53]OFD Sender: Remove packet 148863 [14:38:53]ProducePacketName [14:38:53]name=ofd_packets/00148863 [14:38:53]NVStorageDeleteData [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]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:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:58]accept exits with 7 [14:52:58]New connection [14:52:58]New thread 3067264356 created [14:52:58]Thread 3067407716 joined [14:52:58]Waiting for new connection... [14:52:58] Sock 7.Parse request [14:52:58]Sock 7.Check first char [14:52:58]Sock 7.First char is OK [14:52:58]request: POST /json_proto HTTP/1.0 [14:52:58]Method: POST [14:52:58]URL: /json_proto [14:52:58]Method is POST - this is cgi request [14:52:58]url: /json_proto [14:52:58]query_string will be loaded in cgi processing [14:52:58]execute_cgi json_proto POST (null) [14:52:58]execute_cgi path=json_proto method=POST [14:52:58]POST find Content-Length [14:52:58]Host: 172.17.38.4:8080 [14:52:58]Content-Length: 677 [14:52:58]Content-Type: application/json [14:52:58] [14:52:58]POST finish read [14:52:58]Found Content-Length = 677 [14:52:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:58]execute_script... [14:52: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)979793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:58]POST & json_proto [14:52:58]process_json_proto [14:52:58]json parsed OK: [14:52:58]protocol is kg_v1.0 [14:52:58]action value=close_receipt [14:52:58]process_action close_receipt [14:52:58]cmd_close_receipt [14:52:58]MH_GetDate [14:52:58]Write to MH i2c: F0 00 00 4D 10 4C [14:52:58]Write i2c OK [14:52:58]MH_I2C_Read... [14:52:58]Read from MH i2c: F0 [14:52:58]MH_I2C_Read... [14:52:58]Read from MH i2c: F0 09 00 [14:52:58]MH_I2C_Read... [14:52:58]Read from MH i2c: F0 09 00 4D 10 00 4C 2A 5F 66 CC 51 87 64 98 [14:52:58]GetLastDocTimeStamp 1717511882 [14:52:58]current date 1717512780 [14:52:58]FM_GetShiftState [14:52:58]SAM_PROTO_GetShiftState [14:52:58]wFMCommunicate request_size=4 [14:52:58]MH_SAM_APDU [14:52:58]CAPDU: 80 13 01 00 [14:52:58]Write to MH i2c: E2 08 00 4E 10 80 13 01 00 00 00 00 00 DB [14:52:58]Write i2c OK [14:52:58]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 0E 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 0E 00 4E 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9E [14:52:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:52:59]wFMCommunicate OK [14:52:59]SAM_PROTO_GetShiftState done [14:52:59]FM_GetShiftState done [14:52:59]opened in 1717460629 [14:52:59]opened+sec_in_day 1717547029 [14:52:59]quantity*price = 30038 [14:52:59]sum+1 = 30039 [14:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 203 04.06.2024 14:53 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148864 ФПД: 219485154666050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145300&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148864&fm=219485154666050&tin=02508201610067®Number=0000000000092720&sum=30000 [14:53:00]StoreToDocumentArchive [14:53:00]shift 368 fd 148864 [14:53:00]save to /storage/0368/doc_00148864 [14:53:00]save last doc name /storage/0368/doc_00148864 to /storage/kkm_last_doc_name [14:53:00]save OK [14:53:00]Clear old archive folders... [14:53:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:00]tlvbuf is 00494580 [14:53:00]SAM_PROTO_ClearQueue [14:53:00]wFMCommunicate request_size=4 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 09 00 00 [14:53:00]Write to MH i2c: E2 08 00 5B 10 80 09 00 00 00 00 00 00 DD [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 5B 10 00 90 00 DF [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]SAM_PROTO_ClearQueue done [14:53:00]KKMCreateOFDPacket [14:53:00]OFDProtocolAddRootSTLVToBuf [14:53:00]FM_MakeSignedData [14:53:00]FM_MakeSignedData [14:53:00]SAM_PROTO_SignData [14:53:00]wFMCommunicate request_size=4 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 0D 01 02 [14:53:00]Write to MH i2c: E2 08 00 5C 10 80 0D 01 02 00 00 00 00 E5 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 5C 10 00 90 00 E0 [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]wFMCommunicate request_size=255 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CB 00 00 00 F4 03 04 00 4C 2A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 80 45 02 00 35 04 06 00 C7 [14:53:00]Write to MH i2c: E2 02 01 5D 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 4C 2A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 80 45 02 00 35 04 06 00 C7 00 00 68 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 5D 10 00 90 00 E1 [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]wFMCommunicate request_size=10 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 0D 02 02 05 9E DE AD 66 42 [14:53:00]Write to MH i2c: E2 0D 00 5E 10 80 0D 02 02 05 00 9E DE AD 66 42 00 00 C3 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 5E 10 00 90 00 E2 [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]wFMCommunicate request_size=4 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 0D 03 02 [14:53:00]Write to MH i2c: E2 08 00 5F 10 80 0D 03 02 00 00 00 00 EA [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 0B 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 0B 00 5F 10 00 47 71 14 B7 B0 95 7F B8 90 00 EA [14:53:00]RAPDU: 47 71 14 B7 B0 95 7F B8 90 00 [14:53:00]wFMCommunicate OK [14:53:00]SAM_PROTO_SignData done [14:53:00]FM_MakeSignedData done [14:53:00]CreateOFDProtocolMessage [14:53:00]wFMCommunicate request_size=4 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 11 00 00 [14:53:00]Write to MH i2c: E2 08 00 60 10 80 11 00 00 00 00 00 00 EA [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 17 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 17 00 60 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3D [14:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:53:00]wFMCommunicate OK [14:53:00]CreateOFDProtocolMessage done [14:53:00]OFDSenderStorePacket 148864 [14:53:00]StoreOFDPacket docnum=148864 [14:53:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 06 45 07 01 A1 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CB 00 00 00 F4 03 04 00 4C 2A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 80 45 02 00 35 04 06 00 C7 9E DE AD 66 42 47 71 14 B7 B0 95 7F B8 [14:53:00]CheckFolder [14:53:00]dirname=/storage/ofd_packets [14:53:00]CheckFolder done [14:53:00]ProducePacketName [14:53:00]name=ofd_packets/00148864 [14:53:00]NVStorageSaveData ofd_packets/00148864 [14:53:00]File name is /storage/ofd_packets/00148864 [14:53:00]Write 301 bytes [14:53:00]NVStorageSaveData done [14:53:00]OFDSenderStorePacket done [14:53:00]KKMCreateOFDPacket done [14:53:00]NVStorageSaveData kkm_last_timestamp [14:53:00]File name is /storage/kkm_last_timestamp [14:53:00]Write 4 bytes [14:53:00]NVStorageSaveData done [14:53:00]ExternCall_PrintAddStr [14:53:00]wPrintStart [14:53:00]Write to MH i2c: 01 00 00 61 10 71 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: 01 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: 01 07 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: 01 07 00 61 10 00 00 00 00 00 FF 0F 86 [14:53:00]RasterBufferAndPrint [14:53:00]line Счет N : (1)979793 [14:53:00]line ИНН: 02508201610067 [14:53:00]line Контрольно-Кассовый Чек [14:53:00]line ПРОДАЖА [14:53:00]line ТРК (МРК, ГНК) : 22 [14:53:00]line Товар: 2710124130 [14:53:00]line Аи-92-К-5 [14:53:00]line 4.490 * 66.90 [14:53:00]line = 300.38 [14:53:00]line НДС 12% НСП 1% [14:53:00]line > о реализуемом товаре [14:53:00]line ОКРУГЛЕНИЕ: -0.38 [14:53:00]line ИТОГО: 300.00 [14:53:00]line Внесено: 300.00 [14:53:00]line СДАЧА: 0.00 [14:53:00]line НСП 1% : 2.66 [14:53:00]line НДС 12% : 31.90 [14:53:00]line Наличными: 300.00 [14:53:00]line Безнал.: 0.00 [14:53:00]line Место: АЗС № 68 "Партнер Нефть" [14:53:00]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:53:00]line СНО: Общий режим [14:53:00]line Чек 203 04.06.2024 14:53 [14:53:00]line Смена: 368 ФФД: 1.0 [14:53:00]line ЗНМ: 0300000035 [14:53:00]line РНМ: 0000000000092720 [14:53:00]line Версия ККМ: 001 [14:53:00]line ФМ: 0000000000875057 [14:53:00]line ФД: 148864 [14:53:00]line ФПД: 219485154666050 [14:53:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145300&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148864&fm=219485154666050&tin=02508201610067®Number=0000000000092720&sum=30000 [14:53:00]written 0, free lines is 4095 [14:53:00]OFD Sender: Processing packet 148864 [packets to send 100, broken 99] [14:53:00]ProducePacketName [14:53:00]name=ofd_packets/00148864 [14:53:00]OFD Sender: To server: pG, [14:53:00]CommunicateWithHost lk.salyk.kg:30040 [14:53:00]ConnectInit lk.salyk.kg [14:53:00]Connected sock=11 [14:53:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 06 45 07 01 A1 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CB 00 00 00 F4 03 04 00 4C 2A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 80 45 02 00 35 04 06 00 C7 9E DE AD 66 42 47 71 14 B7 B0 95 7F B8 [14:53:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 24 9E 47 00 92 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 38 37 35 30 35 37 10 04 04 00 80 45 02 00 F4 03 04 00 6F D1 5E 66 B6 04 01 00 00 A1 E0 E3 4F 4D 97 5A F6 [14:53:01]CommunicateWithHost err = 0 [14:53:01]CheckOFDResponse [14:53:01]1017 (14) - 77093643461234 [14:53:01]1041 (16) - 0000000000875057 [14:53:01]1040 (4) - 148864 [14:53:01]1012 (4) - 04.06.2024 08:33 [14:53:01]1206 (1) - 0 [14:53:01]OFD Sender: Remove packet 148864 [14:53:01]ProducePacketName [14:53:01]name=ofd_packets/00148864 [14:53:01]NVStorageDeleteData [14:53:01]Write to MH i2c: 01 00 00 8C 10 9C [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 8C 10 00 00 00 00 00 6C 0C 1B [14:53:01]RasterBufferAndPrint [14:53:01]line [14:53:01]line [14:53:01]line [14:53:01]line [14:53:01]line [14:53:01]written 0, free lines is 3183 [14:53:01]MH_Cut [14:53:01]Write to MH i2c: D1 01 00 93 10 01 75 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: D1 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: D1 01 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: D1 01 00 93 10 00 74 [14:53:01]Write to MH i2c: 01 00 00 94 10 A4 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]OFD Sender: No OFD packet to send [14:53:02]*** Cut start [14:53:02]*** Partial cut [14:53:02]*** CUTSNS_PIN = 1 [14:53:02]*** CUTSNS_PIN = 0 [14:53:02]*** Brake cut motor [14:53:03]Read from MH i2c: 01 [14:53:03]MH_I2C_Read... [14:53:03]*** Stop cut motor [14:53:03]*** Cut end [14:53:03]Read from MH i2c: 01 07 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: 01 07 00 94 10 00 00 00 00 00 FF 0F B9 [14:53:03]process_action close_receipt done [14:53:03]requested_data is exist [14:53:03]produce_requested_data [14:53:03]requested_item fm.sn is exist - process it [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 11 00 00 [14:53:03]Write to MH i2c: E2 08 00 95 10 80 11 00 00 00 00 00 00 1F [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 17 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 17 00 95 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 72 [14:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:53:03]wFMCommunicate OK [14:53:03]requested_item fd.num is exist - process it [14:53:03]SAM_PROTO_GetFieldsCounters [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 13 00 00 [14:53:03]Write to MH i2c: E2 08 00 96 10 80 13 00 00 00 00 00 00 22 [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 62 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 62 00 96 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 80 45 02 00 0E 04 04 00 70 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 D7 [14:53:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 80 45 02 00 0E 04 04 00 70 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 [14:53:03]wFMCommunicate OK [14:53:03]SAM_PROTO_GetFieldsCounters done [14:53:03]requested_item shift.num is exist - process it [14:53:03]requested_item shift.opened is exist - process it [14:53:03]req_shift_opened [14:53:03]FM_GetShiftState [14:53:03]SAM_PROTO_GetShiftState [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 13 01 00 [14:53:03]Write to MH i2c: E2 08 00 97 10 80 13 01 00 00 00 00 00 24 [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 0E 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 0E 00 97 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E7 [14:53:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:53:03]wFMCommunicate OK [14:53:03]SAM_PROTO_GetShiftState done [14:53:03]FM_GetShiftState done [14:53:03]req_shift_opened done [14:53:03]requested_item shift.open_date is exist - process it [14:53:03]req_shift_open_date [14:53:03]req_shift_open_date done [14:53:03]produce_requested_data done [14:53:03]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148864,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:53:03]process_action_free close_receipt [14:53:03]json_value_free [14:53:03]json_value_free done [14:53:03]process_json_proto returns [14:53:03]Send response to host [14:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148864,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:53:03]free response buf [14:53:03]execute_script done [14:53:03]execute_script returns [14:53:03]free content buf [14:53:03]Sock 7.Close socket [14:53:03]Sock 7.Thread stoped [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:53:58]accept exits with 9 [14:53:58]New connection [14:53:58]New thread 3067407716 created [14:53:58]Thread 3067264356 joined [14:53:58]Waiting for new connection... [14:53:58] Sock 9.Parse request [14:53:58]Sock 9.Check first char [14:53:58]Sock 9.First char is OK [14:53:58]request: POST /json_proto HTTP/1.0 [14:53:58]Method: POST [14:53:58]URL: /json_proto [14:53:58]Method is POST - this is cgi request [14:53:58]url: /json_proto [14:53:58]query_string will be loaded in cgi processing [14:53:58]execute_cgi json_proto POST (null) [14:53:58]execute_cgi path=json_proto method=POST [14:53:58]POST find Content-Length [14:53:58]Host: 172.17.38.4:8080 [14:53:58]Content-Length: 677 [14:53:58]Content-Type: application/json [14:53:58] [14:53:58]POST finish read [14:53:58]Found Content-Length = 677 [14:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:58]execute_script... [14:53: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)979794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:58]POST & json_proto [14:53:58]process_json_proto [14:53:58]json parsed OK: [14:53:58]protocol is kg_v1.0 [14:53:58]action value=close_receipt [14:53:58]process_action close_receipt [14:53:58]cmd_close_receipt [14:53:58]MH_GetDate [14:53:58]Write to MH i2c: F0 00 00 98 10 97 [14:53:58]Write i2c OK [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: F0 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: F0 09 00 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: F0 09 00 98 10 00 88 2A 5F 66 CC 51 87 64 1F [14:53:58]GetLastDocTimeStamp 1717512780 [14:53:58]current date 1717512840 [14:53:58]FM_GetShiftState [14:53:58]SAM_PROTO_GetShiftState [14:53:58]wFMCommunicate request_size=4 [14:53:58]MH_SAM_APDU [14:53:58]CAPDU: 80 13 01 00 [14:53:58]Write to MH i2c: E2 08 00 99 10 80 13 01 00 00 00 00 00 26 [14:53:58]Write i2c OK [14:53:58]MH_I2C_Read... [14:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:58]Read from MH i2c: E2 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: E2 0E 00 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: E2 0E 00 99 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E9 [14:53:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:53:58]wFMCommunicate OK [14:53:58]SAM_PROTO_GetShiftState done [14:53:58]FM_GetShiftState done [14:53:58]opened in 1717460629 [14:53:58]opened+sec_in_day 1717547029 [14:53:58]quantity*price = 47030 [14:53:58]sum+1 = 47032 [14:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.94 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 204 04.06.2024 14:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148865 ФПД: 195131566176447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145400&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148865&fm=195131566176447&tin=02508201610067®Number=0000000000092720&sum=47000 [14:54:00]StoreToDocumentArchive [14:54:00]shift 368 fd 148865 [14:54:00]save to /storage/0368/doc_00148865 [14:54:00]save last doc name /storage/0368/doc_00148865 to /storage/kkm_last_doc_name [14:54:00]save OK [14:54:00]Clear old archive folders... [14:54:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:00]tlvbuf is B6F303D0 [14:54:00]SAM_PROTO_ClearQueue [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 09 00 00 [14:54:00]Write to MH i2c: E2 08 00 A6 10 80 09 00 00 00 00 00 00 28 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 A6 10 00 90 00 2A [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]SAM_PROTO_ClearQueue done [14:54:00]KKMCreateOFDPacket [14:54:00]OFDProtocolAddRootSTLVToBuf [14:54:00]FM_MakeSignedData [14:54:00]FM_MakeSignedData [14:54:00]SAM_PROTO_SignData [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 0D 01 02 [14:54:00]Write to MH i2c: E2 08 00 A7 10 80 0D 01 02 00 00 00 00 30 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 A7 10 00 90 00 2B [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]wFMCommunicate request_size=255 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 88 2A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 81 45 02 00 35 04 06 00 B1 [14:54:00]Write to MH i2c: E2 02 01 A8 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 88 2A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 81 45 02 00 35 04 06 00 B1 00 00 71 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 A8 10 00 90 00 2C [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]wFMCommunicate request_size=10 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 0D 02 02 05 78 9B AF B8 BF [14:54:00]Write to MH i2c: E2 0D 00 A9 10 80 0D 02 02 05 00 78 9B AF B8 BF 00 00 76 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 A9 10 00 90 00 2D [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 0D 03 02 [14:54:00]Write to MH i2c: E2 08 00 AA 10 80 0D 03 02 00 00 00 00 35 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 0B 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 0B 00 AA 10 00 A6 96 47 02 7D 5F D2 EE 90 00 57 [14:54:00]RAPDU: A6 96 47 02 7D 5F D2 EE 90 00 [14:54:00]wFMCommunicate OK [14:54:00]SAM_PROTO_SignData done [14:54:00]FM_MakeSignedData done [14:54:00]CreateOFDProtocolMessage [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 11 00 00 [14:54:00]Write to MH i2c: E2 08 00 AB 10 80 11 00 00 00 00 00 00 35 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 17 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 17 00 AB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 88 [14:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:54:00]wFMCommunicate OK [14:54:00]CreateOFDProtocolMessage done [14:54:00]OFDSenderStorePacket 148865 [14:54:00]StoreOFDPacket docnum=148865 [14:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 71 04 07 01 9C F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 88 2A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 81 45 02 00 35 04 06 00 B1 78 9B AF B8 BF A6 96 47 02 7D 5F D2 EE [14:54:00]CheckFolder [14:54:00]dirname=/storage/ofd_packets [14:54:00]CheckFolder done [14:54:00]ProducePacketName [14:54:00]name=ofd_packets/00148865 [14:54:00]NVStorageSaveData ofd_packets/00148865 [14:54:00]File name is /storage/ofd_packets/00148865 [14:54:00]Write 301 bytes [14:54:00]NVStorageSaveData done [14:54:00]OFDSenderStorePacket done [14:54:00]KKMCreateOFDPacket done [14:54:00]NVStorageSaveData kkm_last_timestamp [14:54:00]File name is /storage/kkm_last_timestamp [14:54:00]Write 4 bytes [14:54:00]NVStorageSaveData done [14:54:00]ExternCall_PrintAddStr [14:54:00]wPrintStart [14:54:00]Write to MH i2c: 01 00 00 AC 10 BC [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 07 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 07 00 AC 10 00 00 00 00 00 FF 0F D1 [14:54:00]RasterBufferAndPrint [14:54:00]line Счет N : (1)979794 [14:54:00]line ИНН: 02508201610067 [14:54:00]line Контрольно-Кассовый Чек [14:54:00]line ПРОДАЖА [14:54:00]line ТРК (МРК, ГНК) : 12 [14:54:00]line Товар: 2710124130 [14:54:00]line Аи-92-К-5 [14:54:00]line 7.030 * 66.90 [14:54:00]line = 470.31 [14:54:00]line НДС 12% НСП 1% [14:54:00]line > о реализуемом товаре [14:54:00]line ОКРУГЛЕНИЕ: -0.31 [14:54:00]line ИТОГО: 470.00 [14:54:00]line Внесено: 470.00 [14:54:00]line СДАЧА: 0.00 [14:54:00]line НСП 1% : 4.16 [14:54:00]line НДС 12% : 49.94 [14:54:00]line Наличными: 470.00 [14:54:00]line Безнал.: 0.00 [14:54:00]line Место: АЗС № 68 "Партнер Нефть" [14:54:00]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [14:54:00]line СНО: Общий режим [14:54:00]line Чек 204 04.06.2024 14:54 [14:54:00]line Смена: 368 ФФД: 1.0 [14:54:00]line ЗНМ: 0300000035 [14:54:00]line РНМ: 0000000000092720 [14:54:00]line Версия ККМ: 001 [14:54:00]line ФМ: 0000000000875057 [14:54:00]line ФД: 148865 [14:54:00]line ФПД: 195131566176447 [14:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145400&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148865&fm=195131566176447&tin=02508201610067®Number=0000000000092720&sum=47000 [14:54:00]OFD Sender: Processing packet 148865 [packets to send 100, broken 99] [14:54:00]ProducePacketName [14:54:00]name=ofd_packets/00148865 [14:54:00]OFD Sender: To server: pG, [14:54:00]CommunicateWithHost lk.salyk.kg:30040 [14:54:00]ConnectInit lk.salyk.kg [14:54:00]written 0, free lines is 4095 [14:54:00]Connected sock=10 [14:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 71 04 07 01 9C F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 88 2A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 81 45 02 00 35 04 06 00 B1 78 9B AF B8 BF A6 96 47 02 7D 5F D2 EE [14:54:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 23 D1 47 00 C6 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 81 45 02 00 F4 03 04 00 AB D1 5E 66 B6 04 01 00 00 0E 0E D5 34 06 21 A9 43 [14:54:01]CommunicateWithHost err = 0 [14:54:01]CheckOFDResponse [14:54:01]1017 (14) - 77093643461234 [14:54:01]1041 (16) - 0000000000875057 [14:54:01]1040 (4) - 148865 [14:54:01]1012 (4) - 04.06.2024 08:34 [14:54:01]1206 (1) - 0 [14:54:01]OFD Sender: Remove packet 148865 [14:54:01]ProducePacketName [14:54:01]name=ofd_packets/00148865 [14:54:01]NVStorageDeleteData [14:54:01]Write to MH i2c: 01 00 00 D7 10 E7 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 D7 10 00 00 00 00 00 6E 0C 68 [14:54:01]RasterBufferAndPrint [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]written 0, free lines is 3185 [14:54:01]MH_Cut [14:54:01]Write to MH i2c: D1 01 00 DE 10 01 C0 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 01 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 01 00 DE 10 00 BF [14:54:01]Write to MH i2c: 01 00 00 DF 10 EF [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]OFD Sender: No OFD packet to send [14:54:02]*** Cut start [14:54:02]*** Partial cut [14:54:02]*** CUTSNS_PIN = 1 [14:54:02]*** CUTSNS_PIN = 0 [14:54:02]*** Brake cut motor [14:54:03]Read from MH i2c: 01 [14:54:03]MH_I2C_Read... [14:54:03]*** Stop cut motor [14:54:03]*** Cut end [14:54:03]Read from MH i2c: 01 07 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 DF 10 00 00 00 00 00 FF 0F 04 [14:54:03]process_action close_receipt done [14:54:03]requested_data is exist [14:54:03]produce_requested_data [14:54:03]requested_item fm.sn is exist - process it [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 11 00 00 [14:54:03]Write to MH i2c: E2 08 00 E0 10 80 11 00 00 00 00 00 00 6A [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 E0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BD [14:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [14:54:03]wFMCommunicate OK [14:54:03]requested_item fd.num is exist - process it [14:54:03]SAM_PROTO_GetFieldsCounters [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 13 00 00 [14:54:03]Write to MH i2c: E2 08 00 E1 10 80 13 00 00 00 00 00 00 6D [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 62 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 62 00 E1 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 81 45 02 00 0E 04 04 00 70 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 26 [14:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 81 45 02 00 0E 04 04 00 70 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 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_GetFieldsCounters done [14:54:03]requested_item shift.num is exist - process it [14:54:03]requested_item shift.opened is exist - process it [14:54:03]req_shift_opened [14:54:03]FM_GetShiftState [14:54:03]SAM_PROTO_GetShiftState [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 13 01 00 [14:54:03]Write to MH i2c: E2 08 00 E2 10 80 13 01 00 00 00 00 00 6F [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0E 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0E 00 E2 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 32 [14:54:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_GetShiftState done [14:54:03]FM_GetShiftState done [14:54:03]req_shift_opened done [14:54:03]requested_item shift.open_date is exist - process it [14:54:03]req_shift_open_date [14:54:03]req_shift_open_date done [14:54:03]produce_requested_data done [14:54:03]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148865,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [14:54:03]process_action_free close_receipt [14:54:03]json_value_free [14:54:03]json_value_free done [14:54:03]process_json_proto returns [14:54:03]Send response to host [14:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148865,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [14:54:03]free response buf [14:54:03]execute_script done [14:54:03]execute_script returns [14:54:03]free content buf [14:54:03]Sock 9.Close socket [14:54:03]Sock 9.Thread stoped [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:42]accept exits with 7 [15:00:42]New connection [15:00:42]New thread 3067264356 created [15:00:42]Thread 3067407716 joined [15:00:42]Waiting for new connection... [15:00:42] Sock 7.Parse request [15:00:42]Sock 7.Check first char [15:00:42]Sock 7.First char is OK [15:00:42]request: POST /json_proto HTTP/1.0 [15:00:42]Method: POST [15:00:42]URL: /json_proto [15:00:42]Method is POST - this is cgi request [15:00:42]url: /json_proto [15:00:42]query_string will be loaded in cgi processing [15:00:42]execute_cgi json_proto POST (null) [15:00:42]execute_cgi path=json_proto method=POST [15:00:42]POST find Content-Length [15:00:42]Host: 172.17.38.4:8080 [15:00:42]Content-Length: 677 [15:00:42]Content-Type: application/json [15:00:42] [15:00:42]POST finish read [15:00:42]Found Content-Length = 677 [15:00:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "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:00:42]execute_script... [15:00: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)979795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "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:00:42]POST & json_proto [15:00:42]process_json_proto [15:00:42]json parsed OK: [15:00:42]protocol is kg_v1.0 [15:00:42]action value=close_receipt [15:00:42]process_action close_receipt [15:00:42]cmd_close_receipt [15:00:42]MH_GetDate [15:00:42]Write to MH i2c: F0 00 00 E3 10 E2 [15:00:42]Write i2c OK [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: F0 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: F0 09 00 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: F0 09 00 E3 10 00 1B 2C 5F 66 CC 51 87 64 FF [15:00:42]GetLastDocTimeStamp 1717512840 [15:00:42]current date 1717513243 [15:00:42]FM_GetShiftState [15:00:42]SAM_PROTO_GetShiftState [15:00:42]wFMCommunicate request_size=4 [15:00:42]MH_SAM_APDU [15:00:42]CAPDU: 80 13 01 00 [15:00:42]Write to MH i2c: E2 08 00 E4 10 80 13 01 00 00 00 00 00 71 [15:00:42]Write i2c OK [15:00:42]MH_I2C_Read... [15:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:42]Read from MH i2c: E2 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: E2 0E 00 [15:00:42]MH_I2C_Read... [15:00:42]Read from MH i2c: E2 0E 00 E4 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 34 [15:00:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:00:42]wFMCommunicate OK [15:00:42]SAM_PROTO_GetShiftState done [15:00:42]FM_GetShiftState done [15:00:42]opened in 1717460629 [15:00:42]opened+sec_in_day 1717547029 [15:00:42]quantity*price = 50030 [15:00:42]sum+1 = 50031 [15:00:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 205 04.06.2024 15:00 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148866 ФПД: 211322989367664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150044&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148866&fm=211322989367664&tin=02508201610067®Number=0000000000092720&sum=50000 [15:00:43]StoreToDocumentArchive [15:00:43]shift 368 fd 148866 [15:00:43]save to /storage/0368/doc_00148866 [15:00:43]save last doc name /storage/0368/doc_00148866 to /storage/kkm_last_doc_name [15:00:43]save OK [15:00:43]Clear old archive folders... [15:00:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:43]tlvbuf is 00466600 [15:00:43]SAM_PROTO_ClearQueue [15:00:43]wFMCommunicate request_size=4 [15:00:43]MH_SAM_APDU [15:00:43]CAPDU: 80 09 00 00 [15:00:43]Write to MH i2c: E2 08 00 F1 10 80 09 00 00 00 00 00 00 73 [15:00:43]Write i2c OK [15:00:43]MH_I2C_Read... [15:00:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:43]Read from MH i2c: E2 [15:00:43]MH_I2C_Read... [15:00:43]Read from MH i2c: E2 03 00 [15:00:43]MH_I2C_Read... [15:00:43]Read from MH i2c: E2 03 00 F1 10 00 90 00 75 [15:00:43]RAPDU: 90 00 [15:00:43]wFMCommunicate OK [15:00:43]SAM_PROTO_ClearQueue done [15:00:43]KKMCreateOFDPacket [15:00:43]OFDProtocolAddRootSTLVToBuf [15:00:43]FM_MakeSignedData [15:00:43]FM_MakeSignedData [15:00:43]SAM_PROTO_SignData [15:00:43]wFMCommunicate request_size=4 [15:00:43]MH_SAM_APDU [15:00:43]CAPDU: 80 0D 01 02 [15:00:43]Write to MH i2c: E2 08 00 F2 10 80 0D 01 02 00 00 00 00 7B [15:00:43]Write i2c OK [15:00:43]MH_I2C_Read... [15:00:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:43]Read from MH i2c: E2 [15:00:43]MH_I2C_Read... [15:00:43]Read from MH i2c: E2 03 00 [15:00:43]MH_I2C_Read... [15:00:43]Read from MH i2c: E2 03 00 F2 10 00 90 00 76 [15:00:43]RAPDU: 90 00 [15:00:43]wFMCommunicate OK [15:00:43]wFMCommunicate request_size=255 [15:00:43]MH_SAM_APDU [15:00:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 1C 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 82 45 02 00 35 04 06 00 C0 [15:00:43]Write to MH i2c: E2 02 01 F3 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 1C 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 82 45 02 00 35 04 06 00 C0 00 00 C6 [15:00:43]Write i2c OK [15:00:43]MH_I2C_Read... [15:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:44]Read from MH i2c: E2 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 F3 10 00 90 00 77 [15:00:44]RAPDU: 90 00 [15:00:44]wFMCommunicate OK [15:00:44]wFMCommunicate request_size=10 [15:00:44]MH_SAM_APDU [15:00:44]CAPDU: 80 0D 02 02 05 32 77 B6 D1 70 [15:00:44]Write to MH i2c: E2 0D 00 F4 10 80 0D 02 02 05 00 32 77 B6 D1 70 00 00 28 [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:44]Read from MH i2c: E2 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 03 00 F4 10 00 90 00 78 [15:00:44]RAPDU: 90 00 [15:00:44]wFMCommunicate OK [15:00:44]wFMCommunicate request_size=4 [15:00:44]MH_SAM_APDU [15:00:44]CAPDU: 80 0D 03 02 [15:00:44]Write to MH i2c: E2 08 00 F5 10 80 0D 03 02 00 00 00 00 80 [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:44]Read from MH i2c: E2 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 0B 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 0B 00 F5 10 00 49 C8 82 2C BF DB 96 22 90 00 92 [15:00:44]RAPDU: 49 C8 82 2C BF DB 96 22 90 00 [15:00:44]wFMCommunicate OK [15:00:44]SAM_PROTO_SignData done [15:00:44]FM_MakeSignedData done [15:00:44]CreateOFDProtocolMessage [15:00:44]wFMCommunicate request_size=4 [15:00:44]MH_SAM_APDU [15:00:44]CAPDU: 80 11 00 00 [15:00:44]Write to MH i2c: E2 08 00 F6 10 80 11 00 00 00 00 00 00 80 [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:44]Read from MH i2c: E2 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 17 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: E2 17 00 F6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D3 [15:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:00:44]wFMCommunicate OK [15:00:44]CreateOFDProtocolMessage done [15:00:44]OFDSenderStorePacket 148866 [15:00:44]StoreOFDPacket docnum=148866 [15:00:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 85 18 07 01 3C 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 1C 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 82 45 02 00 35 04 06 00 C0 32 77 B6 D1 70 49 C8 82 2C BF DB 96 22 [15:00:44]CheckFolder [15:00:44]dirname=/storage/ofd_packets [15:00:44]CheckFolder done [15:00:44]ProducePacketName [15:00:44]name=ofd_packets/00148866 [15:00:44]NVStorageSaveData ofd_packets/00148866 [15:00:44]File name is /storage/ofd_packets/00148866 [15:00:44]Write 301 bytes [15:00:44]NVStorageSaveData done [15:00:44]OFDSenderStorePacket done [15:00:44]KKMCreateOFDPacket done [15:00:44]NVStorageSaveData kkm_last_timestamp [15:00:44]File name is /storage/kkm_last_timestamp [15:00:44]Write 4 bytes [15:00:44]NVStorageSaveData done [15:00:44]ExternCall_PrintAddStr [15:00:44]wPrintStart [15:00:44]Write to MH i2c: 01 00 00 F7 10 07 [15:00:44]Write i2c OK [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: 01 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: 01 07 00 [15:00:44]MH_I2C_Read... [15:00:44]Read from MH i2c: 01 07 00 F7 10 00 00 00 00 00 FF 0F 1C [15:00:44]RasterBufferAndPrint [15:00:44]line Счет N : (1)979795 [15:00:44]line ИНН: 02508201610067 [15:00:44]line Контрольно-Кассовый Чек [15:00:44]line ПРОДАЖА [15:00:44]line ТРК (МРК, ГНК) : 23 [15:00:44]line Товар: 2710124500 [15:00:44]line Аи-95-К-5 [15:00:44]line 6.770 * 73.90 [15:00:44]line = 500.30 [15:00:44]line НДС 12% НСП 1% [15:00:44]line > о реализуемом товаре [15:00:44]line ОКРУГЛЕНИЕ: -0.30 [15:00:44]line ИТОГО: 500.00 [15:00:44]line Внесено: 500.00 [15:00:44]line СДАЧА: 0.00 [15:00:44]line НСП 1% : 4.43 [15:00:44]line НДС 12% : 53.13 [15:00:44]line Наличными: 500.00 [15:00:44]line Безнал.: 0.00 [15:00:44]line Место: АЗС № 68 "Партнер Нефть" [15:00:44]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:00:44]line СНО: Общий режим [15:00:44]line Чек 205 04.06.2024 15:00 [15:00:44]line Смена: 368 ФФД: 1.0 [15:00:44]line ЗНМ: 0300000035 [15:00:44]line РНМ: 0000000000092720 [15:00:44]line Версия ККМ: 001 [15:00:44]line ФМ: 0000000000875057 [15:00:44]line ФД: 148866 [15:00:44]line ФПД: 211322989367664 [15:00:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150044&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148866&fm=211322989367664&tin=02508201610067®Number=0000000000092720&sum=50000 [15:00:44]OFD Sender: Processing packet 148866 [packets to send 100, broken 99] [15:00:44]ProducePacketName [15:00:44]name=ofd_packets/00148866 [15:00:44]OFD Sender: To server: pG, [15:00:44]CommunicateWithHost lk.salyk.kg:30040 [15:00:44]ConnectInit lk.salyk.kg [15:00:44]written 0, free lines is 4095 [15:00:44]Connected sock=10 [15:00:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 85 18 07 01 3C 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 1C 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 82 45 02 00 35 04 06 00 C0 32 77 B6 D1 70 49 C8 82 2C BF DB 96 22 [15:00:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8C 24 47 00 F5 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 38 37 35 30 35 37 10 04 04 00 82 45 02 00 F4 03 04 00 3F D3 5E 66 B6 04 01 00 00 C3 40 27 C7 F7 4C C1 E7 [15:00:44]CommunicateWithHost err = 0 [15:00:44]CheckOFDResponse [15:00:44]1017 (14) - 77093643461234 [15:00:44]1041 (16) - 0000000000875057 [15:00:44]1040 (4) - 148866 [15:00:44]1012 (4) - 04.06.2024 08:41 [15:00:44]1206 (1) - 0 [15:00:44]OFD Sender: Remove packet 148866 [15:00:44]ProducePacketName [15:00:44]name=ofd_packets/00148866 [15:00:44]NVStorageDeleteData [15:00:45]Write to MH i2c: 01 00 00 22 11 33 [15:00:45]Write i2c OK [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: 01 [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: 01 07 00 [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: 01 07 00 22 11 00 00 00 00 00 72 0C B8 [15:00:45]RasterBufferAndPrint [15:00:45]line [15:00:45]line [15:00:45]line [15:00:45]line [15:00:45]line [15:00:45]written 0, free lines is 3188 [15:00:45]MH_Cut [15:00:45]Write to MH i2c: D1 01 00 29 11 01 0C [15:00:45]Write i2c OK [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: D1 [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: D1 01 00 [15:00:45]MH_I2C_Read... [15:00:45]Read from MH i2c: D1 01 00 29 11 00 0B [15:00:45]Write to MH i2c: 01 00 00 2A 11 3B [15:00:45]Write i2c OK [15:00:45]MH_I2C_Read... [15:00:45]OFD Sender: No OFD packet to send [15:00:46]*** Cut start [15:00:46]*** Partial cut [15:00:46]*** CUTSNS_PIN = 1 [15:00:46]*** CUTSNS_PIN = 0 [15:00:46]*** Brake cut motor [15:00:47]Read from MH i2c: 01 [15:00:47]MH_I2C_Read... [15:00:47]*** Stop cut motor [15:00:47]*** Cut end [15:00:47]Read from MH i2c: 01 07 00 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: 01 07 00 2A 11 00 00 00 00 00 FF 0F 50 [15:00:47]process_action close_receipt done [15:00:47]requested_data is exist [15:00:47]produce_requested_data [15:00:47]requested_item fm.sn is exist - process it [15:00:47]wFMCommunicate request_size=4 [15:00:47]MH_SAM_APDU [15:00:47]CAPDU: 80 11 00 00 [15:00:47]Write to MH i2c: E2 08 00 2B 11 80 11 00 00 00 00 00 00 B6 [15:00:47]Write i2c OK [15:00:47]MH_I2C_Read... [15:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:47]Read from MH i2c: E2 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 17 00 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 17 00 2B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 09 [15:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:00:47]wFMCommunicate OK [15:00:47]requested_item fd.num is exist - process it [15:00:47]SAM_PROTO_GetFieldsCounters [15:00:47]wFMCommunicate request_size=4 [15:00:47]MH_SAM_APDU [15:00:47]CAPDU: 80 13 00 00 [15:00:47]Write to MH i2c: E2 08 00 2C 11 80 13 00 00 00 00 00 00 B9 [15:00:47]Write i2c OK [15:00:47]MH_I2C_Read... [15:00:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:47]Read from MH i2c: E2 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 62 00 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 62 00 2C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 82 45 02 00 0E 04 04 00 70 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 76 [15:00:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 82 45 02 00 0E 04 04 00 70 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 [15:00:47]wFMCommunicate OK [15:00:47]SAM_PROTO_GetFieldsCounters done [15:00:47]requested_item shift.num is exist - process it [15:00:47]requested_item shift.opened is exist - process it [15:00:47]req_shift_opened [15:00:47]FM_GetShiftState [15:00:47]SAM_PROTO_GetShiftState [15:00:47]wFMCommunicate request_size=4 [15:00:47]MH_SAM_APDU [15:00:47]CAPDU: 80 13 01 00 [15:00:47]Write to MH i2c: E2 08 00 2D 11 80 13 01 00 00 00 00 00 BB [15:00:47]Write i2c OK [15:00:47]MH_I2C_Read... [15:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:47]Read from MH i2c: E2 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 0E 00 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 0E 00 2D 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7E [15:00:47]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:00:47]wFMCommunicate OK [15:00:47]SAM_PROTO_GetShiftState done [15:00:47]FM_GetShiftState done [15:00:47]req_shift_opened done [15:00:47]requested_item shift.open_date is exist - process it [15:00:47]req_shift_open_date [15:00:47]req_shift_open_date done [15:00:47]produce_requested_data done [15:00:47]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148866,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:00:47]process_action_free close_receipt [15:00:47]json_value_free [15:00:47]json_value_free done [15:00:47]process_json_proto returns [15:00:47]Send response to host [15:00:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148866,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:00:47]free response buf [15:00:47]execute_script done [15:00:47]execute_script returns [15:00:47]free content buf [15:00:47]Sock 7.Close socket [15:00:47]Sock 7.Thread stoped [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:51]accept exits with 9 [15:01:51]New connection [15:01:51]New thread 3067407716 created [15:01:51]Thread 3067264356 joined [15:01:51]Waiting for new connection... [15:01:51] Sock 9.Parse request [15:01:51]Sock 9.Check first char [15:01:51]Sock 9.First char is OK [15:01:51]request: POST /json_proto HTTP/1.0 [15:01:51]Method: POST [15:01:51]URL: /json_proto [15:01:51]Method is POST - this is cgi request [15:01:51]url: /json_proto [15:01:51]query_string will be loaded in cgi processing [15:01:51]execute_cgi json_proto POST (null) [15:01:51]execute_cgi path=json_proto method=POST [15:01:51]POST find Content-Length [15:01:51]Host: 172.17.38.4:8080 [15:01:51]Content-Length: 677 [15:01:51]Content-Type: application/json [15:01:51] [15:01:51]POST finish read [15:01:51]Found Content-Length = 677 [15:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.030, "sum" : 537.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 537.00, "total" : 537.00, "payments": [ { "type": 0, "sum" : 537.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:51]execute_script... [15:01: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)979796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.030, "sum" : 537.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 537.00, "total" : 537.00, "payments": [ { "type": 0, "sum" : 537.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:51]POST & json_proto [15:01:51]process_json_proto [15:01:51]json parsed OK: [15:01:51]protocol is kg_v1.0 [15:01:51]action value=close_receipt [15:01:51]process_action close_receipt [15:01:51]cmd_close_receipt [15:01:51]MH_GetDate [15:01:51]Write to MH i2c: F0 00 00 2E 11 2E [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: F0 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: F0 09 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: F0 09 00 2E 11 00 60 2C 5F 66 CC 51 87 64 90 [15:01:51]GetLastDocTimeStamp 1717513244 [15:01:51]current date 1717513312 [15:01:51]FM_GetShiftState [15:01:51]SAM_PROTO_GetShiftState [15:01:51]wFMCommunicate request_size=4 [15:01:51]MH_SAM_APDU [15:01:51]CAPDU: 80 13 01 00 [15:01:51]Write to MH i2c: E2 08 00 2F 11 80 13 01 00 00 00 00 00 BD [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:51]Read from MH i2c: E2 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 0E 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 0E 00 2F 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 80 [15:01:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:01:51]wFMCommunicate OK [15:01:51]SAM_PROTO_GetShiftState done [15:01:51]FM_GetShiftState done [15:01:51]opened in 1717460629 [15:01:51]opened+sec_in_day 1717547029 [15:01:51]quantity*price = 53720 [15:01:51]sum+1 = 53722 [15:01:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 537.00 Внесено: 537.00 СДАЧА: 0.00 НСП 1% : 4.75 НДС 12% : 57.05 Наличными: 537.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 206 04.06.2024 15:01 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148867 ФПД: 220226501795393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150152&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148867&fm=220226501795393&tin=02508201610067®Number=0000000000092720&sum=53700 [15:01:52]StoreToDocumentArchive [15:01:52]shift 368 fd 148867 [15:01:52]save to /storage/0368/doc_00148867 [15:01:52]save last doc name /storage/0368/doc_00148867 to /storage/kkm_last_doc_name [15:01:52]save OK [15:01:52]Clear old archive folders... [15:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:52]tlvbuf is 004C07E0 [15:01:52]SAM_PROTO_ClearQueue [15:01:52]wFMCommunicate request_size=4 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 09 00 00 [15:01:52]Write to MH i2c: E2 08 00 3C 11 80 09 00 00 00 00 00 00 BF [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 3C 11 00 90 00 C1 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]SAM_PROTO_ClearQueue done [15:01:52]KKMCreateOFDPacket [15:01:52]OFDProtocolAddRootSTLVToBuf [15:01:52]FM_MakeSignedData [15:01:52]FM_MakeSignedData [15:01:52]SAM_PROTO_SignData [15:01:52]wFMCommunicate request_size=4 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 0D 01 02 [15:01:52]Write to MH i2c: E2 08 00 3D 11 80 0D 01 02 00 00 00 00 C7 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 3D 11 00 90 00 C2 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]wFMCommunicate request_size=255 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 16 00 00 00 00 07 04 06 00 C4 D1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 60 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 83 45 02 00 35 04 06 00 C8 [15:01:52]Write to MH i2c: E2 02 01 3E 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 16 00 00 00 00 07 04 06 00 C4 D1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 60 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 83 45 02 00 35 04 06 00 C8 00 00 B6 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 3E 11 00 90 00 C3 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]wFMCommunicate request_size=10 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 0D 02 02 05 4B 7A 68 DE 41 [15:01:52]Write to MH i2c: E2 0D 00 3F 11 80 0D 02 02 05 00 4B 7A 68 DE 41 00 00 20 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 3F 11 00 90 00 C4 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]wFMCommunicate request_size=4 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 0D 03 02 [15:01:52]Write to MH i2c: E2 08 00 40 11 80 0D 03 02 00 00 00 00 CC [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 0B 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 0B 00 40 11 00 39 5F A0 D3 23 25 EF 8E 90 00 9D [15:01:52]RAPDU: 39 5F A0 D3 23 25 EF 8E 90 00 [15:01:52]wFMCommunicate OK [15:01:52]SAM_PROTO_SignData done [15:01:52]FM_MakeSignedData done [15:01:52]CreateOFDProtocolMessage [15:01:52]wFMCommunicate request_size=4 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 11 00 00 [15:01:52]Write to MH i2c: E2 08 00 41 11 80 11 00 00 00 00 00 00 CC [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 17 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 17 00 41 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1F [15:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:01:52]wFMCommunicate OK [15:01:52]CreateOFDProtocolMessage done [15:01:52]OFDSenderStorePacket 148867 [15:01:52]StoreOFDPacket docnum=148867 [15:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 03 F7 07 01 18 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 16 00 00 00 00 07 04 06 00 C4 D1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 60 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 83 45 02 00 35 04 06 00 C8 4B 7A 68 DE 41 39 5F A0 D3 23 25 EF 8E [15:01:52]CheckFolder [15:01:52]dirname=/storage/ofd_packets [15:01:52]CheckFolder done [15:01:52]ProducePacketName [15:01:52]name=ofd_packets/00148867 [15:01:52]NVStorageSaveData ofd_packets/00148867 [15:01:52]File name is /storage/ofd_packets/00148867 [15:01:52]Write 301 bytes [15:01:52]NVStorageSaveData done [15:01:52]OFDSenderStorePacket done [15:01:52]KKMCreateOFDPacket done [15:01:52]NVStorageSaveData kkm_last_timestamp [15:01:52]File name is /storage/kkm_last_timestamp [15:01:52]Write 4 bytes [15:01:52]NVStorageSaveData done [15:01:52]ExternCall_PrintAddStr [15:01:52]wPrintStart [15:01:52]Write to MH i2c: 01 00 00 42 11 53 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: 01 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: 01 07 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: 01 07 00 42 11 00 00 00 00 00 FF 0F 68 [15:01:52]RasterBufferAndPrint [15:01:52]line Счет N : (1)979796 [15:01:52]line ИНН: 02508201610067 [15:01:52]line Контрольно-Кассовый Чек [15:01:52]line ПРОДАЖА [15:01:52]line ТРК (МРК, ГНК) : 31 [15:01:52]line Товар: 2710124130 [15:01:52]line Аи-92-К-5 [15:01:52]line 8.030 * 66.90 [15:01:52]line = 537.21 [15:01:52]line НДС 12% НСП 1% [15:01:52]line > о реализуемом товаре [15:01:52]line ОКРУГЛЕНИЕ: -0.21 [15:01:52]line ИТОГО: 537.00 [15:01:52]line Внесено: 537.00 [15:01:52]line СДАЧА: 0.00 [15:01:52]line НСП 1% : 4.75 [15:01:52]line НДС 12% : 57.05 [15:01:52]line Наличными: 537.00 [15:01:52]line Безнал.: 0.00 [15:01:52]line Место: АЗС № 68 "Партнер Нефть" [15:01:52]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:01:52]line СНО: Общий режим [15:01:52]line Чек 206 04.06.2024 15:01 [15:01:52]line Смена: 368 ФФД: 1.0 [15:01:52]line ЗНМ: 0300000035 [15:01:52]line РНМ: 0000000000092720 [15:01:52]line Версия ККМ: 001 [15:01:52]line ФМ: 0000000000875057 [15:01:52]line ФД: 148867 [15:01:52]line ФПД: 220226501795393 [15:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150152&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148867&fm=220226501795393&tin=02508201610067®Number=0000000000092720&sum=53700 [15:01:53]OFD Sender: Processing packet 148867 [packets to send 100, broken 99] [15:01:53]ProducePacketName [15:01:53]name=ofd_packets/00148867 [15:01:53]OFD Sender: To server: pG, [15:01:53]CommunicateWithHost lk.salyk.kg:30040 [15:01:53]ConnectInit lk.salyk.kg [15:01:53]written 0, free lines is 4095 [15:01:53]Connected sock=10 [15:01:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 03 F7 07 01 18 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 16 00 00 00 00 07 04 06 00 C4 D1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 60 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 83 45 02 00 35 04 06 00 C8 4B 7A 68 DE 41 39 5F A0 D3 23 25 EF 8E [15:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C7 44 47 00 E6 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 38 37 35 30 35 37 10 04 04 00 83 45 02 00 F4 03 04 00 84 D3 5E 66 B6 04 01 00 00 EF 7C DB 7B F2 37 F5 6B [15:01:53]CommunicateWithHost err = 0 [15:01:53]CheckOFDResponse [15:01:53]1017 (14) - 77093643461234 [15:01:53]1041 (16) - 0000000000875057 [15:01:53]1040 (4) - 148867 [15:01:53]1012 (4) - 04.06.2024 08:42 [15:01:53]1206 (1) - 0 [15:01:53]OFD Sender: Remove packet 148867 [15:01:53]ProducePacketName [15:01:53]name=ofd_packets/00148867 [15:01:53]NVStorageDeleteData [15:01:53]Write to MH i2c: 01 00 00 6D 11 7E [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 07 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 07 00 6D 11 00 00 00 00 00 64 0C F5 [15:01:53]RasterBufferAndPrint [15:01:53]line [15:01:53]line [15:01:53]line [15:01:53]line [15:01:53]line [15:01:53]written 0, free lines is 3176 [15:01:53]MH_Cut [15:01:53]Write to MH i2c: D1 01 00 74 11 01 57 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: D1 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: D1 01 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: D1 01 00 74 11 00 56 [15:01:53]Write to MH i2c: 01 00 00 75 11 86 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:54]OFD Sender: No OFD packet to send [15:01:55]*** Cut start [15:01:55]*** Partial cut [15:01:55]*** CUTSNS_PIN = 1 [15:01:55]*** CUTSNS_PIN = 0 [15:01:55]*** Brake cut motor [15:01:55]Read from MH i2c: 01 [15:01:55]MH_I2C_Read... [15:01:55]*** Stop cut motor [15:01:55]*** Cut end [15:01:55]Read from MH i2c: 01 07 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: 01 07 00 75 11 00 00 00 00 00 FF 0F 9B [15:01:55]process_action close_receipt done [15:01:55]requested_data is exist [15:01:55]produce_requested_data [15:01:55]requested_item fm.sn is exist - process it [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 11 00 00 [15:01:55]Write to MH i2c: E2 08 00 76 11 80 11 00 00 00 00 00 00 01 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 17 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 17 00 76 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 54 [15:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:01:55]wFMCommunicate OK [15:01:55]requested_item fd.num is exist - process it [15:01:55]SAM_PROTO_GetFieldsCounters [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 13 00 00 [15:01:55]Write to MH i2c: E2 08 00 77 11 80 13 00 00 00 00 00 00 04 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 62 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 62 00 77 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 83 45 02 00 0E 04 04 00 70 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 C5 [15:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 83 45 02 00 0E 04 04 00 70 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 [15:01:55]wFMCommunicate OK [15:01:55]SAM_PROTO_GetFieldsCounters done [15:01:55]requested_item shift.num is exist - process it [15:01:55]requested_item shift.opened is exist - process it [15:01:55]req_shift_opened [15:01:55]FM_GetShiftState [15:01:55]SAM_PROTO_GetShiftState [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 13 01 00 [15:01:55]Write to MH i2c: E2 08 00 78 11 80 13 01 00 00 00 00 00 06 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 0E 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 0E 00 78 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C9 [15:01:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:01:55]wFMCommunicate OK [15:01:55]SAM_PROTO_GetShiftState done [15:01:55]FM_GetShiftState done [15:01:55]req_shift_opened done [15:01:55]requested_item shift.open_date is exist - process it [15:01:55]req_shift_open_date [15:01:55]req_shift_open_date done [15:01:55]produce_requested_data done [15:01:55]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148867,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:01:55]process_action_free close_receipt [15:01:55]json_value_free [15:01:55]json_value_free done [15:01:55]process_json_proto returns [15:01:55]Send response to host [15:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148867,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:01:55]free response buf [15:01:55]execute_script done [15:01:55]execute_script returns [15:01:55]free content buf [15:01:55]Sock 9.Close socket [15:01:55]Sock 9.Thread stoped [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:08]accept exits with 7 [15:03:08]New connection [15:03:08]New thread 3067264356 created [15:03:08]Thread 3067407716 joined [15:03:08]Waiting for new connection... [15:03:08] Sock 7.Parse request [15:03:08]Sock 7.Check first char [15:03:08]Sock 7.First char is OK [15:03:08]request: POST /json_proto HTTP/1.0 [15:03:08]Method: POST [15:03:08]URL: /json_proto [15:03:08]Method is POST - this is cgi request [15:03:08]url: /json_proto [15:03:08]query_string will be loaded in cgi processing [15:03:08]execute_cgi json_proto POST (null) [15:03:08]execute_cgi path=json_proto method=POST [15:03:08]POST find Content-Length [15:03:08]Host: 172.17.38.4:8080 [15:03:08]Content-Length: 800 [15:03:08]Content-Type: application/json [15:03:08] [15:03:08]POST finish read [15:03:08]Found Content-Length = 800 [15:03:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 3.250, "sum" : 240.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 240.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:08]execute_script... [15:03: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)979797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 3.250, "sum" : 240.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 240.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:08]POST & json_proto [15:03:08]process_json_proto [15:03:08]json parsed OK: [15:03:08]protocol is kg_v1.0 [15:03:08]action value=close_receipt [15:03:08]process_action close_receipt [15:03:08]cmd_close_receipt [15:03:08]MH_GetDate [15:03:08]Write to MH i2c: F0 00 00 79 11 79 [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: F0 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: F0 09 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: F0 09 00 79 11 00 AE 2C 5F 66 CC 51 87 64 29 [15:03:08]GetLastDocTimeStamp 1717513312 [15:03:08]current date 1717513390 [15:03:08]FM_GetShiftState [15:03:08]SAM_PROTO_GetShiftState [15:03:08]wFMCommunicate request_size=4 [15:03:08]MH_SAM_APDU [15:03:08]CAPDU: 80 13 01 00 [15:03:08]Write to MH i2c: E2 08 00 7A 11 80 13 01 00 00 00 00 00 08 [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:09]Read from MH i2c: E2 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 0E 00 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 0E 00 7A 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CB [15:03:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:03:09]wFMCommunicate OK [15:03:09]SAM_PROTO_GetShiftState done [15:03:09]FM_GetShiftState done [15:03:09]opened in 1717460629 [15:03:09]opened+sec_in_day 1717547029 [15:03:09]quantity*price = 24017 [15:03:09]sum+1 = 24019 [15:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.18 НСП 1% : 2.12 НДС 12% : 25.51 Наличными: 0.00 Безнал.: 240.18 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 207 04.06.2024 15:03 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148868 ФПД: 224716006222578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150310&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148868&fm=224716006222578&tin=02508201610067®Number=0000000000092720&sum=24018 [15:03:10]StoreToDocumentArchive [15:03:10]shift 368 fd 148868 [15:03:10]save to /storage/0368/doc_00148868 [15:03:10]save last doc name /storage/0368/doc_00148868 to /storage/kkm_last_doc_name [15:03:10]save OK [15:03:10]Clear old archive folders... [15:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:10]tlvbuf is 00466C70 [15:03:10]SAM_PROTO_ClearQueue [15:03:10]wFMCommunicate request_size=4 [15:03:10]MH_SAM_APDU [15:03:10]CAPDU: 80 09 00 00 [15:03:10]Write to MH i2c: E2 08 00 87 11 80 09 00 00 00 00 00 00 0A [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 03 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 03 00 87 11 00 90 00 0C [15:03:10]RAPDU: 90 00 [15:03:10]wFMCommunicate OK [15:03:10]SAM_PROTO_ClearQueue done [15:03:10]KKMCreateOFDPacket [15:03:10]OFDProtocolAddRootSTLVToBuf [15:03:10]FM_MakeSignedData [15:03:10]FM_MakeSignedData [15:03:10]SAM_PROTO_SignData [15:03:10]wFMCommunicate request_size=4 [15:03:10]MH_SAM_APDU [15:03:10]CAPDU: 80 0D 01 02 [15:03:10]Write to MH i2c: E2 08 00 88 11 80 0D 01 02 00 00 00 00 12 [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 03 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 03 00 88 11 00 90 00 0D [15:03:10]RAPDU: 90 00 [15:03:10]wFMCommunicate OK [15:03:10]wFMCommunicate request_size=255 [15:03:10]MH_SAM_APDU [15:03:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D2 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 AE 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 84 45 02 00 35 04 06 00 CC [15:03:10]Write to MH i2c: E2 02 01 89 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D2 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 AE 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 84 45 02 00 35 04 06 00 CC 00 00 AA [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 03 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 03 00 89 11 00 90 00 0E [15:03:10]RAPDU: 90 00 [15:03:10]wFMCommunicate OK [15:03:10]wFMCommunicate request_size=10 [15:03:10]MH_SAM_APDU [15:03:10]CAPDU: 80 0D 02 02 05 60 C5 B9 EA F2 [15:03:10]Write to MH i2c: E2 0D 00 8A 11 80 0D 02 02 05 00 60 C5 B9 EA F2 00 00 D9 [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 03 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 03 00 8A 11 00 90 00 0F [15:03:10]RAPDU: 90 00 [15:03:10]wFMCommunicate OK [15:03:10]wFMCommunicate request_size=4 [15:03:10]MH_SAM_APDU [15:03:10]CAPDU: 80 0D 03 02 [15:03:10]Write to MH i2c: E2 08 00 8B 11 80 0D 03 02 00 00 00 00 17 [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 0B 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 0B 00 8B 11 00 32 CD 12 2C 21 8C E9 20 90 00 0B [15:03:10]RAPDU: 32 CD 12 2C 21 8C E9 20 90 00 [15:03:10]wFMCommunicate OK [15:03:10]SAM_PROTO_SignData done [15:03:10]FM_MakeSignedData done [15:03:10]CreateOFDProtocolMessage [15:03:10]wFMCommunicate request_size=4 [15:03:10]MH_SAM_APDU [15:03:10]CAPDU: 80 11 00 00 [15:03:10]Write to MH i2c: E2 08 00 8C 11 80 11 00 00 00 00 00 00 17 [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 17 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 17 00 8C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6A [15:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:03:10]wFMCommunicate OK [15:03:10]CreateOFDProtocolMessage done [15:03:10]OFDSenderStorePacket 148868 [15:03:10]StoreOFDPacket docnum=148868 [15:03:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 DF DE 07 01 5B B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D2 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 AE 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 84 45 02 00 35 04 06 00 CC 60 C5 B9 EA F2 32 CD 12 2C 21 8C E9 20 [15:03:10]CheckFolder [15:03:10]dirname=/storage/ofd_packets [15:03:10]CheckFolder done [15:03:10]ProducePacketName [15:03:10]name=ofd_packets/00148868 [15:03:10]NVStorageSaveData ofd_packets/00148868 [15:03:10]File name is /storage/ofd_packets/00148868 [15:03:10]Write 301 bytes [15:03:10]NVStorageSaveData done [15:03:10]OFDSenderStorePacket done [15:03:10]KKMCreateOFDPacket done [15:03:10]NVStorageSaveData kkm_last_timestamp [15:03:10]File name is /storage/kkm_last_timestamp [15:03:10]Write 4 bytes [15:03:10]NVStorageSaveData done [15:03:10]ExternCall_PrintAddStr [15:03:10]wPrintStart [15:03:10]Write to MH i2c: 01 00 00 8D 11 9E [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: 01 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: 01 07 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: 01 07 00 8D 11 00 00 00 00 00 FF 0F B3 [15:03:10]RasterBufferAndPrint [15:03:10]line Счет N : (1)979797 [15:03:10]line ИНН: 02508201610067 [15:03:10]line Контрольно-Кассовый Чек [15:03:10]line ПРОДАЖА [15:03:10]line ТРК (МРК, ГНК) : 23 [15:03:10]line Товар: 2710124500 [15:03:10]line Аи-95-К-5 [15:03:10]line 3.250 * 73.90 [15:03:10]line = 240.18 [15:03:10]line НДС 12% НСП 1% [15:03:10]line > о реализуемом товаре [15:03:10]line ИТОГО: 240.18 [15:03:10]line НСП 1% : 2.12 [15:03:10]line НДС 12% : 25.51 [15:03:10]line Наличными: 0.00 [15:03:10]line Безнал.: 240.18 [15:03:10]line Место: АЗС № 68 "Партнер Нефть" [15:03:10]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:03:10]line СНО: Общий режим [15:03:10]line Чек 207 04.06.2024 15:03 [15:03:10]line Смена: 368 ФФД: 1.0 [15:03:10]line ЗНМ: 0300000035 [15:03:10]line РНМ: 0000000000092720 [15:03:10]line Версия ККМ: 001 [15:03:10]line Платежная система: O! деньги [15:03:10]line ФМ: 0000000000875057 [15:03:10]line ФД: 148868 [15:03:10]line ФПД: 224716006222578 [15:03:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150310&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148868&fm=224716006222578&tin=02508201610067®Number=0000000000092720&sum=24018 [15:03:11]OFD Sender: Processing packet 148868 [packets to send 100, broken 99] [15:03:11]ProducePacketName [15:03:11]name=ofd_packets/00148868 [15:03:11]OFD Sender: To server: pG, [15:03:11]CommunicateWithHost lk.salyk.kg:30040 [15:03:11]ConnectInit lk.salyk.kg [15:03:11]written 0, free lines is 4095 [15:03:11]Connected sock=10 [15:03:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 DF DE 07 01 5B B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D2 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 AE 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 84 45 02 00 35 04 06 00 CC 60 C5 B9 EA F2 32 CD 12 2C 21 8C E9 20 [15:03:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 2B 31 47 00 20 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 84 45 02 00 F4 03 04 00 D1 D3 5E 66 B6 04 01 00 00 7E 3D EE C7 9F 04 67 DF [15:03:11]CommunicateWithHost err = 0 [15:03:11]CheckOFDResponse [15:03:11]1017 (14) - 77093643461234 [15:03:11]1041 (16) - 0000000000875057 [15:03:11]1040 (4) - 148868 [15:03:11]1012 (4) - 04.06.2024 08:44 [15:03:11]1206 (1) - 0 [15:03:11]OFD Sender: Remove packet 148868 [15:03:11]ProducePacketName [15:03:11]name=ofd_packets/00148868 [15:03:11]NVStorageDeleteData [15:03:11]Write to MH i2c: 01 00 00 B7 11 C8 [15:03:11]Write i2c OK [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: 01 [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: 01 07 00 [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: 01 07 00 B7 11 00 00 00 00 00 87 0C 62 [15:03:11]RasterBufferAndPrint [15:03:11]line [15:03:11]line [15:03:11]line [15:03:11]line [15:03:11]line [15:03:11]written 0, free lines is 3210 [15:03:11]MH_Cut [15:03:11]Write to MH i2c: D1 01 00 BE 11 01 A1 [15:03:11]Write i2c OK [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: D1 [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: D1 01 00 [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: D1 01 00 BE 11 00 A0 [15:03:11]Write to MH i2c: 01 00 00 BF 11 D0 [15:03:11]Write i2c OK [15:03:11]MH_I2C_Read... [15:03:11]OFD Sender: No OFD packet to send [15:03:12]*** Cut start [15:03:12]*** Partial cut [15:03:12]*** CUTSNS_PIN = 1 [15:03:12]*** CUTSNS_PIN = 0 [15:03:13]*** Brake cut motor [15:03:13]Read from MH i2c: 01 [15:03:13]MH_I2C_Read... [15:03:13]*** Stop cut motor [15:03:13]*** Cut end [15:03:13]Read from MH i2c: 01 07 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: 01 07 00 BF 11 00 00 00 00 00 FF 0F E5 [15:03:13]process_action close_receipt done [15:03:13]requested_data is exist [15:03:13]produce_requested_data [15:03:13]requested_item fm.sn is exist - process it [15:03:13]wFMCommunicate request_size=4 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 11 00 00 [15:03:13]Write to MH i2c: E2 08 00 C0 11 80 11 00 00 00 00 00 00 4B [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:13]Read from MH i2c: E2 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 17 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 17 00 C0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9E [15:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:03:13]wFMCommunicate OK [15:03:13]requested_item fd.num is exist - process it [15:03:13]SAM_PROTO_GetFieldsCounters [15:03:13]wFMCommunicate request_size=4 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 13 00 00 [15:03:13]Write to MH i2c: E2 08 00 C1 11 80 13 00 00 00 00 00 00 4E [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:13]Read from MH i2c: E2 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 62 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 62 00 C1 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 84 45 02 00 0E 04 04 00 70 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 13 [15:03:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 84 45 02 00 0E 04 04 00 70 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 [15:03:13]wFMCommunicate OK [15:03:13]SAM_PROTO_GetFieldsCounters done [15:03:13]requested_item shift.num is exist - process it [15:03:13]requested_item shift.opened is exist - process it [15:03:13]req_shift_opened [15:03:13]FM_GetShiftState [15:03:13]SAM_PROTO_GetShiftState [15:03:13]wFMCommunicate request_size=4 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 13 01 00 [15:03:13]Write to MH i2c: E2 08 00 C2 11 80 13 01 00 00 00 00 00 50 [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:13]Read from MH i2c: E2 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 0E 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 0E 00 C2 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 13 [15:03:13]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:03:13]wFMCommunicate OK [15:03:13]SAM_PROTO_GetShiftState done [15:03:13]FM_GetShiftState done [15:03:13]req_shift_opened done [15:03:13]requested_item shift.open_date is exist - process it [15:03:13]req_shift_open_date [15:03:13]req_shift_open_date done [15:03:13]produce_requested_data done [15:03:13]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148868,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:03:13]process_action_free close_receipt [15:03:13]json_value_free [15:03:13]json_value_free done [15:03:13]process_json_proto returns [15:03:13]Send response to host [15:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148868,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:03:13]free response buf [15:03:13]execute_script done [15:03:13]execute_script returns [15:03:13]free content buf [15:03:13]Sock 7.Close socket [15:03:13]Sock 7.Thread stoped [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:35]accept exits with 9 [15:03:35]New connection [15:03:35]New thread 3067407716 created [15:03:35]Thread 3067264356 joined [15:03:35]Waiting for new connection... [15:03:35] Sock 9.Parse request [15:03:35]Sock 9.Check first char [15:03:35]Sock 9.First char is OK [15:03:35]request: POST /json_proto HTTP/1.0 [15:03:35]Method: POST [15:03:35]URL: /json_proto [15:03:35]Method is POST - this is cgi request [15:03:35]url: /json_proto [15:03:35]query_string will be loaded in cgi processing [15:03:35]execute_cgi json_proto POST (null) [15:03:35]execute_cgi path=json_proto method=POST [15:03:35]POST find Content-Length [15:03:35]Host: 172.17.38.4:8080 [15:03:35]Content-Length: 675 [15:03:35]Content-Type: application/json [15:03:35] [15:03:35]POST finish read [15:03:35]Found Content-Length = 675 [15:03:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [15:03:35]execute_script... [15:03:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [15:03:35]POST & json_proto [15:03:35]process_json_proto [15:03:35]json parsed OK: [15:03:35]protocol is kg_v1.0 [15:03:35]action value=close_receipt [15:03:35]process_action close_receipt [15:03:35]cmd_close_receipt [15:03:35]MH_GetDate [15:03:35]Write to MH i2c: F0 00 00 C3 11 C3 [15:03:35]Write i2c OK [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: F0 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: F0 09 00 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: F0 09 00 C3 11 00 C9 2C 5F 66 CC 51 87 64 8E [15:03:35]GetLastDocTimeStamp 1717513390 [15:03:35]current date 1717513417 [15:03:35]FM_GetShiftState [15:03:35]SAM_PROTO_GetShiftState [15:03:35]wFMCommunicate request_size=4 [15:03:35]MH_SAM_APDU [15:03:35]CAPDU: 80 13 01 00 [15:03:35]Write to MH i2c: E2 08 00 C4 11 80 13 01 00 00 00 00 00 52 [15:03:35]Write i2c OK [15:03:35]MH_I2C_Read... [15:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:35]Read from MH i2c: E2 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: E2 0E 00 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: E2 0E 00 C4 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 15 [15:03:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:03:35]wFMCommunicate OK [15:03:35]SAM_PROTO_GetShiftState done [15:03:35]FM_GetShiftState done [15:03:35]opened in 1717460629 [15:03:35]opened+sec_in_day 1717547029 [15:03:35]quantity*price = 100016 [15:03:35]sum+1 = 100018 [15:03:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 208 04.06.2024 15:03 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148869 ФПД: 3660104048268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150337&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148869&fm=3660104048268&tin=02508201610067®Number=0000000000092720&sum=100000 [15:03:36]StoreToDocumentArchive [15:03:36]shift 368 fd 148869 [15:03:36]save to /storage/0368/doc_00148869 [15:03:36]save last doc name /storage/0368/doc_00148869 to /storage/kkm_last_doc_name [15:03:36]save OK [15:03:36]Clear old archive folders... [15:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:03:36]tlvbuf is 004E96F0 [15:03:36]SAM_PROTO_ClearQueue [15:03:36]wFMCommunicate request_size=4 [15:03:36]MH_SAM_APDU [15:03:36]CAPDU: 80 09 00 00 [15:03:36]Write to MH i2c: E2 08 00 D1 11 80 09 00 00 00 00 00 00 54 [15:03:36]Write i2c OK [15:03:36]MH_I2C_Read... [15:03:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:37]Read from MH i2c: E2 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 03 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 03 00 D1 11 00 90 00 56 [15:03:37]RAPDU: 90 00 [15:03:37]wFMCommunicate OK [15:03:37]SAM_PROTO_ClearQueue done [15:03:37]KKMCreateOFDPacket [15:03:37]OFDProtocolAddRootSTLVToBuf [15:03:37]FM_MakeSignedData [15:03:37]FM_MakeSignedData [15:03:37]SAM_PROTO_SignData [15:03:37]wFMCommunicate request_size=4 [15:03:37]MH_SAM_APDU [15:03:37]CAPDU: 80 0D 01 02 [15:03:37]Write to MH i2c: E2 08 00 D2 11 80 0D 01 02 00 00 00 00 5C [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:37]Read from MH i2c: E2 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 03 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 03 00 D2 11 00 90 00 57 [15:03:37]RAPDU: 90 00 [15:03:37]wFMCommunicate OK [15:03:37]wFMCommunicate request_size=255 [15:03:37]MH_SAM_APDU [15:03:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 D0 00 00 00 F4 03 04 00 C9 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 85 45 02 00 35 04 06 00 [15:03:37]Write to MH i2c: E2 02 01 D3 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 D0 00 00 00 F4 03 04 00 C9 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 85 45 02 00 35 04 06 00 00 00 CC [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:37]Read from MH i2c: E2 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 03 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 03 00 D3 11 00 90 00 58 [15:03:37]RAPDU: 90 00 [15:03:37]wFMCommunicate OK [15:03:37]wFMCommunicate request_size=11 [15:03:37]MH_SAM_APDU [15:03:37]CAPDU: 80 0D 02 02 06 03 54 2F 33 9E 8C [15:03:37]Write to MH i2c: E2 0E 00 D4 11 80 0D 02 02 06 00 03 54 2F 33 9E 8C 00 00 4E [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:37]Read from MH i2c: E2 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 03 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 03 00 D4 11 00 90 00 59 [15:03:37]RAPDU: 90 00 [15:03:37]wFMCommunicate OK [15:03:37]wFMCommunicate request_size=4 [15:03:37]MH_SAM_APDU [15:03:37]CAPDU: 80 0D 03 02 [15:03:37]Write to MH i2c: E2 08 00 D5 11 80 0D 03 02 00 00 00 00 61 [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:37]Read from MH i2c: E2 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 0B 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 0B 00 D5 11 00 2B C9 54 16 9C C1 F9 94 90 00 AA [15:03:37]RAPDU: 2B C9 54 16 9C C1 F9 94 90 00 [15:03:37]wFMCommunicate OK [15:03:37]SAM_PROTO_SignData done [15:03:37]FM_MakeSignedData done [15:03:37]CreateOFDProtocolMessage [15:03:37]wFMCommunicate request_size=4 [15:03:37]MH_SAM_APDU [15:03:37]CAPDU: 80 11 00 00 [15:03:37]Write to MH i2c: E2 08 00 D6 11 80 11 00 00 00 00 00 00 61 [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:37]Read from MH i2c: E2 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 17 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 17 00 D6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B4 [15:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:03:37]wFMCommunicate OK [15:03:37]CreateOFDProtocolMessage done [15:03:37]OFDSenderStorePacket 148869 [15:03:37]StoreOFDPacket docnum=148869 [15:03:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 0D 0E 08 01 3A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 D0 00 00 00 F4 03 04 00 C9 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 85 45 02 00 35 04 06 00 03 54 2F 33 9E 8C 2B C9 54 16 9C C1 F9 94 [15:03:37]CheckFolder [15:03:37]dirname=/storage/ofd_packets [15:03:37]CheckFolder done [15:03:37]ProducePacketName [15:03:37]name=ofd_packets/00148869 [15:03:37]NVStorageSaveData ofd_packets/00148869 [15:03:37]File name is /storage/ofd_packets/00148869 [15:03:37]Write 302 bytes [15:03:37]NVStorageSaveData done [15:03:37]OFDSenderStorePacket done [15:03:37]KKMCreateOFDPacket done [15:03:37]NVStorageSaveData kkm_last_timestamp [15:03:37]File name is /storage/kkm_last_timestamp [15:03:37]Write 4 bytes [15:03:37]NVStorageSaveData done [15:03:37]ExternCall_PrintAddStr [15:03:37]wPrintStart [15:03:37]Write to MH i2c: 01 00 00 D7 11 E8 [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: 01 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: 01 07 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: 01 07 00 D7 11 00 00 00 00 00 FF 0F FD [15:03:37]RasterBufferAndPrint [15:03:37]line Счет N : (1)979798 [15:03:37]line ИНН: 02508201610067 [15:03:37]line Контрольно-Кассовый Чек [15:03:37]line ПРОДАЖА [15:03:37]line ТРК (МРК, ГНК) : 33 [15:03:37]line Товар: 2710124130 [15:03:37]line SUPER 92-К-5 [15:03:37]line 14.730 * 67.90 [15:03:37]line = 1000.17 [15:03:37]line НДС 12% НСП 1% [15:03:37]line > о реализуемом товаре [15:03:37]line ОКРУГЛЕНИЕ: -0.17 [15:03:37]line ИТОГО: 1000.00 [15:03:37]line Внесено: 1000.00 [15:03:37]line СДАЧА: 0.00 [15:03:37]line НСП 1% : 8.85 [15:03:37]line НДС 12% : 106.21 [15:03:37]line Наличными: 1000.00 [15:03:37]line Безнал.: 0.00 [15:03:37]line Место: АЗС № 68 "Партнер Нефть" [15:03:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:03:37]line СНО: Общий режим [15:03:37]line Чек 208 04.06.2024 15:03 [15:03:37]line Смена: 368 ФФД: 1.0 [15:03:37]line ЗНМ: 0300000035 [15:03:37]line РНМ: 0000000000092720 [15:03:37]line Версия ККМ: 001 [15:03:37]line ФМ: 0000000000875057 [15:03:37]line ФД: 148869 [15:03:37]line ФПД: 3660104048268 [15:03:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150337&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148869&fm=3660104048268&tin=02508201610067®Number=0000000000092720&sum=100000 [15:03:37]OFD Sender: Processing packet 148869 [packets to send 100, broken 99] [15:03:37]ProducePacketName [15:03:37]name=ofd_packets/00148869 [15:03:37]OFD Sender: To server: pG, [15:03:37]CommunicateWithHost lk.salyk.kg:30040 [15:03:37]ConnectInit lk.salyk.kg [15:03:37]written 0, free lines is 4095 [15:03:37]Connected sock=10 [15:03:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 0D 0E 08 01 3A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 D0 00 00 00 F4 03 04 00 C9 2C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 85 45 02 00 35 04 06 00 03 54 2F 33 9E 8C 2B C9 54 16 9C C1 F9 94 [15:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D1 58 47 00 66 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 38 37 35 30 35 37 10 04 04 00 85 45 02 00 F4 03 04 00 EC D3 5E 66 B6 04 01 00 00 21 10 A3 F1 CA 9D 7F 9E [15:03:38]CommunicateWithHost err = 0 [15:03:38]CheckOFDResponse [15:03:38]1017 (14) - 77093643461234 [15:03:38]1041 (16) - 0000000000875057 [15:03:38]1040 (4) - 148869 [15:03:38]1012 (4) - 04.06.2024 08:44 [15:03:38]1206 (1) - 0 [15:03:38]OFD Sender: Remove packet 148869 [15:03:38]ProducePacketName [15:03:38]name=ofd_packets/00148869 [15:03:38]NVStorageDeleteData [15:03:38]Write to MH i2c: 01 00 00 02 12 14 [15:03:38]Write i2c OK [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: 01 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: 01 07 00 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: 01 07 00 02 12 00 00 00 00 00 77 0C 9E [15:03:38]RasterBufferAndPrint [15:03:38]line [15:03:38]line [15:03:38]line [15:03:38]line [15:03:38]line [15:03:38]written 0, free lines is 3193 [15:03:38]MH_Cut [15:03:38]Write to MH i2c: D1 01 00 09 12 01 ED [15:03:38]Write i2c OK [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: D1 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: D1 01 00 [15:03:38]MH_I2C_Read... [15:03:38]Read from MH i2c: D1 01 00 09 12 00 EC [15:03:38]Write to MH i2c: 01 00 00 0A 12 1C [15:03:38]Write i2c OK [15:03:38]MH_I2C_Read... [15:03:38]OFD Sender: No OFD packet to send [15:03:39]*** Cut start [15:03:39]*** Partial cut [15:03:39]*** CUTSNS_PIN = 1 [15:03:39]*** CUTSNS_PIN = 0 [15:03:39]*** Brake cut motor [15:03:40]Read from MH i2c: 01 [15:03:40]MH_I2C_Read... [15:03:40]*** Stop cut motor [15:03:40]*** Cut end [15:03:40]Read from MH i2c: 01 07 00 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: 01 07 00 0A 12 00 00 00 00 00 FF 0F 31 [15:03:40]process_action close_receipt done [15:03:40]requested_data is exist [15:03:40]produce_requested_data [15:03:40]requested_item fm.sn is exist - process it [15:03:40]wFMCommunicate request_size=4 [15:03:40]MH_SAM_APDU [15:03:40]CAPDU: 80 11 00 00 [15:03:40]Write to MH i2c: E2 08 00 0B 12 80 11 00 00 00 00 00 00 97 [15:03:40]Write i2c OK [15:03:40]MH_I2C_Read... [15:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:40]Read from MH i2c: E2 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 17 00 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 17 00 0B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EA [15:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:03:40]wFMCommunicate OK [15:03:40]requested_item fd.num is exist - process it [15:03:40]SAM_PROTO_GetFieldsCounters [15:03:40]wFMCommunicate request_size=4 [15:03:40]MH_SAM_APDU [15:03:40]CAPDU: 80 13 00 00 [15:03:40]Write to MH i2c: E2 08 00 0C 12 80 13 00 00 00 00 00 00 9A [15:03:40]Write i2c OK [15:03:40]MH_I2C_Read... [15:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:40]Read from MH i2c: E2 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 62 00 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 62 00 0C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 85 45 02 00 0E 04 04 00 70 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 63 [15:03:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 85 45 02 00 0E 04 04 00 70 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 [15:03:40]wFMCommunicate OK [15:03:40]SAM_PROTO_GetFieldsCounters done [15:03:40]requested_item shift.num is exist - process it [15:03:40]requested_item shift.opened is exist - process it [15:03:40]req_shift_opened [15:03:40]FM_GetShiftState [15:03:40]SAM_PROTO_GetShiftState [15:03:40]wFMCommunicate request_size=4 [15:03:40]MH_SAM_APDU [15:03:40]CAPDU: 80 13 01 00 [15:03:40]Write to MH i2c: E2 08 00 0D 12 80 13 01 00 00 00 00 00 9C [15:03:40]Write i2c OK [15:03:40]MH_I2C_Read... [15:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:40]Read from MH i2c: E2 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 0E 00 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 0E 00 0D 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5F [15:03:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:03:40]wFMCommunicate OK [15:03:40]SAM_PROTO_GetShiftState done [15:03:40]FM_GetShiftState done [15:03:40]req_shift_opened done [15:03:40]requested_item shift.open_date is exist - process it [15:03:40]req_shift_open_date [15:03:40]req_shift_open_date done [15:03:40]produce_requested_data done [15:03:40]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148869,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:03:40]process_action_free close_receipt [15:03:40]json_value_free [15:03:40]json_value_free done [15:03:40]process_json_proto returns [15:03:40]Send response to host [15:03:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148869,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:03:40]free response buf [15:03:40]execute_script done [15:03:40]execute_script returns [15:03:40]free content buf [15:03:40]Sock 9.Close socket [15:03:40]Sock 9.Thread stoped [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:31]accept exits with 7 [15:07:31]New connection [15:07:31]New thread 3067264356 created [15:07:31]Thread 3067407716 joined [15:07:31]Waiting for new connection... [15:07:31] Sock 7.Parse request [15:07:31]Sock 7.Check first char [15:07:31]Sock 7.First char is OK [15:07:31]request: POST /json_proto HTTP/1.0 [15:07:31]Method: POST [15:07:31]URL: /json_proto [15:07:31]Method is POST - this is cgi request [15:07:31]url: /json_proto [15:07:31]query_string will be loaded in cgi processing [15:07:31]execute_cgi json_proto POST (null) [15:07:31]execute_cgi path=json_proto method=POST [15:07:31]POST find Content-Length [15:07:31]Host: 172.17.38.4:8080 [15:07:31]Content-Length: 677 [15:07:31]Content-Type: application/json [15:07:31] [15:07:31]POST finish read [15:07:31]Found Content-Length = 677 [15:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [15:07:31]execute_script... [15:07: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)979799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [15:07:31]POST & json_proto [15:07:31]process_json_proto [15:07:31]json parsed OK: [15:07:31]protocol is kg_v1.0 [15:07:31]action value=close_receipt [15:07:31]process_action close_receipt [15:07:31]cmd_close_receipt [15:07:31]MH_GetDate [15:07:31]Write to MH i2c: F0 00 00 0E 12 0F [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: F0 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: F0 09 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: F0 09 00 0E 12 00 B4 2D 5F 66 CC 51 87 64 C6 [15:07:31]GetLastDocTimeStamp 1717513417 [15:07:31]current date 1717513652 [15:07:31]FM_GetShiftState [15:07:31]SAM_PROTO_GetShiftState [15:07:31]wFMCommunicate request_size=4 [15:07:31]MH_SAM_APDU [15:07:31]CAPDU: 80 13 01 00 [15:07:31]Write to MH i2c: E2 08 00 0F 12 80 13 01 00 00 00 00 00 9E [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 0E 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 0E 00 0F 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 61 [15:07:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:07:31]wFMCommunicate OK [15:07:31]SAM_PROTO_GetShiftState done [15:07:31]FM_GetShiftState done [15:07:31]opened in 1717460629 [15:07:31]opened+sec_in_day 1717547029 [15:07:31]quantity*price = 15052 [15:07:31]sum+1 = 15054 [15:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 209 04.06.2024 15:07 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148870 ФПД: 218815609784944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150732&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148870&fm=218815609784944&tin=02508201610067®Number=0000000000092720&sum=15000 [15:07:32]StoreToDocumentArchive [15:07:32]shift 368 fd 148870 [15:07:32]save to /storage/0368/doc_00148870 [15:07:32]save last doc name /storage/0368/doc_00148870 to /storage/kkm_last_doc_name [15:07:32]save OK [15:07:32]Clear old archive folders... [15:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:32]tlvbuf is 0047B1C0 [15:07:32]SAM_PROTO_ClearQueue [15:07:32]wFMCommunicate request_size=4 [15:07:32]MH_SAM_APDU [15:07:32]CAPDU: 80 09 00 00 [15:07:32]Write to MH i2c: E2 08 00 1C 12 80 09 00 00 00 00 00 00 A0 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:32]Read from MH i2c: E2 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 1C 12 00 90 00 A2 [15:07:32]RAPDU: 90 00 [15:07:32]wFMCommunicate OK [15:07:32]SAM_PROTO_ClearQueue done [15:07:32]KKMCreateOFDPacket [15:07:32]OFDProtocolAddRootSTLVToBuf [15:07:32]FM_MakeSignedData [15:07:32]FM_MakeSignedData [15:07:32]SAM_PROTO_SignData [15:07:32]wFMCommunicate request_size=4 [15:07:32]MH_SAM_APDU [15:07:32]CAPDU: 80 0D 01 02 [15:07:32]Write to MH i2c: E2 08 00 1D 12 80 0D 01 02 00 00 00 00 A8 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:32]Read from MH i2c: E2 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 1D 12 00 90 00 A3 [15:07:32]RAPDU: 90 00 [15:07:32]wFMCommunicate OK [15:07:32]wFMCommunicate request_size=255 [15:07:32]MH_SAM_APDU [15:07:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 B4 2D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 86 45 02 00 35 04 06 00 C7 [15:07:32]Write to MH i2c: E2 02 01 1E 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 B4 2D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 86 45 02 00 35 04 06 00 C7 00 00 AB [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:32]Read from MH i2c: E2 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 1E 12 00 90 00 A4 [15:07:32]RAPDU: 90 00 [15:07:32]wFMCommunicate OK [15:07:32]wFMCommunicate request_size=10 [15:07:32]MH_SAM_APDU [15:07:32]CAPDU: 80 0D 02 02 05 02 FA B1 4A 70 [15:07:32]Write to MH i2c: E2 0D 00 1F 12 80 0D 02 02 05 00 02 FA B1 4A 70 00 00 1C [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:32]Read from MH i2c: E2 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 1F 12 00 90 00 A5 [15:07:32]RAPDU: 90 00 [15:07:32]wFMCommunicate OK [15:07:32]wFMCommunicate request_size=4 [15:07:32]MH_SAM_APDU [15:07:32]CAPDU: 80 0D 03 02 [15:07:32]Write to MH i2c: E2 08 00 20 12 80 0D 03 02 00 00 00 00 AD [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:32]Read from MH i2c: E2 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 0B 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 0B 00 20 12 00 2B 77 71 5E A3 8E 08 C7 90 00 1F [15:07:32]RAPDU: 2B 77 71 5E A3 8E 08 C7 90 00 [15:07:32]wFMCommunicate OK [15:07:32]SAM_PROTO_SignData done [15:07:32]FM_MakeSignedData done [15:07:32]CreateOFDProtocolMessage [15:07:32]wFMCommunicate request_size=4 [15:07:32]MH_SAM_APDU [15:07:32]CAPDU: 80 11 00 00 [15:07:32]Write to MH i2c: E2 08 00 21 12 80 11 00 00 00 00 00 00 AD [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:32]Read from MH i2c: E2 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 17 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 17 00 21 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 00 [15:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:07:32]wFMCommunicate OK [15:07:32]CreateOFDProtocolMessage done [15:07:32]OFDSenderStorePacket 148870 [15:07:32]StoreOFDPacket docnum=148870 [15:07:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 33 5B 07 01 F0 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 B4 2D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 86 45 02 00 35 04 06 00 C7 02 FA B1 4A 70 2B 77 71 5E A3 8E 08 C7 [15:07:32]CheckFolder [15:07:32]dirname=/storage/ofd_packets [15:07:32]CheckFolder done [15:07:32]ProducePacketName [15:07:32]name=ofd_packets/00148870 [15:07:32]NVStorageSaveData ofd_packets/00148870 [15:07:32]File name is /storage/ofd_packets/00148870 [15:07:32]Write 301 bytes [15:07:32]NVStorageSaveData done [15:07:32]OFDSenderStorePacket done [15:07:32]KKMCreateOFDPacket done [15:07:32]NVStorageSaveData kkm_last_timestamp [15:07:32]File name is /storage/kkm_last_timestamp [15:07:32]Write 4 bytes [15:07:32]NVStorageSaveData done [15:07:32]ExternCall_PrintAddStr [15:07:32]wPrintStart [15:07:32]Write to MH i2c: 01 00 00 22 12 34 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: 01 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: 01 07 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: 01 07 00 22 12 00 00 00 00 00 FF 0F 49 [15:07:32]RasterBufferAndPrint [15:07:32]line Счет N : (1)979799 [15:07:32]line ИНН: 02508201610067 [15:07:32]line Контрольно-Кассовый Чек [15:07:32]line ПРОДАЖА [15:07:32]line ТРК (МРК, ГНК) : 22 [15:07:32]line Товар: 2710124130 [15:07:32]line Аи-92-К-5 [15:07:32]line 2.250 * 66.90 [15:07:32]line = 150.53 [15:07:32]line НДС 12% НСП 1% [15:07:32]line > о реализуемом товаре [15:07:32]line ОКРУГЛЕНИЕ: -0.53 [15:07:32]line ИТОГО: 150.00 [15:07:32]line Внесено: 150.00 [15:07:32]line СДАЧА: 0.00 [15:07:32]line НСП 1% : 1.33 [15:07:32]line НДС 12% : 15.98 [15:07:32]line Наличными: 150.00 [15:07:32]line Безнал.: 0.00 [15:07:32]line Место: АЗС № 68 "Партнер Нефть" [15:07:32]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:07:32]line СНО: Общий режим [15:07:32]line Чек 209 04.06.2024 15:07 [15:07:32]line Смена: 368 ФФД: 1.0 [15:07:32]line ЗНМ: 0300000035 [15:07:32]line РНМ: 0000000000092720 [15:07:32]line Версия ККМ: 001 [15:07:32]line ФМ: 0000000000875057 [15:07:32]line ФД: 148870 [15:07:32]line ФПД: 218815609784944 [15:07:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150732&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148870&fm=218815609784944&tin=02508201610067®Number=0000000000092720&sum=15000 [15:07:33]OFD Sender: Processing packet 148870 [packets to send 100, broken 99] [15:07:33]ProducePacketName [15:07:33]name=ofd_packets/00148870 [15:07:33]OFD Sender: To server: pG, [15:07:33]CommunicateWithHost lk.salyk.kg:30040 [15:07:33]ConnectInit lk.salyk.kg [15:07:33]written 0, free lines is 4095 [15:07:33]Connected sock=10 [15:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 33 5B 07 01 F0 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 B4 2D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 86 45 02 00 35 04 06 00 C7 02 FA B1 4A 70 2B 77 71 5E A3 8E 08 C7 [15:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 30 BC 47 00 26 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 86 45 02 00 F4 03 04 00 D8 D4 5E 66 B6 04 01 00 00 FC 70 CA D2 82 08 E9 47 [15:07:33]CommunicateWithHost err = 0 [15:07:33]CheckOFDResponse [15:07:33]1017 (14) - 77093643461234 [15:07:33]1041 (16) - 0000000000875057 [15:07:33]1040 (4) - 148870 [15:07:33]1012 (4) - 04.06.2024 08:48 [15:07:33]1206 (1) - 0 [15:07:33]OFD Sender: Remove packet 148870 [15:07:33]ProducePacketName [15:07:33]name=ofd_packets/00148870 [15:07:33]NVStorageDeleteData [15:07:33]Write to MH i2c: 01 00 00 4D 12 5F [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: 01 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: 01 07 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: 01 07 00 4D 12 00 00 00 00 00 74 0C E6 [15:07:33]RasterBufferAndPrint [15:07:33]line [15:07:33]line [15:07:33]line [15:07:33]line [15:07:33]line [15:07:33]written 0, free lines is 3191 [15:07:33]MH_Cut [15:07:33]Write to MH i2c: D1 01 00 54 12 01 38 [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: D1 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: D1 01 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: D1 01 00 54 12 00 37 [15:07:33]Write to MH i2c: 01 00 00 55 12 67 [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:34]OFD Sender: No OFD packet to send [15:07:34]*** Cut start [15:07:34]*** Partial cut [15:07:34]*** CUTSNS_PIN = 1 [15:07:35]*** CUTSNS_PIN = 0 [15:07:35]*** Brake cut motor [15:07:35]Read from MH i2c: 01 [15:07:35]MH_I2C_Read... [15:07:35]*** Stop cut motor [15:07:35]*** Cut end [15:07:35]Read from MH i2c: 01 07 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 07 00 55 12 00 00 00 00 00 FF 0F 7C [15:07:35]process_action close_receipt done [15:07:35]requested_data is exist [15:07:35]produce_requested_data [15:07:35]requested_item fm.sn is exist - process it [15:07:35]wFMCommunicate request_size=4 [15:07:35]MH_SAM_APDU [15:07:35]CAPDU: 80 11 00 00 [15:07:35]Write to MH i2c: E2 08 00 56 12 80 11 00 00 00 00 00 00 E2 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 17 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 17 00 56 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 35 [15:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:07:35]wFMCommunicate OK [15:07:35]requested_item fd.num is exist - process it [15:07:35]SAM_PROTO_GetFieldsCounters [15:07:35]wFMCommunicate request_size=4 [15:07:35]MH_SAM_APDU [15:07:35]CAPDU: 80 13 00 00 [15:07:35]Write to MH i2c: E2 08 00 57 12 80 13 00 00 00 00 00 00 E5 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 62 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 62 00 57 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 86 45 02 00 0E 04 04 00 70 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 B2 [15:07:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 86 45 02 00 0E 04 04 00 70 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 [15:07:35]wFMCommunicate OK [15:07:35]SAM_PROTO_GetFieldsCounters done [15:07:35]requested_item shift.num is exist - process it [15:07:35]requested_item shift.opened is exist - process it [15:07:35]req_shift_opened [15:07:35]FM_GetShiftState [15:07:35]SAM_PROTO_GetShiftState [15:07:35]wFMCommunicate request_size=4 [15:07:35]MH_SAM_APDU [15:07:35]CAPDU: 80 13 01 00 [15:07:35]Write to MH i2c: E2 08 00 58 12 80 13 01 00 00 00 00 00 E7 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 0E 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 0E 00 58 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AA [15:07:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:07:35]wFMCommunicate OK [15:07:35]SAM_PROTO_GetShiftState done [15:07:35]FM_GetShiftState done [15:07:35]req_shift_opened done [15:07:35]requested_item shift.open_date is exist - process it [15:07:35]req_shift_open_date [15:07:35]req_shift_open_date done [15:07:35]produce_requested_data done [15:07:35]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148870,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:07:35]process_action_free close_receipt [15:07:35]json_value_free [15:07:35]json_value_free done [15:07:35]process_json_proto returns [15:07:35]Send response to host [15:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148870,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:07:35]free response buf [15:07:35]execute_script done [15:07:35]execute_script returns [15:07:35]free content buf [15:07:35]Sock 7.Close socket [15:07:35]Sock 7.Thread stoped [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:55]accept exits with 9 [15:08:55]New connection [15:08:55]New thread 3067407716 created [15:08:55]Thread 3067264356 joined [15:08:55]Waiting for new connection... [15:08:55] Sock 9.Parse request [15:08:55]Sock 9.Check first char [15:08:55]Sock 9.First char is OK [15:08:55]request: POST /json_proto HTTP/1.0 [15:08:55]Method: POST [15:08:55]URL: /json_proto [15:08:55]Method is POST - this is cgi request [15:08:55]url: /json_proto [15:08:55]query_string will be loaded in cgi processing [15:08:55]execute_cgi json_proto POST (null) [15:08:55]execute_cgi path=json_proto method=POST [15:08:55]POST find Content-Length [15:08:55]Host: 172.17.38.4:8080 [15:08:55]Content-Length: 670 [15:08:55]Content-Type: application/json [15:08:55] [15:08:55]POST finish read [15:08:55]Found Content-Length = 670 [15:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 4.420, "sum" : 300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:55]execute_script... [15:08: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)979800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 4.420, "sum" : 300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:55]POST & json_proto [15:08:55]process_json_proto [15:08:55]json parsed OK: [15:08:55]protocol is kg_v1.0 [15:08:55]action value=close_receipt [15:08:55]process_action close_receipt [15:08:55]cmd_close_receipt [15:08:55]MH_GetDate [15:08:55]Write to MH i2c: F0 00 00 59 12 5A [15:08:55]Write i2c OK [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: F0 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: F0 09 00 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: F0 09 00 59 12 00 08 2E 5F 66 CC 51 87 64 66 [15:08:55]GetLastDocTimeStamp 1717513652 [15:08:55]current date 1717513736 [15:08:55]FM_GetShiftState [15:08:55]SAM_PROTO_GetShiftState [15:08:55]wFMCommunicate request_size=4 [15:08:55]MH_SAM_APDU [15:08:55]CAPDU: 80 13 01 00 [15:08:55]Write to MH i2c: E2 08 00 5A 12 80 13 01 00 00 00 00 00 E9 [15:08:55]Write i2c OK [15:08:55]MH_I2C_Read... [15:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:55]Read from MH i2c: E2 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: E2 0E 00 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: E2 0E 00 5A 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AC [15:08:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:08:55]wFMCommunicate OK [15:08:55]SAM_PROTO_GetShiftState done [15:08:55]FM_GetShiftState done [15:08:55]opened in 1717460629 [15:08:55]opened+sec_in_day 1717547029 [15:08:55]quantity*price = 30011 [15:08:55]sum+1 = 30013 [15:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 210 04.06.2024 15:08 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148871 ФПД: 94699160548153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150856&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148871&fm=94699160548153&tin=02508201610067®Number=0000000000092720&sum=30000 [15:08:56]StoreToDocumentArchive [15:08:56]shift 368 fd 148871 [15:08:56]save to /storage/0368/doc_00148871 [15:08:56]save last doc name /storage/0368/doc_00148871 to /storage/kkm_last_doc_name [15:08:56]save OK [15:08:56]Clear old archive folders... [15:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:08:56]tlvbuf is B6FC7720 [15:08:56]SAM_PROTO_ClearQueue [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 09 00 00 [15:08:56]Write to MH i2c: E2 08 00 67 12 80 09 00 00 00 00 00 00 EB [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 67 12 00 90 00 ED [15:08:56]RAPDU: 90 00 [15:08:56]wFMCommunicate OK [15:08:56]SAM_PROTO_ClearQueue done [15:08:56]KKMCreateOFDPacket [15:08:56]OFDProtocolAddRootSTLVToBuf [15:08:56]FM_MakeSignedData [15:08:56]FM_MakeSignedData [15:08:56]SAM_PROTO_SignData [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 0D 01 02 [15:08:56]Write to MH i2c: E2 08 00 68 12 80 0D 01 02 00 00 00 00 F3 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 68 12 00 90 00 EE [15:08:56]RAPDU: 90 00 [15:08:56]wFMCommunicate OK [15:08:56]wFMCommunicate request_size=255 [15:08:56]MH_SAM_APDU [15:08: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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 08 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 87 45 02 00 35 04 06 00 [15:08:56]Write to MH i2c: E2 02 01 69 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 08 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 87 45 02 00 35 04 06 00 00 00 1B [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 69 12 00 90 00 EF [15:08:56]RAPDU: 90 00 [15:08:56]wFMCommunicate OK [15:08:56]wFMCommunicate request_size=11 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 0D 02 02 06 56 20 DD D3 33 39 [15:08:56]Write to MH i2c: E2 0E 00 6A 12 80 0D 02 02 06 00 56 20 DD D3 33 39 00 00 94 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 03 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 03 00 6A 12 00 90 00 F0 [15:08:57]RAPDU: 90 00 [15:08:57]wFMCommunicate OK [15:08:57]wFMCommunicate request_size=4 [15:08:57]MH_SAM_APDU [15:08:57]CAPDU: 80 0D 03 02 [15:08:57]Write to MH i2c: E2 08 00 6B 12 80 0D 03 02 00 00 00 00 F8 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 0B 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 0B 00 6B 12 00 0B DE 6D ED BE FA CC CB 90 00 8B [15:08:57]RAPDU: 0B DE 6D ED BE FA CC CB 90 00 [15:08:57]wFMCommunicate OK [15:08:57]SAM_PROTO_SignData done [15:08:57]FM_MakeSignedData done [15:08:57]CreateOFDProtocolMessage [15:08:57]wFMCommunicate request_size=4 [15:08:57]MH_SAM_APDU [15:08:57]CAPDU: 80 11 00 00 [15:08:57]Write to MH i2c: E2 08 00 6C 12 80 11 00 00 00 00 00 00 F8 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 17 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 17 00 6C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4B [15:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:08:57]wFMCommunicate OK [15:08:57]CreateOFDProtocolMessage done [15:08:57]OFDSenderStorePacket 148871 [15:08:57]StoreOFDPacket docnum=148871 [15:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 DB 74 08 01 32 F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 08 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 87 45 02 00 35 04 06 00 56 20 DD D3 33 39 0B DE 6D ED BE FA CC CB [15:08:57]CheckFolder [15:08:57]dirname=/storage/ofd_packets [15:08:57]CheckFolder done [15:08:57]ProducePacketName [15:08:57]name=ofd_packets/00148871 [15:08:57]NVStorageSaveData ofd_packets/00148871 [15:08:57]File name is /storage/ofd_packets/00148871 [15:08:57]Write 302 bytes [15:08:57]NVStorageSaveData done [15:08:57]OFDSenderStorePacket done [15:08:57]KKMCreateOFDPacket done [15:08:57]NVStorageSaveData kkm_last_timestamp [15:08:57]File name is /storage/kkm_last_timestamp [15:08:57]Write 4 bytes [15:08:57]NVStorageSaveData done [15:08:57]ExternCall_PrintAddStr [15:08:57]wPrintStart [15:08:57]Write to MH i2c: 01 00 00 6D 12 7F [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 07 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 07 00 6D 12 00 00 00 00 00 FF 0F 94 [15:08:57]RasterBufferAndPrint [15:08:57]line Счет N : (1)979800 [15:08:57]line ИНН: 02508201610067 [15:08:57]line Контрольно-Кассовый Чек [15:08:57]line ПРОДАЖА [15:08:57]line ТРК (МРК, ГНК) : 43 [15:08:57]line Товар: 2710124130 [15:08:57]line SUPER 92-К-5 [15:08:57]line 4.420 * 67.90 [15:08:57]line = 300.12 [15:08:57]line НДС 12% НСП 1% [15:08:57]line > о реализуемом товаре [15:08:57]line ОКРУГЛЕНИЕ: -0.12 [15:08:57]line ИТОГО: 300.00 [15:08:57]line Внесено: 300.00 [15:08:57]line СДАЧА: 0.00 [15:08:57]line НСП 1% : 2.66 [15:08:57]line НДС 12% : 31.87 [15:08:57]line Наличными: 300.00 [15:08:57]line Безнал.: 0.00 [15:08:57]line Место: АЗС № 68 "Партнер Нефть" [15:08:57]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:08:57]line СНО: Общий режим [15:08:57]line Чек 210 04.06.2024 15:08 [15:08:57]line Смена: 368 ФФД: 1.0 [15:08:57]line ЗНМ: 0300000035 [15:08:57]line РНМ: 0000000000092720 [15:08:57]line Версия ККМ: 001 [15:08:57]line ФМ: 0000000000875057 [15:08:57]line ФД: 148871 [15:08:57]line ФПД: 94699160548153 [15:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150856&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148871&fm=94699160548153&tin=02508201610067®Number=0000000000092720&sum=30000 [15:08:57]OFD Sender: Processing packet 148871 [packets to send 100, broken 99] [15:08:57]ProducePacketName [15:08:57]name=ofd_packets/00148871 [15:08:57]OFD Sender: To server: pG, [15:08:57]CommunicateWithHost lk.salyk.kg:30040 [15:08:57]ConnectInit lk.salyk.kg [15:08:57]written 0, free lines is 4095 [15:08:57]Connected sock=10 [15:08:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 DB 74 08 01 32 F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 08 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 87 45 02 00 35 04 06 00 56 20 DD D3 33 39 0B DE 6D ED BE FA CC CB [15:08:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BC 5A 47 00 AD 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 38 37 35 30 35 37 10 04 04 00 87 45 02 00 F4 03 04 00 2C D5 5E 66 B6 04 01 00 00 8D 69 75 01 25 E6 39 8C [15:08:57]CommunicateWithHost err = 0 [15:08:57]CheckOFDResponse [15:08:57]1017 (14) - 77093643461234 [15:08:57]1041 (16) - 0000000000875057 [15:08:57]1040 (4) - 148871 [15:08:57]1012 (4) - 04.06.2024 08:49 [15:08:57]1206 (1) - 0 [15:08:57]OFD Sender: Remove packet 148871 [15:08:57]ProducePacketName [15:08:57]name=ofd_packets/00148871 [15:08:57]NVStorageDeleteData [15:08:57]Write to MH i2c: 01 00 00 98 12 AA [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 07 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 07 00 98 12 00 00 00 00 00 73 0C 30 [15:08:57]RasterBufferAndPrint [15:08:57]line [15:08:57]line [15:08:57]line [15:08:57]line [15:08:57]line [15:08:57]written 0, free lines is 3189 [15:08:57]MH_Cut [15:08:57]Write to MH i2c: D1 01 00 9F 12 01 83 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: D1 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: D1 01 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: D1 01 00 9F 12 00 82 [15:08:57]Write to MH i2c: 01 00 00 A0 12 B2 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:58]OFD Sender: No OFD packet to send [15:08:59]*** Cut start [15:08:59]*** Partial cut [15:08:59]*** CUTSNS_PIN = 1 [15:08:59]*** CUTSNS_PIN = 0 [15:08:59]*** Brake cut motor [15:08:59]Read from MH i2c: 01 [15:08:59]MH_I2C_Read... [15:08:59]*** Stop cut motor [15:08:59]*** Cut end [15:08:59]Read from MH i2c: 01 07 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 07 00 A0 12 00 00 00 00 00 FF 0F C7 [15:08:59]process_action close_receipt done [15:08:59]requested_data is exist [15:08:59]produce_requested_data [15:08:59]requested_item fm.sn is exist - process it [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 11 00 00 [15:08:59]Write to MH i2c: E2 08 00 A1 12 80 11 00 00 00 00 00 00 2D [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 17 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 17 00 A1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 80 [15:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:08:59]wFMCommunicate OK [15:08:59]requested_item fd.num is exist - process it [15:08:59]SAM_PROTO_GetFieldsCounters [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 13 00 00 [15:08:59]Write to MH i2c: E2 08 00 A2 12 80 13 00 00 00 00 00 00 30 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 62 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 62 00 A2 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 87 45 02 00 0E 04 04 00 70 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 01 [15:09:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 87 45 02 00 0E 04 04 00 70 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 [15:09:00]wFMCommunicate OK [15:09:00]SAM_PROTO_GetFieldsCounters done [15:09:00]requested_item shift.num is exist - process it [15:09:00]requested_item shift.opened is exist - process it [15:09:00]req_shift_opened [15:09:00]FM_GetShiftState [15:09:00]SAM_PROTO_GetShiftState [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 13 01 00 [15:09:00]Write to MH i2c: E2 08 00 A3 12 80 13 01 00 00 00 00 00 32 [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 0E 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 0E 00 A3 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F5 [15:09:00]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:09:00]wFMCommunicate OK [15:09:00]SAM_PROTO_GetShiftState done [15:09:00]FM_GetShiftState done [15:09:00]req_shift_opened done [15:09:00]requested_item shift.open_date is exist - process it [15:09:00]req_shift_open_date [15:09:00]req_shift_open_date done [15:09:00]produce_requested_data done [15:09:00]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148871,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:09:00]process_action_free close_receipt [15:09:00]json_value_free [15:09:00]json_value_free done [15:09:00]process_json_proto returns [15:09:00]Send response to host [15:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148871,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:09:00]free response buf [15:09:00]execute_script done [15:09:00]execute_script returns [15:09:00]free content buf [15:09:00]Sock 9.Close socket [15:09:00]Sock 9.Thread stoped [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [15:10:03]accept exits with 7 [15:10:03]New connection [15:10:03]New thread 3067264356 created [15:10:03]Thread 3067407716 joined [15:10:03]Waiting for new connection... [15:10:03] Sock 7.Parse request [15:10:03]Sock 7.Check first char [15:10:03]Sock 7.First char is OK [15:10:03]request: POST /json_proto HTTP/1.0 [15:10:03]Method: POST [15:10:03]URL: /json_proto [15:10:03]Method is POST - this is cgi request [15:10:03]url: /json_proto [15:10:03]query_string will be loaded in cgi processing [15:10:03]execute_cgi json_proto POST (null) [15:10:03]execute_cgi path=json_proto method=POST [15:10:03]POST find Content-Length [15:10:03]Host: 172.17.38.4:8080 [15:10:03]Content-Length: 677 [15:10:03]Content-Type: application/json [15:10:03] [15:10:03]POST finish read [15:10:03]Found Content-Length = 677 [15:10:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:03]execute_script... [15:10: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)979801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:03]POST & json_proto [15:10:03]process_json_proto [15:10:03]json parsed OK: [15:10:03]protocol is kg_v1.0 [15:10:03]action value=close_receipt [15:10:03]process_action close_receipt [15:10:03]cmd_close_receipt [15:10:03]MH_GetDate [15:10:03]Write to MH i2c: F0 00 00 A4 12 A5 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: F0 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: F0 09 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: F0 09 00 A4 12 00 4C 2E 5F 66 CC 51 87 64 F5 [15:10:03]GetLastDocTimeStamp 1717513736 [15:10:03]current date 1717513804 [15:10:03]FM_GetShiftState [15:10:03]SAM_PROTO_GetShiftState [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 13 01 00 [15:10:03]Write to MH i2c: E2 08 00 A5 12 80 13 01 00 00 00 00 00 34 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 0E 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 0E 00 A5 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F7 [15:10:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:10:03]wFMCommunicate OK [15:10:03]SAM_PROTO_GetShiftState done [15:10:03]FM_GetShiftState done [15:10:03]opened in 1717460629 [15:10:03]opened+sec_in_day 1717547029 [15:10:03]quantity*price = 30038 [15:10:03]sum+1 = 30039 [15:10:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 211 04.06.2024 15:10 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148872 ФПД: 119417282045137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151004&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148872&fm=119417282045137&tin=02508201610067®Number=0000000000092720&sum=30000 [15:10:04]StoreToDocumentArchive [15:10:04]shift 368 fd 148872 [15:10:04]save to /storage/0368/doc_00148872 [15:10:04]save last doc name /storage/0368/doc_00148872 to /storage/kkm_last_doc_name [15:10:04]save OK [15:10:04]Clear old archive folders... [15:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:04]tlvbuf is 00486E40 [15:10:04]SAM_PROTO_ClearQueue [15:10:04]wFMCommunicate request_size=4 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 09 00 00 [15:10:04]Write to MH i2c: E2 08 00 B2 12 80 09 00 00 00 00 00 00 36 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 B2 12 00 90 00 38 [15:10:04]RAPDU: 90 00 [15:10:04]wFMCommunicate OK [15:10:04]SAM_PROTO_ClearQueue done [15:10:04]KKMCreateOFDPacket [15:10:04]OFDProtocolAddRootSTLVToBuf [15:10:04]FM_MakeSignedData [15:10:04]FM_MakeSignedData [15:10:04]SAM_PROTO_SignData [15:10:04]wFMCommunicate request_size=4 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 0D 01 02 [15:10:04]Write to MH i2c: E2 08 00 B3 12 80 0D 01 02 00 00 00 00 3E [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 B3 12 00 90 00 39 [15:10:04]RAPDU: 90 00 [15:10:04]wFMCommunicate OK [15:10:04]wFMCommunicate request_size=255 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D3 00 00 00 F4 03 04 00 4C 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 88 45 02 00 35 04 06 00 6C [15:10:04]Write to MH i2c: E2 02 01 B4 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D3 00 00 00 F4 03 04 00 4C 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 88 45 02 00 35 04 06 00 6C 00 00 7A [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:05]Read from MH i2c: E2 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 03 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 03 00 B4 12 00 90 00 3A [15:10:05]RAPDU: 90 00 [15:10:05]wFMCommunicate OK [15:10:05]wFMCommunicate request_size=10 [15:10:05]MH_SAM_APDU [15:10:05]CAPDU: 80 0D 02 02 05 9C 00 AD 24 D1 [15:10:05]Write to MH i2c: E2 0D 00 B5 12 80 0D 02 02 05 00 9C 00 AD 24 D1 00 00 89 [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:05]Read from MH i2c: E2 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 03 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 03 00 B5 12 00 90 00 3B [15:10:05]RAPDU: 90 00 [15:10:05]wFMCommunicate OK [15:10:05]wFMCommunicate request_size=4 [15:10:05]MH_SAM_APDU [15:10:05]CAPDU: 80 0D 03 02 [15:10:05]Write to MH i2c: E2 08 00 B6 12 80 0D 03 02 00 00 00 00 43 [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:05]Read from MH i2c: E2 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 0B 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 0B 00 B6 12 00 00 14 65 84 CE 93 25 70 90 00 37 [15:10:05]RAPDU: 00 14 65 84 CE 93 25 70 90 00 [15:10:05]wFMCommunicate OK [15:10:05]SAM_PROTO_SignData done [15:10:05]FM_MakeSignedData done [15:10:05]CreateOFDProtocolMessage [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 B7 12 80 11 00 00 00 00 00 00 43 [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 B7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 96 [15:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:10:05]wFMCommunicate OK [15:10:05]CreateOFDProtocolMessage done [15:10:05]OFDSenderStorePacket 148872 [15:10:05]StoreOFDPacket docnum=148872 [15:10:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AB 09 07 01 2E 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 4C 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 88 45 02 00 35 04 06 00 6C 9C 00 AD 24 D1 00 14 65 84 CE 93 25 70 [15:10:05]CheckFolder [15:10:05]dirname=/storage/ofd_packets [15:10:05]CheckFolder done [15:10:05]ProducePacketName [15:10:05]name=ofd_packets/00148872 [15:10:05]NVStorageSaveData ofd_packets/00148872 [15:10:05]File name is /storage/ofd_packets/00148872 [15:10:05]Write 301 bytes [15:10:05]NVStorageSaveData done [15:10:05]OFDSenderStorePacket done [15:10:05]KKMCreateOFDPacket done [15:10:05]NVStorageSaveData kkm_last_timestamp [15:10:05]File name is /storage/kkm_last_timestamp [15:10:05]Write 4 bytes [15:10:05]NVStorageSaveData done [15:10:05]ExternCall_PrintAddStr [15:10:05]wPrintStart [15:10:05]Write to MH i2c: 01 00 00 B8 12 CA [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: 01 [15:10:05]MH_I2C_Read... [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 B8 12 00 00 00 00 00 FF 0F DF [15:10:05]RasterBufferAndPrint [15:10:05]line Счет N : (1)979801 [15:10:05]line ИНН: 02508201610067 [15:10:05]line Контрольно-Кассовый Чек [15:10:05]line ПРОДАЖА [15:10:05]line ТРК (МРК, ГНК) : 22 [15:10:05]line Товар: 2710124130 [15:10:05]line Аи-92-К-5 [15:10:05]line 4.490 * 66.90 [15:10:05]line = 300.38 [15:10:05]line НДС 12% НСП 1% [15:10:05]line > о реализуемом товаре [15:10:05]line ОКРУГЛЕНИЕ: -0.38 [15:10:05]line ИТОГО: 300.00 [15:10:05]line Внесено: 300.00 [15:10:05]line СДАЧА: 0.00 [15:10:05]line НСП 1% : 2.66 [15:10:05]line НДС 12% : 31.90 [15:10:05]line Наличными: 300.00 [15:10:05]line Безнал.: 0.00 [15:10:05]line Место: АЗС № 68 "Партнер Нефть" [15:10:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:10:05]line СНО: Общий режим [15:10:05]line Чек 211 04.06.2024 15:10 [15:10:05]line Смена: 368 ФФД: 1.0 [15:10:05]line ЗНМ: 0300000035 [15:10:05]line РНМ: 0000000000092720 [15:10:05]line Версия ККМ: 001 [15:10:05]line ФМ: 0000000000875057 [15:10:05]line ФД: 148872 [15:10:05]line ФПД: 119417282045137 [15:10:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151004&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148872&fm=119417282045137&tin=02508201610067®Number=0000000000092720&sum=30000 [15:10:05]OFD Sender: Processing packet 148872 [packets to send 100, broken 99] [15:10:05]ProducePacketName [15:10:05]name=ofd_packets/00148872 [15:10:05]OFD Sender: To server: pG, [15:10:05]CommunicateWithHost lk.salyk.kg:30040 [15:10:05]ConnectInit lk.salyk.kg [15:10:05]written 0, free lines is 4095 [15:10:05]Connected sock=10 [15:10:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AB 09 07 01 2E 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 4C 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 88 45 02 00 35 04 06 00 6C 9C 00 AD 24 D1 00 14 65 84 CE 93 25 70 [15:10:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C7 03 47 00 EE 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 88 45 02 00 F4 03 04 00 70 D5 5E 66 B6 04 01 00 00 B2 E0 54 A6 DD 69 F0 E1 [15:10:05]CommunicateWithHost err = 0 [15:10:05]CheckOFDResponse [15:10:05]1017 (14) - 77093643461234 [15:10:05]1041 (16) - 0000000000875057 [15:10:05]1040 (4) - 148872 [15:10:05]1012 (4) - 04.06.2024 08:50 [15:10:05]1206 (1) - 0 [15:10:05]OFD Sender: Remove packet 148872 [15:10:05]ProducePacketName [15:10:05]name=ofd_packets/00148872 [15:10:05]NVStorageDeleteData [15:10:05]Write to MH i2c: 01 00 00 E3 12 F5 [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: 01 [15:10:05]MH_I2C_Read... [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 E3 12 00 00 00 00 00 75 0C 7D [15:10:05]RasterBufferAndPrint [15:10:05]line [15:10:05]line [15:10:05]line [15:10:05]line [15:10:05]line [15:10:05]written 0, free lines is 3192 [15:10:06]MH_Cut [15:10:06]Write to MH i2c: D1 01 00 EA 12 01 CE [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: D1 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: D1 01 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: D1 01 00 EA 12 00 CD [15:10:06]Write to MH i2c: 01 00 00 EB 12 FD [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]OFD Sender: No OFD packet to send [15:10:07]*** Cut start [15:10:07]*** Partial cut [15:10:07]*** CUTSNS_PIN = 1 [15:10:07]*** CUTSNS_PIN = 0 [15:10:07]*** Brake cut motor [15:10:07]Read from MH i2c: 01 [15:10:07]MH_I2C_Read... [15:10:07]*** Stop cut motor [15:10:07]*** Cut end [15:10:07]Read from MH i2c: 01 07 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 FF 0F 12 [15:10:07]process_action close_receipt done [15:10:07]requested_data is exist [15:10:07]produce_requested_data [15:10:07]requested_item fm.sn is exist - process it [15:10:07]wFMCommunicate request_size=4 [15:10:07]MH_SAM_APDU [15:10:07]CAPDU: 80 11 00 00 [15:10:07]Write to MH i2c: E2 08 00 EC 12 80 11 00 00 00 00 00 00 78 [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:07]Read from MH i2c: E2 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 17 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 17 00 EC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CB [15:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:10:07]wFMCommunicate OK [15:10:07]requested_item fd.num is exist - process it [15:10:07]SAM_PROTO_GetFieldsCounters [15:10:07]wFMCommunicate request_size=4 [15:10:07]MH_SAM_APDU [15:10:07]CAPDU: 80 13 00 00 [15:10:07]Write to MH i2c: E2 08 00 ED 12 80 13 00 00 00 00 00 00 7B [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:08]Read from MH i2c: E2 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 62 00 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 62 00 ED 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 88 45 02 00 0E 04 04 00 70 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 50 [15:10:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 88 45 02 00 0E 04 04 00 70 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 [15:10:08]wFMCommunicate OK [15:10:08]SAM_PROTO_GetFieldsCounters done [15:10:08]requested_item shift.num is exist - process it [15:10:08]requested_item shift.opened is exist - process it [15:10:08]req_shift_opened [15:10:08]FM_GetShiftState [15:10:08]SAM_PROTO_GetShiftState [15:10:08]wFMCommunicate request_size=4 [15:10:08]MH_SAM_APDU [15:10:08]CAPDU: 80 13 01 00 [15:10:08]Write to MH i2c: E2 08 00 EE 12 80 13 01 00 00 00 00 00 7D [15:10:08]Write i2c OK [15:10:08]MH_I2C_Read... [15:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:08]Read from MH i2c: E2 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 0E 00 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 0E 00 EE 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 40 [15:10:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:10:08]wFMCommunicate OK [15:10:08]SAM_PROTO_GetShiftState done [15:10:08]FM_GetShiftState done [15:10:08]req_shift_opened done [15:10:08]requested_item shift.open_date is exist - process it [15:10:08]req_shift_open_date [15:10:08]req_shift_open_date done [15:10:08]produce_requested_data done [15:10:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148872,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:10:08]process_action_free close_receipt [15:10:08]json_value_free [15:10:08]json_value_free done [15:10:08]process_json_proto returns [15:10:08]Send response to host [15:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148872,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:10:08]free response buf [15:10:08]execute_script done [15:10:08]execute_script returns [15:10:08]free content buf [15:10:08]Sock 7.Close socket [15:10:08]Sock 7.Thread stoped [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:25]accept exits with 9 [15:11:25]New connection [15:11:25]New thread 3067407716 created [15:11:25]Thread 3067264356 joined [15:11:25]Waiting for new connection... [15:11:25] Sock 9.Parse request [15:11:25]Sock 9.Check first char [15:11:25]Sock 9.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.38.4:8080 [15:11:25]Content-Length: 677 [15:11:25]Content-Type: application/json [15:11:25] [15:11:25]POST finish read [15:11:25]Found Content-Length = 677 [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)979802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [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)979802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [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 EF 12 F0 [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 EF 12 00 9F 2E 5F 66 CC 51 87 64 93 [15:11:25]GetLastDocTimeStamp 1717513804 [15:11:25]current date 1717513887 [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 F0 12 80 13 01 00 00 00 00 00 7F [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 F0 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 42 [15:11:25]RAPDU: 09 00 01 95 5E 5E 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 1717460629 [15:11:25]opened+sec_in_day 1717547029 [15:11:25]quantity*price = 10035 [15:11:25]sum+1 = 10036 [15:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 212 04.06.2024 15:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148873 ФПД: 62740392895877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151127&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148873&fm=62740392895877&tin=02508201610067®Number=0000000000092720&sum=10000 [15:11:26]StoreToDocumentArchive [15:11:26]shift 368 fd 148873 [15:11:26]save to /storage/0368/doc_00148873 [15:11:26]save last doc name /storage/0368/doc_00148873 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 004C0820 [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 FD 12 80 09 00 00 00 00 00 00 81 [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 FD 12 00 90 00 83 [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 FE 12 80 0D 01 02 00 00 00 00 89 [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]*** iso7816_exchange 80 0D 01 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 FE 12 00 90 00 84 [15:11:27]RAPDU: 90 00 [15:11:27]wFMCommunicate OK [15:11:27]wFMCommunicate request_size=255 [15:11:27]MH_SAM_APDU [15:11:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D4 00 00 00 F4 03 04 00 9F 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 89 45 02 00 35 04 06 00 39 [15:11:27]Write to MH i2c: E2 02 01 FF 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D4 00 00 00 F4 03 04 00 9F 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 89 45 02 00 35 04 06 00 39 00 00 DA [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]*** 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 FF 12 00 90 00 85 [15:11:27]RAPDU: 90 00 [15:11:27]wFMCommunicate OK [15:11:27]wFMCommunicate request_size=10 [15:11:27]MH_SAM_APDU [15:11:27]CAPDU: 80 0D 02 02 05 0F E2 D4 E5 85 [15:11:27]Write to MH i2c: E2 0D 00 00 13 80 0D 02 02 05 00 0F E2 D4 E5 85 00 00 C6 [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]*** 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 00 13 00 90 00 87 [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 01 13 80 0D 03 02 00 00 00 00 8F [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 01 13 00 71 D4 00 0F 70 19 16 0C 90 00 8F [15:11:27]RAPDU: 71 D4 00 0F 70 19 16 0C 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 02 13 80 11 00 00 00 00 00 00 8F [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 02 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E2 [15:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:11:27]wFMCommunicate OK [15:11:27]CreateOFDProtocolMessage done [15:11:27]OFDSenderStorePacket 148873 [15:11:27]StoreOFDPacket docnum=148873 [15:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D2 92 07 01 28 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 35 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 D4 00 00 00 F4 03 04 00 9F 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 89 45 02 00 35 04 06 00 39 0F E2 D4 E5 85 71 D4 00 0F 70 19 16 0C [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/00148873 [15:11:27]NVStorageSaveData ofd_packets/00148873 [15:11:27]File name is /storage/ofd_packets/00148873 [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 03 13 16 [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 03 13 00 00 00 00 00 FF 0F 2B [15:11:27]RasterBufferAndPrint [15:11:27]line Счет N : (1)979802 [15:11:27]line ИНН: 02508201610067 [15:11:27]line Контрольно-Кассовый Чек [15:11:27]line ПРОДАЖА [15:11:27]line ТРК (МРК, ГНК) : 22 [15:11:27]line Товар: 2710124130 [15:11:27]line Аи-92-К-5 [15:11:27]line 1.500 * 66.90 [15:11:27]line = 100.35 [15:11:27]line НДС 12% НСП 1% [15:11:27]line > о реализуемом товаре [15:11:27]line ОКРУГЛЕНИЕ: -0.35 [15:11:27]line ИТОГО: 100.00 [15:11:27]line Внесено: 100.00 [15:11:27]line СДАЧА: 0.00 [15:11:27]line НСП 1% : 0.89 [15:11:27]line НДС 12% : 10.66 [15:11:27]line Наличными: 100.00 [15:11:27]line Безнал.: 0.00 [15:11:27]line Место: АЗС № 68 "Партнер Нефть" [15:11:27]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:11:27]line СНО: Общий режим [15:11:27]line Чек 212 04.06.2024 15:11 [15:11:27]line Смена: 368 ФФД: 1.0 [15:11:27]line ЗНМ: 0300000035 [15:11:27]line РНМ: 0000000000092720 [15:11:27]line Версия ККМ: 001 [15:11:27]line ФМ: 0000000000875057 [15:11:27]line ФД: 148873 [15:11:27]line ФПД: 62740392895877 [15:11:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151127&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148873&fm=62740392895877&tin=02508201610067®Number=0000000000092720&sum=10000 [15:11:27]OFD Sender: Processing packet 148873 [packets to send 100, broken 99] [15:11:27]ProducePacketName [15:11:27]name=ofd_packets/00148873 [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=10 [15:11:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D2 92 07 01 28 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 35 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 D4 00 00 00 F4 03 04 00 9F 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 89 45 02 00 35 04 06 00 39 0F E2 D4 E5 85 71 D4 00 0F 70 19 16 0C [15:11:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 98 90 47 00 AD 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 38 37 35 30 35 37 10 04 04 00 89 45 02 00 F4 03 04 00 C2 D5 5E 66 B6 04 01 00 00 CB 50 F0 E7 DC 10 00 5F [15:11:28]CommunicateWithHost err = 0 [15:11:28]CheckOFDResponse [15:11:28]1017 (14) - 77093643461234 [15:11:28]1041 (16) - 0000000000875057 [15:11:28]1040 (4) - 148873 [15:11:28]1012 (4) - 04.06.2024 08:52 [15:11:28]1206 (1) - 0 [15:11:28]OFD Sender: Remove packet 148873 [15:11:28]ProducePacketName [15:11:28]name=ofd_packets/00148873 [15:11:28]NVStorageDeleteData [15:11:28]Write to MH i2c: 01 00 00 2E 13 41 [15:11:28]Write i2c OK [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: 01 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: 01 07 00 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: 01 07 00 2E 13 00 00 00 00 00 74 0C C8 [15:11:28]RasterBufferAndPrint [15:11:28]line [15:11:28]line [15:11:28]line [15:11:28]line [15:11:28]line [15:11:28]written 0, free lines is 3191 [15:11:28]MH_Cut [15:11:28]Write to MH i2c: D1 01 00 35 13 01 1A [15:11:28]Write i2c OK [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: D1 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: D1 01 00 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: D1 01 00 35 13 00 19 [15:11:28]Write to MH i2c: 01 00 00 36 13 49 [15:11:28]Write i2c OK [15:11:28]MH_I2C_Read... [15:11:28]OFD Sender: No OFD packet to send [15:11:29]*** Cut start [15:11:29]*** Partial cut [15:11:29]*** CUTSNS_PIN = 1 [15:11:29]*** CUTSNS_PIN = 0 [15:11:29]*** Brake cut motor [15:11:30]Read from MH i2c: 01 [15:11:30]MH_I2C_Read... [15:11:30]*** Stop cut motor [15:11:30]*** Cut end [15:11:30]Read from MH i2c: 01 07 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: 01 07 00 36 13 00 00 00 00 00 FF 0F 5E [15:11:30]process_action close_receipt done [15:11:30]requested_data is exist [15:11:30]produce_requested_data [15:11:30]requested_item fm.sn is exist - process it [15:11:30]wFMCommunicate request_size=4 [15:11:30]MH_SAM_APDU [15:11:30]CAPDU: 80 11 00 00 [15:11:30]Write to MH i2c: E2 08 00 37 13 80 11 00 00 00 00 00 00 C4 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 17 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 17 00 37 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 17 [15:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:11:30]wFMCommunicate OK [15:11:30]requested_item fd.num is exist - process it [15:11:30]SAM_PROTO_GetFieldsCounters [15:11:30]wFMCommunicate request_size=4 [15:11:30]MH_SAM_APDU [15:11:30]CAPDU: 80 13 00 00 [15:11:30]Write to MH i2c: E2 08 00 38 13 80 13 00 00 00 00 00 00 C7 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 62 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 62 00 38 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 89 45 02 00 0E 04 04 00 70 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 A0 [15:11:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 89 45 02 00 0E 04 04 00 70 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 [15:11:30]wFMCommunicate OK [15:11:30]SAM_PROTO_GetFieldsCounters done [15:11:30]requested_item shift.num is exist - process it [15:11:30]requested_item shift.opened is exist - process it [15:11:30]req_shift_opened [15:11:30]FM_GetShiftState [15:11:30]SAM_PROTO_GetShiftState [15:11:30]wFMCommunicate request_size=4 [15:11:30]MH_SAM_APDU [15:11:30]CAPDU: 80 13 01 00 [15:11:30]Write to MH i2c: E2 08 00 39 13 80 13 01 00 00 00 00 00 C9 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 0E 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 0E 00 39 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8C [15:11:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:11:30]wFMCommunicate OK [15:11:30]SAM_PROTO_GetShiftState done [15:11:30]FM_GetShiftState done [15:11:30]req_shift_opened done [15:11:30]requested_item shift.open_date is exist - process it [15:11:30]req_shift_open_date [15:11:30]req_shift_open_date done [15:11:30]produce_requested_data done [15:11:30]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148873,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:11:30]process_action_free close_receipt [15:11:30]json_value_free [15:11:30]json_value_free done [15:11:30]process_json_proto returns [15:11:30]Send response to host [15:11:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148873,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:11:30]free response buf [15:11:30]execute_script done [15:11:30]execute_script returns [15:11:30]free content buf [15:11:30]Sock 9.Close socket [15:11:30]Sock 9.Thread stoped [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]accept exits with 7 [15:12:38]New connection [15:12:38]New thread 3067264356 created [15:12:38]Thread 3067407716 joined [15:12:38]Waiting for new connection... [15:12:38] Sock 7.Parse request [15:12:38]Sock 7.Check first char [15:12:38]Sock 7.First char is OK [15:12:38]request: POST /json_proto HTTP/1.0 [15:12:38]Method: POST [15:12:38]URL: /json_proto [15:12:38]Method is POST - this is cgi request [15:12:38]url: /json_proto [15:12:38]query_string will be loaded in cgi processing [15:12:38]execute_cgi json_proto POST (null) [15:12:38]execute_cgi path=json_proto method=POST [15:12:38]POST find Content-Length [15:12:38]Host: 172.17.38.4:8080 [15:12:38]Content-Length: 674 [15:12:38]Content-Type: application/json [15:12:38] [15:12:38]POST finish read [15:12:38]Found Content-Length = 674 [15:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:12:38]execute_script... [15:12: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)979803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:12:38]POST & json_proto [15:12:38]process_json_proto [15:12:38]json parsed OK: [15:12:38]protocol is kg_v1.0 [15:12:38]action value=close_receipt [15:12:38]process_action close_receipt [15:12:38]cmd_close_receipt [15:12:38]MH_GetDate [15:12:38]Write to MH i2c: F0 00 00 3A 13 3C [15:12:38]Write i2c OK [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: F0 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: F0 09 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: F0 09 00 3A 13 00 E8 2E 5F 66 CC 51 87 64 28 [15:12:38]GetLastDocTimeStamp 1717513887 [15:12:38]current date 1717513960 [15:12:38]FM_GetShiftState [15:12:38]SAM_PROTO_GetShiftState [15:12:38]wFMCommunicate request_size=4 [15:12:38]MH_SAM_APDU [15:12:38]CAPDU: 80 13 01 00 [15:12:38]Write to MH i2c: E2 08 00 3B 13 80 13 01 00 00 00 00 00 CB [15:12:38]Write i2c OK [15:12:38]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:38]Read from MH i2c: E2 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 0E 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 0E 00 3B 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8E [15:12:38]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:12:38]wFMCommunicate OK [15:12:38]SAM_PROTO_GetShiftState done [15:12:38]FM_GetShiftState done [15:12:38]opened in 1717460629 [15:12:38]opened+sec_in_day 1717547029 [15:12:38]quantity*price = 40022 [15:12:38]sum+1 = 40023 [15:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 213 04.06.2024 15:12 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148874 ФПД: 79314446723444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151240&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148874&fm=79314446723444&tin=02508201610067®Number=0000000000092720&sum=40000 [15:12:39]StoreToDocumentArchive [15:12:39]shift 368 fd 148874 [15:12:39]save to /storage/0368/doc_00148874 [15:12:39]save last doc name /storage/0368/doc_00148874 to /storage/kkm_last_doc_name [15:12:39]save OK [15:12:39]Clear old archive folders... [15:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:12:39]tlvbuf is 004B7B00 [15:12:39]SAM_PROTO_ClearQueue [15:12:39]wFMCommunicate request_size=4 [15:12:39]MH_SAM_APDU [15:12:39]CAPDU: 80 09 00 00 [15:12:39]Write to MH i2c: E2 08 00 48 13 80 09 00 00 00 00 00 00 CD [15:12:39]Write i2c OK [15:12:39]MH_I2C_Read... [15:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:39]Read from MH i2c: E2 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 03 00 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 03 00 48 13 00 90 00 CF [15:12:39]RAPDU: 90 00 [15:12:39]wFMCommunicate OK [15:12:39]SAM_PROTO_ClearQueue done [15:12:39]KKMCreateOFDPacket [15:12:39]OFDProtocolAddRootSTLVToBuf [15:12:39]FM_MakeSignedData [15:12:39]FM_MakeSignedData [15:12:39]SAM_PROTO_SignData [15:12:39]wFMCommunicate request_size=4 [15:12:39]MH_SAM_APDU [15:12:39]CAPDU: 80 0D 01 02 [15:12:39]Write to MH i2c: E2 08 00 49 13 80 0D 01 02 00 00 00 00 D5 [15:12:39]Write i2c OK [15:12:39]MH_I2C_Read... [15:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:39]Read from MH i2c: E2 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 03 00 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 03 00 49 13 00 90 00 D0 [15:12:39]RAPDU: 90 00 [15:12:39]wFMCommunicate OK [15:12:39]wFMCommunicate request_size=255 [15:12:39]MH_SAM_APDU [15:12:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 E8 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8A 45 02 00 35 04 06 00 48 22 D5 6C [15:12:39]Write to MH i2c: E2 02 01 4A 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 E8 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8A 45 02 00 35 04 06 00 48 22 D5 6C 00 00 9E [15:12:39]Write i2c OK [15:12:39]MH_I2C_Read... [15:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:40]Read from MH i2c: E2 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 03 00 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 03 00 4A 13 00 90 00 D1 [15:12:40]RAPDU: 90 00 [15:12:40]wFMCommunicate OK [15:12:40]wFMCommunicate request_size=7 [15:12:40]MH_SAM_APDU [15:12:40]CAPDU: 80 0D 02 02 02 29 74 [15:12:40]Write to MH i2c: E2 0A 00 4B 13 80 0D 02 02 02 00 29 74 00 00 79 [15:12:40]Write i2c OK [15:12:40]MH_I2C_Read... [15:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:40]Read from MH i2c: E2 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 03 00 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 03 00 4B 13 00 90 00 D2 [15:12:40]RAPDU: 90 00 [15:12:40]wFMCommunicate OK [15:12:40]wFMCommunicate request_size=4 [15:12:40]MH_SAM_APDU [15:12:40]CAPDU: 80 0D 03 02 [15:12:40]Write to MH i2c: E2 08 00 4C 13 80 0D 03 02 00 00 00 00 DA [15:12:40]Write i2c OK [15:12:40]MH_I2C_Read... [15:12:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:40]Read from MH i2c: E2 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 0B 00 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 0B 00 4C 13 00 6C D5 F2 36 E7 55 AA 8A 90 00 B4 [15:12:40]RAPDU: 6C D5 F2 36 E7 55 AA 8A 90 00 [15:12:40]wFMCommunicate OK [15:12:40]SAM_PROTO_SignData done [15:12:40]FM_MakeSignedData done [15:12:40]CreateOFDProtocolMessage [15:12:40]wFMCommunicate request_size=4 [15:12:40]MH_SAM_APDU [15:12:40]CAPDU: 80 11 00 00 [15:12:40]Write to MH i2c: E2 08 00 4D 13 80 11 00 00 00 00 00 00 DA [15:12:40]Write i2c OK [15:12:40]MH_I2C_Read... [15:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:40]Read from MH i2c: E2 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 17 00 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 17 00 4D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2D [15:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:12:40]wFMCommunicate OK [15:12:40]CreateOFDProtocolMessage done [15:12:40]OFDSenderStorePacket 148874 [15:12:40]StoreOFDPacket docnum=148874 [15:12:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 E3 5A 04 01 33 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 E8 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8A 45 02 00 35 04 06 00 48 22 D5 6C 29 74 6C D5 F2 36 E7 55 AA 8A [15:12:40]CheckFolder [15:12:40]dirname=/storage/ofd_packets [15:12:40]CheckFolder done [15:12:40]ProducePacketName [15:12:40]name=ofd_packets/00148874 [15:12:40]NVStorageSaveData ofd_packets/00148874 [15:12:40]File name is /storage/ofd_packets/00148874 [15:12:40]Write 298 bytes [15:12:40]NVStorageSaveData done [15:12:40]OFDSenderStorePacket done [15:12:40]KKMCreateOFDPacket done [15:12:40]NVStorageSaveData kkm_last_timestamp [15:12:40]File name is /storage/kkm_last_timestamp [15:12:40]Write 4 bytes [15:12:40]NVStorageSaveData done [15:12:40]ExternCall_PrintAddStr [15:12:40]wPrintStart [15:12:40]Write to MH i2c: 01 00 00 4E 13 61 [15:12:40]Write i2c OK [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: 01 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: 01 07 00 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 FF 0F 76 [15:12:40]RasterBufferAndPrint [15:12:40]line Счет N : (1)979803 [15:12:40]line ИНН: 02508201610067 [15:12:40]line Контрольно-Кассовый Чек [15:12:40]line ПРОДАЖА [15:12:40]line ТРК (МРК, ГНК) : 51 [15:12:40]line Товар: 2710194210 [15:12:40]line ДТ-К-5 [15:12:40]line 5.490 * 72.90 [15:12:40]line = 400.22 [15:12:40]line НДС 12% НСП 1% [15:12:40]line > о реализуемом товаре [15:12:40]line ОКРУГЛЕНИЕ: -0.22 [15:12:40]line ИТОГО: 400.00 [15:12:40]line Внесено: 400.00 [15:12:40]line СДАЧА: 0.00 [15:12:40]line НСП 1% : 3.54 [15:12:40]line НДС 12% : 42.50 [15:12:40]line Наличными: 400.00 [15:12:40]line Безнал.: 0.00 [15:12:40]line Место: АЗС № 68 "Партнер Нефть" [15:12:40]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:12:40]line СНО: Общий режим [15:12:40]line Чек 213 04.06.2024 15:12 [15:12:40]line Смена: 368 ФФД: 1.0 [15:12:40]line ЗНМ: 0300000035 [15:12:40]line РНМ: 0000000000092720 [15:12:40]line Версия ККМ: 001 [15:12:40]line ФМ: 0000000000875057 [15:12:40]line ФД: 148874 [15:12:40]line ФПД: 79314446723444 [15:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151240&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148874&fm=79314446723444&tin=02508201610067®Number=0000000000092720&sum=40000 [15:12:40]OFD Sender: Processing packet 148874 [packets to send 100, broken 99] [15:12:40]ProducePacketName [15:12:40]name=ofd_packets/00148874 [15:12:40]OFD Sender: To server: pG, [15:12:40]CommunicateWithHost lk.salyk.kg:30040 [15:12:40]ConnectInit lk.salyk.kg [15:12:40]written 0, free lines is 4095 [15:12:40]Connected sock=10 [15:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 E3 5A 04 01 33 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 E8 2E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8A 45 02 00 35 04 06 00 48 22 D5 6C 29 74 6C D5 F2 36 E7 55 AA 8A [15:12:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 0D 3F 47 00 3B FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8A 45 02 00 F4 03 04 00 0B D6 5E 66 B6 04 01 00 00 0B 06 9A D9 61 39 FE DF [15:12:40]CommunicateWithHost err = 0 [15:12:40]CheckOFDResponse [15:12:40]1017 (14) - 77093643461234 [15:12:40]1041 (16) - 0000000000875057 [15:12:40]1040 (4) - 148874 [15:12:40]1012 (4) - 04.06.2024 08:53 [15:12:40]1206 (1) - 0 [15:12:40]OFD Sender: Remove packet 148874 [15:12:40]ProducePacketName [15:12:40]name=ofd_packets/00148874 [15:12:40]NVStorageDeleteData [15:12:41]Write to MH i2c: 01 00 00 79 13 8C [15:12:41]Write i2c OK [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: 01 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: 01 07 00 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: 01 07 00 79 13 00 00 00 00 00 6D 0C 0C [15:12:41]RasterBufferAndPrint [15:12:41]line [15:12:41]line [15:12:41]line [15:12:41]line [15:12:41]line [15:12:41]written 0, free lines is 3184 [15:12:41]MH_Cut [15:12:41]Write to MH i2c: D1 01 00 80 13 01 65 [15:12:41]Write i2c OK [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: D1 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: D1 01 00 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: D1 01 00 80 13 00 64 [15:12:41]Write to MH i2c: 01 00 00 81 13 94 [15:12:41]Write i2c OK [15:12:41]MH_I2C_Read... [15:12:41]OFD Sender: No OFD packet to send [15:12:42]*** Cut start [15:12:42]*** Partial cut [15:12:42]*** CUTSNS_PIN = 1 [15:12:42]*** CUTSNS_PIN = 0 [15:12:42]*** Brake cut motor [15:12:42]Read from MH i2c: 01 [15:12:42]MH_I2C_Read... [15:12:42]*** Stop cut motor [15:12:42]*** Cut end [15:12:42]Read from MH i2c: 01 07 00 [15:12:42]MH_I2C_Read... [15:12:42]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 FF 0F A9 [15:12:42]process_action close_receipt done [15:12:42]requested_data is exist [15:12:42]produce_requested_data [15:12:42]requested_item fm.sn is exist - process it [15:12:42]wFMCommunicate request_size=4 [15:12:42]MH_SAM_APDU [15:12:42]CAPDU: 80 11 00 00 [15:12:42]Write to MH i2c: E2 08 00 82 13 80 11 00 00 00 00 00 00 0F [15:12:42]Write i2c OK [15:12:42]MH_I2C_Read... [15:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:43]Read from MH i2c: E2 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 17 00 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 17 00 82 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 62 [15:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:12:43]wFMCommunicate OK [15:12:43]requested_item fd.num is exist - process it [15:12:43]SAM_PROTO_GetFieldsCounters [15:12:43]wFMCommunicate request_size=4 [15:12:43]MH_SAM_APDU [15:12:43]CAPDU: 80 13 00 00 [15:12:43]Write to MH i2c: E2 08 00 83 13 80 13 00 00 00 00 00 00 12 [15:12:43]Write i2c OK [15:12:43]MH_I2C_Read... [15:12:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:43]Read from MH i2c: E2 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 62 00 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 62 00 83 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8A 45 02 00 0E 04 04 00 70 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 EF [15:12:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8A 45 02 00 0E 04 04 00 70 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 [15:12:43]wFMCommunicate OK [15:12:43]SAM_PROTO_GetFieldsCounters done [15:12:43]requested_item shift.num is exist - process it [15:12:43]requested_item shift.opened is exist - process it [15:12:43]req_shift_opened [15:12:43]FM_GetShiftState [15:12:43]SAM_PROTO_GetShiftState [15:12:43]wFMCommunicate request_size=4 [15:12:43]MH_SAM_APDU [15:12:43]CAPDU: 80 13 01 00 [15:12:43]Write to MH i2c: E2 08 00 84 13 80 13 01 00 00 00 00 00 14 [15:12:43]Write i2c OK [15:12:43]MH_I2C_Read... [15:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:43]Read from MH i2c: E2 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 0E 00 [15:12:43]MH_I2C_Read... [15:12:43]Read from MH i2c: E2 0E 00 84 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D7 [15:12:43]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:12:43]wFMCommunicate OK [15:12:43]SAM_PROTO_GetShiftState done [15:12:43]FM_GetShiftState done [15:12:43]req_shift_opened done [15:12:43]requested_item shift.open_date is exist - process it [15:12:43]req_shift_open_date [15:12:43]req_shift_open_date done [15:12:43]produce_requested_data done [15:12:43]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148874,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:12:43]process_action_free close_receipt [15:12:43]json_value_free [15:12:43]json_value_free done [15:12:43]process_json_proto returns [15:12:43]Send response to host [15:12:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148874,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:12:43]free response buf [15:12:43]execute_script done [15:12:43]execute_script returns [15:12:43]free content buf [15:12:43]Sock 7.Close socket [15:12:43]Sock 7.Thread stoped [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:15]accept exits with 9 [15:14:15]New connection [15:14:15]New thread 3067407716 created [15:14:15]Thread 3067264356 joined [15:14:15]Waiting for new connection... [15:14:15] Sock 9.Parse request [15:14:15]Sock 9.Check first char [15:14:15]Sock 9.First char is OK [15:14:15]request: POST /json_proto HTTP/1.0 [15:14:15]Method: POST [15:14:15]URL: /json_proto [15:14:15]Method is POST - this is cgi request [15:14:15]url: /json_proto [15:14:15]query_string will be loaded in cgi processing [15:14:15]execute_cgi json_proto POST (null) [15:14:15]execute_cgi path=json_proto method=POST [15:14:15]POST find Content-Length [15:14:15]Host: 172.17.38.4:8080 [15:14:15]Content-Length: 677 [15:14:15]Content-Type: application/json [15:14:15] [15:14:15]POST finish read [15:14:15]Found Content-Length = 677 [15:14:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:15]execute_script... [15:14: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)979804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:15]POST & json_proto [15:14:15]process_json_proto [15:14:15]json parsed OK: [15:14:15]protocol is kg_v1.0 [15:14:15]action value=close_receipt [15:14:15]process_action close_receipt [15:14:15]cmd_close_receipt [15:14:15]MH_GetDate [15:14:15]Write to MH i2c: F0 00 00 85 13 87 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: F0 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: F0 09 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: F0 09 00 85 13 00 48 2F 5F 66 CC 51 87 64 D4 [15:14:15]GetLastDocTimeStamp 1717513960 [15:14:15]current date 1717514056 [15:14:15]FM_GetShiftState [15:14:15]SAM_PROTO_GetShiftState [15:14:15]wFMCommunicate request_size=4 [15:14:15]MH_SAM_APDU [15:14:15]CAPDU: 80 13 01 00 [15:14:15]Write to MH i2c: E2 08 00 86 13 80 13 01 00 00 00 00 00 16 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:15]Read from MH i2c: E2 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 0E 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 0E 00 86 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D9 [15:14:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:14:15]wFMCommunicate OK [15:14:15]SAM_PROTO_GetShiftState done [15:14:15]FM_GetShiftState done [15:14:15]opened in 1717460629 [15:14:15]opened+sec_in_day 1717547029 [15:14:15]quantity*price = 40006 [15:14:15]sum+1 = 40007 [15:14:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 214 04.06.2024 15:14 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148875 ФПД: 154196858505322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151416&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148875&fm=154196858505322&tin=02508201610067®Number=0000000000092720&sum=40000 [15:14:16]StoreToDocumentArchive [15:14:16]shift 368 fd 148875 [15:14:16]save to /storage/0368/doc_00148875 [15:14:16]save last doc name /storage/0368/doc_00148875 to /storage/kkm_last_doc_name [15:14:16]save OK [15:14:16]Clear old archive folders... [15:14:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:16]tlvbuf is 004B3F60 [15:14:16]SAM_PROTO_ClearQueue [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 09 00 00 [15:14:16]Write to MH i2c: E2 08 00 93 13 80 09 00 00 00 00 00 00 18 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 03 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 03 00 93 13 00 90 00 1A [15:14:16]RAPDU: 90 00 [15:14:16]wFMCommunicate OK [15:14:16]SAM_PROTO_ClearQueue done [15:14:16]KKMCreateOFDPacket [15:14:16]OFDProtocolAddRootSTLVToBuf [15:14:16]FM_MakeSignedData [15:14:16]FM_MakeSignedData [15:14:16]SAM_PROTO_SignData [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 0D 01 02 [15:14:16]Write to MH i2c: E2 08 00 94 13 80 0D 01 02 00 00 00 00 20 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 03 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 03 00 94 13 00 90 00 1B [15:14:16]RAPDU: 90 00 [15:14:16]wFMCommunicate OK [15:14:16]wFMCommunicate request_size=255 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 48 2F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8B 45 02 00 35 04 06 00 8C [15:14:16]Write to MH i2c: E2 02 01 95 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 48 2F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8B 45 02 00 35 04 06 00 8C 00 00 5A [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]OFD Sender: No OFD packet to send [15:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 03 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 03 00 95 13 00 90 00 1C [15:14:16]RAPDU: 90 00 [15:14:16]wFMCommunicate OK [15:14:16]wFMCommunicate request_size=10 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 0D 02 02 05 3D C0 FA 08 6A [15:14:16]Write to MH i2c: E2 0D 00 96 13 80 0D 02 02 05 00 3D C0 FA 08 6A 00 00 96 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 03 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [15:14:16]RAPDU: 90 00 [15:14:16]wFMCommunicate OK [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 0D 03 02 [15:14:16]Write to MH i2c: E2 08 00 97 13 80 0D 03 02 00 00 00 00 25 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 0B 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 0B 00 97 13 00 F8 E6 55 DF 60 BE DD A9 90 00 DC [15:14:16]RAPDU: F8 E6 55 DF 60 BE DD A9 90 00 [15:14:16]wFMCommunicate OK [15:14:16]SAM_PROTO_SignData done [15:14:16]FM_MakeSignedData done [15:14:16]CreateOFDProtocolMessage [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 11 00 00 [15:14:16]Write to MH i2c: E2 08 00 98 13 80 11 00 00 00 00 00 00 25 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 17 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 17 00 98 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 78 [15:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:14:16]wFMCommunicate OK [15:14:16]CreateOFDProtocolMessage done [15:14:16]OFDSenderStorePacket 148875 [15:14:16]StoreOFDPacket docnum=148875 [15:14:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 56 CB 07 01 55 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 48 2F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8B 45 02 00 35 04 06 00 8C 3D C0 FA 08 6A F8 E6 55 DF 60 BE DD A9 [15:14:16]CheckFolder [15:14:16]dirname=/storage/ofd_packets [15:14:16]CheckFolder done [15:14:16]ProducePacketName [15:14:16]name=ofd_packets/00148875 [15:14:16]NVStorageSaveData ofd_packets/00148875 [15:14:16]File name is /storage/ofd_packets/00148875 [15:14:16]Write 301 bytes [15:14:16]NVStorageSaveData done [15:14:16]OFDSenderStorePacket done [15:14:16]KKMCreateOFDPacket done [15:14:16]NVStorageSaveData kkm_last_timestamp [15:14:16]File name is /storage/kkm_last_timestamp [15:14:16]Write 4 bytes [15:14:16]NVStorageSaveData done [15:14:16]ExternCall_PrintAddStr [15:14:16]wPrintStart [15:14:16]Write to MH i2c: 01 00 00 99 13 AC [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: 01 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: 01 07 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: 01 07 00 99 13 00 00 00 00 00 FF 0F C1 [15:14:16]RasterBufferAndPrint [15:14:16]line Счет N : (1)979804 [15:14:16]line ИНН: 02508201610067 [15:14:16]line Контрольно-Кассовый Чек [15:14:16]line ПРОДАЖА [15:14:16]line ТРК (МРК, ГНК) : 41 [15:14:16]line Товар: 2710124130 [15:14:16]line Аи-92-К-5 [15:14:16]line 5.980 * 66.90 [15:14:16]line = 400.06 [15:14:16]line НДС 12% НСП 1% [15:14:16]line > о реализуемом товаре [15:14:16]line ОКРУГЛЕНИЕ: -0.06 [15:14:16]line ИТОГО: 400.00 [15:14:16]line Внесено: 400.00 [15:14:16]line СДАЧА: 0.00 [15:14:16]line НСП 1% : 3.54 [15:14:16]line НДС 12% : 42.48 [15:14:16]line Наличными: 400.00 [15:14:16]line Безнал.: 0.00 [15:14:16]line Место: АЗС № 68 "Партнер Нефть" [15:14:16]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:14:16]line СНО: Общий режим [15:14:16]line Чек 214 04.06.2024 15:14 [15:14:16]line Смена: 368 ФФД: 1.0 [15:14:16]line ЗНМ: 0300000035 [15:14:16]line РНМ: 0000000000092720 [15:14:16]line Версия ККМ: 001 [15:14:16]line ФМ: 0000000000875057 [15:14:16]line ФД: 148875 [15:14:16]line ФПД: 154196858505322 [15:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151416&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148875&fm=154196858505322&tin=02508201610067®Number=0000000000092720&sum=40000 [15:14:16]written 0, free lines is 4095 [15:14:16]OFD Sender: Processing packet 148875 [packets to send 100, broken 99] [15:14:16]ProducePacketName [15:14:16]name=ofd_packets/00148875 [15:14:16]OFD Sender: To server: pG, [15:14:17]CommunicateWithHost lk.salyk.kg:30040 [15:14:17]ConnectInit lk.salyk.kg [15:14:17]Connected sock=10 [15:14:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 56 CB 07 01 55 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 48 2F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8B 45 02 00 35 04 06 00 8C 3D C0 FA 08 6A F8 E6 55 DF 60 BE DD A9 [15:14:17]Write to MH i2c: 01 00 00 C4 13 D7 [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: 01 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: 01 07 00 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: 01 07 00 C4 13 00 00 00 00 00 6E 0C 58 [15:14:17]RasterBufferAndPrint [15:14:17]line [15:14:17]line [15:14:17]line [15:14:17]line [15:14:17]line [15:14:17]written 0, free lines is 3185 [15:14:17]MH_Cut [15:14:17]Write to MH i2c: D1 01 00 CB 13 01 B0 [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: D1 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: D1 01 00 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: D1 01 00 CB 13 00 AF [15:14:17]Write to MH i2c: 01 00 00 CC 13 DF [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 AA F8 47 00 FE C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8B 45 02 00 F4 03 04 00 6C D6 5E 66 B6 04 01 00 00 61 56 B7 63 8F AB 17 00 [15:14:17]CommunicateWithHost err = 0 [15:14:17]CheckOFDResponse [15:14:17]1017 (14) - 77093643461234 [15:14:17]1041 (16) - 0000000000875057 [15:14:17]1040 (4) - 148875 [15:14:17]1012 (4) - 04.06.2024 08:55 [15:14:17]1206 (1) - 0 [15:14:17]OFD Sender: Remove packet 148875 [15:14:17]ProducePacketName [15:14:17]name=ofd_packets/00148875 [15:14:17]NVStorageDeleteData [15:14:17]OFD Sender: No OFD packet to send [15:14:18]*** Cut start [15:14:18]*** Partial cut [15:14:18]*** CUTSNS_PIN = 1 [15:14:18]*** CUTSNS_PIN = 0 [15:14:18]*** Brake cut motor [15:14:19]Read from MH i2c: 01 [15:14:19]MH_I2C_Read... [15:14:19]*** Stop cut motor [15:14:19]*** Cut end [15:14:19]Read from MH i2c: 01 07 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 CC 13 00 00 00 00 00 FF 0F F4 [15:14:19]process_action close_receipt done [15:14:19]requested_data is exist [15:14:19]produce_requested_data [15:14:19]requested_item fm.sn is exist - process it [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 11 00 00 [15:14:19]Write to MH i2c: E2 08 00 CD 13 80 11 00 00 00 00 00 00 5A [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 17 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 17 00 CD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AD [15:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:14:19]wFMCommunicate OK [15:14:19]requested_item fd.num is exist - process it [15:14:19]SAM_PROTO_GetFieldsCounters [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 13 00 00 [15:14:19]Write to MH i2c: E2 08 00 CE 13 80 13 00 00 00 00 00 00 5D [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 62 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 62 00 CE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8B 45 02 00 0E 04 04 00 70 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 3E [15:14:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8B 45 02 00 0E 04 04 00 70 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:14:19]wFMCommunicate OK [15:14:19]SAM_PROTO_GetFieldsCounters done [15:14:19]requested_item shift.num is exist - process it [15:14:19]requested_item shift.opened is exist - process it [15:14:19]req_shift_opened [15:14:19]FM_GetShiftState [15:14:19]SAM_PROTO_GetShiftState [15:14:19]wFMCommunicate request_size=4 [15:14:19]MH_SAM_APDU [15:14:19]CAPDU: 80 13 01 00 [15:14:19]Write to MH i2c: E2 08 00 CF 13 80 13 01 00 00 00 00 00 5F [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 [15:14:19]MH_I2C_Read... [15:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:19]Read from MH i2c: E2 0E 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: E2 0E 00 CF 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 22 [15:14:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:14:19]wFMCommunicate OK [15:14:19]SAM_PROTO_GetShiftState done [15:14:19]FM_GetShiftState done [15:14:19]req_shift_opened done [15:14:19]requested_item shift.open_date is exist - process it [15:14:19]req_shift_open_date [15:14:19]req_shift_open_date done [15:14:19]produce_requested_data done [15:14:19]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148875,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:14:19]process_action_free close_receipt [15:14:19]json_value_free [15:14:19]json_value_free done [15:14:19]process_json_proto returns [15:14:19]Send response to host [15:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148875,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:14:19]free response buf [15:14:19]execute_script done [15:14:19]execute_script returns [15:14:19]free content buf [15:14:19]Sock 9.Close socket [15:14:19]Sock 9.Thread stoped [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [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:57]accept exits with 7 [15:16:57]New connection [15:16:57]New thread 3067264356 created [15:16:57]Thread 3067407716 joined [15:16:57]Waiting for new connection... [15:16:57] Sock 7.Parse request [15:16:57]Sock 7.Check first char [15:16:57]Sock 7.First char is OK [15:16:57]request: POST /json_proto HTTP/1.0 [15:16:57]Method: POST [15:16:57]URL: /json_proto [15:16:57]Method is POST - this is cgi request [15:16:57]url: /json_proto [15:16:57]query_string will be loaded in cgi processing [15:16:57]execute_cgi json_proto POST (null) [15:16:57]execute_cgi path=json_proto method=POST [15:16:57]POST find Content-Length [15:16:57]Host: 172.17.38.4:8080 [15:16:57]Content-Length: 677 [15:16:57]Content-Type: application/json [15:16:57] [15:16:57]POST finish read [15:16:57]Found Content-Length = 677 [15:16:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:57]execute_script... [15:16: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)979805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:57]POST & json_proto [15:16:57]process_json_proto [15:16:57]json parsed OK: [15:16:57]protocol is kg_v1.0 [15:16:57]action value=close_receipt [15:16:57]process_action close_receipt [15:16:57]cmd_close_receipt [15:16:57]MH_GetDate [15:16:57]Write to MH i2c: F0 00 00 D0 13 D2 [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: F0 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: F0 09 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: F0 09 00 D0 13 00 EA 2F 5F 66 CC 51 87 64 C1 [15:16:57]GetLastDocTimeStamp 1717514056 [15:16:57]current date 1717514218 [15:16:57]FM_GetShiftState [15:16:57]SAM_PROTO_GetShiftState [15:16:57]wFMCommunicate request_size=4 [15:16:57]MH_SAM_APDU [15:16:57]CAPDU: 80 13 01 00 [15:16:57]Write to MH i2c: E2 08 00 D1 13 80 13 01 00 00 00 00 00 61 [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:57]Read from MH i2c: E2 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: E2 0E 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: E2 0E 00 D1 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 24 [15:16:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:16:57]wFMCommunicate OK [15:16:57]SAM_PROTO_GetShiftState done [15:16:57]FM_GetShiftState done [15:16:57]opened in 1717460629 [15:16:57]opened+sec_in_day 1717547029 [15:16:57]quantity*price = 50041 [15:16:57]sum+1 = 50042 [15:16: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 215 04.06.2024 15:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148876 ФПД: 28594349246869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151658&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148876&fm=28594349246869&tin=02508201610067®Number=0000000000092720&sum=50000 [15:16:58]StoreToDocumentArchive [15:16:58]shift 368 fd 148876 [15:16:58]save to /storage/0368/doc_00148876 [15:16:58]save last doc name /storage/0368/doc_00148876 to /storage/kkm_last_doc_name [15:16:58]save OK [15:16:58]Clear old archive folders... [15:16:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:58]tlvbuf is B6FC46F0 [15:16:58]SAM_PROTO_ClearQueue [15:16:58]wFMCommunicate request_size=4 [15:16:58]MH_SAM_APDU [15:16:58]CAPDU: 80 09 00 00 [15:16:58]Write to MH i2c: E2 08 00 DE 13 80 09 00 00 00 00 00 00 63 [15:16:58]Write i2c OK [15:16:58]MH_I2C_Read... [15:16:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:58]Read from MH i2c: E2 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 03 00 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 03 00 DE 13 00 90 00 65 [15:16:58]RAPDU: 90 00 [15:16:58]wFMCommunicate OK [15:16:58]SAM_PROTO_ClearQueue done [15:16:58]KKMCreateOFDPacket [15:16:58]OFDProtocolAddRootSTLVToBuf [15:16:58]FM_MakeSignedData [15:16:58]FM_MakeSignedData [15:16:58]SAM_PROTO_SignData [15:16:58]wFMCommunicate request_size=4 [15:16:58]MH_SAM_APDU [15:16:58]CAPDU: 80 0D 01 02 [15:16:58]Write to MH i2c: E2 08 00 DF 13 80 0D 01 02 00 00 00 00 6B [15:16:58]Write i2c OK [15:16:58]MH_I2C_Read... [15:16:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:58]Read from MH i2c: E2 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 03 00 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 03 00 DF 13 00 90 00 66 [15:16:58]RAPDU: 90 00 [15:16:58]wFMCommunicate OK [15:16:58]wFMCommunicate request_size=255 [15:16:58]MH_SAM_APDU [15:16:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EA 2F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8C 45 02 00 35 04 06 00 1A [15:16:58]Write to MH i2c: E2 02 01 E0 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EA 2F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8C 45 02 00 35 04 06 00 1A 00 00 08 [15:16:58]Write i2c OK [15:16:58]MH_I2C_Read... [15:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:59]Read from MH i2c: E2 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 03 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 03 00 E0 13 00 90 00 67 [15:16:59]RAPDU: 90 00 [15:16:59]wFMCommunicate OK [15:16:59]wFMCommunicate request_size=10 [15:16:59]MH_SAM_APDU [15:16:59]CAPDU: 80 0D 02 02 05 01 A4 07 89 95 [15:16:59]Write to MH i2c: E2 0D 00 E1 13 80 0D 02 02 05 00 01 A4 07 89 95 00 00 42 [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:59]Read from MH i2c: E2 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 03 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 03 00 E1 13 00 90 00 68 [15:16:59]RAPDU: 90 00 [15:16:59]wFMCommunicate OK [15:16:59]wFMCommunicate request_size=4 [15:16:59]MH_SAM_APDU [15:16:59]CAPDU: 80 0D 03 02 [15:16:59]Write to MH i2c: E2 08 00 E2 13 80 0D 03 02 00 00 00 00 70 [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:16:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:59]Read from MH i2c: E2 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 0B 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 0B 00 E2 13 00 5D 32 04 C5 BB D5 D1 DB 90 00 05 [15:16:59]RAPDU: 5D 32 04 C5 BB D5 D1 DB 90 00 [15:16:59]wFMCommunicate OK [15:16:59]SAM_PROTO_SignData done [15:16:59]FM_MakeSignedData done [15:16:59]CreateOFDProtocolMessage [15:16:59]wFMCommunicate request_size=4 [15:16:59]MH_SAM_APDU [15:16:59]CAPDU: 80 11 00 00 [15:16:59]Write to MH i2c: E2 08 00 E3 13 80 11 00 00 00 00 00 00 70 [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:59]Read from MH i2c: E2 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 17 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 17 00 E3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C3 [15:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:16:59]wFMCommunicate OK [15:16:59]CreateOFDProtocolMessage done [15:16:59]OFDSenderStorePacket 148876 [15:16:59]StoreOFDPacket docnum=148876 [15:16:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A9 97 07 01 2A 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EA 2F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8C 45 02 00 35 04 06 00 1A 01 A4 07 89 95 5D 32 04 C5 BB D5 D1 DB [15:16:59]CheckFolder [15:16:59]dirname=/storage/ofd_packets [15:16:59]CheckFolder done [15:16:59]ProducePacketName [15:16:59]name=ofd_packets/00148876 [15:16:59]NVStorageSaveData ofd_packets/00148876 [15:16:59]File name is /storage/ofd_packets/00148876 [15:16:59]Write 301 bytes [15:16:59]NVStorageSaveData done [15:16:59]OFDSenderStorePacket done [15:16:59]KKMCreateOFDPacket done [15:16:59]NVStorageSaveData kkm_last_timestamp [15:16:59]File name is /storage/kkm_last_timestamp [15:16:59]Write 4 bytes [15:16:59]NVStorageSaveData done [15:16:59]ExternCall_PrintAddStr [15:16:59]wPrintStart [15:16:59]Write to MH i2c: 01 00 00 E4 13 F7 [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: 01 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: 01 07 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 FF 0F 0C [15:16:59]RasterBufferAndPrint [15:16:59]line Счет N : (1)979805 [15:16:59]line ИНН: 02508201610067 [15:16:59]line Контрольно-Кассовый Чек [15:16:59]line ПРОДАЖА [15:16:59]line ТРК (МРК, ГНК) : 22 [15:16:59]line Товар: 2710124130 [15:16:59]line Аи-92-К-5 [15:16:59]line 7.480 * 66.90 [15:16:59]line = 500.41 [15:16:59]line НДС 12% НСП 1% [15:16:59]line > о реализуемом товаре [15:16:59]line ОКРУГЛЕНИЕ: -0.41 [15:16:59]line ИТОГО: 500.00 [15:16:59]line Внесено: 500.00 [15:16:59]line СДАЧА: 0.00 [15:16:59]line НСП 1% : 4.43 [15:16:59]line НДС 12% : 53.14 [15:16:59]line Наличными: 500.00 [15:16:59]line Безнал.: 0.00 [15:16:59]line Место: АЗС № 68 "Партнер Нефть" [15:16:59]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:16:59]line СНО: Общий режим [15:16:59]line Чек 215 04.06.2024 15:16 [15:16:59]line Смена: 368 ФФД: 1.0 [15:16:59]line ЗНМ: 0300000035 [15:16:59]line РНМ: 0000000000092720 [15:16:59]line Версия ККМ: 001 [15:16:59]line ФМ: 0000000000875057 [15:16:59]line ФД: 148876 [15:16:59]line ФПД: 28594349246869 [15:16:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151658&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148876&fm=28594349246869&tin=02508201610067®Number=0000000000092720&sum=50000 [15:16:59]OFD Sender: Processing packet 148876 [packets to send 100, broken 99] [15:16:59]ProducePacketName [15:16:59]name=ofd_packets/00148876 [15:16:59]OFD Sender: To server: pG, [15:16:59]CommunicateWithHost lk.salyk.kg:30040 [15:16:59]ConnectInit lk.salyk.kg [15:16:59]written 0, free lines is 4095 [15:16:59]Connected sock=10 [15:16:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A9 97 07 01 2A 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EA 2F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8C 45 02 00 35 04 06 00 1A 01 A4 07 89 95 5D 32 04 C5 BB D5 D1 DB [15:16:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 20 0F 47 00 2F 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 38 37 35 30 35 37 10 04 04 00 8C 45 02 00 F4 03 04 00 0E D7 5E 66 B6 04 01 00 00 D0 60 6A 09 13 14 AE A5 [15:16:59]CommunicateWithHost err = 0 [15:16:59]CheckOFDResponse [15:16:59]1017 (14) - 77093643461234 [15:16:59]1041 (16) - 0000000000875057 [15:16:59]1040 (4) - 148876 [15:16:59]1012 (4) - 04.06.2024 08:57 [15:16:59]1206 (1) - 0 [15:16:59]OFD Sender: Remove packet 148876 [15:16:59]ProducePacketName [15:16:59]name=ofd_packets/00148876 [15:16:59]NVStorageDeleteData [15:17:00]Write to MH i2c: 01 00 00 0F 14 23 [15:17:00]Write i2c OK [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: 01 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: 01 07 00 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: 01 07 00 0F 14 00 00 00 00 00 71 0C A7 [15:17:00]RasterBufferAndPrint [15:17:00]line [15:17:00]line [15:17:00]line [15:17:00]line [15:17:00]line [15:17:00]written 0, free lines is 3187 [15:17:00]MH_Cut [15:17:00]Write to MH i2c: D1 01 00 16 14 01 FC [15:17:00]Write i2c OK [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: D1 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: D1 01 00 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: D1 01 00 16 14 00 FB [15:17:00]Write to MH i2c: 01 00 00 17 14 2B [15:17:00]Write i2c OK [15:17:00]MH_I2C_Read... [15:17:00]OFD Sender: No OFD packet to send [15:17:01]*** Cut start [15:17:01]*** Partial cut [15:17:01]*** CUTSNS_PIN = 1 [15:17:01]*** CUTSNS_PIN = 0 [15:17:01]*** Brake cut motor [15:17:01]Read from MH i2c: 01 [15:17:01]MH_I2C_Read... [15:17:01]*** Stop cut motor [15:17:01]*** Cut end [15:17:01]Read from MH i2c: 01 07 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: 01 07 00 17 14 00 00 00 00 00 FF 0F 40 [15:17:01]process_action close_receipt done [15:17:01]requested_data is exist [15:17:01]produce_requested_data [15:17:01]requested_item fm.sn is exist - process it [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 11 00 00 [15:17:01]Write to MH i2c: E2 08 00 18 14 80 11 00 00 00 00 00 00 A6 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:02]Read from MH i2c: E2 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: E2 17 00 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: E2 17 00 18 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F9 [15:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:17:02]wFMCommunicate OK [15:17:02]requested_item fd.num is exist - process it [15:17:02]SAM_PROTO_GetFieldsCounters [15:17:02]wFMCommunicate request_size=4 [15:17:02]MH_SAM_APDU [15:17:02]CAPDU: 80 13 00 00 [15:17:02]Write to MH i2c: E2 08 00 19 14 80 13 00 00 00 00 00 00 A9 [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:02]Read from MH i2c: E2 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: E2 62 00 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: E2 62 00 19 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8C 45 02 00 0E 04 04 00 70 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 8E [15:17:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8C 45 02 00 0E 04 04 00 70 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 [15:17:02]wFMCommunicate OK [15:17:02]SAM_PROTO_GetFieldsCounters done [15:17:02]requested_item shift.num is exist - process it [15:17:02]requested_item shift.opened is exist - process it [15:17:02]req_shift_opened [15:17:02]FM_GetShiftState [15:17:02]SAM_PROTO_GetShiftState [15:17:02]wFMCommunicate request_size=4 [15:17:02]MH_SAM_APDU [15:17:02]CAPDU: 80 13 01 00 [15:17:02]Write to MH i2c: E2 08 00 1A 14 80 13 01 00 00 00 00 00 AB [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:02]Read from MH i2c: E2 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: E2 0E 00 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: E2 0E 00 1A 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6E [15:17:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:17:02]wFMCommunicate OK [15:17:02]SAM_PROTO_GetShiftState done [15:17:02]FM_GetShiftState done [15:17:02]req_shift_opened done [15:17:02]requested_item shift.open_date is exist - process it [15:17:02]req_shift_open_date [15:17:02]req_shift_open_date done [15:17:02]produce_requested_data done [15:17:02]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148876,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:17:02]process_action_free close_receipt [15:17:02]json_value_free [15:17:02]json_value_free done [15:17:02]process_json_proto returns [15:17:02]Send response to host [15:17:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148876,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:17:02]free response buf [15:17:02]execute_script done [15:17:02]execute_script returns [15:17:02]free content buf [15:17:02]Sock 7.Close socket [15:17:02]Sock 7.Thread stoped [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:41]accept exits with 9 [15:21:41]New connection [15:21:41]New thread 3067407716 created [15:21:41]Thread 3067264356 joined [15:21:41]Waiting for new connection... [15:21:41] Sock 9.Parse request [15:21:41]Sock 9.Check first char [15:21:41]Sock 9.First char is OK [15:21:41]request: POST /json_proto HTTP/1.0 [15:21:41]Method: POST [15:21:41]URL: /json_proto [15:21:41]Method is POST - this is cgi request [15:21:41]url: /json_proto [15:21:41]query_string will be loaded in cgi processing [15:21:41]execute_cgi json_proto POST (null) [15:21:41]execute_cgi path=json_proto method=POST [15:21:41]POST find Content-Length [15:21:41]Host: 172.17.38.4:8080 [15:21:41]Content-Length: 677 [15:21:41]Content-Type: application/json [15:21:41] [15:21:41]POST finish read [15:21:41]Found Content-Length = 677 [15:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "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" ] } } [15:21:41]execute_script... [15:21: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)979806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "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" ] } } [15:21:41]POST & json_proto [15:21:41]process_json_proto [15:21:41]json parsed OK: [15:21:41]protocol is kg_v1.0 [15:21:41]action value=close_receipt [15:21:41]process_action close_receipt [15:21:41]cmd_close_receipt [15:21:41]MH_GetDate [15:21:41]Write to MH i2c: F0 00 00 1B 14 1E [15:21:41]Write i2c OK [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: F0 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: F0 09 00 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: F0 09 00 1B 14 00 06 31 5F 66 CC 51 87 64 2B [15:21:41]GetLastDocTimeStamp 1717514218 [15:21:41]current date 1717514502 [15:21:41]FM_GetShiftState [15:21:41]SAM_PROTO_GetShiftState [15:21:41]wFMCommunicate request_size=4 [15:21:41]MH_SAM_APDU [15:21:41]CAPDU: 80 13 01 00 [15:21:41]Write to MH i2c: E2 08 00 1C 14 80 13 01 00 00 00 00 00 AD [15:21:41]Write i2c OK [15:21:41]MH_I2C_Read... [15:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:41]Read from MH i2c: E2 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 0E 00 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 0E 00 1C 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 70 [15:21:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:21:41]wFMCommunicate OK [15:21:41]SAM_PROTO_GetShiftState done [15:21:41]FM_GetShiftState done [15:21:41]opened in 1717460629 [15:21:41]opened+sec_in_day 1717547029 [15:21:41]quantity*price = 26024 [15:21:41]sum+1 = 26025 [15:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 216 04.06.2024 15:21 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148877 ФПД: 65816831333203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152142&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148877&fm=65816831333203&tin=02508201610067®Number=0000000000092720&sum=26000 [15:21:42]StoreToDocumentArchive [15:21:42]shift 368 fd 148877 [15:21:42]save to /storage/0368/doc_00148877 [15:21:42]save last doc name /storage/0368/doc_00148877 to /storage/kkm_last_doc_name [15:21:42]save OK [15:21:42]Clear old archive folders... [15:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:42]tlvbuf is B6F30540 [15:21:42]SAM_PROTO_ClearQueue [15:21:42]wFMCommunicate request_size=4 [15:21:42]MH_SAM_APDU [15:21:42]CAPDU: 80 09 00 00 [15:21:42]Write to MH i2c: E2 08 00 29 14 80 09 00 00 00 00 00 00 AF [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:42]Read from MH i2c: E2 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 03 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 03 00 29 14 00 90 00 B1 [15:21:42]RAPDU: 90 00 [15:21:42]wFMCommunicate OK [15:21:42]SAM_PROTO_ClearQueue done [15:21:42]KKMCreateOFDPacket [15:21:42]OFDProtocolAddRootSTLVToBuf [15:21:42]FM_MakeSignedData [15:21:42]FM_MakeSignedData [15:21:42]SAM_PROTO_SignData [15:21:42]wFMCommunicate request_size=4 [15:21:42]MH_SAM_APDU [15:21:42]CAPDU: 80 0D 01 02 [15:21:42]Write to MH i2c: E2 08 00 2A 14 80 0D 01 02 00 00 00 00 B7 [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:42]Read from MH i2c: E2 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 03 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 03 00 2A 14 00 90 00 B2 [15:21:42]RAPDU: 90 00 [15:21:42]wFMCommunicate OK [15:21:42]wFMCommunicate request_size=255 [15:21:42]MH_SAM_APDU [15:21:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 D8 00 00 00 F4 03 04 00 06 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8D 45 02 00 35 04 06 00 3B [15:21:42]Write to MH i2c: E2 02 01 2B 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 D8 00 00 00 F4 03 04 00 06 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8D 45 02 00 35 04 06 00 3B 00 00 40 [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:42]Read from MH i2c: E2 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 03 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 03 00 2B 14 00 90 00 B3 [15:21:42]RAPDU: 90 00 [15:21:42]wFMCommunicate OK [15:21:42]wFMCommunicate request_size=10 [15:21:42]MH_SAM_APDU [15:21:42]CAPDU: 80 0D 02 02 05 DC 2C DA 13 53 [15:21:42]Write to MH i2c: E2 0D 00 2C 14 80 0D 02 02 05 00 DC 2C DA 13 53 00 00 0C [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:42]Read from MH i2c: E2 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 03 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [15:21:42]RAPDU: 90 00 [15:21:42]wFMCommunicate OK [15:21:42]wFMCommunicate request_size=4 [15:21:42]MH_SAM_APDU [15:21:42]CAPDU: 80 0D 03 02 [15:21:42]Write to MH i2c: E2 08 00 2D 14 80 0D 03 02 00 00 00 00 BC [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:42]Read from MH i2c: E2 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 0B 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 0B 00 2D 14 00 8A 71 24 73 D8 0F 89 B1 90 00 70 [15:21:42]RAPDU: 8A 71 24 73 D8 0F 89 B1 90 00 [15:21:42]wFMCommunicate OK [15:21:42]SAM_PROTO_SignData done [15:21:42]FM_MakeSignedData done [15:21:42]CreateOFDProtocolMessage [15:21:42]wFMCommunicate request_size=4 [15:21:42]MH_SAM_APDU [15:21:42]CAPDU: 80 11 00 00 [15:21:42]Write to MH i2c: E2 08 00 2E 14 80 11 00 00 00 00 00 00 BC [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:42]Read from MH i2c: E2 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 17 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 17 00 2E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0F [15:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:21:42]wFMCommunicate OK [15:21:42]CreateOFDProtocolMessage done [15:21:42]OFDSenderStorePacket 148877 [15:21:42]StoreOFDPacket docnum=148877 [15:21:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FE 44 07 01 F2 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 D8 00 00 00 F4 03 04 00 06 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8D 45 02 00 35 04 06 00 3B DC 2C DA 13 53 8A 71 24 73 D8 0F 89 B1 [15:21:42]CheckFolder [15:21:42]dirname=/storage/ofd_packets [15:21:42]CheckFolder done [15:21:42]ProducePacketName [15:21:42]name=ofd_packets/00148877 [15:21:42]NVStorageSaveData ofd_packets/00148877 [15:21:42]File name is /storage/ofd_packets/00148877 [15:21:42]Write 301 bytes [15:21:42]NVStorageSaveData done [15:21:42]OFDSenderStorePacket done [15:21:42]KKMCreateOFDPacket done [15:21:42]NVStorageSaveData kkm_last_timestamp [15:21:42]File name is /storage/kkm_last_timestamp [15:21:42]Write 4 bytes [15:21:42]NVStorageSaveData done [15:21:42]ExternCall_PrintAddStr [15:21:42]wPrintStart [15:21:42]Write to MH i2c: 01 00 00 2F 14 43 [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: 01 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: 01 07 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 FF 0F 58 [15:21:42]RasterBufferAndPrint [15:21:42]line Счет N : (1)979806 [15:21:42]line ИНН: 02508201610067 [15:21:42]line Контрольно-Кассовый Чек [15:21:42]line ПРОДАЖА [15:21:42]line ТРК (МРК, ГНК) : 12 [15:21:42]line Товар: 2710124130 [15:21:42]line Аи-92-К-5 [15:21:42]line 3.890 * 66.90 [15:21:42]line = 260.24 [15:21:42]line НДС 12% НСП 1% [15:21:42]line > о реализуемом товаре [15:21:42]line ОКРУГЛЕНИЕ: -0.24 [15:21:42]line ИТОГО: 260.00 [15:21:42]line Внесено: 260.00 [15:21:42]line СДАЧА: 0.00 [15:21:42]line НСП 1% : 2.30 [15:21:42]line НДС 12% : 27.64 [15:21:42]line Наличными: 260.00 [15:21:42]line Безнал.: 0.00 [15:21:42]line Место: АЗС № 68 "Партнер Нефть" [15:21:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:21:42]line СНО: Общий режим [15:21:42]line Чек 216 04.06.2024 15:21 [15:21:42]line Смена: 368 ФФД: 1.0 [15:21:42]line ЗНМ: 0300000035 [15:21:42]line РНМ: 0000000000092720 [15:21:42]line Версия ККМ: 001 [15:21:42]line ФМ: 0000000000875057 [15:21:42]line ФД: 148877 [15:21:42]line ФПД: 65816831333203 [15:21:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152142&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148877&fm=65816831333203&tin=02508201610067®Number=0000000000092720&sum=26000 [15:21:43]OFD Sender: Processing packet 148877 [packets to send 100, broken 99] [15:21:43]ProducePacketName [15:21:43]name=ofd_packets/00148877 [15:21:43]OFD Sender: To server: pG, [15:21:43]CommunicateWithHost lk.salyk.kg:30040 [15:21:43]ConnectInit lk.salyk.kg [15:21:43]written 0, free lines is 4095 [15:21:43]Connected sock=10 [15:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FE 44 07 01 F2 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 D8 00 00 00 F4 03 04 00 06 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8D 45 02 00 35 04 06 00 3B DC 2C DA 13 53 8A 71 24 73 D8 0F 89 B1 [15:21:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CB D4 47 00 50 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8D 45 02 00 F4 03 04 00 2A D8 5E 66 B6 04 01 00 00 B8 D7 31 A5 C1 89 8E 93 [15:21:43]CommunicateWithHost err = 0 [15:21:43]CheckOFDResponse [15:21:43]1017 (14) - 77093643461234 [15:21:43]1041 (16) - 0000000000875057 [15:21:43]1040 (4) - 148877 [15:21:43]1012 (4) - 04.06.2024 09:02 [15:21:43]1206 (1) - 0 [15:21:43]OFD Sender: Remove packet 148877 [15:21:43]ProducePacketName [15:21:43]name=ofd_packets/00148877 [15:21:43]NVStorageDeleteData [15:21:43]Write to MH i2c: 01 00 00 5A 14 6E [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: 01 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: 01 07 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: 01 07 00 5A 14 00 00 00 00 00 6E 0C EF [15:21:43]RasterBufferAndPrint [15:21:43]line [15:21:43]line [15:21:43]line [15:21:43]line [15:21:43]line [15:21:43]written 0, free lines is 3185 [15:21:43]MH_Cut [15:21:43]Write to MH i2c: D1 01 00 61 14 01 47 [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: D1 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: D1 01 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: D1 01 00 61 14 00 46 [15:21:43]Write to MH i2c: 01 00 00 62 14 76 [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]OFD Sender: No OFD packet to send [15:21:44]*** Cut start [15:21:44]*** Partial cut [15:21:44]*** CUTSNS_PIN = 1 [15:21:44]*** CUTSNS_PIN = 0 [15:21:45]*** Brake cut motor [15:21:45]Read from MH i2c: 01 [15:21:45]MH_I2C_Read... [15:21:45]*** Stop cut motor [15:21:45]*** Cut end [15:21:45]Read from MH i2c: 01 07 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 FF 0F 8B [15:21:45]process_action close_receipt done [15:21:45]requested_data is exist [15:21:45]produce_requested_data [15:21:45]requested_item fm.sn is exist - process it [15:21:45]wFMCommunicate request_size=4 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 11 00 00 [15:21:45]Write to MH i2c: E2 08 00 63 14 80 11 00 00 00 00 00 00 F1 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:45]Read from MH i2c: E2 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 17 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 17 00 63 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 44 [15:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:21:45]wFMCommunicate OK [15:21:45]requested_item fd.num is exist - process it [15:21:45]SAM_PROTO_GetFieldsCounters [15:21:45]wFMCommunicate request_size=4 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 13 00 00 [15:21:45]Write to MH i2c: E2 08 00 64 14 80 13 00 00 00 00 00 00 F4 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:45]Read from MH i2c: E2 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 62 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 62 00 64 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8D 45 02 00 0E 04 04 00 70 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 DD [15:21:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8D 45 02 00 0E 04 04 00 70 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 [15:21:45]wFMCommunicate OK [15:21:45]SAM_PROTO_GetFieldsCounters done [15:21:45]requested_item shift.num is exist - process it [15:21:45]requested_item shift.opened is exist - process it [15:21:45]req_shift_opened [15:21:45]FM_GetShiftState [15:21:45]SAM_PROTO_GetShiftState [15:21:45]wFMCommunicate request_size=4 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 13 01 00 [15:21:45]Write to MH i2c: E2 08 00 65 14 80 13 01 00 00 00 00 00 F6 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:45]Read from MH i2c: E2 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 0E 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 0E 00 65 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B9 [15:21:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:21:45]wFMCommunicate OK [15:21:45]SAM_PROTO_GetShiftState done [15:21:45]FM_GetShiftState done [15:21:45]req_shift_opened done [15:21:45]requested_item shift.open_date is exist - process it [15:21:45]req_shift_open_date [15:21:45]req_shift_open_date done [15:21:45]produce_requested_data done [15:21:45]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148877,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:21:45]process_action_free close_receipt [15:21:45]json_value_free [15:21:45]json_value_free done [15:21:45]process_json_proto returns [15:21:45]Send response to host [15:21:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148877,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:21:45]free response buf [15:21:45]execute_script done [15:21:45]execute_script returns [15:21:45]free content buf [15:21:45]Sock 9.Close socket [15:21:45]Sock 9.Thread stoped [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:20]accept exits with 7 [15:22:20]New connection [15:22:20]New thread 3067264356 created [15:22:20]Thread 3067407716 joined [15:22:20]Waiting for new connection... [15:22:20] Sock 7.Parse request [15:22:20]Sock 7.Check first char [15:22:20]Sock 7.First char is OK [15:22:20]request: POST /json_proto HTTP/1.0 [15:22:20]Method: POST [15:22:20]URL: /json_proto [15:22:20]Method is POST - this is cgi request [15:22:20]url: /json_proto [15:22:20]query_string will be loaded in cgi processing [15:22:20]execute_cgi json_proto POST (null) [15:22:20]execute_cgi path=json_proto method=POST [15:22:20]POST find Content-Length [15:22:20]Host: 172.17.38.4:8080 [15:22:20]Content-Length: 674 [15:22:20]Content-Type: application/json [15:22:20] [15:22:20]POST finish read [15:22:20]Found Content-Length = 674 [15:22:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:22:20]execute_script... [15:22:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [15:22:20]POST & json_proto [15:22:20]process_json_proto [15:22:20]json parsed OK: [15:22:20]protocol is kg_v1.0 [15:22:20]action value=close_receipt [15:22:20]process_action close_receipt [15:22:20]cmd_close_receipt [15:22:20]MH_GetDate [15:22:20]Write to MH i2c: F0 00 00 66 14 69 [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: F0 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: F0 09 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: F0 09 00 66 14 00 2D 31 5F 66 CC 51 87 64 9D [15:22:20]GetLastDocTimeStamp 1717514502 [15:22:20]current date 1717514541 [15:22:20]FM_GetShiftState [15:22:20]SAM_PROTO_GetShiftState [15:22:20]wFMCommunicate request_size=4 [15:22:20]MH_SAM_APDU [15:22:20]CAPDU: 80 13 01 00 [15:22:20]Write to MH i2c: E2 08 00 67 14 80 13 01 00 00 00 00 00 F8 [15:22:20]Write i2c OK [15:22:20]MH_I2C_Read... [15:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:20]Read from MH i2c: E2 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 0E 00 [15:22:20]MH_I2C_Read... [15:22:20]Read from MH i2c: E2 0E 00 67 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BB [15:22:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:22:20]wFMCommunicate OK [15:22:20]SAM_PROTO_GetShiftState done [15:22:20]FM_GetShiftState done [15:22:20]opened in 1717460629 [15:22:20]opened+sec_in_day 1717547029 [15:22:20]quantity*price = 60069 [15:22:20]sum+1 = 60071 [15:22:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 217 04.06.2024 15:22 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148878 ФПД: 232984581063762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152221&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148878&fm=232984581063762&tin=02508201610067®Number=0000000000092720&sum=60000 [15:22:21]StoreToDocumentArchive [15:22:21]shift 368 fd 148878 [15:22:21]save to /storage/0368/doc_00148878 [15:22:21]save last doc name /storage/0368/doc_00148878 to /storage/kkm_last_doc_name [15:22:21]save OK [15:22:21]Clear old archive folders... [15:22:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:21]tlvbuf is 00478EA0 [15:22:21]SAM_PROTO_ClearQueue [15:22:21]wFMCommunicate request_size=4 [15:22:21]MH_SAM_APDU [15:22:21]CAPDU: 80 09 00 00 [15:22:21]Write to MH i2c: E2 08 00 74 14 80 09 00 00 00 00 00 00 FA [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:21]Read from MH i2c: E2 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 74 14 00 90 00 FC [15:22:21]RAPDU: 90 00 [15:22:21]wFMCommunicate OK [15:22:21]SAM_PROTO_ClearQueue done [15:22:21]KKMCreateOFDPacket [15:22:21]OFDProtocolAddRootSTLVToBuf [15:22:21]FM_MakeSignedData [15:22:21]FM_MakeSignedData [15:22:21]SAM_PROTO_SignData [15:22:21]wFMCommunicate request_size=4 [15:22:21]MH_SAM_APDU [15:22:21]CAPDU: 80 0D 01 02 [15:22:21]Write to MH i2c: E2 08 00 75 14 80 0D 01 02 00 00 00 00 02 [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:21]Read from MH i2c: E2 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 [15:22:21]MH_I2C_Read... [15:22:21]Read from MH i2c: E2 03 00 75 14 00 90 00 FD [15:22:21]RAPDU: 90 00 [15:22:21]wFMCommunicate OK [15:22:21]wFMCommunicate request_size=255 [15:22:21]MH_SAM_APDU [15:22:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D9 00 00 00 F4 03 04 00 2D 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8E 45 02 00 35 04 06 00 D3 E5 F3 31 [15:22:21]Write to MH i2c: E2 02 01 76 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D9 00 00 00 F4 03 04 00 2D 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8E 45 02 00 35 04 06 00 D3 E5 F3 31 00 00 9B [15:22:21]Write i2c OK [15:22:21]MH_I2C_Read... [15:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:22]Read from MH i2c: E2 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 03 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 03 00 76 14 00 90 00 FE [15:22:22]RAPDU: 90 00 [15:22:22]wFMCommunicate OK [15:22:22]wFMCommunicate request_size=7 [15:22:22]MH_SAM_APDU [15:22:22]CAPDU: 80 0D 02 02 02 44 52 [15:22:22]Write to MH i2c: E2 0A 00 77 14 80 0D 02 02 02 00 44 52 00 00 9F [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:22]Read from MH i2c: E2 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 03 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 03 00 77 14 00 90 00 FF [15:22:22]RAPDU: 90 00 [15:22:22]wFMCommunicate OK [15:22:22]wFMCommunicate request_size=4 [15:22:22]MH_SAM_APDU [15:22:22]CAPDU: 80 0D 03 02 [15:22:22]Write to MH i2c: E2 08 00 78 14 80 0D 03 02 00 00 00 00 07 [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:22]Read from MH i2c: E2 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 0B 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 0B 00 78 14 00 AF E2 BA 1F 75 D7 C3 2F 90 00 B0 [15:22:22]RAPDU: AF E2 BA 1F 75 D7 C3 2F 90 00 [15:22:22]wFMCommunicate OK [15:22:22]SAM_PROTO_SignData done [15:22:22]FM_MakeSignedData done [15:22:22]CreateOFDProtocolMessage [15:22:22]wFMCommunicate request_size=4 [15:22:22]MH_SAM_APDU [15:22:22]CAPDU: 80 11 00 00 [15:22:22]Write to MH i2c: E2 08 00 79 14 80 11 00 00 00 00 00 00 07 [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:22]Read from MH i2c: E2 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 17 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: E2 17 00 79 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5A [15:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:22:22]wFMCommunicate OK [15:22:22]CreateOFDProtocolMessage done [15:22:22]OFDSenderStorePacket 148878 [15:22:22]StoreOFDPacket docnum=148878 [15:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 70 FC 04 01 2A E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D9 00 00 00 F4 03 04 00 2D 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8E 45 02 00 35 04 06 00 D3 E5 F3 31 44 52 AF E2 BA 1F 75 D7 C3 2F [15:22:22]CheckFolder [15:22:22]dirname=/storage/ofd_packets [15:22:22]CheckFolder done [15:22:22]ProducePacketName [15:22:22]name=ofd_packets/00148878 [15:22:22]NVStorageSaveData ofd_packets/00148878 [15:22:22]File name is /storage/ofd_packets/00148878 [15:22:22]Write 298 bytes [15:22:22]NVStorageSaveData done [15:22:22]OFDSenderStorePacket done [15:22:22]KKMCreateOFDPacket done [15:22:22]NVStorageSaveData kkm_last_timestamp [15:22:22]File name is /storage/kkm_last_timestamp [15:22:22]Write 4 bytes [15:22:22]NVStorageSaveData done [15:22:22]ExternCall_PrintAddStr [15:22:22]wPrintStart [15:22:22]Write to MH i2c: 01 00 00 7A 14 8E [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: 01 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: 01 07 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: 01 07 00 7A 14 00 00 00 00 00 FF 0F A3 [15:22:22]RasterBufferAndPrint [15:22:22]line Счет N : (1)979807 [15:22:22]line ИНН: 02508201610067 [15:22:22]line Контрольно-Кассовый Чек [15:22:22]line ПРОДАЖА [15:22:22]line ТРК (МРК, ГНК) : 51 [15:22:22]line Товар: 2710194210 [15:22:22]line ДТ-К-5 [15:22:22]line 8.240 * 72.90 [15:22:22]line = 600.70 [15:22:22]line НДС 12% НСП 1% [15:22:22]line > о реализуемом товаре [15:22:22]line ОКРУГЛЕНИЕ: -0.70 [15:22:22]line ИТОГО: 600.00 [15:22:22]line Внесено: 600.00 [15:22:22]line СДАЧА: 0.00 [15:22:22]line НСП 1% : 5.32 [15:22:22]line НДС 12% : 63.79 [15:22:22]line Наличными: 600.00 [15:22:22]line Безнал.: 0.00 [15:22:22]line Место: АЗС № 68 "Партнер Нефть" [15:22:22]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:22:22]line СНО: Общий режим [15:22:22]line Чек 217 04.06.2024 15:22 [15:22:22]line Смена: 368 ФФД: 1.0 [15:22:22]line ЗНМ: 0300000035 [15:22:22]line РНМ: 0000000000092720 [15:22:22]line Версия ККМ: 001 [15:22:22]line ФМ: 0000000000875057 [15:22:22]line ФД: 148878 [15:22:22]line ФПД: 232984581063762 [15:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152221&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148878&fm=232984581063762&tin=02508201610067®Number=0000000000092720&sum=60000 [15:22:22]OFD Sender: Processing packet 148878 [packets to send 100, broken 99] [15:22:22]ProducePacketName [15:22:22]name=ofd_packets/00148878 [15:22:22]OFD Sender: To server: pG, [15:22:22]CommunicateWithHost lk.salyk.kg:30040 [15:22:22]ConnectInit lk.salyk.kg [15:22:22]written 0, free lines is 4095 [15:22:22]Connected sock=10 [15:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 70 FC 04 01 2A E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D9 00 00 00 F4 03 04 00 2D 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8E 45 02 00 35 04 06 00 D3 E5 F3 31 44 52 AF E2 BA 1F 75 D7 C3 2F [15:22:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E4 C1 47 00 D7 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8E 45 02 00 F4 03 04 00 51 D8 5E 66 B6 04 01 00 00 34 2C 10 3A BF 94 B4 81 [15:22:22]CommunicateWithHost err = 0 [15:22:22]CheckOFDResponse [15:22:22]1017 (14) - 77093643461234 [15:22:22]1041 (16) - 0000000000875057 [15:22:22]1040 (4) - 148878 [15:22:22]1012 (4) - 04.06.2024 09:03 [15:22:22]1206 (1) - 0 [15:22:22]OFD Sender: Remove packet 148878 [15:22:22]ProducePacketName [15:22:22]name=ofd_packets/00148878 [15:22:22]NVStorageDeleteData [15:22:22]Write to MH i2c: 01 00 00 A5 14 B9 [15:22:22]Write i2c OK [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: 01 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: 01 07 00 [15:22:22]MH_I2C_Read... [15:22:22]Read from MH i2c: 01 07 00 A5 14 00 00 00 00 00 72 0C 3E [15:22:22]RasterBufferAndPrint [15:22:22]line [15:22:22]line [15:22:22]line [15:22:22]line [15:22:22]line [15:22:22]written 0, free lines is 3189 [15:22:23]MH_Cut [15:22:23]Write to MH i2c: D1 01 00 AC 14 01 92 [15:22:23]Write i2c OK [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: D1 [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: D1 01 00 [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: D1 01 00 AC 14 00 91 [15:22:23]Write to MH i2c: 01 00 00 AD 14 C1 [15:22:23]Write i2c OK [15:22:23]MH_I2C_Read... [15:22:23]OFD Sender: No OFD packet to send [15:22:24]*** Cut start [15:22:24]*** Partial cut [15:22:24]*** CUTSNS_PIN = 1 [15:22:24]*** CUTSNS_PIN = 0 [15:22:24]*** Brake cut motor [15:22:24]Read from MH i2c: 01 [15:22:24]MH_I2C_Read... [15:22:24]*** Stop cut motor [15:22:24]*** Cut end [15:22:24]Read from MH i2c: 01 07 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: 01 07 00 AD 14 00 00 00 00 00 FF 0F D6 [15:22:24]process_action close_receipt done [15:22:24]requested_data is exist [15:22:24]produce_requested_data [15:22:24]requested_item fm.sn is exist - process it [15:22:24]wFMCommunicate request_size=4 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 11 00 00 [15:22:24]Write to MH i2c: E2 08 00 AE 14 80 11 00 00 00 00 00 00 3C [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:24]Read from MH i2c: E2 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 17 00 [15:22:24]MH_I2C_Read... [15:22:24]Read from MH i2c: E2 17 00 AE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8F [15:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:22:24]wFMCommunicate OK [15:22:24]requested_item fd.num is exist - process it [15:22:24]SAM_PROTO_GetFieldsCounters [15:22:24]wFMCommunicate request_size=4 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 13 00 00 [15:22:24]Write to MH i2c: E2 08 00 AF 14 80 13 00 00 00 00 00 00 3F [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:25]Read from MH i2c: E2 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 62 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 62 00 AF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8E 45 02 00 0E 04 04 00 70 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 2C [15:22:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8E 45 02 00 0E 04 04 00 70 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 [15:22:25]wFMCommunicate OK [15:22:25]SAM_PROTO_GetFieldsCounters done [15:22:25]requested_item shift.num is exist - process it [15:22:25]requested_item shift.opened is exist - process it [15:22:25]req_shift_opened [15:22:25]FM_GetShiftState [15:22:25]SAM_PROTO_GetShiftState [15:22:25]wFMCommunicate request_size=4 [15:22:25]MH_SAM_APDU [15:22:25]CAPDU: 80 13 01 00 [15:22:25]Write to MH i2c: E2 08 00 B0 14 80 13 01 00 00 00 00 00 41 [15:22:25]Write i2c OK [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 [15:22:25]MH_I2C_Read... [15:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:25]Read from MH i2c: E2 0E 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 0E 00 B0 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 04 [15:22:25]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:22:25]wFMCommunicate OK [15:22:25]SAM_PROTO_GetShiftState done [15:22:25]FM_GetShiftState done [15:22:25]req_shift_opened done [15:22:25]requested_item shift.open_date is exist - process it [15:22:25]req_shift_open_date [15:22:25]req_shift_open_date done [15:22:25]produce_requested_data done [15:22:25]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148878,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:22:25]process_action_free close_receipt [15:22:25]json_value_free [15:22:25]json_value_free done [15:22:25]process_json_proto returns [15:22:25]Send response to host [15:22:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148878,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:22:25]free response buf [15:22:25]execute_script done [15:22:25]execute_script returns [15:22:25]free content buf [15:22:25]Sock 7.Close socket [15:22:25]Sock 7.Thread stoped [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]accept exits with 9 [15:23:18]New connection [15:23:18]New thread 3067407716 created [15:23:18]Thread 3067264356 joined [15:23:18]Waiting for new connection... [15:23:18] Sock 9.Parse request [15:23:18]Sock 9.Check first char [15:23:18]Sock 9.First char is OK [15:23:18]request: POST /json_proto HTTP/1.0 [15:23:18]Method: POST [15:23:18]URL: /json_proto [15:23:18]Method is POST - this is cgi request [15:23:18]url: /json_proto [15:23:18]query_string will be loaded in cgi processing [15:23:18]execute_cgi json_proto POST (null) [15:23:18]execute_cgi path=json_proto method=POST [15:23:18]POST find Content-Length [15:23:18]Host: 172.17.38.4:8080 [15:23:18]Content-Length: 677 [15:23:18]Content-Type: application/json [15:23:18] [15:23:18]POST finish read [15:23:18]Found Content-Length = 677 [15:23:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:18]execute_script... [15:23: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)979808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:18]POST & json_proto [15:23:18]process_json_proto [15:23:18]json parsed OK: [15:23:18]protocol is kg_v1.0 [15:23:18]action value=close_receipt [15:23:18]process_action close_receipt [15:23:18]cmd_close_receipt [15:23:18]MH_GetDate [15:23:18]Write to MH i2c: F0 00 00 B1 14 B4 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: F0 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: F0 09 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: F0 09 00 B1 14 00 67 31 5F 66 CC 51 87 64 22 [15:23:18]GetLastDocTimeStamp 1717514541 [15:23:18]current date 1717514599 [15:23:18]FM_GetShiftState [15:23:18]SAM_PROTO_GetShiftState [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 13 01 00 [15:23:18]Write to MH i2c: E2 08 00 B2 14 80 13 01 00 00 00 00 00 43 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 0E 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 0E 00 B2 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 06 [15:23:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:23:18]wFMCommunicate OK [15:23:18]SAM_PROTO_GetShiftState done [15:23:18]FM_GetShiftState done [15:23:18]opened in 1717460629 [15:23:18]opened+sec_in_day 1717547029 [15:23:18]quantity*price = 20003 [15:23:18]sum+1 = 20004 [15:23:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 218 04.06.2024 15:23 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148879 ФПД: 95485797256940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152319&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148879&fm=95485797256940&tin=02508201610067®Number=0000000000092720&sum=20000 [15:23:19]StoreToDocumentArchive [15:23:19]shift 368 fd 148879 [15:23:19]save to /storage/0368/doc_00148879 [15:23:19]save last doc name /storage/0368/doc_00148879 to /storage/kkm_last_doc_name [15:23:19]save OK [15:23:19]Clear old archive folders... [15:23:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:19]tlvbuf is 004B3B90 [15:23:19]SAM_PROTO_ClearQueue [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 09 00 00 [15:23:19]Write to MH i2c: E2 08 00 BF 14 80 09 00 00 00 00 00 00 45 [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 BF 14 00 90 00 47 [15:23:19]RAPDU: 90 00 [15:23:19]wFMCommunicate OK [15:23:19]SAM_PROTO_ClearQueue done [15:23:19]KKMCreateOFDPacket [15:23:19]OFDProtocolAddRootSTLVToBuf [15:23:19]FM_MakeSignedData [15:23:19]FM_MakeSignedData [15:23:19]SAM_PROTO_SignData [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 0D 01 02 [15:23:19]Write to MH i2c: E2 08 00 C0 14 80 0D 01 02 00 00 00 00 4D [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 C0 14 00 90 00 48 [15:23:19]RAPDU: 90 00 [15:23:19]wFMCommunicate OK [15:23:19]wFMCommunicate request_size=255 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 67 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8F 45 02 00 35 04 06 00 56 [15:23:19]Write to MH i2c: E2 02 01 C1 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 67 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8F 45 02 00 35 04 06 00 56 00 00 6D [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 C1 14 00 90 00 49 [15:23:19]RAPDU: 90 00 [15:23:19]wFMCommunicate OK [15:23:19]wFMCommunicate request_size=10 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 0D 02 02 05 D8 05 06 CE EC [15:23:19]Write to MH i2c: E2 0D 00 C2 14 80 0D 02 02 05 00 D8 05 06 CE EC 00 00 F7 [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 03 00 C2 14 00 90 00 4A [15:23:19]RAPDU: 90 00 [15:23:19]wFMCommunicate OK [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 0D 03 02 [15:23:19]Write to MH i2c: E2 08 00 C3 14 80 0D 03 02 00 00 00 00 52 [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 0B 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 0B 00 C3 14 00 E0 F7 FE 5B D8 28 6F B0 90 00 A2 [15:23:19]RAPDU: E0 F7 FE 5B D8 28 6F B0 90 00 [15:23:19]wFMCommunicate OK [15:23:19]SAM_PROTO_SignData done [15:23:19]FM_MakeSignedData done [15:23:19]CreateOFDProtocolMessage [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 11 00 00 [15:23:19]Write to MH i2c: E2 08 00 C4 14 80 11 00 00 00 00 00 00 52 [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 17 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 17 00 C4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A5 [15:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:23:19]wFMCommunicate OK [15:23:19]CreateOFDProtocolMessage done [15:23:19]OFDSenderStorePacket 148879 [15:23:19]StoreOFDPacket docnum=148879 [15:23:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 82 FB 07 01 79 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 67 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8F 45 02 00 35 04 06 00 56 D8 05 06 CE EC E0 F7 FE 5B D8 28 6F B0 [15:23:19]CheckFolder [15:23:19]dirname=/storage/ofd_packets [15:23:19]CheckFolder done [15:23:19]ProducePacketName [15:23:19]name=ofd_packets/00148879 [15:23:19]NVStorageSaveData ofd_packets/00148879 [15:23:19]File name is /storage/ofd_packets/00148879 [15:23:19]Write 301 bytes [15:23:19]NVStorageSaveData done [15:23:19]OFDSenderStorePacket done [15:23:19]KKMCreateOFDPacket done [15:23:19]NVStorageSaveData kkm_last_timestamp [15:23:19]File name is /storage/kkm_last_timestamp [15:23:19]Write 4 bytes [15:23:19]NVStorageSaveData done [15:23:19]ExternCall_PrintAddStr [15:23:19]wPrintStart [15:23:19]Write to MH i2c: 01 00 00 C5 14 D9 [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: 01 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: 01 07 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: 01 07 00 C5 14 00 00 00 00 00 FF 0F EE [15:23:19]RasterBufferAndPrint [15:23:19]line Счет N : (1)979808 [15:23:19]line ИНН: 02508201610067 [15:23:19]line Контрольно-Кассовый Чек [15:23:19]line ПРОДАЖА [15:23:19]line ТРК (МРК, ГНК) : 31 [15:23:19]line Товар: 2710124130 [15:23:19]line Аи-92-К-5 [15:23:19]line 2.990 * 66.90 [15:23:19]line = 200.03 [15:23:19]line НДС 12% НСП 1% [15:23:19]line > о реализуемом товаре [15:23:19]line ОКРУГЛЕНИЕ: -0.03 [15:23:19]line ИТОГО: 200.00 [15:23:19]line Внесено: 200.00 [15:23:19]line СДАЧА: 0.00 [15:23:19]line НСП 1% : 1.77 [15:23:19]line НДС 12% : 21.24 [15:23:19]line Наличными: 200.00 [15:23:19]line Безнал.: 0.00 [15:23:19]line Место: АЗС № 68 "Партнер Нефть" [15:23:19]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:23:19]line СНО: Общий режим [15:23:19]line Чек 218 04.06.2024 15:23 [15:23:19]line Смена: 368 ФФД: 1.0 [15:23:19]line ЗНМ: 0300000035 [15:23:19]line РНМ: 0000000000092720 [15:23:19]line Версия ККМ: 001 [15:23:19]line ФМ: 0000000000875057 [15:23:19]line ФД: 148879 [15:23:19]line ФПД: 95485797256940 [15:23:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152319&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148879&fm=95485797256940&tin=02508201610067®Number=0000000000092720&sum=20000 [15:23:20]OFD Sender: Processing packet 148879 [packets to send 100, broken 99] [15:23:20]ProducePacketName [15:23:20]name=ofd_packets/00148879 [15:23:20]OFD Sender: To server: pG, [15:23:20]CommunicateWithHost lk.salyk.kg:30040 [15:23:20]ConnectInit lk.salyk.kg [15:23:20]written 0, free lines is 4095 [15:23:20]Connected sock=10 [15:23:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 82 FB 07 01 79 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 67 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8F 45 02 00 35 04 06 00 56 D8 05 06 CE EC E0 F7 FE 5B D8 28 6F B0 [15:23:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 62 60 47 00 CB 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 8F 45 02 00 F4 03 04 00 8B D8 5E 66 B6 04 01 00 00 24 CA 18 35 4F EB 3B A9 [15:23:20]CommunicateWithHost err = 0 [15:23:20]CheckOFDResponse [15:23:20]1017 (14) - 77093643461234 [15:23:20]1041 (16) - 0000000000875057 [15:23:20]1040 (4) - 148879 [15:23:20]1012 (4) - 04.06.2024 09:04 [15:23:20]1206 (1) - 0 [15:23:20]OFD Sender: Remove packet 148879 [15:23:20]ProducePacketName [15:23:20]name=ofd_packets/00148879 [15:23:20]NVStorageDeleteData [15:23:20]Write to MH i2c: 01 00 00 F0 14 04 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 07 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: 01 07 00 F0 14 00 00 00 00 00 6D 0C 84 [15:23:20]RasterBufferAndPrint [15:23:20]line [15:23:20]line [15:23:20]line [15:23:20]line [15:23:20]line [15:23:20]written 0, free lines is 3184 [15:23:20]MH_Cut [15:23:20]Write to MH i2c: D1 01 00 F7 14 01 DD [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: D1 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: D1 01 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: D1 01 00 F7 14 00 DC [15:23:20]Write to MH i2c: 01 00 00 F8 14 0C [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]OFD Sender: No OFD packet to send [15:23:21]*** Cut start [15:23:21]*** Partial cut [15:23:21]*** CUTSNS_PIN = 1 [15:23:21]*** CUTSNS_PIN = 0 [15:23:22]*** Brake cut motor [15:23:22]Read from MH i2c: 01 [15:23:22]MH_I2C_Read... [15:23:22]*** Stop cut motor [15:23:22]*** Cut end [15:23:22]Read from MH i2c: 01 07 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 07 00 F8 14 00 00 00 00 00 FF 0F 21 [15:23:22]process_action close_receipt done [15:23:22]requested_data is exist [15:23:22]produce_requested_data [15:23:22]requested_item fm.sn is exist - process it [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 11 00 00 [15:23:22]Write to MH i2c: E2 08 00 F9 14 80 11 00 00 00 00 00 00 87 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 17 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 17 00 F9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DA [15:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:23:22]wFMCommunicate OK [15:23:22]requested_item fd.num is exist - process it [15:23:22]SAM_PROTO_GetFieldsCounters [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 13 00 00 [15:23:22]Write to MH i2c: E2 08 00 FA 14 80 13 00 00 00 00 00 00 8A [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 62 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 62 00 FA 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8F 45 02 00 0E 04 04 00 70 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 7B [15:23:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 8F 45 02 00 0E 04 04 00 70 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 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_GetFieldsCounters done [15:23:22]requested_item shift.num is exist - process it [15:23:22]requested_item shift.opened is exist - process it [15:23:22]req_shift_opened [15:23:22]FM_GetShiftState [15:23:22]SAM_PROTO_GetShiftState [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 13 01 00 [15:23:22]Write to MH i2c: E2 08 00 FB 14 80 13 01 00 00 00 00 00 8C [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0E 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0E 00 FB 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4F [15:23:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_GetShiftState done [15:23:22]FM_GetShiftState done [15:23:22]req_shift_opened done [15:23:22]requested_item shift.open_date is exist - process it [15:23:22]req_shift_open_date [15:23:22]req_shift_open_date done [15:23:22]produce_requested_data done [15:23:22]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148879,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:23:22]process_action_free close_receipt [15:23:22]json_value_free [15:23:22]json_value_free done [15:23:22]process_json_proto returns [15:23:22]Send response to host [15:23:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148879,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:23:22]free response buf [15:23:22]execute_script done [15:23:22]execute_script returns [15:23:22]free content buf [15:23:22]Sock 9.Close socket [15:23:22]Sock 9.Thread stoped [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25: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:45]accept exits with 7 [15:25:45]New connection [15:25:45]New thread 3067264356 created [15:25:45]Thread 3067407716 joined [15:25:45]Waiting for new connection... [15:25:45] Sock 7.Parse request [15:25:45]Sock 7.Check first char [15:25:45]Sock 7.First char is OK [15:25:45]request: POST /json_proto HTTP/1.0 [15:25:45]Method: POST [15:25:45]URL: /json_proto [15:25:45]Method is POST - this is cgi request [15:25:45]url: /json_proto [15:25:45]query_string will be loaded in cgi processing [15:25:45]execute_cgi json_proto POST (null) [15:25:45]execute_cgi path=json_proto method=POST [15:25:45]POST find Content-Length [15:25:45]Host: 172.17.38.4:8080 [15:25:45]Content-Length: 677 [15:25:45]Content-Type: application/json [15:25:45] [15:25:45]POST finish read [15:25:45]Found Content-Length = 677 [15:25:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.180, "sum" : 614.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 614.00, "total" : 614.00, "payments": [ { "type": 0, "sum" : 614.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:45]execute_script... [15:25: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)979809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.180, "sum" : 614.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 614.00, "total" : 614.00, "payments": [ { "type": 0, "sum" : 614.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:45]POST & json_proto [15:25:45]process_json_proto [15:25:45]json parsed OK: [15:25:45]protocol is kg_v1.0 [15:25:45]action value=close_receipt [15:25:45]process_action close_receipt [15:25:45]cmd_close_receipt [15:25:45]MH_GetDate [15:25:45]Write to MH i2c: F0 00 00 FC 14 FF [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: F0 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: F0 09 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: F0 09 00 FC 14 00 FB 31 5F 66 CC 51 87 64 01 [15:25:45]GetLastDocTimeStamp 1717514599 [15:25:45]current date 1717514747 [15:25:45]FM_GetShiftState [15:25:45]SAM_PROTO_GetShiftState [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 13 01 00 [15:25:45]Write to MH i2c: E2 08 00 FD 14 80 13 01 00 00 00 00 00 8E [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0E 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0E 00 FD 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 51 [15:25:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:25:45]wFMCommunicate OK [15:25:45]SAM_PROTO_GetShiftState done [15:25:45]FM_GetShiftState done [15:25:45]opened in 1717460629 [15:25:45]opened+sec_in_day 1717547029 [15:25:45]quantity*price = 61414 [15:25:45]sum+1 = 61415 [15:25:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 614.00 Внесено: 614.00 СДАЧА: 0.00 НСП 1% : 5.43 НДС 12% : 65.22 Наличными: 614.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 219 04.06.2024 15:25 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148880 ФПД: 27764351809807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152547&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148880&fm=27764351809807&tin=02508201610067®Number=0000000000092720&sum=61400 [15:25:46]StoreToDocumentArchive [15:25:46]shift 368 fd 148880 [15:25:46]save to /storage/0368/doc_00148880 [15:25:46]save last doc name /storage/0368/doc_00148880 to /storage/kkm_last_doc_name [15:25:46]save OK [15:25:46]Clear old archive folders... [15:25:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:46]tlvbuf is 00500470 [15:25:46]SAM_PROTO_ClearQueue [15:25:46]wFMCommunicate request_size=4 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 09 00 00 [15:25:46]Write to MH i2c: E2 08 00 0A 15 80 09 00 00 00 00 00 00 91 [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:46]Read from MH i2c: E2 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 03 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 03 00 0A 15 00 90 00 93 [15:25:46]RAPDU: 90 00 [15:25:46]wFMCommunicate OK [15:25:46]SAM_PROTO_ClearQueue done [15:25:46]KKMCreateOFDPacket [15:25:46]OFDProtocolAddRootSTLVToBuf [15:25:46]FM_MakeSignedData [15:25:46]FM_MakeSignedData [15:25:46]SAM_PROTO_SignData [15:25:46]wFMCommunicate request_size=4 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 0D 01 02 [15:25:46]Write to MH i2c: E2 08 00 0B 15 80 0D 01 02 00 00 00 00 99 [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:46]Read from MH i2c: E2 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 03 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 03 00 0B 15 00 90 00 94 [15:25:46]RAPDU: 90 00 [15:25:46]wFMCommunicate OK [15:25:46]wFMCommunicate request_size=255 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 EF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 EF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 19 00 00 00 00 07 04 06 00 D8 EF 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 FB 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 90 45 02 00 35 04 06 00 19 [15:25:46]Write to MH i2c: E2 02 01 0C 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 EF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 EF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 19 00 00 00 00 07 04 06 00 D8 EF 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 FB 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 90 45 02 00 35 04 06 00 19 00 00 1D [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 0C 15 00 90 00 95 [15:25:47]RAPDU: 90 00 [15:25:47]wFMCommunicate OK [15:25:47]wFMCommunicate request_size=10 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 0D 02 02 05 40 64 53 B9 0F [15:25:47]Write to MH i2c: E2 0D 00 0D 15 80 0D 02 02 05 00 40 64 53 B9 0F 00 00 65 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 0D 15 00 90 00 96 [15:25:47]RAPDU: 90 00 [15:25:47]wFMCommunicate OK [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 0D 03 02 [15:25:47]Write to MH i2c: E2 08 00 0E 15 80 0D 03 02 00 00 00 00 9E [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0B 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0B 00 0E 15 00 48 27 96 4F 11 AE 08 6A 90 00 24 [15:25:47]RAPDU: 48 27 96 4F 11 AE 08 6A 90 00 [15:25:47]wFMCommunicate OK [15:25:47]SAM_PROTO_SignData done [15:25:47]FM_MakeSignedData done [15:25:47]CreateOFDProtocolMessage [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 11 00 00 [15:25:47]Write to MH i2c: E2 08 00 0F 15 80 11 00 00 00 00 00 00 9E [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 17 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 17 00 0F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F1 [15:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:25:47]wFMCommunicate OK [15:25:47]CreateOFDProtocolMessage done [15:25:47]OFDSenderStorePacket 148880 [15:25:47]StoreOFDPacket docnum=148880 [15:25:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 34 78 07 01 07 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 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 EF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 EF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 19 00 00 00 00 07 04 06 00 D8 EF 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 FB 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 90 45 02 00 35 04 06 00 19 40 64 53 B9 0F 48 27 96 4F 11 AE 08 6A [15:25:47]CheckFolder [15:25:47]dirname=/storage/ofd_packets [15:25:47]CheckFolder done [15:25:47]ProducePacketName [15:25:47]name=ofd_packets/00148880 [15:25:47]NVStorageSaveData ofd_packets/00148880 [15:25:47]File name is /storage/ofd_packets/00148880 [15:25:47]Write 301 bytes [15:25:47]NVStorageSaveData done [15:25:47]OFDSenderStorePacket done [15:25:47]KKMCreateOFDPacket done [15:25:47]NVStorageSaveData kkm_last_timestamp [15:25:47]File name is /storage/kkm_last_timestamp [15:25:47]Write 4 bytes [15:25:47]NVStorageSaveData done [15:25:47]ExternCall_PrintAddStr [15:25:47]wPrintStart [15:25:47]Write to MH i2c: 01 00 00 10 15 25 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: 01 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: 01 07 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: 01 07 00 10 15 00 00 00 00 00 FF 0F 3A [15:25:47]RasterBufferAndPrint [15:25:47]line Счет N : (1)979809 [15:25:47]line ИНН: 02508201610067 [15:25:47]line Контрольно-Кассовый Чек [15:25:47]line ПРОДАЖА [15:25:47]line ТРК (МРК, ГНК) : 22 [15:25:47]line Товар: 2710124130 [15:25:47]line Аи-92-К-5 [15:25:47]line 9.180 * 66.90 [15:25:47]line = 614.14 [15:25:47]line НДС 12% НСП 1% [15:25:47]line > о реализуемом товаре [15:25:47]line ОКРУГЛЕНИЕ: -0.14 [15:25:47]line ИТОГО: 614.00 [15:25:47]line Внесено: 614.00 [15:25:47]line СДАЧА: 0.00 [15:25:47]line НСП 1% : 5.43 [15:25:47]line НДС 12% : 65.22 [15:25:47]line Наличными: 614.00 [15:25:47]line Безнал.: 0.00 [15:25:47]line Место: АЗС № 68 "Партнер Нефть" [15:25:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:25:47]line СНО: Общий режим [15:25:47]line Чек 219 04.06.2024 15:25 [15:25:47]line Смена: 368 ФФД: 1.0 [15:25:47]line ЗНМ: 0300000035 [15:25:47]line РНМ: 0000000000092720 [15:25:47]line Версия ККМ: 001 [15:25:47]line ФМ: 0000000000875057 [15:25:47]line ФД: 148880 [15:25:47]line ФПД: 27764351809807 [15:25:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152547&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148880&fm=27764351809807&tin=02508201610067®Number=0000000000092720&sum=61400 [15:25:47]OFD Sender: Processing packet 148880 [packets to send 100, broken 99] [15:25:47]ProducePacketName [15:25:47]name=ofd_packets/00148880 [15:25:47]OFD Sender: To server: pG, [15:25:47]CommunicateWithHost lk.salyk.kg:30040 [15:25:47]ConnectInit lk.salyk.kg [15:25:47]written 0, free lines is 4095 [15:25:47]Connected sock=10 [15:25:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 34 78 07 01 07 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 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 EF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 EF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 19 00 00 00 00 07 04 06 00 D8 EF 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 FB 31 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 90 45 02 00 35 04 06 00 19 40 64 53 B9 0F 48 27 96 4F 11 AE 08 6A [15:25:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 92 0A 47 00 C5 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 38 37 35 30 35 37 10 04 04 00 90 45 02 00 F4 03 04 00 1E D9 5E 66 B6 04 01 00 00 A7 23 14 D9 7A 7B 01 FA [15:25:47]CommunicateWithHost err = 0 [15:25:47]CheckOFDResponse [15:25:47]1017 (14) - 77093643461234 [15:25:47]1041 (16) - 0000000000875057 [15:25:47]1040 (4) - 148880 [15:25:47]1012 (4) - 04.06.2024 09:06 [15:25:47]1206 (1) - 0 [15:25:47]OFD Sender: Remove packet 148880 [15:25:47]ProducePacketName [15:25:47]name=ofd_packets/00148880 [15:25:47]NVStorageDeleteData [15:25:48]Write to MH i2c: 01 00 00 3B 15 50 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: 01 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: 01 07 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: 01 07 00 3B 15 00 00 00 00 00 69 0C CC [15:25:48]RasterBufferAndPrint [15:25:48]line [15:25:48]line [15:25:48]line [15:25:48]line [15:25:48]line [15:25:48]written 0, free lines is 3180 [15:25:48]MH_Cut [15:25:48]Write to MH i2c: D1 01 00 42 15 01 29 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: D1 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: D1 01 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: D1 01 00 42 15 00 28 [15:25:48]Write to MH i2c: 01 00 00 43 15 58 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]OFD Sender: No OFD packet to send [15:25:49]*** Cut start [15:25:49]*** Partial cut [15:25:49]*** CUTSNS_PIN = 1 [15:25:49]*** CUTSNS_PIN = 0 [15:25:49]*** Brake cut motor [15:25:50]Read from MH i2c: 01 [15:25:50]MH_I2C_Read... [15:25:50]*** Stop cut motor [15:25:50]*** Cut end [15:25:50]Read from MH i2c: 01 07 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: 01 07 00 43 15 00 00 00 00 00 FF 0F 6D [15:25:50]process_action close_receipt done [15:25:50]requested_data is exist [15:25:50]produce_requested_data [15:25:50]requested_item fm.sn is exist - process it [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 11 00 00 [15:25:50]Write to MH i2c: E2 08 00 44 15 80 11 00 00 00 00 00 00 D3 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 17 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 17 00 44 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 26 [15:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:25:50]wFMCommunicate OK [15:25:50]requested_item fd.num is exist - process it [15:25:50]SAM_PROTO_GetFieldsCounters [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 13 00 00 [15:25:50]Write to MH i2c: E2 08 00 45 15 80 13 00 00 00 00 00 00 D6 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 62 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 62 00 45 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 90 45 02 00 0E 04 04 00 70 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 CB [15:25:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 90 45 02 00 0E 04 04 00 70 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 [15:25:50]wFMCommunicate OK [15:25:50]SAM_PROTO_GetFieldsCounters done [15:25:50]requested_item shift.num is exist - process it [15:25:50]requested_item shift.opened is exist - process it [15:25:50]req_shift_opened [15:25:50]FM_GetShiftState [15:25:50]SAM_PROTO_GetShiftState [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 13 01 00 [15:25:50]Write to MH i2c: E2 08 00 46 15 80 13 01 00 00 00 00 00 D8 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 0E 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 0E 00 46 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9B [15:25:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:25:50]wFMCommunicate OK [15:25:50]SAM_PROTO_GetShiftState done [15:25:50]FM_GetShiftState done [15:25:50]req_shift_opened done [15:25:50]requested_item shift.open_date is exist - process it [15:25:50]req_shift_open_date [15:25:50]req_shift_open_date done [15:25:50]produce_requested_data done [15:25:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148880,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:25:50]process_action_free close_receipt [15:25:50]json_value_free [15:25:50]json_value_free done [15:25:50]process_json_proto returns [15:25:50]Send response to host [15:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148880,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:25:50]free response buf [15:25:50]execute_script done [15:25:50]execute_script returns [15:25:50]free content buf [15:25:50]Sock 7.Close socket [15:25:50]Sock 7.Thread stoped [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:25:59]accept exits with 9 [15:25:59]New connection [15:25:59]New thread 3067407716 created [15:25:59]Thread 3067264356 joined [15:25:59]Waiting for new connection... [15:25:59] Sock 9.Parse request [15:25:59]Sock 9.Check first char [15:25:59]Sock 9.First char is OK [15:25:59]request: POST /json_proto HTTP/1.0 [15:25:59]Method: POST [15:25:59]URL: /json_proto [15:25:59]Method is POST - this is cgi request [15:25:59]url: /json_proto [15:25:59]query_string will be loaded in cgi processing [15:25:59]execute_cgi json_proto POST (null) [15:25:59]execute_cgi path=json_proto method=POST [15:25:59]POST find Content-Length [15:25:59]Host: 172.17.38.4:8080 [15:25:59]Content-Length: 675 [15:25:59]Content-Type: application/json [15:25:59] [15:25:59]POST finish read [15:25:59]Found Content-Length = 675 [15:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [15:25:59]execute_script... [15: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)979810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [15:25:59]POST & json_proto [15:25:59]process_json_proto [15:25:59]json parsed OK: [15:25:59]protocol is kg_v1.0 [15:25:59]action value=close_receipt [15:25:59]process_action close_receipt [15:25:59]cmd_close_receipt [15:25:59]MH_GetDate [15:25:59]Write to MH i2c: F0 00 00 47 15 4B [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: F0 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: F0 09 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: F0 09 00 47 15 00 09 32 5F 66 CC 51 87 64 5C [15:25:59]GetLastDocTimeStamp 1717514747 [15:25:59]current date 1717514761 [15:25:59]FM_GetShiftState [15:25:59]SAM_PROTO_GetShiftState [15:25:59]wFMCommunicate request_size=4 [15:25:59]MH_SAM_APDU [15:25:59]CAPDU: 80 13 01 00 [15:25:59]Write to MH i2c: E2 08 00 48 15 80 13 01 00 00 00 00 00 DA [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:59]Read from MH i2c: E2 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 0E 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 0E 00 48 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9D [15:25:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:25:59]wFMCommunicate OK [15:25:59]SAM_PROTO_GetShiftState done [15:25:59]FM_GetShiftState done [15:25:59]opened in 1717460629 [15:25:59]opened+sec_in_day 1717547029 [15:25:59]quantity*price = 100016 [15:25:59]sum+1 = 100018 [15:25:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 220 04.06.2024 15:26 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148881 ФПД: 184084473667773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152601&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148881&fm=184084473667773&tin=02508201610067®Number=0000000000092720&sum=100000 [15:26:01]StoreToDocumentArchive [15:26:01]shift 368 fd 148881 [15:26:01]save to /storage/0368/doc_00148881 [15:26:01]save last doc name /storage/0368/doc_00148881 to /storage/kkm_last_doc_name [15:26:01]save OK [15:26:01]Clear old archive folders... [15:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:26:01]tlvbuf is 0046AE20 [15:26:01]SAM_PROTO_ClearQueue [15:26:01]wFMCommunicate request_size=4 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 09 00 00 [15:26:01]Write to MH i2c: E2 08 00 55 15 80 09 00 00 00 00 00 00 DC [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 55 15 00 90 00 DE [15:26:01]RAPDU: 90 00 [15:26:01]wFMCommunicate OK [15:26:01]SAM_PROTO_ClearQueue done [15:26:01]KKMCreateOFDPacket [15:26:01]OFDProtocolAddRootSTLVToBuf [15:26:01]FM_MakeSignedData [15:26:01]FM_MakeSignedData [15:26:01]SAM_PROTO_SignData [15:26:01]wFMCommunicate request_size=4 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 0D 01 02 [15:26:01]Write to MH i2c: E2 08 00 56 15 80 0D 01 02 00 00 00 00 E4 [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 56 15 00 90 00 DF [15:26:01]RAPDU: 90 00 [15:26:01]wFMCommunicate OK [15:26:01]wFMCommunicate request_size=255 [15:26:01]MH_SAM_APDU [15:26: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 DC 00 00 00 F4 03 04 00 09 32 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 91 45 02 00 35 04 06 00 [15:26:01]Write to MH i2c: E2 02 01 57 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 DC 00 00 00 F4 03 04 00 09 32 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 91 45 02 00 35 04 06 00 00 00 B2 [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 57 15 00 90 00 E0 [15:26:01]RAPDU: 90 00 [15:26:01]wFMCommunicate OK [15:26:01]wFMCommunicate request_size=11 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 0D 02 02 06 A7 6C 81 A9 60 BD [15:26:01]Write to MH i2c: E2 0E 00 58 15 80 0D 02 02 06 00 A7 6C 81 A9 60 BD 00 00 4D [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 03 00 58 15 00 90 00 E1 [15:26:01]RAPDU: 90 00 [15:26:01]wFMCommunicate OK [15:26:01]wFMCommunicate request_size=4 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 0D 03 02 [15:26:01]Write to MH i2c: E2 08 00 59 15 80 0D 03 02 00 00 00 00 E9 [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 0B 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 0B 00 59 15 00 05 B8 FD 05 BB 75 CC 3A 90 00 DF [15:26:01]RAPDU: 05 B8 FD 05 BB 75 CC 3A 90 00 [15:26:01]wFMCommunicate OK [15:26:01]SAM_PROTO_SignData done [15:26:01]FM_MakeSignedData done [15:26:01]CreateOFDProtocolMessage [15:26:01]wFMCommunicate request_size=4 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 11 00 00 [15:26:01]Write to MH i2c: E2 08 00 5A 15 80 11 00 00 00 00 00 00 E9 [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 17 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 17 00 5A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3C [15:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:26:01]wFMCommunicate OK [15:26:01]CreateOFDProtocolMessage done [15:26:01]OFDSenderStorePacket 148881 [15:26:01]StoreOFDPacket docnum=148881 [15:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 2E 42 08 01 C0 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 DC 00 00 00 F4 03 04 00 09 32 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 91 45 02 00 35 04 06 00 A7 6C 81 A9 60 BD 05 B8 FD 05 BB 75 CC 3A [15:26:01]CheckFolder [15:26:01]dirname=/storage/ofd_packets [15:26:01]CheckFolder done [15:26:01]ProducePacketName [15:26:01]name=ofd_packets/00148881 [15:26:01]NVStorageSaveData ofd_packets/00148881 [15:26:01]File name is /storage/ofd_packets/00148881 [15:26:01]Write 302 bytes [15:26:01]NVStorageSaveData done [15:26:01]OFDSenderStorePacket done [15:26:01]KKMCreateOFDPacket done [15:26:01]NVStorageSaveData kkm_last_timestamp [15:26:01]File name is /storage/kkm_last_timestamp [15:26:01]Write 4 bytes [15:26:01]NVStorageSaveData done [15:26:01]ExternCall_PrintAddStr [15:26:01]wPrintStart [15:26:01]Write to MH i2c: 01 00 00 5B 15 70 [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: 01 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: 01 07 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: 01 07 00 5B 15 00 00 00 00 00 FF 0F 85 [15:26:01]RasterBufferAndPrint [15:26:01]line Счет N : (1)979810 [15:26:01]line ИНН: 02508201610067 [15:26:01]line Контрольно-Кассовый Чек [15:26:01]line ПРОДАЖА [15:26:01]line ТРК (МРК, ГНК) : 33 [15:26:01]line Товар: 2710124130 [15:26:01]line SUPER 92-К-5 [15:26:01]line 14.730 * 67.90 [15:26:01]line = 1000.17 [15:26:01]line НДС 12% НСП 1% [15:26:01]line > о реализуемом товаре [15:26:01]line ОКРУГЛЕНИЕ: -0.17 [15:26:01]line ИТОГО: 1000.00 [15:26:01]line Внесено: 1000.00 [15:26:01]line СДАЧА: 0.00 [15:26:01]line НСП 1% : 8.85 [15:26:01]line НДС 12% : 106.21 [15:26:01]line Наличными: 1000.00 [15:26:01]line Безнал.: 0.00 [15:26:01]line Место: АЗС № 68 "Партнер Нефть" [15:26:01]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:26:01]line СНО: Общий режим [15:26:01]line Чек 220 04.06.2024 15:26 [15:26:01]line Смена: 368 ФФД: 1.0 [15:26:01]line ЗНМ: 0300000035 [15:26:01]line РНМ: 0000000000092720 [15:26:01]line Версия ККМ: 001 [15:26:01]line ФМ: 0000000000875057 [15:26:01]line ФД: 148881 [15:26:01]line ФПД: 184084473667773 [15:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T152601&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148881&fm=184084473667773&tin=02508201610067®Number=0000000000092720&sum=100000 [15:26:01]OFD Sender: Processing packet 148881 [packets to send 100, broken 99] [15:26:01]ProducePacketName [15:26:01]name=ofd_packets/00148881 [15:26:01]OFD Sender: To server: pG, [15:26:01]CommunicateWithHost lk.salyk.kg:30040 [15:26:01]ConnectInit lk.salyk.kg [15:26:01]written 0, free lines is 4095 [15:26:02]Connected sock=10 [15:26:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 2E 42 08 01 C0 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 DC 00 00 00 F4 03 04 00 09 32 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 91 45 02 00 35 04 06 00 A7 6C 81 A9 60 BD 05 B8 FD 05 BB 75 CC 3A [15:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 43 F3 47 00 94 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 38 37 35 30 35 37 10 04 04 00 91 45 02 00 F4 03 04 00 2C D9 5E 66 B6 04 01 00 00 8A AB 37 98 F1 E4 A1 4B [15:26:02]CommunicateWithHost err = 0 [15:26:02]CheckOFDResponse [15:26:02]1017 (14) - 77093643461234 [15:26:02]1041 (16) - 0000000000875057 [15:26:02]1040 (4) - 148881 [15:26:02]1012 (4) - 04.06.2024 09:06 [15:26:02]1206 (1) - 0 [15:26:02]OFD Sender: Remove packet 148881 [15:26:02]ProducePacketName [15:26:02]name=ofd_packets/00148881 [15:26:02]NVStorageDeleteData [15:26:02]Write to MH i2c: 01 00 00 86 15 9B [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: 01 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: 01 07 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: 01 07 00 86 15 00 00 00 00 00 77 0C 25 [15:26:02]RasterBufferAndPrint [15:26:02]line [15:26:02]line [15:26:02]line [15:26:02]line [15:26:02]line [15:26:02]written 0, free lines is 3193 [15:26:02]MH_Cut [15:26:02]Write to MH i2c: D1 01 00 8D 15 01 74 [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: D1 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: D1 01 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: D1 01 00 8D 15 00 73 [15:26:02]Write to MH i2c: 01 00 00 8E 15 A3 [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]OFD Sender: No OFD packet to send [15:26:03]*** Cut start [15:26:03]*** Partial cut [15:26:03]*** CUTSNS_PIN = 1 [15:26:03]*** CUTSNS_PIN = 0 [15:26:03]*** Brake cut motor [15:26:04]Read from MH i2c: 01 [15:26:04]MH_I2C_Read... [15:26:04]*** Stop cut motor [15:26:04]*** Cut end [15:26:04]Read from MH i2c: 01 07 00 [15:26:04]MH_I2C_Read... [15:26:04]Read from MH i2c: 01 07 00 8E 15 00 00 00 00 00 FF 0F B8 [15:26:04]process_action close_receipt done [15:26:04]requested_data is exist [15:26:04]produce_requested_data [15:26:04]requested_item fm.sn is exist - process it [15:26:04]wFMCommunicate request_size=4 [15:26:04]MH_SAM_APDU [15:26:04]CAPDU: 80 11 00 00 [15:26:04]Write to MH i2c: E2 08 00 8F 15 80 11 00 00 00 00 00 00 1E [15:26:04]Write i2c OK [15:26:04]MH_I2C_Read... [15:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:04]Read from MH i2c: E2 [15:26:04]MH_I2C_Read... [15:26:04]Read from MH i2c: E2 17 00 [15:26:04]MH_I2C_Read... [15:26:04]Read from MH i2c: E2 17 00 8F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 71 [15:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:26:04]wFMCommunicate OK [15:26:04]requested_item fd.num is exist - process it [15:26:04]SAM_PROTO_GetFieldsCounters [15:26:04]wFMCommunicate request_size=4 [15:26:04]MH_SAM_APDU [15:26:04]CAPDU: 80 13 00 00 [15:26:04]Write to MH i2c: E2 08 00 90 15 80 13 00 00 00 00 00 00 21 [15:26:04]Write i2c OK [15:26:04]MH_I2C_Read... [15:26:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:04]Read from MH i2c: E2 [15:26:04]MH_I2C_Read... [15:26:04]Read from MH i2c: E2 62 00 [15:26:04]MH_I2C_Read... [15:26:04]Read from MH i2c: E2 62 00 90 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 91 45 02 00 0E 04 04 00 70 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 1A [15:26:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 91 45 02 00 0E 04 04 00 70 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 [15:26:04]wFMCommunicate OK [15:26:04]SAM_PROTO_GetFieldsCounters done [15:26:04]requested_item shift.num is exist - process it [15:26:04]requested_item shift.opened is exist - process it [15:26:04]req_shift_opened [15:26:04]FM_GetShiftState [15:26:04]SAM_PROTO_GetShiftState [15:26:04]wFMCommunicate request_size=4 [15:26:04]MH_SAM_APDU [15:26:04]CAPDU: 80 13 01 00 [15:26:04]Write to MH i2c: E2 08 00 91 15 80 13 01 00 00 00 00 00 23 [15:26:04]Write i2c OK [15:26:04]MH_I2C_Read... [15:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:04]Read from MH i2c: E2 [15:26:04]MH_I2C_Read... [15:26:04]Read from MH i2c: E2 0E 00 [15:26:04]MH_I2C_Read... [15:26:04]Read from MH i2c: E2 0E 00 91 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E6 [15:26:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:26:04]wFMCommunicate OK [15:26:04]SAM_PROTO_GetShiftState done [15:26:04]FM_GetShiftState done [15:26:04]req_shift_opened done [15:26:04]requested_item shift.open_date is exist - process it [15:26:04]req_shift_open_date [15:26:04]req_shift_open_date done [15:26:04]produce_requested_data done [15:26:04]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148881,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:26:04]process_action_free close_receipt [15:26:04]json_value_free [15:26:04]json_value_free done [15:26:04]process_json_proto returns [15:26:04]Send response to host [15:26:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148881,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:26:04]free response buf [15:26:04]execute_script done [15:26:04]execute_script returns [15:26:04]free content buf [15:26:04]Sock 9.Close socket [15:26:04]Sock 9.Thread stoped [15:26:07]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:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:01]accept exits with 7 [15:32:01]New connection [15:32:01]New thread 3067264356 created [15:32:01]Thread 3067407716 joined [15:32:01]Waiting for new connection... [15:32:01] Sock 7.Parse request [15:32:01]Sock 7.Check first char [15:32:01]Sock 7.First char is OK [15:32:01]request: POST /json_proto HTTP/1.0 [15:32:01]Method: POST [15:32:01]URL: /json_proto [15:32:01]Method is POST - this is cgi request [15:32:01]url: /json_proto [15:32:01]query_string will be loaded in cgi processing [15:32:01]execute_cgi json_proto POST (null) [15:32:01]execute_cgi path=json_proto method=POST [15:32:01]POST find Content-Length [15:32:01]Host: 172.17.38.4:8080 [15:32:01]Content-Length: 800 [15:32:01]Content-Type: application/json [15:32:01] [15:32:01]POST finish read [15:32:01]Found Content-Length = 800 [15:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:01]execute_script... [15:32: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)979811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:01]POST & json_proto [15:32:01]process_json_proto [15:32:01]json parsed OK: [15:32:01]protocol is kg_v1.0 [15:32:01]action value=close_receipt [15:32:01]process_action close_receipt [15:32:01]cmd_close_receipt [15:32:01]MH_GetDate [15:32:01]Write to MH i2c: F0 00 00 92 15 96 [15:32:01]Write i2c OK [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: F0 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: F0 09 00 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: F0 09 00 92 15 00 72 33 5F 66 CC 51 87 64 11 [15:32:01]GetLastDocTimeStamp 1717514761 [15:32:01]current date 1717515122 [15:32:01]FM_GetShiftState [15:32:01]SAM_PROTO_GetShiftState [15:32:01]wFMCommunicate request_size=4 [15:32:01]MH_SAM_APDU [15:32:01]CAPDU: 80 13 01 00 [15:32:01]Write to MH i2c: E2 08 00 93 15 80 13 01 00 00 00 00 00 25 [15:32:01]Write i2c OK [15:32:01]MH_I2C_Read... [15:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:01]Read from MH i2c: E2 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: E2 0E 00 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: E2 0E 00 93 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E8 [15:32:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:32:01]wFMCommunicate OK [15:32:01]SAM_PROTO_GetShiftState done [15:32:01]FM_GetShiftState done [15:32:01]opened in 1717460629 [15:32:01]opened+sec_in_day 1717547029 [15:32:01]quantity*price = 60009 [15:32:01]sum+1 = 60010 [15:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 221 04.06.2024 15:32 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148882 ФПД: 198923031533896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T153202&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148882&fm=198923031533896&tin=02508201610067®Number=0000000000092720&sum=60009 [15:32:02]StoreToDocumentArchive [15:32:02]shift 368 fd 148882 [15:32:02]save to /storage/0368/doc_00148882 [15:32:02]save last doc name /storage/0368/doc_00148882 to /storage/kkm_last_doc_name [15:32:02]save OK [15:32:02]Clear old archive folders... [15:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:02]tlvbuf is 0047B4D0 [15:32:02]SAM_PROTO_ClearQueue [15:32:02]wFMCommunicate request_size=4 [15:32:02]MH_SAM_APDU [15:32:02]CAPDU: 80 09 00 00 [15:32:02]Write to MH i2c: E2 08 00 A0 15 80 09 00 00 00 00 00 00 27 [15:32:02]Write i2c OK [15:32:02]MH_I2C_Read... [15:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:02]Read from MH i2c: E2 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 03 00 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 03 00 A0 15 00 90 00 29 [15:32:02]RAPDU: 90 00 [15:32:02]wFMCommunicate OK [15:32:02]SAM_PROTO_ClearQueue done [15:32:02]KKMCreateOFDPacket [15:32:02]OFDProtocolAddRootSTLVToBuf [15:32:02]FM_MakeSignedData [15:32:02]FM_MakeSignedData [15:32:02]SAM_PROTO_SignData [15:32:02]wFMCommunicate request_size=4 [15:32:02]MH_SAM_APDU [15:32:02]CAPDU: 80 0D 01 02 [15:32:02]Write to MH i2c: E2 08 00 A1 15 80 0D 01 02 00 00 00 00 2F [15:32:02]Write i2c OK [15:32:02]MH_I2C_Read... [15:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:02]Read from MH i2c: E2 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 03 00 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 03 00 A1 15 00 90 00 2A [15:32:02]RAPDU: 90 00 [15:32:02]wFMCommunicate OK [15:32:02]wFMCommunicate request_size=255 [15:32:02]MH_SAM_APDU [15:32:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DD 00 00 00 F4 03 04 00 72 33 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 92 45 02 00 35 04 06 00 B4 [15:32:02]Write to MH i2c: E2 02 01 A2 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DD 00 00 00 F4 03 04 00 72 33 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 92 45 02 00 35 04 06 00 B4 00 00 ED [15:32:02]Write i2c OK [15:32:02]MH_I2C_Read... [15:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:02]Read from MH i2c: E2 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 03 00 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 03 00 A2 15 00 90 00 2B [15:32:02]RAPDU: 90 00 [15:32:02]wFMCommunicate OK [15:32:02]wFMCommunicate request_size=10 [15:32:02]MH_SAM_APDU [15:32:02]CAPDU: 80 0D 02 02 05 EB 60 A1 D9 48 [15:32:02]Write to MH i2c: E2 0D 00 A3 15 80 0D 02 02 05 00 EB 60 A1 D9 48 00 00 49 [15:32:02]Write i2c OK [15:32:02]MH_I2C_Read... [15:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:02]Read from MH i2c: E2 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 03 00 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 03 00 A3 15 00 90 00 2C [15:32:02]RAPDU: 90 00 [15:32:02]wFMCommunicate OK [15:32:02]wFMCommunicate request_size=4 [15:32:02]MH_SAM_APDU [15:32:02]CAPDU: 80 0D 03 02 [15:32:02]Write to MH i2c: E2 08 00 A4 15 80 0D 03 02 00 00 00 00 34 [15:32:02]Write i2c OK [15:32:02]MH_I2C_Read... [15:32:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:02]Read from MH i2c: E2 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 0B 00 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 0B 00 A4 15 00 28 AB D0 C3 85 80 90 85 90 00 B5 [15:32:02]RAPDU: 28 AB D0 C3 85 80 90 85 90 00 [15:32:02]wFMCommunicate OK [15:32:02]SAM_PROTO_SignData done [15:32:02]FM_MakeSignedData done [15:32:02]CreateOFDProtocolMessage [15:32:02]wFMCommunicate request_size=4 [15:32:02]MH_SAM_APDU [15:32:02]CAPDU: 80 11 00 00 [15:32:02]Write to MH i2c: E2 08 00 A5 15 80 11 00 00 00 00 00 00 34 [15:32:02]Write i2c OK [15:32:02]MH_I2C_Read... [15:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:02]Read from MH i2c: E2 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 17 00 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 17 00 A5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 87 [15:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:32:02]wFMCommunicate OK [15:32:02]CreateOFDProtocolMessage done [15:32:02]OFDSenderStorePacket 148882 [15:32:02]StoreOFDPacket docnum=148882 [15:32:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 56 85 07 01 7B 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DD 00 00 00 F4 03 04 00 72 33 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 92 45 02 00 35 04 06 00 B4 EB 60 A1 D9 48 28 AB D0 C3 85 80 90 85 [15:32:02]CheckFolder [15:32:02]dirname=/storage/ofd_packets [15:32:02]CheckFolder done [15:32:02]ProducePacketName [15:32:02]name=ofd_packets/00148882 [15:32:02]NVStorageSaveData ofd_packets/00148882 [15:32:02]File name is /storage/ofd_packets/00148882 [15:32:02]Write 301 bytes [15:32:02]NVStorageSaveData done [15:32:02]OFDSenderStorePacket done [15:32:02]KKMCreateOFDPacket done [15:32:02]NVStorageSaveData kkm_last_timestamp [15:32:02]File name is /storage/kkm_last_timestamp [15:32:02]Write 4 bytes [15:32:02]NVStorageSaveData done [15:32:03]ExternCall_PrintAddStr [15:32:03]wPrintStart [15:32:03]Write to MH i2c: 01 00 00 A6 15 BB [15:32:03]Write i2c OK [15:32:03]MH_I2C_Read... [15:32:03]Read from MH i2c: 01 [15:32:03]MH_I2C_Read... [15:32:03]Read from MH i2c: 01 07 00 [15:32:03]MH_I2C_Read... [15:32:03]Read from MH i2c: 01 07 00 A6 15 00 00 00 00 00 FF 0F D0 [15:32:03]RasterBufferAndPrint [15:32:03]line Счет N : (1)979811 [15:32:03]line ИНН: 02508201610067 [15:32:03]line Контрольно-Кассовый Чек [15:32:03]line ПРОДАЖА [15:32:03]line ТРК (МРК, ГНК) : 22 [15:32:03]line Товар: 2710124130 [15:32:03]line Аи-92-К-5 [15:32:03]line 8.970 * 66.90 [15:32:03]line = 600.09 [15:32:03]line НДС 12% НСП 1% [15:32:03]line > о реализуемом товаре [15:32:03]line ИТОГО: 600.09 [15:32:03]line НСП 1% : 5.31 [15:32:03]line НДС 12% : 63.73 [15:32:03]line Наличными: 0.00 [15:32:03]line Безнал.: 600.09 [15:32:03]line Место: АЗС № 68 "Партнер Нефть" [15:32:03]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:32:03]line СНО: Общий режим [15:32:03]line Чек 221 04.06.2024 15:32 [15:32:03]line Смена: 368 ФФД: 1.0 [15:32:03]line ЗНМ: 0300000035 [15:32:03]line РНМ: 0000000000092720 [15:32:03]line Версия ККМ: 001 [15:32:03]line Платежная система: O! деньги [15:32:03]line ФМ: 0000000000875057 [15:32:03]line ФД: 148882 [15:32:03]line ФПД: 198923031533896 [15:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T153202&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148882&fm=198923031533896&tin=02508201610067®Number=0000000000092720&sum=60009 [15:32:03]OFD Sender: Processing packet 148882 [packets to send 100, broken 99] [15:32:03]ProducePacketName [15:32:03]name=ofd_packets/00148882 [15:32:03]OFD Sender: To server: pG, [15:32:03]CommunicateWithHost lk.salyk.kg:30040 [15:32:03]ConnectInit lk.salyk.kg [15:32:03]written 0, free lines is 4095 [15:32:03]Connected sock=10 [15:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 56 85 07 01 7B 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DD 00 00 00 F4 03 04 00 72 33 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 92 45 02 00 35 04 06 00 B4 EB 60 A1 D9 48 28 AB D0 C3 85 80 90 85 [15:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 85 6F 47 00 9B 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 38 37 35 30 35 37 10 04 04 00 92 45 02 00 F4 03 04 00 96 DA 5E 66 B6 04 01 00 00 6C F7 7C 21 33 ED 65 7A [15:32:03]CommunicateWithHost err = 0 [15:32:03]CheckOFDResponse [15:32:03]1017 (14) - 77093643461234 [15:32:03]1041 (16) - 0000000000875057 [15:32:03]1040 (4) - 148882 [15:32:03]1012 (4) - 04.06.2024 09:12 [15:32:03]1206 (1) - 0 [15:32:03]OFD Sender: Remove packet 148882 [15:32:03]ProducePacketName [15:32:03]name=ofd_packets/00148882 [15:32:03]NVStorageDeleteData [15:32:03]Write to MH i2c: 01 00 00 D0 15 E5 [15:32:03]Write i2c OK [15:32:03]MH_I2C_Read... [15:32:03]Read from MH i2c: 01 [15:32:03]MH_I2C_Read... [15:32:03]Read from MH i2c: 01 07 00 [15:32:03]MH_I2C_Read... [15:32:03]Read from MH i2c: 01 07 00 D0 15 00 00 00 00 00 7F 0C 77 [15:32:03]RasterBufferAndPrint [15:32:03]line [15:32:03]line [15:32:03]line [15:32:03]line [15:32:03]line [15:32:03]written 0, free lines is 3203 [15:32:03]MH_Cut [15:32:03]Write to MH i2c: D1 01 00 D7 15 01 BE [15:32:03]Write i2c OK [15:32:03]MH_I2C_Read... [15:32:03]Read from MH i2c: D1 [15:32:03]MH_I2C_Read... [15:32:03]Read from MH i2c: D1 01 00 [15:32:03]MH_I2C_Read... [15:32:03]Read from MH i2c: D1 01 00 D7 15 00 BD [15:32:03]Write to MH i2c: 01 00 00 D8 15 ED [15:32:03]Write i2c OK [15:32:03]MH_I2C_Read... [15:32:04]OFD Sender: No OFD packet to send [15:32:05]*** Cut start [15:32:05]*** Partial cut [15:32:05]*** CUTSNS_PIN = 1 [15:32:05]*** CUTSNS_PIN = 0 [15:32:05]*** Brake cut motor [15:32:05]Read from MH i2c: 01 [15:32:05]MH_I2C_Read... [15:32:05]*** Stop cut motor [15:32:05]*** Cut end [15:32:05]Read from MH i2c: 01 07 00 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: 01 07 00 D8 15 00 00 00 00 00 FF 0F 02 [15:32:05]process_action close_receipt done [15:32:05]requested_data is exist [15:32:05]produce_requested_data [15:32:05]requested_item fm.sn is exist - process it [15:32:05]wFMCommunicate request_size=4 [15:32:05]MH_SAM_APDU [15:32:05]CAPDU: 80 11 00 00 [15:32:05]Write to MH i2c: E2 08 00 D9 15 80 11 00 00 00 00 00 00 68 [15:32:05]Write i2c OK [15:32:05]MH_I2C_Read... [15:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:05]Read from MH i2c: E2 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 17 00 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 17 00 D9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BB [15:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:32:05]wFMCommunicate OK [15:32:05]requested_item fd.num is exist - process it [15:32:05]SAM_PROTO_GetFieldsCounters [15:32:05]wFMCommunicate request_size=4 [15:32:05]MH_SAM_APDU [15:32:05]CAPDU: 80 13 00 00 [15:32:05]Write to MH i2c: E2 08 00 DA 15 80 13 00 00 00 00 00 00 6B [15:32:05]Write i2c OK [15:32:05]MH_I2C_Read... [15:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:05]Read from MH i2c: E2 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 62 00 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 62 00 DA 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 92 45 02 00 0E 04 04 00 70 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 68 [15:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 92 45 02 00 0E 04 04 00 70 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 [15:32:05]wFMCommunicate OK [15:32:05]SAM_PROTO_GetFieldsCounters done [15:32:05]requested_item shift.num is exist - process it [15:32:05]requested_item shift.opened is exist - process it [15:32:05]req_shift_opened [15:32:05]FM_GetShiftState [15:32:05]SAM_PROTO_GetShiftState [15:32:05]wFMCommunicate request_size=4 [15:32:05]MH_SAM_APDU [15:32:05]CAPDU: 80 13 01 00 [15:32:05]Write to MH i2c: E2 08 00 DB 15 80 13 01 00 00 00 00 00 6D [15:32:05]Write i2c OK [15:32:05]MH_I2C_Read... [15:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:05]Read from MH i2c: E2 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 0E 00 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 0E 00 DB 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 30 [15:32:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:32:05]wFMCommunicate OK [15:32:05]SAM_PROTO_GetShiftState done [15:32:05]FM_GetShiftState done [15:32:05]req_shift_opened done [15:32:05]requested_item shift.open_date is exist - process it [15:32:05]req_shift_open_date [15:32:05]req_shift_open_date done [15:32:05]produce_requested_data done [15:32:05]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148882,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:32:05]process_action_free close_receipt [15:32:05]json_value_free [15:32:05]json_value_free done [15:32:05]process_json_proto returns [15:32:05]Send response to host [15:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148882,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:32:05]free response buf [15:32:05]execute_script done [15:32:05]execute_script returns [15:32:05]free content buf [15:32:05]Sock 7.Close socket [15:32:05]Sock 7.Thread stoped [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:40]accept exits with 9 [15:38:40]New connection [15:38:40]New thread 3067407716 created [15:38:40]Thread 3067264356 joined [15:38:40]Waiting for new connection... [15:38:40] Sock 9.Parse request [15:38:40]Sock 9.Check first char [15:38:40]Sock 9.First char is OK [15:38:40]request: POST /json_proto HTTP/1.0 [15:38:40]Method: POST [15:38:40]URL: /json_proto [15:38:40]Method is POST - this is cgi request [15:38:40]url: /json_proto [15:38:40]query_string will be loaded in cgi processing [15:38:40]execute_cgi json_proto POST (null) [15:38:40]execute_cgi path=json_proto method=POST [15:38:40]POST find Content-Length [15:38:40]Host: 172.17.38.4:8080 [15:38:40]Content-Length: 790 [15:38:40]Content-Type: application/json [15:38:40] [15:38:40]POST finish read [15:38:40]Found Content-Length = 790 [15:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:40]execute_script... [15:38: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)979812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:40]POST & json_proto [15:38:40]process_json_proto [15:38:40]json parsed OK: [15:38:40]protocol is kg_v1.0 [15:38:40]action value=close_receipt [15:38:40]process_action close_receipt [15:38:40]cmd_close_receipt [15:38:40]MH_GetDate [15:38:40]Write to MH i2c: F0 00 00 DC 15 E0 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: F0 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: F0 09 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: F0 09 00 DC 15 00 02 35 5F 66 CC 51 87 64 ED [15:38:40]GetLastDocTimeStamp 1717515122 [15:38:40]current date 1717515522 [15:38:40]FM_GetShiftState [15:38:40]SAM_PROTO_GetShiftState [15:38:40]wFMCommunicate request_size=4 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 13 01 00 [15:38:40]Write to MH i2c: E2 08 00 DD 15 80 13 01 00 00 00 00 00 6F [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 0E 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 0E 00 DD 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 32 [15:38:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:38:40]wFMCommunicate OK [15:38:40]SAM_PROTO_GetShiftState done [15:38:40]FM_GetShiftState done [15:38:40]opened in 1717460629 [15:38:40]opened+sec_in_day 1717547029 [15:38:40]quantity*price = 40006 [15:38:40]sum+1 = 40007 [15:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 222 04.06.2024 15:38 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148883 ФПД: 98730139844588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T153842&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148883&fm=98730139844588&tin=02508201610067®Number=0000000000092720&sum=40006 [15:38:42]StoreToDocumentArchive [15:38:42]shift 368 fd 148883 [15:38:42]save to /storage/0368/doc_00148883 [15:38:42]save last doc name /storage/0368/doc_00148883 to /storage/kkm_last_doc_name [15:38:42]save OK [15:38:42]Clear old archive folders... [15:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:42]tlvbuf is 004768C0 [15:38:42]SAM_PROTO_ClearQueue [15:38:42]wFMCommunicate request_size=4 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 09 00 00 [15:38:42]Write to MH i2c: E2 08 00 EA 15 80 09 00 00 00 00 00 00 71 [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:42]Read from MH i2c: E2 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 03 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 03 00 EA 15 00 90 00 73 [15:38:42]RAPDU: 90 00 [15:38:42]wFMCommunicate OK [15:38:42]SAM_PROTO_ClearQueue done [15:38:42]KKMCreateOFDPacket [15:38:42]OFDProtocolAddRootSTLVToBuf [15:38:42]FM_MakeSignedData [15:38:42]FM_MakeSignedData [15:38:42]SAM_PROTO_SignData [15:38:42]wFMCommunicate request_size=4 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 0D 01 02 [15:38:42]Write to MH i2c: E2 08 00 EB 15 80 0D 01 02 00 00 00 00 79 [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:42]Read from MH i2c: E2 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 03 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 03 00 EB 15 00 90 00 74 [15:38:42]RAPDU: 90 00 [15:38:42]wFMCommunicate OK [15:38:42]wFMCommunicate request_size=255 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 02 35 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 93 45 02 00 35 04 06 00 59 [15:38:42]Write to MH i2c: E2 02 01 EC 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 02 35 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 93 45 02 00 35 04 06 00 59 00 00 5C [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:42]Read from MH i2c: E2 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 03 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 03 00 EC 15 00 90 00 75 [15:38:42]RAPDU: 90 00 [15:38:42]wFMCommunicate OK [15:38:42]wFMCommunicate request_size=10 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 0D 02 02 05 CB 66 E9 FF EC [15:38:42]Write to MH i2c: E2 0D 00 ED 15 80 0D 02 02 05 00 CB 66 E9 FF EC 00 00 8B [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:42]Read from MH i2c: E2 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 03 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 03 00 ED 15 00 90 00 76 [15:38:42]RAPDU: 90 00 [15:38:42]wFMCommunicate OK [15:38:42]wFMCommunicate request_size=4 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 0D 03 02 [15:38:42]Write to MH i2c: E2 08 00 EE 15 80 0D 03 02 00 00 00 00 7E [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:42]Read from MH i2c: E2 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 0B 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 0B 00 EE 15 00 B8 E3 24 C9 CF 80 34 A9 90 00 33 [15:38:42]RAPDU: B8 E3 24 C9 CF 80 34 A9 90 00 [15:38:42]wFMCommunicate OK [15:38:42]SAM_PROTO_SignData done [15:38:42]FM_MakeSignedData done [15:38:42]CreateOFDProtocolMessage [15:38:42]wFMCommunicate request_size=4 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 11 00 00 [15:38:42]Write to MH i2c: E2 08 00 EF 15 80 11 00 00 00 00 00 00 7E [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:42]Read from MH i2c: E2 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 17 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 17 00 EF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D1 [15:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:38:42]wFMCommunicate OK [15:38:42]CreateOFDProtocolMessage done [15:38:42]OFDSenderStorePacket 148883 [15:38:42]StoreOFDPacket docnum=148883 [15:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 92 07 01 D0 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 02 35 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 93 45 02 00 35 04 06 00 59 CB 66 E9 FF EC B8 E3 24 C9 CF 80 34 A9 [15:38:42]CheckFolder [15:38:42]dirname=/storage/ofd_packets [15:38:42]CheckFolder done [15:38:42]ProducePacketName [15:38:42]name=ofd_packets/00148883 [15:38:42]NVStorageSaveData ofd_packets/00148883 [15:38:42]File name is /storage/ofd_packets/00148883 [15:38:42]Write 301 bytes [15:38:42]NVStorageSaveData done [15:38:42]OFDSenderStorePacket done [15:38:42]KKMCreateOFDPacket done [15:38:42]NVStorageSaveData kkm_last_timestamp [15:38:42]File name is /storage/kkm_last_timestamp [15:38:42]Write 4 bytes [15:38:42]NVStorageSaveData done [15:38:42]ExternCall_PrintAddStr [15:38:42]wPrintStart [15:38:42]Write to MH i2c: 01 00 00 F0 15 05 [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: 01 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: 01 07 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: 01 07 00 F0 15 00 00 00 00 00 FF 0F 1A [15:38:42]RasterBufferAndPrint [15:38:42]line Счет N : (1)979812 [15:38:42]line ИНН: 02508201610067 [15:38:42]line Контрольно-Кассовый Чек [15:38:42]line ПРОДАЖА [15:38:42]line ТРК (МРК, ГНК) : 31 [15:38:42]line Товар: 2710124130 [15:38:42]line Аи-92-К-5 [15:38:42]line 5.980 * 66.90 [15:38:42]line = 400.06 [15:38:42]line НДС 12% НСП 1% [15:38:42]line > о реализуемом товаре [15:38:42]line ИТОГО: 400.06 [15:38:42]line НСП 1% : 3.54 [15:38:42]line НДС 12% : 42.48 [15:38:42]line Наличными: 0.00 [15:38:42]line Безнал.: 400.06 [15:38:42]line Место: АЗС № 68 "Партнер Нефть" [15:38:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:38:42]line СНО: Общий режим [15:38:42]line Чек 222 04.06.2024 15:38 [15:38:42]line Смена: 368 ФФД: 1.0 [15:38:42]line ЗНМ: 0300000035 [15:38:42]line РНМ: 0000000000092720 [15:38:42]line Версия ККМ: 001 [15:38:42]line Платежная система: KICB Банк [15:38:42]line ФМ: 0000000000875057 [15:38:42]line ФД: 148883 [15:38:42]line ФПД: 98730139844588 [15:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T153842&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148883&fm=98730139844588&tin=02508201610067®Number=0000000000092720&sum=40006 [15:38:42]written 0, free lines is 4095 [15:38:42]OFD Sender: Processing packet 148883 [packets to send 100, broken 99] [15:38:42]ProducePacketName [15:38:42]name=ofd_packets/00148883 [15:38:42]OFD Sender: To server: pG, [15:38:42]CommunicateWithHost lk.salyk.kg:30040 [15:38:42]ConnectInit lk.salyk.kg [15:38:43]Connected sock=10 [15:38:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 92 07 01 D0 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 02 35 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 93 45 02 00 35 04 06 00 59 CB 66 E9 FF EC B8 E3 24 C9 CF 80 34 A9 [15:38:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8D 29 47 00 FD B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 93 45 02 00 F4 03 04 00 25 DC 5E 66 B6 04 01 00 00 45 D3 A6 5E F0 93 15 09 [15:38:43]CommunicateWithHost err = 0 [15:38:43]CheckOFDResponse [15:38:43]1017 (14) - 77093643461234 [15:38:43]1041 (16) - 0000000000875057 [15:38:43]1040 (4) - 148883 [15:38:43]1012 (4) - 04.06.2024 09:19 [15:38:43]1206 (1) - 0 [15:38:43]OFD Sender: Remove packet 148883 [15:38:43]ProducePacketName [15:38:43]name=ofd_packets/00148883 [15:38:43]NVStorageDeleteData [15:38:43]Write to MH i2c: 01 00 00 1A 16 30 [15:38:43]Write i2c OK [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: 01 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: 01 07 00 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: 01 07 00 1A 16 00 00 00 00 00 77 0C BA [15:38:43]RasterBufferAndPrint [15:38:43]line [15:38:43]line [15:38:43]line [15:38:43]line [15:38:43]line [15:38:43]written 0, free lines is 3196 [15:38:43]MH_Cut [15:38:43]Write to MH i2c: D1 01 00 21 16 01 09 [15:38:43]Write i2c OK [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: D1 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: D1 01 00 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: D1 01 00 21 16 00 08 [15:38:43]Write to MH i2c: 01 00 00 22 16 38 [15:38:43]Write i2c OK [15:38:43]MH_I2C_Read... [15:38:43]OFD Sender: No OFD packet to send [15:38:44]*** Cut start [15:38:44]*** Partial cut [15:38:44]*** CUTSNS_PIN = 1 [15:38:44]*** CUTSNS_PIN = 0 [15:38:44]*** Brake cut motor [15:38:45]Read from MH i2c: 01 [15:38:45]MH_I2C_Read... [15:38:45]*** Stop cut motor [15:38:45]*** Cut end [15:38:45]Read from MH i2c: 01 07 00 [15:38:45]MH_I2C_Read... [15:38:45]Read from MH i2c: 01 07 00 22 16 00 00 00 00 00 FF 0F 4D [15:38:45]process_action close_receipt done [15:38:45]requested_data is exist [15:38:45]produce_requested_data [15:38:45]requested_item fm.sn is exist - process it [15:38:45]wFMCommunicate request_size=4 [15:38:45]MH_SAM_APDU [15:38:45]CAPDU: 80 11 00 00 [15:38:45]Write to MH i2c: E2 08 00 23 16 80 11 00 00 00 00 00 00 B3 [15:38:45]Write i2c OK [15:38:45]MH_I2C_Read... [15:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:45]Read from MH i2c: E2 [15:38:45]MH_I2C_Read... [15:38:45]Read from MH i2c: E2 17 00 [15:38:45]MH_I2C_Read... [15:38:45]Read from MH i2c: E2 17 00 23 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 06 [15:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:38:45]wFMCommunicate OK [15:38:45]requested_item fd.num is exist - process it [15:38:45]SAM_PROTO_GetFieldsCounters [15:38:45]wFMCommunicate request_size=4 [15:38:45]MH_SAM_APDU [15:38:45]CAPDU: 80 13 00 00 [15:38:45]Write to MH i2c: E2 08 00 24 16 80 13 00 00 00 00 00 00 B6 [15:38:45]Write i2c OK [15:38:45]MH_I2C_Read... [15:38:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:45]Read from MH i2c: E2 [15:38:45]MH_I2C_Read... [15:38:45]Read from MH i2c: E2 62 00 [15:38:45]MH_I2C_Read... [15:38:45]Read from MH i2c: E2 62 00 24 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 93 45 02 00 0E 04 04 00 70 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 B7 [15:38:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 93 45 02 00 0E 04 04 00 70 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 [15:38:45]wFMCommunicate OK [15:38:45]SAM_PROTO_GetFieldsCounters done [15:38:45]requested_item shift.num is exist - process it [15:38:45]requested_item shift.opened is exist - process it [15:38:45]req_shift_opened [15:38:45]FM_GetShiftState [15:38:45]SAM_PROTO_GetShiftState [15:38:45]wFMCommunicate request_size=4 [15:38:45]MH_SAM_APDU [15:38:45]CAPDU: 80 13 01 00 [15:38:45]Write to MH i2c: E2 08 00 25 16 80 13 01 00 00 00 00 00 B8 [15:38:45]Write i2c OK [15:38:45]MH_I2C_Read... [15:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:45]Read from MH i2c: E2 [15:38:45]MH_I2C_Read... [15:38:45]Read from MH i2c: E2 0E 00 [15:38:45]MH_I2C_Read... [15:38:45]Read from MH i2c: E2 0E 00 25 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7B [15:38:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:38:45]wFMCommunicate OK [15:38:45]SAM_PROTO_GetShiftState done [15:38:45]FM_GetShiftState done [15:38:45]req_shift_opened done [15:38:45]requested_item shift.open_date is exist - process it [15:38:45]req_shift_open_date [15:38:45]req_shift_open_date done [15:38:45]produce_requested_data done [15:38:45]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148883,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:38:45]process_action_free close_receipt [15:38:45]json_value_free [15:38:45]json_value_free done [15:38:45]process_json_proto returns [15:38:45]Send response to host [15:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148883,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:38:45]free response buf [15:38:45]execute_script done [15:38:45]execute_script returns [15:38:45]free content buf [15:38:45]Sock 9.Close socket [15:38:45]Sock 9.Thread stoped [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:02]accept exits with 7 [15:40:02]New connection [15:40:02]New thread 3067264356 created [15:40:02]Thread 3067407716 joined [15:40:02]Waiting for new connection... [15:40:02] Sock 7.Parse request [15:40:02]Sock 7.Check first char [15:40:02]Sock 7.First char is OK [15:40:02]request: POST /json_proto HTTP/1.0 [15:40:02]Method: POST [15:40:02]URL: /json_proto [15:40:02]Method is POST - this is cgi request [15:40:02]url: /json_proto [15:40:02]query_string will be loaded in cgi processing [15:40:02]execute_cgi json_proto POST (null) [15:40:02]execute_cgi path=json_proto method=POST [15:40:02]POST find Content-Length [15:40:02]Host: 172.17.38.4:8080 [15:40:02]Content-Length: 670 [15:40:02]Content-Type: application/json [15:40:02] [15:40:02]POST finish read [15:40:02]Found Content-Length = 670 [15:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [15:40:02]execute_script... [15:40: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)979813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [15:40:02]POST & json_proto [15:40:02]process_json_proto [15:40:02]json parsed OK: [15:40:02]protocol is kg_v1.0 [15:40:02]action value=close_receipt [15:40:02]process_action close_receipt [15:40:02]cmd_close_receipt [15:40:02]MH_GetDate [15:40:02]Write to MH i2c: F0 00 00 26 16 2B [15:40:02]Write i2c OK [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: F0 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: F0 09 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: F0 09 00 26 16 00 53 35 5F 66 CC 51 87 64 89 [15:40:02]GetLastDocTimeStamp 1717515522 [15:40:02]current date 1717515603 [15:40:02]FM_GetShiftState [15:40:02]SAM_PROTO_GetShiftState [15:40:02]wFMCommunicate request_size=4 [15:40:02]MH_SAM_APDU [15:40:02]CAPDU: 80 13 01 00 [15:40:02]Write to MH i2c: E2 08 00 27 16 80 13 01 00 00 00 00 00 BA [15:40:02]Write i2c OK [15:40:02]MH_I2C_Read... [15:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:02]Read from MH i2c: E2 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 0E 00 [15:40:02]MH_I2C_Read... [15:40:02]Read from MH i2c: E2 0E 00 27 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7D [15:40:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:40:02]wFMCommunicate OK [15:40:02]SAM_PROTO_GetShiftState done [15:40:02]FM_GetShiftState done [15:40:02]opened in 1717460629 [15:40:02]opened+sec_in_day 1717547029 [15:40:02]quantity*price = 40061 [15:40:02]sum+1 = 40062 [15:40:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 223 04.06.2024 15:40 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148884 ФПД: 122765766900895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154003&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148884&fm=122765766900895&tin=02508201610067®Number=0000000000092720&sum=40000 [15:40:03]StoreToDocumentArchive [15:40:03]shift 368 fd 148884 [15:40:03]save to /storage/0368/doc_00148884 [15:40:03]save last doc name /storage/0368/doc_00148884 to /storage/kkm_last_doc_name [15:40:03]save OK [15:40:03]Clear old archive folders... [15:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:40:03]tlvbuf is 0049E0B0 [15:40:03]SAM_PROTO_ClearQueue [15:40:03]wFMCommunicate request_size=4 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 09 00 00 [15:40:03]Write to MH i2c: E2 08 00 34 16 80 09 00 00 00 00 00 00 BC [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 34 16 00 90 00 BE [15:40:03]RAPDU: 90 00 [15:40:03]wFMCommunicate OK [15:40:03]SAM_PROTO_ClearQueue done [15:40:03]KKMCreateOFDPacket [15:40:03]OFDProtocolAddRootSTLVToBuf [15:40:03]FM_MakeSignedData [15:40:03]FM_MakeSignedData [15:40:03]SAM_PROTO_SignData [15:40:03]wFMCommunicate request_size=4 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 0D 01 02 [15:40:03]Write to MH i2c: E2 08 00 35 16 80 0D 01 02 00 00 00 00 C4 [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 35 16 00 90 00 BF [15:40:03]RAPDU: 90 00 [15:40:03]wFMCommunicate OK [15:40:03]wFMCommunicate request_size=255 [15:40:03]MH_SAM_APDU [15:40: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 DF 00 00 00 F4 03 04 00 53 35 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 94 45 02 00 35 04 06 00 [15:40:03]Write to MH i2c: E2 02 01 36 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 DF 00 00 00 F4 03 04 00 53 35 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 94 45 02 00 35 04 06 00 00 00 83 [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:03]OFD Sender: No OFD packet to send [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [15:40:03]RAPDU: 90 00 [15:40:03]wFMCommunicate OK [15:40:03]wFMCommunicate request_size=11 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 0D 02 02 06 6F A7 A1 ED 3C 9F [15:40:03]Write to MH i2c: E2 0E 00 37 16 80 0D 02 02 06 00 6F A7 A1 ED 3C 9F 00 00 52 [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:03]Read from MH i2c: E2 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 [15:40:03]MH_I2C_Read... [15:40:03]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [15:40:03]RAPDU: 90 00 [15:40:03]wFMCommunicate OK [15:40:03]wFMCommunicate request_size=4 [15:40:03]MH_SAM_APDU [15:40:03]CAPDU: 80 0D 03 02 [15:40:03]Write to MH i2c: E2 08 00 38 16 80 0D 03 02 00 00 00 00 C9 [15:40:03]Write i2c OK [15:40:03]MH_I2C_Read... [15:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:04]Read from MH i2c: E2 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 0B 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 0B 00 38 16 00 D6 DA 72 84 DA 06 76 BA 90 00 80 [15:40:04]RAPDU: D6 DA 72 84 DA 06 76 BA 90 00 [15:40:04]wFMCommunicate OK [15:40:04]SAM_PROTO_SignData done [15:40:04]FM_MakeSignedData done [15:40:04]CreateOFDProtocolMessage [15:40:04]wFMCommunicate request_size=4 [15:40:04]MH_SAM_APDU [15:40:04]CAPDU: 80 11 00 00 [15:40:04]Write to MH i2c: E2 08 00 39 16 80 11 00 00 00 00 00 00 C9 [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:04]Read from MH i2c: E2 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 17 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 17 00 39 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1C [15:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:40:04]wFMCommunicate OK [15:40:04]CreateOFDProtocolMessage done [15:40:04]OFDSenderStorePacket 148884 [15:40:04]StoreOFDPacket docnum=148884 [15:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 C8 D0 08 01 B0 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 DF 00 00 00 F4 03 04 00 53 35 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 94 45 02 00 35 04 06 00 6F A7 A1 ED 3C 9F D6 DA 72 84 DA 06 76 BA [15:40:04]CheckFolder [15:40:04]dirname=/storage/ofd_packets [15:40:04]CheckFolder done [15:40:04]ProducePacketName [15:40:04]name=ofd_packets/00148884 [15:40:04]NVStorageSaveData ofd_packets/00148884 [15:40:04]File name is /storage/ofd_packets/00148884 [15:40:04]Write 302 bytes [15:40:04]NVStorageSaveData done [15:40:04]OFDSenderStorePacket done [15:40:04]KKMCreateOFDPacket done [15:40:04]NVStorageSaveData kkm_last_timestamp [15:40:04]File name is /storage/kkm_last_timestamp [15:40:04]Write 4 bytes [15:40:04]NVStorageSaveData done [15:40:04]ExternCall_PrintAddStr [15:40:04]wPrintStart [15:40:04]Write to MH i2c: 01 00 00 3A 16 50 [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: 01 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: 01 07 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: 01 07 00 3A 16 00 00 00 00 00 FF 0F 65 [15:40:04]RasterBufferAndPrint [15:40:04]line Счет N : (1)979813 [15:40:04]line ИНН: 02508201610067 [15:40:04]line Контрольно-Кассовый Чек [15:40:04]line ПРОДАЖА [15:40:04]line ТРК (МРК, ГНК) : 33 [15:40:04]line Товар: 2710124130 [15:40:04]line SUPER 92-К-5 [15:40:04]line 5.900 * 67.90 [15:40:04]line = 400.61 [15:40:04]line НДС 12% НСП 1% [15:40:04]line > о реализуемом товаре [15:40:04]line ОКРУГЛЕНИЕ: -0.61 [15:40:04]line ИТОГО: 400.00 [15:40:04]line Внесено: 400.00 [15:40:04]line СДАЧА: 0.00 [15:40:04]line НСП 1% : 3.54 [15:40:04]line НДС 12% : 42.54 [15:40:04]line Наличными: 400.00 [15:40:04]line Безнал.: 0.00 [15:40:04]line Место: АЗС № 68 "Партнер Нефть" [15:40:04]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:40:04]line СНО: Общий режим [15:40:04]line Чек 223 04.06.2024 15:40 [15:40:04]line Смена: 368 ФФД: 1.0 [15:40:04]line ЗНМ: 0300000035 [15:40:04]line РНМ: 0000000000092720 [15:40:04]line Версия ККМ: 001 [15:40:04]line ФМ: 0000000000875057 [15:40:04]line ФД: 148884 [15:40:04]line ФПД: 122765766900895 [15:40:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154003&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148884&fm=122765766900895&tin=02508201610067®Number=0000000000092720&sum=40000 [15:40:04]OFD Sender: Processing packet 148884 [packets to send 100, broken 99] [15:40:04]ProducePacketName [15:40:04]name=ofd_packets/00148884 [15:40:04]OFD Sender: To server: pG, [15:40:04]CommunicateWithHost lk.salyk.kg:30040 [15:40:04]ConnectInit lk.salyk.kg [15:40:04]written 0, free lines is 4095 [15:40:04]Connected sock=10 [15:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 C8 D0 08 01 B0 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 DF 00 00 00 F4 03 04 00 53 35 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 94 45 02 00 35 04 06 00 6F A7 A1 ED 3C 9F D6 DA 72 84 DA 06 76 BA [15:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 37 56 47 00 63 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 38 37 35 30 35 37 10 04 04 00 94 45 02 00 F4 03 04 00 77 DC 5E 66 B6 04 01 00 00 A1 30 0E E9 E3 8A CE F5 [15:40:04]CommunicateWithHost err = 0 [15:40:04]CheckOFDResponse [15:40:04]1017 (14) - 77093643461234 [15:40:04]1041 (16) - 0000000000875057 [15:40:04]1040 (4) - 148884 [15:40:04]1012 (4) - 04.06.2024 09:20 [15:40:04]1206 (1) - 0 [15:40:04]OFD Sender: Remove packet 148884 [15:40:04]ProducePacketName [15:40:04]name=ofd_packets/00148884 [15:40:04]NVStorageDeleteData [15:40:04]Write to MH i2c: 01 00 00 65 16 7B [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: 01 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: 01 07 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: 01 07 00 65 16 00 00 00 00 00 65 0C F3 [15:40:04]RasterBufferAndPrint [15:40:04]line [15:40:04]line [15:40:04]line [15:40:04]line [15:40:04]line [15:40:04]written 0, free lines is 3176 [15:40:04]MH_Cut [15:40:04]Write to MH i2c: D1 01 00 6C 16 01 54 [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: D1 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: D1 01 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: D1 01 00 6C 16 00 53 [15:40:04]Write to MH i2c: 01 00 00 6D 16 83 [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:05]OFD Sender: No OFD packet to send [15:40:06]*** Cut start [15:40:06]*** Partial cut [15:40:06]*** CUTSNS_PIN = 1 [15:40:06]*** CUTSNS_PIN = 0 [15:40:06]*** Brake cut motor [15:40:06]Read from MH i2c: 01 [15:40:06]MH_I2C_Read... [15:40:06]*** Stop cut motor [15:40:06]*** Cut end [15:40:06]Read from MH i2c: 01 07 00 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: 01 07 00 6D 16 00 00 00 00 00 FF 0F 98 [15:40:06]process_action close_receipt done [15:40:06]requested_data is exist [15:40:06]produce_requested_data [15:40:06]requested_item fm.sn is exist - process it [15:40:06]wFMCommunicate request_size=4 [15:40:06]MH_SAM_APDU [15:40:06]CAPDU: 80 11 00 00 [15:40:06]Write to MH i2c: E2 08 00 6E 16 80 11 00 00 00 00 00 00 FE [15:40:06]Write i2c OK [15:40:06]MH_I2C_Read... [15:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:06]Read from MH i2c: E2 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 17 00 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 17 00 6E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 51 [15:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:40:06]wFMCommunicate OK [15:40:06]requested_item fd.num is exist - process it [15:40:06]SAM_PROTO_GetFieldsCounters [15:40:06]wFMCommunicate request_size=4 [15:40:06]MH_SAM_APDU [15:40:06]CAPDU: 80 13 00 00 [15:40:06]Write to MH i2c: E2 08 00 6F 16 80 13 00 00 00 00 00 00 01 [15:40:06]Write i2c OK [15:40:06]MH_I2C_Read... [15:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:06]Read from MH i2c: E2 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 62 00 [15:40:06]MH_I2C_Read... [15:40:06]Read from MH i2c: E2 62 00 6F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 94 45 02 00 0E 04 04 00 70 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 06 [15:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 94 45 02 00 0E 04 04 00 70 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 [15:40:06]wFMCommunicate OK [15:40:06]SAM_PROTO_GetFieldsCounters done [15:40:06]requested_item shift.num is exist - process it [15:40:06]requested_item shift.opened is exist - process it [15:40:06]req_shift_opened [15:40:06]FM_GetShiftState [15:40:06]SAM_PROTO_GetShiftState [15:40:06]wFMCommunicate request_size=4 [15:40:06]MH_SAM_APDU [15:40:06]CAPDU: 80 13 01 00 [15:40:06]Write to MH i2c: E2 08 00 70 16 80 13 01 00 00 00 00 00 03 [15:40:06]Write i2c OK [15:40:06]MH_I2C_Read... [15:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:07]Read from MH i2c: E2 [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: E2 0E 00 [15:40:07]MH_I2C_Read... [15:40:07]Read from MH i2c: E2 0E 00 70 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C6 [15:40:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:40:07]wFMCommunicate OK [15:40:07]SAM_PROTO_GetShiftState done [15:40:07]FM_GetShiftState done [15:40:07]req_shift_opened done [15:40:07]requested_item shift.open_date is exist - process it [15:40:07]req_shift_open_date [15:40:07]req_shift_open_date done [15:40:07]produce_requested_data done [15:40:07]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148884,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:40:07]process_action_free close_receipt [15:40:07]json_value_free [15:40:07]json_value_free done [15:40:07]process_json_proto returns [15:40:07]Send response to host [15:40:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148884,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:40:07]free response buf [15:40:07]execute_script done [15:40:07]execute_script returns [15:40:07]free content buf [15:40:07]Sock 7.Close socket [15:40:07]Sock 7.Thread stoped [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:04]accept exits with 9 [15:44:04]New connection [15:44:04]New thread 3067407716 created [15:44:04]Thread 3067264356 joined [15:44:04]Waiting for new connection... [15:44:04] Sock 9.Parse request [15:44:04]Sock 9.Check first char [15:44:04]Sock 9.First char is OK [15:44:04]request: POST /json_proto HTTP/1.0 [15:44:04]Method: POST [15:44:04]URL: /json_proto [15:44:04]Method is POST - this is cgi request [15:44:04]url: /json_proto [15:44:04]query_string will be loaded in cgi processing [15:44:04]execute_cgi json_proto POST (null) [15:44:04]execute_cgi path=json_proto method=POST [15:44:04]POST find Content-Length [15:44:04]Host: 172.17.38.4:8080 [15:44:04]Content-Length: 674 [15:44:04]Content-Type: application/json [15:44:04] [15:44:04]POST finish read [15:44:04]Found Content-Length = 674 [15:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:44:04]execute_script... [15:44: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)979814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:44:04]POST & json_proto [15:44:04]process_json_proto [15:44:04]json parsed OK: [15:44:04]protocol is kg_v1.0 [15:44:04]action value=close_receipt [15:44:04]process_action close_receipt [15:44:04]cmd_close_receipt [15:44:04]MH_GetDate [15:44:04]Write to MH i2c: F0 00 00 71 16 76 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: F0 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: F0 09 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: F0 09 00 71 16 00 45 36 5F 66 CC 51 87 64 C7 [15:44:04]GetLastDocTimeStamp 1717515603 [15:44:04]current date 1717515845 [15:44:04]FM_GetShiftState [15:44:04]SAM_PROTO_GetShiftState [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 13 01 00 [15:44:04]Write to MH i2c: E2 08 00 72 16 80 13 01 00 00 00 00 00 05 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 0E 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 0E 00 72 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C8 [15:44:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:44:04]wFMCommunicate OK [15:44:04]SAM_PROTO_GetShiftState done [15:44:04]FM_GetShiftState done [15:44:04]opened in 1717460629 [15:44:04]opened+sec_in_day 1717547029 [15:44:04]quantity*price = 50009 [15:44:04]sum+1 = 50010 [15:44:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 224 04.06.2024 15:44 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148885 ФПД: 255947906641364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154405&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148885&fm=255947906641364&tin=02508201610067®Number=0000000000092720&sum=50000 [15:44:05]StoreToDocumentArchive [15:44:05]shift 368 fd 148885 [15:44:05]save to /storage/0368/doc_00148885 [15:44:05]save last doc name /storage/0368/doc_00148885 to /storage/kkm_last_doc_name [15:44:05]save OK [15:44:05]Clear old archive folders... [15:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:44:05]tlvbuf is 004B8090 [15:44:05]SAM_PROTO_ClearQueue [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 09 00 00 [15:44:05]Write to MH i2c: E2 08 00 7F 16 80 09 00 00 00 00 00 00 07 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 7F 16 00 90 00 09 [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]SAM_PROTO_ClearQueue done [15:44:05]KKMCreateOFDPacket [15:44:05]OFDProtocolAddRootSTLVToBuf [15:44:05]FM_MakeSignedData [15:44:05]FM_MakeSignedData [15:44:05]SAM_PROTO_SignData [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 01 02 [15:44:05]Write to MH i2c: E2 08 00 80 16 80 0D 01 02 00 00 00 00 0F [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 80 16 00 90 00 0A [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]wFMCommunicate request_size=255 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 00 00 00 F4 03 04 00 45 36 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 95 45 02 00 35 04 06 00 E8 C8 84 0E [15:44:05]Write to MH i2c: E2 02 01 81 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 00 00 00 F4 03 04 00 45 36 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 95 45 02 00 35 04 06 00 E8 C8 84 0E 00 00 63 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]OFD Sender: No OFD packet to send [15:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 81 16 00 90 00 0B [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]wFMCommunicate request_size=7 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 02 02 02 6D D4 [15:44:05]Write to MH i2c: E2 0A 00 82 16 80 0D 02 02 02 00 6D D4 00 00 57 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 03 00 82 16 00 90 00 0C [15:44:05]RAPDU: 90 00 [15:44:05]wFMCommunicate OK [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 0D 03 02 [15:44:05]Write to MH i2c: E2 08 00 83 16 80 0D 03 02 00 00 00 00 14 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 0B 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 0B 00 83 16 00 28 79 86 2E A7 7A 42 1C 90 00 E9 [15:44:05]RAPDU: 28 79 86 2E A7 7A 42 1C 90 00 [15:44:05]wFMCommunicate OK [15:44:05]SAM_PROTO_SignData done [15:44:05]FM_MakeSignedData done [15:44:05]CreateOFDProtocolMessage [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 11 00 00 [15:44:05]Write to MH i2c: E2 08 00 84 16 80 11 00 00 00 00 00 00 14 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 17 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 17 00 84 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 67 [15:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:44:05]wFMCommunicate OK [15:44:05]CreateOFDProtocolMessage done [15:44:05]OFDSenderStorePacket 148885 [15:44:05]StoreOFDPacket docnum=148885 [15:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 97 CF 04 01 97 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 E0 00 00 00 F4 03 04 00 45 36 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 95 45 02 00 35 04 06 00 E8 C8 84 0E 6D D4 28 79 86 2E A7 7A 42 1C [15:44:05]CheckFolder [15:44:05]dirname=/storage/ofd_packets [15:44:05]CheckFolder done [15:44:05]ProducePacketName [15:44:05]name=ofd_packets/00148885 [15:44:05]NVStorageSaveData ofd_packets/00148885 [15:44:05]File name is /storage/ofd_packets/00148885 [15:44:05]Write 298 bytes [15:44:05]NVStorageSaveData done [15:44:05]OFDSenderStorePacket done [15:44:05]KKMCreateOFDPacket done [15:44:05]NVStorageSaveData kkm_last_timestamp [15:44:05]File name is /storage/kkm_last_timestamp [15:44:05]Write 4 bytes [15:44:05]NVStorageSaveData done [15:44:05]ExternCall_PrintAddStr [15:44:05]wPrintStart [15:44:05]Write to MH i2c: 01 00 00 85 16 9B [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 85 16 00 00 00 00 00 FF 0F B0 [15:44:05]RasterBufferAndPrint [15:44:05]line Счет N : (1)979814 [15:44:05]line ИНН: 02508201610067 [15:44:05]line Контрольно-Кассовый Чек [15:44:05]line ПРОДАЖА [15:44:05]line ТРК (МРК, ГНК) : 51 [15:44:05]line Товар: 2710194210 [15:44:05]line ДТ-К-5 [15:44:05]line 6.860 * 72.90 [15:44:05]line = 500.09 [15:44:05]line НДС 12% НСП 1% [15:44:05]line > о реализуемом товаре [15:44:05]line ОКРУГЛЕНИЕ: -0.09 [15:44:05]line ИТОГО: 500.00 [15:44:05]line Внесено: 500.00 [15:44:05]line СДАЧА: 0.00 [15:44:05]line НСП 1% : 4.43 [15:44:05]line НДС 12% : 53.11 [15:44:05]line Наличными: 500.00 [15:44:05]line Безнал.: 0.00 [15:44:05]line Место: АЗС № 68 "Партнер Нефть" [15:44:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:44:05]line СНО: Общий режим [15:44:05]line Чек 224 04.06.2024 15:44 [15:44:05]line Смена: 368 ФФД: 1.0 [15:44:05]line ЗНМ: 0300000035 [15:44:05]line РНМ: 0000000000092720 [15:44:05]line Версия ККМ: 001 [15:44:05]line ФМ: 0000000000875057 [15:44:05]line ФД: 148885 [15:44:05]line ФПД: 255947906641364 [15:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154405&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148885&fm=255947906641364&tin=02508201610067®Number=0000000000092720&sum=50000 [15:44:06]OFD Sender: Processing packet 148885 [packets to send 100, broken 99] [15:44:06]ProducePacketName [15:44:06]name=ofd_packets/00148885 [15:44:06]OFD Sender: To server: pG, [15:44:06]CommunicateWithHost lk.salyk.kg:30040 [15:44:06]ConnectInit lk.salyk.kg [15:44:06]written 0, free lines is 4095 [15:44:06]Connected sock=10 [15:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 97 CF 04 01 97 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 E0 00 00 00 F4 03 04 00 45 36 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 95 45 02 00 35 04 06 00 E8 C8 84 0E 6D D4 28 79 86 2E A7 7A 42 1C [15:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 80 05 47 00 1A 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 95 45 02 00 F4 03 04 00 69 DD 5E 66 B6 04 01 00 00 17 F5 3C EE 2A 8D 34 1A [15:44:06]CommunicateWithHost err = 0 [15:44:06]CheckOFDResponse [15:44:06]1017 (14) - 77093643461234 [15:44:06]1041 (16) - 0000000000875057 [15:44:06]1040 (4) - 148885 [15:44:06]1012 (4) - 04.06.2024 09:24 [15:44:06]1206 (1) - 0 [15:44:06]OFD Sender: Remove packet 148885 [15:44:06]ProducePacketName [15:44:06]name=ofd_packets/00148885 [15:44:06]NVStorageDeleteData [15:44:06]Write to MH i2c: 01 00 00 B0 16 C6 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 07 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 07 00 B0 16 00 00 00 00 00 6A 0C 43 [15:44:06]RasterBufferAndPrint [15:44:06]line [15:44:06]line [15:44:06]line [15:44:06]line [15:44:06]line [15:44:06]written 0, free lines is 3180 [15:44:06]MH_Cut [15:44:06]Write to MH i2c: D1 01 00 B7 16 01 9F [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: D1 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: D1 01 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: D1 01 00 B7 16 00 9E [15:44:06]Write to MH i2c: 01 00 00 B8 16 CE [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]OFD Sender: No OFD packet to send [15:44:07]*** Cut start [15:44:07]*** Partial cut [15:44:07]*** CUTSNS_PIN = 1 [15:44:07]*** CUTSNS_PIN = 0 [15:44:08]*** Brake cut motor [15:44:08]Read from MH i2c: 01 [15:44:08]MH_I2C_Read... [15:44:08]*** Stop cut motor [15:44:08]*** Cut end [15:44:08]Read from MH i2c: 01 07 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: 01 07 00 B8 16 00 00 00 00 00 FF 0F E3 [15:44:08]process_action close_receipt done [15:44:08]requested_data is exist [15:44:08]produce_requested_data [15:44:08]requested_item fm.sn is exist - process it [15:44:08]wFMCommunicate request_size=4 [15:44:08]MH_SAM_APDU [15:44:08]CAPDU: 80 11 00 00 [15:44:08]Write to MH i2c: E2 08 00 B9 16 80 11 00 00 00 00 00 00 49 [15:44:08]Write i2c OK [15:44:08]MH_I2C_Read... [15:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:08]Read from MH i2c: E2 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 17 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 17 00 B9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9C [15:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:44:08]wFMCommunicate OK [15:44:08]requested_item fd.num is exist - process it [15:44:08]SAM_PROTO_GetFieldsCounters [15:44:08]wFMCommunicate request_size=4 [15:44:08]MH_SAM_APDU [15:44:08]CAPDU: 80 13 00 00 [15:44:08]Write to MH i2c: E2 08 00 BA 16 80 13 00 00 00 00 00 00 4C [15:44:08]Write i2c OK [15:44:08]MH_I2C_Read... [15:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:08]Read from MH i2c: E2 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 62 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 62 00 BA 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 95 45 02 00 0E 04 04 00 70 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 55 [15:44:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 95 45 02 00 0E 04 04 00 70 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 [15:44:08]wFMCommunicate OK [15:44:08]SAM_PROTO_GetFieldsCounters done [15:44:08]requested_item shift.num is exist - process it [15:44:08]requested_item shift.opened is exist - process it [15:44:08]req_shift_opened [15:44:08]FM_GetShiftState [15:44:08]SAM_PROTO_GetShiftState [15:44:08]wFMCommunicate request_size=4 [15:44:08]MH_SAM_APDU [15:44:08]CAPDU: 80 13 01 00 [15:44:08]Write to MH i2c: E2 08 00 BB 16 80 13 01 00 00 00 00 00 4E [15:44:08]Write i2c OK [15:44:08]MH_I2C_Read... [15:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:08]Read from MH i2c: E2 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 0E 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 0E 00 BB 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 11 [15:44:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:44:08]wFMCommunicate OK [15:44:08]SAM_PROTO_GetShiftState done [15:44:08]FM_GetShiftState done [15:44:08]req_shift_opened done [15:44:08]requested_item shift.open_date is exist - process it [15:44:08]req_shift_open_date [15:44:08]req_shift_open_date done [15:44:08]produce_requested_data done [15:44:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148885,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:44:08]process_action_free close_receipt [15:44:08]json_value_free [15:44:08]json_value_free done [15:44:08]process_json_proto returns [15:44:08]Send response to host [15:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148885,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:44:08]free response buf [15:44:08]execute_script done [15:44:08]execute_script returns [15:44:08]free content buf [15:44:08]Sock 9.Close socket [15:44:08]Sock 9.Thread stoped [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:03]accept exits with 7 [15:46:03]New connection [15:46:03]New thread 3067264356 created [15:46:03]Thread 3067407716 joined [15:46:03]Waiting for new connection... [15:46:03] Sock 7.Parse request [15:46:03]Sock 7.Check first char [15:46:03]Sock 7.First char is OK [15:46:03]request: POST /json_proto HTTP/1.0 [15:46:03]Method: POST [15:46:03]URL: /json_proto [15:46:03]Method is POST - this is cgi request [15:46:03]url: /json_proto [15:46:03]query_string will be loaded in cgi processing [15:46:03]execute_cgi json_proto POST (null) [15:46:03]execute_cgi path=json_proto method=POST [15:46:03]POST find Content-Length [15:46:03]Host: 172.17.38.4:8080 [15:46:03]Content-Length: 677 [15:46:03]Content-Type: application/json [15:46:03] [15:46:03]POST finish read [15:46:03]Found Content-Length = 677 [15:46:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:03]execute_script... [15:46:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:03]POST & json_proto [15:46:03]process_json_proto [15:46:03]json parsed OK: [15:46:03]protocol is kg_v1.0 [15:46:03]action value=close_receipt [15:46:03]process_action close_receipt [15:46:03]cmd_close_receipt [15:46:03]MH_GetDate [15:46:03]Write to MH i2c: F0 00 00 BC 16 C1 [15:46:03]Write i2c OK [15:46:03]MH_I2C_Read... [15:46:03]Read from MH i2c: F0 [15:46:03]MH_I2C_Read... [15:46:03]Read from MH i2c: F0 09 00 [15:46:03]MH_I2C_Read... [15:46:03]Read from MH i2c: F0 09 00 BC 16 00 BD 36 5F 66 CC 51 87 64 8A [15:46:03]GetLastDocTimeStamp 1717515845 [15:46:03]current date 1717515965 [15:46:03]FM_GetShiftState [15:46:03]SAM_PROTO_GetShiftState [15:46:03]wFMCommunicate request_size=4 [15:46:03]MH_SAM_APDU [15:46:03]CAPDU: 80 13 01 00 [15:46:03]Write to MH i2c: E2 08 00 BD 16 80 13 01 00 00 00 00 00 50 [15:46:03]Write i2c OK [15:46:03]MH_I2C_Read... [15:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:03]Read from MH i2c: E2 [15:46:03]MH_I2C_Read... [15:46:03]Read from MH i2c: E2 0E 00 [15:46:03]MH_I2C_Read... [15:46:03]Read from MH i2c: E2 0E 00 BD 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 13 [15:46:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:46:03]wFMCommunicate OK [15:46:03]SAM_PROTO_GetShiftState done [15:46:03]FM_GetShiftState done [15:46:03]opened in 1717460629 [15:46:03]opened+sec_in_day 1717547029 [15:46:03]quantity*price = 50041 [15:46:03]sum+1 = 50042 [15:46:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 225 04.06.2024 15:46 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148886 ФПД: 105061344244079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154605&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148886&fm=105061344244079&tin=02508201610067®Number=0000000000092720&sum=50000 [15:46:05]StoreToDocumentArchive [15:46:05]shift 368 fd 148886 [15:46:05]save to /storage/0368/doc_00148886 [15:46:05]save last doc name /storage/0368/doc_00148886 to /storage/kkm_last_doc_name [15:46:05]save OK [15:46:05]Clear old archive folders... [15:46:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:05]tlvbuf is B6F179D0 [15:46:05]SAM_PROTO_ClearQueue [15:46:05]wFMCommunicate request_size=4 [15:46:05]MH_SAM_APDU [15:46:05]CAPDU: 80 09 00 00 [15:46:05]Write to MH i2c: E2 08 00 CA 16 80 09 00 00 00 00 00 00 52 [15:46:05]Write i2c OK [15:46:05]MH_I2C_Read... [15:46:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:05]Read from MH i2c: E2 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 03 00 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 03 00 CA 16 00 90 00 54 [15:46:05]RAPDU: 90 00 [15:46:05]wFMCommunicate OK [15:46:05]SAM_PROTO_ClearQueue done [15:46:05]KKMCreateOFDPacket [15:46:05]OFDProtocolAddRootSTLVToBuf [15:46:05]FM_MakeSignedData [15:46:05]FM_MakeSignedData [15:46:05]SAM_PROTO_SignData [15:46:05]wFMCommunicate request_size=4 [15:46:05]MH_SAM_APDU [15:46:05]CAPDU: 80 0D 01 02 [15:46:05]Write to MH i2c: E2 08 00 CB 16 80 0D 01 02 00 00 00 00 5A [15:46:05]Write i2c OK [15:46:05]MH_I2C_Read... [15:46:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:05]Read from MH i2c: E2 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 03 00 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 03 00 CB 16 00 90 00 55 [15:46:05]RAPDU: 90 00 [15:46:05]wFMCommunicate OK [15:46:05]wFMCommunicate request_size=255 [15:46:05]MH_SAM_APDU [15:46:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD 36 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 96 45 02 00 35 04 06 00 5F [15:46:05]Write to MH i2c: E2 02 01 CC 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD 36 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 96 45 02 00 35 04 06 00 5F 00 00 2A [15:46:05]Write i2c OK [15:46:05]MH_I2C_Read... [15:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:05]Read from MH i2c: E2 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 03 00 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [15:46:05]RAPDU: 90 00 [15:46:05]wFMCommunicate OK [15:46:05]wFMCommunicate request_size=10 [15:46:05]MH_SAM_APDU [15:46:05]CAPDU: 80 0D 02 02 05 8D 80 1A 71 6F [15:46:05]Write to MH i2c: E2 0D 00 CD 16 80 0D 02 02 05 00 8D 80 1A 71 6F 00 00 6E [15:46:05]Write i2c OK [15:46:05]MH_I2C_Read... [15:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:05]Read from MH i2c: E2 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 03 00 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 03 00 CD 16 00 90 00 57 [15:46:05]RAPDU: 90 00 [15:46:05]wFMCommunicate OK [15:46:05]wFMCommunicate request_size=4 [15:46:05]MH_SAM_APDU [15:46:05]CAPDU: 80 0D 03 02 [15:46:05]Write to MH i2c: E2 08 00 CE 16 80 0D 03 02 00 00 00 00 5F [15:46:05]Write i2c OK [15:46:05]MH_I2C_Read... [15:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:05]Read from MH i2c: E2 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 0B 00 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 0B 00 CE 16 00 11 86 A6 73 1A 99 2E 38 90 00 29 [15:46:05]RAPDU: 11 86 A6 73 1A 99 2E 38 90 00 [15:46:05]wFMCommunicate OK [15:46:05]SAM_PROTO_SignData done [15:46:05]FM_MakeSignedData done [15:46:05]CreateOFDProtocolMessage [15:46:05]wFMCommunicate request_size=4 [15:46:05]MH_SAM_APDU [15:46:05]CAPDU: 80 11 00 00 [15:46:05]Write to MH i2c: E2 08 00 CF 16 80 11 00 00 00 00 00 00 5F [15:46:05]Write i2c OK [15:46:05]MH_I2C_Read... [15:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:05]Read from MH i2c: E2 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 17 00 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 17 00 CF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B2 [15:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:46:05]wFMCommunicate OK [15:46:05]CreateOFDProtocolMessage done [15:46:05]OFDSenderStorePacket 148886 [15:46:05]StoreOFDPacket docnum=148886 [15:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F5 A7 07 01 49 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD 36 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 96 45 02 00 35 04 06 00 5F 8D 80 1A 71 6F 11 86 A6 73 1A 99 2E 38 [15:46:05]CheckFolder [15:46:05]dirname=/storage/ofd_packets [15:46:05]CheckFolder done [15:46:05]ProducePacketName [15:46:05]name=ofd_packets/00148886 [15:46:05]NVStorageSaveData ofd_packets/00148886 [15:46:05]File name is /storage/ofd_packets/00148886 [15:46:05]Write 301 bytes [15:46:05]NVStorageSaveData done [15:46:05]OFDSenderStorePacket done [15:46:05]KKMCreateOFDPacket done [15:46:05]NVStorageSaveData kkm_last_timestamp [15:46:05]File name is /storage/kkm_last_timestamp [15:46:05]Write 4 bytes [15:46:05]NVStorageSaveData done [15:46:05]ExternCall_PrintAddStr [15:46:05]wPrintStart [15:46:05]Write to MH i2c: 01 00 00 D0 16 E6 [15:46:05]Write i2c OK [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: 01 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: 01 07 00 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: 01 07 00 D0 16 00 00 00 00 00 FF 0F FB [15:46:05]RasterBufferAndPrint [15:46:05]line Счет N : (1)979815 [15:46:05]line ИНН: 02508201610067 [15:46:05]line Контрольно-Кассовый Чек [15:46:05]line ПРОДАЖА [15:46:05]line ТРК (МРК, ГНК) : 22 [15:46:05]line Товар: 2710124130 [15:46:05]line Аи-92-К-5 [15:46:05]line 7.480 * 66.90 [15:46:05]line = 500.41 [15:46:05]line НДС 12% НСП 1% [15:46:05]line > о реализуемом товаре [15:46:05]line ОКРУГЛЕНИЕ: -0.41 [15:46:05]line ИТОГО: 500.00 [15:46:05]line Внесено: 500.00 [15:46:05]line СДАЧА: 0.00 [15:46:05]line НСП 1% : 4.43 [15:46:05]line НДС 12% : 53.14 [15:46:05]line Наличными: 500.00 [15:46:05]line Безнал.: 0.00 [15:46:05]line Место: АЗС № 68 "Партнер Нефть" [15:46:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:46:05]line СНО: Общий режим [15:46:05]line Чек 225 04.06.2024 15:46 [15:46:05]line Смена: 368 ФФД: 1.0 [15:46:05]line ЗНМ: 0300000035 [15:46:05]line РНМ: 0000000000092720 [15:46:05]line Версия ККМ: 001 [15:46:05]line ФМ: 0000000000875057 [15:46:05]line ФД: 148886 [15:46:05]line ФПД: 105061344244079 [15:46:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154605&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148886&fm=105061344244079&tin=02508201610067®Number=0000000000092720&sum=50000 [15:46:05]OFD Sender: Processing packet 148886 [packets to send 100, broken 99] [15:46:05]ProducePacketName [15:46:05]name=ofd_packets/00148886 [15:46:05]OFD Sender: To server: pG, [15:46:05]CommunicateWithHost lk.salyk.kg:30040 [15:46:05]ConnectInit lk.salyk.kg [15:46:05]written 0, free lines is 4095 [15:46:06]Connected sock=10 [15:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F5 A7 07 01 49 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 BD 36 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 96 45 02 00 35 04 06 00 5F 8D 80 1A 71 6F 11 86 A6 73 1A 99 2E 38 [15:46:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 82 73 47 00 8F 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 38 37 35 30 35 37 10 04 04 00 96 45 02 00 F4 03 04 00 E0 DD 5E 66 B6 04 01 00 00 01 68 D8 9C B5 85 D4 EF [15:46:06]CommunicateWithHost err = 0 [15:46:06]CheckOFDResponse [15:46:06]1017 (14) - 77093643461234 [15:46:06]1041 (16) - 0000000000875057 [15:46:06]1040 (4) - 148886 [15:46:06]1012 (4) - 04.06.2024 09:26 [15:46:06]1206 (1) - 0 [15:46:06]OFD Sender: Remove packet 148886 [15:46:06]ProducePacketName [15:46:06]name=ofd_packets/00148886 [15:46:06]NVStorageDeleteData [15:46:06]Write to MH i2c: 01 00 00 FB 16 11 [15:46:06]Write i2c OK [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: 01 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: 01 07 00 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: 01 07 00 FB 16 00 00 00 00 00 65 0C 89 [15:46:06]RasterBufferAndPrint [15:46:06]line [15:46:06]line [15:46:06]line [15:46:06]line [15:46:06]line [15:46:06]written 0, free lines is 3177 [15:46:06]MH_Cut [15:46:06]Write to MH i2c: D1 01 00 02 17 01 EB [15:46:06]Write i2c OK [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: D1 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: D1 01 00 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: D1 01 00 02 17 00 EA [15:46:06]Write to MH i2c: 01 00 00 03 17 1A [15:46:06]Write i2c OK [15:46:06]MH_I2C_Read... [15:46:06]OFD Sender: No OFD packet to send [15:46:07]*** Cut start [15:46:07]*** Partial cut [15:46:07]*** CUTSNS_PIN = 1 [15:46:07]*** CUTSNS_PIN = 0 [15:46:07]*** Brake cut motor [15:46:08]Read from MH i2c: 01 [15:46:08]MH_I2C_Read... [15:46:08]*** Stop cut motor [15:46:08]*** Cut end [15:46:08]Read from MH i2c: 01 07 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: 01 07 00 03 17 00 00 00 00 00 FF 0F 2F [15:46:08]process_action close_receipt done [15:46:08]requested_data is exist [15:46:08]produce_requested_data [15:46:08]requested_item fm.sn is exist - process it [15:46:08]wFMCommunicate request_size=4 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 11 00 00 [15:46:08]Write to MH i2c: E2 08 00 04 17 80 11 00 00 00 00 00 00 95 [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:08]Read from MH i2c: E2 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 17 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 17 00 04 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E8 [15:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:46:08]wFMCommunicate OK [15:46:08]requested_item fd.num is exist - process it [15:46:08]SAM_PROTO_GetFieldsCounters [15:46:08]wFMCommunicate request_size=4 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 13 00 00 [15:46:08]Write to MH i2c: E2 08 00 05 17 80 13 00 00 00 00 00 00 98 [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:08]Read from MH i2c: E2 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 62 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 62 00 05 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 96 45 02 00 0E 04 04 00 70 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 A5 [15:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 96 45 02 00 0E 04 04 00 70 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 [15:46:08]wFMCommunicate OK [15:46:08]SAM_PROTO_GetFieldsCounters done [15:46:08]requested_item shift.num is exist - process it [15:46:08]requested_item shift.opened is exist - process it [15:46:08]req_shift_opened [15:46:08]FM_GetShiftState [15:46:08]SAM_PROTO_GetShiftState [15:46:08]wFMCommunicate request_size=4 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 13 01 00 [15:46:08]Write to MH i2c: E2 08 00 06 17 80 13 01 00 00 00 00 00 9A [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:08]Read from MH i2c: E2 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 0E 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 0E 00 06 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5D [15:46:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:46:08]wFMCommunicate OK [15:46:08]SAM_PROTO_GetShiftState done [15:46:08]FM_GetShiftState done [15:46:08]req_shift_opened done [15:46:08]requested_item shift.open_date is exist - process it [15:46:08]req_shift_open_date [15:46:08]req_shift_open_date done [15:46:08]produce_requested_data done [15:46:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148886,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:46:08]process_action_free close_receipt [15:46:08]json_value_free [15:46:08]json_value_free done [15:46:08]process_json_proto returns [15:46:08]Send response to host [15:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148886,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:46:08]free response buf [15:46:08]execute_script done [15:46:08]execute_script returns [15:46:08]free content buf [15:46:08]Sock 7.Close socket [15:46:08]Sock 7.Thread stoped [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:32]accept exits with 9 [15:48:32]New connection [15:48:32]New thread 3067407716 created [15:48:32]Thread 3067264356 joined [15:48:32]Waiting for new connection... [15:48:32] Sock 9.Parse request [15:48:32]Sock 9.Check first char [15:48:32]Sock 9.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.38.4:8080 [15:48:32]Content-Length: 677 [15:48:32]Content-Type: application/json [15:48:32] [15:48:32]POST finish read [15:48:32]Found Content-Length = 677 [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)979816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [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)979816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [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 07 17 0D [15:48:32]Write i2c OK [15:48:32]MH_I2C_Read... [15:48:33]Read from MH i2c: F0 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: F0 09 00 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: F0 09 00 07 17 00 52 37 5F 66 CC 51 87 64 6C [15:48:33]GetLastDocTimeStamp 1717515965 [15:48:33]current date 1717516114 [15:48:33]FM_GetShiftState [15:48:33]SAM_PROTO_GetShiftState [15:48:33]wFMCommunicate request_size=4 [15:48:33]MH_SAM_APDU [15:48:33]CAPDU: 80 13 01 00 [15:48:33]Write to MH i2c: E2 08 00 08 17 80 13 01 00 00 00 00 00 9C [15:48:33]Write i2c OK [15:48:33]MH_I2C_Read... [15:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:33]Read from MH i2c: E2 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 0E 00 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 0E 00 08 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5F [15:48:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:48:33]wFMCommunicate OK [15:48:33]SAM_PROTO_GetShiftState done [15:48:33]FM_GetShiftState done [15:48:33]opened in 1717460629 [15:48:33]opened+sec_in_day 1717547029 [15:48:33]quantity*price = 34052 [15:48:33]sum+1 = 34053 [15:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 226 04.06.2024 15:48 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148887 ФПД: 25744951170563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154834&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148887&fm=25744951170563&tin=02508201610067®Number=0000000000092720&sum=34000 [15:48:34]StoreToDocumentArchive [15:48:34]shift 368 fd 148887 [15:48:34]save to /storage/0368/doc_00148887 [15:48:34]save last doc name /storage/0368/doc_00148887 to /storage/kkm_last_doc_name [15:48:34]save OK [15:48:34]Clear old archive folders... [15:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:34]tlvbuf is 0049DAC0 [15:48:34]SAM_PROTO_ClearQueue [15:48:34]wFMCommunicate request_size=4 [15:48:34]MH_SAM_APDU [15:48:34]CAPDU: 80 09 00 00 [15:48:34]Write to MH i2c: E2 08 00 15 17 80 09 00 00 00 00 00 00 9E [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]*** iso7816_exchange 80 09 00 00... 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 15 17 00 90 00 A0 [15:48:34]RAPDU: 90 00 [15:48:34]wFMCommunicate OK [15:48:34]SAM_PROTO_ClearQueue done [15:48:34]KKMCreateOFDPacket [15:48:34]OFDProtocolAddRootSTLVToBuf [15:48:34]FM_MakeSignedData [15:48:34]FM_MakeSignedData [15:48:34]SAM_PROTO_SignData [15:48:34]wFMCommunicate request_size=4 [15:48:34]MH_SAM_APDU [15:48:34]CAPDU: 80 0D 01 02 [15:48:34]Write to MH i2c: E2 08 00 16 17 80 0D 01 02 00 00 00 00 A6 [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]*** iso7816_exchange 80 0D 01 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 16 17 00 90 00 A1 [15:48:34]RAPDU: 90 00 [15:48:34]wFMCommunicate OK [15:48:34]wFMCommunicate request_size=255 [15:48:34]MH_SAM_APDU [15:48:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E2 00 00 00 F4 03 04 00 52 37 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 97 45 02 00 35 04 06 00 17 [15:48:34]Write to MH i2c: E2 02 01 17 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E2 00 00 00 F4 03 04 00 52 37 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 97 45 02 00 35 04 06 00 17 00 00 FF [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 17 17 00 90 00 A2 [15:48:34]RAPDU: 90 00 [15:48:34]wFMCommunicate OK [15:48:34]wFMCommunicate request_size=10 [15:48:34]MH_SAM_APDU [15:48:34]CAPDU: 80 0D 02 02 05 6A 36 AB 56 03 [15:48:34]Write to MH i2c: E2 0D 00 18 17 80 0D 02 02 05 00 6A 36 AB 56 03 00 00 57 [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 18 17 00 90 00 A3 [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 19 17 80 0D 03 02 00 00 00 00 AB [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 19 17 00 F6 01 18 60 76 43 03 A0 90 00 77 [15:48:34]RAPDU: F6 01 18 60 76 43 03 A0 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 1A 17 80 11 00 00 00 00 00 00 AB [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 1A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FE [15:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:48:34]wFMCommunicate OK [15:48:34]CreateOFDProtocolMessage done [15:48:34]OFDSenderStorePacket 148887 [15:48:34]StoreOFDPacket docnum=148887 [15:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7F 21 07 01 2D 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 E2 00 00 00 F4 03 04 00 52 37 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 97 45 02 00 35 04 06 00 17 6A 36 AB 56 03 F6 01 18 60 76 43 03 A0 [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/00148887 [15:48:34]NVStorageSaveData ofd_packets/00148887 [15:48:34]File name is /storage/ofd_packets/00148887 [15:48:34]Write 301 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 1B 17 32 [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 1B 17 00 00 00 00 00 FF 0F 47 [15:48:34]RasterBufferAndPrint [15:48:34]line Счет N : (1)979816 [15:48:34]line ИНН: 02508201610067 [15:48:34]line Контрольно-Кассовый Чек [15:48:34]line ПРОДАЖА [15:48:34]line ТРК (МРК, ГНК) : 31 [15:48:34]line Товар: 2710124130 [15:48:34]line Аи-92-К-5 [15:48:34]line 5.090 * 66.90 [15:48:34]line = 340.52 [15:48:34]line НДС 12% НСП 1% [15:48:34]line > о реализуемом товаре [15:48:34]line ОКРУГЛЕНИЕ: -0.52 [15:48:34]line ИТОГО: 340.00 [15:48:34]line Внесено: 340.00 [15:48:34]line СДАЧА: 0.00 [15:48:34]line НСП 1% : 3.01 [15:48:34]line НДС 12% : 36.16 [15:48:34]line Наличными: 340.00 [15:48:34]line Безнал.: 0.00 [15:48:34]line Место: АЗС № 68 "Партнер Нефть" [15:48:34]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:48:34]line СНО: Общий режим [15:48:34]line Чек 226 04.06.2024 15:48 [15:48:34]line Смена: 368 ФФД: 1.0 [15:48:34]line ЗНМ: 0300000035 [15:48:34]line РНМ: 0000000000092720 [15:48:34]line Версия ККМ: 001 [15:48:34]line ФМ: 0000000000875057 [15:48:34]line ФД: 148887 [15:48:34]line ФПД: 25744951170563 [15:48:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154834&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148887&fm=25744951170563&tin=02508201610067®Number=0000000000092720&sum=34000 [15:48:34]written 0, free lines is 4095 [15:48:34]OFD Sender: Processing packet 148887 [packets to send 100, broken 99] [15:48:34]ProducePacketName [15:48:34]name=ofd_packets/00148887 [15:48:34]OFD Sender: To server: pG, [15:48:34]CommunicateWithHost lk.salyk.kg:30040 [15:48:35]ConnectInit lk.salyk.kg [15:48:35]Connected sock=10 [15:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7F 21 07 01 2D 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 E2 00 00 00 F4 03 04 00 52 37 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 97 45 02 00 35 04 06 00 17 6A 36 AB 56 03 F6 01 18 60 76 43 03 A0 [15:48:35]Write to MH i2c: 01 00 00 46 17 5D [15:48:35]Write i2c OK [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: 01 [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: 01 07 00 [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: 01 07 00 46 17 00 00 00 00 00 71 0C E1 [15:48:35]RasterBufferAndPrint [15:48:35]line [15:48:35]line [15:48:35]line [15:48:35]line [15:48:35]line [15:48:35]written 0, free lines is 3187 [15:48:35]MH_Cut [15:48:35]Write to MH i2c: D1 01 00 4D 17 01 36 [15:48:35]Write i2c OK [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: D1 [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: D1 01 00 [15:48:35]MH_I2C_Read... [15:48:35]Read from MH i2c: D1 01 00 4D 17 00 35 [15:48:35]Write to MH i2c: 01 00 00 4E 17 65 [15:48:35]Write i2c OK [15:48:35]MH_I2C_Read... [15:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9A 2F 47 00 8F 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 38 37 35 30 35 37 10 04 04 00 97 45 02 00 F4 03 04 00 76 DE 5E 66 B6 04 01 00 00 A7 6A 48 08 52 84 B4 6F [15:48:35]CommunicateWithHost err = 0 [15:48:35]CheckOFDResponse [15:48:35]1017 (14) - 77093643461234 [15:48:35]1041 (16) - 0000000000875057 [15:48:35]1040 (4) - 148887 [15:48:35]1012 (4) - 04.06.2024 09:29 [15:48:35]1206 (1) - 0 [15:48:35]OFD Sender: Remove packet 148887 [15:48:35]ProducePacketName [15:48:35]name=ofd_packets/00148887 [15:48:35]NVStorageDeleteData [15:48:35]OFD Sender: No OFD packet to send [15:48:36]*** Cut start [15:48:36]*** Partial cut [15:48:36]*** CUTSNS_PIN = 1 [15:48:36]*** CUTSNS_PIN = 0 [15:48:36]*** Brake cut motor [15:48:37]Read from MH i2c: 01 [15:48:37]MH_I2C_Read... [15:48:37]*** Stop cut motor [15:48:37]*** Cut end [15:48:37]Read from MH i2c: 01 07 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: 01 07 00 4E 17 00 00 00 00 00 FF 0F 7A [15:48:37]process_action close_receipt done [15:48:37]requested_data is exist [15:48:37]produce_requested_data [15:48:37]requested_item fm.sn is exist - process it [15:48:37]wFMCommunicate request_size=4 [15:48:37]MH_SAM_APDU [15:48:37]CAPDU: 80 11 00 00 [15:48:37]Write to MH i2c: E2 08 00 4F 17 80 11 00 00 00 00 00 00 E0 [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:37]Read from MH i2c: E2 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 17 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 17 00 4F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 33 [15:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:48:37]wFMCommunicate OK [15:48:37]requested_item fd.num is exist - process it [15:48:37]SAM_PROTO_GetFieldsCounters [15:48:37]wFMCommunicate request_size=4 [15:48:37]MH_SAM_APDU [15:48:37]CAPDU: 80 13 00 00 [15:48:37]Write to MH i2c: E2 08 00 50 17 80 13 00 00 00 00 00 00 E3 [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:37]Read from MH i2c: E2 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 62 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 62 00 50 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 97 45 02 00 0E 04 04 00 70 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 F4 [15:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 97 45 02 00 0E 04 04 00 70 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 [15:48:37]wFMCommunicate OK [15:48:37]SAM_PROTO_GetFieldsCounters done [15:48:37]requested_item shift.num is exist - process it [15:48:37]requested_item shift.opened is exist - process it [15:48:37]req_shift_opened [15:48:37]FM_GetShiftState [15:48:37]SAM_PROTO_GetShiftState [15:48:37]wFMCommunicate request_size=4 [15:48:37]MH_SAM_APDU [15:48:37]CAPDU: 80 13 01 00 [15:48:37]Write to MH i2c: E2 08 00 51 17 80 13 01 00 00 00 00 00 E5 [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:37]Read from MH i2c: E2 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 0E 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: E2 0E 00 51 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A8 [15:48:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:48:37]wFMCommunicate OK [15:48:37]SAM_PROTO_GetShiftState done [15:48:37]FM_GetShiftState done [15:48:37]req_shift_opened done [15:48:37]requested_item shift.open_date is exist - process it [15:48:37]req_shift_open_date [15:48:37]req_shift_open_date done [15:48:37]produce_requested_data done [15:48:37]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148887,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:48:37]process_action_free close_receipt [15:48:37]json_value_free [15:48:37]json_value_free done [15:48:37]process_json_proto returns [15:48:37]Send response to host [15:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148887,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:48:37]free response buf [15:48:37]execute_script done [15:48:37]execute_script returns [15:48:37]free content buf [15:48:37]Sock 9.Close socket [15:48:37]Sock 9.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:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:53]accept exits with 7 [15:51:53]New connection [15:51:53]New thread 3067264356 created [15:51:53]Thread 3067407716 joined [15:51:53]Waiting for new connection... [15:51:53] Sock 7.Parse request [15:51:53]Sock 7.Check first char [15:51:53]Sock 7.First char is OK [15:51:53]request: POST /json_proto HTTP/1.0 [15:51:53]Method: POST [15:51:53]URL: /json_proto [15:51:53]Method is POST - this is cgi request [15:51:53]url: /json_proto [15:51:53]query_string will be loaded in cgi processing [15:51:53]execute_cgi json_proto POST (null) [15:51:53]execute_cgi path=json_proto method=POST [15:51:53]POST find Content-Length [15:51:53]Host: 172.17.38.4:8080 [15:51:53]Content-Length: 677 [15:51:53]Content-Type: application/json [15:51:53] [15:51:53]POST finish read [15:51:53]Found Content-Length = 677 [15:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:53]execute_script... [15:51:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:53]POST & json_proto [15:51:53]process_json_proto [15:51:53]json parsed OK: [15:51:53]protocol is kg_v1.0 [15:51:53]action value=close_receipt [15:51:53]process_action close_receipt [15:51:53]cmd_close_receipt [15:51:53]MH_GetDate [15:51:53]Write to MH i2c: F0 00 00 52 17 58 [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: F0 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: F0 09 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: F0 09 00 52 17 00 1A 38 5F 66 CC 51 87 64 80 [15:51:53]GetLastDocTimeStamp 1717516114 [15:51:53]current date 1717516314 [15:51:53]FM_GetShiftState [15:51:53]SAM_PROTO_GetShiftState [15:51:53]wFMCommunicate request_size=4 [15:51:53]MH_SAM_APDU [15:51:53]CAPDU: 80 13 01 00 [15:51:53]Write to MH i2c: E2 08 00 53 17 80 13 01 00 00 00 00 00 E7 [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:53]Read from MH i2c: E2 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 0E 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 0E 00 53 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AA [15:51:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:51:53]wFMCommunicate OK [15:51:53]SAM_PROTO_GetShiftState done [15:51:53]FM_GetShiftState done [15:51:53]opened in 1717460629 [15:51:53]opened+sec_in_day 1717547029 [15:51:53]quantity*price = 50041 [15:51:53]sum+1 = 50042 [15:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 227 04.06.2024 15:51 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148888 ФПД: 177922220100490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155154&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148888&fm=177922220100490&tin=02508201610067®Number=0000000000092720&sum=50000 [15:51:54]StoreToDocumentArchive [15:51:54]shift 368 fd 148888 [15:51:54]save to /storage/0368/doc_00148888 [15:51:54]save last doc name /storage/0368/doc_00148888 to /storage/kkm_last_doc_name [15:51:54]save OK [15:51:54]Clear old archive folders... [15:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:54]tlvbuf is 00500320 [15:51:54]SAM_PROTO_ClearQueue [15:51:54]wFMCommunicate request_size=4 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 09 00 00 [15:51:54]Write to MH i2c: E2 08 00 60 17 80 09 00 00 00 00 00 00 E9 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [15:51:54]RAPDU: 90 00 [15:51:54]wFMCommunicate OK [15:51:54]SAM_PROTO_ClearQueue done [15:51:54]KKMCreateOFDPacket [15:51:54]OFDProtocolAddRootSTLVToBuf [15:51:54]FM_MakeSignedData [15:51:54]FM_MakeSignedData [15:51:54]SAM_PROTO_SignData [15:51:54]wFMCommunicate request_size=4 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 0D 01 02 [15:51:54]Write to MH i2c: E2 08 00 61 17 80 0D 01 02 00 00 00 00 F1 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [15:51:54]RAPDU: 90 00 [15:51:54]wFMCommunicate OK [15:51:54]wFMCommunicate request_size=255 [15:51:54]MH_SAM_APDU [15: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 1A 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 98 45 02 00 35 04 06 00 A1 [15:51:54]Write to MH i2c: E2 02 01 62 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 1A 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 98 45 02 00 35 04 06 00 A1 00 00 66 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 62 17 00 90 00 ED [15:51:54]RAPDU: 90 00 [15:51:54]wFMCommunicate OK [15:51:54]wFMCommunicate request_size=10 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 0D 02 02 05 D1 BE BA 0B 8A [15:51:54]Write to MH i2c: E2 0D 00 63 17 80 0D 02 02 05 00 D1 BE BA 0B 8A 00 00 DC [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 63 17 00 90 00 EE [15:51:54]RAPDU: 90 00 [15:51:54]wFMCommunicate OK [15:51:54]wFMCommunicate request_size=4 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 0D 03 02 [15:51:54]Write to MH i2c: E2 08 00 64 17 80 0D 03 02 00 00 00 00 F6 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 0B 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 0B 00 64 17 00 CF D8 BE EB 26 A9 65 2E 90 00 A9 [15:51:54]RAPDU: CF D8 BE EB 26 A9 65 2E 90 00 [15:51:54]wFMCommunicate OK [15:51:54]SAM_PROTO_SignData done [15:51:54]FM_MakeSignedData done [15:51:54]CreateOFDProtocolMessage [15:51:54]wFMCommunicate request_size=4 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 11 00 00 [15:51:54]Write to MH i2c: E2 08 00 65 17 80 11 00 00 00 00 00 00 F6 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:55]Read from MH i2c: E2 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: E2 17 00 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: E2 17 00 65 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 49 [15:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:51:55]wFMCommunicate OK [15:51:55]CreateOFDProtocolMessage done [15:51:55]OFDSenderStorePacket 148888 [15:51:55]StoreOFDPacket docnum=148888 [15:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 0B 50 07 01 99 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 1A 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 98 45 02 00 35 04 06 00 A1 D1 BE BA 0B 8A CF D8 BE EB 26 A9 65 2E [15:51:55]CheckFolder [15:51:55]dirname=/storage/ofd_packets [15:51:55]CheckFolder done [15:51:55]ProducePacketName [15:51:55]name=ofd_packets/00148888 [15:51:55]NVStorageSaveData ofd_packets/00148888 [15:51:55]File name is /storage/ofd_packets/00148888 [15:51:55]Write 301 bytes [15:51:55]NVStorageSaveData done [15:51:55]OFDSenderStorePacket done [15:51:55]KKMCreateOFDPacket done [15:51:55]NVStorageSaveData kkm_last_timestamp [15:51:55]File name is /storage/kkm_last_timestamp [15:51:55]Write 4 bytes [15:51:55]NVStorageSaveData done [15:51:55]ExternCall_PrintAddStr [15:51:55]wPrintStart [15:51:55]Write to MH i2c: 01 00 00 66 17 7D [15:51:55]Write i2c OK [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: 01 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: 01 07 00 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: 01 07 00 66 17 00 00 00 00 00 FF 0F 92 [15:51:55]RasterBufferAndPrint [15:51:55]line Счет N : (1)979817 [15:51:55]line ИНН: 02508201610067 [15:51:55]line Контрольно-Кассовый Чек [15:51:55]line ПРОДАЖА [15:51:55]line ТРК (МРК, ГНК) : 12 [15:51:55]line Товар: 2710124130 [15:51:55]line Аи-92-К-5 [15:51:55]line 7.480 * 66.90 [15:51:55]line = 500.41 [15:51:55]line НДС 12% НСП 1% [15:51:55]line > о реализуемом товаре [15:51:55]line ОКРУГЛЕНИЕ: -0.41 [15:51:55]line ИТОГО: 500.00 [15:51:55]line Внесено: 500.00 [15:51:55]line СДАЧА: 0.00 [15:51:55]line НСП 1% : 4.43 [15:51:55]line НДС 12% : 53.14 [15:51:55]line Наличными: 500.00 [15:51:55]line Безнал.: 0.00 [15:51:55]line Место: АЗС № 68 "Партнер Нефть" [15:51:55]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:51:55]line СНО: Общий режим [15:51:55]line Чек 227 04.06.2024 15:51 [15:51:55]line Смена: 368 ФФД: 1.0 [15:51:55]line ЗНМ: 0300000035 [15:51:55]line РНМ: 0000000000092720 [15:51:55]line Версия ККМ: 001 [15:51:55]line ФМ: 0000000000875057 [15:51:55]line ФД: 148888 [15:51:55]line ФПД: 177922220100490 [15:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155154&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148888&fm=177922220100490&tin=02508201610067®Number=0000000000092720&sum=50000 [15:51:55]OFD Sender: Processing packet 148888 [packets to send 100, broken 99] [15:51:55]ProducePacketName [15:51:55]name=ofd_packets/00148888 [15:51:55]OFD Sender: To server: pG, [15:51:55]CommunicateWithHost lk.salyk.kg:30040 [15:51:55]ConnectInit lk.salyk.kg [15:51:55]written 0, free lines is 4095 [15:51:55]Connected sock=11 [15:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 0B 50 07 01 99 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 1A 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 98 45 02 00 35 04 06 00 A1 D1 BE BA 0B 8A CF D8 BE EB 26 A9 65 2E [15:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C6 FB 47 00 05 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 98 45 02 00 F4 03 04 00 3E DF 5E 66 B6 04 01 00 00 26 4E EB 38 FC 0E 5D 41 [15:51:55]CommunicateWithHost err = 0 [15:51:55]CheckOFDResponse [15:51:55]1017 (14) - 77093643461234 [15:51:55]1041 (16) - 0000000000875057 [15:51:55]1040 (4) - 148888 [15:51:55]1012 (4) - 04.06.2024 09:32 [15:51:55]1206 (1) - 0 [15:51:55]OFD Sender: Remove packet 148888 [15:51:55]ProducePacketName [15:51:55]name=ofd_packets/00148888 [15:51:55]NVStorageDeleteData [15:51:55]Write to MH i2c: 01 00 00 91 17 A8 [15:51:55]Write i2c OK [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: 01 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: 01 07 00 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: 01 07 00 91 17 00 00 00 00 00 64 0C 1F [15:51:55]RasterBufferAndPrint [15:51:55]line [15:51:55]line [15:51:55]line [15:51:55]line [15:51:55]line [15:51:55]written 0, free lines is 3176 [15:51:55]MH_Cut [15:51:55]Write to MH i2c: D1 01 00 98 17 01 81 [15:51:55]Write i2c OK [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: D1 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: D1 01 00 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: D1 01 00 98 17 00 80 [15:51:55]Write to MH i2c: 01 00 00 99 17 B0 [15:51:55]Write i2c OK [15:51:55]MH_I2C_Read... [15:51:56]OFD Sender: No OFD packet to send [15:51:57]*** Cut start [15:51:57]*** Partial cut [15:51:57]*** CUTSNS_PIN = 1 [15:51:57]*** CUTSNS_PIN = 0 [15:51:57]*** Brake cut motor [15:51:57]Read from MH i2c: 01 [15:51:57]MH_I2C_Read... [15:51:57]*** Stop cut motor [15:51:57]*** Cut end [15:51:57]Read from MH i2c: 01 07 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: 01 07 00 99 17 00 00 00 00 00 FF 0F C5 [15:51:57]process_action close_receipt done [15:51:57]requested_data is exist [15:51:57]produce_requested_data [15:51:57]requested_item fm.sn is exist - process it [15:51:57]wFMCommunicate request_size=4 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 11 00 00 [15:51:57]Write to MH i2c: E2 08 00 9A 17 80 11 00 00 00 00 00 00 2B [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 17 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 17 00 9A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7E [15:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:51:57]wFMCommunicate OK [15:51:57]requested_item fd.num is exist - process it [15:51:57]SAM_PROTO_GetFieldsCounters [15:51:57]wFMCommunicate request_size=4 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 13 00 00 [15:51:57]Write to MH i2c: E2 08 00 9B 17 80 13 00 00 00 00 00 00 2E [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 62 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 62 00 9B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 98 45 02 00 0E 04 04 00 70 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 43 [15:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 98 45 02 00 0E 04 04 00 70 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 [15:51:57]wFMCommunicate OK [15:51:57]SAM_PROTO_GetFieldsCounters done [15:51:57]requested_item shift.num is exist - process it [15:51:57]requested_item shift.opened is exist - process it [15:51:57]req_shift_opened [15:51:57]FM_GetShiftState [15:51:57]SAM_PROTO_GetShiftState [15:51:57]wFMCommunicate request_size=4 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 13 01 00 [15:51:57]Write to MH i2c: E2 08 00 9C 17 80 13 01 00 00 00 00 00 30 [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 0E 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 0E 00 9C 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F3 [15:51:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:51:57]wFMCommunicate OK [15:51:57]SAM_PROTO_GetShiftState done [15:51:57]FM_GetShiftState done [15:51:57]req_shift_opened done [15:51:57]requested_item shift.open_date is exist - process it [15:51:57]req_shift_open_date [15:51:57]req_shift_open_date done [15:51:57]produce_requested_data done [15:51:57]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148888,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:51:57]process_action_free close_receipt [15:51:57]json_value_free [15:51:57]json_value_free done [15:51:57]process_json_proto returns [15:51:57]Send response to host [15:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148888,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:51:57]free response buf [15:51:57]execute_script done [15:51:57]execute_script returns [15:51:57]free content buf [15:51:57]Sock 7.Close socket [15:51:57]Sock 7.Thread stoped [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:18]accept exits with 9 [15:52:18]New connection [15:52:18]New thread 3067407716 created [15:52:18]Thread 3067264356 joined [15:52:18]Waiting for new connection... [15:52:18] Sock 9.Parse request [15:52:18]Sock 9.Check first char [15:52:18]Sock 9.First char is OK [15:52:18]request: POST /json_proto HTTP/1.0 [15:52:18]Method: POST [15:52:18]URL: /json_proto [15:52:18]Method is POST - this is cgi request [15:52:18]url: /json_proto [15:52:18]query_string will be loaded in cgi processing [15:52:18]execute_cgi json_proto POST (null) [15:52:18]execute_cgi path=json_proto method=POST [15:52:18]POST find Content-Length [15:52:18]Host: 172.17.38.4:8080 [15:52:18]Content-Length: 674 [15:52:18]Content-Type: application/json [15:52:18] [15:52:18]POST finish read [15:52:18]Found Content-Length = 674 [15:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:52:18]execute_script... [15:52: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)979818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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:52:18]POST & json_proto [15:52:18]process_json_proto [15:52:18]json parsed OK: [15:52:18]protocol is kg_v1.0 [15:52:18]action value=close_receipt [15:52:18]process_action close_receipt [15:52:18]cmd_close_receipt [15:52:18]MH_GetDate [15:52:18]Write to MH i2c: F0 00 00 9D 17 A3 [15:52:18]Write i2c OK [15:52:18]MH_I2C_Read... [15:52:18]Read from MH i2c: F0 [15:52:18]MH_I2C_Read... [15:52:18]Read from MH i2c: F0 09 00 [15:52:18]MH_I2C_Read... [15:52:18]Read from MH i2c: F0 09 00 9D 17 00 33 38 5F 66 CC 51 87 64 E4 [15:52:18]GetLastDocTimeStamp 1717516314 [15:52:18]current date 1717516339 [15:52:18]FM_GetShiftState [15:52:18]SAM_PROTO_GetShiftState [15:52:18]wFMCommunicate request_size=4 [15:52:18]MH_SAM_APDU [15:52:18]CAPDU: 80 13 01 00 [15:52:18]Write to MH i2c: E2 08 00 9E 17 80 13 01 00 00 00 00 00 32 [15:52:18]Write i2c OK [15:52:18]MH_I2C_Read... [15:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:18]Read from MH i2c: E2 [15:52:18]MH_I2C_Read... [15:52:18]Read from MH i2c: E2 0E 00 [15:52:18]MH_I2C_Read... [15:52:18]Read from MH i2c: E2 0E 00 9E 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F5 [15:52:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:52:18]wFMCommunicate OK [15:52:18]SAM_PROTO_GetShiftState done [15:52:18]FM_GetShiftState done [15:52:18]opened in 1717460629 [15:52:18]opened+sec_in_day 1717547029 [15:52:18]quantity*price = 20047 [15:52:18]sum+1 = 20049 [15:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 228 04.06.2024 15:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148889 ФПД: 145821616566157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155219&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148889&fm=145821616566157&tin=02508201610067®Number=0000000000092720&sum=20000 [15:52:19]StoreToDocumentArchive [15:52:19]shift 368 fd 148889 [15:52:19]save to /storage/0368/doc_00148889 [15:52:19]save last doc name /storage/0368/doc_00148889 to /storage/kkm_last_doc_name [15:52:19]save OK [15:52:19]Clear old archive folders... [15:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:52:19]tlvbuf is 00486E20 [15:52:19]SAM_PROTO_ClearQueue [15:52:19]wFMCommunicate request_size=4 [15:52:19]MH_SAM_APDU [15:52:19]CAPDU: 80 09 00 00 [15:52:19]Write to MH i2c: E2 08 00 AB 17 80 09 00 00 00 00 00 00 34 [15:52:19]Write i2c OK [15:52:19]MH_I2C_Read... [15:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:19]Read from MH i2c: E2 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 03 00 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 03 00 AB 17 00 90 00 36 [15:52:19]RAPDU: 90 00 [15:52:19]wFMCommunicate OK [15:52:19]SAM_PROTO_ClearQueue done [15:52:19]KKMCreateOFDPacket [15:52:19]OFDProtocolAddRootSTLVToBuf [15:52:19]FM_MakeSignedData [15:52:19]FM_MakeSignedData [15:52:19]SAM_PROTO_SignData [15:52:19]wFMCommunicate request_size=4 [15:52:19]MH_SAM_APDU [15:52:19]CAPDU: 80 0D 01 02 [15:52:19]Write to MH i2c: E2 08 00 AC 17 80 0D 01 02 00 00 00 00 3C [15:52:19]Write i2c OK [15:52:19]MH_I2C_Read... [15:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:19]Read from MH i2c: E2 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 03 00 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 03 00 AC 17 00 90 00 37 [15:52:19]RAPDU: 90 00 [15:52:19]wFMCommunicate OK [15:52:19]wFMCommunicate request_size=255 [15:52:19]MH_SAM_APDU [15:52:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 33 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 99 45 02 00 35 04 06 00 84 9F BD A7 [15:52:19]Write to MH i2c: E2 02 01 AD 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 33 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 99 45 02 00 35 04 06 00 84 9F BD A7 00 00 62 [15:52:19]Write i2c OK [15:52:19]MH_I2C_Read... [15:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:19]Read from MH i2c: E2 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 03 00 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 03 00 AD 17 00 90 00 38 [15:52:19]RAPDU: 90 00 [15:52:19]wFMCommunicate OK [15:52:19]wFMCommunicate request_size=7 [15:52:19]MH_SAM_APDU [15:52:19]CAPDU: 80 0D 02 02 02 EF 8D [15:52:19]Write to MH i2c: E2 0A 00 AE 17 80 0D 02 02 02 00 EF 8D 00 00 BF [15:52:19]Write i2c OK [15:52:19]MH_I2C_Read... [15:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:19]Read from MH i2c: E2 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 03 00 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 03 00 AE 17 00 90 00 39 [15:52:19]RAPDU: 90 00 [15:52:19]wFMCommunicate OK [15:52:19]wFMCommunicate request_size=4 [15:52:19]MH_SAM_APDU [15:52:19]CAPDU: 80 0D 03 02 [15:52:19]Write to MH i2c: E2 08 00 AF 17 80 0D 03 02 00 00 00 00 41 [15:52:19]Write i2c OK [15:52:19]MH_I2C_Read... [15:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:19]Read from MH i2c: E2 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 0B 00 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 0B 00 AF 17 00 C8 5E 35 7F E5 56 F9 BF 90 00 0F [15:52:19]RAPDU: C8 5E 35 7F E5 56 F9 BF 90 00 [15:52:19]wFMCommunicate OK [15:52:19]SAM_PROTO_SignData done [15:52:19]FM_MakeSignedData done [15:52:19]CreateOFDProtocolMessage [15:52:19]wFMCommunicate request_size=4 [15:52:19]MH_SAM_APDU [15:52:19]CAPDU: 80 11 00 00 [15:52:19]Write to MH i2c: E2 08 00 B0 17 80 11 00 00 00 00 00 00 41 [15:52:19]Write i2c OK [15:52:19]MH_I2C_Read... [15:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:19]Read from MH i2c: E2 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 17 00 [15:52:19]MH_I2C_Read... [15:52:19]Read from MH i2c: E2 17 00 B0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 94 [15:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:52:19]wFMCommunicate OK [15:52:19]CreateOFDProtocolMessage done [15:52:19]OFDSenderStorePacket 148889 [15:52:19]StoreOFDPacket docnum=148889 [15:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 B1 13 04 01 90 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 33 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 99 45 02 00 35 04 06 00 84 9F BD A7 EF 8D C8 5E 35 7F E5 56 F9 BF [15:52:19]CheckFolder [15:52:19]dirname=/storage/ofd_packets [15:52:19]CheckFolder done [15:52:19]ProducePacketName [15:52:19]name=ofd_packets/00148889 [15:52:19]NVStorageSaveData ofd_packets/00148889 [15:52:19]File name is /storage/ofd_packets/00148889 [15:52:19]Write 298 bytes [15:52:19]NVStorageSaveData done [15:52:19]OFDSenderStorePacket done [15:52:19]KKMCreateOFDPacket done [15:52:19]NVStorageSaveData kkm_last_timestamp [15:52:19]File name is /storage/kkm_last_timestamp [15:52:19]Write 4 bytes [15:52:19]NVStorageSaveData done [15:52:19]ExternCall_PrintAddStr [15:52:19]wPrintStart [15:52:19]Write to MH i2c: 01 00 00 B1 17 C8 [15:52:20]Write i2c OK [15:52:20]MH_I2C_Read... [15:52:20]Read from MH i2c: 01 [15:52:20]MH_I2C_Read... [15:52:20]Read from MH i2c: 01 07 00 [15:52:20]MH_I2C_Read... [15:52:20]Read from MH i2c: 01 07 00 B1 17 00 00 00 00 00 FF 0F DD [15:52:20]RasterBufferAndPrint [15:52:20]line Счет N : (1)979818 [15:52:20]line ИНН: 02508201610067 [15:52:20]line Контрольно-Кассовый Чек [15:52:20]line ПРОДАЖА [15:52:20]line ТРК (МРК, ГНК) : 52 [15:52:20]line Товар: 2710194210 [15:52:20]line ДТ-К-5 [15:52:20]line 2.750 * 72.90 [15:52:20]line = 200.48 [15:52:20]line НДС 12% НСП 1% [15:52:20]line > о реализуемом товаре [15:52:20]line ОКРУГЛЕНИЕ: -0.48 [15:52:20]line ИТОГО: 200.00 [15:52:20]line Внесено: 200.00 [15:52:20]line СДАЧА: 0.00 [15:52:20]line НСП 1% : 1.77 [15:52:20]line НДС 12% : 21.29 [15:52:20]line Наличными: 200.00 [15:52:20]line Безнал.: 0.00 [15:52:20]line Место: АЗС № 68 "Партнер Нефть" [15:52:20]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:52:20]line СНО: Общий режим [15:52:20]line Чек 228 04.06.2024 15:52 [15:52:20]line Смена: 368 ФФД: 1.0 [15:52:20]line ЗНМ: 0300000035 [15:52:20]line РНМ: 0000000000092720 [15:52:20]line Версия ККМ: 001 [15:52:20]line ФМ: 0000000000875057 [15:52:20]line ФД: 148889 [15:52:20]line ФПД: 145821616566157 [15:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155219&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148889&fm=145821616566157&tin=02508201610067®Number=0000000000092720&sum=20000 [15:52:20]OFD Sender: Processing packet 148889 [packets to send 100, broken 99] [15:52:20]ProducePacketName [15:52:20]name=ofd_packets/00148889 [15:52:20]OFD Sender: To server: pG, [15:52:20]CommunicateWithHost lk.salyk.kg:30040 [15:52:20]ConnectInit lk.salyk.kg [15:52:20]written 0, free lines is 4095 [15:52:20]Connected sock=10 [15:52:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 B1 13 04 01 90 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 33 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 99 45 02 00 35 04 06 00 84 9F BD A7 EF 8D C8 5E 35 7F E5 56 F9 BF [15:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 39 6E 47 00 2E 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 99 45 02 00 F4 03 04 00 57 DF 5E 66 B6 04 01 00 00 91 56 07 9F 8B 46 13 CD [15:52:20]CommunicateWithHost err = 0 [15:52:20]CheckOFDResponse [15:52:20]1017 (14) - 77093643461234 [15:52:20]1041 (16) - 0000000000875057 [15:52:20]1040 (4) - 148889 [15:52:20]1012 (4) - 04.06.2024 09:33 [15:52:20]1206 (1) - 0 [15:52:20]OFD Sender: Remove packet 148889 [15:52:20]ProducePacketName [15:52:20]name=ofd_packets/00148889 [15:52:20]NVStorageDeleteData [15:52:20]Write to MH i2c: 01 00 00 DC 17 F3 [15:52:20]Write i2c OK [15:52:20]MH_I2C_Read... [15:52:20]Read from MH i2c: 01 [15:52:20]MH_I2C_Read... [15:52:20]Read from MH i2c: 01 07 00 [15:52:20]MH_I2C_Read... [15:52:20]Read from MH i2c: 01 07 00 DC 17 00 00 00 00 00 6A 0C 70 [15:52:20]RasterBufferAndPrint [15:52:20]line [15:52:20]line [15:52:20]line [15:52:20]line [15:52:20]line [15:52:20]written 0, free lines is 3181 [15:52:20]MH_Cut [15:52:20]Write to MH i2c: D1 01 00 E3 17 01 CC [15:52:20]Write i2c OK [15:52:20]MH_I2C_Read... [15:52:20]Read from MH i2c: D1 [15:52:20]MH_I2C_Read... [15:52:20]Read from MH i2c: D1 01 00 [15:52:20]MH_I2C_Read... [15:52:20]Read from MH i2c: D1 01 00 E3 17 00 CB [15:52:20]Write to MH i2c: 01 00 00 E4 17 FB [15:52:20]Write i2c OK [15:52:20]MH_I2C_Read... [15:52:21]OFD Sender: No OFD packet to send [15:52:22]*** Cut start [15:52:22]*** Partial cut [15:52:22]*** CUTSNS_PIN = 1 [15:52:22]*** CUTSNS_PIN = 0 [15:52:22]*** Brake cut motor [15:52:22]Read from MH i2c: 01 [15:52:22]MH_I2C_Read... [15:52:22]*** Stop cut motor [15:52:22]*** Cut end [15:52:22]Read from MH i2c: 01 07 00 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: 01 07 00 E4 17 00 00 00 00 00 FF 0F 10 [15:52:22]process_action close_receipt done [15:52:22]requested_data is exist [15:52:22]produce_requested_data [15:52:22]requested_item fm.sn is exist - process it [15:52:22]wFMCommunicate request_size=4 [15:52:22]MH_SAM_APDU [15:52:22]CAPDU: 80 11 00 00 [15:52:22]Write to MH i2c: E2 08 00 E5 17 80 11 00 00 00 00 00 00 76 [15:52:22]Write i2c OK [15:52:22]MH_I2C_Read... [15:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:22]Read from MH i2c: E2 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: E2 17 00 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: E2 17 00 E5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C9 [15:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:52:22]wFMCommunicate OK [15:52:22]requested_item fd.num is exist - process it [15:52:22]SAM_PROTO_GetFieldsCounters [15:52:22]wFMCommunicate request_size=4 [15:52:22]MH_SAM_APDU [15:52:22]CAPDU: 80 13 00 00 [15:52:22]Write to MH i2c: E2 08 00 E6 17 80 13 00 00 00 00 00 00 79 [15:52:22]Write i2c OK [15:52:22]MH_I2C_Read... [15:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:22]Read from MH i2c: E2 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: E2 62 00 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: E2 62 00 E6 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 99 45 02 00 0E 04 04 00 70 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 92 [15:52:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 99 45 02 00 0E 04 04 00 70 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 [15:52:22]wFMCommunicate OK [15:52:22]SAM_PROTO_GetFieldsCounters done [15:52:22]requested_item shift.num is exist - process it [15:52:22]requested_item shift.opened is exist - process it [15:52:22]req_shift_opened [15:52:22]FM_GetShiftState [15:52:22]SAM_PROTO_GetShiftState [15:52:22]wFMCommunicate request_size=4 [15:52:22]MH_SAM_APDU [15:52:22]CAPDU: 80 13 01 00 [15:52:22]Write to MH i2c: E2 08 00 E7 17 80 13 01 00 00 00 00 00 7B [15:52:22]Write i2c OK [15:52:22]MH_I2C_Read... [15:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:22]Read from MH i2c: E2 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: E2 0E 00 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: E2 0E 00 E7 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3E [15:52:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:52:22]wFMCommunicate OK [15:52:22]SAM_PROTO_GetShiftState done [15:52:22]FM_GetShiftState done [15:52:22]req_shift_opened done [15:52:22]requested_item shift.open_date is exist - process it [15:52:22]req_shift_open_date [15:52:22]req_shift_open_date done [15:52:22]produce_requested_data done [15:52:22]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148889,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:52:22]process_action_free close_receipt [15:52:22]json_value_free [15:52:22]json_value_free done [15:52:22]process_json_proto returns [15:52:22]Send response to host [15:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148889,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:52:22]free response buf [15:52:22]execute_script done [15:52:22]execute_script returns [15:52:22]free content buf [15:52:22]Sock 9.Close socket [15:52:22]Sock 9.Thread stoped [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:45]accept exits with 7 [15:53:45]New connection [15:53:45]New thread 3067264356 created [15:53:45]Thread 3067407716 joined [15:53:45]Waiting for new connection... [15:53:45] Sock 7.Parse request [15:53:45]Sock 7.Check first char [15:53:45]Sock 7.First char is OK [15:53:45]request: POST /json_proto HTTP/1.0 [15:53:45]Method: POST [15:53:45]URL: /json_proto [15:53:45]Method is POST - this is cgi request [15:53:45]url: /json_proto [15:53:45]query_string will be loaded in cgi processing [15:53:45]execute_cgi json_proto POST (null) [15:53:45]execute_cgi path=json_proto method=POST [15:53:45]POST find Content-Length [15:53:45]Host: 172.17.38.4:8080 [15:53:45]Content-Length: 677 [15:53:45]Content-Type: application/json [15:53:45] [15:53:45]POST finish read [15:53:45]Found Content-Length = 677 [15:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:45]execute_script... [15:53: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)979819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:45]POST & json_proto [15:53:45]process_json_proto [15:53:45]json parsed OK: [15:53:45]protocol is kg_v1.0 [15:53:45]action value=close_receipt [15:53:45]process_action close_receipt [15:53:45]cmd_close_receipt [15:53:45]MH_GetDate [15:53:45]Write to MH i2c: F0 00 00 E8 17 EE [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: F0 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: F0 09 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: F0 09 00 E8 17 00 8B 38 5F 66 CC 51 87 64 87 [15:53:45]GetLastDocTimeStamp 1717516339 [15:53:45]current date 1717516427 [15:53:45]FM_GetShiftState [15:53:45]SAM_PROTO_GetShiftState [15:53:45]wFMCommunicate request_size=4 [15:53:45]MH_SAM_APDU [15:53:45]CAPDU: 80 13 01 00 [15:53:45]Write to MH i2c: E2 08 00 E9 17 80 13 01 00 00 00 00 00 7D [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:45]Read from MH i2c: E2 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 0E 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 0E 00 E9 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 40 [15:53:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:53:45]wFMCommunicate OK [15:53:45]SAM_PROTO_GetShiftState done [15:53:45]FM_GetShiftState done [15:53:45]opened in 1717460629 [15:53:45]opened+sec_in_day 1717547029 [15:53:45]quantity*price = 20003 [15:53:45]sum+1 = 20004 [15:53:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 229 04.06.2024 15:53 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148890 ФПД: 204374885512072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155347&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148890&fm=204374885512072&tin=02508201610067®Number=0000000000092720&sum=20000 [15:53:46]StoreToDocumentArchive [15:53:46]shift 368 fd 148890 [15:53:46]save to /storage/0368/doc_00148890 [15:53:46]save last doc name /storage/0368/doc_00148890 to /storage/kkm_last_doc_name [15:53:46]save OK [15:53:46]Clear old archive folders... [15:53:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:46]tlvbuf is 0049DDF0 [15:53:46]SAM_PROTO_ClearQueue [15:53:46]wFMCommunicate request_size=4 [15:53:46]MH_SAM_APDU [15:53:46]CAPDU: 80 09 00 00 [15:53:46]Write to MH i2c: E2 08 00 F6 17 80 09 00 00 00 00 00 00 7F [15:53:46]Write i2c OK [15:53:46]MH_I2C_Read... [15:53:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:46]Read from MH i2c: E2 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: E2 03 00 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: E2 03 00 F6 17 00 90 00 81 [15:53:46]RAPDU: 90 00 [15:53:46]wFMCommunicate OK [15:53:46]SAM_PROTO_ClearQueue done [15:53:46]KKMCreateOFDPacket [15:53:46]OFDProtocolAddRootSTLVToBuf [15:53:46]FM_MakeSignedData [15:53:46]FM_MakeSignedData [15:53:46]SAM_PROTO_SignData [15:53:46]wFMCommunicate request_size=4 [15:53:46]MH_SAM_APDU [15:53:46]CAPDU: 80 0D 01 02 [15:53:46]Write to MH i2c: E2 08 00 F7 17 80 0D 01 02 00 00 00 00 87 [15:53:46]Write i2c OK [15:53:46]MH_I2C_Read... [15:53:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:46]Read from MH i2c: E2 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: E2 03 00 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: E2 03 00 F7 17 00 90 00 82 [15:53:46]RAPDU: 90 00 [15:53:46]wFMCommunicate OK [15:53:46]wFMCommunicate request_size=255 [15:53:46]MH_SAM_APDU [15:53:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E5 00 00 00 F4 03 04 00 8B 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9A 45 02 00 35 04 06 00 B9 [15:53:46]Write to MH i2c: E2 02 01 F8 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E5 00 00 00 F4 03 04 00 8B 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9A 45 02 00 35 04 06 00 B9 00 00 4B [15:53:46]Write i2c OK [15:53:46]MH_I2C_Read... [15:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:47]Read from MH i2c: E2 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 03 00 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 03 00 F8 17 00 90 00 83 [15:53:47]RAPDU: 90 00 [15:53:47]wFMCommunicate OK [15:53:47]wFMCommunicate request_size=10 [15:53:47]MH_SAM_APDU [15:53:47]CAPDU: 80 0D 02 02 05 E0 BC 73 B3 88 [15:53:47]Write to MH i2c: E2 0D 00 F9 17 80 0D 02 02 05 00 E0 BC 73 B3 88 00 00 DE [15:53:47]Write i2c OK [15:53:47]MH_I2C_Read... [15:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:47]Read from MH i2c: E2 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 03 00 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 03 00 F9 17 00 90 00 84 [15:53:47]RAPDU: 90 00 [15:53:47]wFMCommunicate OK [15:53:47]wFMCommunicate request_size=4 [15:53:47]MH_SAM_APDU [15:53:47]CAPDU: 80 0D 03 02 [15:53:47]Write to MH i2c: E2 08 00 FA 17 80 0D 03 02 00 00 00 00 8C [15:53:47]Write i2c OK [15:53:47]MH_I2C_Read... [15:53:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:47]Read from MH i2c: E2 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 0B 00 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 0B 00 FA 17 00 D8 92 25 DC E5 AE DC 72 90 00 D9 [15:53:47]RAPDU: D8 92 25 DC E5 AE DC 72 90 00 [15:53:47]wFMCommunicate OK [15:53:47]SAM_PROTO_SignData done [15:53:47]FM_MakeSignedData done [15:53:47]CreateOFDProtocolMessage [15:53:47]wFMCommunicate request_size=4 [15:53:47]MH_SAM_APDU [15:53:47]CAPDU: 80 11 00 00 [15:53:47]Write to MH i2c: E2 08 00 FB 17 80 11 00 00 00 00 00 00 8C [15:53:47]Write i2c OK [15:53:47]MH_I2C_Read... [15:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:47]Read from MH i2c: E2 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 17 00 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 17 00 FB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DF [15:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:53:47]wFMCommunicate OK [15:53:47]CreateOFDProtocolMessage done [15:53:47]OFDSenderStorePacket 148890 [15:53:47]StoreOFDPacket docnum=148890 [15:53:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 16 8B 07 01 6C 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 8B 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9A 45 02 00 35 04 06 00 B9 E0 BC 73 B3 88 D8 92 25 DC E5 AE DC 72 [15:53:47]CheckFolder [15:53:47]dirname=/storage/ofd_packets [15:53:47]CheckFolder done [15:53:47]ProducePacketName [15:53:47]name=ofd_packets/00148890 [15:53:47]NVStorageSaveData ofd_packets/00148890 [15:53:47]File name is /storage/ofd_packets/00148890 [15:53:47]Write 301 bytes [15:53:47]NVStorageSaveData done [15:53:47]OFDSenderStorePacket done [15:53:47]KKMCreateOFDPacket done [15:53:47]NVStorageSaveData kkm_last_timestamp [15:53:47]File name is /storage/kkm_last_timestamp [15:53:47]Write 4 bytes [15:53:47]NVStorageSaveData done [15:53:47]ExternCall_PrintAddStr [15:53:47]wPrintStart [15:53:47]Write to MH i2c: 01 00 00 FC 17 13 [15:53:47]Write i2c OK [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: 01 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: 01 07 00 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: 01 07 00 FC 17 00 00 00 00 00 FF 0F 28 [15:53:47]RasterBufferAndPrint [15:53:47]line Счет N : (1)979819 [15:53:47]line ИНН: 02508201610067 [15:53:47]line Контрольно-Кассовый Чек [15:53:47]line ПРОДАЖА [15:53:47]line ТРК (МРК, ГНК) : 22 [15:53:47]line Товар: 2710124130 [15:53:47]line Аи-92-К-5 [15:53:47]line 2.990 * 66.90 [15:53:47]line = 200.03 [15:53:47]line НДС 12% НСП 1% [15:53:47]line > о реализуемом товаре [15:53:47]line ОКРУГЛЕНИЕ: -0.03 [15:53:47]line ИТОГО: 200.00 [15:53:47]line Внесено: 200.00 [15:53:47]line СДАЧА: 0.00 [15:53:47]line НСП 1% : 1.77 [15:53:47]line НДС 12% : 21.24 [15:53:47]line Наличными: 200.00 [15:53:47]line Безнал.: 0.00 [15:53:47]line Место: АЗС № 68 "Партнер Нефть" [15:53:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:53:47]line СНО: Общий режим [15:53:47]line Чек 229 04.06.2024 15:53 [15:53:47]line Смена: 368 ФФД: 1.0 [15:53:47]line ЗНМ: 0300000035 [15:53:47]line РНМ: 0000000000092720 [15:53:47]line Версия ККМ: 001 [15:53:47]line ФМ: 0000000000875057 [15:53:47]line ФД: 148890 [15:53:47]line ФПД: 204374885512072 [15:53:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155347&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148890&fm=204374885512072&tin=02508201610067®Number=0000000000092720&sum=20000 [15:53:47]OFD Sender: Processing packet 148890 [packets to send 100, broken 99] [15:53:47]ProducePacketName [15:53:47]name=ofd_packets/00148890 [15:53:47]OFD Sender: To server: pG, [15:53:47]CommunicateWithHost lk.salyk.kg:30040 [15:53:47]ConnectInit lk.salyk.kg [15:53:47]written 0, free lines is 4095 [15:53:47]Connected sock=9 [15:53:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 16 8B 07 01 6C 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 8B 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9A 45 02 00 35 04 06 00 B9 E0 BC 73 B3 88 D8 92 25 DC E5 AE DC 72 [15:53:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 38 B1 47 00 15 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 38 37 35 30 35 37 10 04 04 00 9A 45 02 00 F4 03 04 00 AE DF 5E 66 B6 04 01 00 00 72 38 9E 67 3D 1B B1 B8 [15:53:47]CommunicateWithHost err = 0 [15:53:47]CheckOFDResponse [15:53:47]1017 (14) - 77093643461234 [15:53:47]1041 (16) - 0000000000875057 [15:53:47]1040 (4) - 148890 [15:53:47]1012 (4) - 04.06.2024 09:34 [15:53:47]1206 (1) - 0 [15:53:47]OFD Sender: Remove packet 148890 [15:53:47]ProducePacketName [15:53:47]name=ofd_packets/00148890 [15:53:47]NVStorageDeleteData [15:53:48]Write to MH i2c: 01 00 00 27 18 3F [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 27 18 00 00 00 00 00 68 0C BA [15:53:48]RasterBufferAndPrint [15:53:48]line [15:53:48]line [15:53:48]line [15:53:48]line [15:53:48]line [15:53:48]written 0, free lines is 3179 [15:53:48]MH_Cut [15:53:48]Write to MH i2c: D1 01 00 2E 18 01 18 [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: D1 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: D1 01 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: D1 01 00 2E 18 00 17 [15:53:48]Write to MH i2c: 01 00 00 2F 18 47 [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]OFD Sender: No OFD packet to send [15:53:49]*** Cut start [15:53:49]*** Partial cut [15:53:49]*** CUTSNS_PIN = 1 [15:53:49]*** CUTSNS_PIN = 0 [15:53:49]*** Brake cut motor [15:53:50]Read from MH i2c: 01 [15:53:50]MH_I2C_Read... [15:53:50]*** Stop cut motor [15:53:50]*** Cut end [15:53:50]Read from MH i2c: 01 07 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: 01 07 00 2F 18 00 00 00 00 00 FF 0F 5C [15:53:50]process_action close_receipt done [15:53:50]requested_data is exist [15:53:50]produce_requested_data [15:53:50]requested_item fm.sn is exist - process it [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 11 00 00 [15:53:50]Write to MH i2c: E2 08 00 30 18 80 11 00 00 00 00 00 00 C2 [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 17 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 17 00 30 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 15 [15:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:53:50]wFMCommunicate OK [15:53:50]requested_item fd.num is exist - process it [15:53:50]SAM_PROTO_GetFieldsCounters [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 13 00 00 [15:53:50]Write to MH i2c: E2 08 00 31 18 80 13 00 00 00 00 00 00 C5 [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 62 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 62 00 31 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9A 45 02 00 0E 04 04 00 70 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 E2 [15:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9A 45 02 00 0E 04 04 00 70 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 [15:53:50]wFMCommunicate OK [15:53:50]SAM_PROTO_GetFieldsCounters done [15:53:50]requested_item shift.num is exist - process it [15:53:50]requested_item shift.opened is exist - process it [15:53:50]req_shift_opened [15:53:50]FM_GetShiftState [15:53:50]SAM_PROTO_GetShiftState [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 13 01 00 [15:53:50]Write to MH i2c: E2 08 00 32 18 80 13 01 00 00 00 00 00 C7 [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 0E 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 0E 00 32 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8A [15:53:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:53:50]wFMCommunicate OK [15:53:50]SAM_PROTO_GetShiftState done [15:53:50]FM_GetShiftState done [15:53:50]req_shift_opened done [15:53:50]requested_item shift.open_date is exist - process it [15:53:50]req_shift_open_date [15:53:50]req_shift_open_date done [15:53:50]produce_requested_data done [15:53:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148890,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:53:50]process_action_free close_receipt [15:53:50]json_value_free [15:53:50]json_value_free done [15:53:50]process_json_proto returns [15:53:50]Send response to host [15:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148890,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:53:50]free response buf [15:53:50]execute_script done [15:53:50]execute_script returns [15:53:50]free content buf [15:53:50]Sock 7.Close socket [15:53:50]Sock 7.Thread stoped [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:20]accept exits with 10 [15:55:20]New connection [15:55:20]New thread 3067407716 created [15:55:20]Thread 3067264356 joined [15:55:20]Waiting for new connection... [15:55:20] Sock 10.Parse request [15:55:20]Sock 10.Check first char [15:55:20]Sock 10.First char is OK [15:55:20]request: POST /json_proto HTTP/1.0 [15:55:20]Method: POST [15:55:20]URL: /json_proto [15:55:20]Method is POST - this is cgi request [15:55:20]url: /json_proto [15:55:20]query_string will be loaded in cgi processing [15:55:20]execute_cgi json_proto POST (null) [15:55:20]execute_cgi path=json_proto method=POST [15:55:20]POST find Content-Length [15:55:20]Host: 172.17.38.4:8080 [15:55:20]Content-Length: 677 [15:55:20]Content-Type: application/json [15:55:20] [15:55:20]POST finish read [15:55:20]Found Content-Length = 677 [15:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:20]execute_script... [15:55: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)979820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:20]POST & json_proto [15:55:20]process_json_proto [15:55:20]json parsed OK: [15:55:20]protocol is kg_v1.0 [15:55:20]action value=close_receipt [15:55:20]process_action close_receipt [15:55:20]cmd_close_receipt [15:55:20]MH_GetDate [15:55:20]Write to MH i2c: F0 00 00 33 18 3A [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: F0 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: F0 09 00 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: F0 09 00 33 18 00 EA 38 5F 66 CC 51 87 64 32 [15:55:20]GetLastDocTimeStamp 1717516427 [15:55:20]current date 1717516522 [15:55:20]FM_GetShiftState [15:55:20]SAM_PROTO_GetShiftState [15:55:20]wFMCommunicate request_size=4 [15:55:20]MH_SAM_APDU [15:55:20]CAPDU: 80 13 01 00 [15:55:20]Write to MH i2c: E2 08 00 34 18 80 13 01 00 00 00 00 00 C9 [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:21]Read from MH i2c: E2 [15:55:21]MH_I2C_Read... [15:55:21]Read from MH i2c: E2 0E 00 [15:55:21]MH_I2C_Read... [15:55:21]Read from MH i2c: E2 0E 00 34 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8C [15:55:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:55:21]wFMCommunicate OK [15:55:21]SAM_PROTO_GetShiftState done [15:55:21]FM_GetShiftState done [15:55:21]opened in 1717460629 [15:55:21]opened+sec_in_day 1717547029 [15:55:21]quantity*price = 20003 [15:55:21]sum+1 = 20004 [15:55:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 230 04.06.2024 15:55 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148891 ФПД: 190102419962016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155522&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148891&fm=190102419962016&tin=02508201610067®Number=0000000000092720&sum=20000 [15:55:22]StoreToDocumentArchive [15:55:22]shift 368 fd 148891 [15:55:22]save to /storage/0368/doc_00148891 [15:55:22]save last doc name /storage/0368/doc_00148891 to /storage/kkm_last_doc_name [15:55:22]save OK [15:55:22]Clear old archive folders... [15:55:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:22]tlvbuf is 0049DEF0 [15:55:22]SAM_PROTO_ClearQueue [15:55:22]wFMCommunicate request_size=4 [15:55:22]MH_SAM_APDU [15:55:22]CAPDU: 80 09 00 00 [15:55:22]Write to MH i2c: E2 08 00 41 18 80 09 00 00 00 00 00 00 CB [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:22]Read from MH i2c: E2 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 03 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 03 00 41 18 00 90 00 CD [15:55:22]RAPDU: 90 00 [15:55:22]wFMCommunicate OK [15:55:22]SAM_PROTO_ClearQueue done [15:55:22]KKMCreateOFDPacket [15:55:22]OFDProtocolAddRootSTLVToBuf [15:55:22]FM_MakeSignedData [15:55:22]FM_MakeSignedData [15:55:22]SAM_PROTO_SignData [15:55:22]wFMCommunicate request_size=4 [15:55:22]MH_SAM_APDU [15:55:22]CAPDU: 80 0D 01 02 [15:55:22]Write to MH i2c: E2 08 00 42 18 80 0D 01 02 00 00 00 00 D3 [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:22]Read from MH i2c: E2 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 03 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 03 00 42 18 00 90 00 CE [15:55:22]RAPDU: 90 00 [15:55:22]wFMCommunicate OK [15:55:22]wFMCommunicate request_size=255 [15:55:22]MH_SAM_APDU [15:55:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E6 00 00 00 F4 03 04 00 EA 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9B 45 02 00 35 04 06 00 AC [15:55:22]Write to MH i2c: E2 02 01 43 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E6 00 00 00 F4 03 04 00 EA 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9B 45 02 00 35 04 06 00 AC 00 00 EB [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:22]Read from MH i2c: E2 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 03 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 03 00 43 18 00 90 00 CF [15:55:22]RAPDU: 90 00 [15:55:22]wFMCommunicate OK [15:55:22]wFMCommunicate request_size=10 [15:55:22]MH_SAM_APDU [15:55:22]CAPDU: 80 0D 02 02 05 E5 AB 36 78 A0 [15:55:22]Write to MH i2c: E2 0D 00 44 18 80 0D 02 02 05 00 E5 AB 36 78 A0 00 00 BE [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:22]Read from MH i2c: E2 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 03 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 03 00 44 18 00 90 00 D0 [15:55:22]RAPDU: 90 00 [15:55:22]wFMCommunicate OK [15:55:22]wFMCommunicate request_size=4 [15:55:22]MH_SAM_APDU [15:55:22]CAPDU: 80 0D 03 02 [15:55:22]Write to MH i2c: E2 08 00 45 18 80 0D 03 02 00 00 00 00 D8 [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:22]Read from MH i2c: E2 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 0B 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 0B 00 45 18 00 B7 F8 DF 7B 6B 59 26 A5 90 00 71 [15:55:22]RAPDU: B7 F8 DF 7B 6B 59 26 A5 90 00 [15:55:22]wFMCommunicate OK [15:55:22]SAM_PROTO_SignData done [15:55:22]FM_MakeSignedData done [15:55:22]CreateOFDProtocolMessage [15:55:22]wFMCommunicate request_size=4 [15:55:22]MH_SAM_APDU [15:55:22]CAPDU: 80 11 00 00 [15:55:22]Write to MH i2c: E2 08 00 46 18 80 11 00 00 00 00 00 00 D8 [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:22]Read from MH i2c: E2 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 17 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 17 00 46 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2B [15:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:55:22]wFMCommunicate OK [15:55:22]CreateOFDProtocolMessage done [15:55:22]OFDSenderStorePacket 148891 [15:55:22]StoreOFDPacket docnum=148891 [15:55:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 2A 77 07 01 47 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 EA 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9B 45 02 00 35 04 06 00 AC E5 AB 36 78 A0 B7 F8 DF 7B 6B 59 26 A5 [15:55:22]CheckFolder [15:55:22]dirname=/storage/ofd_packets [15:55:22]CheckFolder done [15:55:22]ProducePacketName [15:55:22]name=ofd_packets/00148891 [15:55:22]NVStorageSaveData ofd_packets/00148891 [15:55:22]File name is /storage/ofd_packets/00148891 [15:55:22]Write 301 bytes [15:55:22]NVStorageSaveData done [15:55:22]OFDSenderStorePacket done [15:55:22]KKMCreateOFDPacket done [15:55:22]NVStorageSaveData kkm_last_timestamp [15:55:22]File name is /storage/kkm_last_timestamp [15:55:22]Write 4 bytes [15:55:22]NVStorageSaveData done [15:55:22]ExternCall_PrintAddStr [15:55:22]wPrintStart [15:55:22]Write to MH i2c: 01 00 00 47 18 5F [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: 01 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: 01 07 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: 01 07 00 47 18 00 00 00 00 00 FF 0F 74 [15:55:22]RasterBufferAndPrint [15:55:22]line Счет N : (1)979820 [15:55:22]line ИНН: 02508201610067 [15:55:22]line Контрольно-Кассовый Чек [15:55:22]line ПРОДАЖА [15:55:22]line ТРК (МРК, ГНК) : 31 [15:55:22]line Товар: 2710124130 [15:55:22]line Аи-92-К-5 [15:55:22]line 2.990 * 66.90 [15:55:22]line = 200.03 [15:55:22]line НДС 12% НСП 1% [15:55:22]line > о реализуемом товаре [15:55:22]line ОКРУГЛЕНИЕ: -0.03 [15:55:22]line ИТОГО: 200.00 [15:55:22]line Внесено: 200.00 [15:55:22]line СДАЧА: 0.00 [15:55:22]line НСП 1% : 1.77 [15:55:22]line НДС 12% : 21.24 [15:55:22]line Наличными: 200.00 [15:55:22]line Безнал.: 0.00 [15:55:22]line Место: АЗС № 68 "Партнер Нефть" [15:55:22]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:55:22]line СНО: Общий режим [15:55:22]line Чек 230 04.06.2024 15:55 [15:55:22]line Смена: 368 ФФД: 1.0 [15:55:22]line ЗНМ: 0300000035 [15:55:22]line РНМ: 0000000000092720 [15:55:22]line Версия ККМ: 001 [15:55:22]line ФМ: 0000000000875057 [15:55:22]line ФД: 148891 [15:55:22]line ФПД: 190102419962016 [15:55:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155522&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148891&fm=190102419962016&tin=02508201610067®Number=0000000000092720&sum=20000 [15:55:23]OFD Sender: Processing packet 148891 [packets to send 100, broken 99] [15:55:23]ProducePacketName [15:55:23]name=ofd_packets/00148891 [15:55:23]OFD Sender: To server: pG, [15:55:23]CommunicateWithHost lk.salyk.kg:30040 [15:55:23]ConnectInit lk.salyk.kg [15:55:23]written 0, free lines is 4095 [15:55:23]Connected sock=9 [15:55:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 2A 77 07 01 47 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 EA 38 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9B 45 02 00 35 04 06 00 AC E5 AB 36 78 A0 B7 F8 DF 7B 6B 59 26 A5 [15:55:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 33 61 47 00 7D A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9B 45 02 00 F4 03 04 00 0E E0 5E 66 B6 04 01 00 00 FD 35 AC C1 B6 AF 56 5D [15:55:23]CommunicateWithHost err = 0 [15:55:23]CheckOFDResponse [15:55:23]1017 (14) - 77093643461234 [15:55:23]1041 (16) - 0000000000875057 [15:55:23]1040 (4) - 148891 [15:55:23]1012 (4) - 04.06.2024 09:36 [15:55:23]1206 (1) - 0 [15:55:23]OFD Sender: Remove packet 148891 [15:55:23]ProducePacketName [15:55:23]name=ofd_packets/00148891 [15:55:23]NVStorageDeleteData [15:55:23]Write to MH i2c: 01 00 00 72 18 8A [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: 01 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: 01 07 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: 01 07 00 72 18 00 00 00 00 00 64 0C 01 [15:55:23]RasterBufferAndPrint [15:55:23]line [15:55:23]line [15:55:23]line [15:55:23]line [15:55:23]line [15:55:23]written 0, free lines is 3177 [15:55:23]MH_Cut [15:55:23]Write to MH i2c: D1 01 00 79 18 01 63 [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: D1 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: D1 01 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: D1 01 00 79 18 00 62 [15:55:23]Write to MH i2c: 01 00 00 7A 18 92 [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]OFD Sender: No OFD packet to send [15:55:24]*** Cut start [15:55:24]*** Partial cut [15:55:24]*** CUTSNS_PIN = 1 [15:55:24]*** CUTSNS_PIN = 0 [15:55:25]*** Brake cut motor [15:55:25]Read from MH i2c: 01 [15:55:25]MH_I2C_Read... [15:55:25]*** Stop cut motor [15:55:25]*** Cut end [15:55:25]Read from MH i2c: 01 07 00 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: 01 07 00 7A 18 00 00 00 00 00 FF 0F A7 [15:55:25]process_action close_receipt done [15:55:25]requested_data is exist [15:55:25]produce_requested_data [15:55:25]requested_item fm.sn is exist - process it [15:55:25]wFMCommunicate request_size=4 [15:55:25]MH_SAM_APDU [15:55:25]CAPDU: 80 11 00 00 [15:55:25]Write to MH i2c: E2 08 00 7B 18 80 11 00 00 00 00 00 00 0D [15:55:25]Write i2c OK [15:55:25]MH_I2C_Read... [15:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:25]Read from MH i2c: E2 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: E2 17 00 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: E2 17 00 7B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 60 [15:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:55:25]wFMCommunicate OK [15:55:25]requested_item fd.num is exist - process it [15:55:25]SAM_PROTO_GetFieldsCounters [15:55:25]wFMCommunicate request_size=4 [15:55:25]MH_SAM_APDU [15:55:25]CAPDU: 80 13 00 00 [15:55:25]Write to MH i2c: E2 08 00 7C 18 80 13 00 00 00 00 00 00 10 [15:55:25]Write i2c OK [15:55:25]MH_I2C_Read... [15:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:25]Read from MH i2c: E2 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: E2 62 00 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: E2 62 00 7C 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9B 45 02 00 0E 04 04 00 70 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 31 [15:55:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9B 45 02 00 0E 04 04 00 70 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 [15:55:25]wFMCommunicate OK [15:55:25]SAM_PROTO_GetFieldsCounters done [15:55:25]requested_item shift.num is exist - process it [15:55:25]requested_item shift.opened is exist - process it [15:55:25]req_shift_opened [15:55:25]FM_GetShiftState [15:55:25]SAM_PROTO_GetShiftState [15:55:25]wFMCommunicate request_size=4 [15:55:25]MH_SAM_APDU [15:55:25]CAPDU: 80 13 01 00 [15:55:25]Write to MH i2c: E2 08 00 7D 18 80 13 01 00 00 00 00 00 12 [15:55:25]Write i2c OK [15:55:25]MH_I2C_Read... [15:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:25]Read from MH i2c: E2 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: E2 0E 00 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: E2 0E 00 7D 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D5 [15:55:25]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:55:25]wFMCommunicate OK [15:55:25]SAM_PROTO_GetShiftState done [15:55:25]FM_GetShiftState done [15:55:25]req_shift_opened done [15:55:25]requested_item shift.open_date is exist - process it [15:55:25]req_shift_open_date [15:55:25]req_shift_open_date done [15:55:25]produce_requested_data done [15:55:25]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148891,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:55:25]process_action_free close_receipt [15:55:25]json_value_free [15:55:25]json_value_free done [15:55:25]process_json_proto returns [15:55:25]Send response to host [15:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148891,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:55:25]free response buf [15:55:25]execute_script done [15:55:25]execute_script returns [15:55:25]free content buf [15:55:25]Sock 10.Close socket [15:55:25]Sock 10.Thread stoped [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:36]accept exits with 7 [15:56:36]New connection [15:56:36]New thread 3067264356 created [15:56:36]Thread 3067407716 joined [15:56:36]Waiting for new connection... [15:56:36] Sock 7.Parse request [15:56:36]Sock 7.Check first char [15:56:36]Sock 7.First char is OK [15:56:36]request: POST /json_proto HTTP/1.0 [15:56:36]Method: POST [15:56:36]URL: /json_proto [15:56:36]Method is POST - this is cgi request [15:56:36]url: /json_proto [15:56:36]query_string will be loaded in cgi processing [15:56:36]execute_cgi json_proto POST (null) [15:56:36]execute_cgi path=json_proto method=POST [15:56:36]POST find Content-Length [15:56:36]Host: 172.17.38.4:8080 [15:56:36]Content-Length: 734 [15:56:36]Content-Type: application/json [15:56:36] [15:56:36]POST finish read [15:56:36]Found Content-Length = 734 [15:56:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 148891, "base_FM": "0000000000875057", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:36]execute_script... [15:56:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 148891, "base_FM": "0000000000875057", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:36]POST & json_proto [15:56:36]process_json_proto [15:56:36]json parsed OK: [15:56:36]protocol is kg_v1.0 [15:56:36]action value=close_receipt [15:56:36]process_action close_receipt [15:56:36]cmd_close_receipt [15:56:36]MH_GetDate [15:56:36]Write to MH i2c: F0 00 00 7E 18 85 [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: F0 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: F0 09 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: F0 09 00 7E 18 00 35 39 5F 66 CC 51 87 64 C9 [15:56:36]GetLastDocTimeStamp 1717516522 [15:56:36]current date 1717516597 [15:56:36]FM_GetShiftState [15:56:36]SAM_PROTO_GetShiftState [15:56:36]wFMCommunicate request_size=4 [15:56:36]MH_SAM_APDU [15:56:36]CAPDU: 80 13 01 00 [15:56:36]Write to MH i2c: E2 08 00 7F 18 80 13 01 00 00 00 00 00 14 [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:36]Read from MH i2c: E2 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 0E 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 0E 00 7F 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D7 [15:56:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:56:36]wFMCommunicate OK [15:56:36]SAM_PROTO_GetShiftState done [15:56:36]FM_GetShiftState done [15:56:36]opened in 1717460629 [15:56:36]opened+sec_in_day 1717547029 [15:56:36]quantity*price = 20003 [15:56:36]sum+1 = 20004 [15:56:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 231 04.06.2024 15:56 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФД осн.: 148891 ФМ осн.: 0000000000875057 ФМ: 0000000000875057 ФД: 148892 ФПД: 16834864448843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155637&type=2&operation_type=1&fn_number=0000000000875057&fd_number=148892&fm=16834864448843&tin=02508201610067®Number=0000000000092720&sum=20000 [15:56:37]StoreToDocumentArchive [15:56:37]shift 368 fd 148892 [15:56:37]save to /storage/0368/doc_00148892 [15:56:37]save last doc name /storage/0368/doc_00148892 to /storage/kkm_last_doc_name [15:56:37]save OK [15:56:37]Clear old archive folders... [15:56:37]ProcessDocumentItem done err = 0, tmpTLVsize=279 [15:56:37]tlvbuf is B6F17490 [15:56:37]SAM_PROTO_ClearQueue [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 09 00 00 [15:56:37]Write to MH i2c: E2 08 00 8E 18 80 09 00 00 00 00 00 00 18 [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 03 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 03 00 8E 18 00 90 00 1A [15:56:37]RAPDU: 90 00 [15:56:37]wFMCommunicate OK [15:56:37]SAM_PROTO_ClearQueue done [15:56:37]KKMCreateOFDPacket [15:56:37]OFDProtocolAddRootSTLVToBuf [15:56:37]FM_MakeSignedData [15:56:37]FM_MakeSignedData [15:56:37]SAM_PROTO_SignData [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 0D 01 02 [15:56:37]Write to MH i2c: E2 08 00 8F 18 80 0D 01 02 00 00 00 00 20 [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 03 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 03 00 8F 18 00 90 00 1B [15:56:37]RAPDU: 90 00 [15:56:37]wFMCommunicate OK [15:56:37]wFMCommunicate request_size=255 [15:56:37]MH_SAM_APDU [15:56:37]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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 35 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 9B 45 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 [15:56:37]Write to MH i2c: E2 02 01 90 18 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 35 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 9B 45 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 00 00 3B [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 03 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 03 00 90 18 00 90 00 1C [15:56:37]RAPDU: 90 00 [15:56:37]wFMCommunicate OK [15:56:37]wFMCommunicate request_size=38 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9C 45 02 00 35 04 06 00 0F 4F AC 1D 85 4B [15:56:37]Write to MH i2c: E2 29 00 91 18 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9C 45 02 00 35 04 06 00 0F 4F AC 1D 85 4B 00 00 86 [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 03 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 03 00 91 18 00 90 00 1D [15:56:37]RAPDU: 90 00 [15:56:37]wFMCommunicate OK [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 0D 03 02 [15:56:37]Write to MH i2c: E2 08 00 92 18 80 0D 03 02 00 00 00 00 25 [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 0B 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 0B 00 92 18 00 E6 B8 DE 82 12 BF C3 1A 90 00 D2 [15:56:37]RAPDU: E6 B8 DE 82 12 BF C3 1A 90 00 [15:56:37]wFMCommunicate OK [15:56:37]SAM_PROTO_SignData done [15:56:37]FM_MakeSignedData done [15:56:37]CreateOFDProtocolMessage [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 11 00 00 [15:56:37]Write to MH i2c: E2 08 00 93 18 80 11 00 00 00 00 00 00 25 [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 17 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 17 00 93 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 78 [15:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:56:37]wFMCommunicate OK [15:56:37]CreateOFDProtocolMessage done [15:56:37]OFDSenderStorePacket 148892 [15:56:37]StoreOFDPacket docnum=148892 [15:56:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2B 01 00 00 99 DC 23 01 28 38 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 35 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 9B 45 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9C 45 02 00 35 04 06 00 0F 4F AC 1D 85 4B E6 B8 DE 82 12 BF C3 1A [15:56:37]CheckFolder [15:56:37]dirname=/storage/ofd_packets [15:56:37]CheckFolder done [15:56:37]ProducePacketName [15:56:37]name=ofd_packets/00148892 [15:56:37]NVStorageSaveData ofd_packets/00148892 [15:56:37]File name is /storage/ofd_packets/00148892 [15:56:37]Write 329 bytes [15:56:37]NVStorageSaveData done [15:56:37]OFDSenderStorePacket done [15:56:37]KKMCreateOFDPacket done [15:56:37]NVStorageSaveData kkm_last_timestamp [15:56:37]File name is /storage/kkm_last_timestamp [15:56:37]Write 4 bytes [15:56:37]NVStorageSaveData done [15:56:37]ExternCall_PrintAddStr [15:56:37]wPrintStart [15:56:37]Write to MH i2c: 01 00 00 94 18 AC [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: 01 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: 01 07 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: 01 07 00 94 18 00 00 00 00 00 FF 0F C1 [15:56:37]RasterBufferAndPrint [15:56:37]line Счет N : (1)979820 [15:56:37]line ИНН: 02508201610067 [15:56:37]line Контрольно-Кассовый Чек [15:56:37]line ВОЗВРАТ ПРОДАЖИ [15:56:37]line ТРК (МРК, ГНК) : 31 [15:56:37]line Товар: 2710124130 [15:56:37]line Аи-92-К-5 [15:56:37]line 2.990 * 66.90 [15:56:37]line = 200.03 [15:56:37]line НДС 12% НСП 1% [15:56:37]line > о реализуемом товаре [15:56:37]line ОКРУГЛЕНИЕ: -0.03 [15:56:37]line ИТОГО: 200.00 [15:56:37]line НСП 1% : 1.77 [15:56:37]line НДС 12% : 21.24 [15:56:37]line Наличными: 200.00 [15:56:37]line Безнал.: 0.00 [15:56:37]line Место: АЗС № 68 "Партнер Нефть" [15:56:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:56:37]line СНО: Общий режим [15:56:37]line Чек 231 04.06.2024 15:56 [15:56:37]line Смена: 368 ФФД: 1.0 [15:56:37]line ЗНМ: 0300000035 [15:56:37]line РНМ: 0000000000092720 [15:56:37]line Версия ККМ: 001 [15:56:37]line ФД осн.: 148891 [15:56:37]line ФМ осн.: 0000000000875057 [15:56:37]line ФМ: 0000000000875057 [15:56:37]line ФД: 148892 [15:56:37]line ФПД: 16834864448843 [15:56:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155637&type=2&operation_type=1&fn_number=0000000000875057&fd_number=148892&fm=16834864448843&tin=02508201610067®Number=0000000000092720&sum=20000 [15:56:38]OFD Sender: Processing packet 148892 [packets to send 100, broken 99] [15:56:38]ProducePacketName [15:56:38]name=ofd_packets/00148892 [15:56:38]OFD Sender: To server: pG, [15:56:38]CommunicateWithHost lk.salyk.kg:30040 [15:56:38]ConnectInit lk.salyk.kg [15:56:38]written 0, free lines is 4095 [15:56:38]Connected sock=10 [15:56:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2B 01 00 00 99 DC 23 01 28 38 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 35 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 9B 45 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9C 45 02 00 35 04 06 00 0F 4F AC 1D 85 4B E6 B8 DE 82 12 BF C3 1A [15:56:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B7 6B 47 00 6E 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 38 37 35 30 35 37 10 04 04 00 9C 45 02 00 F4 03 04 00 59 E0 5E 66 B6 04 01 00 00 83 4F B9 17 D2 C2 F5 09 [15:56:38]CommunicateWithHost err = 0 [15:56:38]CheckOFDResponse [15:56:38]1017 (14) - 77093643461234 [15:56:38]1041 (16) - 0000000000875057 [15:56:38]1040 (4) - 148892 [15:56:38]1012 (4) - 04.06.2024 09:37 [15:56:38]1206 (1) - 0 [15:56:38]OFD Sender: Remove packet 148892 [15:56:38]ProducePacketName [15:56:38]name=ofd_packets/00148892 [15:56:38]NVStorageDeleteData [15:56:38]Write to MH i2c: 01 00 00 BF 18 D7 [15:56:38]Write i2c OK [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: 01 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: 01 07 00 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: 01 07 00 BF 18 00 00 00 00 00 6A 0C 54 [15:56:38]RasterBufferAndPrint [15:56:38]line [15:56:38]line [15:56:38]line [15:56:38]line [15:56:38]line [15:56:38]written 0, free lines is 3182 [15:56:38]MH_Cut [15:56:38]Write to MH i2c: D1 01 00 C6 18 01 B0 [15:56:38]Write i2c OK [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: D1 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: D1 01 00 [15:56:38]MH_I2C_Read... [15:56:38]Read from MH i2c: D1 01 00 C6 18 00 AF [15:56:38]Write to MH i2c: 01 00 00 C7 18 DF [15:56:38]Write i2c OK [15:56:38]MH_I2C_Read... [15:56:38]OFD Sender: No OFD packet to send [15:56:39]*** Cut start [15:56:39]*** Partial cut [15:56:39]*** CUTSNS_PIN = 1 [15:56:39]*** CUTSNS_PIN = 0 [15:56:40]*** Brake cut motor [15:56:40]Read from MH i2c: 01 [15:56:40]MH_I2C_Read... [15:56:40]*** Stop cut motor [15:56:40]*** Cut end [15:56:40]Read from MH i2c: 01 07 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: 01 07 00 C7 18 00 00 00 00 00 FF 0F F4 [15:56:40]process_action close_receipt done [15:56:40]requested_data is exist [15:56:40]produce_requested_data [15:56:40]requested_item fm.sn is exist - process it [15:56:40]wFMCommunicate request_size=4 [15:56:40]MH_SAM_APDU [15:56:40]CAPDU: 80 11 00 00 [15:56:40]Write to MH i2c: E2 08 00 C8 18 80 11 00 00 00 00 00 00 5A [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:40]Read from MH i2c: E2 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 17 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 17 00 C8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AD [15:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:56:40]wFMCommunicate OK [15:56:40]requested_item fd.num is exist - process it [15:56:40]SAM_PROTO_GetFieldsCounters [15:56:40]wFMCommunicate request_size=4 [15:56:40]MH_SAM_APDU [15:56:40]CAPDU: 80 13 00 00 [15:56:40]Write to MH i2c: E2 08 00 C9 18 80 13 00 00 00 00 00 00 5D [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:40]Read from MH i2c: E2 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 62 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 62 00 C9 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9C 45 02 00 0E 04 04 00 70 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 82 [15:56:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9C 45 02 00 0E 04 04 00 70 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 [15:56:40]wFMCommunicate OK [15:56:40]SAM_PROTO_GetFieldsCounters done [15:56:40]requested_item shift.num is exist - process it [15:56:40]requested_item shift.opened is exist - process it [15:56:40]req_shift_opened [15:56:40]FM_GetShiftState [15:56:40]SAM_PROTO_GetShiftState [15:56:40]wFMCommunicate request_size=4 [15:56:40]MH_SAM_APDU [15:56:40]CAPDU: 80 13 01 00 [15:56:40]Write to MH i2c: E2 08 00 CA 18 80 13 01 00 00 00 00 00 5F [15:56:40]Write i2c OK [15:56:40]MH_I2C_Read... [15:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:40]Read from MH i2c: E2 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 0E 00 [15:56:40]MH_I2C_Read... [15:56:40]Read from MH i2c: E2 0E 00 CA 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 22 [15:56:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:56:40]wFMCommunicate OK [15:56:40]SAM_PROTO_GetShiftState done [15:56:40]FM_GetShiftState done [15:56:40]req_shift_opened done [15:56:40]requested_item shift.open_date is exist - process it [15:56:40]req_shift_open_date [15:56:40]req_shift_open_date done [15:56:40]produce_requested_data done [15:56:40]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148892,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:56:40]process_action_free close_receipt [15:56:40]json_value_free [15:56:40]json_value_free done [15:56:40]process_json_proto returns [15:56:40]Send response to host [15:56:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148892,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:56:40]free response buf [15:56:40]execute_script done [15:56:40]execute_script returns [15:56:40]free content buf [15:56:40]Sock 7.Close socket [15:56:40]Sock 7.Thread stoped [15:56:42]accept exits with 9 [15:56:42]New connection [15:56:42]New thread 3067407716 created [15:56:42]Thread 3067264356 joined [15:56:42]Waiting for new connection... [15:56:42] Sock 9.Parse request [15:56:42]Sock 9.Check first char [15:56:42]Sock 9.First char is OK [15:56:42]request: POST /json_proto HTTP/1.0 [15:56:42]Method: POST [15:56:42]URL: /json_proto [15:56:42]Method is POST - this is cgi request [15:56:42]url: /json_proto [15:56:42]query_string will be loaded in cgi processing [15:56:42]execute_cgi json_proto POST (null) [15:56:42]execute_cgi path=json_proto method=POST [15:56:42]POST find Content-Length [15:56:42]Host: 172.17.38.4:8080 [15:56:42]Content-Length: 670 [15:56:42]Content-Type: application/json [15:56:42] [15:56:42]POST finish read [15:56:42]Found Content-Length = 670 [15:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [15:56:42]execute_script... [15:56: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)979821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [15:56:42]POST & json_proto [15:56:42]process_json_proto [15:56:42]json parsed OK: [15:56:42]protocol is kg_v1.0 [15:56:42]action value=close_receipt [15:56:42]process_action close_receipt [15:56:42]cmd_close_receipt [15:56:42]MH_GetDate [15:56:42]Write to MH i2c: F0 00 00 CB 18 D2 [15:56:42]Write i2c OK [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: F0 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: F0 09 00 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: F0 09 00 CB 18 00 3B 39 5F 66 CC 51 87 64 1C [15:56:42]GetLastDocTimeStamp 1717516597 [15:56:42]current date 1717516603 [15:56:42]FM_GetShiftState [15:56:42]SAM_PROTO_GetShiftState [15:56:42]wFMCommunicate request_size=4 [15:56:42]MH_SAM_APDU [15:56:42]CAPDU: 80 13 01 00 [15:56:42]Write to MH i2c: E2 08 00 CC 18 80 13 01 00 00 00 00 00 61 [15:56:42]Write i2c OK [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: E2 [15:56:42]MH_I2C_Read... [15:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:42]Read from MH i2c: E2 0E 00 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: E2 0E 00 CC 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 24 [15:56:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:56:42]wFMCommunicate OK [15:56:42]SAM_PROTO_GetShiftState done [15:56:42]FM_GetShiftState done [15:56:42]opened in 1717460629 [15:56:42]opened+sec_in_day 1717547029 [15:56:42]quantity*price = 20030 [15:56:42]sum+1 = 20032 [15:56:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 232 04.06.2024 15:56 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148893 ФПД: 39189226386192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155643&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148893&fm=39189226386192&tin=02508201610067®Number=0000000000092720&sum=20000 [15:56:43]StoreToDocumentArchive [15:56:43]shift 368 fd 148893 [15:56:43]save to /storage/0368/doc_00148893 [15:56:43]save last doc name /storage/0368/doc_00148893 to /storage/kkm_last_doc_name [15:56:43]save OK [15:56:43]Clear old archive folders... [15:56:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:56:43]tlvbuf is 00517060 [15:56:43]SAM_PROTO_ClearQueue [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 09 00 00 [15:56:43]Write to MH i2c: E2 08 00 D9 18 80 09 00 00 00 00 00 00 63 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 D9 18 00 90 00 65 [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]SAM_PROTO_ClearQueue done [15:56:43]KKMCreateOFDPacket [15:56:43]OFDProtocolAddRootSTLVToBuf [15:56:43]FM_MakeSignedData [15:56:43]FM_MakeSignedData [15:56:43]SAM_PROTO_SignData [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 01 02 [15:56:43]Write to MH i2c: E2 08 00 DA 18 80 0D 01 02 00 00 00 00 6B [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 DA 18 00 90 00 66 [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]wFMCommunicate request_size=255 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 E8 00 00 00 F4 03 04 00 3B 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9D 45 02 00 35 04 06 00 [15:56:43]Write to MH i2c: E2 02 01 DB 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 E8 00 00 00 F4 03 04 00 3B 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9D 45 02 00 35 04 06 00 00 00 25 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 DB 18 00 90 00 67 [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]wFMCommunicate request_size=11 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 02 02 06 23 A4 73 EA F3 10 [15:56:43]Write to MH i2c: E2 0E 00 DC 18 80 0D 02 02 06 00 23 A4 73 EA F3 10 00 00 A1 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 DC 18 00 90 00 68 [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 03 02 [15:56:43]Write to MH i2c: E2 08 00 DD 18 80 0D 03 02 00 00 00 00 70 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]OFD Sender: No OFD packet to send [15:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:44]Read from MH i2c: E2 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: E2 0B 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: E2 0B 00 DD 18 00 64 2C 36 3B E5 E7 E1 24 90 00 43 [15:56:44]RAPDU: 64 2C 36 3B E5 E7 E1 24 90 00 [15:56:44]wFMCommunicate OK [15:56:44]SAM_PROTO_SignData done [15:56:44]FM_MakeSignedData done [15:56:44]CreateOFDProtocolMessage [15:56:44]wFMCommunicate request_size=4 [15:56:44]MH_SAM_APDU [15:56:44]CAPDU: 80 11 00 00 [15:56:44]Write to MH i2c: E2 08 00 DE 18 80 11 00 00 00 00 00 00 70 [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:44]Read from MH i2c: E2 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: E2 17 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: E2 17 00 DE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C3 [15:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:56:44]wFMCommunicate OK [15:56:44]CreateOFDProtocolMessage done [15:56:44]OFDSenderStorePacket 148893 [15:56:44]StoreOFDPacket docnum=148893 [15:56:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 8A B9 08 01 C1 AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 E8 00 00 00 F4 03 04 00 3B 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9D 45 02 00 35 04 06 00 23 A4 73 EA F3 10 64 2C 36 3B E5 E7 E1 24 [15:56:44]CheckFolder [15:56:44]dirname=/storage/ofd_packets [15:56:44]CheckFolder done [15:56:44]ProducePacketName [15:56:44]name=ofd_packets/00148893 [15:56:44]NVStorageSaveData ofd_packets/00148893 [15:56:44]File name is /storage/ofd_packets/00148893 [15:56:44]Write 302 bytes [15:56:44]NVStorageSaveData done [15:56:44]OFDSenderStorePacket done [15:56:44]KKMCreateOFDPacket done [15:56:44]NVStorageSaveData kkm_last_timestamp [15:56:44]File name is /storage/kkm_last_timestamp [15:56:44]Write 4 bytes [15:56:44]OFD Sender: Processing packet 148893 [packets to send 100, broken 99] [15:56:44]ProducePacketName [15:56:44]name=ofd_packets/00148893 [15:56:44]OFD Sender: To server: pG, [15:56:44]CommunicateWithHost lk.salyk.kg:30040 [15:56:44]ConnectInit lk.salyk.kg [15:56:44]NVStorageSaveData done [15:56:44]ExternCall_PrintAddStr [15:56:44]wPrintStart [15:56:44]Write to MH i2c: 01 00 00 DF 18 F7 [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 07 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 07 00 DF 18 00 00 00 00 00 FF 0F 0C [15:56:44]RasterBufferAndPrint [15:56:44]line Счет N : (1)979821 [15:56:44]line ИНН: 02508201610067 [15:56:44]line Контрольно-Кассовый Чек [15:56:44]line ПРОДАЖА [15:56:44]line ТРК (МРК, ГНК) : 43 [15:56:44]line Товар: 2710124130 [15:56:44]line SUPER 92-К-5 [15:56:44]line 2.950 * 67.90 [15:56:44]line = 200.31 [15:56:44]line НДС 12% НСП 1% [15:56:44]line > о реализуемом товаре [15:56:44]line ОКРУГЛЕНИЕ: -0.31 [15:56:44]line ИТОГО: 200.00 [15:56:44]line Внесено: 200.00 [15:56:44]line СДАЧА: 0.00 [15:56:44]line НСП 1% : 1.77 [15:56:44]line НДС 12% : 21.27 [15:56:44]line Наличными: 200.00 [15:56:44]line Безнал.: 0.00 [15:56:44]line Место: АЗС № 68 "Партнер Нефть" [15:56:44]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:56:44]line СНО: Общий режим [15:56:44]line Чек 232 04.06.2024 15:56 [15:56:44]line Смена: 368 ФФД: 1.0 [15:56:44]line ЗНМ: 0300000035 [15:56:44]line РНМ: 0000000000092720 [15:56:44]line Версия ККМ: 001 [15:56:44]line ФМ: 0000000000875057 [15:56:44]line ФД: 148893 [15:56:44]line ФПД: 39189226386192 [15:56:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155643&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148893&fm=39189226386192&tin=02508201610067®Number=0000000000092720&sum=20000 [15:56:44]written 0, free lines is 4095 [15:56:44]Connected sock=10 [15:56:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 8A B9 08 01 C1 AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 E8 00 00 00 F4 03 04 00 3B 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9D 45 02 00 35 04 06 00 23 A4 73 EA F3 10 64 2C 36 3B E5 E7 E1 24 [15:56:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 42 54 47 00 24 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9D 45 02 00 F4 03 04 00 5F E0 5E 66 B6 04 01 00 00 94 01 31 D9 DF 7F 3C 63 [15:56:44]CommunicateWithHost err = 0 [15:56:44]CheckOFDResponse [15:56:44]1017 (14) - 77093643461234 [15:56:44]1041 (16) - 0000000000875057 [15:56:44]1040 (4) - 148893 [15:56:44]1012 (4) - 04.06.2024 09:37 [15:56:44]1206 (1) - 0 [15:56:44]OFD Sender: Remove packet 148893 [15:56:44]ProducePacketName [15:56:44]name=ofd_packets/00148893 [15:56:44]NVStorageDeleteData [15:56:44]Write to MH i2c: 01 00 00 0A 19 23 [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 07 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 07 00 0A 19 00 00 00 00 00 70 0C A6 [15:56:44]RasterBufferAndPrint [15:56:44]line [15:56:44]line [15:56:44]line [15:56:44]line [15:56:44]line [15:56:44]written 0, free lines is 3187 [15:56:44]MH_Cut [15:56:44]Write to MH i2c: D1 01 00 11 19 01 FC [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: D1 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: D1 01 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: D1 01 00 11 19 00 FB [15:56:44]Write to MH i2c: 01 00 00 12 19 2B [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]OFD Sender: No OFD packet to send [15:56:45]*** Cut start [15:56:45]*** Partial cut [15:56:45]*** CUTSNS_PIN = 1 [15:56:45]*** CUTSNS_PIN = 0 [15:56:46]*** Brake cut motor [15:56:46]Read from MH i2c: 01 [15:56:46]MH_I2C_Read... [15:56:46]*** Stop cut motor [15:56:46]*** Cut end [15:56:46]Read from MH i2c: 01 07 00 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: 01 07 00 12 19 00 00 00 00 00 FF 0F 40 [15:56:46]process_action close_receipt done [15:56:46]requested_data is exist [15:56:46]produce_requested_data [15:56:46]requested_item fm.sn is exist - process it [15:56:46]wFMCommunicate request_size=4 [15:56:46]MH_SAM_APDU [15:56:46]CAPDU: 80 11 00 00 [15:56:46]Write to MH i2c: E2 08 00 13 19 80 11 00 00 00 00 00 00 A6 [15:56:46]Write i2c OK [15:56:46]MH_I2C_Read... [15:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:46]Read from MH i2c: E2 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 17 00 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 17 00 13 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F9 [15:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:56:46]wFMCommunicate OK [15:56:46]requested_item fd.num is exist - process it [15:56:46]SAM_PROTO_GetFieldsCounters [15:56:46]wFMCommunicate request_size=4 [15:56:46]MH_SAM_APDU [15:56:46]CAPDU: 80 13 00 00 [15:56:46]Write to MH i2c: E2 08 00 14 19 80 13 00 00 00 00 00 00 A9 [15:56:46]Write i2c OK [15:56:46]MH_I2C_Read... [15:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:46]Read from MH i2c: E2 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 62 00 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 62 00 14 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9D 45 02 00 0E 04 04 00 70 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 D2 [15:56:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9D 45 02 00 0E 04 04 00 70 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 [15:56:46]wFMCommunicate OK [15:56:46]SAM_PROTO_GetFieldsCounters done [15:56:46]requested_item shift.num is exist - process it [15:56:46]requested_item shift.opened is exist - process it [15:56:46]req_shift_opened [15:56:46]FM_GetShiftState [15:56:46]SAM_PROTO_GetShiftState [15:56:46]wFMCommunicate request_size=4 [15:56:46]MH_SAM_APDU [15:56:46]CAPDU: 80 13 01 00 [15:56:46]Write to MH i2c: E2 08 00 15 19 80 13 01 00 00 00 00 00 AB [15:56:46]Write i2c OK [15:56:46]MH_I2C_Read... [15:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:46]Read from MH i2c: E2 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 0E 00 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 0E 00 15 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6E [15:56:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:56:46]wFMCommunicate OK [15:56:46]SAM_PROTO_GetShiftState done [15:56:46]FM_GetShiftState done [15:56:46]req_shift_opened done [15:56:46]requested_item shift.open_date is exist - process it [15:56:46]req_shift_open_date [15:56:46]req_shift_open_date done [15:56:46]produce_requested_data done [15:56:46]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148893,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:56:46]process_action_free close_receipt [15:56:46]json_value_free [15:56:46]json_value_free done [15:56:46]process_json_proto returns [15:56:46]Send response to host [15:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148893,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:56:46]free response buf [15:56:46]execute_script done [15:56:46]execute_script returns [15:56:46]free content buf [15:56:46]Sock 9.Close socket [15:56:46]Sock 9.Thread stoped [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]accept exits with 7 [15:58:19]New connection [15:58:19]New thread 3067264356 created [15:58:19]Thread 3067407716 joined [15:58:19]Waiting for new connection... [15:58:19] Sock 7.Parse request [15:58:19]Sock 7.Check first char [15:58:19]Sock 7.First char is OK [15:58:19]request: POST /json_proto HTTP/1.0 [15:58:19]Method: POST [15:58:19]URL: /json_proto [15:58:19]Method is POST - this is cgi request [15:58:19]url: /json_proto [15:58:19]query_string will be loaded in cgi processing [15:58:19]execute_cgi json_proto POST (null) [15:58:19]execute_cgi path=json_proto method=POST [15:58:19]POST find Content-Length [15:58:19]Host: 172.17.38.4:8080 [15:58:19]Content-Length: 677 [15:58:19]Content-Type: application/json [15:58:19] [15:58:19]POST finish read [15:58:19]Found Content-Length = 677 [15:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 4.060, "sum" : 300.03, "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:58:19]execute_script... [15:58: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)979822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 4.060, "sum" : 300.03, "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:58:19]POST & json_proto [15:58:19]process_json_proto [15:58:19]json parsed OK: [15:58:19]protocol is kg_v1.0 [15:58:19]action value=close_receipt [15:58:19]process_action close_receipt [15:58:19]cmd_close_receipt [15:58:19]MH_GetDate [15:58:19]Write to MH i2c: F0 00 00 16 19 1E [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: F0 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: F0 09 00 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: F0 09 00 16 19 00 9C 39 5F 66 CC 51 87 64 C9 [15:58:19]GetLastDocTimeStamp 1717516603 [15:58:19]current date 1717516700 [15:58:19]FM_GetShiftState [15:58:19]SAM_PROTO_GetShiftState [15:58:19]wFMCommunicate request_size=4 [15:58:19]MH_SAM_APDU [15:58:19]CAPDU: 80 13 01 00 [15:58:19]Write to MH i2c: E2 08 00 17 19 80 13 01 00 00 00 00 00 AD [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:19]Read from MH i2c: E2 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: E2 0E 00 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: E2 0E 00 17 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 70 [15:58:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:58:19]wFMCommunicate OK [15:58:19]SAM_PROTO_GetShiftState done [15:58:19]FM_GetShiftState done [15:58:19]opened in 1717460629 [15:58:19]opened+sec_in_day 1717547029 [15:58:19]quantity*price = 30003 [15:58:19]sum+1 = 30004 [15:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 233 04.06.2024 15:58 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148894 ФПД: 66979199289547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155820&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148894&fm=66979199289547&tin=02508201610067®Number=0000000000092720&sum=30000 [15:58:20]StoreToDocumentArchive [15:58:20]shift 368 fd 148894 [15:58:20]save to /storage/0368/doc_00148894 [15:58:20]save last doc name /storage/0368/doc_00148894 to /storage/kkm_last_doc_name [15:58:20]save OK [15:58:20]Clear old archive folders... [15:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:20]tlvbuf is 00504B90 [15:58:20]SAM_PROTO_ClearQueue [15:58:20]wFMCommunicate request_size=4 [15:58:20]MH_SAM_APDU [15:58:20]CAPDU: 80 09 00 00 [15:58:20]Write to MH i2c: E2 08 00 24 19 80 09 00 00 00 00 00 00 AF [15:58:20]Write i2c OK [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 [15:58:20]MH_I2C_Read... [15:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:20]Read from MH i2c: E2 03 00 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 03 00 24 19 00 90 00 B1 [15:58:20]RAPDU: 90 00 [15:58:20]wFMCommunicate OK [15:58:20]SAM_PROTO_ClearQueue done [15:58:20]KKMCreateOFDPacket [15:58:20]OFDProtocolAddRootSTLVToBuf [15:58:20]FM_MakeSignedData [15:58:20]FM_MakeSignedData [15:58:20]SAM_PROTO_SignData [15:58:20]wFMCommunicate request_size=4 [15:58:20]MH_SAM_APDU [15:58:20]CAPDU: 80 0D 01 02 [15:58:20]Write to MH i2c: E2 08 00 25 19 80 0D 01 02 00 00 00 00 B7 [15:58:20]Write i2c OK [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 [15:58:20]MH_I2C_Read... [15:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:20]Read from MH i2c: E2 03 00 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 03 00 25 19 00 90 00 B2 [15:58:20]RAPDU: 90 00 [15:58:20]wFMCommunicate OK [15:58:20]wFMCommunicate request_size=255 [15:58:20]MH_SAM_APDU [15:58:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 E9 00 00 00 F4 03 04 00 9C 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9E 45 02 00 35 04 06 00 3C [15:58:20]Write to MH i2c: E2 02 01 26 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 E9 00 00 00 F4 03 04 00 9C 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9E 45 02 00 35 04 06 00 3C 00 00 34 [15:58:20]Write i2c OK [15:58:20]MH_I2C_Read... [15:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:20]Read from MH i2c: E2 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 03 00 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 03 00 26 19 00 90 00 B3 [15:58:20]RAPDU: 90 00 [15:58:20]wFMCommunicate OK [15:58:20]wFMCommunicate request_size=10 [15:58:20]MH_SAM_APDU [15:58:20]CAPDU: 80 0D 02 02 05 EA CF 61 88 CB [15:58:20]Write to MH i2c: E2 0D 00 27 19 80 0D 02 02 05 00 EA CF 61 88 CB 00 00 31 [15:58:20]Write i2c OK [15:58:20]MH_I2C_Read... [15:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:20]Read from MH i2c: E2 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 03 00 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 03 00 27 19 00 90 00 B4 [15:58:20]RAPDU: 90 00 [15:58:20]wFMCommunicate OK [15:58:20]wFMCommunicate request_size=4 [15:58:20]MH_SAM_APDU [15:58:20]CAPDU: 80 0D 03 02 [15:58:20]Write to MH i2c: E2 08 00 28 19 80 0D 03 02 00 00 00 00 BC [15:58:20]Write i2c OK [15:58:20]MH_I2C_Read... [15:58:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:20]Read from MH i2c: E2 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 0B 00 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 0B 00 28 19 00 1D D6 21 46 4C F0 4B E8 90 00 86 [15:58:20]RAPDU: 1D D6 21 46 4C F0 4B E8 90 00 [15:58:20]wFMCommunicate OK [15:58:20]SAM_PROTO_SignData done [15:58:20]FM_MakeSignedData done [15:58:20]CreateOFDProtocolMessage [15:58:20]wFMCommunicate request_size=4 [15:58:20]MH_SAM_APDU [15:58:20]CAPDU: 80 11 00 00 [15:58:20]Write to MH i2c: E2 08 00 29 19 80 11 00 00 00 00 00 00 BC [15:58:20]Write i2c OK [15:58:20]MH_I2C_Read... [15:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:20]Read from MH i2c: E2 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 17 00 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 17 00 29 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0F [15:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:58:20]wFMCommunicate OK [15:58:20]CreateOFDProtocolMessage done [15:58:20]OFDSenderStorePacket 148894 [15:58:20]StoreOFDPacket docnum=148894 [15:58:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C9 7A 07 01 CE 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 E9 00 00 00 F4 03 04 00 9C 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9E 45 02 00 35 04 06 00 3C EA CF 61 88 CB 1D D6 21 46 4C F0 4B E8 [15:58:20]CheckFolder [15:58:20]dirname=/storage/ofd_packets [15:58:20]CheckFolder done [15:58:20]ProducePacketName [15:58:20]name=ofd_packets/00148894 [15:58:20]NVStorageSaveData ofd_packets/00148894 [15:58:20]File name is /storage/ofd_packets/00148894 [15:58:20]Write 301 bytes [15:58:20]NVStorageSaveData done [15:58:20]OFDSenderStorePacket done [15:58:20]KKMCreateOFDPacket done [15:58:20]NVStorageSaveData kkm_last_timestamp [15:58:20]File name is /storage/kkm_last_timestamp [15:58:20]Write 4 bytes [15:58:20]NVStorageSaveData done [15:58:20]ExternCall_PrintAddStr [15:58:20]wPrintStart [15:58:20]Write to MH i2c: 01 00 00 2A 19 43 [15:58:20]Write i2c OK [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: 01 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: 01 07 00 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: 01 07 00 2A 19 00 00 00 00 00 FF 0F 58 [15:58:20]RasterBufferAndPrint [15:58:20]line Счет N : (1)979822 [15:58:20]line ИНН: 02508201610067 [15:58:20]line Контрольно-Кассовый Чек [15:58:20]line ПРОДАЖА [15:58:20]line ТРК (МРК, ГНК) : 23 [15:58:20]line Товар: 2710124500 [15:58:20]line Аи-95-К-5 [15:58:20]line 4.060 * 73.90 [15:58:20]line = 300.03 [15:58:20]line НДС 12% НСП 1% [15:58:20]line > о реализуемом товаре [15:58:20]line ОКРУГЛЕНИЕ: -0.03 [15:58:20]line ИТОГО: 300.00 [15:58:20]line Внесено: 300.00 [15:58:20]line СДАЧА: 0.00 [15:58:20]line НСП 1% : 2.65 [15:58:20]line НДС 12% : 31.86 [15:58:20]line Наличными: 300.00 [15:58:20]line Безнал.: 0.00 [15:58:20]line Место: АЗС № 68 "Партнер Нефть" [15:58:20]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [15:58:20]line СНО: Общий режим [15:58:20]line Чек 233 04.06.2024 15:58 [15:58:20]line Смена: 368 ФФД: 1.0 [15:58:20]line ЗНМ: 0300000035 [15:58:20]line РНМ: 0000000000092720 [15:58:20]line Версия ККМ: 001 [15:58:20]line ФМ: 0000000000875057 [15:58:20]line ФД: 148894 [15:58:20]line ФПД: 66979199289547 [15:58:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155820&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148894&fm=66979199289547&tin=02508201610067®Number=0000000000092720&sum=30000 [15:58:21]OFD Sender: Processing packet 148894 [packets to send 100, broken 99] [15:58:21]ProducePacketName [15:58:21]name=ofd_packets/00148894 [15:58:21]OFD Sender: To server: pG, [15:58:21]CommunicateWithHost lk.salyk.kg:30040 [15:58:21]ConnectInit lk.salyk.kg [15:58:21]written 0, free lines is 4095 [15:58:21]Connected sock=9 [15:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C9 7A 07 01 CE 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 E9 00 00 00 F4 03 04 00 9C 39 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9E 45 02 00 35 04 06 00 3C EA CF 61 88 CB 1D D6 21 46 4C F0 4B E8 [15:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 27 08 47 00 BF 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9E 45 02 00 F4 03 04 00 C0 E0 5E 66 B6 04 01 00 00 C1 9F 5B B1 BA 96 6B 32 [15:58:21]CommunicateWithHost err = 0 [15:58:21]CheckOFDResponse [15:58:21]1017 (14) - 77093643461234 [15:58:21]1041 (16) - 0000000000875057 [15:58:21]1040 (4) - 148894 [15:58:21]1012 (4) - 04.06.2024 09:39 [15:58:21]1206 (1) - 0 [15:58:21]OFD Sender: Remove packet 148894 [15:58:21]ProducePacketName [15:58:21]name=ofd_packets/00148894 [15:58:21]NVStorageDeleteData [15:58:21]Write to MH i2c: 01 00 00 55 19 6E [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: 01 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: 01 07 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: 01 07 00 55 19 00 00 00 00 00 72 0C F3 [15:58:21]RasterBufferAndPrint [15:58:21]line [15:58:21]line [15:58:21]line [15:58:21]line [15:58:21]line [15:58:21]written 0, free lines is 3188 [15:58:21]MH_Cut [15:58:21]Write to MH i2c: D1 01 00 5C 19 01 47 [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: D1 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: D1 01 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: D1 01 00 5C 19 00 46 [15:58:21]Write to MH i2c: 01 00 00 5D 19 76 [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]OFD Sender: No OFD packet to send [15:58:22]*** Cut start [15:58:22]*** Partial cut [15:58:22]*** CUTSNS_PIN = 1 [15:58:22]*** CUTSNS_PIN = 0 [15:58:23]*** Brake cut motor [15:58:23]Read from MH i2c: 01 [15:58:23]MH_I2C_Read... [15:58:23]*** Stop cut motor [15:58:23]*** Cut end [15:58:23]Read from MH i2c: 01 07 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: 01 07 00 5D 19 00 00 00 00 00 FF 0F 8B [15:58:23]process_action close_receipt done [15:58:23]requested_data is exist [15:58:23]produce_requested_data [15:58:23]requested_item fm.sn is exist - process it [15:58:23]wFMCommunicate request_size=4 [15:58:23]MH_SAM_APDU [15:58:23]CAPDU: 80 11 00 00 [15:58:23]Write to MH i2c: E2 08 00 5E 19 80 11 00 00 00 00 00 00 F1 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:23]Read from MH i2c: E2 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 17 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 17 00 5E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 44 [15:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [15:58:23]wFMCommunicate OK [15:58:23]requested_item fd.num is exist - process it [15:58:23]SAM_PROTO_GetFieldsCounters [15:58:23]wFMCommunicate request_size=4 [15:58:23]MH_SAM_APDU [15:58:23]CAPDU: 80 13 00 00 [15:58:23]Write to MH i2c: E2 08 00 5F 19 80 13 00 00 00 00 00 00 F4 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:23]Read from MH i2c: E2 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 62 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 62 00 5F 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9E 45 02 00 0E 04 04 00 70 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 21 [15:58:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9E 45 02 00 0E 04 04 00 70 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 [15:58:23]wFMCommunicate OK [15:58:23]SAM_PROTO_GetFieldsCounters done [15:58:23]requested_item shift.num is exist - process it [15:58:23]requested_item shift.opened is exist - process it [15:58:23]req_shift_opened [15:58:23]FM_GetShiftState [15:58:23]SAM_PROTO_GetShiftState [15:58:23]wFMCommunicate request_size=4 [15:58:23]MH_SAM_APDU [15:58:23]CAPDU: 80 13 01 00 [15:58:23]Write to MH i2c: E2 08 00 60 19 80 13 01 00 00 00 00 00 F6 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 [15:58:23]MH_I2C_Read... [15:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:23]Read from MH i2c: E2 0E 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 0E 00 60 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B9 [15:58:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [15:58:23]wFMCommunicate OK [15:58:23]SAM_PROTO_GetShiftState done [15:58:23]FM_GetShiftState done [15:58:23]req_shift_opened done [15:58:23]requested_item shift.open_date is exist - process it [15:58:23]req_shift_open_date [15:58:23]req_shift_open_date done [15:58:23]produce_requested_data done [15:58:23]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148894,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [15:58:23]process_action_free close_receipt [15:58:23]json_value_free [15:58:23]json_value_free done [15:58:23]process_json_proto returns [15:58:23]Send response to host [15:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148894,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [15:58:23]free response buf [15:58:23]execute_script done [15:58:23]execute_script returns [15:58:23]free content buf [15:58:23]Sock 7.Close socket [15:58:23]Sock 7.Thread stoped [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:29]accept exits with 10 [16:01:29]New connection [16:01:29]New thread 3067407716 created [16:01:29]Thread 3067264356 joined [16:01:29]Waiting for new connection... [16:01:29] Sock 10.Parse request [16:01:29]Sock 10.Check first char [16:01:29]Sock 10.First char is OK [16:01:29]request: POST /json_proto HTTP/1.0 [16:01:29]Method: POST [16:01:29]URL: /json_proto [16:01:29]Method is POST - this is cgi request [16:01:29]url: /json_proto [16:01:29]query_string will be loaded in cgi processing [16:01:29]execute_cgi json_proto POST (null) [16:01:29]execute_cgi path=json_proto method=POST [16:01:29]POST find Content-Length [16:01:29]Host: 172.17.38.4:8080 [16:01:29]Content-Length: 674 [16:01:29]Content-Type: application/json [16:01:29] [16:01:29]POST finish read [16:01:29]Found Content-Length = 674 [16:01:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [16:01:29]execute_script... [16:01: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)979823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [16:01:29]POST & json_proto [16:01:29]process_json_proto [16:01:29]json parsed OK: [16:01:29]protocol is kg_v1.0 [16:01:29]action value=close_receipt [16:01:29]process_action close_receipt [16:01:29]cmd_close_receipt [16:01:29]MH_GetDate [16:01:29]Write to MH i2c: F0 00 00 61 19 69 [16:01:29]Write i2c OK [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: F0 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: F0 09 00 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: F0 09 00 61 19 00 5A 3A 5F 66 CC 51 87 64 D3 [16:01:29]GetLastDocTimeStamp 1717516700 [16:01:29]current date 1717516890 [16:01:29]FM_GetShiftState [16:01:29]SAM_PROTO_GetShiftState [16:01:29]wFMCommunicate request_size=4 [16:01:29]MH_SAM_APDU [16:01:29]CAPDU: 80 13 01 00 [16:01:29]Write to MH i2c: E2 08 00 62 19 80 13 01 00 00 00 00 00 F8 [16:01:29]Write i2c OK [16:01:29]MH_I2C_Read... [16:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:29]Read from MH i2c: E2 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 0E 00 [16:01:29]MH_I2C_Read... [16:01:29]Read from MH i2c: E2 0E 00 62 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BB [16:01:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:01:29]wFMCommunicate OK [16:01:29]SAM_PROTO_GetShiftState done [16:01:29]FM_GetShiftState done [16:01:29]opened in 1717460629 [16:01:29]opened+sec_in_day 1717547029 [16:01:29]quantity*price = 50009 [16:01:29]sum+1 = 50010 [16:01:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 234 04.06.2024 16:01 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148895 ФПД: 158093976049287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160130&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148895&fm=158093976049287&tin=02508201610067®Number=0000000000092720&sum=50000 [16:01:30]StoreToDocumentArchive [16:01:30]shift 368 fd 148895 [16:01:30]save to /storage/0368/doc_00148895 [16:01:30]save last doc name /storage/0368/doc_00148895 to /storage/kkm_last_doc_name [16:01:30]save OK [16:01:30]Clear old archive folders... [16:01:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:01:30]tlvbuf is 00479140 [16:01:30]SAM_PROTO_ClearQueue [16:01:30]wFMCommunicate request_size=4 [16:01:30]MH_SAM_APDU [16:01:30]CAPDU: 80 09 00 00 [16:01:30]Write to MH i2c: E2 08 00 6F 19 80 09 00 00 00 00 00 00 FA [16:01:30]Write i2c OK [16:01:30]MH_I2C_Read... [16:01:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:30]Read from MH i2c: E2 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 03 00 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 03 00 6F 19 00 90 00 FC [16:01:30]RAPDU: 90 00 [16:01:30]wFMCommunicate OK [16:01:30]SAM_PROTO_ClearQueue done [16:01:30]KKMCreateOFDPacket [16:01:30]OFDProtocolAddRootSTLVToBuf [16:01:30]FM_MakeSignedData [16:01:30]FM_MakeSignedData [16:01:30]SAM_PROTO_SignData [16:01:30]wFMCommunicate request_size=4 [16:01:30]MH_SAM_APDU [16:01:30]CAPDU: 80 0D 01 02 [16:01:30]Write to MH i2c: E2 08 00 70 19 80 0D 01 02 00 00 00 00 02 [16:01:30]Write i2c OK [16:01:30]MH_I2C_Read... [16:01:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:30]Read from MH i2c: E2 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 03 00 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [16:01:30]RAPDU: 90 00 [16:01:30]wFMCommunicate OK [16:01:30]wFMCommunicate request_size=255 [16:01:30]MH_SAM_APDU [16:01:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 EA 00 00 00 F4 03 04 00 5A 3A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9F 45 02 00 35 04 06 00 8F C9 1F 48 [16:01:30]Write to MH i2c: E2 02 01 71 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 EA 00 00 00 F4 03 04 00 5A 3A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9F 45 02 00 35 04 06 00 8F C9 1F 48 00 00 00 [16:01:30]Write i2c OK [16:01:30]MH_I2C_Read... [16:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:30]Read from MH i2c: E2 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 03 00 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 03 00 71 19 00 90 00 FE [16:01:30]RAPDU: 90 00 [16:01:30]wFMCommunicate OK [16:01:30]wFMCommunicate request_size=7 [16:01:30]MH_SAM_APDU [16:01:30]CAPDU: 80 0D 02 02 02 96 87 [16:01:30]Write to MH i2c: E2 0A 00 72 19 80 0D 02 02 02 00 96 87 00 00 26 [16:01:30]Write i2c OK [16:01:30]MH_I2C_Read... [16:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:30]Read from MH i2c: E2 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 03 00 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 03 00 72 19 00 90 00 FF [16:01:30]RAPDU: 90 00 [16:01:30]wFMCommunicate OK [16:01:30]wFMCommunicate request_size=4 [16:01:30]MH_SAM_APDU [16:01:30]CAPDU: 80 0D 03 02 [16:01:30]Write to MH i2c: E2 08 00 73 19 80 0D 03 02 00 00 00 00 07 [16:01:30]Write i2c OK [16:01:30]MH_I2C_Read... [16:01:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:30]Read from MH i2c: E2 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 0B 00 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 0B 00 73 19 00 69 05 6C 33 CF 8A F4 A2 90 00 04 [16:01:30]RAPDU: 69 05 6C 33 CF 8A F4 A2 90 00 [16:01:30]wFMCommunicate OK [16:01:30]SAM_PROTO_SignData done [16:01:30]FM_MakeSignedData done [16:01:30]CreateOFDProtocolMessage [16:01:30]wFMCommunicate request_size=4 [16:01:30]MH_SAM_APDU [16:01:30]CAPDU: 80 11 00 00 [16:01:30]Write to MH i2c: E2 08 00 74 19 80 11 00 00 00 00 00 00 07 [16:01:30]Write i2c OK [16:01:30]MH_I2C_Read... [16:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:30]Read from MH i2c: E2 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 17 00 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: E2 17 00 74 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5A [16:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:01:30]wFMCommunicate OK [16:01:30]CreateOFDProtocolMessage done [16:01:30]OFDSenderStorePacket 148895 [16:01:30]StoreOFDPacket docnum=148895 [16:01:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 58 95 04 01 F0 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 EA 00 00 00 F4 03 04 00 5A 3A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9F 45 02 00 35 04 06 00 8F C9 1F 48 96 87 69 05 6C 33 CF 8A F4 A2 [16:01:30]CheckFolder [16:01:30]dirname=/storage/ofd_packets [16:01:30]CheckFolder done [16:01:30]ProducePacketName [16:01:30]name=ofd_packets/00148895 [16:01:30]NVStorageSaveData ofd_packets/00148895 [16:01:30]File name is /storage/ofd_packets/00148895 [16:01:30]Write 298 bytes [16:01:30]NVStorageSaveData done [16:01:30]OFDSenderStorePacket done [16:01:30]KKMCreateOFDPacket done [16:01:30]NVStorageSaveData kkm_last_timestamp [16:01:30]File name is /storage/kkm_last_timestamp [16:01:30]Write 4 bytes [16:01:30]NVStorageSaveData done [16:01:30]ExternCall_PrintAddStr [16:01:30]wPrintStart [16:01:30]Write to MH i2c: 01 00 00 75 19 8E [16:01:30]Write i2c OK [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: 01 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: 01 07 00 [16:01:30]MH_I2C_Read... [16:01:30]Read from MH i2c: 01 07 00 75 19 00 00 00 00 00 FF 0F A3 [16:01:30]RasterBufferAndPrint [16:01:30]line Счет N : (1)979823 [16:01:30]line ИНН: 02508201610067 [16:01:30]line Контрольно-Кассовый Чек [16:01:30]line ПРОДАЖА [16:01:30]line ТРК (МРК, ГНК) : 52 [16:01:30]line Товар: 2710194210 [16:01:30]line ДТ-К-5 [16:01:30]line 6.860 * 72.90 [16:01:30]line = 500.09 [16:01:30]line НДС 12% НСП 1% [16:01:30]line > о реализуемом товаре [16:01:30]line ОКРУГЛЕНИЕ: -0.09 [16:01:30]line ИТОГО: 500.00 [16:01:30]line Внесено: 500.00 [16:01:30]line СДАЧА: 0.00 [16:01:30]line НСП 1% : 4.43 [16:01:30]line НДС 12% : 53.11 [16:01:30]line Наличными: 500.00 [16:01:30]line Безнал.: 0.00 [16:01:30]line Место: АЗС № 68 "Партнер Нефть" [16:01:30]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:01:30]line СНО: Общий режим [16:01:30]line Чек 234 04.06.2024 16:01 [16:01:30]line Смена: 368 ФФД: 1.0 [16:01:30]line ЗНМ: 0300000035 [16:01:30]line РНМ: 0000000000092720 [16:01:30]line Версия ККМ: 001 [16:01:30]line ФМ: 0000000000875057 [16:01:30]line ФД: 148895 [16:01:30]line ФПД: 158093976049287 [16:01:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160130&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148895&fm=158093976049287&tin=02508201610067®Number=0000000000092720&sum=50000 [16:01:31]OFD Sender: Processing packet 148895 [packets to send 100, broken 99] [16:01:31]ProducePacketName [16:01:31]name=ofd_packets/00148895 [16:01:31]OFD Sender: To server: pG, [16:01:31]CommunicateWithHost lk.salyk.kg:30040 [16:01:31]ConnectInit lk.salyk.kg [16:01:31]written 0, free lines is 4095 [16:01:31]Connected sock=9 [16:01:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 58 95 04 01 F0 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 EA 00 00 00 F4 03 04 00 5A 3A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9F 45 02 00 35 04 06 00 8F C9 1F 48 96 87 69 05 6C 33 CF 8A F4 A2 [16:01:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 49 C0 47 00 F6 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 9F 45 02 00 F4 03 04 00 7E E1 5E 66 B6 04 01 00 00 8F DA 3E 4E C4 99 F7 5E [16:01:31]CommunicateWithHost err = 0 [16:01:31]CheckOFDResponse [16:01:31]1017 (14) - 77093643461234 [16:01:31]1041 (16) - 0000000000875057 [16:01:31]1040 (4) - 148895 [16:01:31]1012 (4) - 04.06.2024 09:42 [16:01:31]1206 (1) - 0 [16:01:31]OFD Sender: Remove packet 148895 [16:01:31]ProducePacketName [16:01:31]name=ofd_packets/00148895 [16:01:31]NVStorageDeleteData [16:01:31]Write to MH i2c: 01 00 00 A0 19 B9 [16:01:31]Write i2c OK [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: 01 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: 01 07 00 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: 01 07 00 A0 19 00 00 00 00 00 60 0C 2C [16:01:31]RasterBufferAndPrint [16:01:31]line [16:01:31]line [16:01:31]line [16:01:31]line [16:01:31]line [16:01:31]written 0, free lines is 3172 [16:01:31]MH_Cut [16:01:31]Write to MH i2c: D1 01 00 A7 19 01 92 [16:01:31]Write i2c OK [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: D1 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: D1 01 00 [16:01:31]MH_I2C_Read... [16:01:31]Read from MH i2c: D1 01 00 A7 19 00 91 [16:01:31]Write to MH i2c: 01 00 00 A8 19 C1 [16:01:31]Write i2c OK [16:01:31]MH_I2C_Read... [16:01:32]OFD Sender: No OFD packet to send [16:01:33]*** Cut start [16:01:33]*** Partial cut [16:01:33]*** CUTSNS_PIN = 1 [16:01:33]*** CUTSNS_PIN = 0 [16:01:33]*** Brake cut motor [16:01:33]Read from MH i2c: 01 [16:01:33]MH_I2C_Read... [16:01:33]*** Stop cut motor [16:01:33]*** Cut end [16:01:33]Read from MH i2c: 01 07 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: 01 07 00 A8 19 00 00 00 00 00 FF 0F D6 [16:01:33]process_action close_receipt done [16:01:33]requested_data is exist [16:01:33]produce_requested_data [16:01:33]requested_item fm.sn is exist - process it [16:01:33]wFMCommunicate request_size=4 [16:01:33]MH_SAM_APDU [16:01:33]CAPDU: 80 11 00 00 [16:01:33]Write to MH i2c: E2 08 00 A9 19 80 11 00 00 00 00 00 00 3C [16:01:33]Write i2c OK [16:01:33]MH_I2C_Read... [16:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:33]Read from MH i2c: E2 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 17 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 17 00 A9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8F [16:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:01:33]wFMCommunicate OK [16:01:33]requested_item fd.num is exist - process it [16:01:33]SAM_PROTO_GetFieldsCounters [16:01:33]wFMCommunicate request_size=4 [16:01:33]MH_SAM_APDU [16:01:33]CAPDU: 80 13 00 00 [16:01:33]Write to MH i2c: E2 08 00 AA 19 80 13 00 00 00 00 00 00 3F [16:01:33]Write i2c OK [16:01:33]MH_I2C_Read... [16:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:33]Read from MH i2c: E2 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 62 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 62 00 AA 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9F 45 02 00 0E 04 04 00 70 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 70 [16:01:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 9F 45 02 00 0E 04 04 00 70 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 [16:01:33]wFMCommunicate OK [16:01:33]SAM_PROTO_GetFieldsCounters done [16:01:33]requested_item shift.num is exist - process it [16:01:33]requested_item shift.opened is exist - process it [16:01:33]req_shift_opened [16:01:33]FM_GetShiftState [16:01:33]SAM_PROTO_GetShiftState [16:01:33]wFMCommunicate request_size=4 [16:01:33]MH_SAM_APDU [16:01:33]CAPDU: 80 13 01 00 [16:01:33]Write to MH i2c: E2 08 00 AB 19 80 13 01 00 00 00 00 00 41 [16:01:33]Write i2c OK [16:01:33]MH_I2C_Read... [16:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:33]Read from MH i2c: E2 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 0E 00 [16:01:33]MH_I2C_Read... [16:01:33]Read from MH i2c: E2 0E 00 AB 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 04 [16:01:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:01:33]wFMCommunicate OK [16:01:33]SAM_PROTO_GetShiftState done [16:01:33]FM_GetShiftState done [16:01:33]req_shift_opened done [16:01:33]requested_item shift.open_date is exist - process it [16:01:33]req_shift_open_date [16:01:33]req_shift_open_date done [16:01:33]produce_requested_data done [16:01:33]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148895,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:01:33]process_action_free close_receipt [16:01:33]json_value_free [16:01:33]json_value_free done [16:01:33]process_json_proto returns [16:01:33]Send response to host [16:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148895,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:01:33]free response buf [16:01:33]execute_script done [16:01:33]execute_script returns [16:01:33]free content buf [16:01:33]Sock 10.Close socket [16:01:33]Sock 10.Thread stoped [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:03]accept exits with 7 [16:02:03]New connection [16:02:03]New thread 3067264356 created [16:02:03] Sock 7.Parse request [16:02:03]Thread 3067407716 joined [16:02:03]Sock 7.Check first char [16:02:03]Waiting for new connection... [16:02:03]Sock 7.First char is OK [16:02:03]request: POST /json_proto HTTP/1.0 [16:02:03]Method: POST [16:02:03]URL: /json_proto [16:02:03]Method is POST - this is cgi request [16:02:03]url: /json_proto [16:02:03]query_string will be loaded in cgi processing [16:02:03]execute_cgi json_proto POST (null) [16:02:03]execute_cgi path=json_proto method=POST [16:02:03]POST find Content-Length [16:02:03]Host: 172.17.38.4:8080 [16:02:03]Content-Length: 677 [16:02:03]Content-Type: application/json [16:02:03] [16:02:03]POST finish read [16:02:03]Found Content-Length = 677 [16:02:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:03]execute_script... [16:02: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)979824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:03]POST & json_proto [16:02:03]process_json_proto [16:02:03]json parsed OK: [16:02:03]protocol is kg_v1.0 [16:02:03]action value=close_receipt [16:02:03]process_action close_receipt [16:02:03]cmd_close_receipt [16:02:03]MH_GetDate [16:02:03]Write to MH i2c: F0 00 00 AC 19 B4 [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: F0 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: F0 09 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: F0 09 00 AC 19 00 7C 3A 5F 66 CC 51 87 64 40 [16:02:03]GetLastDocTimeStamp 1717516890 [16:02:03]current date 1717516924 [16:02:03]FM_GetShiftState [16:02:03]SAM_PROTO_GetShiftState [16:02:03]wFMCommunicate request_size=4 [16:02:03]MH_SAM_APDU [16:02:03]CAPDU: 80 13 01 00 [16:02:03]Write to MH i2c: E2 08 00 AD 19 80 13 01 00 00 00 00 00 43 [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:03]Read from MH i2c: E2 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 0E 00 [16:02:03]MH_I2C_Read... [16:02:03]Read from MH i2c: E2 0E 00 AD 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 06 [16:02:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:02:03]wFMCommunicate OK [16:02:03]SAM_PROTO_GetShiftState done [16:02:03]FM_GetShiftState done [16:02:03]opened in 1717460629 [16:02:03]opened+sec_in_day 1717547029 [16:02:03]quantity*price = 30038 [16:02:03]sum+1 = 30039 [16:02:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 235 04.06.2024 16:02 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148896 ФПД: 90903191073325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160204&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148896&fm=90903191073325&tin=02508201610067®Number=0000000000092720&sum=30000 [16:02:04]StoreToDocumentArchive [16:02:04]shift 368 fd 148896 [16:02:04]save to /storage/0368/doc_00148896 [16:02:04]save last doc name /storage/0368/doc_00148896 to /storage/kkm_last_doc_name [16:02:04]save OK [16:02:04]Clear old archive folders... [16:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:04]tlvbuf is 004C0E40 [16:02:04]SAM_PROTO_ClearQueue [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 09 00 00 [16:02:04]Write to MH i2c: E2 08 00 BA 19 80 09 00 00 00 00 00 00 45 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 BA 19 00 90 00 47 [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]SAM_PROTO_ClearQueue done [16:02:04]KKMCreateOFDPacket [16:02:04]OFDProtocolAddRootSTLVToBuf [16:02:04]FM_MakeSignedData [16:02:04]FM_MakeSignedData [16:02:04]SAM_PROTO_SignData [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 0D 01 02 [16:02:04]Write to MH i2c: E2 08 00 BB 19 80 0D 01 02 00 00 00 00 4D [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 BB 19 00 90 00 48 [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]wFMCommunicate request_size=255 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EB 00 00 00 F4 03 04 00 7C 3A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A0 45 02 00 35 04 06 00 52 [16:02:04]Write to MH i2c: E2 02 01 BC 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EB 00 00 00 F4 03 04 00 7C 3A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A0 45 02 00 35 04 06 00 52 00 00 DB [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 BC 19 00 90 00 49 [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]wFMCommunicate request_size=10 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 0D 02 02 05 AD 0C 69 B2 2D [16:02:04]Write to MH i2c: E2 0D 00 BD 19 80 0D 02 02 05 00 AD 0C 69 B2 2D 00 00 5B [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 0D 03 02 [16:02:04]Write to MH i2c: E2 08 00 BE 19 80 0D 03 02 00 00 00 00 52 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 0B 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 0B 00 BE 19 00 3C 02 D2 13 BB AC 92 F0 90 00 5F [16:02:04]RAPDU: 3C 02 D2 13 BB AC 92 F0 90 00 [16:02:04]wFMCommunicate OK [16:02:04]SAM_PROTO_SignData done [16:02:04]FM_MakeSignedData done [16:02:04]CreateOFDProtocolMessage [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 11 00 00 [16:02:04]Write to MH i2c: E2 08 00 BF 19 80 11 00 00 00 00 00 00 52 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:05]Read from MH i2c: E2 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: E2 17 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: E2 17 00 BF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A5 [16:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:02:05]wFMCommunicate OK [16:02:05]CreateOFDProtocolMessage done [16:02:05]OFDSenderStorePacket 148896 [16:02:05]StoreOFDPacket docnum=148896 [16:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 EC FA 07 01 6F 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EB 00 00 00 F4 03 04 00 7C 3A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A0 45 02 00 35 04 06 00 52 AD 0C 69 B2 2D 3C 02 D2 13 BB AC 92 F0 [16:02:05]CheckFolder [16:02:05]dirname=/storage/ofd_packets [16:02:05]CheckFolder done [16:02:05]ProducePacketName [16:02:05]name=ofd_packets/00148896 [16:02:05]NVStorageSaveData ofd_packets/00148896 [16:02:05]File name is /storage/ofd_packets/00148896 [16:02:05]Write 301 bytes [16:02:05]NVStorageSaveData done [16:02:05]OFDSenderStorePacket done [16:02:05]KKMCreateOFDPacket done [16:02:05]NVStorageSaveData kkm_last_timestamp [16:02:05]File name is /storage/kkm_last_timestamp [16:02:05]Write 4 bytes [16:02:05]NVStorageSaveData done [16:02:05]ExternCall_PrintAddStr [16:02:05]wPrintStart [16:02:05]Write to MH i2c: 01 00 00 C0 19 D9 [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 07 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 07 00 C0 19 00 00 00 00 00 FF 0F EE [16:02:05]RasterBufferAndPrint [16:02:05]line Счет N : (1)979824 [16:02:05]line ИНН: 02508201610067 [16:02:05]line Контрольно-Кассовый Чек [16:02:05]line ПРОДАЖА [16:02:05]line ТРК (МРК, ГНК) : 31 [16:02:05]line Товар: 2710124130 [16:02:05]line Аи-92-К-5 [16:02:05]line 4.490 * 66.90 [16:02:05]line = 300.38 [16:02:05]line НДС 12% НСП 1% [16:02:05]line > о реализуемом товаре [16:02:05]line ОКРУГЛЕНИЕ: -0.38 [16:02:05]line ИТОГО: 300.00 [16:02:05]line Внесено: 300.00 [16:02:05]line СДАЧА: 0.00 [16:02:05]line НСП 1% : 2.66 [16:02:05]line НДС 12% : 31.90 [16:02:05]line Наличными: 300.00 [16:02:05]line Безнал.: 0.00 [16:02:05]line Место: АЗС № 68 "Партнер Нефть" [16:02:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:02:05]line СНО: Общий режим [16:02:05]line Чек 235 04.06.2024 16:02 [16:02:05]line Смена: 368 ФФД: 1.0 [16:02:05]line ЗНМ: 0300000035 [16:02:05]line РНМ: 0000000000092720 [16:02:05]line Версия ККМ: 001 [16:02:05]line ФМ: 0000000000875057 [16:02:05]line ФД: 148896 [16:02:05]line ФПД: 90903191073325 [16:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160204&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148896&fm=90903191073325&tin=02508201610067®Number=0000000000092720&sum=30000 [16:02:05]OFD Sender: Processing packet 148896 [packets to send 100, broken 99] [16:02:05]ProducePacketName [16:02:05]name=ofd_packets/00148896 [16:02:05]OFD Sender: To server: pG, [16:02:05]CommunicateWithHost lk.salyk.kg:30040 [16:02:05]ConnectInit lk.salyk.kg [16:02:05]written 0, free lines is 4095 [16:02:05]Connected sock=11 [16:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 EC FA 07 01 6F 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EB 00 00 00 F4 03 04 00 7C 3A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A0 45 02 00 35 04 06 00 52 AD 0C 69 B2 2D 3C 02 D2 13 BB AC 92 F0 [16:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F5 CD 47 00 3D 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A0 45 02 00 F4 03 04 00 A0 E1 5E 66 B6 04 01 00 00 E5 16 C8 2E E2 A2 B8 6E [16:02:05]CommunicateWithHost err = 0 [16:02:05]CheckOFDResponse [16:02:05]1017 (14) - 77093643461234 [16:02:05]1041 (16) - 0000000000875057 [16:02:05]1040 (4) - 148896 [16:02:05]1012 (4) - 04.06.2024 09:42 [16:02:05]1206 (1) - 0 [16:02:05]OFD Sender: Remove packet 148896 [16:02:05]ProducePacketName [16:02:05]name=ofd_packets/00148896 [16:02:05]NVStorageDeleteData [16:02:05]Write to MH i2c: 01 00 00 EB 19 04 [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 07 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 07 00 EB 19 00 00 00 00 00 68 0C 7F [16:02:05]RasterBufferAndPrint [16:02:05]line [16:02:05]line [16:02:05]line [16:02:05]line [16:02:05]line [16:02:05]written 0, free lines is 3179 [16:02:05]MH_Cut [16:02:05]Write to MH i2c: D1 01 00 F2 19 01 DD [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: D1 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: D1 01 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: D1 01 00 F2 19 00 DC [16:02:05]Write to MH i2c: 01 00 00 F3 19 0C [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:06]OFD Sender: No OFD packet to send [16:02:07]*** Cut start [16:02:07]*** Partial cut [16:02:07]*** CUTSNS_PIN = 1 [16:02:07]*** CUTSNS_PIN = 0 [16:02:07]*** Brake cut motor [16:02:07]Read from MH i2c: 01 [16:02:07]MH_I2C_Read... [16:02:07]*** Stop cut motor [16:02:07]*** Cut end [16:02:07]Read from MH i2c: 01 07 00 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 FF 0F 21 [16:02:07]process_action close_receipt done [16:02:07]requested_data is exist [16:02:07]produce_requested_data [16:02:07]requested_item fm.sn is exist - process it [16:02:07]wFMCommunicate request_size=4 [16:02:07]MH_SAM_APDU [16:02:07]CAPDU: 80 11 00 00 [16:02:07]Write to MH i2c: E2 08 00 F4 19 80 11 00 00 00 00 00 00 87 [16:02:07]Write i2c OK [16:02:07]MH_I2C_Read... [16:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:07]Read from MH i2c: E2 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 17 00 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 17 00 F4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DA [16:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:02:07]wFMCommunicate OK [16:02:07]requested_item fd.num is exist - process it [16:02:07]SAM_PROTO_GetFieldsCounters [16:02:07]wFMCommunicate request_size=4 [16:02:07]MH_SAM_APDU [16:02:07]CAPDU: 80 13 00 00 [16:02:07]Write to MH i2c: E2 08 00 F5 19 80 13 00 00 00 00 00 00 8A [16:02:07]Write i2c OK [16:02:07]MH_I2C_Read... [16:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:07]Read from MH i2c: E2 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 62 00 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 62 00 F5 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A0 45 02 00 0E 04 04 00 70 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 BF [16:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A0 45 02 00 0E 04 04 00 70 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 [16:02:07]wFMCommunicate OK [16:02:07]SAM_PROTO_GetFieldsCounters done [16:02:07]requested_item shift.num is exist - process it [16:02:07]requested_item shift.opened is exist - process it [16:02:07]req_shift_opened [16:02:07]FM_GetShiftState [16:02:07]SAM_PROTO_GetShiftState [16:02:07]wFMCommunicate request_size=4 [16:02:07]MH_SAM_APDU [16:02:07]CAPDU: 80 13 01 00 [16:02:07]Write to MH i2c: E2 08 00 F6 19 80 13 01 00 00 00 00 00 8C [16:02:07]Write i2c OK [16:02:07]MH_I2C_Read... [16:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:07]Read from MH i2c: E2 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 0E 00 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 0E 00 F6 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4F [16:02:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:02:07]wFMCommunicate OK [16:02:07]SAM_PROTO_GetShiftState done [16:02:07]FM_GetShiftState done [16:02:07]req_shift_opened done [16:02:07]requested_item shift.open_date is exist - process it [16:02:07]req_shift_open_date [16:02:07]req_shift_open_date done [16:02:07]produce_requested_data done [16:02:07]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148896,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:02:07]process_action_free close_receipt [16:02:07]json_value_free [16:02:07]json_value_free done [16:02:07]process_json_proto returns [16:02:07]Send response to host [16:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148896,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:02:07]free response buf [16:02:07]execute_script done [16:02:07]execute_script returns [16:02:07]free content buf [16:02:07]Sock 7.Close socket [16:02:07]Sock 7.Thread stoped [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]accept exits with 9 [16:11:06]New connection [16:11:06]New thread 3067407716 created [16:11:06]Thread 3067264356 joined [16:11:06]Waiting for new connection... [16:11:06] Sock 9.Parse request [16:11:06]Sock 9.Check first char [16:11:06]Sock 9.First char is OK [16:11:06]request: POST /json_proto HTTP/1.0 [16:11:06]Method: POST [16:11:06]URL: /json_proto [16:11:06]Method is POST - this is cgi request [16:11:06]url: /json_proto [16:11:06]query_string will be loaded in cgi processing [16:11:06]execute_cgi json_proto POST (null) [16:11:06]execute_cgi path=json_proto method=POST [16:11:06]POST find Content-Length [16:11:06]Host: 172.17.38.4:8080 [16:11:06]Content-Length: 677 [16:11:06]Content-Type: application/json [16:11:06] [16:11:06]POST finish read [16:11:06]Found Content-Length = 677 [16:11:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:06]execute_script... [16:11:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:06]POST & json_proto [16:11:06]process_json_proto [16:11:06]json parsed OK: [16:11:06]protocol is kg_v1.0 [16:11:06]action value=close_receipt [16:11:06]process_action close_receipt [16:11:06]cmd_close_receipt [16:11:06]MH_GetDate [16:11:06]Write to MH i2c: F0 00 00 F7 19 FF [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: F0 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: F0 09 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: F0 09 00 F7 19 00 9C 3C 5F 66 CC 51 87 64 AD [16:11:06]GetLastDocTimeStamp 1717516924 [16:11:06]current date 1717517468 [16:11:06]FM_GetShiftState [16:11:06]SAM_PROTO_GetShiftState [16:11:06]wFMCommunicate request_size=4 [16:11:06]MH_SAM_APDU [16:11:06]CAPDU: 80 13 01 00 [16:11:06]Write to MH i2c: E2 08 00 F8 19 80 13 01 00 00 00 00 00 8E [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:06]Read from MH i2c: E2 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: E2 0E 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: E2 0E 00 F8 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 51 [16:11:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:11:06]wFMCommunicate OK [16:11:06]SAM_PROTO_GetShiftState done [16:11:06]FM_GetShiftState done [16:11:06]opened in 1717460629 [16:11:06]opened+sec_in_day 1717547029 [16:11:06]quantity*price = 30038 [16:11:06]sum+1 = 30039 [16:11: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 236 04.06.2024 16:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148897 ФПД: 155187760335153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161108&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148897&fm=155187760335153&tin=02508201610067®Number=0000000000092720&sum=30000 [16:11:07]StoreToDocumentArchive [16:11:07]shift 368 fd 148897 [16:11:07]save to /storage/0368/doc_00148897 [16:11:07]save last doc name /storage/0368/doc_00148897 to /storage/kkm_last_doc_name [16:11:07]save OK [16:11:07]Clear old archive folders... [16:11:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:07]tlvbuf is 004B8010 [16:11:07]SAM_PROTO_ClearQueue [16:11:07]wFMCommunicate request_size=4 [16:11:07]MH_SAM_APDU [16:11:07]CAPDU: 80 09 00 00 [16:11:07]Write to MH i2c: E2 08 00 05 1A 80 09 00 00 00 00 00 00 91 [16:11:07]Write i2c OK [16:11:07]MH_I2C_Read... [16:11:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:07]Read from MH i2c: E2 [16:11:07]MH_I2C_Read... [16:11:07]Read from MH i2c: E2 03 00 [16:11:07]MH_I2C_Read... [16:11:07]Read from MH i2c: E2 03 00 05 1A 00 90 00 93 [16:11:07]RAPDU: 90 00 [16:11:07]wFMCommunicate OK [16:11:07]SAM_PROTO_ClearQueue done [16:11:07]KKMCreateOFDPacket [16:11:07]OFDProtocolAddRootSTLVToBuf [16:11:07]FM_MakeSignedData [16:11:07]FM_MakeSignedData [16:11:07]SAM_PROTO_SignData [16:11:07]wFMCommunicate request_size=4 [16:11:07]MH_SAM_APDU [16:11:07]CAPDU: 80 0D 01 02 [16:11:07]Write to MH i2c: E2 08 00 06 1A 80 0D 01 02 00 00 00 00 99 [16:11:07]Write i2c OK [16:11:07]MH_I2C_Read... [16:11:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:07]Read from MH i2c: E2 [16:11:07]MH_I2C_Read... [16:11:07]Read from MH i2c: E2 03 00 [16:11:07]MH_I2C_Read... [16:11:07]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [16:11:07]RAPDU: 90 00 [16:11:07]wFMCommunicate OK [16:11:07]wFMCommunicate request_size=255 [16:11:07]MH_SAM_APDU [16:11:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EC 00 00 00 F4 03 04 00 9C 3C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A1 45 02 00 35 04 06 00 8D [16:11:07]Write to MH i2c: E2 02 01 07 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EC 00 00 00 F4 03 04 00 9C 3C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A1 45 02 00 35 04 06 00 8D 00 00 86 [16:11:07]Write i2c OK [16:11:07]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [16:11:08]RAPDU: 90 00 [16:11:08]wFMCommunicate OK [16:11:08]wFMCommunicate request_size=10 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 0D 02 02 05 24 77 54 09 31 [16:11:08]Write to MH i2c: E2 0D 00 08 1A 80 0D 02 02 05 00 24 77 54 09 31 00 00 CF [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 03 00 08 1A 00 90 00 96 [16:11:08]RAPDU: 90 00 [16:11:08]wFMCommunicate OK [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 0D 03 02 [16:11:08]Write to MH i2c: E2 08 00 09 1A 80 0D 03 02 00 00 00 00 9E [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 0B 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 0B 00 09 1A 00 C7 A4 F7 A9 3B DF 3B 2C 90 00 2B [16:11:08]RAPDU: C7 A4 F7 A9 3B DF 3B 2C 90 00 [16:11:08]wFMCommunicate OK [16:11:08]SAM_PROTO_SignData done [16:11:08]FM_MakeSignedData done [16:11:08]CreateOFDProtocolMessage [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 11 00 00 [16:11:08]Write to MH i2c: E2 08 00 0A 1A 80 11 00 00 00 00 00 00 9E [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 17 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 17 00 0A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F1 [16:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:11:08]wFMCommunicate OK [16:11:08]CreateOFDProtocolMessage done [16:11:08]OFDSenderStorePacket 148897 [16:11:08]StoreOFDPacket docnum=148897 [16:11:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E6 CA 07 01 1B 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 9C 3C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A1 45 02 00 35 04 06 00 8D 24 77 54 09 31 C7 A4 F7 A9 3B DF 3B 2C [16:11:08]CheckFolder [16:11:08]dirname=/storage/ofd_packets [16:11:08]CheckFolder done [16:11:08]ProducePacketName [16:11:08]name=ofd_packets/00148897 [16:11:08]NVStorageSaveData ofd_packets/00148897 [16:11:08]File name is /storage/ofd_packets/00148897 [16:11:08]Write 301 bytes [16:11:08]NVStorageSaveData done [16:11:08]OFDSenderStorePacket done [16:11:08]KKMCreateOFDPacket done [16:11:08]NVStorageSaveData kkm_last_timestamp [16:11:08]File name is /storage/kkm_last_timestamp [16:11:08]Write 4 bytes [16:11:08]NVStorageSaveData done [16:11:08]ExternCall_PrintAddStr [16:11:08]wPrintStart [16:11:08]Write to MH i2c: 01 00 00 0B 1A 25 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: 01 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: 01 07 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: 01 07 00 0B 1A 00 00 00 00 00 FF 0F 3A [16:11:08]RasterBufferAndPrint [16:11:08]line Счет N : (1)979825 [16:11:08]line ИНН: 02508201610067 [16:11:08]line Контрольно-Кассовый Чек [16:11:08]line ПРОДАЖА [16:11:08]line ТРК (МРК, ГНК) : 41 [16:11:08]line Товар: 2710124130 [16:11:08]line Аи-92-К-5 [16:11:08]line 4.490 * 66.90 [16:11:08]line = 300.38 [16:11:08]line НДС 12% НСП 1% [16:11:08]line > о реализуемом товаре [16:11:08]line ОКРУГЛЕНИЕ: -0.38 [16:11:08]line ИТОГО: 300.00 [16:11:08]line Внесено: 300.00 [16:11:08]line СДАЧА: 0.00 [16:11:08]line НСП 1% : 2.66 [16:11:08]line НДС 12% : 31.90 [16:11:08]line Наличными: 300.00 [16:11:08]line Безнал.: 0.00 [16:11:08]line Место: АЗС № 68 "Партнер Нефть" [16:11:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:11:08]line СНО: Общий режим [16:11:08]line Чек 236 04.06.2024 16:11 [16:11:08]line Смена: 368 ФФД: 1.0 [16:11:08]line ЗНМ: 0300000035 [16:11:08]line РНМ: 0000000000092720 [16:11:08]line Версия ККМ: 001 [16:11:08]line ФМ: 0000000000875057 [16:11:08]line ФД: 148897 [16:11:08]line ФПД: 155187760335153 [16:11:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161108&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148897&fm=155187760335153&tin=02508201610067®Number=0000000000092720&sum=30000 [16:11:08]OFD Sender: Processing packet 148897 [packets to send 100, broken 99] [16:11:08]ProducePacketName [16:11:08]name=ofd_packets/00148897 [16:11:08]OFD Sender: To server: pG, [16:11:08]CommunicateWithHost lk.salyk.kg:30040 [16:11:08]ConnectInit lk.salyk.kg [16:11:08]written 0, free lines is 4095 [16:11:08]Connected sock=10 [16:11:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E6 CA 07 01 1B 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 9C 3C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A1 45 02 00 35 04 06 00 8D 24 77 54 09 31 C7 A4 F7 A9 3B DF 3B 2C [16:11:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 69 9B 47 00 0D 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A1 45 02 00 F4 03 04 00 BF E3 5E 66 B6 04 01 00 00 CA 93 F2 5C 29 C5 93 3A [16:11:08]CommunicateWithHost err = 0 [16:11:08]CheckOFDResponse [16:11:08]1017 (14) - 77093643461234 [16:11:08]1041 (16) - 0000000000875057 [16:11:08]1040 (4) - 148897 [16:11:08]1012 (4) - 04.06.2024 09:51 [16:11:08]1206 (1) - 0 [16:11:08]OFD Sender: Remove packet 148897 [16:11:08]ProducePacketName [16:11:08]name=ofd_packets/00148897 [16:11:08]NVStorageDeleteData [16:11:08]Write to MH i2c: 01 00 00 36 1A 50 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: 01 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: 01 07 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: 01 07 00 36 1A 00 00 00 00 00 62 0C C5 [16:11:08]RasterBufferAndPrint [16:11:08]line [16:11:08]line [16:11:08]line [16:11:08]line [16:11:08]line [16:11:08]written 0, free lines is 3174 [16:11:08]MH_Cut [16:11:08]Write to MH i2c: D1 01 00 3D 1A 01 29 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: D1 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: D1 01 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: D1 01 00 3D 1A 00 28 [16:11:08]Write to MH i2c: 01 00 00 3E 1A 58 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:09]OFD Sender: No OFD packet to send [16:11:10]*** Cut start [16:11:10]*** Partial cut [16:11:10]*** CUTSNS_PIN = 1 [16:11:10]*** CUTSNS_PIN = 0 [16:11:10]*** Brake cut motor [16:11:10]Read from MH i2c: 01 [16:11:10]MH_I2C_Read... [16:11:10]*** Stop cut motor [16:11:10]*** Cut end [16:11:10]Read from MH i2c: 01 07 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: 01 07 00 3E 1A 00 00 00 00 00 FF 0F 6D [16:11:10]process_action close_receipt done [16:11:10]requested_data is exist [16:11:10]produce_requested_data [16:11:10]requested_item fm.sn is exist - process it [16:11:10]wFMCommunicate request_size=4 [16:11:10]MH_SAM_APDU [16:11:10]CAPDU: 80 11 00 00 [16:11:10]Write to MH i2c: E2 08 00 3F 1A 80 11 00 00 00 00 00 00 D3 [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:10]Read from MH i2c: E2 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 17 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 17 00 3F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 26 [16:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:11:10]wFMCommunicate OK [16:11:10]requested_item fd.num is exist - process it [16:11:10]SAM_PROTO_GetFieldsCounters [16:11:10]wFMCommunicate request_size=4 [16:11:10]MH_SAM_APDU [16:11:10]CAPDU: 80 13 00 00 [16:11:10]Write to MH i2c: E2 08 00 40 1A 80 13 00 00 00 00 00 00 D6 [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:11]Read from MH i2c: E2 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: E2 62 00 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: E2 62 00 40 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A1 45 02 00 0E 04 04 00 70 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 0F [16:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A1 45 02 00 0E 04 04 00 70 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 [16:11:11]wFMCommunicate OK [16:11:11]SAM_PROTO_GetFieldsCounters done [16:11:11]requested_item shift.num is exist - process it [16:11:11]requested_item shift.opened is exist - process it [16:11:11]req_shift_opened [16:11:11]FM_GetShiftState [16:11:11]SAM_PROTO_GetShiftState [16:11:11]wFMCommunicate request_size=4 [16:11:11]MH_SAM_APDU [16:11:11]CAPDU: 80 13 01 00 [16:11:11]Write to MH i2c: E2 08 00 41 1A 80 13 01 00 00 00 00 00 D8 [16:11:11]Write i2c OK [16:11:11]MH_I2C_Read... [16:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:11]Read from MH i2c: E2 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: E2 0E 00 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: E2 0E 00 41 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9B [16:11:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:11:11]wFMCommunicate OK [16:11:11]SAM_PROTO_GetShiftState done [16:11:11]FM_GetShiftState done [16:11:11]req_shift_opened done [16:11:11]requested_item shift.open_date is exist - process it [16:11:11]req_shift_open_date [16:11:11]req_shift_open_date done [16:11:11]produce_requested_data done [16:11:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148897,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:11:11]process_action_free close_receipt [16:11:11]json_value_free [16:11:11]json_value_free done [16:11:11]process_json_proto returns [16:11:11]Send response to host [16:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148897,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:11:11]free response buf [16:11:11]execute_script done [16:11:11]execute_script returns [16:11:11]free content buf [16:11:11]Sock 9.Close socket [16:11:11]Sock 9.Thread stoped [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:47]accept exits with 7 [16:11:47]New connection [16:11:47]New thread 3067264356 created [16:11:47]Thread 3067407716 joined [16:11:47]Waiting for new connection... [16:11:47] Sock 7.Parse request [16:11:47]Sock 7.Check first char [16:11:47]Sock 7.First char is OK [16:11:47]request: POST /json_proto HTTP/1.0 [16:11:47]Method: POST [16:11:47]URL: /json_proto [16:11:47]Method is POST - this is cgi request [16:11:47]url: /json_proto [16:11:47]query_string will be loaded in cgi processing [16:11:47]execute_cgi json_proto POST (null) [16:11:47]execute_cgi path=json_proto method=POST [16:11:47]POST find Content-Length [16:11:47]Host: 172.17.38.4:8080 [16:11:47]Content-Length: 682 [16:11:47]Content-Type: application/json [16:11:47] [16:11:47]POST finish read [16:11:47]Found Content-Length = 682 [16:11:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:47]execute_script... [16:11:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:47]POST & json_proto [16:11:47]process_json_proto [16:11:47]json parsed OK: [16:11:47]protocol is kg_v1.0 [16:11:47]action value=close_receipt [16:11:47]process_action close_receipt [16:11:47]cmd_close_receipt [16:11:47]MH_GetDate [16:11:47]Write to MH i2c: F0 00 00 42 1A 4B [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: F0 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: F0 09 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: F0 09 00 42 1A 00 C4 3C 5F 66 CC 51 87 64 21 [16:11:47]GetLastDocTimeStamp 1717517468 [16:11:47]current date 1717517508 [16:11:47]FM_GetShiftState [16:11:47]SAM_PROTO_GetShiftState [16:11:47]wFMCommunicate request_size=4 [16:11:47]MH_SAM_APDU [16:11:47]CAPDU: 80 13 01 00 [16:11:47]Write to MH i2c: E2 08 00 43 1A 80 13 01 00 00 00 00 00 DA [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:47]Read from MH i2c: E2 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 0E 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 0E 00 43 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9D [16:11:47]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:11:47]wFMCommunicate OK [16:11:47]SAM_PROTO_GetShiftState done [16:11:47]FM_GetShiftState done [16:11:47]opened in 1717460629 [16:11:47]opened+sec_in_day 1717547029 [16:11:47]quantity*price = 100015 [16:11:47]sum+1 = 100017 [16:11:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 237 04.06.2024 16:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148898 ФПД: 169034079646448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161148&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148898&fm=169034079646448&tin=02508201610067®Number=0000000000092720&sum=100000 [16:11:48]StoreToDocumentArchive [16:11:48]shift 368 fd 148898 [16:11:48]save to /storage/0368/doc_00148898 [16:11:48]save last doc name /storage/0368/doc_00148898 to /storage/kkm_last_doc_name [16:11:48]save OK [16:11:48]Clear old archive folders... [16:11:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:48]tlvbuf is 00500080 [16:11:48]SAM_PROTO_ClearQueue [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 09 00 00 [16:11:48]Write to MH i2c: E2 08 00 50 1A 80 09 00 00 00 00 00 00 DC [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [16:11:48]RAPDU: 90 00 [16:11:48]wFMCommunicate OK [16:11:48]SAM_PROTO_ClearQueue done [16:11:48]KKMCreateOFDPacket [16:11:48]OFDProtocolAddRootSTLVToBuf [16:11:48]FM_MakeSignedData [16:11:48]FM_MakeSignedData [16:11:48]SAM_PROTO_SignData [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 0D 01 02 [16:11:48]Write to MH i2c: E2 08 00 51 1A 80 0D 01 02 00 00 00 00 E4 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 51 1A 00 90 00 DF [16:11:48]RAPDU: 90 00 [16:11:48]wFMCommunicate OK [16:11:48]wFMCommunicate request_size=255 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C4 3C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A2 45 02 00 35 04 06 00 99 [16:11:48]Write to MH i2c: E2 02 01 52 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C4 3C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A2 45 02 00 35 04 06 00 99 00 00 0D [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 52 1A 00 90 00 E0 [16:11:48]RAPDU: 90 00 [16:11:48]wFMCommunicate OK [16:11:48]wFMCommunicate request_size=10 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 0D 02 02 05 BC 50 45 B2 F0 [16:11:48]Write to MH i2c: E2 0D 00 53 1A 80 0D 02 02 05 00 BC 50 45 B2 F0 00 00 E4 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 53 1A 00 90 00 E1 [16:11:48]RAPDU: 90 00 [16:11:48]wFMCommunicate OK [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 0D 03 02 [16:11:48]Write to MH i2c: E2 08 00 54 1A 80 0D 03 02 00 00 00 00 E9 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 0B 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 0B 00 54 1A 00 0E 07 44 BD EE 47 13 56 90 00 9E [16:11:48]RAPDU: 0E 07 44 BD EE 47 13 56 90 00 [16:11:48]wFMCommunicate OK [16:11:48]SAM_PROTO_SignData done [16:11:48]FM_MakeSignedData done [16:11:48]CreateOFDProtocolMessage [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 11 00 00 [16:11:48]Write to MH i2c: E2 08 00 55 1A 80 11 00 00 00 00 00 00 E9 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 17 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 17 00 55 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3C [16:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:11:48]wFMCommunicate OK [16:11:48]CreateOFDProtocolMessage done [16:11:48]OFDSenderStorePacket 148898 [16:11:48]StoreOFDPacket docnum=148898 [16:11:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AA 4A 07 01 E9 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C4 3C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A2 45 02 00 35 04 06 00 99 BC 50 45 B2 F0 0E 07 44 BD EE 47 13 56 [16:11:48]CheckFolder [16:11:48]dirname=/storage/ofd_packets [16:11:48]CheckFolder done [16:11:48]ProducePacketName [16:11:48]name=ofd_packets/00148898 [16:11:48]NVStorageSaveData ofd_packets/00148898 [16:11:48]File name is /storage/ofd_packets/00148898 [16:11:48]Write 301 bytes [16:11:48]NVStorageSaveData done [16:11:48]OFDSenderStorePacket done [16:11:48]KKMCreateOFDPacket done [16:11:48]NVStorageSaveData kkm_last_timestamp [16:11:48]File name is /storage/kkm_last_timestamp [16:11:48]Write 4 bytes [16:11:48]NVStorageSaveData done [16:11:48]ExternCall_PrintAddStr [16:11:48]wPrintStart [16:11:48]Write to MH i2c: 01 00 00 56 1A 70 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 07 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 07 00 56 1A 00 00 00 00 00 FF 0F 85 [16:11:48]RasterBufferAndPrint [16:11:48]line Счет N : (1)979828 [16:11:48]line ИНН: 02508201610067 [16:11:48]line Контрольно-Кассовый Чек [16:11:48]line ПРОДАЖА [16:11:48]line ТРК (МРК, ГНК) : 31 [16:11:48]line Товар: 2710124130 [16:11:48]line Аи-92-К-5 [16:11:48]line 14.950 * 66.90 [16:11:48]line = 1000.16 [16:11:48]line НДС 12% НСП 1% [16:11:48]line > о реализуемом товаре [16:11:48]line ОКРУГЛЕНИЕ: -0.16 [16:11:48]line ИТОГО: 1000.00 [16:11:48]line Внесено: 1000.00 [16:11:48]line СДАЧА: 0.00 [16:11:48]line НСП 1% : 8.85 [16:11:48]line НДС 12% : 106.21 [16:11:48]line Наличными: 1000.00 [16:11:48]line Безнал.: 0.00 [16:11:48]line Место: АЗС № 68 "Партнер Нефть" [16:11:48]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:11:48]line СНО: Общий режим [16:11:48]line Чек 237 04.06.2024 16:11 [16:11:48]line Смена: 368 ФФД: 1.0 [16:11:48]line ЗНМ: 0300000035 [16:11:48]line РНМ: 0000000000092720 [16:11:48]line Версия ККМ: 001 [16:11:48]line ФМ: 0000000000875057 [16:11:48]line ФД: 148898 [16:11:48]line ФПД: 169034079646448 [16:11:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161148&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148898&fm=169034079646448&tin=02508201610067®Number=0000000000092720&sum=100000 [16:11:49]OFD Sender: Processing packet 148898 [packets to send 100, broken 99] [16:11:49]ProducePacketName [16:11:49]name=ofd_packets/00148898 [16:11:49]OFD Sender: To server: pG, [16:11:49]CommunicateWithHost lk.salyk.kg:30040 [16:11:49]ConnectInit lk.salyk.kg [16:11:49]written 0, free lines is 4095 [16:11:49]Connected sock=10 [16:11:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AA 4A 07 01 E9 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C4 3C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A2 45 02 00 35 04 06 00 99 BC 50 45 B2 F0 0E 07 44 BD EE 47 13 56 [16:11:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D4 0D 47 00 22 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A2 45 02 00 F4 03 04 00 E8 E3 5E 66 B6 04 01 00 00 C7 EB 52 13 DB 19 F3 E4 [16:11:49]CommunicateWithHost err = 0 [16:11:49]CheckOFDResponse [16:11:49]1017 (14) - 77093643461234 [16:11:49]1041 (16) - 0000000000875057 [16:11:49]1040 (4) - 148898 [16:11:49]1012 (4) - 04.06.2024 09:52 [16:11:49]1206 (1) - 0 [16:11:49]OFD Sender: Remove packet 148898 [16:11:49]ProducePacketName [16:11:49]name=ofd_packets/00148898 [16:11:49]NVStorageDeleteData [16:11:49]Write to MH i2c: 01 00 00 81 1A 9B [16:11:49]Write i2c OK [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: 01 [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: 01 07 00 [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: 01 07 00 81 1A 00 00 00 00 00 60 0C 0E [16:11:49]RasterBufferAndPrint [16:11:49]line [16:11:49]line [16:11:49]line [16:11:49]line [16:11:49]line [16:11:49]written 0, free lines is 3171 [16:11:49]MH_Cut [16:11:49]Write to MH i2c: D1 01 00 88 1A 01 74 [16:11:49]Write i2c OK [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: D1 [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: D1 01 00 [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: D1 01 00 88 1A 00 73 [16:11:49]Write to MH i2c: 01 00 00 89 1A A3 [16:11:49]Write i2c OK [16:11:49]MH_I2C_Read... [16:11:50]OFD Sender: No OFD packet to send [16:11:50]*** Cut start [16:11:50]*** Partial cut [16:11:50]*** CUTSNS_PIN = 1 [16:11:51]*** CUTSNS_PIN = 0 [16:11:51]*** Brake cut motor [16:11:51]Read from MH i2c: 01 [16:11:51]MH_I2C_Read... [16:11:51]*** Stop cut motor [16:11:51]*** Cut end [16:11:51]Read from MH i2c: 01 07 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 FF 0F B8 [16:11:51]process_action close_receipt done [16:11:51]requested_data is exist [16:11:51]produce_requested_data [16:11:51]requested_item fm.sn is exist - process it [16:11:51]wFMCommunicate request_size=4 [16:11:51]MH_SAM_APDU [16:11:51]CAPDU: 80 11 00 00 [16:11:51]Write to MH i2c: E2 08 00 8A 1A 80 11 00 00 00 00 00 00 1E [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:51]Read from MH i2c: E2 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 17 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 17 00 8A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 71 [16:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:11:51]wFMCommunicate OK [16:11:51]requested_item fd.num is exist - process it [16:11:51]SAM_PROTO_GetFieldsCounters [16:11:51]wFMCommunicate request_size=4 [16:11:51]MH_SAM_APDU [16:11:51]CAPDU: 80 13 00 00 [16:11:51]Write to MH i2c: E2 08 00 8B 1A 80 13 00 00 00 00 00 00 21 [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:51]Read from MH i2c: E2 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 62 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 62 00 8B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A2 45 02 00 0E 04 04 00 70 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 5E [16:11:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A2 45 02 00 0E 04 04 00 70 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 [16:11:51]wFMCommunicate OK [16:11:51]SAM_PROTO_GetFieldsCounters done [16:11:51]requested_item shift.num is exist - process it [16:11:51]requested_item shift.opened is exist - process it [16:11:51]req_shift_opened [16:11:51]FM_GetShiftState [16:11:51]SAM_PROTO_GetShiftState [16:11:51]wFMCommunicate request_size=4 [16:11:51]MH_SAM_APDU [16:11:51]CAPDU: 80 13 01 00 [16:11:51]Write to MH i2c: E2 08 00 8C 1A 80 13 01 00 00 00 00 00 23 [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:51]Read from MH i2c: E2 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 0E 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 0E 00 8C 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E6 [16:11:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:11:51]wFMCommunicate OK [16:11:51]SAM_PROTO_GetShiftState done [16:11:51]FM_GetShiftState done [16:11:51]req_shift_opened done [16:11:51]requested_item shift.open_date is exist - process it [16:11:51]req_shift_open_date [16:11:51]req_shift_open_date done [16:11:51]produce_requested_data done [16:11:51]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148898,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:11:51]process_action_free close_receipt [16:11:51]json_value_free [16:11:51]json_value_free done [16:11:51]process_json_proto returns [16:11:51]Send response to host [16:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148898,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:11:51]free response buf [16:11:51]execute_script done [16:11:51]execute_script returns [16:11:51]free content buf [16:11:51]Sock 7.Close socket [16:11:51]Sock 7.Thread stoped [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:12:59]accept exits with 9 [16:12:59]New connection [16:12:59]New thread 3067407716 created [16:12:59]Thread 3067264356 joined [16:12:59]Waiting for new connection... [16:12:59] Sock 9.Parse request [16:12:59]Sock 9.Check first char [16:12:59]Sock 9.First char is OK [16:12:59]request: POST /json_proto HTTP/1.0 [16:12:59]Method: POST [16:12:59]URL: /json_proto [16:12:59]Method is POST - this is cgi request [16:12:59]url: /json_proto [16:12:59]query_string will be loaded in cgi processing [16:12:59]execute_cgi json_proto POST (null) [16:12:59]execute_cgi path=json_proto method=POST [16:12:59]POST find Content-Length [16:12:59]Host: 172.17.38.4:8080 [16:12:59]Content-Length: 1148 [16:12:59]Content-Type: application/json [16:12:59] [16:12:59]POST finish read [16:12:59]Found Content-Length = 1148 [16:12: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979826\u000A04.06.2024 15:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30112314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:59]execute_script... [16:12: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979826\u000A04.06.2024 15:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30112314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:59]POST & json_proto [16:12:59]process_json_proto [16:12:59]json parsed OK: [16:12:59]protocol is kg_v1.0 [16:12:59]action value=print_text [16:12:59]process_action print_text [16:12:59]cmd_print_text [16:12:59]ExternCall_PrintAddStr [16:12:59]wPrintStart [16:12:59]Write to MH i2c: 01 00 00 8D 1A A7 [16:12:59]Write i2c OK [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: 01 [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: 01 07 00 [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: 01 07 00 8D 1A 00 00 00 00 00 FF 0F BC [16:12:59]RasterBufferAndPrint [16:12:59]line *****ТОВАРНЫЙ ЧЕК***** [16:12:59]line АЗС 68 [16:12:59]line Партнер нефть [16:12:59]line 02508201610067 [16:12:59]line Кассир : Аскаров Н. [16:12:59]line Счет N : (1)979826 [16:12:59]line 04.06.2024 15:53 [16:12:59]line ПРОДАЖА [16:12:59]line ТРК (МРК, ГНК): 52 [16:12:59]line Вид ГСМ : 2710194210 [16:12:59]line ДТ-К-5 [16:12:59]line 50.000 x 72.90 [16:12:59]line ИТОГ: 3645.00 [16:12:59]line Тип оплаты: Талоны: ТК ГПНА Online [16:12:59]line 30112314 [16:12:59]line ______________________ [16:12:59]line (подпись) [16:12:59]written 0, free lines is 4095 [16:12:59]Write to MH i2c: 01 00 00 A1 1A BB [16:12:59]Write i2c OK [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: 01 [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: 01 07 00 [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: 01 07 00 A1 1A 00 00 00 00 00 0E 0E DE [16:12:59]RasterBufferAndPrint [16:12:59]line [16:12:59]line [16:12:59]line [16:12:59]line [16:12:59]line [16:12:59]written 0, free lines is 3599 [16:12:59]MH_Cut [16:12:59]Write to MH i2c: D1 01 00 A8 1A 01 94 [16:12:59]Write i2c OK [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: D1 [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: D1 01 00 [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: D1 01 00 A8 1A 00 93 [16:12:59]Write to MH i2c: 01 00 00 A9 1A C3 [16:12:59]Write i2c OK [16:12:59]MH_I2C_Read... [16:13:00]OFD Sender: No OFD packet to send [16:13:00]*** Cut start [16:13:00]*** Partial cut [16:13:00]*** CUTSNS_PIN = 1 [16:13:00]*** CUTSNS_PIN = 0 [16:13:00]*** Brake cut motor [16:13:01]Read from MH i2c: 01 [16:13:01]MH_I2C_Read... [16:13:01]*** Stop cut motor [16:13:01]*** Cut end [16:13:01]Read from MH i2c: 01 07 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: 01 07 00 A9 1A 00 00 00 00 00 FF 0F D8 [16:13:01]process_action print_text done [16:13:01]requested_data is exist [16:13:01]produce_requested_data [16:13:01]requested_item fm.sn is exist - process it [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 11 00 00 [16:13:01]Write to MH i2c: E2 08 00 AA 1A 80 11 00 00 00 00 00 00 3E [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 17 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 17 00 AA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 91 [16:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:13:01]wFMCommunicate OK [16:13:01]requested_item fd.num is exist - process it [16:13:01]SAM_PROTO_GetFieldsCounters [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 13 00 00 [16:13:01]Write to MH i2c: E2 08 00 AB 1A 80 13 00 00 00 00 00 00 41 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 62 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 62 00 AB 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A2 45 02 00 0E 04 04 00 70 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 7E [16:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A2 45 02 00 0E 04 04 00 70 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 [16:13:01]wFMCommunicate OK [16:13:01]SAM_PROTO_GetFieldsCounters done [16:13:01]requested_item shift.num is exist - process it [16:13:01]requested_item shift.opened is exist - process it [16:13:01]req_shift_opened [16:13:01]FM_GetShiftState [16:13:01]SAM_PROTO_GetShiftState [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 13 01 00 [16:13:01]Write to MH i2c: E2 08 00 AC 1A 80 13 01 00 00 00 00 00 43 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 0E 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 0E 00 AC 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 06 [16:13:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:13:01]wFMCommunicate OK [16:13:01]SAM_PROTO_GetShiftState done [16:13:01]FM_GetShiftState done [16:13:01]req_shift_opened done [16:13:01]requested_item shift.open_date is exist - process it [16:13:01]req_shift_open_date [16:13:01]req_shift_open_date done [16:13:01]produce_requested_data done [16:13:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148898,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:13:01]process_action_free print_text [16:13:01]json_value_free [16:13:01]json_value_free done [16:13:01]process_json_proto returns [16:13:01]Send response to host [16:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148898,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:13:01]free response buf [16:13:01]execute_script done [16:13:01]execute_script returns [16:13:01]free content buf [16:13:01]Sock 9.Close socket [16:13:01]Sock 9.Thread stoped [16:13:01]accept exits with 7 [16:13:01]New connection [16:13:01]New thread 3067264356 created [16:13:01]Thread 3067407716 joined [16:13:01]Waiting for new connection... [16:13:01] Sock 7.Parse request [16:13:01]Sock 7.Check first char [16:13:01]Sock 7.First char is OK [16:13:01]request: POST /json_proto HTTP/1.0 [16:13:01]Method: POST [16:13:01]URL: /json_proto [16:13:01]Method is POST - this is cgi request [16:13:01]url: /json_proto [16:13:01]query_string will be loaded in cgi processing [16:13:01]execute_cgi json_proto POST (null) [16:13:01]execute_cgi path=json_proto method=POST [16:13:01]POST find Content-Length [16:13:01]Host: 172.17.38.4:8080 [16:13:01]Content-Length: 800 [16:13:01]Content-Type: application/json [16:13:01] [16:13:01]POST finish read [16:13:01]Found Content-Length = 800 [16:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 30.000, "sum" : 2187.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:01]execute_script... [16:13: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)979827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 30.000, "sum" : 2187.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:01]POST & json_proto [16:13:01]process_json_proto [16:13:01]json parsed OK: [16:13:01]protocol is kg_v1.0 [16:13:01]action value=close_receipt [16:13:01]process_action close_receipt [16:13:01]cmd_close_receipt [16:13:01]MH_GetDate [16:13:01]Write to MH i2c: F0 00 00 AD 1A B6 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: F0 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: F0 09 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: F0 09 00 AD 1A 00 0F 3D 5F 66 CC 51 87 64 D8 [16:13:01]GetLastDocTimeStamp 1717517508 [16:13:01]current date 1717517583 [16:13:01]FM_GetShiftState [16:13:01]SAM_PROTO_GetShiftState [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 13 01 00 [16:13:01]Write to MH i2c: E2 08 00 AE 1A 80 13 01 00 00 00 00 00 45 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 0E 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 0E 00 AE 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 08 [16:13:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:13:01]wFMCommunicate OK [16:13:01]SAM_PROTO_GetShiftState done [16:13:01]FM_GetShiftState done [16:13:01]opened in 1717460629 [16:13:01]opened+sec_in_day 1717547029 [16:13:01]quantity*price = 218700 [16:13:01]sum+1 = 218701 [16:13:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2187.00 НСП 1% : 19.35 НДС 12% : 232.25 Наличными: 0.00 Безнал.: 2187.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 238 04.06.2024 16:13 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148899 ФПД: 263586182232639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161303&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148899&fm=263586182232639&tin=02508201610067®Number=0000000000092720&sum=218700 [16:13:02]StoreToDocumentArchive [16:13:02]shift 368 fd 148899 [16:13:02]save to /storage/0368/doc_00148899 [16:13:02]save last doc name /storage/0368/doc_00148899 to /storage/kkm_last_doc_name [16:13:02]save OK [16:13:02]Clear old archive folders... [16:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:02]tlvbuf is 004C2CA0 [16:13:02]SAM_PROTO_ClearQueue [16:13:02]wFMCommunicate request_size=4 [16:13:02]MH_SAM_APDU [16:13:02]CAPDU: 80 09 00 00 [16:13:02]Write to MH i2c: E2 08 00 BB 1A 80 09 00 00 00 00 00 00 47 [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:02]Read from MH i2c: E2 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: E2 03 00 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: E2 03 00 BB 1A 00 90 00 49 [16:13:02]RAPDU: 90 00 [16:13:02]wFMCommunicate OK [16:13:02]SAM_PROTO_ClearQueue done [16:13:02]KKMCreateOFDPacket [16:13:02]OFDProtocolAddRootSTLVToBuf [16:13:02]FM_MakeSignedData [16:13:02]FM_MakeSignedData [16:13:02]SAM_PROTO_SignData [16:13:02]wFMCommunicate request_size=4 [16:13:02]MH_SAM_APDU [16:13:02]CAPDU: 80 0D 01 02 [16:13:02]Write to MH i2c: E2 08 00 BC 1A 80 0D 01 02 00 00 00 00 4F [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:02]Read from MH i2c: E2 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: E2 03 00 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: E2 03 00 BC 1A 00 90 00 4A [16:13:02]RAPDU: 90 00 [16:13:02]wFMCommunicate OK [16:13:02]wFMCommunicate request_size=255 [16:13:02]MH_SAM_APDU [16:13:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0F 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A3 45 02 00 35 04 06 00 EF BA F0 C2 [16:13:02]Write to MH i2c: E2 02 01 BD 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0F 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A3 45 02 00 35 04 06 00 EF BA F0 C2 00 00 2F [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 03 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 03 00 BD 1A 00 90 00 4B [16:13:03]RAPDU: 90 00 [16:13:03]wFMCommunicate OK [16:13:03]wFMCommunicate request_size=7 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 0D 02 02 02 7A 3F [16:13:03]Write to MH i2c: E2 0A 00 BE 1A 80 0D 02 02 02 00 7A 3F 00 00 0F [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 03 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 03 00 BE 1A 00 90 00 4C [16:13:03]RAPDU: 90 00 [16:13:03]wFMCommunicate OK [16:13:03]wFMCommunicate request_size=4 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 0D 03 02 [16:13:03]Write to MH i2c: E2 08 00 BF 1A 80 0D 03 02 00 00 00 00 54 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0B 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0B 00 BF 1A 00 3C 5C 6F F8 AA 8A 57 05 90 00 E4 [16:13:03]RAPDU: 3C 5C 6F F8 AA 8A 57 05 90 00 [16:13:03]wFMCommunicate OK [16:13:03]SAM_PROTO_SignData done [16:13:03]FM_MakeSignedData done [16:13:03]CreateOFDProtocolMessage [16:13:03]wFMCommunicate request_size=4 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 11 00 00 [16:13:03]Write to MH i2c: E2 08 00 C0 1A 80 11 00 00 00 00 00 00 54 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 17 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 17 00 C0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A7 [16:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:13:03]wFMCommunicate OK [16:13:03]CreateOFDProtocolMessage done [16:13:03]OFDSenderStorePacket 148899 [16:13:03]StoreOFDPacket docnum=148899 [16:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 71 C1 04 01 FE D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0F 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A3 45 02 00 35 04 06 00 EF BA F0 C2 7A 3F 3C 5C 6F F8 AA 8A 57 05 [16:13:03]CheckFolder [16:13:03]dirname=/storage/ofd_packets [16:13:03]CheckFolder done [16:13:03]ProducePacketName [16:13:03]name=ofd_packets/00148899 [16:13:03]NVStorageSaveData ofd_packets/00148899 [16:13:03]File name is /storage/ofd_packets/00148899 [16:13:03]Write 298 bytes [16:13:03]NVStorageSaveData done [16:13:03]OFDSenderStorePacket done [16:13:03]KKMCreateOFDPacket done [16:13:03]NVStorageSaveData kkm_last_timestamp [16:13:03]File name is /storage/kkm_last_timestamp [16:13:03]Write 4 bytes [16:13:03]NVStorageSaveData done [16:13:03]ExternCall_PrintAddStr [16:13:03]wPrintStart [16:13:03]Write to MH i2c: 01 00 00 C1 1A DB [16:13:03]OFD Sender: Processing packet 148899 [packets to send 100, broken 99] [16:13:03]ProducePacketName [16:13:03]name=ofd_packets/00148899 [16:13:03]OFD Sender: To server: pG, [16:13:03]CommunicateWithHost lk.salyk.kg:30040 [16:13:03]ConnectInit lk.salyk.kg [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: 01 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: 01 07 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: 01 07 00 C1 1A 00 00 00 00 00 FF 0F F0 [16:13:03]RasterBufferAndPrint [16:13:03]line Счет N : (1)979827 [16:13:03]line ИНН: 02508201610067 [16:13:03]line Контрольно-Кассовый Чек [16:13:03]line ПРОДАЖА [16:13:03]line ТРК (МРК, ГНК) : 11 [16:13:03]line Товар: 2710194210 [16:13:03]line ДТ-К-5 [16:13:03]line 30.000 * 72.90 [16:13:03]line = 2187.00 [16:13:03]line НДС 12% НСП 1% [16:13:03]line > о реализуемом товаре [16:13:03]line ИТОГО: 2187.00 [16:13:03]line НСП 1% : 19.35 [16:13:03]line НДС 12% : 232.25 [16:13:03]line Наличными: 0.00 [16:13:03]line Безнал.: 2187.00 [16:13:03]line Место: АЗС № 68 "Партнер Нефть" [16:13:03]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:13:03]line СНО: Общий режим [16:13:03]line Чек 238 04.06.2024 16:13 [16:13:03]line Смена: 368 ФФД: 1.0 [16:13:03]line ЗНМ: 0300000035 [16:13:03]line РНМ: 0000000000092720 [16:13:03]line Версия ККМ: 001 [16:13:03]line Платежная система: O! деньги [16:13:03]line ФМ: 0000000000875057 [16:13:03]line ФД: 148899 [16:13:03]line ФПД: 263586182232639 [16:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161303&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148899&fm=263586182232639&tin=02508201610067®Number=0000000000092720&sum=218700 [16:13:03]written 0, free lines is 4095 [16:13:04]Connected sock=10 [16:13:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 71 C1 04 01 FE D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0F 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A3 45 02 00 35 04 06 00 EF BA F0 C2 7A 3F 3C 5C 6F F8 AA 8A 57 05 [16:13:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C2 6A 47 00 B8 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A3 45 02 00 F4 03 04 00 32 E4 5E 66 B6 04 01 00 00 E8 0A A3 E5 D5 DC 53 CA [16:13:04]CommunicateWithHost err = 0 [16:13:04]CheckOFDResponse [16:13:04]1017 (14) - 77093643461234 [16:13:04]1041 (16) - 0000000000875057 [16:13:04]1040 (4) - 148899 [16:13:04]1012 (4) - 04.06.2024 09:53 [16:13:04]1206 (1) - 0 [16:13:04]OFD Sender: Remove packet 148899 [16:13:04]ProducePacketName [16:13:04]name=ofd_packets/00148899 [16:13:04]NVStorageDeleteData [16:13:04]Write to MH i2c: 01 00 00 EB 1A 05 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: 01 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: 01 07 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: 01 07 00 EB 1A 00 00 00 00 00 81 0C 99 [16:13:04]RasterBufferAndPrint [16:13:04]line [16:13:04]line [16:13:04]line [16:13:04]line [16:13:04]line [16:13:04]written 0, free lines is 3206 [16:13:04]MH_Cut [16:13:04]Write to MH i2c: D1 01 00 F2 1A 01 DE [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: D1 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: D1 01 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: D1 01 00 F2 1A 00 DD [16:13:04]Write to MH i2c: 01 00 00 F3 1A 0D [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]OFD Sender: No OFD packet to send [16:13:05]*** Cut start [16:13:05]*** Partial cut [16:13:05]*** CUTSNS_PIN = 1 [16:13:05]*** CUTSNS_PIN = 0 [16:13:05]*** Brake cut motor [16:13:06]Read from MH i2c: 01 [16:13:06]MH_I2C_Read... [16:13:06]*** Stop cut motor [16:13:06]*** Cut end [16:13:06]Read from MH i2c: 01 07 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: 01 07 00 F3 1A 00 00 00 00 00 FF 0F 22 [16:13:06]process_action close_receipt done [16:13:06]requested_data is exist [16:13:06]produce_requested_data [16:13:06]requested_item fm.sn is exist - process it [16:13:06]wFMCommunicate request_size=4 [16:13:06]MH_SAM_APDU [16:13:06]CAPDU: 80 11 00 00 [16:13:06]Write to MH i2c: E2 08 00 F4 1A 80 11 00 00 00 00 00 00 88 [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 17 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 17 00 F4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DB [16:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:13:06]wFMCommunicate OK [16:13:06]requested_item fd.num is exist - process it [16:13:06]SAM_PROTO_GetFieldsCounters [16:13:06]wFMCommunicate request_size=4 [16:13:06]MH_SAM_APDU [16:13:06]CAPDU: 80 13 00 00 [16:13:06]Write to MH i2c: E2 08 00 F5 1A 80 13 00 00 00 00 00 00 8B [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 62 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 62 00 F5 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A3 45 02 00 0E 04 04 00 70 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 CC [16:13:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A3 45 02 00 0E 04 04 00 70 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 [16:13:06]wFMCommunicate OK [16:13:06]SAM_PROTO_GetFieldsCounters done [16:13:06]requested_item shift.num is exist - process it [16:13:06]requested_item shift.opened is exist - process it [16:13:06]req_shift_opened [16:13:06]FM_GetShiftState [16:13:06]SAM_PROTO_GetShiftState [16:13:06]wFMCommunicate request_size=4 [16:13:06]MH_SAM_APDU [16:13:06]CAPDU: 80 13 01 00 [16:13:06]Write to MH i2c: E2 08 00 F6 1A 80 13 01 00 00 00 00 00 8D [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:06]Read from MH i2c: E2 0E 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 0E 00 F6 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 50 [16:13:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:13:06]wFMCommunicate OK [16:13:06]SAM_PROTO_GetShiftState done [16:13:06]FM_GetShiftState done [16:13:06]req_shift_opened done [16:13:06]requested_item shift.open_date is exist - process it [16:13:06]req_shift_open_date [16:13:06]req_shift_open_date done [16:13:06]produce_requested_data done [16:13:06]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148899,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:13:06]process_action_free close_receipt [16:13:06]json_value_free [16:13:06]json_value_free done [16:13:06]process_json_proto returns [16:13:06]Send response to host [16:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148899,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:13:06]free response buf [16:13:06]execute_script done [16:13:06]execute_script returns [16:13:06]free content buf [16:13:06]Sock 7.Close socket [16:13:06]Sock 7.Thread stoped [16:13:09]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:18]accept exits with 9 [16:16:18]New connection [16:16:18]New thread 3067407716 created [16:16:18]Thread 3067264356 joined [16:16:18]Waiting for new connection... [16:16:18] Sock 9.Parse request [16:16:18]Sock 9.Check first char [16:16:18]Sock 9.First char is OK [16:16:18]request: POST /json_proto HTTP/1.0 [16:16:18]Method: POST [16:16:18]URL: /json_proto [16:16:18]Method is POST - this is cgi request [16:16:18]url: /json_proto [16:16:18]query_string will be loaded in cgi processing [16:16:18]execute_cgi json_proto POST (null) [16:16:18]execute_cgi path=json_proto method=POST [16:16:18]POST find Content-Length [16:16:18]Host: 172.17.38.4:8080 [16:16:18]Content-Length: 677 [16:16:18]Content-Type: application/json [16:16:18] [16:16:18]POST finish read [16:16:18]Found Content-Length = 677 [16:16:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [16:16:18]execute_script... [16:16: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)979830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [16:16:18]POST & json_proto [16:16:18]process_json_proto [16:16:18]json parsed OK: [16:16:18]protocol is kg_v1.0 [16:16:18]action value=close_receipt [16:16:18]process_action close_receipt [16:16:18]cmd_close_receipt [16:16:18]MH_GetDate [16:16:18]Write to MH i2c: F0 00 00 F7 1A 00 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: F0 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: F0 09 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: F0 09 00 F7 1A 00 D3 3D 5F 66 CC 51 87 64 E6 [16:16:18]GetLastDocTimeStamp 1717517583 [16:16:18]current date 1717517779 [16:16:18]FM_GetShiftState [16:16:18]SAM_PROTO_GetShiftState [16:16:18]wFMCommunicate request_size=4 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 13 01 00 [16:16:18]Write to MH i2c: E2 08 00 F8 1A 80 13 01 00 00 00 00 00 8F [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 0E 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 0E 00 F8 1A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 52 [16:16:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:16:18]wFMCommunicate OK [16:16:18]SAM_PROTO_GetShiftState done [16:16:18]FM_GetShiftState done [16:16:18]opened in 1717460629 [16:16:18]opened+sec_in_day 1717547029 [16:16:18]quantity*price = 22010 [16:16:18]sum+1 = 22011 [16:16:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 239 04.06.2024 16:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148900 ФПД: 57665275327268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161619&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148900&fm=57665275327268&tin=02508201610067®Number=0000000000092720&sum=22000 [16:16:19]StoreToDocumentArchive [16:16:19]shift 368 fd 148900 [16:16:19]save to /storage/0368/doc_00148900 [16:16:19]save last doc name /storage/0368/doc_00148900 to /storage/kkm_last_doc_name [16:16:19]save OK [16:16:19]Clear old archive folders... [16:16:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:19]tlvbuf is 0047B8B0 [16:16:19]SAM_PROTO_ClearQueue [16:16:19]wFMCommunicate request_size=4 [16:16:19]MH_SAM_APDU [16:16:19]CAPDU: 80 09 00 00 [16:16:19]Write to MH i2c: E2 08 00 05 1B 80 09 00 00 00 00 00 00 92 [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:19]Read from MH i2c: E2 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 03 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 03 00 05 1B 00 90 00 94 [16:16:19]RAPDU: 90 00 [16:16:19]wFMCommunicate OK [16:16:19]SAM_PROTO_ClearQueue done [16:16:19]KKMCreateOFDPacket [16:16:19]OFDProtocolAddRootSTLVToBuf [16:16:19]FM_MakeSignedData [16:16:19]FM_MakeSignedData [16:16:19]SAM_PROTO_SignData [16:16:19]wFMCommunicate request_size=4 [16:16:19]MH_SAM_APDU [16:16:19]CAPDU: 80 0D 01 02 [16:16:19]Write to MH i2c: E2 08 00 06 1B 80 0D 01 02 00 00 00 00 9A [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:19]Read from MH i2c: E2 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 03 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 03 00 06 1B 00 90 00 95 [16:16:19]RAPDU: 90 00 [16:16:19]wFMCommunicate OK [16:16:19]wFMCommunicate request_size=255 [16:16:19]MH_SAM_APDU [16:16:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EF 00 00 00 F4 03 04 00 D3 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A4 45 02 00 35 04 06 00 34 [16:16:19]Write to MH i2c: E2 02 01 07 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EF 00 00 00 F4 03 04 00 D3 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A4 45 02 00 35 04 06 00 34 00 00 DB [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:19]Read from MH i2c: E2 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 03 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 03 00 07 1B 00 90 00 96 [16:16:19]RAPDU: 90 00 [16:16:19]wFMCommunicate OK [16:16:19]wFMCommunicate request_size=10 [16:16:19]MH_SAM_APDU [16:16:19]CAPDU: 80 0D 02 02 05 72 3E 40 73 24 [16:16:19]Write to MH i2c: E2 0D 00 08 1B 80 0D 02 02 05 00 72 3E 40 73 24 00 00 2E [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:19]Read from MH i2c: E2 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 03 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 03 00 08 1B 00 90 00 97 [16:16:19]RAPDU: 90 00 [16:16:19]wFMCommunicate OK [16:16:19]wFMCommunicate request_size=4 [16:16:19]MH_SAM_APDU [16:16:19]CAPDU: 80 0D 03 02 [16:16:19]Write to MH i2c: E2 08 00 09 1B 80 0D 03 02 00 00 00 00 9F [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]OFD Sender: No OFD packet to send [16:16:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:19]Read from MH i2c: E2 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 0B 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 0B 00 09 1B 00 7A 5A B6 1E 07 3A 61 78 90 00 62 [16:16:19]RAPDU: 7A 5A B6 1E 07 3A 61 78 90 00 [16:16:19]wFMCommunicate OK [16:16:19]SAM_PROTO_SignData done [16:16:19]FM_MakeSignedData done [16:16:19]CreateOFDProtocolMessage [16:16:19]wFMCommunicate request_size=4 [16:16:19]MH_SAM_APDU [16:16:19]CAPDU: 80 11 00 00 [16:16:19]Write to MH i2c: E2 08 00 0A 1B 80 11 00 00 00 00 00 00 9F [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 17 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 17 00 0A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F2 [16:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:16:20]wFMCommunicate OK [16:16:20]CreateOFDProtocolMessage done [16:16:20]OFDSenderStorePacket 148900 [16:16:20]StoreOFDPacket docnum=148900 [16:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 9B C5 07 01 89 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EF 00 00 00 F4 03 04 00 D3 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A4 45 02 00 35 04 06 00 34 72 3E 40 73 24 7A 5A B6 1E 07 3A 61 78 [16:16:20]CheckFolder [16:16:20]dirname=/storage/ofd_packets [16:16:20]CheckFolder done [16:16:20]ProducePacketName [16:16:20]name=ofd_packets/00148900 [16:16:20]NVStorageSaveData ofd_packets/00148900 [16:16:20]File name is /storage/ofd_packets/00148900 [16:16:20]Write 301 bytes [16:16:20]NVStorageSaveData done [16:16:20]OFDSenderStorePacket done [16:16:20]KKMCreateOFDPacket done [16:16:20]NVStorageSaveData kkm_last_timestamp [16:16:20]File name is /storage/kkm_last_timestamp [16:16:20]Write 4 bytes [16:16:20]NVStorageSaveData done [16:16:20]ExternCall_PrintAddStr [16:16:20]wPrintStart [16:16:20]Write to MH i2c: 01 00 00 0B 1B 26 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 07 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 07 00 0B 1B 00 00 00 00 00 FF 0F 3B [16:16:20]RasterBufferAndPrint [16:16:20]line Счет N : (1)979830 [16:16:20]line ИНН: 02508201610067 [16:16:20]line Контрольно-Кассовый Чек [16:16:20]line ПРОДАЖА [16:16:20]line ТРК (МРК, ГНК) : 12 [16:16:20]line Товар: 2710124130 [16:16:20]line Аи-92-К-5 [16:16:20]line 3.290 * 66.90 [16:16:20]line = 220.10 [16:16:20]line НДС 12% НСП 1% [16:16:20]line > о реализуемом товаре [16:16:20]line ОКРУГЛЕНИЕ: -0.10 [16:16:20]line ИТОГО: 220.00 [16:16:20]line Внесено: 220.00 [16:16:20]line СДАЧА: 0.00 [16:16:20]line НСП 1% : 1.95 [16:16:20]line НДС 12% : 23.37 [16:16:20]line Наличными: 220.00 [16:16:20]line Безнал.: 0.00 [16:16:20]line Место: АЗС № 68 "Партнер Нефть" [16:16:20]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:16:20]line СНО: Общий режим [16:16:20]line Чек 239 04.06.2024 16:16 [16:16:20]line Смена: 368 ФФД: 1.0 [16:16:20]line ЗНМ: 0300000035 [16:16:20]line РНМ: 0000000000092720 [16:16:20]line Версия ККМ: 001 [16:16:20]line ФМ: 0000000000875057 [16:16:20]line ФД: 148900 [16:16:20]line ФПД: 57665275327268 [16:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161619&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148900&fm=57665275327268&tin=02508201610067®Number=0000000000092720&sum=22000 [16:16:20]OFD Sender: Processing packet 148900 [packets to send 100, broken 99] [16:16:20]ProducePacketName [16:16:20]name=ofd_packets/00148900 [16:16:20]OFD Sender: To server: pG, [16:16:20]CommunicateWithHost lk.salyk.kg:30040 [16:16:20]ConnectInit lk.salyk.kg [16:16:20]written 0, free lines is 4095 [16:16:20]Connected sock=10 [16:16:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 9B C5 07 01 89 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EF 00 00 00 F4 03 04 00 D3 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A4 45 02 00 35 04 06 00 34 72 3E 40 73 24 7A 5A B6 1E 07 3A 61 78 [16:16:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8B 07 47 00 62 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A4 45 02 00 F4 03 04 00 F7 E4 5E 66 B6 04 01 00 00 21 97 5E 2A 19 A1 20 B7 [16:16:20]CommunicateWithHost err = 0 [16:16:20]CheckOFDResponse [16:16:20]1017 (14) - 77093643461234 [16:16:20]1041 (16) - 0000000000875057 [16:16:20]1040 (4) - 148900 [16:16:20]1012 (4) - 04.06.2024 09:57 [16:16:20]1206 (1) - 0 [16:16:20]OFD Sender: Remove packet 148900 [16:16:20]ProducePacketName [16:16:20]name=ofd_packets/00148900 [16:16:20]NVStorageDeleteData [16:16:20]Write to MH i2c: 01 00 00 36 1B 51 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 07 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 07 00 36 1B 00 00 00 00 00 63 0C C7 [16:16:20]RasterBufferAndPrint [16:16:20]line [16:16:20]line [16:16:20]line [16:16:20]line [16:16:20]line [16:16:20]written 0, free lines is 3176 [16:16:20]MH_Cut [16:16:20]Write to MH i2c: D1 01 00 3D 1B 01 2A [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: D1 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: D1 01 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: D1 01 00 3D 1B 00 29 [16:16:20]Write to MH i2c: 01 00 00 3E 1B 59 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:21]OFD Sender: No OFD packet to send [16:16:22]*** Cut start [16:16:22]*** Partial cut [16:16:22]*** CUTSNS_PIN = 1 [16:16:22]*** CUTSNS_PIN = 0 [16:16:22]*** Brake cut motor [16:16:22]Read from MH i2c: 01 [16:16:22]MH_I2C_Read... [16:16:22]*** Stop cut motor [16:16:22]*** Cut end [16:16:22]Read from MH i2c: 01 07 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: 01 07 00 3E 1B 00 00 00 00 00 FF 0F 6E [16:16:22]process_action close_receipt done [16:16:22]requested_data is exist [16:16:22]produce_requested_data [16:16:22]requested_item fm.sn is exist - process it [16:16:22]wFMCommunicate request_size=4 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 11 00 00 [16:16:22]Write to MH i2c: E2 08 00 3F 1B 80 11 00 00 00 00 00 00 D4 [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:22]Read from MH i2c: E2 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 17 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 17 00 3F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 27 [16:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:16:22]wFMCommunicate OK [16:16:22]requested_item fd.num is exist - process it [16:16:22]SAM_PROTO_GetFieldsCounters [16:16:22]wFMCommunicate request_size=4 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 13 00 00 [16:16:22]Write to MH i2c: E2 08 00 40 1B 80 13 00 00 00 00 00 00 D7 [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:22]Read from MH i2c: E2 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 62 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 62 00 40 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A4 45 02 00 0E 04 04 00 70 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 1C [16:16:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A4 45 02 00 0E 04 04 00 70 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 [16:16:22]wFMCommunicate OK [16:16:22]SAM_PROTO_GetFieldsCounters done [16:16:22]requested_item shift.num is exist - process it [16:16:22]requested_item shift.opened is exist - process it [16:16:22]req_shift_opened [16:16:22]FM_GetShiftState [16:16:22]SAM_PROTO_GetShiftState [16:16:22]wFMCommunicate request_size=4 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 13 01 00 [16:16:22]Write to MH i2c: E2 08 00 41 1B 80 13 01 00 00 00 00 00 D9 [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 0E 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 0E 00 41 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9C [16:16:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:16:23]wFMCommunicate OK [16:16:23]SAM_PROTO_GetShiftState done [16:16:23]FM_GetShiftState done [16:16:23]req_shift_opened done [16:16:23]requested_item shift.open_date is exist - process it [16:16:23]req_shift_open_date [16:16:23]req_shift_open_date done [16:16:23]produce_requested_data done [16:16:23]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148900,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:16:23]process_action_free close_receipt [16:16:23]json_value_free [16:16:23]json_value_free done [16:16:23]process_json_proto returns [16:16:23]Send response to host [16:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148900,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:16:23]free response buf [16:16:23]execute_script done [16:16:23]execute_script returns [16:16:23]free content buf [16:16:23]Sock 9.Close socket [16:16:23]Sock 9.Thread stoped [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:52]accept exits with 7 [16:16:52]New connection [16:16:52]New thread 3067264356 created [16:16:52]Thread 3067407716 joined [16:16:52]Waiting for new connection... [16:16:52] Sock 7.Parse request [16:16:52]Sock 7.Check first char [16:16:52]Sock 7.First char is OK [16:16:52]request: POST /json_proto HTTP/1.0 [16:16:52]Method: POST [16:16:52]URL: /json_proto [16:16:52]Method is POST - this is cgi request [16:16:52]url: /json_proto [16:16:52]query_string will be loaded in cgi processing [16:16:52]execute_cgi json_proto POST (null) [16:16:52]execute_cgi path=json_proto method=POST [16:16:52]POST find Content-Length [16:16:52]Host: 172.17.38.4:8080 [16:16:52]Content-Length: 1148 [16:16:52]Content-Type: application/json [16:16:52] [16:16:52]POST finish read [16:16:52]Found Content-Length = 1148 [16:16: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979829\u000A04.06.2024 15:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30112314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:52]execute_script... [16:16: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979829\u000A04.06.2024 15:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30112314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:52]POST & json_proto [16:16:52]process_json_proto [16:16:52]json parsed OK: [16:16:52]protocol is kg_v1.0 [16:16:52]action value=print_text [16:16:52]process_action print_text [16:16:52]cmd_print_text [16:16:52]ExternCall_PrintAddStr [16:16:52]wPrintStart [16:16:52]Write to MH i2c: 01 00 00 42 1B 5D [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: 01 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: 01 07 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: 01 07 00 42 1B 00 00 00 00 00 FF 0F 72 [16:16:52]RasterBufferAndPrint [16:16:52]line *****ТОВАРНЫЙ ЧЕК***** [16:16:52]line АЗС 68 [16:16:52]line Партнер нефть [16:16:52]line 02508201610067 [16:16:52]line Кассир : Аскаров Н. [16:16:52]line Счет N : (1)979829 [16:16:52]line 04.06.2024 15:57 [16:16:52]line ПРОДАЖА [16:16:52]line ТРК (МРК, ГНК): 52 [16:16:52]line Вид ГСМ : 2710194210 [16:16:52]line ДТ-К-5 [16:16:52]line 50.000 x 72.90 [16:16:52]line ИТОГ: 3645.00 [16:16:52]line Тип оплаты: Талоны: ТК ГПНА Online [16:16:52]line 30112314 [16:16:52]line ______________________ [16:16:52]line (подпись) [16:16:52]written 0, free lines is 4095 [16:16:52]Write to MH i2c: 01 00 00 56 1B 71 [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: 01 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: 01 07 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: 01 07 00 56 1B 00 00 00 00 00 0D 0E 93 [16:16:52]RasterBufferAndPrint [16:16:52]line [16:16:52]line [16:16:52]line [16:16:52]line [16:16:52]line [16:16:52]written 0, free lines is 3599 [16:16:52]MH_Cut [16:16:52]Write to MH i2c: D1 01 00 5D 1B 01 4A [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: D1 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: D1 01 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: D1 01 00 5D 1B 00 49 [16:16:52]Write to MH i2c: 01 00 00 5E 1B 79 [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:53]*** Cut start [16:16:53]*** Partial cut [16:16:53]*** CUTSNS_PIN = 1 [16:16:53]*** CUTSNS_PIN = 0 [16:16:53]*** Brake cut motor [16:16:53]Read from MH i2c: 01 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: 01 07 00 [16:16:53]MH_I2C_Read... [16:16:53]*** Stop cut motor [16:16:53]*** Cut end [16:16:53]Read from MH i2c: 01 07 00 5E 1B 00 00 00 00 00 FF 0F 8E [16:16:53]process_action print_text done [16:16:53]requested_data is exist [16:16:53]produce_requested_data [16:16:53]requested_item fm.sn is exist - process it [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 11 00 00 [16:16:53]Write to MH i2c: E2 08 00 5F 1B 80 11 00 00 00 00 00 00 F4 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 17 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 17 00 5F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 47 [16:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:16:53]wFMCommunicate OK [16:16:53]requested_item fd.num is exist - process it [16:16:53]SAM_PROTO_GetFieldsCounters [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 13 00 00 [16:16:53]Write to MH i2c: E2 08 00 60 1B 80 13 00 00 00 00 00 00 F7 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 62 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 62 00 60 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A4 45 02 00 0E 04 04 00 70 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 3C [16:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A4 45 02 00 0E 04 04 00 70 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 [16:16:53]wFMCommunicate OK [16:16:53]SAM_PROTO_GetFieldsCounters done [16:16:53]requested_item shift.num is exist - process it [16:16:53]requested_item shift.opened is exist - process it [16:16:53]req_shift_opened [16:16:53]FM_GetShiftState [16:16:53]SAM_PROTO_GetShiftState [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 13 01 00 [16:16:53]Write to MH i2c: E2 08 00 61 1B 80 13 01 00 00 00 00 00 F9 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 0E 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 0E 00 61 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BC [16:16:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:16:53]wFMCommunicate OK [16:16:53]SAM_PROTO_GetShiftState done [16:16:53]FM_GetShiftState done [16:16:53]req_shift_opened done [16:16:53]requested_item shift.open_date is exist - process it [16:16:53]req_shift_open_date [16:16:53]req_shift_open_date done [16:16:53]produce_requested_data done [16:16:53]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148900,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:16:53]process_action_free print_text [16:16:53]json_value_free [16:16:53]json_value_free done [16:16:53]process_json_proto returns [16:16:53]Send response to host [16:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148900,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:16:53]free response buf [16:16:53]execute_script done [16:16:53]execute_script returns [16:16:53]free content buf [16:16:53]Sock 7.Close socket [16:16:53]Sock 7.Thread stoped [16:16:54]accept exits with 9 [16:16:54]New connection [16:16:54]New thread 3067407716 created [16:16:54]Thread 3067264356 joined [16:16:54]Waiting for new connection... [16:16:54] Sock 9.Parse request [16:16:54]Sock 9.Check first char [16:16:54]Sock 9.First char is OK [16:16:54]request: POST /json_proto HTTP/1.0 [16:16:54]Method: POST [16:16:54]URL: /json_proto [16:16:54]Method is POST - this is cgi request [16:16:54]url: /json_proto [16:16:54]query_string will be loaded in cgi processing [16:16:54]execute_cgi json_proto POST (null) [16:16:54]execute_cgi path=json_proto method=POST [16:16:54]POST find Content-Length [16:16:54]Host: 172.17.38.4:8080 [16:16:54]Content-Length: 678 [16:16:54]Content-Type: application/json [16:16:54] [16:16:54]POST finish read [16:16:54]Found Content-Length = 678 [16:16:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:54]execute_script... [16: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)979831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:54]POST & json_proto [16:16:54]process_json_proto [16:16:54]json parsed OK: [16:16:54]protocol is kg_v1.0 [16:16:54]action value=close_receipt [16:16:54]process_action close_receipt [16:16:54]cmd_close_receipt [16:16:54]MH_GetDate [16:16:54]Write to MH i2c: F0 00 00 62 1B 6C [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: F0 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: F0 09 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: F0 09 00 62 1B 00 F8 3D 5F 66 CC 51 87 64 77 [16:16:54]GetLastDocTimeStamp 1717517779 [16:16:54]current date 1717517816 [16:16:54]FM_GetShiftState [16:16:54]SAM_PROTO_GetShiftState [16:16:54]wFMCommunicate request_size=4 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 13 01 00 [16:16:54]Write to MH i2c: E2 08 00 63 1B 80 13 01 00 00 00 00 00 FB [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 0E 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 0E 00 63 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BE [16:16:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:16:54]wFMCommunicate OK [16:16:54]SAM_PROTO_GetShiftState done [16:16:54]FM_GetShiftState done [16:16:54]opened in 1717460629 [16:16:54]opened+sec_in_day 1717547029 [16:16:54]quantity*price = 70044 [16:16:54]sum+1 = 70045 [16:16:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 240 04.06.2024 16:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148901 ФПД: 216614773799653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161656&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148901&fm=216614773799653&tin=02508201610067®Number=0000000000092720&sum=70000 [16:16:55]StoreToDocumentArchive [16:16:55]shift 368 fd 148901 [16:16:55]save to /storage/0368/doc_00148901 [16:16:55]save last doc name /storage/0368/doc_00148901 to /storage/kkm_last_doc_name [16:16:55]save OK [16:16:55]Clear old archive folders... [16:16:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:55]tlvbuf is B6FC4710 [16:16:55]SAM_PROTO_ClearQueue [16:16:55]wFMCommunicate request_size=4 [16:16:55]MH_SAM_APDU [16:16:55]CAPDU: 80 09 00 00 [16:16:55]Write to MH i2c: E2 08 00 70 1B 80 09 00 00 00 00 00 00 FD [16:16:55]Write i2c OK [16:16:55]MH_I2C_Read... [16:16:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:55]Read from MH i2c: E2 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 03 00 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 03 00 70 1B 00 90 00 FF [16:16:55]RAPDU: 90 00 [16:16:55]wFMCommunicate OK [16:16:55]SAM_PROTO_ClearQueue done [16:16:55]KKMCreateOFDPacket [16:16:55]OFDProtocolAddRootSTLVToBuf [16:16:55]FM_MakeSignedData [16:16:55]FM_MakeSignedData [16:16:55]SAM_PROTO_SignData [16:16:55]wFMCommunicate request_size=4 [16:16:55]MH_SAM_APDU [16:16:55]CAPDU: 80 0D 01 02 [16:16:55]Write to MH i2c: E2 08 00 71 1B 80 0D 01 02 00 00 00 00 05 [16:16:55]Write i2c OK [16:16:55]MH_I2C_Read... [16:16:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:55]Read from MH i2c: E2 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 03 00 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 03 00 71 1B 00 90 00 00 [16:16:55]RAPDU: 90 00 [16:16:55]wFMCommunicate OK [16:16:55]wFMCommunicate request_size=255 [16:16:55]MH_SAM_APDU [16:16:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F0 00 00 00 F4 03 04 00 F8 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A5 45 02 00 35 04 06 00 C5 [16:16:55]Write to MH i2c: E2 02 01 72 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F0 00 00 00 F4 03 04 00 F8 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A5 45 02 00 35 04 06 00 C5 00 00 AB [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]OFD Sender: No OFD packet to send [16:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 03 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 03 00 72 1B 00 90 00 01 [16:16:56]RAPDU: 90 00 [16:16:56]wFMCommunicate OK [16:16:56]wFMCommunicate request_size=10 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 0D 02 02 05 02 8E A5 3A E5 [16:16:56]Write to MH i2c: E2 0D 00 73 1B 80 0D 02 02 05 00 02 8E A5 3A E5 00 00 66 [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 03 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 03 00 73 1B 00 90 00 02 [16:16:56]RAPDU: 90 00 [16:16:56]wFMCommunicate OK [16:16:56]wFMCommunicate request_size=4 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 0D 03 02 [16:16:56]Write to MH i2c: E2 08 00 74 1B 80 0D 03 02 00 00 00 00 0A [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 0B 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 0B 00 74 1B 00 6B F6 65 61 53 AA CE 28 90 00 25 [16:16:56]RAPDU: 6B F6 65 61 53 AA CE 28 90 00 [16:16:56]wFMCommunicate OK [16:16:56]SAM_PROTO_SignData done [16:16:56]FM_MakeSignedData done [16:16:56]CreateOFDProtocolMessage [16:16:56]wFMCommunicate request_size=4 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 11 00 00 [16:16:56]Write to MH i2c: E2 08 00 75 1B 80 11 00 00 00 00 00 00 0A [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 17 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 17 00 75 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5D [16:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:16:56]wFMCommunicate OK [16:16:56]CreateOFDProtocolMessage done [16:16:56]OFDSenderStorePacket 148901 [16:16:56]StoreOFDPacket docnum=148901 [16:16:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 15 99 07 01 57 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 F8 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A5 45 02 00 35 04 06 00 C5 02 8E A5 3A E5 6B F6 65 61 53 AA CE 28 [16:16:56]CheckFolder [16:16:56]dirname=/storage/ofd_packets [16:16:56]CheckFolder done [16:16:56]ProducePacketName [16:16:56]name=ofd_packets/00148901 [16:16:56]NVStorageSaveData ofd_packets/00148901 [16:16:56]File name is /storage/ofd_packets/00148901 [16:16:56]Write 301 bytes [16:16:56]NVStorageSaveData done [16:16:56]OFDSenderStorePacket done [16:16:56]KKMCreateOFDPacket done [16:16:56]NVStorageSaveData kkm_last_timestamp [16:16:56]File name is /storage/kkm_last_timestamp [16:16:56]Write 4 bytes [16:16:56]NVStorageSaveData done [16:16:56]ExternCall_PrintAddStr [16:16:56]wPrintStart [16:16:56]Write to MH i2c: 01 00 00 76 1B 91 [16:16:56]OFD Sender: Processing packet 148901 [packets to send 100, broken 99] [16:16:56]ProducePacketName [16:16:56]name=ofd_packets/00148901 [16:16:56]OFD Sender: To server: pG, [16:16:56]CommunicateWithHost lk.salyk.kg:30040 [16:16:56]ConnectInit lk.salyk.kg [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 07 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 07 00 76 1B 00 00 00 00 00 FF 0F A6 [16:16:56]RasterBufferAndPrint [16:16:56]line Счет N : (1)979831 [16:16:56]line ИНН: 02508201610067 [16:16:56]line Контрольно-Кассовый Чек [16:16:56]line ПРОДАЖА [16:16:56]line ТРК (МРК, ГНК) : 31 [16:16:56]line Товар: 2710124130 [16:16:56]line Аи-92-К-5 [16:16:56]line 10.470 * 66.90 [16:16:56]line = 700.44 [16:16:56]line НДС 12% НСП 1% [16:16:56]line > о реализуемом товаре [16:16:56]line ОКРУГЛЕНИЕ: -0.44 [16:16:56]line ИТОГО: 700.00 [16:16:56]line Внесено: 700.00 [16:16:56]line СДАЧА: 0.00 [16:16:56]line НСП 1% : 6.20 [16:16:56]line НДС 12% : 74.38 [16:16:56]line Наличными: 700.00 [16:16:56]line Безнал.: 0.00 [16:16:56]line Место: АЗС № 68 "Партнер Нефть" [16:16:56]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:16:56]line СНО: Общий режим [16:16:56]line Чек 240 04.06.2024 16:16 [16:16:56]line Смена: 368 ФФД: 1.0 [16:16:56]line ЗНМ: 0300000035 [16:16:56]line РНМ: 0000000000092720 [16:16:56]line Версия ККМ: 001 [16:16:56]line ФМ: 0000000000875057 [16:16:56]line ФД: 148901 [16:16:56]line ФПД: 216614773799653 [16:16:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161656&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148901&fm=216614773799653&tin=02508201610067®Number=0000000000092720&sum=70000 [16:16:56]written 0, free lines is 4095 [16:16:56]Connected sock=10 [16:16:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 15 99 07 01 57 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 F8 3D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A5 45 02 00 35 04 06 00 C5 02 8E A5 3A E5 6B F6 65 61 53 AA CE 28 [16:16:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A2 EE 47 00 6A 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 38 37 35 30 35 37 10 04 04 00 A5 45 02 00 F4 03 04 00 1B E5 5E 66 B6 04 01 00 00 E8 18 1A 92 65 5C B9 0F [16:16:57]CommunicateWithHost err = 0 [16:16:57]CheckOFDResponse [16:16:57]1017 (14) - 77093643461234 [16:16:57]1041 (16) - 0000000000875057 [16:16:57]1040 (4) - 148901 [16:16:57]1012 (4) - 04.06.2024 09:57 [16:16:57]1206 (1) - 0 [16:16:57]OFD Sender: Remove packet 148901 [16:16:57]ProducePacketName [16:16:57]name=ofd_packets/00148901 [16:16:57]NVStorageDeleteData [16:16:57]Write to MH i2c: 01 00 00 A1 1B BC [16:16:57]Write i2c OK [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: 01 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: 01 07 00 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: 01 07 00 A1 1B 00 00 00 00 00 70 0C 3F [16:16:57]RasterBufferAndPrint [16:16:57]line [16:16:57]line [16:16:57]line [16:16:57]line [16:16:57]line [16:16:57]written 0, free lines is 3187 [16:16:57]MH_Cut [16:16:57]Write to MH i2c: D1 01 00 A8 1B 01 95 [16:16:57]Write i2c OK [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: D1 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: D1 01 00 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: D1 01 00 A8 1B 00 94 [16:16:57]Write to MH i2c: 01 00 00 A9 1B C4 [16:16:57]Write i2c OK [16:16:57]MH_I2C_Read... [16:16:57]OFD Sender: No OFD packet to send [16:16:58]*** Cut start [16:16:58]*** Partial cut [16:16:58]*** CUTSNS_PIN = 1 [16:16:58]*** CUTSNS_PIN = 0 [16:16:58]*** Brake cut motor [16:16:59]Read from MH i2c: 01 [16:16:59]*** Stop cut motor [16:16:59]MH_I2C_Read... [16:16:59]*** Cut end [16:16:59]Read from MH i2c: 01 07 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: 01 07 00 A9 1B 00 00 00 00 00 FF 0F D9 [16:16:59]process_action close_receipt done [16:16:59]requested_data is exist [16:16:59]produce_requested_data [16:16:59]requested_item fm.sn is exist - process it [16:16:59]wFMCommunicate request_size=4 [16:16:59]MH_SAM_APDU [16:16:59]CAPDU: 80 11 00 00 [16:16:59]Write to MH i2c: E2 08 00 AA 1B 80 11 00 00 00 00 00 00 3F [16:16:59]Write i2c OK [16:16:59]MH_I2C_Read... [16:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:59]Read from MH i2c: E2 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 17 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 17 00 AA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 92 [16:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:16:59]wFMCommunicate OK [16:16:59]requested_item fd.num is exist - process it [16:16:59]SAM_PROTO_GetFieldsCounters [16:16:59]wFMCommunicate request_size=4 [16:16:59]MH_SAM_APDU [16:16:59]CAPDU: 80 13 00 00 [16:16:59]Write to MH i2c: E2 08 00 AB 1B 80 13 00 00 00 00 00 00 42 [16:16:59]Write i2c OK [16:16:59]MH_I2C_Read... [16:16:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:59]Read from MH i2c: E2 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 62 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 62 00 AB 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A5 45 02 00 0E 04 04 00 70 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 8B [16:16:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A5 45 02 00 0E 04 04 00 70 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 [16:16:59]wFMCommunicate OK [16:16:59]SAM_PROTO_GetFieldsCounters done [16:16:59]requested_item shift.num is exist - process it [16:16:59]requested_item shift.opened is exist - process it [16:16:59]req_shift_opened [16:16:59]FM_GetShiftState [16:16:59]SAM_PROTO_GetShiftState [16:16:59]wFMCommunicate request_size=4 [16:16:59]MH_SAM_APDU [16:16:59]CAPDU: 80 13 01 00 [16:16:59]Write to MH i2c: E2 08 00 AC 1B 80 13 01 00 00 00 00 00 44 [16:16:59]Write i2c OK [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 [16:16:59]MH_I2C_Read... [16:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:59]Read from MH i2c: E2 0E 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 0E 00 AC 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 07 [16:16:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:16:59]wFMCommunicate OK [16:16:59]SAM_PROTO_GetShiftState done [16:16:59]FM_GetShiftState done [16:16:59]req_shift_opened done [16:16:59]requested_item shift.open_date is exist - process it [16:16:59]req_shift_open_date [16:16:59]req_shift_open_date done [16:16:59]produce_requested_data done [16:16:59]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148901,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:16:59]process_action_free close_receipt [16:16:59]json_value_free [16:16:59]json_value_free done [16:16:59]process_json_proto returns [16:16:59]Send response to host [16:16:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148901,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:16:59]free response buf [16:16:59]execute_script done [16:16:59]execute_script returns [16:16:59]free content buf [16:16:59]Sock 9.Close socket [16:16:59]Sock 9.Thread stoped [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:26]accept exits with 7 [16:19:26]New connection [16:19:26]New thread 3067264356 created [16:19:26]Thread 3067407716 joined [16:19:26]Waiting for new connection... [16:19:26] Sock 7.Parse request [16:19:26]Sock 7.Check first char [16:19:26]Sock 7.First char is OK [16:19:26]request: POST /json_proto HTTP/1.0 [16:19:26]Method: POST [16:19:26]URL: /json_proto [16:19:26]Method is POST - this is cgi request [16:19:26]url: /json_proto [16:19:26]query_string will be loaded in cgi processing [16:19:26]execute_cgi json_proto POST (null) [16:19:26]execute_cgi path=json_proto method=POST [16:19:26]POST find Content-Length [16:19:26]Host: 172.17.38.4:8080 [16:19:26]Content-Length: 677 [16:19:26]Content-Type: application/json [16:19:26] [16:19:26]POST finish read [16:19:26]Found Content-Length = 677 [16:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:26]execute_script... [16:19: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)979834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:26]POST & json_proto [16:19:26]process_json_proto [16:19:26]json parsed OK: [16:19:26]protocol is kg_v1.0 [16:19:26]action value=close_receipt [16:19:26]process_action close_receipt [16:19:26]cmd_close_receipt [16:19:26]MH_GetDate [16:19:26]Write to MH i2c: F0 00 00 AD 1B B7 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 09 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 09 00 AD 1B 00 8F 3E 5F 66 CC 51 87 64 5A [16:19:26]GetLastDocTimeStamp 1717517816 [16:19:26]current date 1717517967 [16:19:26]FM_GetShiftState [16:19:26]SAM_PROTO_GetShiftState [16:19:26]wFMCommunicate request_size=4 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 13 01 00 [16:19:26]Write to MH i2c: E2 08 00 AE 1B 80 13 01 00 00 00 00 00 46 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 0E 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 0E 00 AE 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 09 [16:19:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:19:26]wFMCommunicate OK [16:19:26]SAM_PROTO_GetShiftState done [16:19:26]FM_GetShiftState done [16:19:26]opened in 1717460629 [16:19:26]opened+sec_in_day 1717547029 [16:19:26]quantity*price = 20003 [16:19:26]sum+1 = 20004 [16:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 241 04.06.2024 16:19 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148902 ФПД: 46526557627906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161927&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148902&fm=46526557627906&tin=02508201610067®Number=0000000000092720&sum=20000 [16:19:27]StoreToDocumentArchive [16:19:27]shift 368 fd 148902 [16:19:27]save to /storage/0368/doc_00148902 [16:19:27]save last doc name /storage/0368/doc_00148902 to /storage/kkm_last_doc_name [16:19:27]save OK [16:19:27]Clear old archive folders... [16:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:27]tlvbuf is B6F30320 [16:19:27]SAM_PROTO_ClearQueue [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 09 00 00 [16:19:27]Write to MH i2c: E2 08 00 BB 1B 80 09 00 00 00 00 00 00 48 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 BB 1B 00 90 00 4A [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]SAM_PROTO_ClearQueue done [16:19:27]KKMCreateOFDPacket [16:19:27]OFDProtocolAddRootSTLVToBuf [16:19:27]FM_MakeSignedData [16:19:27]FM_MakeSignedData [16:19:27]SAM_PROTO_SignData [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 0D 01 02 [16:19:27]Write to MH i2c: E2 08 00 BC 1B 80 0D 01 02 00 00 00 00 50 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 BC 1B 00 90 00 4B [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]wFMCommunicate request_size=255 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 3E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A6 45 02 00 35 04 06 00 2A [16:19:27]Write to MH i2c: E2 02 01 BD 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 3E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A6 45 02 00 35 04 06 00 2A 00 00 A7 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]OFD Sender: No OFD packet to send [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 BD 1B 00 90 00 4C [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]wFMCommunicate request_size=10 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 0D 02 02 05 50 CE F0 A6 02 [16:19:27]Write to MH i2c: E2 0D 00 BE 1B 80 0D 02 02 05 00 50 CE F0 A6 02 00 00 13 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 0D 03 02 [16:19:27]Write to MH i2c: E2 08 00 BF 1B 80 0D 03 02 00 00 00 00 55 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0B 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0B 00 BF 1B 00 7A 95 27 38 CB EA 50 CE 90 00 97 [16:19:27]RAPDU: 7A 95 27 38 CB EA 50 CE 90 00 [16:19:27]wFMCommunicate OK [16:19:27]SAM_PROTO_SignData done [16:19:27]FM_MakeSignedData done [16:19:27]CreateOFDProtocolMessage [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 11 00 00 [16:19:27]Write to MH i2c: E2 08 00 C0 1B 80 11 00 00 00 00 00 00 55 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 17 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 17 00 C0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A8 [16:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:19:27]wFMCommunicate OK [16:19:27]CreateOFDProtocolMessage done [16:19:27]OFDSenderStorePacket 148902 [16:19:27]StoreOFDPacket docnum=148902 [16:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 59 79 07 01 6D 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 8F 3E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A6 45 02 00 35 04 06 00 2A 50 CE F0 A6 02 7A 95 27 38 CB EA 50 CE [16:19:27]CheckFolder [16:19:27]dirname=/storage/ofd_packets [16:19:27]CheckFolder done [16:19:27]ProducePacketName [16:19:27]name=ofd_packets/00148902 [16:19:27]NVStorageSaveData ofd_packets/00148902 [16:19:27]File name is /storage/ofd_packets/00148902 [16:19:27]Write 301 bytes [16:19:27]NVStorageSaveData done [16:19:27]OFDSenderStorePacket done [16:19:27]KKMCreateOFDPacket done [16:19:27]NVStorageSaveData kkm_last_timestamp [16:19:27]File name is /storage/kkm_last_timestamp [16:19:27]Write 4 bytes [16:19:27]NVStorageSaveData done [16:19:27]ExternCall_PrintAddStr [16:19:27]wPrintStart [16:19:27]Write to MH i2c: 01 00 00 C1 1B DC [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: 01 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: 01 07 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: 01 07 00 C1 1B 00 00 00 00 00 FF 0F F1 [16:19:27]RasterBufferAndPrint [16:19:27]line Счет N : (1)979834 [16:19:27]line ИНН: 02508201610067 [16:19:27]line Контрольно-Кассовый Чек [16:19:27]line ПРОДАЖА [16:19:27]line ТРК (МРК, ГНК) : 31 [16:19:27]line Товар: 2710124130 [16:19:27]line Аи-92-К-5 [16:19:27]line 2.990 * 66.90 [16:19:27]line = 200.03 [16:19:27]line НДС 12% НСП 1% [16:19:27]line > о реализуемом товаре [16:19:27]line ОКРУГЛЕНИЕ: -0.03 [16:19:27]line ИТОГО: 200.00 [16:19:27]line Внесено: 200.00 [16:19:27]line СДАЧА: 0.00 [16:19:27]line НСП 1% : 1.77 [16:19:27]line НДС 12% : 21.24 [16:19:27]line Наличными: 200.00 [16:19:27]line Безнал.: 0.00 [16:19:27]line Место: АЗС № 68 "Партнер Нефть" [16:19:27]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:19:27]line СНО: Общий режим [16:19:27]line Чек 241 04.06.2024 16:19 [16:19:27]line Смена: 368 ФФД: 1.0 [16:19:27]line ЗНМ: 0300000035 [16:19:27]line РНМ: 0000000000092720 [16:19:27]line Версия ККМ: 001 [16:19:27]line ФМ: 0000000000875057 [16:19:27]line ФД: 148902 [16:19:27]line ФПД: 46526557627906 [16:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161927&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148902&fm=46526557627906&tin=02508201610067®Number=0000000000092720&sum=20000 [16:19:28]OFD Sender: Processing packet 148902 [packets to send 100, broken 99] [16:19:28]ProducePacketName [16:19:28]name=ofd_packets/00148902 [16:19:28]OFD Sender: To server: pG, [16:19:28]CommunicateWithHost lk.salyk.kg:30040 [16:19:28]ConnectInit lk.salyk.kg [16:19:28]written 0, free lines is 4095 [16:19:28]Connected sock=10 [16:19:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 59 79 07 01 6D 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 8F 3E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A6 45 02 00 35 04 06 00 2A 50 CE F0 A6 02 7A 95 27 38 CB EA 50 CE [16:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 23 00 47 00 64 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 38 37 35 30 35 37 10 04 04 00 A6 45 02 00 F4 03 04 00 B3 E5 5E 66 B6 04 01 00 00 71 F4 36 F6 4B 78 89 8D [16:19:28]CommunicateWithHost err = 0 [16:19:28]CheckOFDResponse [16:19:28]1017 (14) - 77093643461234 [16:19:28]1041 (16) - 0000000000875057 [16:19:28]1040 (4) - 148902 [16:19:28]1012 (4) - 04.06.2024 10:00 [16:19:28]1206 (1) - 0 [16:19:28]OFD Sender: Remove packet 148902 [16:19:28]ProducePacketName [16:19:28]name=ofd_packets/00148902 [16:19:28]NVStorageDeleteData [16:19:28]Write to MH i2c: 01 00 00 EC 1B 07 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 EC 1B 00 00 00 00 00 69 0C 83 [16:19:28]RasterBufferAndPrint [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]written 0, free lines is 3180 [16:19:28]MH_Cut [16:19:28]Write to MH i2c: D1 01 00 F3 1B 01 E0 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 01 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 01 00 F3 1B 00 DF [16:19:28]Write to MH i2c: 01 00 00 F4 1B 0F [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:29]OFD Sender: No OFD packet to send [16:19:29]*** Cut start [16:19:29]*** Partial cut [16:19:29]*** CUTSNS_PIN = 1 [16:19:30]*** CUTSNS_PIN = 0 [16:19:30]*** Brake cut motor [16:19:30]Read from MH i2c: 01 [16:19:30]MH_I2C_Read... [16:19:30]*** Stop cut motor [16:19:30]*** Cut end [16:19:30]Read from MH i2c: 01 07 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: 01 07 00 F4 1B 00 00 00 00 00 FF 0F 24 [16:19:30]process_action close_receipt done [16:19:30]requested_data is exist [16:19:30]produce_requested_data [16:19:30]requested_item fm.sn is exist - process it [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 11 00 00 [16:19:30]Write to MH i2c: E2 08 00 F5 1B 80 11 00 00 00 00 00 00 8A [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 17 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 17 00 F5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DD [16:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:19:30]wFMCommunicate OK [16:19:30]requested_item fd.num is exist - process it [16:19:30]SAM_PROTO_GetFieldsCounters [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 13 00 00 [16:19:30]Write to MH i2c: E2 08 00 F6 1B 80 13 00 00 00 00 00 00 8D [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 62 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 62 00 F6 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A6 45 02 00 0E 04 04 00 70 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 DA [16:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A6 45 02 00 0E 04 04 00 70 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 [16:19:30]wFMCommunicate OK [16:19:30]SAM_PROTO_GetFieldsCounters done [16:19:30]requested_item shift.num is exist - process it [16:19:30]requested_item shift.opened is exist - process it [16:19:30]req_shift_opened [16:19:30]FM_GetShiftState [16:19:30]SAM_PROTO_GetShiftState [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 13 01 00 [16:19:30]Write to MH i2c: E2 08 00 F7 1B 80 13 01 00 00 00 00 00 8F [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 0E 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 0E 00 F7 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 52 [16:19:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:19:30]wFMCommunicate OK [16:19:30]SAM_PROTO_GetShiftState done [16:19:30]FM_GetShiftState done [16:19:30]req_shift_opened done [16:19:30]requested_item shift.open_date is exist - process it [16:19:30]req_shift_open_date [16:19:30]req_shift_open_date done [16:19:30]produce_requested_data done [16:19:30]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148902,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:19:30]process_action_free close_receipt [16:19:30]json_value_free [16:19:30]json_value_free done [16:19:30]process_json_proto returns [16:19:30]Send response to host [16:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148902,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:19:30]free response buf [16:19:30]execute_script done [16:19:30]execute_script returns [16:19:30]free content buf [16:19:30]Sock 7.Close socket [16:19:30]Sock 7.Thread stoped [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:46]accept exits with 9 [16:19:46]New connection [16:19:46]New thread 3067407716 created [16:19:46]Thread 3067264356 joined [16:19:46]Waiting for new connection... [16:19:46] Sock 9.Parse request [16:19:46]Sock 9.Check first char [16:19:46]Sock 9.First char is OK [16:19:46]request: POST /json_proto HTTP/1.0 [16:19:46]Method: POST [16:19:46]URL: /json_proto [16:19:46]Method is POST - this is cgi request [16:19:46]url: /json_proto [16:19:46]query_string will be loaded in cgi processing [16:19:46]execute_cgi json_proto POST (null) [16:19:46]execute_cgi path=json_proto method=POST [16:19:46]POST find Content-Length [16:19:46]Host: 172.17.38.4:8080 [16:19:46]Content-Length: 790 [16:19:46]Content-Type: application/json [16:19:46] [16:19:46]POST finish read [16:19:46]Found Content-Length = 790 [16:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:46]execute_script... [16:19: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)979833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:46]POST & json_proto [16:19:46]process_json_proto [16:19:46]json parsed OK: [16:19:46]protocol is kg_v1.0 [16:19:46]action value=close_receipt [16:19:46]process_action close_receipt [16:19:46]cmd_close_receipt [16:19:46]MH_GetDate [16:19:46]Write to MH i2c: F0 00 00 F8 1B 02 [16:19:46]Write i2c OK [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: F0 [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: F0 09 00 [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: F0 09 00 F8 1B 00 A4 3E 5F 66 CC 51 87 64 BA [16:19:46]GetLastDocTimeStamp 1717517967 [16:19:46]current date 1717517988 [16:19:46]FM_GetShiftState [16:19:46]SAM_PROTO_GetShiftState [16:19:46]wFMCommunicate request_size=4 [16:19:46]MH_SAM_APDU [16:19:46]CAPDU: 80 13 01 00 [16:19:46]Write to MH i2c: E2 08 00 F9 1B 80 13 01 00 00 00 00 00 91 [16:19:46]Write i2c OK [16:19:46]MH_I2C_Read... [16:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:46]Read from MH i2c: E2 [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: E2 0E 00 [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: E2 0E 00 F9 1B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 54 [16:19:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:19:46]wFMCommunicate OK [16:19:46]SAM_PROTO_GetShiftState done [16:19:46]FM_GetShiftState done [16:19:46]opened in 1717460629 [16:19:46]opened+sec_in_day 1717547029 [16:19:46]quantity*price = 50041 [16:19:46]sum+1 = 50042 [16:19:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 242 04.06.2024 16:19 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148903 ФПД: 19735967124782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161948&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148903&fm=19735967124782&tin=02508201610067®Number=0000000000092720&sum=50041 [16:19:47]StoreToDocumentArchive [16:19:47]shift 368 fd 148903 [16:19:47]save to /storage/0368/doc_00148903 [16:19:47]save last doc name /storage/0368/doc_00148903 to /storage/kkm_last_doc_name [16:19:47]save OK [16:19:47]Clear old archive folders... [16:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:47]tlvbuf is 00486700 [16:19:47]SAM_PROTO_ClearQueue [16:19:47]wFMCommunicate request_size=4 [16:19:47]MH_SAM_APDU [16:19:47]CAPDU: 80 09 00 00 [16:19:47]Write to MH i2c: E2 08 00 06 1C 80 09 00 00 00 00 00 00 94 [16:19:47]Write i2c OK [16:19:47]MH_I2C_Read... [16:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:47]Read from MH i2c: E2 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 03 00 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 03 00 06 1C 00 90 00 96 [16:19:47]RAPDU: 90 00 [16:19:47]wFMCommunicate OK [16:19:47]SAM_PROTO_ClearQueue done [16:19:47]KKMCreateOFDPacket [16:19:47]OFDProtocolAddRootSTLVToBuf [16:19:47]FM_MakeSignedData [16:19:47]FM_MakeSignedData [16:19:47]SAM_PROTO_SignData [16:19:47]wFMCommunicate request_size=4 [16:19:47]MH_SAM_APDU [16:19:47]CAPDU: 80 0D 01 02 [16:19:47]Write to MH i2c: E2 08 00 07 1C 80 0D 01 02 00 00 00 00 9C [16:19:47]Write i2c OK [16:19:47]MH_I2C_Read... [16:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:47]Read from MH i2c: E2 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 03 00 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 03 00 07 1C 00 90 00 97 [16:19:47]RAPDU: 90 00 [16:19:47]wFMCommunicate OK [16:19:47]wFMCommunicate request_size=255 [16:19:47]MH_SAM_APDU [16:19:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 F2 00 00 00 F4 03 04 00 A4 3E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A7 45 02 00 35 04 06 00 11 [16:19:47]Write to MH i2c: E2 02 01 08 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 F2 00 00 00 F4 03 04 00 A4 3E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A7 45 02 00 35 04 06 00 11 00 00 81 [16:19:47]Write i2c OK [16:19:47]MH_I2C_Read... [16:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:47]Read from MH i2c: E2 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 03 00 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 03 00 08 1C 00 90 00 98 [16:19:47]RAPDU: 90 00 [16:19:47]wFMCommunicate OK [16:19:47]wFMCommunicate request_size=10 [16:19:47]MH_SAM_APDU [16:19:47]CAPDU: 80 0D 02 02 05 F3 23 4F 4D 2E [16:19:47]Write to MH i2c: E2 0D 00 09 1C 80 0D 02 02 05 00 F3 23 4F 4D 2E 00 00 89 [16:19:47]Write i2c OK [16:19:47]MH_I2C_Read... [16:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:48]Read from MH i2c: E2 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 03 00 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 03 00 09 1C 00 90 00 99 [16:19:48]RAPDU: 90 00 [16:19:48]wFMCommunicate OK [16:19:48]wFMCommunicate request_size=4 [16:19:48]MH_SAM_APDU [16:19:48]CAPDU: 80 0D 03 02 [16:19:48]Write to MH i2c: E2 08 00 0A 1C 80 0D 03 02 00 00 00 00 A1 [16:19:48]Write i2c OK [16:19:48]MH_I2C_Read... [16:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:48]Read from MH i2c: E2 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 0B 00 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 0B 00 0A 1C 00 4A E0 9A 61 71 D8 02 28 90 00 3A [16:19:48]RAPDU: 4A E0 9A 61 71 D8 02 28 90 00 [16:19:48]wFMCommunicate OK [16:19:48]SAM_PROTO_SignData done [16:19:48]FM_MakeSignedData done [16:19:48]CreateOFDProtocolMessage [16:19:48]wFMCommunicate request_size=4 [16:19:48]MH_SAM_APDU [16:19:48]CAPDU: 80 11 00 00 [16:19:48]Write to MH i2c: E2 08 00 0B 1C 80 11 00 00 00 00 00 00 A1 [16:19:48]Write i2c OK [16:19:48]MH_I2C_Read... [16:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:48]Read from MH i2c: E2 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 17 00 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 17 00 0B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F4 [16:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:19:48]wFMCommunicate OK [16:19:48]CreateOFDProtocolMessage done [16:19:48]OFDSenderStorePacket 148903 [16:19:48]StoreOFDPacket docnum=148903 [16:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 08 DB 07 01 DC 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 A4 3E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A7 45 02 00 35 04 06 00 11 F3 23 4F 4D 2E 4A E0 9A 61 71 D8 02 28 [16:19:48]CheckFolder [16:19:48]dirname=/storage/ofd_packets [16:19:48]CheckFolder done [16:19:48]ProducePacketName [16:19:48]name=ofd_packets/00148903 [16:19:48]NVStorageSaveData ofd_packets/00148903 [16:19:48]File name is /storage/ofd_packets/00148903 [16:19:48]Write 301 bytes [16:19:48]NVStorageSaveData done [16:19:48]OFDSenderStorePacket done [16:19:48]KKMCreateOFDPacket done [16:19:48]NVStorageSaveData kkm_last_timestamp [16:19:48]File name is /storage/kkm_last_timestamp [16:19:48]Write 4 bytes [16:19:48]NVStorageSaveData done [16:19:48]ExternCall_PrintAddStr [16:19:48]wPrintStart [16:19:48]Write to MH i2c: 01 00 00 0C 1C 28 [16:19:48]Write i2c OK [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: 01 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: 01 07 00 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: 01 07 00 0C 1C 00 00 00 00 00 FF 0F 3D [16:19:48]RasterBufferAndPrint [16:19:48]line Счет N : (1)979833 [16:19:48]line ИНН: 02508201610067 [16:19:48]line Контрольно-Кассовый Чек [16:19:48]line ПРОДАЖА [16:19:48]line ТРК (МРК, ГНК) : 12 [16:19:48]line Товар: 2710124130 [16:19:48]line Аи-92-К-5 [16:19:48]line 7.480 * 66.90 [16:19:48]line = 500.41 [16:19:48]line НДС 12% НСП 1% [16:19:48]line > о реализуемом товаре [16:19:48]line ИТОГО: 500.41 [16:19:48]line НСП 1% : 4.43 [16:19:48]line НДС 12% : 53.14 [16:19:48]line Наличными: 0.00 [16:19:48]line Безнал.: 500.41 [16:19:48]line Место: АЗС № 68 "Партнер Нефть" [16:19:48]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:19:48]line СНО: Общий режим [16:19:48]line Чек 242 04.06.2024 16:19 [16:19:48]line Смена: 368 ФФД: 1.0 [16:19:48]line ЗНМ: 0300000035 [16:19:48]line РНМ: 0000000000092720 [16:19:48]line Версия ККМ: 001 [16:19:48]line Платежная система: KICB Банк [16:19:48]line ФМ: 0000000000875057 [16:19:48]line ФД: 148903 [16:19:48]line ФПД: 19735967124782 [16:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161948&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148903&fm=19735967124782&tin=02508201610067®Number=0000000000092720&sum=50041 [16:19:48]OFD Sender: Processing packet 148903 [packets to send 100, broken 99] [16:19:48]ProducePacketName [16:19:48]name=ofd_packets/00148903 [16:19:48]OFD Sender: To server: pG, [16:19:48]CommunicateWithHost lk.salyk.kg:30040 [16:19:48]ConnectInit lk.salyk.kg [16:19:48]written 0, free lines is 4095 [16:19:48]Connected sock=11 [16:19:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 08 DB 07 01 DC 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 A4 3E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A7 45 02 00 35 04 06 00 11 F3 23 4F 4D 2E 4A E0 9A 61 71 D8 02 28 [16:19:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 09 E5 47 00 F0 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 38 37 35 30 35 37 10 04 04 00 A7 45 02 00 F4 03 04 00 C7 E5 5E 66 B6 04 01 00 00 F7 6F F6 38 ED 27 D8 B8 [16:19:48]CommunicateWithHost err = 0 [16:19:48]CheckOFDResponse [16:19:48]1017 (14) - 77093643461234 [16:19:48]1041 (16) - 0000000000875057 [16:19:48]1040 (4) - 148903 [16:19:48]1012 (4) - 04.06.2024 10:00 [16:19:48]1206 (1) - 0 [16:19:48]OFD Sender: Remove packet 148903 [16:19:48]ProducePacketName [16:19:48]name=ofd_packets/00148903 [16:19:48]NVStorageDeleteData [16:19:48]Write to MH i2c: 01 00 00 36 1C 52 [16:19:48]Write i2c OK [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: 01 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: 01 07 00 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: 01 07 00 36 1C 00 00 00 00 00 85 0C EA [16:19:48]RasterBufferAndPrint [16:19:48]line [16:19:48]line [16:19:48]line [16:19:48]line [16:19:48]line [16:19:48]written 0, free lines is 3209 [16:19:48]MH_Cut [16:19:48]Write to MH i2c: D1 01 00 3D 1C 01 2B [16:19:48]Write i2c OK [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: D1 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: D1 01 00 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: D1 01 00 3D 1C 00 2A [16:19:48]Write to MH i2c: 01 00 00 3E 1C 5A [16:19:48]Write i2c OK [16:19:48]MH_I2C_Read... [16:19:49]OFD Sender: No OFD packet to send [16:19:50]*** Cut start [16:19:50]*** Partial cut [16:19:50]*** CUTSNS_PIN = 1 [16:19:50]*** CUTSNS_PIN = 0 [16:19:50]*** Brake cut motor [16:19:50]Read from MH i2c: 01 [16:19:50]MH_I2C_Read... [16:19:50]*** Stop cut motor [16:19:50]*** Cut end [16:19:50]Read from MH i2c: 01 07 00 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: 01 07 00 3E 1C 00 00 00 00 00 FF 0F 6F [16:19:50]process_action close_receipt done [16:19:50]requested_data is exist [16:19:50]produce_requested_data [16:19:50]requested_item fm.sn is exist - process it [16:19:50]wFMCommunicate request_size=4 [16:19:50]MH_SAM_APDU [16:19:50]CAPDU: 80 11 00 00 [16:19:50]Write to MH i2c: E2 08 00 3F 1C 80 11 00 00 00 00 00 00 D5 [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:50]Read from MH i2c: E2 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: E2 17 00 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: E2 17 00 3F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 28 [16:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:19:50]wFMCommunicate OK [16:19:50]requested_item fd.num is exist - process it [16:19:50]SAM_PROTO_GetFieldsCounters [16:19:50]wFMCommunicate request_size=4 [16:19:50]MH_SAM_APDU [16:19:50]CAPDU: 80 13 00 00 [16:19:50]Write to MH i2c: E2 08 00 40 1C 80 13 00 00 00 00 00 00 D8 [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:50]Read from MH i2c: E2 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: E2 62 00 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: E2 62 00 40 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A7 45 02 00 0E 04 04 00 70 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 29 [16:19:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A7 45 02 00 0E 04 04 00 70 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 [16:19:50]wFMCommunicate OK [16:19:50]SAM_PROTO_GetFieldsCounters done [16:19:50]requested_item shift.num is exist - process it [16:19:50]requested_item shift.opened is exist - process it [16:19:50]req_shift_opened [16:19:50]FM_GetShiftState [16:19:50]SAM_PROTO_GetShiftState [16:19:50]wFMCommunicate request_size=4 [16:19:50]MH_SAM_APDU [16:19:50]CAPDU: 80 13 01 00 [16:19:50]Write to MH i2c: E2 08 00 41 1C 80 13 01 00 00 00 00 00 DA [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 0E 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 0E 00 41 1C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9D [16:19:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:19:51]wFMCommunicate OK [16:19:51]SAM_PROTO_GetShiftState done [16:19:51]FM_GetShiftState done [16:19:51]req_shift_opened done [16:19:51]requested_item shift.open_date is exist - process it [16:19:51]req_shift_open_date [16:19:51]req_shift_open_date done [16:19:51]produce_requested_data done [16:19:51]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148903,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:19:51]process_action_free close_receipt [16:19:51]json_value_free [16:19:51]json_value_free done [16:19:51]process_json_proto returns [16:19:51]Send response to host [16:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148903,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:19:51]free response buf [16:19:51]execute_script done [16:19:51]execute_script returns [16:19:51]free content buf [16:19:51]Sock 9.Close socket [16:19:51]Sock 9.Thread stoped [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:14]accept exits with 7 [16:20:14]New connection [16:20:14]New thread 3067264356 created [16:20:14]Thread 3067407716 joined [16:20:14]Waiting for new connection... [16:20:14] Sock 7.Parse request [16:20:14]Sock 7.Check first char [16:20:14]Sock 7.First char is OK [16:20:14]request: POST /json_proto HTTP/1.0 [16:20:14]Method: POST [16:20:14]URL: /json_proto [16:20:14]Method is POST - this is cgi request [16:20:14]url: /json_proto [16:20:14]query_string will be loaded in cgi processing [16:20:14]execute_cgi json_proto POST (null) [16:20:14]execute_cgi path=json_proto method=POST [16:20:14]POST find Content-Length [16:20:14]Host: 172.17.38.4:8080 [16:20:14]Content-Length: 1148 [16:20:14]Content-Type: application/json [16:20:14] [16:20:14]POST finish read [16:20:14]Found Content-Length = 1148 [16:20:14]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979832\u000A04.06.2024 16:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\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\u000A30112314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:14]execute_script... [16:20:14]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979832\u000A04.06.2024 16:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\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\u000A30112314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:14]POST & json_proto [16:20:14]process_json_proto [16:20:14]json parsed OK: [16:20:14]protocol is kg_v1.0 [16:20:14]action value=print_text [16:20:14]process_action print_text [16:20:14]cmd_print_text [16:20:14]ExternCall_PrintAddStr [16:20:14]wPrintStart [16:20:14]Write to MH i2c: 01 00 00 42 1C 5E [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: 01 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: 01 07 00 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: 01 07 00 42 1C 00 00 00 00 00 FF 0F 73 [16:20:14]RasterBufferAndPrint [16:20:14]line *****ТОВАРНЫЙ ЧЕК***** [16:20:14]line АЗС 68 [16:20:14]line Партнер нефть [16:20:14]line 02508201610067 [16:20:14]line Кассир : Аскаров Н. [16:20:14]line Счет N : (1)979832 [16:20:14]line 04.06.2024 16:01 [16:20:14]line ПРОДАЖА [16:20:14]line ТРК (МРК, ГНК): 52 [16:20:14]line Вид ГСМ : 2710194210 [16:20:14]line ДТ-К-5 [16:20:14]line 30.000 x 72.90 [16:20:14]line ИТОГ: 2187.00 [16:20:14]line Тип оплаты: Талоны: ТК ГПНА Online [16:20:14]line 30112314 [16:20:14]line ______________________ [16:20:14]line (подпись) [16:20:14]written 0, free lines is 4095 [16:20:14]Write to MH i2c: 01 00 00 56 1C 72 [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: 01 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: 01 07 00 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: 01 07 00 56 1C 00 00 00 00 00 0D 0E 94 [16:20:14]RasterBufferAndPrint [16:20:14]line [16:20:14]line [16:20:14]line [16:20:14]line [16:20:14]line [16:20:14]written 0, free lines is 3599 [16:20:14]MH_Cut [16:20:14]Write to MH i2c: D1 01 00 5D 1C 01 4B [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: D1 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: D1 01 00 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: D1 01 00 5D 1C 00 4A [16:20:14]Write to MH i2c: 01 00 00 5E 1C 7A [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:15]*** Cut start [16:20:15]*** Partial cut [16:20:15]*** CUTSNS_PIN = 1 [16:20:15]*** CUTSNS_PIN = 0 [16:20:15]*** Brake cut motor [16:20:15]Read from MH i2c: 01 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: 01 07 00 [16:20:15]MH_I2C_Read... [16:20:15]*** Stop cut motor [16:20:15]*** Cut end [16:20:15]Read from MH i2c: 01 07 00 5E 1C 00 00 00 00 00 FF 0F 8F [16:20:15]process_action print_text done [16:20:15]requested_data is exist [16:20:15]produce_requested_data [16:20:15]requested_item fm.sn is exist - process it [16:20:15]wFMCommunicate request_size=4 [16:20:15]MH_SAM_APDU [16:20:15]CAPDU: 80 11 00 00 [16:20:15]Write to MH i2c: E2 08 00 5F 1C 80 11 00 00 00 00 00 00 F5 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:15]Read from MH i2c: E2 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 17 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 17 00 5F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 48 [16:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:20:15]wFMCommunicate OK [16:20:15]requested_item fd.num is exist - process it [16:20:15]SAM_PROTO_GetFieldsCounters [16:20:15]wFMCommunicate request_size=4 [16:20:15]MH_SAM_APDU [16:20:15]CAPDU: 80 13 00 00 [16:20:15]Write to MH i2c: E2 08 00 60 1C 80 13 00 00 00 00 00 00 F8 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:16]Read from MH i2c: E2 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 62 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 62 00 60 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A7 45 02 00 0E 04 04 00 70 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 49 [16:20:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A7 45 02 00 0E 04 04 00 70 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 [16:20:16]wFMCommunicate OK [16:20:16]SAM_PROTO_GetFieldsCounters done [16:20:16]requested_item shift.num is exist - process it [16:20:16]requested_item shift.opened is exist - process it [16:20:16]req_shift_opened [16:20:16]FM_GetShiftState [16:20:16]SAM_PROTO_GetShiftState [16:20:16]wFMCommunicate request_size=4 [16:20:16]MH_SAM_APDU [16:20:16]CAPDU: 80 13 01 00 [16:20:16]Write to MH i2c: E2 08 00 61 1C 80 13 01 00 00 00 00 00 FA [16:20:16]Write i2c OK [16:20:16]MH_I2C_Read... [16:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:16]Read from MH i2c: E2 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 0E 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 0E 00 61 1C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BD [16:20:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:20:16]wFMCommunicate OK [16:20:16]SAM_PROTO_GetShiftState done [16:20:16]FM_GetShiftState done [16:20:16]req_shift_opened done [16:20:16]requested_item shift.open_date is exist - process it [16:20:16]req_shift_open_date [16:20:16]req_shift_open_date done [16:20:16]produce_requested_data done [16:20:16]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148903,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:20:16]process_action_free print_text [16:20:16]json_value_free [16:20:16]json_value_free done [16:20:16]process_json_proto returns [16:20:16]Send response to host [16:20:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148903,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:20:16]free response buf [16:20:16]execute_script done [16:20:16]execute_script returns [16:20:16]free content buf [16:20:16]Sock 7.Close socket [16:20:16]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:45]accept exits with 9 [16:21:45]New connection [16:21:45]New thread 3067407716 created [16:21:45]Thread 3067264356 joined [16:21:45]Waiting for new connection... [16:21:45] Sock 9.Parse request [16:21:45]Sock 9.Check first char [16:21:45]Sock 9.First char is OK [16:21:45]request: POST /json_proto HTTP/1.0 [16:21:45]Method: POST [16:21:45]URL: /json_proto [16:21:45]Method is POST - this is cgi request [16:21:45]url: /json_proto [16:21:45]query_string will be loaded in cgi processing [16:21:45]execute_cgi json_proto POST (null) [16:21:45]execute_cgi path=json_proto method=POST [16:21:45]POST find Content-Length [16:21:45]Host: 172.17.38.4:8080 [16:21:45]Content-Length: 619 [16:21:45]Content-Type: application/json [16:21:45] [16:21:45]POST finish read [16:21:45]Found Content-Length = 619 [16:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11905", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:45]execute_script... [16:21: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 : (3)11905", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:45]POST & json_proto [16:21:45]process_json_proto [16:21:45]json parsed OK: [16:21:45]protocol is kg_v1.0 [16:21:45]action value=close_receipt [16:21:45]process_action close_receipt [16:21:45]cmd_close_receipt [16:21:45]MH_GetDate [16:21:45]Write to MH i2c: F0 00 00 62 1C 6D [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: F0 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: F0 09 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: F0 09 00 62 1C 00 1B 3F 5F 66 CC 51 87 64 9D [16:21:45]GetLastDocTimeStamp 1717517988 [16:21:45]current date 1717518107 [16:21:45]FM_GetShiftState [16:21:45]SAM_PROTO_GetShiftState [16:21:45]wFMCommunicate request_size=4 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 13 01 00 [16:21:45]Write to MH i2c: E2 08 00 63 1C 80 13 01 00 00 00 00 00 FC [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 0E 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 0E 00 63 1C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BF [16:21:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:21:45]wFMCommunicate OK [16:21:45]SAM_PROTO_GetShiftState done [16:21:45]FM_GetShiftState done [16:21:45]opened in 1717460629 [16:21:45]opened+sec_in_day 1717547029 [16:21:45]quantity*price = 13500 [16:21:45]sum+1 = 13501 [16:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 243 04.06.2024 16:21 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148904 ФПД: 139472657911645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162147&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148904&fm=139472657911645&tin=02508201610067®Number=0000000000092720&sum=13500 0 [16:21:46]StoreToDocumentArchive [16:21:46]shift 368 fd 148904 [16:21:46]save to /storage/0368/doc_00148904 [16:21:46]save last doc name /storage/0368/doc_00148904 to /storage/kkm_last_doc_name [16:21:46]save OK [16:21:46]Clear old archive folders... [16:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:21:46]tlvbuf is B6FC48A0 [16:21:46]SAM_PROTO_ClearQueue [16:21:46]wFMCommunicate request_size=4 [16:21:46]MH_SAM_APDU [16:21:46]CAPDU: 80 09 00 00 [16:21:46]Write to MH i2c: E2 08 00 70 1C 80 09 00 00 00 00 00 00 FE [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: E2 [16:21:46]MH_I2C_Read... [16:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:46]Read from MH i2c: E2 03 00 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [16:21:46]RAPDU: 90 00 [16:21:46]wFMCommunicate OK [16:21:46]SAM_PROTO_ClearQueue done [16:21:46]KKMCreateOFDPacket [16:21:46]OFDProtocolAddRootSTLVToBuf [16:21:46]FM_MakeSignedData [16:21:46]FM_MakeSignedData [16:21:46]SAM_PROTO_SignData [16:21:46]wFMCommunicate request_size=4 [16:21:46]MH_SAM_APDU [16:21:46]CAPDU: 80 0D 01 02 [16:21:46]Write to MH i2c: E2 08 00 71 1C 80 0D 01 02 00 00 00 00 06 [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: E2 [16:21:46]MH_I2C_Read... [16:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:46]Read from MH i2c: E2 03 00 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [16:21:46]RAPDU: 90 00 [16:21:46]wFMCommunicate OK [16:21:46]wFMCommunicate request_size=255 [16:21:46]MH_SAM_APDU [16:21:46]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 1B 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 [16:21:46]Write to MH i2c: E2 02 01 72 1C 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 1B 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 3F [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:47]Read from MH i2c: E2 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 03 00 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 03 00 72 1C 00 90 00 02 [16:21:47]RAPDU: 90 00 [16:21:47]wFMCommunicate OK [16:21:47]wFMCommunicate request_size=31 [16:21:47]MH_SAM_APDU [16:21:47]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 35 37 10 04 04 00 A8 45 02 00 35 04 06 00 7E D9 82 3B 0F 5D [16:21:47]Write to MH i2c: E2 22 00 73 1C 80 0D 02 02 1A 00 30 30 38 37 35 30 35 37 10 04 04 00 A8 45 02 00 35 04 06 00 7E D9 82 3B 0F 5D 00 00 A3 [16:21:47]Write i2c OK [16:21:47]MH_I2C_Read... [16:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:47]Read from MH i2c: E2 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 03 00 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 03 00 73 1C 00 90 00 03 [16:21:47]RAPDU: 90 00 [16:21:47]wFMCommunicate OK [16:21:47]wFMCommunicate request_size=4 [16:21:47]MH_SAM_APDU [16:21:47]CAPDU: 80 0D 03 02 [16:21:47]Write to MH i2c: E2 08 00 74 1C 80 0D 03 02 00 00 00 00 0B [16:21:47]Write i2c OK [16:21:47]MH_I2C_Read... [16:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:47]Read from MH i2c: E2 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 0B 00 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 0B 00 74 1C 00 7B 76 51 DD 4B 99 31 6C 90 00 AC [16:21:47]RAPDU: 7B 76 51 DD 4B 99 31 6C 90 00 [16:21:47]wFMCommunicate OK [16:21:47]SAM_PROTO_SignData done [16:21:47]FM_MakeSignedData done [16:21:47]CreateOFDProtocolMessage [16:21:47]wFMCommunicate request_size=4 [16:21:47]MH_SAM_APDU [16:21:47]CAPDU: 80 11 00 00 [16:21:47]Write to MH i2c: E2 08 00 75 1C 80 11 00 00 00 00 00 00 0B [16:21:47]Write i2c OK [16:21:47]MH_I2C_Read... [16:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:47]Read from MH i2c: E2 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 17 00 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 17 00 75 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5E [16:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:21:47]wFMCommunicate OK [16:21:47]CreateOFDProtocolMessage done [16:21:47]OFDSenderStorePacket 148904 [16:21:47]StoreOFDPacket docnum=148904 [16:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 24 01 00 00 D7 FB 1C 01 19 2B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 1B 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A8 45 02 00 35 04 06 00 7E D9 82 3B 0F 5D 7B 76 51 DD 4B 99 31 6C [16:21:47]CheckFolder [16:21:47]dirname=/storage/ofd_packets [16:21:47]CheckFolder done [16:21:47]ProducePacketName [16:21:47]name=ofd_packets/00148904 [16:21:47]NVStorageSaveData ofd_packets/00148904 [16:21:47]File name is /storage/ofd_packets/00148904 [16:21:47]Write 322 bytes [16:21:47]NVStorageSaveData done [16:21:47]OFDSenderStorePacket done [16:21:47]KKMCreateOFDPacket done [16:21:47]NVStorageSaveData kkm_last_timestamp [16:21:47]File name is /storage/kkm_last_timestamp [16:21:47]Write 4 bytes [16:21:47]NVStorageSaveData done [16:21:47]ExternCall_PrintAddStr [16:21:47]wPrintStart [16:21:47]Write to MH i2c: 01 00 00 76 1C 92 [16:21:47]Write i2c OK [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: 01 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: 01 07 00 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: 01 07 00 76 1C 00 00 00 00 00 FF 0F A7 [16:21:47]RasterBufferAndPrint [16:21:47]line Счет N : (3)11905 [16:21:47]line ИНН: 02508201610067 [16:21:47]line Контрольно-Кассовый Чек [16:21:47]line ПРОДАЖА [16:21:47]line Товар: 48745000 [16:21:47]line Сигареты Winston Purple Mix [16:21:47]line 1.000 * 135.00 [16:21:47]line = 135.00 [16:21:47]line НДС 12% НСП 1% [16:21:47]line > о реализуемом товаре [16:21:47]line ИТОГО: 135.00 [16:21:47]line НСП 1% : 1.19 [16:21:47]line НДС 12% : 14.34 [16:21:47]line Наличными: 135.00 [16:21:47]line Безнал.: 0.00 [16:21:47]line Место: АЗС № 68 "Партнер Нефть" [16:21:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:21:47]line СНО: Общий режим [16:21:47]line Чек 243 04.06.2024 16:21 [16:21:47]line Смена: 368 ФФД: 1.0 [16:21:47]line ЗНМ: 0300000035 [16:21:47]line РНМ: 0000000000092720 [16:21:47]line Версия ККМ: 001 [16:21:47]line ФМ: 0000000000875057 [16:21:47]line ФД: 148904 [16:21:47]line ФПД: 139472657911645 [16:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162147&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148904&fm=139472657911645&tin=02508201610067®Number=0000000000092720&sum=13500 [16:21:47]line 0 [16:21:47]OFD Sender: Processing packet 148904 [packets to send 100, broken 99] [16:21:47]ProducePacketName [16:21:47]name=ofd_packets/00148904 [16:21:47]OFD Sender: To server: pG, [16:21:47]CommunicateWithHost lk.salyk.kg:30040 [16:21:47]ConnectInit lk.salyk.kg [16:21:47]written 0, free lines is 4095 [16:21:47]Connected sock=10 [16:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 24 01 00 00 D7 FB 1C 01 19 2B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 1B 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A8 45 02 00 35 04 06 00 7E D9 82 3B 0F 5D 7B 76 51 DD 4B 99 31 6C [16:21:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F7 A3 47 00 BD 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 38 37 35 30 35 37 10 04 04 00 A8 45 02 00 F4 03 04 00 3E E6 5E 66 B6 04 01 00 00 A4 FB 51 5C 18 64 C7 5A [16:21:47]CommunicateWithHost err = 0 [16:21:47]CheckOFDResponse [16:21:47]1017 (14) - 77093643461234 [16:21:47]1041 (16) - 0000000000875057 [16:21:47]1040 (4) - 148904 [16:21:47]1012 (4) - 04.06.2024 10:02 [16:21:47]1206 (1) - 0 [16:21:47]OFD Sender: Remove packet 148904 [16:21:47]ProducePacketName [16:21:47]name=ofd_packets/00148904 [16:21:47]NVStorageDeleteData [16:21:47]Write to MH i2c: 01 00 00 9E 1C BA [16:21:47]Write i2c OK [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: 01 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: 01 07 00 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: 01 07 00 9E 1C 00 00 00 00 00 8C 0C 59 [16:21:47]RasterBufferAndPrint [16:21:47]line [16:21:47]line [16:21:47]line [16:21:47]line [16:21:47]line [16:21:47]written 0, free lines is 3216 [16:21:47]MH_Cut [16:21:47]Write to MH i2c: D1 01 00 A5 1C 01 93 [16:21:47]Write i2c OK [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: D1 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: D1 01 00 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: D1 01 00 A5 1C 00 92 [16:21:47]Write to MH i2c: 01 00 00 A6 1C C2 [16:21:47]Write i2c OK [16:21:47]MH_I2C_Read... [16:21:48]OFD Sender: No OFD packet to send [16:21:49]*** Cut start [16:21:49]*** Partial cut [16:21:49]*** CUTSNS_PIN = 1 [16:21:49]*** CUTSNS_PIN = 0 [16:21:49]*** Brake cut motor [16:21:49]Read from MH i2c: 01 [16:21:49]MH_I2C_Read... [16:21:49]*** Stop cut motor [16:21:49]*** Cut end [16:21:49]Read from MH i2c: 01 07 00 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: 01 07 00 A6 1C 00 00 00 00 00 FF 0F D7 [16:21:49]process_action close_receipt done [16:21:49]requested_data is exist [16:21:49]produce_requested_data [16:21:49]requested_item fm.sn is exist - process it [16:21:49]wFMCommunicate request_size=4 [16:21:49]MH_SAM_APDU [16:21:49]CAPDU: 80 11 00 00 [16:21:49]Write to MH i2c: E2 08 00 A7 1C 80 11 00 00 00 00 00 00 3D [16:21:49]Write i2c OK [16:21:49]MH_I2C_Read... [16:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:49]Read from MH i2c: E2 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 17 00 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 17 00 A7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 90 [16:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:21:49]wFMCommunicate OK [16:21:49]requested_item fd.num is exist - process it [16:21:49]SAM_PROTO_GetFieldsCounters [16:21:49]wFMCommunicate request_size=4 [16:21:49]MH_SAM_APDU [16:21:49]CAPDU: 80 13 00 00 [16:21:49]Write to MH i2c: E2 08 00 A8 1C 80 13 00 00 00 00 00 00 40 [16:21:49]Write i2c OK [16:21:49]MH_I2C_Read... [16:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:50]Read from MH i2c: E2 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: E2 62 00 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: E2 62 00 A8 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A8 45 02 00 0E 04 04 00 70 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 95 [16:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A8 45 02 00 0E 04 04 00 70 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 [16:21:50]wFMCommunicate OK [16:21:50]SAM_PROTO_GetFieldsCounters done [16:21:50]requested_item shift.num is exist - process it [16:21:50]requested_item shift.opened is exist - process it [16:21:50]req_shift_opened [16:21:50]FM_GetShiftState [16:21:50]SAM_PROTO_GetShiftState [16:21:50]wFMCommunicate request_size=4 [16:21:50]MH_SAM_APDU [16:21:50]CAPDU: 80 13 01 00 [16:21:50]Write to MH i2c: E2 08 00 A9 1C 80 13 01 00 00 00 00 00 42 [16:21:50]Write i2c OK [16:21:50]MH_I2C_Read... [16:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:50]Read from MH i2c: E2 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: E2 0E 00 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: E2 0E 00 A9 1C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 05 [16:21:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:21:50]wFMCommunicate OK [16:21:50]SAM_PROTO_GetShiftState done [16:21:50]FM_GetShiftState done [16:21:50]req_shift_opened done [16:21:50]requested_item shift.open_date is exist - process it [16:21:50]req_shift_open_date [16:21:50]req_shift_open_date done [16:21:50]produce_requested_data done [16:21:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148904,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:21:50]process_action_free close_receipt [16:21:50]json_value_free [16:21:50]json_value_free done [16:21:50]process_json_proto returns [16:21:50]Send response to host [16:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148904,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:21:50]free response buf [16:21:50]execute_script done [16:21:50]execute_script returns [16:21:50]free content buf [16:21:50]Sock 9.Close socket [16:21:50]Sock 9.Thread stoped [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:07]accept exits with 7 [16:22:07]New connection [16:22:07]New thread 3067264356 created [16:22:07]Thread 3067407716 joined [16:22:07]Waiting for new connection... [16:22:07] Sock 7.Parse request [16:22:07]Sock 7.Check first char [16:22:07]Sock 7.First char is OK [16:22:07]request: POST /json_proto HTTP/1.0 [16:22:07]Method: POST [16:22:07]URL: /json_proto [16:22:07]Method is POST - this is cgi request [16:22:07]url: /json_proto [16:22:07]query_string will be loaded in cgi processing [16:22:07]execute_cgi json_proto POST (null) [16:22:07]execute_cgi path=json_proto method=POST [16:22:07]POST find Content-Length [16:22:07]Host: 172.17.38.4:8080 [16:22:07]Content-Length: 670 [16:22:07]Content-Type: application/json [16:22:07] [16:22:07]POST finish read [16:22:07]Found Content-Length = 670 [16:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 4.570, "sum" : 310.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:07]execute_script... [16:22: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)979837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 4.570, "sum" : 310.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:07]POST & json_proto [16:22:07]process_json_proto [16:22:07]json parsed OK: [16:22:07]protocol is kg_v1.0 [16:22:07]action value=close_receipt [16:22:07]process_action close_receipt [16:22:07]cmd_close_receipt [16:22:07]MH_GetDate [16:22:07]Write to MH i2c: F0 00 00 AA 1C B5 [16:22:07]Write i2c OK [16:22:07]MH_I2C_Read... [16:22:07]Read from MH i2c: F0 [16:22:07]MH_I2C_Read... [16:22:07]Read from MH i2c: F0 09 00 [16:22:07]MH_I2C_Read... [16:22:07]Read from MH i2c: F0 09 00 AA 1C 00 30 3F 5F 66 CC 51 87 64 FA [16:22:07]GetLastDocTimeStamp 1717518107 [16:22:07]current date 1717518128 [16:22:07]FM_GetShiftState [16:22:07]SAM_PROTO_GetShiftState [16:22:07]wFMCommunicate request_size=4 [16:22:07]MH_SAM_APDU [16:22:07]CAPDU: 80 13 01 00 [16:22:07]Write to MH i2c: E2 08 00 AB 1C 80 13 01 00 00 00 00 00 44 [16:22:07]Write i2c OK [16:22:07]MH_I2C_Read... [16:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:07]Read from MH i2c: E2 [16:22:07]MH_I2C_Read... [16:22:07]Read from MH i2c: E2 0E 00 [16:22:07]MH_I2C_Read... [16:22:07]Read from MH i2c: E2 0E 00 AB 1C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 07 [16:22:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:22:07]wFMCommunicate OK [16:22:07]SAM_PROTO_GetShiftState done [16:22:07]FM_GetShiftState done [16:22:07]opened in 1717460629 [16:22:07]opened+sec_in_day 1717547029 [16:22:07]quantity*price = 31030 [16:22:07]sum+1 = 31031 [16:22:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.95 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 244 04.06.2024 16:22 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148905 ФПД: 237804595191076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162208&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148905&fm=237804595191076&tin=02508201610067®Number=0000000000092720&sum=31000 [16:22:08]StoreToDocumentArchive [16:22:08]shift 368 fd 148905 [16:22:08]save to /storage/0368/doc_00148905 [16:22:08]save last doc name /storage/0368/doc_00148905 to /storage/kkm_last_doc_name [16:22:08]save OK [16:22:08]Clear old archive folders... [16:22:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:22:08]tlvbuf is B6F49920 [16:22:08]SAM_PROTO_ClearQueue [16:22:08]wFMCommunicate request_size=4 [16:22:08]MH_SAM_APDU [16:22:08]CAPDU: 80 09 00 00 [16:22:08]Write to MH i2c: E2 08 00 B8 1C 80 09 00 00 00 00 00 00 46 [16:22:08]Write i2c OK [16:22:08]MH_I2C_Read... [16:22:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:08]Read from MH i2c: E2 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 03 00 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 03 00 B8 1C 00 90 00 48 [16:22:08]RAPDU: 90 00 [16:22:08]wFMCommunicate OK [16:22:08]SAM_PROTO_ClearQueue done [16:22:08]KKMCreateOFDPacket [16:22:08]OFDProtocolAddRootSTLVToBuf [16:22:08]FM_MakeSignedData [16:22:08]FM_MakeSignedData [16:22:08]SAM_PROTO_SignData [16:22:08]wFMCommunicate request_size=4 [16:22:08]MH_SAM_APDU [16:22:08]CAPDU: 80 0D 01 02 [16:22:08]Write to MH i2c: E2 08 00 B9 1C 80 0D 01 02 00 00 00 00 4E [16:22:08]Write i2c OK [16:22:08]MH_I2C_Read... [16:22:08]OFD Sender: No OFD packet to send [16:22:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:08]Read from MH i2c: E2 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 03 00 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 03 00 B9 1C 00 90 00 49 [16:22:08]RAPDU: 90 00 [16:22:08]wFMCommunicate OK [16:22:08]wFMCommunicate request_size=255 [16:22:08]MH_SAM_APDU [16:22:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 36 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 30 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A9 45 02 00 35 04 06 00 [16:22:08]Write to MH i2c: E2 02 01 BA 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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 36 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 30 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A9 45 02 00 35 04 06 00 00 00 D4 [16:22:08]Write i2c OK [16:22:08]MH_I2C_Read... [16:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:08]Read from MH i2c: E2 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 03 00 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 03 00 BA 1C 00 90 00 4A [16:22:08]RAPDU: 90 00 [16:22:08]wFMCommunicate OK [16:22:08]wFMCommunicate request_size=11 [16:22:08]MH_SAM_APDU [16:22:08]CAPDU: 80 0D 02 02 06 D8 48 32 6C 1D 24 [16:22:08]Write to MH i2c: E2 0E 00 BB 1C 80 0D 02 02 06 00 D8 48 32 6C 1D 24 00 00 5C [16:22:08]Write i2c OK [16:22:08]MH_I2C_Read... [16:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:08]Read from MH i2c: E2 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 03 00 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [16:22:08]RAPDU: 90 00 [16:22:08]wFMCommunicate OK [16:22:08]wFMCommunicate request_size=4 [16:22:08]MH_SAM_APDU [16:22:08]CAPDU: 80 0D 03 02 [16:22:08]Write to MH i2c: E2 08 00 BC 1C 80 0D 03 02 00 00 00 00 53 [16:22:08]Write i2c OK [16:22:08]MH_I2C_Read... [16:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:08]Read from MH i2c: E2 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 0B 00 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 0B 00 BC 1C 00 14 6D 6A E0 CB A1 F6 5A 90 00 DB [16:22:08]RAPDU: 14 6D 6A E0 CB A1 F6 5A 90 00 [16:22:08]wFMCommunicate OK [16:22:08]SAM_PROTO_SignData done [16:22:08]FM_MakeSignedData done [16:22:08]CreateOFDProtocolMessage [16:22:08]wFMCommunicate request_size=4 [16:22:08]MH_SAM_APDU [16:22:08]CAPDU: 80 11 00 00 [16:22:08]Write to MH i2c: E2 08 00 BD 1C 80 11 00 00 00 00 00 00 53 [16:22:08]Write i2c OK [16:22:08]MH_I2C_Read... [16:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:08]Read from MH i2c: E2 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 17 00 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: E2 17 00 BD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A6 [16:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:22:08]wFMCommunicate OK [16:22:08]CreateOFDProtocolMessage done [16:22:08]OFDSenderStorePacket 148905 [16:22:08]StoreOFDPacket docnum=148905 [16:22:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 26 67 08 01 59 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 36 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 30 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A9 45 02 00 35 04 06 00 D8 48 32 6C 1D 24 14 6D 6A E0 CB A1 F6 5A [16:22:08]CheckFolder [16:22:08]dirname=/storage/ofd_packets [16:22:08]CheckFolder done [16:22:08]ProducePacketName [16:22:08]name=ofd_packets/00148905 [16:22:08]NVStorageSaveData ofd_packets/00148905 [16:22:08]File name is /storage/ofd_packets/00148905 [16:22:08]Write 302 bytes [16:22:08]NVStorageSaveData done [16:22:08]OFDSenderStorePacket done [16:22:08]KKMCreateOFDPacket done [16:22:08]NVStorageSaveData kkm_last_timestamp [16:22:08]File name is /storage/kkm_last_timestamp [16:22:08]Write 4 bytes [16:22:08]NVStorageSaveData done [16:22:08]ExternCall_PrintAddStr [16:22:08]wPrintStart [16:22:08]Write to MH i2c: 01 00 00 BE 1C DA [16:22:08]Write i2c OK [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: 01 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: 01 07 00 [16:22:08]MH_I2C_Read... [16:22:08]Read from MH i2c: 01 07 00 BE 1C 00 00 00 00 00 FF 0F EF [16:22:08]RasterBufferAndPrint [16:22:08]line Счет N : (1)979837 [16:22:08]line ИНН: 02508201610067 [16:22:08]line Контрольно-Кассовый Чек [16:22:08]line ПРОДАЖА [16:22:08]line ТРК (МРК, ГНК) : 33 [16:22:08]line Товар: 2710124130 [16:22:08]line SUPER 92-К-5 [16:22:08]line 4.570 * 67.90 [16:22:08]line = 310.30 [16:22:08]line НДС 12% НСП 1% [16:22:08]line > о реализуемом товаре [16:22:08]line ОКРУГЛЕНИЕ: -0.30 [16:22:08]line ИТОГО: 310.00 [16:22:08]line Внесено: 310.00 [16:22:08]line СДАЧА: 0.00 [16:22:08]line НСП 1% : 2.75 [16:22:08]line НДС 12% : 32.95 [16:22:08]line Наличными: 310.00 [16:22:08]line Безнал.: 0.00 [16:22:08]line Место: АЗС № 68 "Партнер Нефть" [16:22:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:22:08]line СНО: Общий режим [16:22:08]line Чек 244 04.06.2024 16:22 [16:22:08]line Смена: 368 ФФД: 1.0 [16:22:08]line ЗНМ: 0300000035 [16:22:08]line РНМ: 0000000000092720 [16:22:08]line Версия ККМ: 001 [16:22:08]line ФМ: 0000000000875057 [16:22:08]line ФД: 148905 [16:22:08]line ФПД: 237804595191076 [16:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162208&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148905&fm=237804595191076&tin=02508201610067®Number=0000000000092720&sum=31000 [16:22:09]OFD Sender: Processing packet 148905 [packets to send 100, broken 99] [16:22:09]ProducePacketName [16:22:09]name=ofd_packets/00148905 [16:22:09]OFD Sender: To server: pG, [16:22:09]CommunicateWithHost lk.salyk.kg:30040 [16:22:09]ConnectInit lk.salyk.kg [16:22:09]written 0, free lines is 4095 [16:22:09]Connected sock=10 [16:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 26 67 08 01 59 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 11 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 36 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 30 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A9 45 02 00 35 04 06 00 D8 48 32 6C 1D 24 14 6D 6A E0 CB A1 F6 5A [16:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 42 BA 47 00 43 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 A9 45 02 00 F4 03 04 00 54 E6 5E 66 B6 04 01 00 00 12 59 44 7E BD 24 0C 3C [16:22:09]CommunicateWithHost err = 0 [16:22:09]CheckOFDResponse [16:22:09]1017 (14) - 77093643461234 [16:22:09]1041 (16) - 0000000000875057 [16:22:09]1040 (4) - 148905 [16:22:09]1012 (4) - 04.06.2024 10:03 [16:22:09]1206 (1) - 0 [16:22:09]OFD Sender: Remove packet 148905 [16:22:09]ProducePacketName [16:22:09]name=ofd_packets/00148905 [16:22:09]NVStorageDeleteData [16:22:09]Write to MH i2c: 01 00 00 E9 1C 05 [16:22:09]Write i2c OK [16:22:09]MH_I2C_Read... [16:22:09]Read from MH i2c: 01 [16:22:09]MH_I2C_Read... [16:22:09]Read from MH i2c: 01 07 00 [16:22:09]MH_I2C_Read... [16:22:09]Read from MH i2c: 01 07 00 E9 1C 00 00 00 00 00 6D 0C 85 [16:22:09]RasterBufferAndPrint [16:22:09]line [16:22:09]line [16:22:09]line [16:22:09]line [16:22:09]line [16:22:09]written 0, free lines is 3185 [16:22:09]MH_Cut [16:22:09]Write to MH i2c: D1 01 00 F0 1C 01 DE [16:22:09]Write i2c OK [16:22:09]MH_I2C_Read... [16:22:09]Read from MH i2c: D1 [16:22:09]MH_I2C_Read... [16:22:09]Read from MH i2c: D1 01 00 [16:22:09]MH_I2C_Read... [16:22:09]Read from MH i2c: D1 01 00 F0 1C 00 DD [16:22:09]Write to MH i2c: 01 00 00 F1 1C 0D [16:22:09]Write i2c OK [16:22:09]MH_I2C_Read... [16:22:09]OFD Sender: No OFD packet to send [16:22:10]*** Cut start [16:22:10]*** Partial cut [16:22:10]*** CUTSNS_PIN = 1 [16:22:10]*** CUTSNS_PIN = 0 [16:22:11]*** Brake cut motor [16:22:11]Read from MH i2c: 01 [16:22:11]MH_I2C_Read... [16:22:11]*** Stop cut motor [16:22:11]*** Cut end [16:22:11]Read from MH i2c: 01 07 00 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: 01 07 00 F1 1C 00 00 00 00 00 FF 0F 22 [16:22:11]process_action close_receipt done [16:22:11]requested_data is exist [16:22:11]produce_requested_data [16:22:11]requested_item fm.sn is exist - process it [16:22:11]wFMCommunicate request_size=4 [16:22:11]MH_SAM_APDU [16:22:11]CAPDU: 80 11 00 00 [16:22:11]Write to MH i2c: E2 08 00 F2 1C 80 11 00 00 00 00 00 00 88 [16:22:11]Write i2c OK [16:22:11]MH_I2C_Read... [16:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:11]Read from MH i2c: E2 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 17 00 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 17 00 F2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DB [16:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:22:11]wFMCommunicate OK [16:22:11]requested_item fd.num is exist - process it [16:22:11]SAM_PROTO_GetFieldsCounters [16:22:11]wFMCommunicate request_size=4 [16:22:11]MH_SAM_APDU [16:22:11]CAPDU: 80 13 00 00 [16:22:11]Write to MH i2c: E2 08 00 F3 1C 80 13 00 00 00 00 00 00 8B [16:22:11]Write i2c OK [16:22:11]MH_I2C_Read... [16:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:11]Read from MH i2c: E2 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 62 00 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 62 00 F3 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A9 45 02 00 0E 04 04 00 70 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 E4 [16:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A9 45 02 00 0E 04 04 00 70 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 [16:22:11]wFMCommunicate OK [16:22:11]SAM_PROTO_GetFieldsCounters done [16:22:11]requested_item shift.num is exist - process it [16:22:11]requested_item shift.opened is exist - process it [16:22:11]req_shift_opened [16:22:11]FM_GetShiftState [16:22:11]SAM_PROTO_GetShiftState [16:22:11]wFMCommunicate request_size=4 [16:22:11]MH_SAM_APDU [16:22:11]CAPDU: 80 13 01 00 [16:22:11]Write to MH i2c: E2 08 00 F4 1C 80 13 01 00 00 00 00 00 8D [16:22:11]Write i2c OK [16:22:11]MH_I2C_Read... [16:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:11]Read from MH i2c: E2 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 0E 00 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 0E 00 F4 1C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 50 [16:22:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:22:11]wFMCommunicate OK [16:22:11]SAM_PROTO_GetShiftState done [16:22:11]FM_GetShiftState done [16:22:11]req_shift_opened done [16:22:11]requested_item shift.open_date is exist - process it [16:22:11]req_shift_open_date [16:22:11]req_shift_open_date done [16:22:11]produce_requested_data done [16:22:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148905,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:22:11]process_action_free close_receipt [16:22:11]json_value_free [16:22:11]json_value_free done [16:22:11]process_json_proto returns [16:22:11]Send response to host [16:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148905,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:22:11]free response buf [16:22:11]execute_script done [16:22:11]execute_script returns [16:22:11]free content buf [16:22:11]Sock 7.Close socket [16:22:11]Sock 7.Thread stoped [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:26]accept exits with 9 [16:22:26]New connection [16:22:26]New thread 3067407716 created [16:22:26]Thread 3067264356 joined [16:22:26]Waiting for new connection... [16:22:26] Sock 9.Parse request [16:22:26]Sock 9.Check first char [16:22:26]Sock 9.First char is OK [16:22:26]request: POST /json_proto HTTP/1.0 [16:22:26]Method: POST [16:22:26]URL: /json_proto [16:22:26]Method is POST - this is cgi request [16:22:26]url: /json_proto [16:22:26]query_string will be loaded in cgi processing [16:22:26]execute_cgi json_proto POST (null) [16:22:26]execute_cgi path=json_proto method=POST [16:22:26]POST find Content-Length [16:22:26]Host: 172.17.38.4:8080 [16:22:26]Content-Length: 1148 [16:22:26]Content-Type: application/json [16:22:26] [16:22:26]POST finish read [16:22:26]Found Content-Length = 1148 [16:22:26]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979835\u000A04.06.2024 16:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30112314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:26]execute_script... [16:22:26]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979835\u000A04.06.2024 16:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30112314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:26]POST & json_proto [16:22:26]process_json_proto [16:22:26]json parsed OK: [16:22:26]protocol is kg_v1.0 [16:22:26]action value=print_text [16:22:26]process_action print_text [16:22:26]cmd_print_text [16:22:26]ExternCall_PrintAddStr [16:22:26]wPrintStart [16:22:26]Write to MH i2c: 01 00 00 F5 1C 11 [16:22:26]Write i2c OK [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: 01 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: 01 07 00 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: 01 07 00 F5 1C 00 00 00 00 00 FF 0F 26 [16:22:26]RasterBufferAndPrint [16:22:26]line *****ТОВАРНЫЙ ЧЕК***** [16:22:26]line АЗС 68 [16:22:26]line Партнер нефть [16:22:26]line 02508201610067 [16:22:26]line Кассир : Аскаров Н. [16:22:26]line Счет N : (1)979835 [16:22:26]line 04.06.2024 16:03 [16:22:26]line ПРОДАЖА [16:22:26]line ТРК (МРК, ГНК): 52 [16:22:26]line Вид ГСМ : 2710194210 [16:22:26]line ДТ-К-5 [16:22:26]line 40.000 x 72.90 [16:22:26]line ИТОГ: 2916.00 [16:22:26]line Тип оплаты: Талоны: ТК ГПНА Online [16:22:26]line 30112314 [16:22:26]line ______________________ [16:22:26]line (подпись) [16:22:26]written 0, free lines is 4095 [16:22:26]Write to MH i2c: 01 00 00 09 1D 26 [16:22:26]Write i2c OK [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: 01 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: 01 07 00 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: 01 07 00 09 1D 00 00 00 00 00 0E 0E 49 [16:22:26]RasterBufferAndPrint [16:22:26]line [16:22:26]line [16:22:26]line [16:22:26]line [16:22:26]line [16:22:26]written 0, free lines is 3599 [16:22:26]MH_Cut [16:22:26]Write to MH i2c: D1 01 00 10 1D 01 FF [16:22:26]Write i2c OK [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: D1 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: D1 01 00 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: D1 01 00 10 1D 00 FE [16:22:26]Write to MH i2c: 01 00 00 11 1D 2E [16:22:26]Write i2c OK [16:22:26]MH_I2C_Read... [16:22:26]*** Cut start [16:22:26]*** Partial cut [16:22:26]*** CUTSNS_PIN = 1 [16:22:26]*** CUTSNS_PIN = 0 [16:22:27]*** Brake cut motor [16:22:27]Read from MH i2c: 01 [16:22:27]MH_I2C_Read... [16:22:27]*** Stop cut motor [16:22:27]*** Cut end [16:22:27]Read from MH i2c: 01 07 00 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: 01 07 00 11 1D 00 00 00 00 00 FF 0F 43 [16:22:27]process_action print_text done [16:22:27]requested_data is exist [16:22:27]produce_requested_data [16:22:27]requested_item fm.sn is exist - process it [16:22:27]wFMCommunicate request_size=4 [16:22:27]MH_SAM_APDU [16:22:27]CAPDU: 80 11 00 00 [16:22:27]Write to MH i2c: E2 08 00 12 1D 80 11 00 00 00 00 00 00 A9 [16:22:27]Write i2c OK [16:22:27]MH_I2C_Read... [16:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:27]Read from MH i2c: E2 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 17 00 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 17 00 12 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FC [16:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:22:27]wFMCommunicate OK [16:22:27]requested_item fd.num is exist - process it [16:22:27]SAM_PROTO_GetFieldsCounters [16:22:27]wFMCommunicate request_size=4 [16:22:27]MH_SAM_APDU [16:22:27]CAPDU: 80 13 00 00 [16:22:27]Write to MH i2c: E2 08 00 13 1D 80 13 00 00 00 00 00 00 AC [16:22:27]Write i2c OK [16:22:27]MH_I2C_Read... [16:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:27]Read from MH i2c: E2 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 62 00 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 62 00 13 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A9 45 02 00 0E 04 04 00 70 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 05 [16:22:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 A9 45 02 00 0E 04 04 00 70 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 [16:22:27]wFMCommunicate OK [16:22:27]SAM_PROTO_GetFieldsCounters done [16:22:27]requested_item shift.num is exist - process it [16:22:27]requested_item shift.opened is exist - process it [16:22:27]req_shift_opened [16:22:27]FM_GetShiftState [16:22:27]SAM_PROTO_GetShiftState [16:22:27]wFMCommunicate request_size=4 [16:22:27]MH_SAM_APDU [16:22:27]CAPDU: 80 13 01 00 [16:22:27]Write to MH i2c: E2 08 00 14 1D 80 13 01 00 00 00 00 00 AE [16:22:27]Write i2c OK [16:22:27]MH_I2C_Read... [16:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:27]Read from MH i2c: E2 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 0E 00 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 0E 00 14 1D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 71 [16:22:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:22:27]wFMCommunicate OK [16:22:27]SAM_PROTO_GetShiftState done [16:22:27]FM_GetShiftState done [16:22:27]req_shift_opened done [16:22:27]requested_item shift.open_date is exist - process it [16:22:27]req_shift_open_date [16:22:27]req_shift_open_date done [16:22:27]produce_requested_data done [16:22:27]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148905,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:22:27]process_action_free print_text [16:22:27]json_value_free [16:22:27]json_value_free done [16:22:27]process_json_proto returns [16:22:27]Send response to host [16:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148905,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:22:27]free response buf [16:22:27]execute_script done [16:22:27]execute_script returns [16:22:27]free content buf [16:22:27]Sock 9.Close socket [16:22:27]Sock 9.Thread stoped [16:22:29]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:22:58]accept exits with 7 [16:22:58]New connection [16:22:58]New thread 3067264356 created [16:22:58]Thread 3067407716 joined [16:22:58]Waiting for new connection... [16:22:58] Sock 7.Parse request [16:22:58]Sock 7.Check first char [16:22:58]Sock 7.First char is OK [16:22:58]request: POST /json_proto HTTP/1.0 [16:22:58]Method: POST [16:22:58]URL: /json_proto [16:22:58]Method is POST - this is cgi request [16:22:58]url: /json_proto [16:22:58]query_string will be loaded in cgi processing [16:22:58]execute_cgi json_proto POST (null) [16:22:58]execute_cgi path=json_proto method=POST [16:22:58]POST find Content-Length [16:22:58]Host: 172.17.38.4:8080 [16:22:58]Content-Length: 674 [16:22:58]Content-Type: application/json [16:22:58] [16:22:58]POST finish read [16:22:58]Found Content-Length = 674 [16:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.810, "sum" : 350.65, "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" ] } } [16:22:58]execute_script... [16:22: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)979836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.810, "sum" : 350.65, "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" ] } } [16:22:58]POST & json_proto [16:22:58]process_json_proto [16:22:58]json parsed OK: [16:22:58]protocol is kg_v1.0 [16:22:58]action value=close_receipt [16:22:58]process_action close_receipt [16:22:58]cmd_close_receipt [16:22:58]MH_GetDate [16:22:58]Write to MH i2c: F0 00 00 15 1D 21 [16:22:58]Write i2c OK [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: F0 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: F0 09 00 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: F0 09 00 15 1D 00 63 3F 5F 66 CC 51 87 64 99 [16:22:58]GetLastDocTimeStamp 1717518128 [16:22:58]current date 1717518179 [16:22:58]FM_GetShiftState [16:22:58]SAM_PROTO_GetShiftState [16:22:58]wFMCommunicate request_size=4 [16:22:58]MH_SAM_APDU [16:22:58]CAPDU: 80 13 01 00 [16:22:58]Write to MH i2c: E2 08 00 16 1D 80 13 01 00 00 00 00 00 B0 [16:22:58]Write i2c OK [16:22:58]MH_I2C_Read... [16:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:58]Read from MH i2c: E2 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 0E 00 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 0E 00 16 1D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 73 [16:22:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:22:58]wFMCommunicate OK [16:22:58]SAM_PROTO_GetShiftState done [16:22:58]FM_GetShiftState done [16:22:58]opened in 1717460629 [16:22:58]opened+sec_in_day 1717547029 [16:22:58]quantity*price = 35064 [16:22:58]sum+1 = 35066 [16:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.24 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 245 04.06.2024 16:23 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148906 ФПД: 56289106063701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162300&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148906&fm=56289106063701&tin=02508201610067®Number=0000000000092720&sum=35000 [16:22:59]StoreToDocumentArchive [16:22:59]shift 368 fd 148906 [16:22:59]save to /storage/0368/doc_00148906 [16:22:59]save last doc name /storage/0368/doc_00148906 to /storage/kkm_last_doc_name [16:22:59]save OK [16:22:59]Clear old archive folders... [16:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:22:59]tlvbuf is 004C1100 [16:22:59]SAM_PROTO_ClearQueue [16:22:59]wFMCommunicate request_size=4 [16:22:59]MH_SAM_APDU [16:22:59]CAPDU: 80 09 00 00 [16:22:59]Write to MH i2c: E2 08 00 23 1D 80 09 00 00 00 00 00 00 B2 [16:22:59]Write i2c OK [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 [16:22:59]MH_I2C_Read... [16:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:59]Read from MH i2c: E2 03 00 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 03 00 23 1D 00 90 00 B4 [16:22:59]RAPDU: 90 00 [16:22:59]wFMCommunicate OK [16:22:59]SAM_PROTO_ClearQueue done [16:22:59]KKMCreateOFDPacket [16:22:59]OFDProtocolAddRootSTLVToBuf [16:22:59]FM_MakeSignedData [16:22:59]FM_MakeSignedData [16:22:59]SAM_PROTO_SignData [16:22:59]wFMCommunicate request_size=4 [16:22:59]MH_SAM_APDU [16:22:59]CAPDU: 80 0D 01 02 [16:22:59]Write to MH i2c: E2 08 00 24 1D 80 0D 01 02 00 00 00 00 BA [16:22:59]Write i2c OK [16:22:59]MH_I2C_Read... [16:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:59]Read from MH i2c: E2 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 03 00 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 03 00 24 1D 00 90 00 B5 [16:22:59]RAPDU: 90 00 [16:22:59]wFMCommunicate OK [16:22:59]wFMCommunicate request_size=255 [16:22:59]MH_SAM_APDU [16:22:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 8C 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 64 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AA 45 02 00 35 04 06 00 33 31 D4 2B [16:22:59]Write to MH i2c: E2 02 01 25 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 8C 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 64 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AA 45 02 00 35 04 06 00 33 31 D4 2B 00 00 78 [16:22:59]Write i2c OK [16:22:59]MH_I2C_Read... [16:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:59]Read from MH i2c: E2 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 03 00 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 03 00 25 1D 00 90 00 B6 [16:22:59]RAPDU: 90 00 [16:22:59]wFMCommunicate OK [16:22:59]wFMCommunicate request_size=7 [16:22:59]MH_SAM_APDU [16:22:59]CAPDU: 80 0D 02 02 02 F1 55 [16:22:59]Write to MH i2c: E2 0A 00 26 1D 80 0D 02 02 02 00 F1 55 00 00 07 [16:22:59]Write i2c OK [16:22:59]MH_I2C_Read... [16:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:59]Read from MH i2c: E2 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 03 00 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 03 00 26 1D 00 90 00 B7 [16:22:59]RAPDU: 90 00 [16:22:59]wFMCommunicate OK [16:22:59]wFMCommunicate request_size=4 [16:22:59]MH_SAM_APDU [16:22:59]CAPDU: 80 0D 03 02 [16:22:59]Write to MH i2c: E2 08 00 27 1D 80 0D 03 02 00 00 00 00 BF [16:22:59]Write i2c OK [16:22:59]MH_I2C_Read... [16:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:59]Read from MH i2c: E2 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 0B 00 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 0B 00 27 1D 00 CA 46 AF 37 9B 4F 16 09 90 00 BF [16:22:59]RAPDU: CA 46 AF 37 9B 4F 16 09 90 00 [16:22:59]wFMCommunicate OK [16:22:59]SAM_PROTO_SignData done [16:22:59]FM_MakeSignedData done [16:22:59]CreateOFDProtocolMessage [16:22:59]wFMCommunicate request_size=4 [16:22:59]MH_SAM_APDU [16:22:59]CAPDU: 80 11 00 00 [16:22:59]Write to MH i2c: E2 08 00 28 1D 80 11 00 00 00 00 00 00 BF [16:22:59]Write i2c OK [16:22:59]MH_I2C_Read... [16:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:59]Read from MH i2c: E2 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: E2 17 00 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: E2 17 00 28 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 12 [16:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:23:00]wFMCommunicate OK [16:23:00]CreateOFDProtocolMessage done [16:23:00]OFDSenderStorePacket 148906 [16:23:00]StoreOFDPacket docnum=148906 [16:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 0E 2E 04 01 1D 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 8C 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 64 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AA 45 02 00 35 04 06 00 33 31 D4 2B F1 55 CA 46 AF 37 9B 4F 16 09 [16:23:00]CheckFolder [16:23:00]dirname=/storage/ofd_packets [16:23:00]CheckFolder done [16:23:00]ProducePacketName [16:23:00]name=ofd_packets/00148906 [16:23:00]NVStorageSaveData ofd_packets/00148906 [16:23:00]File name is /storage/ofd_packets/00148906 [16:23:00]Write 298 bytes [16:23:00]NVStorageSaveData done [16:23:00]OFDSenderStorePacket done [16:23:00]KKMCreateOFDPacket done [16:23:00]NVStorageSaveData kkm_last_timestamp [16:23:00]File name is /storage/kkm_last_timestamp [16:23:00]Write 4 bytes [16:23:00]NVStorageSaveData done [16:23:00]ExternCall_PrintAddStr [16:23:00]wPrintStart [16:23:00]Write to MH i2c: 01 00 00 29 1D 46 [16:23:00]Write i2c OK [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: 01 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: 01 07 00 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: 01 07 00 29 1D 00 00 00 00 00 FF 0F 5B [16:23:00]RasterBufferAndPrint [16:23:00]line Счет N : (1)979836 [16:23:00]line ИНН: 02508201610067 [16:23:00]line Контрольно-Кассовый Чек [16:23:00]line ПРОДАЖА [16:23:00]line ТРК (МРК, ГНК) : 11 [16:23:00]line Товар: 2710194210 [16:23:00]line ДТ-К-5 [16:23:00]line 4.810 * 72.90 [16:23:00]line = 350.65 [16:23:00]line НДС 12% НСП 1% [16:23:00]line > о реализуемом товаре [16:23:00]line ОКРУГЛЕНИЕ: -0.65 [16:23:00]line ИТОГО: 350.00 [16:23:00]line Внесено: 350.00 [16:23:00]line СДАЧА: 0.00 [16:23:00]line НСП 1% : 3.10 [16:23:00]line НДС 12% : 37.24 [16:23:00]line Наличными: 350.00 [16:23:00]line Безнал.: 0.00 [16:23:00]line Место: АЗС № 68 "Партнер Нефть" [16:23:00]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:23:00]line СНО: Общий режим [16:23:00]line Чек 245 04.06.2024 16:23 [16:23:00]line Смена: 368 ФФД: 1.0 [16:23:00]line ЗНМ: 0300000035 [16:23:00]line РНМ: 0000000000092720 [16:23:00]line Версия ККМ: 001 [16:23:00]line ФМ: 0000000000875057 [16:23:00]line ФД: 148906 [16:23:00]line ФПД: 56289106063701 [16:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162300&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148906&fm=56289106063701&tin=02508201610067®Number=0000000000092720&sum=35000 [16:23:00]OFD Sender: Processing packet 148906 [packets to send 100, broken 99] [16:23:00]ProducePacketName [16:23:00]name=ofd_packets/00148906 [16:23:00]OFD Sender: To server: pG, [16:23:00]CommunicateWithHost lk.salyk.kg:30040 [16:23:00]ConnectInit lk.salyk.kg [16:23:00]written 0, free lines is 4095 [16:23:00]Connected sock=10 [16:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 0E 2E 04 01 1D 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 8C 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 64 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AA 45 02 00 35 04 06 00 33 31 D4 2B F1 55 CA 46 AF 37 9B 4F 16 09 [16:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A5 70 47 00 DA 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AA 45 02 00 F4 03 04 00 87 E6 5E 66 B6 04 01 00 00 C4 D7 E7 1B D5 2E 60 7D [16:23:00]CommunicateWithHost err = 0 [16:23:00]CheckOFDResponse [16:23:00]1017 (14) - 77093643461234 [16:23:00]1041 (16) - 0000000000875057 [16:23:00]1040 (4) - 148906 [16:23:00]1012 (4) - 04.06.2024 10:03 [16:23:00]1206 (1) - 0 [16:23:00]OFD Sender: Remove packet 148906 [16:23:00]ProducePacketName [16:23:00]name=ofd_packets/00148906 [16:23:00]NVStorageDeleteData [16:23:00]Write to MH i2c: 01 00 00 54 1D 71 [16:23:00]Write i2c OK [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: 01 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: 01 07 00 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: 01 07 00 54 1D 00 00 00 00 00 6A 0C EE [16:23:00]RasterBufferAndPrint [16:23:00]line [16:23:00]line [16:23:00]line [16:23:00]line [16:23:00]line [16:23:00]written 0, free lines is 3182 [16:23:00]MH_Cut [16:23:00]Write to MH i2c: D1 01 00 5B 1D 01 4A [16:23:00]Write i2c OK [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: D1 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: D1 01 00 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: D1 01 00 5B 1D 00 49 [16:23:00]Write to MH i2c: 01 00 00 5C 1D 79 [16:23:00]Write i2c OK [16:23:00]MH_I2C_Read... [16:23:01]OFD Sender: No OFD packet to send [16:23:02]*** Cut start [16:23:02]*** Partial cut [16:23:02]*** CUTSNS_PIN = 1 [16:23:02]*** CUTSNS_PIN = 0 [16:23:02]*** Brake cut motor [16:23:02]Read from MH i2c: 01 [16:23:02]MH_I2C_Read... [16:23:02]*** Stop cut motor [16:23:02]*** Cut end [16:23:02]Read from MH i2c: 01 07 00 [16:23:02]MH_I2C_Read... [16:23:02]Read from MH i2c: 01 07 00 5C 1D 00 00 00 00 00 FF 0F 8E [16:23:02]process_action close_receipt done [16:23:02]requested_data is exist [16:23:02]produce_requested_data [16:23:02]requested_item fm.sn is exist - process it [16:23:02]wFMCommunicate request_size=4 [16:23:02]MH_SAM_APDU [16:23:02]CAPDU: 80 11 00 00 [16:23:02]Write to MH i2c: E2 08 00 5D 1D 80 11 00 00 00 00 00 00 F4 [16:23:02]Write i2c OK [16:23:02]MH_I2C_Read... [16:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:02]Read from MH i2c: E2 [16:23:02]MH_I2C_Read... [16:23:02]Read from MH i2c: E2 17 00 [16:23:02]MH_I2C_Read... [16:23:02]Read from MH i2c: E2 17 00 5D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 47 [16:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:23:02]wFMCommunicate OK [16:23:02]requested_item fd.num is exist - process it [16:23:02]SAM_PROTO_GetFieldsCounters [16:23:02]wFMCommunicate request_size=4 [16:23:02]MH_SAM_APDU [16:23:02]CAPDU: 80 13 00 00 [16:23:02]Write to MH i2c: E2 08 00 5E 1D 80 13 00 00 00 00 00 00 F7 [16:23:02]Write i2c OK [16:23:02]MH_I2C_Read... [16:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:02]Read from MH i2c: E2 [16:23:02]MH_I2C_Read... [16:23:02]Read from MH i2c: E2 62 00 [16:23:02]MH_I2C_Read... [16:23:02]Read from MH i2c: E2 62 00 5E 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AA 45 02 00 0E 04 04 00 70 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 54 [16:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AA 45 02 00 0E 04 04 00 70 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 [16:23:02]wFMCommunicate OK [16:23:02]SAM_PROTO_GetFieldsCounters done [16:23:02]requested_item shift.num is exist - process it [16:23:02]requested_item shift.opened is exist - process it [16:23:02]req_shift_opened [16:23:02]FM_GetShiftState [16:23:02]SAM_PROTO_GetShiftState [16:23:02]wFMCommunicate request_size=4 [16:23:02]MH_SAM_APDU [16:23:02]CAPDU: 80 13 01 00 [16:23:02]Write to MH i2c: E2 08 00 5F 1D 80 13 01 00 00 00 00 00 F9 [16:23:02]Write i2c OK [16:23:02]MH_I2C_Read... [16:23:02]Read from MH i2c: E2 [16:23:02]MH_I2C_Read... [16:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:02]Read from MH i2c: E2 0E 00 [16:23:02]MH_I2C_Read... [16:23:02]Read from MH i2c: E2 0E 00 5F 1D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BC [16:23:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:23:02]wFMCommunicate OK [16:23:02]SAM_PROTO_GetShiftState done [16:23:02]FM_GetShiftState done [16:23:02]req_shift_opened done [16:23:02]requested_item shift.open_date is exist - process it [16:23:02]req_shift_open_date [16:23:02]req_shift_open_date done [16:23:02]produce_requested_data done [16:23:02]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148906,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:23:02]process_action_free close_receipt [16:23:02]json_value_free [16:23:02]json_value_free done [16:23:02]process_json_proto returns [16:23:02]Send response to host [16:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148906,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:23:02]free response buf [16:23:02]execute_script done [16:23:02]execute_script returns [16:23:02]free content buf [16:23:02]Sock 7.Close socket [16:23:02]Sock 7.Thread stoped [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [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:52]accept exits with 9 [16:24:52]New connection [16:24:52]New thread 3067407716 created [16:24:52]Thread 3067264356 joined [16:24:52]Waiting for new connection... [16:24:52] Sock 9.Parse request [16:24:52]Sock 9.Check first char [16:24:52]Sock 9.First char is OK [16:24:52]request: POST /json_proto HTTP/1.0 [16:24:52]Method: POST [16:24:52]URL: /json_proto [16:24:52]Method is POST - this is cgi request [16:24:52]url: /json_proto [16:24:52]query_string will be loaded in cgi processing [16:24:52]execute_cgi json_proto POST (null) [16:24:52]execute_cgi path=json_proto method=POST [16:24:52]POST find Content-Length [16:24:52]Host: 172.17.38.4:8080 [16:24:52]Content-Length: 677 [16:24:52]Content-Type: application/json [16:24:52] [16:24:52]POST finish read [16:24:52]Found Content-Length = 677 [16:24:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:52]execute_script... [16: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)979839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:52]POST & json_proto [16:24:52]process_json_proto [16:24:52]json parsed OK: [16:24:52]protocol is kg_v1.0 [16:24:52]action value=close_receipt [16:24:52]process_action close_receipt [16:24:52]cmd_close_receipt [16:24:52]MH_GetDate [16:24:52]Write to MH i2c: F0 00 00 60 1D 6C [16:24:52]Write i2c OK [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: F0 [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: F0 09 00 [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: F0 09 00 60 1D 00 D5 3F 5F 66 CC 51 87 64 56 [16:24:52]GetLastDocTimeStamp 1717518180 [16:24:52]current date 1717518293 [16:24:52]FM_GetShiftState [16:24:52]SAM_PROTO_GetShiftState [16:24:52]wFMCommunicate request_size=4 [16:24:52]MH_SAM_APDU [16:24:52]CAPDU: 80 13 01 00 [16:24:52]Write to MH i2c: E2 08 00 61 1D 80 13 01 00 00 00 00 00 FB [16:24:52]Write i2c OK [16:24:52]MH_I2C_Read... [16:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:52]Read from MH i2c: E2 [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: E2 0E 00 [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: E2 0E 00 61 1D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BE [16:24:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:24:52]wFMCommunicate OK [16:24:52]SAM_PROTO_GetShiftState done [16:24:52]FM_GetShiftState done [16:24:52]opened in 1717460629 [16:24:52]opened+sec_in_day 1717547029 [16:24:52]quantity*price = 25020 [16:24:52]sum+1 = 25022 [16:24:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 246 04.06.2024 16:24 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148907 ФПД: 273703563298342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162453&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148907&fm=273703563298342&tin=02508201610067®Number=0000000000092720&sum=25000 [16:24:53]StoreToDocumentArchive [16:24:53]shift 368 fd 148907 [16:24:53]save to /storage/0368/doc_00148907 [16:24:53]save last doc name /storage/0368/doc_00148907 to /storage/kkm_last_doc_name [16:24:53]save OK [16:24:53]Clear old archive folders... [16:24:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:53]tlvbuf is B6FC4210 [16:24:53]SAM_PROTO_ClearQueue [16:24:53]wFMCommunicate request_size=4 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 09 00 00 [16:24:53]Write to MH i2c: E2 08 00 6E 1D 80 09 00 00 00 00 00 00 FD [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 6E 1D 00 90 00 FF [16:24:53]RAPDU: 90 00 [16:24:53]wFMCommunicate OK [16:24:53]SAM_PROTO_ClearQueue done [16:24:53]KKMCreateOFDPacket [16:24:53]OFDProtocolAddRootSTLVToBuf [16:24:53]FM_MakeSignedData [16:24:53]FM_MakeSignedData [16:24:53]SAM_PROTO_SignData [16:24:53]wFMCommunicate request_size=4 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 0D 01 02 [16:24:53]Write to MH i2c: E2 08 00 6F 1D 80 0D 01 02 00 00 00 00 05 [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 6F 1D 00 90 00 00 [16:24:53]RAPDU: 90 00 [16:24:53]wFMCommunicate OK [16:24:53]wFMCommunicate request_size=255 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 D5 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AB 45 02 00 35 04 06 00 F8 [16:24:53]Write to MH i2c: E2 02 01 70 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 D5 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AB 45 02 00 35 04 06 00 F8 00 00 92 [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 70 1D 00 90 00 01 [16:24:53]RAPDU: 90 00 [16:24:53]wFMCommunicate OK [16:24:53]wFMCommunicate request_size=10 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 0D 02 02 05 EE 93 AA 06 26 [16:24:53]Write to MH i2c: E2 0D 00 71 1D 80 0D 02 02 05 00 EE 93 AA 06 26 00 00 69 [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 71 1D 00 90 00 02 [16:24:53]RAPDU: 90 00 [16:24:53]wFMCommunicate OK [16:24:53]wFMCommunicate request_size=4 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 0D 03 02 [16:24:53]Write to MH i2c: E2 08 00 72 1D 80 0D 03 02 00 00 00 00 0A [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 0B 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 0B 00 72 1D 00 93 4A 65 7A B3 A5 F6 73 90 00 88 [16:24:53]RAPDU: 93 4A 65 7A B3 A5 F6 73 90 00 [16:24:53]wFMCommunicate OK [16:24:53]SAM_PROTO_SignData done [16:24:53]FM_MakeSignedData done [16:24:53]CreateOFDProtocolMessage [16:24:53]wFMCommunicate request_size=4 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 11 00 00 [16:24:53]Write to MH i2c: E2 08 00 73 1D 80 11 00 00 00 00 00 00 0A [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 17 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 17 00 73 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5D [16:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:24:53]wFMCommunicate OK [16:24:53]CreateOFDProtocolMessage done [16:24:53]OFDSenderStorePacket 148907 [16:24:53]StoreOFDPacket docnum=148907 [16:24:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5B DD 07 01 F4 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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 D5 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AB 45 02 00 35 04 06 00 F8 EE 93 AA 06 26 93 4A 65 7A B3 A5 F6 73 [16:24:53]CheckFolder [16:24:53]dirname=/storage/ofd_packets [16:24:53]CheckFolder done [16:24:53]ProducePacketName [16:24:53]name=ofd_packets/00148907 [16:24:53]NVStorageSaveData ofd_packets/00148907 [16:24:53]File name is /storage/ofd_packets/00148907 [16:24:53]Write 301 bytes [16:24:53]NVStorageSaveData done [16:24:53]OFDSenderStorePacket done [16:24:53]KKMCreateOFDPacket done [16:24:53]NVStorageSaveData kkm_last_timestamp [16:24:53]File name is /storage/kkm_last_timestamp [16:24:53]Write 4 bytes [16:24:53]NVStorageSaveData done [16:24:53]ExternCall_PrintAddStr [16:24:53]wPrintStart [16:24:53]Write to MH i2c: 01 00 00 74 1D 91 [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: 01 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: 01 07 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: 01 07 00 74 1D 00 00 00 00 00 FF 0F A6 [16:24:53]RasterBufferAndPrint [16:24:53]line Счет N : (1)979839 [16:24:53]line ИНН: 02508201610067 [16:24:53]line Контрольно-Кассовый Чек [16:24:53]line ПРОДАЖА [16:24:53]line ТРК (МРК, ГНК) : 31 [16:24:53]line Товар: 2710124130 [16:24:53]line Аи-92-К-5 [16:24:53]line 3.740 * 66.90 [16:24:53]line = 250.21 [16:24:53]line НДС 12% НСП 1% [16:24:53]line > о реализуемом товаре [16:24:53]line ОКРУГЛЕНИЕ: -0.21 [16:24:53]line ИТОГО: 250.00 [16:24:53]line Внесено: 250.00 [16:24:53]line СДАЧА: 0.00 [16:24:53]line НСП 1% : 2.21 [16:24:53]line НДС 12% : 26.57 [16:24:53]line Наличными: 250.00 [16:24:53]line Безнал.: 0.00 [16:24:53]line Место: АЗС № 68 "Партнер Нефть" [16:24:53]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:24:53]line СНО: Общий режим [16:24:53]line Чек 246 04.06.2024 16:24 [16:24:53]line Смена: 368 ФФД: 1.0 [16:24:53]line ЗНМ: 0300000035 [16:24:53]line РНМ: 0000000000092720 [16:24:53]line Версия ККМ: 001 [16:24:53]line ФМ: 0000000000875057 [16:24:53]line ФД: 148907 [16:24:53]line ФПД: 273703563298342 [16:24:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162453&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148907&fm=273703563298342&tin=02508201610067®Number=0000000000092720&sum=25000 [16:24:53]OFD Sender: Processing packet 148907 [packets to send 100, broken 99] [16:24:53]ProducePacketName [16:24:53]name=ofd_packets/00148907 [16:24:53]OFD Sender: To server: pG, [16:24:53]CommunicateWithHost lk.salyk.kg:30040 [16:24:53]ConnectInit lk.salyk.kg [16:24:53]written 0, free lines is 4095 [16:24:53]Connected sock=11 [16:24:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5B DD 07 01 F4 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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 D5 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AB 45 02 00 35 04 06 00 F8 EE 93 AA 06 26 93 4A 65 7A B3 A5 F6 73 [16:24:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B2 75 47 00 5C 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 38 37 35 30 35 37 10 04 04 00 AB 45 02 00 F4 03 04 00 F8 E6 5E 66 B6 04 01 00 00 3E 9C FA 48 42 12 37 B1 [16:24:54]CommunicateWithHost err = 0 [16:24:54]CheckOFDResponse [16:24:54]1017 (14) - 77093643461234 [16:24:54]1041 (16) - 0000000000875057 [16:24:54]1040 (4) - 148907 [16:24:54]1012 (4) - 04.06.2024 10:05 [16:24:54]1206 (1) - 0 [16:24:54]OFD Sender: Remove packet 148907 [16:24:54]ProducePacketName [16:24:54]name=ofd_packets/00148907 [16:24:54]NVStorageDeleteData [16:24:54]Write to MH i2c: 01 00 00 9F 1D BC [16:24:54]Write i2c OK [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: 01 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: 01 07 00 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: 01 07 00 9F 1D 00 00 00 00 00 6F 0C 3E [16:24:54]RasterBufferAndPrint [16:24:54]line [16:24:54]line [16:24:54]line [16:24:54]line [16:24:54]line [16:24:54]written 0, free lines is 3186 [16:24:54]MH_Cut [16:24:54]Write to MH i2c: D1 01 00 A6 1D 01 95 [16:24:54]Write i2c OK [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: D1 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: D1 01 00 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: D1 01 00 A6 1D 00 94 [16:24:54]Write to MH i2c: 01 00 00 A7 1D C4 [16:24:54]Write i2c OK [16:24:54]MH_I2C_Read... [16:24:54]OFD Sender: No OFD packet to send [16:24:55]*** Cut start [16:24:55]*** Partial cut [16:24:55]*** CUTSNS_PIN = 1 [16:24:55]*** CUTSNS_PIN = 0 [16:24:55]*** Brake cut motor [16:24:56]Read from MH i2c: 01 [16:24:56]MH_I2C_Read... [16:24:56]*** Stop cut motor [16:24:56]*** Cut end [16:24:56]Read from MH i2c: 01 07 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: 01 07 00 A7 1D 00 00 00 00 00 FF 0F D9 [16:24:56]process_action close_receipt done [16:24:56]requested_data is exist [16:24:56]produce_requested_data [16:24:56]requested_item fm.sn is exist - process it [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 11 00 00 [16:24:56]Write to MH i2c: E2 08 00 A8 1D 80 11 00 00 00 00 00 00 3F [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 17 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 17 00 A8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 92 [16:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:24:56]wFMCommunicate OK [16:24:56]requested_item fd.num is exist - process it [16:24:56]SAM_PROTO_GetFieldsCounters [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 13 00 00 [16:24:56]Write to MH i2c: E2 08 00 A9 1D 80 13 00 00 00 00 00 00 42 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 62 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 62 00 A9 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AB 45 02 00 0E 04 04 00 70 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 A3 [16:24:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AB 45 02 00 0E 04 04 00 70 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 [16:24:56]wFMCommunicate OK [16:24:56]SAM_PROTO_GetFieldsCounters done [16:24:56]requested_item shift.num is exist - process it [16:24:56]requested_item shift.opened is exist - process it [16:24:56]req_shift_opened [16:24:56]FM_GetShiftState [16:24:56]SAM_PROTO_GetShiftState [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 13 01 00 [16:24:56]Write to MH i2c: E2 08 00 AA 1D 80 13 01 00 00 00 00 00 44 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 0E 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 0E 00 AA 1D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 07 [16:24:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:24:56]wFMCommunicate OK [16:24:56]SAM_PROTO_GetShiftState done [16:24:56]FM_GetShiftState done [16:24:56]req_shift_opened done [16:24:56]requested_item shift.open_date is exist - process it [16:24:56]req_shift_open_date [16:24:56]req_shift_open_date done [16:24:56]produce_requested_data done [16:24:56]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148907,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:24:56]process_action_free close_receipt [16:24:56]json_value_free [16:24:56]json_value_free done [16:24:56]process_json_proto returns [16:24:56]Send response to host [16:24:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148907,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:24:56]free response buf [16:24:56]execute_script done [16:24:56]execute_script returns [16:24:56]free content buf [16:24:56]Sock 9.Close socket [16:24:56]Sock 9.Thread stoped [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]accept exits with 7 [16:25:14]New connection [16:25:14]New thread 3067264356 created [16:25:14]Thread 3067407716 joined [16:25:14]Waiting for new connection... [16:25:14] Sock 7.Parse request [16:25:14]Sock 7.Check first char [16:25:14]Sock 7.First char is OK [16:25:14]request: POST /json_proto HTTP/1.0 [16:25:14]Method: POST [16:25:14]URL: /json_proto [16:25:14]Method is POST - this is cgi request [16:25:14]url: /json_proto [16:25:14]query_string will be loaded in cgi processing [16:25:14]execute_cgi json_proto POST (null) [16:25:14]execute_cgi path=json_proto method=POST [16:25:14]POST find Content-Length [16:25:14]Host: 172.17.38.4:8080 [16:25:14]Content-Length: 670 [16:25:14]Content-Type: application/json [16:25:14] [16:25:14]POST finish read [16:25:14]Found Content-Length = 670 [16:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [16:25:14]execute_script... [16:25: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)979840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [16:25:14]POST & json_proto [16:25:14]process_json_proto [16:25:14]json parsed OK: [16:25:14]protocol is kg_v1.0 [16:25:14]action value=close_receipt [16:25:14]process_action close_receipt [16:25:14]cmd_close_receipt [16:25:14]MH_GetDate [16:25:14]Write to MH i2c: F0 00 00 AB 1D B7 [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: F0 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: F0 09 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: F0 09 00 AB 1D 00 EC 3F 5F 66 CC 51 87 64 B8 [16:25:14]GetLastDocTimeStamp 1717518293 [16:25:14]current date 1717518316 [16:25:14]FM_GetShiftState [16:25:14]SAM_PROTO_GetShiftState [16:25:14]wFMCommunicate request_size=4 [16:25:14]MH_SAM_APDU [16:25:14]CAPDU: 80 13 01 00 [16:25:14]Write to MH i2c: E2 08 00 AC 1D 80 13 01 00 00 00 00 00 46 [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:14]Read from MH i2c: E2 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 0E 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 0E 00 AC 1D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 09 [16:25:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:25:14]wFMCommunicate OK [16:25:14]SAM_PROTO_GetShiftState done [16:25:14]FM_GetShiftState done [16:25:14]opened in 1717460629 [16:25:14]opened+sec_in_day 1717547029 [16:25:14]quantity*price = 50042 [16:25:14]sum+1 = 50043 [16:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 247 04.06.2024 16:25 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148908 ФПД: 130692000901488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162516&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148908&fm=130692000901488&tin=02508201610067®Number=0000000000092720&sum=50000 [16:25:15]StoreToDocumentArchive [16:25:15]shift 368 fd 148908 [16:25:15]save to /storage/0368/doc_00148908 [16:25:15]save last doc name /storage/0368/doc_00148908 to /storage/kkm_last_doc_name [16:25:15]save OK [16:25:15]Clear old archive folders... [16:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:25:15]tlvbuf is 00500020 [16:25:15]SAM_PROTO_ClearQueue [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 09 00 00 [16:25:15]Write to MH i2c: E2 08 00 B9 1D 80 09 00 00 00 00 00 00 48 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 B9 1D 00 90 00 4A [16:25:15]RAPDU: 90 00 [16:25:15]wFMCommunicate OK [16:25:15]SAM_PROTO_ClearQueue done [16:25:15]KKMCreateOFDPacket [16:25:15]OFDProtocolAddRootSTLVToBuf [16:25:15]FM_MakeSignedData [16:25:15]FM_MakeSignedData [16:25:15]SAM_PROTO_SignData [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 0D 01 02 [16:25:15]Write to MH i2c: E2 08 00 BA 1D 80 0D 01 02 00 00 00 00 50 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 BA 1D 00 90 00 4B [16:25:15]RAPDU: 90 00 [16:25:15]wFMCommunicate OK [16:25:15]wFMCommunicate request_size=255 [16:25:15]MH_SAM_APDU [16:25: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 F7 00 00 00 F4 03 04 00 EC 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AC 45 02 00 35 04 06 00 [16:25:15]Write to MH i2c: E2 02 01 BB 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 F7 00 00 00 F4 03 04 00 EC 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AC 45 02 00 35 04 06 00 00 00 B8 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 BB 1D 00 90 00 4C [16:25:15]RAPDU: 90 00 [16:25:15]wFMCommunicate OK [16:25:15]wFMCommunicate request_size=11 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 0D 02 02 06 76 DD 1A 49 E9 70 [16:25:15]Write to MH i2c: E2 0E 00 BC 1D 80 0D 02 02 06 00 76 DD 1A 49 E9 70 00 00 6E [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:16]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 03 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 03 00 BC 1D 00 90 00 4D [16:25:16]RAPDU: 90 00 [16:25:16]wFMCommunicate OK [16:25:16]wFMCommunicate request_size=4 [16:25:16]MH_SAM_APDU [16:25:16]CAPDU: 80 0D 03 02 [16:25:16]Write to MH i2c: E2 08 00 BD 1D 80 0D 03 02 00 00 00 00 55 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:16]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 0B 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 0B 00 BD 1D 00 99 8E 4D 08 CA D9 57 39 90 00 05 [16:25:16]RAPDU: 99 8E 4D 08 CA D9 57 39 90 00 [16:25:16]wFMCommunicate OK [16:25:16]SAM_PROTO_SignData done [16:25:16]FM_MakeSignedData done [16:25:16]CreateOFDProtocolMessage [16:25:16]wFMCommunicate request_size=4 [16:25:16]MH_SAM_APDU [16:25:16]CAPDU: 80 11 00 00 [16:25:16]Write to MH i2c: E2 08 00 BE 1D 80 11 00 00 00 00 00 00 55 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:16]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 17 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 17 00 BE 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A8 [16:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:25:16]wFMCommunicate OK [16:25:16]CreateOFDProtocolMessage done [16:25:16]OFDSenderStorePacket 148908 [16:25:16]StoreOFDPacket docnum=148908 [16:25:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 E4 3A 08 01 D9 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 F7 00 00 00 F4 03 04 00 EC 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AC 45 02 00 35 04 06 00 76 DD 1A 49 E9 70 99 8E 4D 08 CA D9 57 39 [16:25:16]CheckFolder [16:25:16]dirname=/storage/ofd_packets [16:25:16]CheckFolder done [16:25:16]ProducePacketName [16:25:16]name=ofd_packets/00148908 [16:25:16]NVStorageSaveData ofd_packets/00148908 [16:25:16]File name is /storage/ofd_packets/00148908 [16:25:16]Write 302 bytes [16:25:16]NVStorageSaveData done [16:25:16]OFDSenderStorePacket done [16:25:16]KKMCreateOFDPacket done [16:25:16]NVStorageSaveData kkm_last_timestamp [16:25:16]File name is /storage/kkm_last_timestamp [16:25:16]Write 4 bytes [16:25:16]NVStorageSaveData done [16:25:16]ExternCall_PrintAddStr [16:25:16]wPrintStart [16:25:16]Write to MH i2c: 01 00 00 BF 1D DC [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 BF 1D 00 00 00 00 00 FF 0F F1 [16:25:16]RasterBufferAndPrint [16:25:16]line Счет N : (1)979840 [16:25:16]line ИНН: 02508201610067 [16:25:16]line Контрольно-Кассовый Чек [16:25:16]line ПРОДАЖА [16:25:16]line ТРК (МРК, ГНК) : 43 [16:25:16]line Товар: 2710124130 [16:25:16]line SUPER 92-К-5 [16:25:16]line 7.370 * 67.90 [16:25:16]line = 500.42 [16:25:16]line НДС 12% НСП 1% [16:25:16]line > о реализуемом товаре [16:25:16]line ОКРУГЛЕНИЕ: -0.42 [16:25:16]line ИТОГО: 500.00 [16:25:16]line Внесено: 500.00 [16:25:16]line СДАЧА: 0.00 [16:25:16]line НСП 1% : 4.43 [16:25:16]line НДС 12% : 53.14 [16:25:16]line Наличными: 500.00 [16:25:16]line Безнал.: 0.00 [16:25:16]line Место: АЗС № 68 "Партнер Нефть" [16:25:16]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:25:16]line СНО: Общий режим [16:25:16]line Чек 247 04.06.2024 16:25 [16:25:16]line Смена: 368 ФФД: 1.0 [16:25:16]line ЗНМ: 0300000035 [16:25:16]line РНМ: 0000000000092720 [16:25:16]line Версия ККМ: 001 [16:25:16]line ФМ: 0000000000875057 [16:25:16]line ФД: 148908 [16:25:16]line ФПД: 130692000901488 [16:25:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T162516&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148908&fm=130692000901488&tin=02508201610067®Number=0000000000092720&sum=50000 [16:25:16]OFD Sender: Processing packet 148908 [packets to send 100, broken 99] [16:25:16]ProducePacketName [16:25:16]name=ofd_packets/00148908 [16:25:16]OFD Sender: To server: pG, [16:25:16]CommunicateWithHost lk.salyk.kg:30040 [16:25:16]ConnectInit lk.salyk.kg [16:25:16]written 0, free lines is 4095 [16:25:16]Connected sock=10 [16:25:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 E4 3A 08 01 D9 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 F7 00 00 00 F4 03 04 00 EC 3F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AC 45 02 00 35 04 06 00 76 DD 1A 49 E9 70 99 8E 4D 08 CA D9 57 39 [16:25:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3A 49 47 00 5A 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 38 37 35 30 35 37 10 04 04 00 AC 45 02 00 F4 03 04 00 0F E7 5E 66 B6 04 01 00 00 62 42 18 3B D3 28 DA 6A [16:25:16]CommunicateWithHost err = 0 [16:25:16]CheckOFDResponse [16:25:16]1017 (14) - 77093643461234 [16:25:16]1041 (16) - 0000000000875057 [16:25:16]1040 (4) - 148908 [16:25:16]1012 (4) - 04.06.2024 10:06 [16:25:16]1206 (1) - 0 [16:25:16]OFD Sender: Remove packet 148908 [16:25:16]ProducePacketName [16:25:16]name=ofd_packets/00148908 [16:25:16]NVStorageDeleteData [16:25:16]Write to MH i2c: 01 00 00 EA 1D 07 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 EA 1D 00 00 00 00 00 6B 0C 85 [16:25:16]RasterBufferAndPrint [16:25:16]line [16:25:16]line [16:25:16]line [16:25:16]line [16:25:16]line [16:25:16]written 0, free lines is 3182 [16:25:16]MH_Cut [16:25:16]Write to MH i2c: D1 01 00 F1 1D 01 E0 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: D1 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: D1 01 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: D1 01 00 F1 1D 00 DF [16:25:16]Write to MH i2c: 01 00 00 F2 1D 0F [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:17]OFD Sender: No OFD packet to send [16:25:18]*** Cut start [16:25:18]*** Partial cut [16:25:18]*** CUTSNS_PIN = 1 [16:25:18]*** CUTSNS_PIN = 0 [16:25:18]*** Brake cut motor [16:25:18]Read from MH i2c: 01 [16:25:18]MH_I2C_Read... [16:25:18]*** Stop cut motor [16:25:18]*** Cut end [16:25:18]Read from MH i2c: 01 07 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: 01 07 00 F2 1D 00 00 00 00 00 FF 0F 24 [16:25:18]process_action close_receipt done [16:25:18]requested_data is exist [16:25:18]produce_requested_data [16:25:18]requested_item fm.sn is exist - process it [16:25:18]wFMCommunicate request_size=4 [16:25:18]MH_SAM_APDU [16:25:18]CAPDU: 80 11 00 00 [16:25:18]Write to MH i2c: E2 08 00 F3 1D 80 11 00 00 00 00 00 00 8A [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:18]Read from MH i2c: E2 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 17 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 17 00 F3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DD [16:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:25:18]wFMCommunicate OK [16:25:18]requested_item fd.num is exist - process it [16:25:18]SAM_PROTO_GetFieldsCounters [16:25:18]wFMCommunicate request_size=4 [16:25:18]MH_SAM_APDU [16:25:18]CAPDU: 80 13 00 00 [16:25:18]Write to MH i2c: E2 08 00 F4 1D 80 13 00 00 00 00 00 00 8D [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:18]Read from MH i2c: E2 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 62 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 62 00 F4 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [16:25:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:18]wFMCommunicate OK [16:25:18]SAM_PROTO_GetFieldsCounters done [16:25:18]requested_item shift.num is exist - process it [16:25:18]requested_item shift.opened is exist - process it [16:25:18]req_shift_opened [16:25:18]FM_GetShiftState [16:25:18]SAM_PROTO_GetShiftState [16:25:18]wFMCommunicate request_size=4 [16:25:18]MH_SAM_APDU [16:25:18]CAPDU: 80 13 01 00 [16:25:18]Write to MH i2c: E2 08 00 F5 1D 80 13 01 00 00 00 00 00 8F [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:19]Read from MH i2c: E2 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: E2 0E 00 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: E2 0E 00 F5 1D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 52 [16:25:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:25:19]wFMCommunicate OK [16:25:19]SAM_PROTO_GetShiftState done [16:25:19]FM_GetShiftState done [16:25:19]req_shift_opened done [16:25:19]requested_item shift.open_date is exist - process it [16:25:19]req_shift_open_date [16:25:19]req_shift_open_date done [16:25:19]produce_requested_data done [16:25:19]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148908,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:25:19]process_action_free close_receipt [16:25:19]json_value_free [16:25:19]json_value_free done [16:25:19]process_json_proto returns [16:25:19]Send response to host [16:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148908,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:25:19]free response buf [16:25:19]execute_script done [16:25:19]execute_script returns [16:25:19]free content buf [16:25:19]Sock 7.Close socket [16:25:19]Sock 7.Thread stoped [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:37]accept exits with 9 [16:25:37]New connection [16:25:37]New thread 3067407716 created [16:25:37]Thread 3067264356 joined [16:25:37]Waiting for new connection... [16:25:37] Sock 9.Parse request [16:25:37]Sock 9.Check first char [16:25:37]Sock 9.First char is OK [16:25:37]request: POST /json_proto HTTP/1.0 [16:25:37]Method: POST [16:25:37]URL: /json_proto [16:25:37]Method is POST - this is cgi request [16:25:37]url: /json_proto [16:25:37]query_string will be loaded in cgi processing [16:25:37]execute_cgi json_proto POST (null) [16:25:37]execute_cgi path=json_proto method=POST [16:25:37]POST find Content-Length [16:25:37]Host: 172.17.38.4:8080 [16:25:37]Content-Length: 1151 [16:25:37]Content-Type: application/json [16:25:37] [16:25:37]POST finish read [16:25:37]Found Content-Length = 1151 [16:25:37]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979838\u000A04.06.2024 16:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A30112215\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:37]execute_script... [16:25:37]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979838\u000A04.06.2024 16:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A30112215\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:37]POST & json_proto [16:25:37]process_json_proto [16:25:37]json parsed OK: [16:25:37]protocol is kg_v1.0 [16:25:37]action value=print_text [16:25:37]process_action print_text [16:25:37]cmd_print_text [16:25:37]ExternCall_PrintAddStr [16:25:37]wPrintStart [16:25:37]Write to MH i2c: 01 00 00 F6 1D 13 [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 F6 1D 00 00 00 00 00 FF 0F 28 [16:25:37]RasterBufferAndPrint [16:25:37]line *****ТОВАРНЫЙ ЧЕК***** [16:25:37]line АЗС 68 [16:25:37]line Партнер нефть [16:25:37]line 02508201610067 [16:25:37]line Кассир : Аскаров Н. [16:25:37]line Счет N : (1)979838 [16:25:37]line 04.06.2024 16:06 [16:25:37]line ПРОДАЖА [16:25:37]line ТРК (МРК, ГНК): 22 [16:25:37]line Вид ГСМ : 2710124130 [16:25:37]line Аи-92-К-5 [16:25:37]line 30.000 x 66.90 [16:25:37]line ИТОГ: 2007.00 [16:25:37]line Тип оплаты: Талоны: ТК ГПНА Online [16:25:37]line 30112215 [16:25:37]line ______________________ [16:25:37]line (подпись) [16:25:37]written 0, free lines is 4095 [16:25:37]Write to MH i2c: 01 00 00 0A 1E 28 [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 0A 1E 00 00 00 00 00 0F 0E 4C [16:25:37]RasterBufferAndPrint [16:25:37]line [16:25:37]line [16:25:37]line [16:25:37]line [16:25:37]line [16:25:37]written 0, free lines is 3601 [16:25:37]MH_Cut [16:25:37]Write to MH i2c: D1 01 00 11 1E 01 01 [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: D1 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: D1 01 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: D1 01 00 11 1E 00 00 [16:25:37]Write to MH i2c: 01 00 00 12 1E 30 [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:38]*** Cut start [16:25:38]*** Partial cut [16:25:38]*** CUTSNS_PIN = 1 [16:25:38]*** CUTSNS_PIN = 0 [16:25:38]*** Brake cut motor [16:25:38]Read from MH i2c: 01 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: 01 07 00 [16:25:38]MH_I2C_Read... [16:25:38]*** Stop cut motor [16:25:38]*** Cut end [16:25:38]Read from MH i2c: 01 07 00 12 1E 00 00 00 00 00 FF 0F 45 [16:25:38]process_action print_text done [16:25:38]requested_data is exist [16:25:38]produce_requested_data [16:25:38]requested_item fm.sn is exist - process it [16:25:38]wFMCommunicate request_size=4 [16:25:38]MH_SAM_APDU [16:25:38]CAPDU: 80 11 00 00 [16:25:38]Write to MH i2c: E2 08 00 13 1E 80 11 00 00 00 00 00 00 AB [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:38]Read from MH i2c: E2 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 17 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 17 00 13 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FE [16:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:25:38]wFMCommunicate OK [16:25:38]requested_item fd.num is exist - process it [16:25:38]SAM_PROTO_GetFieldsCounters [16:25:38]wFMCommunicate request_size=4 [16:25:38]MH_SAM_APDU [16:25:38]CAPDU: 80 13 00 00 [16:25:38]Write to MH i2c: E2 08 00 14 1E 80 13 00 00 00 00 00 00 AE [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 62 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 62 00 14 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [16:25:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_GetFieldsCounters done [16:25:39]requested_item shift.num is exist - process it [16:25:39]requested_item shift.opened is exist - process it [16:25:39]req_shift_opened [16:25:39]FM_GetShiftState [16:25:39]SAM_PROTO_GetShiftState [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 13 01 00 [16:25:39]Write to MH i2c: E2 08 00 15 1E 80 13 01 00 00 00 00 00 B0 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0E 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0E 00 15 1E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 73 [16:25:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_GetShiftState done [16:25:39]FM_GetShiftState done [16:25:39]req_shift_opened done [16:25:39]requested_item shift.open_date is exist - process it [16:25:39]req_shift_open_date [16:25:39]req_shift_open_date done [16:25:39]produce_requested_data done [16:25:39]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148908,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:25:39]process_action_free print_text [16:25:39]json_value_free [16:25:39]json_value_free done [16:25:39]process_json_proto returns [16:25:39]Send response to host [16:25:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148908,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:25:39]free response buf [16:25:39]execute_script done [16:25:39]execute_script returns [16:25:39]free content buf [16:25:39]Sock 9.Close socket [16:25:39]Sock 9.Thread stoped [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:07]accept exits with 7 [16:28:07]New connection [16:28:07]New thread 3067264356 created [16:28:07]Thread 3067407716 joined [16:28:07]Waiting for new connection... [16:28:07] Sock 7.Parse request [16:28:07]Sock 7.Check first char [16:28:07]Sock 7.First char is OK [16:28:07]request: POST /json_proto HTTP/1.0 [16:28:07]Method: POST [16:28:07]URL: /json_proto [16:28:07]Method is POST - this is cgi request [16:28:07]url: /json_proto [16:28:07]query_string will be loaded in cgi processing [16:28:07]execute_cgi json_proto POST (null) [16:28:07]execute_cgi path=json_proto method=POST [16:28:07]POST find Content-Length [16:28:07]Host: 172.17.38.4:8080 [16:28:07]Content-Length: 1151 [16:28:07]Content-Type: application/json [16:28:07] [16:28:07]POST finish read [16:28:07]Found Content-Length = 1151 [16:28:07]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979841\u000A04.06.2024 16:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A30112215\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:07]execute_script... [16:28:07]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979841\u000A04.06.2024 16:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A30112215\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:07]POST & json_proto [16:28:07]process_json_proto [16:28:07]json parsed OK: [16:28:07]protocol is kg_v1.0 [16:28:07]action value=print_text [16:28:07]process_action print_text [16:28:07]cmd_print_text [16:28:07]ExternCall_PrintAddStr [16:28:07]wPrintStart [16:28:07]Write to MH i2c: 01 00 00 16 1E 34 [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: 01 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: 01 07 00 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: 01 07 00 16 1E 00 00 00 00 00 FF 0F 49 [16:28:07]RasterBufferAndPrint [16:28:07]line *****ТОВАРНЫЙ ЧЕК***** [16:28:07]line АЗС 68 [16:28:07]line Партнер нефть [16:28:07]line 02508201610067 [16:28:07]line Кассир : Аскаров Н. [16:28:07]line Счет N : (1)979841 [16:28:07]line 04.06.2024 16:08 [16:28:07]line ПРОДАЖА [16:28:07]line ТРК (МРК, ГНК): 22 [16:28:07]line Вид ГСМ : 2710124130 [16:28:07]line Аи-92-К-5 [16:28:07]line 40.000 x 66.90 [16:28:07]line ИТОГ: 2676.00 [16:28:07]line Тип оплаты: Талоны: ТК ГПНА Online [16:28:07]line 30112215 [16:28:07]line ______________________ [16:28:07]line (подпись) [16:28:07]written 0, free lines is 4095 [16:28:08]Write to MH i2c: 01 00 00 2A 1E 48 [16:28:08]Write i2c OK [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: 01 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: 01 07 00 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: 01 07 00 2A 1E 00 00 00 00 00 0F 0E 6C [16:28:08]RasterBufferAndPrint [16:28:08]line [16:28:08]line [16:28:08]line [16:28:08]line [16:28:08]line [16:28:08]written 0, free lines is 3601 [16:28:08]MH_Cut [16:28:08]Write to MH i2c: D1 01 00 31 1E 01 21 [16:28:08]Write i2c OK [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: D1 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: D1 01 00 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: D1 01 00 31 1E 00 20 [16:28:08]Write to MH i2c: 01 00 00 32 1E 50 [16:28:08]Write i2c OK [16:28:08]MH_I2C_Read... [16:28:08]*** Cut start [16:28:08]*** Partial cut [16:28:08]*** CUTSNS_PIN = 1 [16:28:08]*** CUTSNS_PIN = 0 [16:28:09]*** Brake cut motor [16:28:09]Read from MH i2c: 01 [16:28:09]MH_I2C_Read... [16:28:09]Read from MH i2c: 01 07 00 [16:28:09]MH_I2C_Read... [16:28:09]*** Stop cut motor [16:28:09]*** Cut end [16:28:09]Read from MH i2c: 01 07 00 32 1E 00 00 00 00 00 FF 0F 65 [16:28:09]process_action print_text done [16:28:09]requested_data is exist [16:28:09]produce_requested_data [16:28:09]requested_item fm.sn is exist - process it [16:28:09]wFMCommunicate request_size=4 [16:28:09]MH_SAM_APDU [16:28:09]CAPDU: 80 11 00 00 [16:28:09]Write to MH i2c: E2 08 00 33 1E 80 11 00 00 00 00 00 00 CB [16:28:09]Write i2c OK [16:28:09]MH_I2C_Read... [16:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:09]Read from MH i2c: E2 [16:28:09]MH_I2C_Read... [16:28:09]Read from MH i2c: E2 17 00 [16:28:09]MH_I2C_Read... [16:28:09]Read from MH i2c: E2 17 00 33 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1E [16:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:28:09]wFMCommunicate OK [16:28:09]requested_item fd.num is exist - process it [16:28:09]SAM_PROTO_GetFieldsCounters [16:28:09]wFMCommunicate request_size=4 [16:28:09]MH_SAM_APDU [16:28:09]CAPDU: 80 13 00 00 [16:28:09]Write to MH i2c: E2 08 00 34 1E 80 13 00 00 00 00 00 00 CE [16:28:09]Write i2c OK [16:28:09]MH_I2C_Read... [16:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:09]Read from MH i2c: E2 [16:28:09]MH_I2C_Read... [16:28:09]Read from MH i2c: E2 62 00 [16:28:09]MH_I2C_Read... [16:28:09]Read from MH i2c: E2 62 00 34 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [16:28:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:09]wFMCommunicate OK [16:28:09]SAM_PROTO_GetFieldsCounters done [16:28:09]requested_item shift.num is exist - process it [16:28:09]requested_item shift.opened is exist - process it [16:28:09]req_shift_opened [16:28:09]FM_GetShiftState [16:28:09]SAM_PROTO_GetShiftState [16:28:09]wFMCommunicate request_size=4 [16:28:09]MH_SAM_APDU [16:28:09]CAPDU: 80 13 01 00 [16:28:09]Write to MH i2c: E2 08 00 35 1E 80 13 01 00 00 00 00 00 D0 [16:28:09]Write i2c OK [16:28:09]MH_I2C_Read... [16:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:09]Read from MH i2c: E2 [16:28:09]MH_I2C_Read... [16:28:09]Read from MH i2c: E2 0E 00 [16:28:09]MH_I2C_Read... [16:28:09]Read from MH i2c: E2 0E 00 35 1E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 93 [16:28:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:28:09]wFMCommunicate OK [16:28:09]SAM_PROTO_GetShiftState done [16:28:09]FM_GetShiftState done [16:28:09]req_shift_opened done [16:28:09]requested_item shift.open_date is exist - process it [16:28:09]req_shift_open_date [16:28:09]req_shift_open_date done [16:28:09]produce_requested_data done [16:28:09]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148908,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:28:09]process_action_free print_text [16:28:09]json_value_free [16:28:09]json_value_free done [16:28:09]process_json_proto returns [16:28:09]Send response to host [16:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148908,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:28:09]free response buf [16:28:09]execute_script done [16:28:09]execute_script returns [16:28:09]free content buf [16:28:09]Sock 7.Close socket [16:28:09]Sock 7.Thread stoped [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:04]accept exits with 9 [16:32:04]New connection [16:32:04]New thread 3067407716 created [16:32:04]Thread 3067264356 joined [16:32:04]Waiting for new connection... [16:32:04] Sock 9.Parse request [16:32:04]Sock 9.Check first char [16:32:04]Sock 9.First char is OK [16:32:04]request: POST /json_proto HTTP/1.0 [16:32:04]Method: POST [16:32:04]URL: /json_proto [16:32:04]Method is POST - this is cgi request [16:32:04]url: /json_proto [16:32:04]query_string will be loaded in cgi processing [16:32:04]execute_cgi json_proto POST (null) [16:32:04]execute_cgi path=json_proto method=POST [16:32:04]POST find Content-Length [16:32:04]Host: 172.17.38.4:8080 [16:32:04]Content-Length: 682 [16:32:04]Content-Type: application/json [16:32:04] [16:32:04]POST finish read [16:32:04]Found Content-Length = 682 [16:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:04]execute_script... [16:32: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)979842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:04]POST & json_proto [16:32:04]process_json_proto [16:32:04]json parsed OK: [16:32:04]protocol is kg_v1.0 [16:32:04]action value=close_receipt [16:32:04]process_action close_receipt [16:32:04]cmd_close_receipt [16:32:04]MH_GetDate [16:32:04]Write to MH i2c: F0 00 00 36 1E 43 [16:32:04]Write i2c OK [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: F0 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: F0 09 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: F0 09 00 36 1E 00 86 41 5F 66 CC 51 87 64 E0 [16:32:04]GetLastDocTimeStamp 1717518316 [16:32:04]current date 1717518726 [16:32:04]FM_GetShiftState [16:32:04]SAM_PROTO_GetShiftState [16:32:04]wFMCommunicate request_size=4 [16:32:04]MH_SAM_APDU [16:32:04]CAPDU: 80 13 01 00 [16:32:04]Write to MH i2c: E2 08 00 37 1E 80 13 01 00 00 00 00 00 D2 [16:32:04]Write i2c OK [16:32:04]MH_I2C_Read... [16:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:04]Read from MH i2c: E2 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 0E 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 0E 00 37 1E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 95 [16:32:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:32:04]wFMCommunicate OK [16:32:04]SAM_PROTO_GetShiftState done [16:32:04]FM_GetShiftState done [16:32:04]opened in 1717460629 [16:32:04]opened+sec_in_day 1717547029 [16:32:04]quantity*price = 100015 [16:32:04]sum+1 = 100017 [16:32:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 248 04.06.2024 16:32 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148909 ФПД: 155333979846523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T163206&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148909&fm=155333979846523&tin=02508201610067®Number=0000000000092720&sum=100000 [16:32:05]StoreToDocumentArchive [16:32:05]shift 368 fd 148909 [16:32:05]save to /storage/0368/doc_00148909 [16:32:05]save last doc name /storage/0368/doc_00148909 to /storage/kkm_last_doc_name [16:32:05]save OK [16:32:05]Clear old archive folders... [16:32:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:05]tlvbuf is 00500930 [16:32:05]SAM_PROTO_ClearQueue [16:32:05]wFMCommunicate request_size=4 [16:32:05]MH_SAM_APDU [16:32:05]CAPDU: 80 09 00 00 [16:32:05]Write to MH i2c: E2 08 00 44 1E 80 09 00 00 00 00 00 00 D4 [16:32:05]Write i2c OK [16:32:05]MH_I2C_Read... [16:32:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:05]Read from MH i2c: E2 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: E2 03 00 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: E2 03 00 44 1E 00 90 00 D6 [16:32:05]RAPDU: 90 00 [16:32:05]wFMCommunicate OK [16:32:05]SAM_PROTO_ClearQueue done [16:32:05]KKMCreateOFDPacket [16:32:05]OFDProtocolAddRootSTLVToBuf [16:32:05]FM_MakeSignedData [16:32:05]FM_MakeSignedData [16:32:05]SAM_PROTO_SignData [16:32:05]wFMCommunicate request_size=4 [16:32:05]MH_SAM_APDU [16:32:05]CAPDU: 80 0D 01 02 [16:32:05]Write to MH i2c: E2 08 00 45 1E 80 0D 01 02 00 00 00 00 DC [16:32:05]Write i2c OK [16:32:05]MH_I2C_Read... [16:32:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:05]Read from MH i2c: E2 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: E2 03 00 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: E2 03 00 45 1E 00 90 00 D7 [16:32:05]RAPDU: 90 00 [16:32:05]wFMCommunicate OK [16:32:05]wFMCommunicate request_size=255 [16:32:05]MH_SAM_APDU [16:32:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 86 41 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AD 45 02 00 35 04 06 00 8D [16:32:05]Write to MH i2c: E2 02 01 46 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 86 41 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AD 45 02 00 35 04 06 00 8D 00 00 D6 [16:32:05]Write i2c OK [16:32:05]MH_I2C_Read... [16:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:06]Read from MH i2c: E2 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 03 00 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 03 00 46 1E 00 90 00 D8 [16:32:06]RAPDU: 90 00 [16:32:06]wFMCommunicate OK [16:32:06]wFMCommunicate request_size=10 [16:32:06]MH_SAM_APDU [16:32:06]CAPDU: 80 0D 02 02 05 46 82 B0 B7 7B [16:32:06]Write to MH i2c: E2 0D 00 47 1E 80 0D 02 02 05 00 46 82 B0 B7 7B 00 00 93 [16:32:06]Write i2c OK [16:32:06]MH_I2C_Read... [16:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:06]Read from MH i2c: E2 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 03 00 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 03 00 47 1E 00 90 00 D9 [16:32:06]RAPDU: 90 00 [16:32:06]wFMCommunicate OK [16:32:06]wFMCommunicate request_size=4 [16:32:06]MH_SAM_APDU [16:32:06]CAPDU: 80 0D 03 02 [16:32:06]Write to MH i2c: E2 08 00 48 1E 80 0D 03 02 00 00 00 00 E1 [16:32:06]Write i2c OK [16:32:06]MH_I2C_Read... [16:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:06]Read from MH i2c: E2 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 0B 00 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 0B 00 48 1E 00 46 D1 E0 45 44 7F A6 E0 90 00 67 [16:32:06]RAPDU: 46 D1 E0 45 44 7F A6 E0 90 00 [16:32:06]wFMCommunicate OK [16:32:06]SAM_PROTO_SignData done [16:32:06]FM_MakeSignedData done [16:32:06]CreateOFDProtocolMessage [16:32:06]wFMCommunicate request_size=4 [16:32:06]MH_SAM_APDU [16:32:06]CAPDU: 80 11 00 00 [16:32:06]Write to MH i2c: E2 08 00 49 1E 80 11 00 00 00 00 00 00 E1 [16:32:06]Write i2c OK [16:32:06]MH_I2C_Read... [16:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:06]Read from MH i2c: E2 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 17 00 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 17 00 49 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 34 [16:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:32:06]wFMCommunicate OK [16:32:06]CreateOFDProtocolMessage done [16:32:06]OFDSenderStorePacket 148909 [16:32:06]StoreOFDPacket docnum=148909 [16:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 35 5E 07 01 2A 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 86 41 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AD 45 02 00 35 04 06 00 8D 46 82 B0 B7 7B 46 D1 E0 45 44 7F A6 E0 [16:32:06]CheckFolder [16:32:06]dirname=/storage/ofd_packets [16:32:06]CheckFolder done [16:32:06]ProducePacketName [16:32:06]name=ofd_packets/00148909 [16:32:06]NVStorageSaveData ofd_packets/00148909 [16:32:06]File name is /storage/ofd_packets/00148909 [16:32:06]Write 301 bytes [16:32:06]NVStorageSaveData done [16:32:06]OFDSenderStorePacket done [16:32:06]KKMCreateOFDPacket done [16:32:06]NVStorageSaveData kkm_last_timestamp [16:32:06]File name is /storage/kkm_last_timestamp [16:32:06]Write 4 bytes [16:32:06]NVStorageSaveData done [16:32:06]ExternCall_PrintAddStr [16:32:06]wPrintStart [16:32:06]Write to MH i2c: 01 00 00 4A 1E 68 [16:32:06]Write i2c OK [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: 01 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: 01 07 00 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: 01 07 00 4A 1E 00 00 00 00 00 FF 0F 7D [16:32:06]RasterBufferAndPrint [16:32:06]line Счет N : (1)979842 [16:32:06]line ИНН: 02508201610067 [16:32:06]line Контрольно-Кассовый Чек [16:32:06]line ПРОДАЖА [16:32:06]line ТРК (МРК, ГНК) : 12 [16:32:06]line Товар: 2710124130 [16:32:06]line Аи-92-К-5 [16:32:06]line 14.950 * 66.90 [16:32:06]line = 1000.16 [16:32:06]line НДС 12% НСП 1% [16:32:06]line > о реализуемом товаре [16:32:06]line ОКРУГЛЕНИЕ: -0.16 [16:32:06]line ИТОГО: 1000.00 [16:32:06]line Внесено: 1000.00 [16:32:06]line СДАЧА: 0.00 [16:32:06]line НСП 1% : 8.85 [16:32:06]line НДС 12% : 106.21 [16:32:06]line Наличными: 1000.00 [16:32:06]line Безнал.: 0.00 [16:32:06]line Место: АЗС № 68 "Партнер Нефть" [16:32:06]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:32:06]line СНО: Общий режим [16:32:06]line Чек 248 04.06.2024 16:32 [16:32:06]line Смена: 368 ФФД: 1.0 [16:32:06]line ЗНМ: 0300000035 [16:32:06]line РНМ: 0000000000092720 [16:32:06]line Версия ККМ: 001 [16:32:06]line ФМ: 0000000000875057 [16:32:06]line ФД: 148909 [16:32:06]line ФПД: 155333979846523 [16:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T163206&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148909&fm=155333979846523&tin=02508201610067®Number=0000000000092720&sum=100000 [16:32:06]OFD Sender: Processing packet 148909 [packets to send 100, broken 99] [16:32:06]ProducePacketName [16:32:06]name=ofd_packets/00148909 [16:32:06]OFD Sender: To server: pG, [16:32:06]CommunicateWithHost lk.salyk.kg:30040 [16:32:06]ConnectInit lk.salyk.kg [16:32:06]written 0, free lines is 4095 [16:32:06]Connected sock=10 [16:32:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 35 5E 07 01 2A 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 86 41 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AD 45 02 00 35 04 06 00 8D 46 82 B0 B7 7B 46 D1 E0 45 44 7F A6 E0 [16:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 5C 26 47 00 98 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 38 37 35 30 35 37 10 04 04 00 AD 45 02 00 F4 03 04 00 A9 E8 5E 66 B6 04 01 00 00 63 3F 04 D3 A2 4F E5 81 [16:32:07]CommunicateWithHost err = 0 [16:32:07]CheckOFDResponse [16:32:07]1017 (14) - 77093643461234 [16:32:07]1041 (16) - 0000000000875057 [16:32:07]1040 (4) - 148909 [16:32:07]1012 (4) - 04.06.2024 10:12 [16:32:07]1206 (1) - 0 [16:32:07]OFD Sender: Remove packet 148909 [16:32:07]ProducePacketName [16:32:07]name=ofd_packets/00148909 [16:32:07]NVStorageDeleteData [16:32:07]Write to MH i2c: 01 00 00 75 1E 93 [16:32:07]Write i2c OK [16:32:07]MH_I2C_Read... [16:32:07]Read from MH i2c: 01 [16:32:07]MH_I2C_Read... [16:32:07]Read from MH i2c: 01 07 00 [16:32:07]MH_I2C_Read... [16:32:07]Read from MH i2c: 01 07 00 75 1E 00 00 00 00 00 67 0C 0D [16:32:07]RasterBufferAndPrint [16:32:07]line [16:32:07]line [16:32:07]line [16:32:07]line [16:32:07]line [16:32:07]written 0, free lines is 3178 [16:32:07]MH_Cut [16:32:07]Write to MH i2c: D1 01 00 7C 1E 01 6C [16:32:07]Write i2c OK [16:32:07]MH_I2C_Read... [16:32:07]Read from MH i2c: D1 [16:32:07]MH_I2C_Read... [16:32:07]Read from MH i2c: D1 01 00 [16:32:07]MH_I2C_Read... [16:32:07]Read from MH i2c: D1 01 00 7C 1E 00 6B [16:32:07]Write to MH i2c: 01 00 00 7D 1E 9B [16:32:07]Write i2c OK [16:32:07]MH_I2C_Read... [16:32:07]OFD Sender: No OFD packet to send [16:32:08]*** Cut start [16:32:08]*** Partial cut [16:32:08]*** CUTSNS_PIN = 1 [16:32:08]*** CUTSNS_PIN = 0 [16:32:08]*** Brake cut motor [16:32:09]Read from MH i2c: 01 [16:32:09]MH_I2C_Read... [16:32:09]*** Stop cut motor [16:32:09]*** Cut end [16:32:09]Read from MH i2c: 01 07 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: 01 07 00 7D 1E 00 00 00 00 00 FF 0F B0 [16:32:09]process_action close_receipt done [16:32:09]requested_data is exist [16:32:09]produce_requested_data [16:32:09]requested_item fm.sn is exist - process it [16:32:09]wFMCommunicate request_size=4 [16:32:09]MH_SAM_APDU [16:32:09]CAPDU: 80 11 00 00 [16:32:09]Write to MH i2c: E2 08 00 7E 1E 80 11 00 00 00 00 00 00 16 [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 [16:32:09]MH_I2C_Read... [16:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:09]Read from MH i2c: E2 17 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 17 00 7E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 69 [16:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:32:09]wFMCommunicate OK [16:32:09]requested_item fd.num is exist - process it [16:32:09]SAM_PROTO_GetFieldsCounters [16:32:09]wFMCommunicate request_size=4 [16:32:09]MH_SAM_APDU [16:32:09]CAPDU: 80 13 00 00 [16:32:09]Write to MH i2c: E2 08 00 7F 1E 80 13 00 00 00 00 00 00 19 [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:09]Read from MH i2c: E2 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 62 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 62 00 7F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AD 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [16:32:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AD 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:09]wFMCommunicate OK [16:32:09]SAM_PROTO_GetFieldsCounters done [16:32:09]requested_item shift.num is exist - process it [16:32:09]requested_item shift.opened is exist - process it [16:32:09]req_shift_opened [16:32:09]FM_GetShiftState [16:32:09]SAM_PROTO_GetShiftState [16:32:09]wFMCommunicate request_size=4 [16:32:09]MH_SAM_APDU [16:32:09]CAPDU: 80 13 01 00 [16:32:09]Write to MH i2c: E2 08 00 80 1E 80 13 01 00 00 00 00 00 1B [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:09]Read from MH i2c: E2 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 0E 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 0E 00 80 1E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DE [16:32:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:32:09]wFMCommunicate OK [16:32:09]SAM_PROTO_GetShiftState done [16:32:09]FM_GetShiftState done [16:32:09]req_shift_opened done [16:32:09]requested_item shift.open_date is exist - process it [16:32:09]req_shift_open_date [16:32:09]req_shift_open_date done [16:32:09]produce_requested_data done [16:32:09]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148909,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:32:09]process_action_free close_receipt [16:32:09]json_value_free [16:32:09]json_value_free done [16:32:09]process_json_proto returns [16:32:09]Send response to host [16:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148909,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:32:09]free response buf [16:32:09]execute_script done [16:32:09]execute_script returns [16:32:09]free content buf [16:32:09]Sock 9.Close socket [16:32:09]Sock 9.Thread stoped [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:51]accept exits with 7 [16:33:51]New connection [16:33:51]New thread 3067264356 created [16:33:51]Thread 3067407716 joined [16:33:51]Waiting for new connection... [16:33:51] Sock 7.Parse request [16:33:51]Sock 7.Check first char [16:33:51]Sock 7.First char is OK [16:33:51]request: POST /json_proto HTTP/1.0 [16:33:51]Method: POST [16:33:51]URL: /json_proto [16:33:51]Method is POST - this is cgi request [16:33:51]url: /json_proto [16:33:51]query_string will be loaded in cgi processing [16:33:51]execute_cgi json_proto POST (null) [16:33:51]execute_cgi path=json_proto method=POST [16:33:51]POST find Content-Length [16:33:51]Host: 172.17.38.4:8080 [16:33:51]Content-Length: 678 [16:33:51]Content-Type: application/json [16:33:51] [16:33:51]POST finish read [16:33:51]Found Content-Length = 678 [16:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:51]execute_script... [16:33: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)979843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:51]POST & json_proto [16:33:51]process_json_proto [16:33:51]json parsed OK: [16:33:51]protocol is kg_v1.0 [16:33:51]action value=close_receipt [16:33:51]process_action close_receipt [16:33:51]cmd_close_receipt [16:33:51]MH_GetDate [16:33:51]Write to MH i2c: F0 00 00 81 1E 8E [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: F0 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: F0 09 00 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: F0 09 00 81 1E 00 F1 41 5F 66 CC 51 87 64 96 [16:33:51]GetLastDocTimeStamp 1717518726 [16:33:51]current date 1717518833 [16:33:51]FM_GetShiftState [16:33:51]SAM_PROTO_GetShiftState [16:33:51]wFMCommunicate request_size=4 [16:33:51]MH_SAM_APDU [16:33:51]CAPDU: 80 13 01 00 [16:33:51]Write to MH i2c: E2 08 00 82 1E 80 13 01 00 00 00 00 00 1D [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:51]Read from MH i2c: E2 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: E2 0E 00 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: E2 0E 00 82 1E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E0 [16:33:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:33:51]wFMCommunicate OK [16:33:51]SAM_PROTO_GetShiftState done [16:33:51]FM_GetShiftState done [16:33:51]opened in 1717460629 [16:33:51]opened+sec_in_day 1717547029 [16:33:51]quantity*price = 80012 [16:33:51]sum+1 = 80013 [16:33:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 249 04.06.2024 16:33 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148910 ФПД: 176212964248701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T163353&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148910&fm=176212964248701&tin=02508201610067®Number=0000000000092720&sum=80000 [16:33:52]StoreToDocumentArchive [16:33:52]shift 368 fd 148910 [16:33:52]save to /storage/0368/doc_00148910 [16:33:52]save last doc name /storage/0368/doc_00148910 to /storage/kkm_last_doc_name [16:33:52]save OK [16:33:52]Clear old archive folders... [16:33:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:52]tlvbuf is 00476B30 [16:33:52]SAM_PROTO_ClearQueue [16:33:52]wFMCommunicate request_size=4 [16:33:52]MH_SAM_APDU [16:33:52]CAPDU: 80 09 00 00 [16:33:52]Write to MH i2c: E2 08 00 8F 1E 80 09 00 00 00 00 00 00 1F [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 8F 1E 00 90 00 21 [16:33:53]RAPDU: 90 00 [16:33:53]wFMCommunicate OK [16:33:53]SAM_PROTO_ClearQueue done [16:33:53]KKMCreateOFDPacket [16:33:53]OFDProtocolAddRootSTLVToBuf [16:33:53]FM_MakeSignedData [16:33:53]FM_MakeSignedData [16:33:53]SAM_PROTO_SignData [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 0D 01 02 [16:33:53]Write to MH i2c: E2 08 00 90 1E 80 0D 01 02 00 00 00 00 27 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 90 1E 00 90 00 22 [16:33:53]RAPDU: 90 00 [16:33:53]wFMCommunicate OK [16:33:53]wFMCommunicate request_size=255 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F9 00 00 00 F4 03 04 00 F1 41 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AE 45 02 00 35 04 06 00 A0 [16:33:53]Write to MH i2c: E2 02 01 91 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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 F1 41 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AE 45 02 00 35 04 06 00 A0 00 00 93 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 91 1E 00 90 00 23 [16:33:53]RAPDU: 90 00 [16:33:53]wFMCommunicate OK [16:33:53]wFMCommunicate request_size=10 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 0D 02 02 05 43 C7 23 8C 7D [16:33:53]Write to MH i2c: E2 0D 00 92 1E 80 0D 02 02 05 00 43 C7 23 8C 7D 00 00 6A [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 92 1E 00 90 00 24 [16:33:53]RAPDU: 90 00 [16:33:53]wFMCommunicate OK [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 0D 03 02 [16:33:53]Write to MH i2c: E2 08 00 93 1E 80 0D 03 02 00 00 00 00 2C [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 0B 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 0B 00 93 1E 00 1C 11 56 FC AE 56 FB 71 90 00 1C [16:33:53]RAPDU: 1C 11 56 FC AE 56 FB 71 90 00 [16:33:53]wFMCommunicate OK [16:33:53]SAM_PROTO_SignData done [16:33:53]FM_MakeSignedData done [16:33:53]CreateOFDProtocolMessage [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 11 00 00 [16:33:53]Write to MH i2c: E2 08 00 94 1E 80 11 00 00 00 00 00 00 2C [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 17 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 17 00 94 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7F [16:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:33:53]wFMCommunicate OK [16:33:53]CreateOFDProtocolMessage done [16:33:53]OFDSenderStorePacket 148910 [16:33:53]StoreOFDPacket docnum=148910 [16:33:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 82 43 07 01 2C 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F9 00 00 00 F4 03 04 00 F1 41 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AE 45 02 00 35 04 06 00 A0 43 C7 23 8C 7D 1C 11 56 FC AE 56 FB 71 [16:33:53]CheckFolder [16:33:53]dirname=/storage/ofd_packets [16:33:53]CheckFolder done [16:33:53]ProducePacketName [16:33:53]name=ofd_packets/00148910 [16:33:53]NVStorageSaveData ofd_packets/00148910 [16:33:53]File name is /storage/ofd_packets/00148910 [16:33:53]Write 301 bytes [16:33:53]NVStorageSaveData done [16:33:53]OFDSenderStorePacket done [16:33:53]KKMCreateOFDPacket done [16:33:53]NVStorageSaveData kkm_last_timestamp [16:33:53]File name is /storage/kkm_last_timestamp [16:33:53]Write 4 bytes [16:33:53]NVStorageSaveData done [16:33:53]ExternCall_PrintAddStr [16:33:53]wPrintStart [16:33:53]Write to MH i2c: 01 00 00 95 1E B3 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: 01 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: 01 07 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: 01 07 00 95 1E 00 00 00 00 00 FF 0F C8 [16:33:53]RasterBufferAndPrint [16:33:53]line Счет N : (1)979843 [16:33:53]line ИНН: 02508201610067 [16:33:53]line Контрольно-Кассовый Чек [16:33:53]line ПРОДАЖА [16:33:53]line ТРК (МРК, ГНК) : 22 [16:33:53]line Товар: 2710124130 [16:33:53]line Аи-92-К-5 [16:33:53]line 11.960 * 66.90 [16:33:53]line = 800.12 [16:33:53]line НДС 12% НСП 1% [16:33:53]line > о реализуемом товаре [16:33:53]line ОКРУГЛЕНИЕ: -0.12 [16:33:53]line ИТОГО: 800.00 [16:33:53]line Внесено: 800.00 [16:33:53]line СДАЧА: 0.00 [16:33:53]line НСП 1% : 7.08 [16:33:53]line НДС 12% : 84.97 [16:33:53]line Наличными: 800.00 [16:33:53]line Безнал.: 0.00 [16:33:53]line Место: АЗС № 68 "Партнер Нефть" [16:33:53]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:33:53]line СНО: Общий режим [16:33:53]line Чек 249 04.06.2024 16:33 [16:33:53]line Смена: 368 ФФД: 1.0 [16:33:53]line ЗНМ: 0300000035 [16:33:53]line РНМ: 0000000000092720 [16:33:53]line Версия ККМ: 001 [16:33:53]line ФМ: 0000000000875057 [16:33:53]line ФД: 148910 [16:33:53]line ФПД: 176212964248701 [16:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T163353&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148910&fm=176212964248701&tin=02508201610067®Number=0000000000092720&sum=80000 [16:33:53]OFD Sender: Processing packet 148910 [packets to send 100, broken 99] [16:33:53]ProducePacketName [16:33:53]name=ofd_packets/00148910 [16:33:53]OFD Sender: To server: pG, [16:33:53]CommunicateWithHost lk.salyk.kg:30040 [16:33:53]ConnectInit lk.salyk.kg [16:33:53]written 0, free lines is 4095 [16:33:53]Connected sock=10 [16:33:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 82 43 07 01 2C 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F9 00 00 00 F4 03 04 00 F1 41 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AE 45 02 00 35 04 06 00 A0 43 C7 23 8C 7D 1C 11 56 FC AE 56 FB 71 [16:33:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 42 23 47 00 06 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 38 37 35 30 35 37 10 04 04 00 AE 45 02 00 F4 03 04 00 14 E9 5E 66 B6 04 01 00 00 08 F6 8F EF F5 ED 29 62 [16:33:54]CommunicateWithHost err = 0 [16:33:54]CheckOFDResponse [16:33:54]1017 (14) - 77093643461234 [16:33:54]1041 (16) - 0000000000875057 [16:33:54]1040 (4) - 148910 [16:33:54]1012 (4) - 04.06.2024 10:14 [16:33:54]1206 (1) - 0 [16:33:54]OFD Sender: Remove packet 148910 [16:33:54]ProducePacketName [16:33:54]name=ofd_packets/00148910 [16:33:54]NVStorageDeleteData [16:33:54]Write to MH i2c: 01 00 00 C0 1E DE [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 07 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 07 00 C0 1E 00 00 00 00 00 66 0C 57 [16:33:54]RasterBufferAndPrint [16:33:54]line [16:33:54]line [16:33:54]line [16:33:54]line [16:33:54]line [16:33:54]written 0, free lines is 3178 [16:33:54]MH_Cut [16:33:54]Write to MH i2c: D1 01 00 C7 1E 01 B7 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: D1 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: D1 01 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: D1 01 00 C7 1E 00 B6 [16:33:54]Write to MH i2c: 01 00 00 C8 1E E6 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]OFD Sender: No OFD packet to send [16:33:55]*** Cut start [16:33:55]*** Partial cut [16:33:55]*** CUTSNS_PIN = 1 [16:33:55]*** CUTSNS_PIN = 0 [16:33:55]*** Brake cut motor [16:33:56]Read from MH i2c: 01 [16:33:56]MH_I2C_Read... [16:33:56]*** Stop cut motor [16:33:56]*** Cut end [16:33:56]Read from MH i2c: 01 07 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 07 00 C8 1E 00 00 00 00 00 FF 0F FB [16:33:56]process_action close_receipt done [16:33:56]requested_data is exist [16:33:56]produce_requested_data [16:33:56]requested_item fm.sn is exist - process it [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 11 00 00 [16:33:56]Write to MH i2c: E2 08 00 C9 1E 80 11 00 00 00 00 00 00 61 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 17 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 17 00 C9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B4 [16:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:33:56]wFMCommunicate OK [16:33:56]requested_item fd.num is exist - process it [16:33:56]SAM_PROTO_GetFieldsCounters [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 13 00 00 [16:33:56]Write to MH i2c: E2 08 00 CA 1E 80 13 00 00 00 00 00 00 64 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 62 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 62 00 CA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [16:33:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_GetFieldsCounters done [16:33:56]requested_item shift.num is exist - process it [16:33:56]requested_item shift.opened is exist - process it [16:33:56]req_shift_opened [16:33:56]FM_GetShiftState [16:33:56]SAM_PROTO_GetShiftState [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 13 01 00 [16:33:56]Write to MH i2c: E2 08 00 CB 1E 80 13 01 00 00 00 00 00 66 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0E 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0E 00 CB 1E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 29 [16:33:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_GetShiftState done [16:33:56]FM_GetShiftState done [16:33:56]req_shift_opened done [16:33:56]requested_item shift.open_date is exist - process it [16:33:56]req_shift_open_date [16:33:56]req_shift_open_date done [16:33:56]produce_requested_data done [16:33:56]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148910,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:33:56]process_action_free close_receipt [16:33:56]json_value_free [16:33:56]json_value_free done [16:33:56]process_json_proto returns [16:33:56]Send response to host [16:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148910,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:33:56]free response buf [16:33:56]execute_script done [16:33:56]execute_script returns [16:33:56]free content buf [16:33:56]Sock 7.Close socket [16:33:56]Sock 7.Thread stoped [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:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:15]accept exits with 9 [16:40:15]New connection [16:40:15]New thread 3067407716 created [16:40:15]Thread 3067264356 joined [16:40:15]Waiting for new connection... [16:40:15] Sock 9.Parse request [16:40:15]Sock 9.Check first char [16:40:15]Sock 9.First char is OK [16:40:15]request: POST /json_proto HTTP/1.0 [16:40:15]Method: POST [16:40:15]URL: /json_proto [16:40:15]Method is POST - this is cgi request [16:40:15]url: /json_proto [16:40:15]query_string will be loaded in cgi processing [16:40:15]execute_cgi json_proto POST (null) [16:40:15]execute_cgi path=json_proto method=POST [16:40:15]POST find Content-Length [16:40:15]Host: 172.17.38.4:8080 [16:40:15]Content-Length: 677 [16:40:15]Content-Type: application/json [16:40:15] [16:40:15]POST finish read [16:40:15]Found Content-Length = 677 [16:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:15]execute_script... [16:40: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)979844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:15]POST & json_proto [16:40:15]process_json_proto [16:40:15]json parsed OK: [16:40:15]protocol is kg_v1.0 [16:40:15]action value=close_receipt [16:40:15]process_action close_receipt [16:40:15]cmd_close_receipt [16:40:15]MH_GetDate [16:40:15]Write to MH i2c: F0 00 00 CC 1E D9 [16:40:15]Write i2c OK [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: F0 [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: F0 09 00 [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: F0 09 00 CC 1E 00 70 43 5F 66 CC 51 87 64 62 [16:40:15]GetLastDocTimeStamp 1717518833 [16:40:15]current date 1717519216 [16:40:15]FM_GetShiftState [16:40:15]SAM_PROTO_GetShiftState [16:40:15]wFMCommunicate request_size=4 [16:40:15]MH_SAM_APDU [16:40:15]CAPDU: 80 13 01 00 [16:40:15]Write to MH i2c: E2 08 00 CD 1E 80 13 01 00 00 00 00 00 68 [16:40:15]Write i2c OK [16:40:15]MH_I2C_Read... [16:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:15]Read from MH i2c: E2 [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: E2 0E 00 [16:40:15]MH_I2C_Read... [16:40:15]Read from MH i2c: E2 0E 00 CD 1E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2B [16:40:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:40:15]wFMCommunicate OK [16:40:15]SAM_PROTO_GetShiftState done [16:40:15]FM_GetShiftState done [16:40:15]opened in 1717460629 [16:40:15]opened+sec_in_day 1717547029 [16:40:15]quantity*price = 40006 [16:40:15]sum+1 = 40007 [16:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 250 04.06.2024 16:40 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148911 ФПД: 56733022383413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164016&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148911&fm=56733022383413&tin=02508201610067®Number=0000000000092720&sum=40000 [16:40:16]StoreToDocumentArchive [16:40:16]shift 368 fd 148911 [16:40:16]save to /storage/0368/doc_00148911 [16:40:16]save last doc name /storage/0368/doc_00148911 to /storage/kkm_last_doc_name [16:40:16]save OK [16:40:16]Clear old archive folders... [16:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:16]tlvbuf is 0047B010 [16:40:16]SAM_PROTO_ClearQueue [16:40:16]wFMCommunicate request_size=4 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 09 00 00 [16:40:16]Write to MH i2c: E2 08 00 DA 1E 80 09 00 00 00 00 00 00 6A [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 03 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 03 00 DA 1E 00 90 00 6C [16:40:16]RAPDU: 90 00 [16:40:16]wFMCommunicate OK [16:40:16]SAM_PROTO_ClearQueue done [16:40:16]KKMCreateOFDPacket [16:40:16]OFDProtocolAddRootSTLVToBuf [16:40:16]FM_MakeSignedData [16:40:16]FM_MakeSignedData [16:40:16]SAM_PROTO_SignData [16:40:16]wFMCommunicate request_size=4 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 0D 01 02 [16:40:16]Write to MH i2c: E2 08 00 DB 1E 80 0D 01 02 00 00 00 00 72 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 03 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 03 00 DB 1E 00 90 00 6D [16:40:16]RAPDU: 90 00 [16:40:16]wFMCommunicate OK [16:40:16]wFMCommunicate request_size=255 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FA 00 00 00 F4 03 04 00 70 43 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AF 45 02 00 35 04 06 00 33 [16:40:16]Write to MH i2c: E2 02 01 DC 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 70 43 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AF 45 02 00 35 04 06 00 33 00 00 D7 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 03 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 03 00 DC 1E 00 90 00 6E [16:40:16]RAPDU: 90 00 [16:40:16]wFMCommunicate OK [16:40:16]wFMCommunicate request_size=10 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 0D 02 02 05 99 2F A5 6D 35 [16:40:16]Write to MH i2c: E2 0D 00 DD 1E 80 0D 02 02 05 00 99 2F A5 6D 35 00 00 8E [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 03 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 03 00 DD 1E 00 90 00 6F [16:40:16]RAPDU: 90 00 [16:40:16]wFMCommunicate OK [16:40:16]wFMCommunicate request_size=4 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 0D 03 02 [16:40:16]Write to MH i2c: E2 08 00 DE 1E 80 0D 03 02 00 00 00 00 77 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 0B 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 0B 00 DE 1E 00 77 76 76 40 31 9F 07 65 90 00 57 [16:40:16]RAPDU: 77 76 76 40 31 9F 07 65 90 00 [16:40:16]wFMCommunicate OK [16:40:16]SAM_PROTO_SignData done [16:40:16]FM_MakeSignedData done [16:40:16]CreateOFDProtocolMessage [16:40:16]wFMCommunicate request_size=4 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 11 00 00 [16:40:16]Write to MH i2c: E2 08 00 DF 1E 80 11 00 00 00 00 00 00 77 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 17 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 17 00 DF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CA [16:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:40:16]wFMCommunicate OK [16:40:16]CreateOFDProtocolMessage done [16:40:16]OFDSenderStorePacket 148911 [16:40:16]StoreOFDPacket docnum=148911 [16:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AF A7 07 01 27 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FA 00 00 00 F4 03 04 00 70 43 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AF 45 02 00 35 04 06 00 33 99 2F A5 6D 35 77 76 76 40 31 9F 07 65 [16:40:16]CheckFolder [16:40:16]dirname=/storage/ofd_packets [16:40:16]CheckFolder done [16:40:16]ProducePacketName [16:40:16]name=ofd_packets/00148911 [16:40:16]NVStorageSaveData ofd_packets/00148911 [16:40:16]File name is /storage/ofd_packets/00148911 [16:40:16]Write 301 bytes [16:40:16]NVStorageSaveData done [16:40:16]OFDSenderStorePacket done [16:40:16]KKMCreateOFDPacket done [16:40:16]NVStorageSaveData kkm_last_timestamp [16:40:16]File name is /storage/kkm_last_timestamp [16:40:16]Write 4 bytes [16:40:16]NVStorageSaveData done [16:40:16]ExternCall_PrintAddStr [16:40:16]wPrintStart [16:40:16]Write to MH i2c: 01 00 00 E0 1E FE [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: 01 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: 01 07 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: 01 07 00 E0 1E 00 00 00 00 00 FF 0F 13 [16:40:16]RasterBufferAndPrint [16:40:16]line Счет N : (1)979844 [16:40:16]line ИНН: 02508201610067 [16:40:16]line Контрольно-Кассовый Чек [16:40:16]line ПРОДАЖА [16:40:16]line ТРК (МРК, ГНК) : 31 [16:40:16]line Товар: 2710124130 [16:40:16]line Аи-92-К-5 [16:40:16]line 5.980 * 66.90 [16:40:16]line = 400.06 [16:40:16]line НДС 12% НСП 1% [16:40:16]line > о реализуемом товаре [16:40:16]line ОКРУГЛЕНИЕ: -0.06 [16:40:16]line ИТОГО: 400.00 [16:40:16]line Внесено: 400.00 [16:40:16]line СДАЧА: 0.00 [16:40:16]line НСП 1% : 3.54 [16:40:16]line НДС 12% : 42.48 [16:40:16]line Наличными: 400.00 [16:40:16]line Безнал.: 0.00 [16:40:16]line Место: АЗС № 68 "Партнер Нефть" [16:40:16]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:40:16]line СНО: Общий режим [16:40:16]line Чек 250 04.06.2024 16:40 [16:40:16]line Смена: 368 ФФД: 1.0 [16:40:16]line ЗНМ: 0300000035 [16:40:16]line РНМ: 0000000000092720 [16:40:16]line Версия ККМ: 001 [16:40:16]line ФМ: 0000000000875057 [16:40:16]line ФД: 148911 [16:40:16]line ФПД: 56733022383413 [16:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164016&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148911&fm=56733022383413&tin=02508201610067®Number=0000000000092720&sum=40000 [16:40:17]OFD Sender: Processing packet 148911 [packets to send 100, broken 99] [16:40:17]ProducePacketName [16:40:17]name=ofd_packets/00148911 [16:40:17]OFD Sender: To server: pG, [16:40:17]CommunicateWithHost lk.salyk.kg:30040 [16:40:17]ConnectInit lk.salyk.kg [16:40:17]written 0, free lines is 4095 [16:40:17]Connected sock=10 [16:40:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AF A7 07 01 27 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FA 00 00 00 F4 03 04 00 70 43 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AF 45 02 00 35 04 06 00 33 99 2F A5 6D 35 77 76 76 40 31 9F 07 65 [16:40:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 90 43 47 00 F0 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 AF 45 02 00 F4 03 04 00 94 EA 5E 66 B6 04 01 00 00 CD 22 5F 7F 35 44 9D B1 [16:40:17]CommunicateWithHost err = 0 [16:40:17]CheckOFDResponse [16:40:17]1017 (14) - 77093643461234 [16:40:17]1041 (16) - 0000000000875057 [16:40:17]1040 (4) - 148911 [16:40:17]1012 (4) - 04.06.2024 10:21 [16:40:17]1206 (1) - 0 [16:40:17]OFD Sender: Remove packet 148911 [16:40:17]ProducePacketName [16:40:17]name=ofd_packets/00148911 [16:40:17]NVStorageDeleteData [16:40:17]Write to MH i2c: 01 00 00 0B 1F 2A [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: 01 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: 01 07 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: 01 07 00 0B 1F 00 00 00 00 00 66 0C A3 [16:40:17]RasterBufferAndPrint [16:40:17]line [16:40:17]line [16:40:17]line [16:40:17]line [16:40:17]line [16:40:17]written 0, free lines is 3178 [16:40:17]MH_Cut [16:40:17]Write to MH i2c: D1 01 00 12 1F 01 03 [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: D1 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: D1 01 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: D1 01 00 12 1F 00 02 [16:40:17]Write to MH i2c: 01 00 00 13 1F 32 [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:18]OFD Sender: No OFD packet to send [16:40:18]*** Cut start [16:40:18]*** Partial cut [16:40:18]*** CUTSNS_PIN = 1 [16:40:18]*** CUTSNS_PIN = 0 [16:40:19]*** Brake cut motor [16:40:19]Read from MH i2c: 01 [16:40:19]MH_I2C_Read... [16:40:19]*** Stop cut motor [16:40:19]*** Cut end [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 13 1F 00 00 00 00 00 FF 0F 47 [16:40:19]process_action close_receipt done [16:40:19]requested_data is exist [16:40:19]produce_requested_data [16:40:19]requested_item fm.sn is exist - process it [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 14 1F 80 11 00 00 00 00 00 00 AD [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 14 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 00 [16:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:40:19]wFMCommunicate OK [16:40:19]requested_item fd.num is exist - process it [16:40:19]SAM_PROTO_GetFieldsCounters [16:40:19]wFMCommunicate request_size=4 [16:40:19]MH_SAM_APDU [16:40:19]CAPDU: 80 13 00 00 [16:40:19]Write to MH i2c: E2 08 00 15 1F 80 13 00 00 00 00 00 00 B0 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 62 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 62 00 15 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [16:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 AF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:19]wFMCommunicate OK [16:40:19]SAM_PROTO_GetFieldsCounters done [16:40:19]requested_item shift.num is exist - process it [16:40:19]requested_item shift.opened is exist - process it [16:40:19]req_shift_opened [16:40:19]FM_GetShiftState [16:40:19]SAM_PROTO_GetShiftState [16:40:19]wFMCommunicate request_size=4 [16:40:19]MH_SAM_APDU [16:40:19]CAPDU: 80 13 01 00 [16:40:19]Write to MH i2c: E2 08 00 16 1F 80 13 01 00 00 00 00 00 B2 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 0E 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 0E 00 16 1F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 75 [16:40:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:40:19]wFMCommunicate OK [16:40:19]SAM_PROTO_GetShiftState done [16:40:19]FM_GetShiftState done [16:40:19]req_shift_opened done [16:40:19]requested_item shift.open_date is exist - process it [16:40:19]req_shift_open_date [16:40:19]req_shift_open_date done [16:40:19]produce_requested_data done [16:40:19]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148911,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:40:19]process_action_free close_receipt [16:40:19]json_value_free [16:40:19]json_value_free done [16:40:19]process_json_proto returns [16:40:19]Send response to host [16:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148911,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:40:19]free response buf [16:40:19]execute_script done [16:40:19]execute_script returns [16:40:19]free content buf [16:40:19]Sock 9.Close socket [16:40:19]Sock 9.Thread stoped [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:56]accept exits with 7 [16:40:56]New connection [16:40:56]New thread 3067264356 created [16:40:56]Thread 3067407716 joined [16:40:56]Waiting for new connection... [16:40:56] Sock 7.Parse request [16:40:56]Sock 7.Check first char [16:40:56]Sock 7.First char is OK [16:40:56]request: POST /json_proto HTTP/1.0 [16:40:56]Method: POST [16:40:56]URL: /json_proto [16:40:56]Method is POST - this is cgi request [16:40:56]url: /json_proto [16:40:56]query_string will be loaded in cgi processing [16:40:56]execute_cgi json_proto POST (null) [16:40:56]execute_cgi path=json_proto method=POST [16:40:56]POST find Content-Length [16:40:56]Host: 172.17.38.4:8080 [16:40:56]Content-Length: 677 [16:40:56]Content-Type: application/json [16:40:56] [16:40:56]POST finish read [16:40:56]Found Content-Length = 677 [16:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [16:40:56]execute_script... [16:40: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)979845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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" ] } } [16:40:56]POST & json_proto [16:40:56]process_json_proto [16:40:56]json parsed OK: [16:40:56]protocol is kg_v1.0 [16:40:56]action value=close_receipt [16:40:56]process_action close_receipt [16:40:56]cmd_close_receipt [16:40:56]MH_GetDate [16:40:56]Write to MH i2c: F0 00 00 17 1F 25 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: F0 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: F0 09 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: F0 09 00 17 1F 00 9A 43 5F 66 CC 51 87 64 D8 [16:40:56]GetLastDocTimeStamp 1717519216 [16:40:56]current date 1717519258 [16:40:56]FM_GetShiftState [16:40:56]SAM_PROTO_GetShiftState [16:40:56]wFMCommunicate request_size=4 [16:40:56]MH_SAM_APDU [16:40:56]CAPDU: 80 13 01 00 [16:40:56]Write to MH i2c: E2 08 00 18 1F 80 13 01 00 00 00 00 00 B4 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:57]Read from MH i2c: E2 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 0E 00 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 0E 00 18 1F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 77 [16:40:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:40:57]wFMCommunicate OK [16:40:57]SAM_PROTO_GetShiftState done [16:40:57]FM_GetShiftState done [16:40:57]opened in 1717460629 [16:40:57]opened+sec_in_day 1717547029 [16:40:57]quantity*price = 20003 [16:40:57]sum+1 = 20004 [16:40:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 251 04.06.2024 16:40 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148912 ФПД: 164430687777200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164058&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148912&fm=164430687777200&tin=02508201610067®Number=0000000000092720&sum=20000 [16:40:58]StoreToDocumentArchive [16:40:58]shift 368 fd 148912 [16:40:58]save to /storage/0368/doc_00148912 [16:40:58]save last doc name /storage/0368/doc_00148912 to /storage/kkm_last_doc_name [16:40:58]save OK [16:40:58]Clear old archive folders... [16:40:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:58]tlvbuf is B6FC4BC0 [16:40:58]SAM_PROTO_ClearQueue [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 09 00 00 [16:40:58]Write to MH i2c: E2 08 00 25 1F 80 09 00 00 00 00 00 00 B6 [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 03 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 03 00 25 1F 00 90 00 B8 [16:40:58]RAPDU: 90 00 [16:40:58]wFMCommunicate OK [16:40:58]SAM_PROTO_ClearQueue done [16:40:58]KKMCreateOFDPacket [16:40:58]OFDProtocolAddRootSTLVToBuf [16:40:58]FM_MakeSignedData [16:40:58]FM_MakeSignedData [16:40:58]SAM_PROTO_SignData [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 0D 01 02 [16:40:58]Write to MH i2c: E2 08 00 26 1F 80 0D 01 02 00 00 00 00 BE [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 03 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 03 00 26 1F 00 90 00 B9 [16:40:58]RAPDU: 90 00 [16:40:58]wFMCommunicate OK [16:40:58]wFMCommunicate request_size=255 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 9A 43 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B0 45 02 00 35 04 06 00 95 [16:40:58]Write to MH i2c: E2 02 01 27 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 9A 43 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B0 45 02 00 35 04 06 00 95 00 00 A4 [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 03 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 03 00 27 1F 00 90 00 BA [16:40:58]RAPDU: 90 00 [16:40:58]wFMCommunicate OK [16:40:58]wFMCommunicate request_size=10 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 0D 02 02 05 8C 80 BC 31 B0 [16:40:58]Write to MH i2c: E2 0D 00 28 1F 80 0D 02 02 05 00 8C 80 BC 31 B0 00 00 74 [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 03 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 03 00 28 1F 00 90 00 BB [16:40:58]RAPDU: 90 00 [16:40:58]wFMCommunicate OK [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 0D 03 02 [16:40:58]Write to MH i2c: E2 08 00 29 1F 80 0D 03 02 00 00 00 00 C3 [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 0B 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 0B 00 29 1F 00 74 9A C9 40 F2 8C 51 E1 90 00 8B [16:40:58]RAPDU: 74 9A C9 40 F2 8C 51 E1 90 00 [16:40:58]wFMCommunicate OK [16:40:58]SAM_PROTO_SignData done [16:40:58]FM_MakeSignedData done [16:40:58]CreateOFDProtocolMessage [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 11 00 00 [16:40:58]Write to MH i2c: E2 08 00 2A 1F 80 11 00 00 00 00 00 00 C3 [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 17 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 17 00 2A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 16 [16:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:40:58]wFMCommunicate OK [16:40:58]CreateOFDProtocolMessage done [16:40:58]OFDSenderStorePacket 148912 [16:40:58]StoreOFDPacket docnum=148912 [16:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 33 62 07 01 F4 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 9A 43 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B0 45 02 00 35 04 06 00 95 8C 80 BC 31 B0 74 9A C9 40 F2 8C 51 E1 [16:40:58]CheckFolder [16:40:58]dirname=/storage/ofd_packets [16:40:58]CheckFolder done [16:40:58]ProducePacketName [16:40:58]name=ofd_packets/00148912 [16:40:58]NVStorageSaveData ofd_packets/00148912 [16:40:58]File name is /storage/ofd_packets/00148912 [16:40:58]Write 301 bytes [16:40:58]NVStorageSaveData done [16:40:58]OFDSenderStorePacket done [16:40:58]KKMCreateOFDPacket done [16:40:58]NVStorageSaveData kkm_last_timestamp [16:40:58]File name is /storage/kkm_last_timestamp [16:40:58]Write 4 bytes [16:40:58]NVStorageSaveData done [16:40:58]ExternCall_PrintAddStr [16:40:58]wPrintStart [16:40:58]Write to MH i2c: 01 00 00 2B 1F 4A [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: 01 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: 01 07 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: 01 07 00 2B 1F 00 00 00 00 00 FF 0F 5F [16:40:58]RasterBufferAndPrint [16:40:58]line Счет N : (1)979845 [16:40:58]line ИНН: 02508201610067 [16:40:58]line Контрольно-Кассовый Чек [16:40:58]line ПРОДАЖА [16:40:58]line ТРК (МРК, ГНК) : 22 [16:40:58]line Товар: 2710124130 [16:40:58]line Аи-92-К-5 [16:40:58]line 2.990 * 66.90 [16:40:58]line = 200.03 [16:40:58]line НДС 12% НСП 1% [16:40:58]line > о реализуемом товаре [16:40:58]line ОКРУГЛЕНИЕ: -0.03 [16:40:58]line ИТОГО: 200.00 [16:40:58]line Внесено: 200.00 [16:40:58]line СДАЧА: 0.00 [16:40:58]line НСП 1% : 1.77 [16:40:58]line НДС 12% : 21.24 [16:40:58]line Наличными: 200.00 [16:40:58]line Безнал.: 0.00 [16:40:58]line Место: АЗС № 68 "Партнер Нефть" [16:40:58]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:40:58]line СНО: Общий режим [16:40:58]line Чек 251 04.06.2024 16:40 [16:40:58]line Смена: 368 ФФД: 1.0 [16:40:58]line ЗНМ: 0300000035 [16:40:58]line РНМ: 0000000000092720 [16:40:58]line Версия ККМ: 001 [16:40:58]line ФМ: 0000000000875057 [16:40:58]line ФД: 148912 [16:40:58]line ФПД: 164430687777200 [16:40:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164058&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148912&fm=164430687777200&tin=02508201610067®Number=0000000000092720&sum=20000 [16:40:59]OFD Sender: Processing packet 148912 [packets to send 100, broken 99] [16:40:59]ProducePacketName [16:40:59]name=ofd_packets/00148912 [16:40:59]OFD Sender: To server: pG, [16:40:59]CommunicateWithHost lk.salyk.kg:30040 [16:40:59]ConnectInit lk.salyk.kg [16:40:59]written 0, free lines is 4095 [16:40:59]Connected sock=10 [16:40:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 33 62 07 01 F4 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 9A 43 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B0 45 02 00 35 04 06 00 95 8C 80 BC 31 B0 74 9A C9 40 F2 8C 51 E1 [16:40:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 52 93 47 00 FB 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B0 45 02 00 F4 03 04 00 BE EA 5E 66 B6 04 01 00 00 FA 89 F6 FE 8D AE 50 4D [16:40:59]CommunicateWithHost err = 0 [16:40:59]CheckOFDResponse [16:40:59]1017 (14) - 77093643461234 [16:40:59]1041 (16) - 0000000000875057 [16:40:59]1040 (4) - 148912 [16:40:59]1012 (4) - 04.06.2024 10:21 [16:40:59]1206 (1) - 0 [16:40:59]OFD Sender: Remove packet 148912 [16:40:59]ProducePacketName [16:40:59]name=ofd_packets/00148912 [16:40:59]NVStorageDeleteData [16:40:59]Write to MH i2c: 01 00 00 56 1F 75 [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: 01 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: 01 07 00 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: 01 07 00 56 1F 00 00 00 00 00 64 0C EC [16:40:59]RasterBufferAndPrint [16:40:59]line [16:40:59]line [16:40:59]line [16:40:59]line [16:40:59]line [16:40:59]written 0, free lines is 3176 [16:40:59]MH_Cut [16:40:59]Write to MH i2c: D1 01 00 5D 1F 01 4E [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: D1 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: D1 01 00 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: D1 01 00 5D 1F 00 4D [16:40:59]Write to MH i2c: 01 00 00 5E 1F 7D [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]OFD Sender: No OFD packet to send [16:41:00]*** Cut start [16:41:00]*** Partial cut [16:41:00]*** CUTSNS_PIN = 1 [16:41:00]*** CUTSNS_PIN = 0 [16:41:01]*** Brake cut motor [16:41:01]Read from MH i2c: 01 [16:41:01]MH_I2C_Read... [16:41:01]*** Stop cut motor [16:41:01]*** Cut end [16:41:01]Read from MH i2c: 01 07 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 5E 1F 00 00 00 00 00 FF 0F 92 [16:41:01]process_action close_receipt done [16:41:01]requested_data is exist [16:41:01]produce_requested_data [16:41:01]requested_item fm.sn is exist - process it [16:41:01]wFMCommunicate request_size=4 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 11 00 00 [16:41:01]Write to MH i2c: E2 08 00 5F 1F 80 11 00 00 00 00 00 00 F8 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:01]Read from MH i2c: E2 17 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 17 00 5F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4B [16:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:41:01]wFMCommunicate OK [16:41:01]requested_item fd.num is exist - process it [16:41:01]SAM_PROTO_GetFieldsCounters [16:41:01]wFMCommunicate request_size=4 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 13 00 00 [16:41:01]Write to MH i2c: E2 08 00 60 1F 80 13 00 00 00 00 00 00 FB [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 62 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 62 00 60 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B0 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [16:41:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B0 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:01]wFMCommunicate OK [16:41:01]SAM_PROTO_GetFieldsCounters done [16:41:01]requested_item shift.num is exist - process it [16:41:01]requested_item shift.opened is exist - process it [16:41:01]req_shift_opened [16:41:01]FM_GetShiftState [16:41:01]SAM_PROTO_GetShiftState [16:41:01]wFMCommunicate request_size=4 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 13 01 00 [16:41:01]Write to MH i2c: E2 08 00 61 1F 80 13 01 00 00 00 00 00 FD [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 0E 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 0E 00 61 1F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C0 [16:41:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:41:01]wFMCommunicate OK [16:41:01]SAM_PROTO_GetShiftState done [16:41:01]FM_GetShiftState done [16:41:01]req_shift_opened done [16:41:01]requested_item shift.open_date is exist - process it [16:41:01]req_shift_open_date [16:41:01]req_shift_open_date done [16:41:01]produce_requested_data done [16:41:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148912,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:41:01]process_action_free close_receipt [16:41:01]json_value_free [16:41:01]json_value_free done [16:41:01]process_json_proto returns [16:41:01]Send response to host [16:41:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148912,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:41:01]free response buf [16:41:01]execute_script done [16:41:01]execute_script returns [16:41:01]free content buf [16:41:01]Sock 7.Close socket [16:41:01]Sock 7.Thread stoped [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43: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:12]accept exits with 9 [16:44:12]New connection [16:44:12]New thread 3067407716 created [16:44:12]Thread 3067264356 joined [16:44:12]Waiting for new connection... [16:44:12] Sock 9.Parse request [16:44:12]Sock 9.Check first char [16:44:12]Sock 9.First char is OK [16:44:12]request: POST /json_proto HTTP/1.0 [16:44:12]Method: POST [16:44:12]URL: /json_proto [16:44:12]Method is POST - this is cgi request [16:44:12]url: /json_proto [16:44:12]query_string will be loaded in cgi processing [16:44:12]execute_cgi json_proto POST (null) [16:44:12]execute_cgi path=json_proto method=POST [16:44:12]POST find Content-Length [16:44:12]Host: 172.17.38.4:8080 [16:44:12]Content-Length: 677 [16:44:12]Content-Type: application/json [16:44:12] [16:44:12]POST finish read [16:44:12]Found Content-Length = 677 [16:44:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:12]execute_script... [16:44: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)979846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:12]POST & json_proto [16:44:12]process_json_proto [16:44:12]json parsed OK: [16:44:12]protocol is kg_v1.0 [16:44:12]action value=close_receipt [16:44:12]process_action close_receipt [16:44:12]cmd_close_receipt [16:44:12]MH_GetDate [16:44:12]Write to MH i2c: F0 00 00 62 1F 70 [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: F0 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: F0 09 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: F0 09 00 62 1F 00 5E 44 5F 66 CC 51 87 64 E8 [16:44:12]GetLastDocTimeStamp 1717519258 [16:44:12]current date 1717519454 [16:44:12]FM_GetShiftState [16:44:12]SAM_PROTO_GetShiftState [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 13 01 00 [16:44:12]Write to MH i2c: E2 08 00 63 1F 80 13 01 00 00 00 00 00 FF [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 0E 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 0E 00 63 1F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C2 [16:44:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:44:12]wFMCommunicate OK [16:44:12]SAM_PROTO_GetShiftState done [16:44:12]FM_GetShiftState done [16:44:12]opened in 1717460629 [16:44:12]opened+sec_in_day 1717547029 [16:44:12]quantity*price = 47030 [16:44:12]sum+1 = 47032 [16:44:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.94 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 252 04.06.2024 16:44 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148913 ФПД: 272514289970344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164414&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148913&fm=272514289970344&tin=02508201610067®Number=0000000000092720&sum=47000 [16:44:13]StoreToDocumentArchive [16:44:13]shift 368 fd 148913 [16:44:13]save to /storage/0368/doc_00148913 [16:44:13]save last doc name /storage/0368/doc_00148913 to /storage/kkm_last_doc_name [16:44:13]save OK [16:44:13]Clear old archive folders... [16:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:13]tlvbuf is 00500080 [16:44:13]SAM_PROTO_ClearQueue [16:44:13]wFMCommunicate request_size=4 [16:44:13]MH_SAM_APDU [16:44:13]CAPDU: 80 09 00 00 [16:44:13]Write to MH i2c: E2 08 00 70 1F 80 09 00 00 00 00 00 00 01 [16:44:13]Write i2c OK [16:44:13]MH_I2C_Read... [16:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:13]Read from MH i2c: E2 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: E2 03 00 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: E2 03 00 70 1F 00 90 00 03 [16:44:13]RAPDU: 90 00 [16:44:13]wFMCommunicate OK [16:44:13]SAM_PROTO_ClearQueue done [16:44:13]KKMCreateOFDPacket [16:44:13]OFDProtocolAddRootSTLVToBuf [16:44:13]FM_MakeSignedData [16:44:13]FM_MakeSignedData [16:44:13]SAM_PROTO_SignData [16:44:13]wFMCommunicate request_size=4 [16:44:13]MH_SAM_APDU [16:44:13]CAPDU: 80 0D 01 02 [16:44:13]Write to MH i2c: E2 08 00 71 1F 80 0D 01 02 00 00 00 00 09 [16:44:13]Write i2c OK [16:44:13]MH_I2C_Read... [16:44:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:13]Read from MH i2c: E2 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: E2 03 00 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: E2 03 00 71 1F 00 90 00 04 [16:44:13]RAPDU: 90 00 [16:44:13]wFMCommunicate OK [16:44:13]wFMCommunicate request_size=255 [16:44:13]MH_SAM_APDU [16:44:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E 44 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B1 45 02 00 35 04 06 00 F7 [16:44:13]Write to MH i2c: E2 02 01 72 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E 44 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B1 45 02 00 35 04 06 00 F7 00 00 E0 [16:44:13]Write i2c OK [16:44:13]MH_I2C_Read... [16:44:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:14]Read from MH i2c: E2 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 03 00 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 03 00 72 1F 00 90 00 05 [16:44:14]RAPDU: 90 00 [16:44:14]wFMCommunicate OK [16:44:14]wFMCommunicate request_size=10 [16:44:14]MH_SAM_APDU [16:44:14]CAPDU: 80 0D 02 02 05 D9 AD 73 2C A8 [16:44:14]Write to MH i2c: E2 0D 00 73 1F 80 0D 02 02 05 00 D9 AD 73 2C A8 00 00 E3 [16:44:14]Write i2c OK [16:44:14]MH_I2C_Read... [16:44:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:14]Read from MH i2c: E2 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 03 00 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 03 00 73 1F 00 90 00 06 [16:44:14]RAPDU: 90 00 [16:44:14]wFMCommunicate OK [16:44:14]wFMCommunicate request_size=4 [16:44:14]MH_SAM_APDU [16:44:14]CAPDU: 80 0D 03 02 [16:44:14]Write to MH i2c: E2 08 00 74 1F 80 0D 03 02 00 00 00 00 0E [16:44:14]Write i2c OK [16:44:14]MH_I2C_Read... [16:44:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:14]Read from MH i2c: E2 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 0B 00 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 0B 00 74 1F 00 3D BA 60 1F 62 45 45 AA 90 00 1B [16:44:14]RAPDU: 3D BA 60 1F 62 45 45 AA 90 00 [16:44:14]wFMCommunicate OK [16:44:14]SAM_PROTO_SignData done [16:44:14]FM_MakeSignedData done [16:44:14]CreateOFDProtocolMessage [16:44:14]wFMCommunicate request_size=4 [16:44:14]MH_SAM_APDU [16:44:14]CAPDU: 80 11 00 00 [16:44:14]Write to MH i2c: E2 08 00 75 1F 80 11 00 00 00 00 00 00 0E [16:44:14]Write i2c OK [16:44:14]MH_I2C_Read... [16:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:14]Read from MH i2c: E2 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 17 00 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 17 00 75 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 61 [16:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:44:14]wFMCommunicate OK [16:44:14]CreateOFDProtocolMessage done [16:44:14]OFDSenderStorePacket 148913 [16:44:14]StoreOFDPacket docnum=148913 [16:44:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 31 1D 07 01 EE BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E 44 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B1 45 02 00 35 04 06 00 F7 D9 AD 73 2C A8 3D BA 60 1F 62 45 45 AA [16:44:14]CheckFolder [16:44:14]dirname=/storage/ofd_packets [16:44:14]CheckFolder done [16:44:14]ProducePacketName [16:44:14]name=ofd_packets/00148913 [16:44:14]NVStorageSaveData ofd_packets/00148913 [16:44:14]File name is /storage/ofd_packets/00148913 [16:44:14]Write 301 bytes [16:44:14]NVStorageSaveData done [16:44:14]OFDSenderStorePacket done [16:44:14]KKMCreateOFDPacket done [16:44:14]NVStorageSaveData kkm_last_timestamp [16:44:14]File name is /storage/kkm_last_timestamp [16:44:14]Write 4 bytes [16:44:14]NVStorageSaveData done [16:44:14]ExternCall_PrintAddStr [16:44:14]wPrintStart [16:44:14]Write to MH i2c: 01 00 00 76 1F 95 [16:44:14]Write i2c OK [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: 01 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: 01 07 00 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: 01 07 00 76 1F 00 00 00 00 00 FF 0F AA [16:44:14]RasterBufferAndPrint [16:44:14]line Счет N : (1)979846 [16:44:14]line ИНН: 02508201610067 [16:44:14]line Контрольно-Кассовый Чек [16:44:14]line ПРОДАЖА [16:44:14]line ТРК (МРК, ГНК) : 41 [16:44:14]line Товар: 2710124130 [16:44:14]line Аи-92-К-5 [16:44:14]line 7.030 * 66.90 [16:44:14]line = 470.31 [16:44:14]line НДС 12% НСП 1% [16:44:14]line > о реализуемом товаре [16:44:14]line ОКРУГЛЕНИЕ: -0.31 [16:44:14]line ИТОГО: 470.00 [16:44:14]line Внесено: 470.00 [16:44:14]line СДАЧА: 0.00 [16:44:14]line НСП 1% : 4.16 [16:44:14]line НДС 12% : 49.94 [16:44:14]line Наличными: 470.00 [16:44:14]line Безнал.: 0.00 [16:44:14]line Место: АЗС № 68 "Партнер Нефть" [16:44:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:44:14]line СНО: Общий режим [16:44:14]line Чек 252 04.06.2024 16:44 [16:44:14]line Смена: 368 ФФД: 1.0 [16:44:14]line ЗНМ: 0300000035 [16:44:14]line РНМ: 0000000000092720 [16:44:14]line Версия ККМ: 001 [16:44:14]line ФМ: 0000000000875057 [16:44:14]line ФД: 148913 [16:44:14]line ФПД: 272514289970344 [16:44:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164414&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148913&fm=272514289970344&tin=02508201610067®Number=0000000000092720&sum=47000 [16:44:14]OFD Sender: Processing packet 148913 [packets to send 100, broken 99] [16:44:14]ProducePacketName [16:44:14]name=ofd_packets/00148913 [16:44:14]OFD Sender: To server: pG, [16:44:14]CommunicateWithHost lk.salyk.kg:30040 [16:44:14]ConnectInit lk.salyk.kg [16:44:14]written 0, free lines is 4095 [16:44:14]Connected sock=7 [16:44:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 31 1D 07 01 EE BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E 44 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B1 45 02 00 35 04 06 00 F7 D9 AD 73 2C A8 3D BA 60 1F 62 45 45 AA [16:44:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3E 12 47 00 87 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B1 45 02 00 F4 03 04 00 81 EB 5E 66 B6 04 01 00 00 FE 96 CA BE E6 FF 5B 2B [16:44:14]CommunicateWithHost err = 0 [16:44:14]CheckOFDResponse [16:44:14]1017 (14) - 77093643461234 [16:44:14]1041 (16) - 0000000000875057 [16:44:14]1040 (4) - 148913 [16:44:14]1012 (4) - 04.06.2024 10:25 [16:44:14]1206 (1) - 0 [16:44:14]OFD Sender: Remove packet 148913 [16:44:14]ProducePacketName [16:44:14]name=ofd_packets/00148913 [16:44:14]NVStorageDeleteData [16:44:14]Write to MH i2c: 01 00 00 A1 1F C0 [16:44:14]Write i2c OK [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: 01 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: 01 07 00 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: 01 07 00 A1 1F 00 00 00 00 00 64 0C 37 [16:44:14]RasterBufferAndPrint [16:44:14]line [16:44:14]line [16:44:14]line [16:44:14]line [16:44:14]line [16:44:14]written 0, free lines is 3176 [16:44:15]MH_Cut [16:44:15]Write to MH i2c: D1 01 00 A8 1F 01 99 [16:44:15]Write i2c OK [16:44:15]MH_I2C_Read... [16:44:15]Read from MH i2c: D1 [16:44:15]MH_I2C_Read... [16:44:15]Read from MH i2c: D1 01 00 [16:44:15]MH_I2C_Read... [16:44:15]Read from MH i2c: D1 01 00 A8 1F 00 98 [16:44:15]Write to MH i2c: 01 00 00 A9 1F C8 [16:44:15]Write i2c OK [16:44:15]MH_I2C_Read... [16:44:15]OFD Sender: No OFD packet to send [16:44:16]*** Cut start [16:44:16]*** Partial cut [16:44:16]*** CUTSNS_PIN = 1 [16:44:16]*** CUTSNS_PIN = 0 [16:44:16]*** Brake cut motor [16:44:16]Read from MH i2c: 01 [16:44:16]MH_I2C_Read... [16:44:16]*** Stop cut motor [16:44:16]*** Cut end [16:44:16]Read from MH i2c: 01 07 00 [16:44:16]MH_I2C_Read... [16:44:16]Read from MH i2c: 01 07 00 A9 1F 00 00 00 00 00 FF 0F DD [16:44:16]process_action close_receipt done [16:44:16]requested_data is exist [16:44:16]produce_requested_data [16:44:16]requested_item fm.sn is exist - process it [16:44:16]wFMCommunicate request_size=4 [16:44:16]MH_SAM_APDU [16:44:16]CAPDU: 80 11 00 00 [16:44:16]Write to MH i2c: E2 08 00 AA 1F 80 11 00 00 00 00 00 00 43 [16:44:16]Write i2c OK [16:44:16]MH_I2C_Read... [16:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:16]Read from MH i2c: E2 [16:44:16]MH_I2C_Read... [16:44:16]Read from MH i2c: E2 17 00 [16:44:16]MH_I2C_Read... [16:44:16]Read from MH i2c: E2 17 00 AA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 96 [16:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:44:16]wFMCommunicate OK [16:44:16]requested_item fd.num is exist - process it [16:44:16]SAM_PROTO_GetFieldsCounters [16:44:16]wFMCommunicate request_size=4 [16:44:16]MH_SAM_APDU [16:44:16]CAPDU: 80 13 00 00 [16:44:16]Write to MH i2c: E2 08 00 AB 1F 80 13 00 00 00 00 00 00 46 [16:44:16]Write i2c OK [16:44:16]MH_I2C_Read... [16:44:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:17]Read from MH i2c: E2 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: E2 62 00 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: E2 62 00 AB 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [16:44:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:17]wFMCommunicate OK [16:44:17]SAM_PROTO_GetFieldsCounters done [16:44:17]requested_item shift.num is exist - process it [16:44:17]requested_item shift.opened is exist - process it [16:44:17]req_shift_opened [16:44:17]FM_GetShiftState [16:44:17]SAM_PROTO_GetShiftState [16:44:17]wFMCommunicate request_size=4 [16:44:17]MH_SAM_APDU [16:44:17]CAPDU: 80 13 01 00 [16:44:17]Write to MH i2c: E2 08 00 AC 1F 80 13 01 00 00 00 00 00 48 [16:44:17]Write i2c OK [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: E2 [16:44:17]MH_I2C_Read... [16:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:17]Read from MH i2c: E2 0E 00 [16:44:17]MH_I2C_Read... [16:44:17]Read from MH i2c: E2 0E 00 AC 1F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0B [16:44:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:44:17]wFMCommunicate OK [16:44:17]SAM_PROTO_GetShiftState done [16:44:17]FM_GetShiftState done [16:44:17]req_shift_opened done [16:44:17]requested_item shift.open_date is exist - process it [16:44:17]req_shift_open_date [16:44:17]req_shift_open_date done [16:44:17]produce_requested_data done [16:44:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148913,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:44:17]process_action_free close_receipt [16:44:17]json_value_free [16:44:17]json_value_free done [16:44:17]process_json_proto returns [16:44:17]Send response to host [16:44:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148913,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:44:17]free response buf [16:44:17]execute_script done [16:44:17]execute_script returns [16:44:17]free content buf [16:44:17]Sock 9.Close socket [16:44:17]Sock 9.Thread stoped [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]accept exits with 10 [16:46:10]New connection [16:46:10]New thread 3067264356 created [16:46:10]Thread 3067407716 joined [16:46:10]Waiting for new connection... [16:46:10] Sock 10.Parse request [16:46:10]Sock 10.Check first char [16:46:10]Sock 10.First char is OK [16:46:10]request: POST /json_proto HTTP/1.0 [16:46:10]Method: POST [16:46:10]URL: /json_proto [16:46:10]Method is POST - this is cgi request [16:46:10]url: /json_proto [16:46:10]query_string will be loaded in cgi processing [16:46:10]execute_cgi json_proto POST (null) [16:46:10]execute_cgi path=json_proto method=POST [16:46:10]POST find Content-Length [16:46:10]Host: 172.17.38.4:8080 [16:46:10]Content-Length: 674 [16:46:10]Content-Type: application/json [16:46:10] [16:46:10]POST finish read [16:46:10]Found Content-Length = 674 [16:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.990, "sum" : 728.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 728.00, "total" : 728.00, "payments": [ { "type": 0, "sum" : 728.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:10]execute_script... [16:46: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)979847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.990, "sum" : 728.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 728.00, "total" : 728.00, "payments": [ { "type": 0, "sum" : 728.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:10]POST & json_proto [16:46:10]process_json_proto [16:46:10]json parsed OK: [16:46:10]protocol is kg_v1.0 [16:46:10]action value=close_receipt [16:46:10]process_action close_receipt [16:46:10]cmd_close_receipt [16:46:10]MH_GetDate [16:46:10]Write to MH i2c: F0 00 00 AD 1F BB [16:46:10]Write i2c OK [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: F0 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: F0 09 00 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: F0 09 00 AD 1F 00 D4 44 5F 66 CC 51 87 64 A9 [16:46:10]GetLastDocTimeStamp 1717519454 [16:46:10]current date 1717519572 [16:46:10]FM_GetShiftState [16:46:10]SAM_PROTO_GetShiftState [16:46:10]wFMCommunicate request_size=4 [16:46:10]MH_SAM_APDU [16:46:10]CAPDU: 80 13 01 00 [16:46:10]Write to MH i2c: E2 08 00 AE 1F 80 13 01 00 00 00 00 00 4A [16:46:10]Write i2c OK [16:46:10]MH_I2C_Read... [16:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:10]Read from MH i2c: E2 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 0E 00 [16:46:10]MH_I2C_Read... [16:46:10]Read from MH i2c: E2 0E 00 AE 1F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0D [16:46:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:46:10]wFMCommunicate OK [16:46:10]SAM_PROTO_GetShiftState done [16:46:10]FM_GetShiftState done [16:46:10]opened in 1717460629 [16:46:10]opened+sec_in_day 1717547029 [16:46:10]quantity*price = 72827 [16:46:10]sum+1 = 72828 [16:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 728.00 Внесено: 728.00 СДАЧА: 0.00 НСП 1% : 6.44 НДС 12% : 77.34 Наличными: 728.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 253 04.06.2024 16:46 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148914 ФПД: 262386491837451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164612&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148914&fm=262386491837451&tin=02508201610067®Number=0000000000092720&sum=72800 [16:46:11]StoreToDocumentArchive [16:46:11]shift 368 fd 148914 [16:46:11]save to /storage/0368/doc_00148914 [16:46:11]save last doc name /storage/0368/doc_00148914 to /storage/kkm_last_doc_name [16:46:11]save OK [16:46:11]Clear old archive folders... [16:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:46:11]tlvbuf is 00500080 [16:46:11]SAM_PROTO_ClearQueue [16:46:11]wFMCommunicate request_size=4 [16:46:11]MH_SAM_APDU [16:46:11]CAPDU: 80 09 00 00 [16:46:11]Write to MH i2c: E2 08 00 BB 1F 80 09 00 00 00 00 00 00 4C [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:11]Read from MH i2c: E2 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 03 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 03 00 BB 1F 00 90 00 4E [16:46:11]RAPDU: 90 00 [16:46:11]wFMCommunicate OK [16:46:11]SAM_PROTO_ClearQueue done [16:46:11]KKMCreateOFDPacket [16:46:11]OFDProtocolAddRootSTLVToBuf [16:46:11]FM_MakeSignedData [16:46:11]FM_MakeSignedData [16:46:11]SAM_PROTO_SignData [16:46:11]wFMCommunicate request_size=4 [16:46:11]MH_SAM_APDU [16:46:11]CAPDU: 80 0D 01 02 [16:46:11]Write to MH i2c: E2 08 00 BC 1F 80 0D 01 02 00 00 00 00 54 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:11]Read from MH i2c: E2 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 03 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 03 00 BC 1F 00 90 00 4F [16:46:11]RAPDU: 90 00 [16:46:11]wFMCommunicate OK [16:46:11]wFMCommunicate request_size=255 [16:46:11]MH_SAM_APDU [16:46:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1E 00 00 00 00 07 04 06 00 60 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 FD 00 00 00 F4 03 04 00 D4 44 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B2 45 02 00 35 04 06 00 EE A3 9D A3 [16:46:11]Write to MH i2c: E2 02 01 BD 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1E 00 00 00 00 07 04 06 00 60 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 FD 00 00 00 F4 03 04 00 D4 44 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B2 45 02 00 35 04 06 00 EE A3 9D A3 00 00 F0 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:11]Read from MH i2c: E2 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 03 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 03 00 BD 1F 00 90 00 50 [16:46:11]RAPDU: 90 00 [16:46:11]wFMCommunicate OK [16:46:11]wFMCommunicate request_size=7 [16:46:11]MH_SAM_APDU [16:46:11]CAPDU: 80 0D 02 02 02 CC 0B [16:46:11]Write to MH i2c: E2 0A 00 BE 1F 80 0D 02 02 02 00 CC 0B 00 00 32 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:11]Read from MH i2c: E2 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 03 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 03 00 BE 1F 00 90 00 51 [16:46:11]RAPDU: 90 00 [16:46:11]wFMCommunicate OK [16:46:11]wFMCommunicate request_size=4 [16:46:11]MH_SAM_APDU [16:46:11]CAPDU: 80 0D 03 02 [16:46:11]Write to MH i2c: E2 08 00 BF 1F 80 0D 03 02 00 00 00 00 59 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:11]Read from MH i2c: E2 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 0B 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 0B 00 BF 1F 00 58 B1 91 7E AE EC 74 B8 90 00 38 [16:46:11]RAPDU: 58 B1 91 7E AE EC 74 B8 90 00 [16:46:11]wFMCommunicate OK [16:46:11]SAM_PROTO_SignData done [16:46:11]FM_MakeSignedData done [16:46:11]CreateOFDProtocolMessage [16:46:11]wFMCommunicate request_size=4 [16:46:11]MH_SAM_APDU [16:46:11]CAPDU: 80 11 00 00 [16:46:11]Write to MH i2c: E2 08 00 C0 1F 80 11 00 00 00 00 00 00 59 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:11]Read from MH i2c: E2 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 17 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 17 00 C0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AC [16:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:46:11]wFMCommunicate OK [16:46:11]CreateOFDProtocolMessage done [16:46:11]OFDSenderStorePacket 148914 [16:46:11]StoreOFDPacket docnum=148914 [16:46:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 81 A7 04 01 68 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1E 00 00 00 00 07 04 06 00 60 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 FD 00 00 00 F4 03 04 00 D4 44 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B2 45 02 00 35 04 06 00 EE A3 9D A3 CC 0B 58 B1 91 7E AE EC 74 B8 [16:46:11]CheckFolder [16:46:11]dirname=/storage/ofd_packets [16:46:11]CheckFolder done [16:46:11]ProducePacketName [16:46:11]name=ofd_packets/00148914 [16:46:11]NVStorageSaveData ofd_packets/00148914 [16:46:11]File name is /storage/ofd_packets/00148914 [16:46:11]Write 298 bytes [16:46:11]NVStorageSaveData done [16:46:11]OFDSenderStorePacket done [16:46:11]KKMCreateOFDPacket done [16:46:11]NVStorageSaveData kkm_last_timestamp [16:46:11]File name is /storage/kkm_last_timestamp [16:46:11]Write 4 bytes [16:46:11]NVStorageSaveData done [16:46:11]ExternCall_PrintAddStr [16:46:11]wPrintStart [16:46:11]Write to MH i2c: 01 00 00 C1 1F E0 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: 01 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: 01 07 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: 01 07 00 C1 1F 00 00 00 00 00 FF 0F F5 [16:46:11]RasterBufferAndPrint [16:46:11]line Счет N : (1)979847 [16:46:11]line ИНН: 02508201610067 [16:46:11]line Контрольно-Кассовый Чек [16:46:11]line ПРОДАЖА [16:46:11]line ТРК (МРК, ГНК) : 51 [16:46:11]line Товар: 2710194210 [16:46:11]line ДТ-К-5 [16:46:11]line 9.990 * 72.90 [16:46:11]line = 728.27 [16:46:11]line НДС 12% НСП 1% [16:46:11]line > о реализуемом товаре [16:46:11]line ОКРУГЛЕНИЕ: -0.27 [16:46:11]line ИТОГО: 728.00 [16:46:11]line Внесено: 728.00 [16:46:11]line СДАЧА: 0.00 [16:46:11]line НСП 1% : 6.44 [16:46:11]line НДС 12% : 77.34 [16:46:11]line Наличными: 728.00 [16:46:11]line Безнал.: 0.00 [16:46:11]line Место: АЗС № 68 "Партнер Нефть" [16:46:11]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:46:11]line СНО: Общий режим [16:46:11]line Чек 253 04.06.2024 16:46 [16:46:11]line Смена: 368 ФФД: 1.0 [16:46:11]line ЗНМ: 0300000035 [16:46:11]line РНМ: 0000000000092720 [16:46:11]line Версия ККМ: 001 [16:46:11]line ФМ: 0000000000875057 [16:46:11]line ФД: 148914 [16:46:11]line ФПД: 262386491837451 [16:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164612&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148914&fm=262386491837451&tin=02508201610067®Number=0000000000092720&sum=72800 [16:46:12]OFD Sender: Processing packet 148914 [packets to send 100, broken 99] [16:46:12]ProducePacketName [16:46:12]name=ofd_packets/00148914 [16:46:12]OFD Sender: To server: pG, [16:46:12]CommunicateWithHost lk.salyk.kg:30040 [16:46:12]ConnectInit lk.salyk.kg [16:46:12]written 0, free lines is 4095 [16:46:12]Connected sock=9 [16:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 81 A7 04 01 68 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1E 00 00 00 00 07 04 06 00 60 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 FD 00 00 00 F4 03 04 00 D4 44 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B2 45 02 00 35 04 06 00 EE A3 9D A3 CC 0B 58 B1 91 7E AE EC 74 B8 [16:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E4 20 47 00 19 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 38 37 35 30 35 37 10 04 04 00 B2 45 02 00 F4 03 04 00 F7 EB 5E 66 B6 04 01 00 00 71 6E E3 7D F7 36 C4 9F [16:46:12]CommunicateWithHost err = 0 [16:46:12]CheckOFDResponse [16:46:12]1017 (14) - 77093643461234 [16:46:12]1041 (16) - 0000000000875057 [16:46:12]1040 (4) - 148914 [16:46:12]1012 (4) - 04.06.2024 10:27 [16:46:12]1206 (1) - 0 [16:46:12]OFD Sender: Remove packet 148914 [16:46:12]ProducePacketName [16:46:12]name=ofd_packets/00148914 [16:46:12]NVStorageDeleteData [16:46:12]Write to MH i2c: 01 00 00 EC 1F 0B [16:46:12]Write i2c OK [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: 01 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: 01 07 00 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: 01 07 00 EC 1F 00 00 00 00 00 61 0C 7F [16:46:12]RasterBufferAndPrint [16:46:12]line [16:46:12]line [16:46:12]line [16:46:12]line [16:46:12]line [16:46:12]written 0, free lines is 3173 [16:46:12]MH_Cut [16:46:12]Write to MH i2c: D1 01 00 F3 1F 01 E4 [16:46:12]Write i2c OK [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: D1 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: D1 01 00 [16:46:12]MH_I2C_Read... [16:46:12]Read from MH i2c: D1 01 00 F3 1F 00 E3 [16:46:12]Write to MH i2c: 01 00 00 F4 1F 13 [16:46:12]Write i2c OK [16:46:12]MH_I2C_Read... [16:46:13]OFD Sender: No OFD packet to send [16:46:13]*** Cut start [16:46:13]*** Partial cut [16:46:13]*** CUTSNS_PIN = 1 [16:46:14]*** CUTSNS_PIN = 0 [16:46:14]*** Brake cut motor [16:46:14]Read from MH i2c: 01 [16:46:14]MH_I2C_Read... [16:46:14]*** Stop cut motor [16:46:14]*** Cut end [16:46:14]Read from MH i2c: 01 07 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: 01 07 00 F4 1F 00 00 00 00 00 FF 0F 28 [16:46:14]process_action close_receipt done [16:46:14]requested_data is exist [16:46:14]produce_requested_data [16:46:14]requested_item fm.sn is exist - process it [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 11 00 00 [16:46:14]Write to MH i2c: E2 08 00 F5 1F 80 11 00 00 00 00 00 00 8E [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 17 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 17 00 F5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E1 [16:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:46:14]wFMCommunicate OK [16:46:14]requested_item fd.num is exist - process it [16:46:14]SAM_PROTO_GetFieldsCounters [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 13 00 00 [16:46:14]Write to MH i2c: E2 08 00 F6 1F 80 13 00 00 00 00 00 00 91 [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 62 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 62 00 F6 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [16:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:14]wFMCommunicate OK [16:46:14]SAM_PROTO_GetFieldsCounters done [16:46:14]requested_item shift.num is exist - process it [16:46:14]requested_item shift.opened is exist - process it [16:46:14]req_shift_opened [16:46:14]FM_GetShiftState [16:46:14]SAM_PROTO_GetShiftState [16:46:14]wFMCommunicate request_size=4 [16:46:14]MH_SAM_APDU [16:46:14]CAPDU: 80 13 01 00 [16:46:14]Write to MH i2c: E2 08 00 F7 1F 80 13 01 00 00 00 00 00 93 [16:46:14]Write i2c OK [16:46:14]MH_I2C_Read... [16:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:14]Read from MH i2c: E2 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 0E 00 [16:46:14]MH_I2C_Read... [16:46:14]Read from MH i2c: E2 0E 00 F7 1F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 56 [16:46:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:46:14]wFMCommunicate OK [16:46:14]SAM_PROTO_GetShiftState done [16:46:14]FM_GetShiftState done [16:46:14]req_shift_opened done [16:46:14]requested_item shift.open_date is exist - process it [16:46:14]req_shift_open_date [16:46:14]req_shift_open_date done [16:46:14]produce_requested_data done [16:46:14]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148914,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:46:14]process_action_free close_receipt [16:46:14]json_value_free [16:46:14]json_value_free done [16:46:14]process_json_proto returns [16:46:14]Send response to host [16:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148914,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:46:14]free response buf [16:46:14]execute_script done [16:46:14]execute_script returns [16:46:14]free content buf [16:46:14]Sock 10.Close socket [16:46:14]Sock 10.Thread stoped [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:50]accept exits with 7 [16:47:50]New connection [16:47:50]New thread 3067407716 created [16:47:50]Thread 3067264356 joined [16:47:50]Waiting for new connection... [16:47:50] Sock 7.Parse request [16:47:50]Sock 7.Check first char [16:47:50]Sock 7.First char is OK [16:47:50]request: POST /json_proto HTTP/1.0 [16:47:50]Method: POST [16:47:50]URL: /json_proto [16:47:50]Method is POST - this is cgi request [16:47:50]url: /json_proto [16:47:50]query_string will be loaded in cgi processing [16:47:50]execute_cgi json_proto POST (null) [16:47:50]execute_cgi path=json_proto method=POST [16:47:50]POST find Content-Length [16:47:50]Host: 172.17.38.4:8080 [16:47:50]Content-Length: 597 [16:47:50]Content-Type: application/json [16:47:50] [16:47:50]POST finish read [16:47:50]Found Content-Length = 597 [16:47:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11906", "tax_sys" : 0, "items" : [ { "code": "42203223", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles 2\u04321", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:50]execute_script... [16:47: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 : (3)11906", "tax_sys" : 0, "items" : [ { "code": "42203223", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles 2\u04321", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:50]POST & json_proto [16:47:50]process_json_proto [16:47:50]json parsed OK: [16:47:50]protocol is kg_v1.0 [16:47:50]action value=close_receipt [16:47:50]process_action close_receipt [16:47:50]cmd_close_receipt [16:47:50]MH_GetDate [16:47:50]Write to MH i2c: F0 00 00 F8 1F 06 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: F0 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: F0 09 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: F0 09 00 F8 1F 00 38 45 5F 66 CC 51 87 64 59 [16:47:50]GetLastDocTimeStamp 1717519572 [16:47:50]current date 1717519672 [16:47:50]FM_GetShiftState [16:47:50]SAM_PROTO_GetShiftState [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 13 01 00 [16:47:50]Write to MH i2c: E2 08 00 F9 1F 80 13 01 00 00 00 00 00 95 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 0E 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 0E 00 F9 1F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 58 [16:47:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:47:50]wFMCommunicate OK [16:47:50]SAM_PROTO_GetShiftState done [16:47:50]FM_GetShiftState done [16:47:50]opened in 1717460629 [16:47:50]opened+sec_in_day 1717547029 [16:47:50]quantity*price = 5100 [16:47:50]sum+1 = 5101 [16:47:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 51.00 НСП 1% : 0.45 НДС 12% : 5.42 Наличными: 51.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 254 04.06.2024 16:47 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148915 ФПД: 122117982540577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164752&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148915&fm=122117982540577&tin=02508201610067®Number=0000000000092720&sum=5100 0 [16:47:51]StoreToDocumentArchive [16:47:51]shift 368 fd 148915 [16:47:51]save to /storage/0368/doc_00148915 [16:47:51]save last doc name /storage/0368/doc_00148915 to /storage/kkm_last_doc_name [16:47:51]save OK [16:47:51]Clear old archive folders... [16:47:51]ProcessDocumentItem done err = 0, tmpTLVsize=261 [16:47:51]tlvbuf is B6FC4920 [16:47:51]SAM_PROTO_ClearQueue [16:47:51]wFMCommunicate request_size=4 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 09 00 00 [16:47:51]Write to MH i2c: E2 08 00 06 20 80 09 00 00 00 00 00 00 98 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:51]Read from MH i2c: E2 03 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 03 00 06 20 00 90 00 9A [16:47:51]RAPDU: 90 00 [16:47:51]wFMCommunicate OK [16:47:51]SAM_PROTO_ClearQueue done [16:47:51]KKMCreateOFDPacket [16:47:51]OFDProtocolAddRootSTLVToBuf [16:47:51]FM_MakeSignedData [16:47:51]FM_MakeSignedData [16:47:51]SAM_PROTO_SignData [16:47:51]wFMCommunicate request_size=4 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 0D 01 02 [16:47:51]Write to MH i2c: E2 08 00 07 20 80 0D 01 02 00 00 00 00 A0 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 03 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 03 00 07 20 00 90 00 9B [16:47:51]RAPDU: 90 00 [16:47:51]wFMCommunicate OK [16:47:51]wFMCommunicate request_size=255 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 32 32 30 33 32 32 33 06 04 18 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 32 D0 B2 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 38 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 [16:47:51]Write to MH i2c: E2 02 01 08 20 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 32 32 30 33 32 32 33 06 04 18 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 32 D0 B2 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 38 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 46 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 03 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 03 00 08 20 00 90 00 9C [16:47:51]RAPDU: 90 00 [16:47:51]wFMCommunicate OK [16:47:51]wFMCommunicate request_size=20 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 0D 02 02 0F 00 B3 45 02 00 35 04 06 00 6F 10 CE F8 53 21 [16:47:51]Write to MH i2c: E2 17 00 09 20 80 0D 02 02 0F 00 00 B3 45 02 00 35 04 06 00 6F 10 CE F8 53 21 00 00 B3 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 09 20 00 90 00 9D [16:47:52]RAPDU: 90 00 [16:47:52]wFMCommunicate OK [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 0D 03 02 [16:47:52]Write to MH i2c: E2 08 00 0A 20 80 0D 03 02 00 00 00 00 A5 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 0B 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 0B 00 0A 20 00 23 14 BA E7 3D 90 33 F9 90 00 77 [16:47:52]RAPDU: 23 14 BA E7 3D 90 33 F9 90 00 [16:47:52]wFMCommunicate OK [16:47:52]SAM_PROTO_SignData done [16:47:52]FM_MakeSignedData done [16:47:52]CreateOFDProtocolMessage [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 11 00 00 [16:47:52]Write to MH i2c: E2 08 00 0B 20 80 11 00 00 00 00 00 00 A5 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 17 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 17 00 0B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F8 [16:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:47:52]wFMCommunicate OK [16:47:52]CreateOFDProtocolMessage done [16:47:52]OFDSenderStorePacket 148915 [16:47:52]StoreOFDPacket docnum=148915 [16:47:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 19 01 00 00 6B 8C 11 01 E0 80 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 32 32 30 33 32 32 33 06 04 18 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 32 D0 B2 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 38 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B3 45 02 00 35 04 06 00 6F 10 CE F8 53 21 23 14 BA E7 3D 90 33 F9 [16:47:52]CheckFolder [16:47:52]dirname=/storage/ofd_packets [16:47:52]CheckFolder done [16:47:52]ProducePacketName [16:47:52]name=ofd_packets/00148915 [16:47:52]NVStorageSaveData ofd_packets/00148915 [16:47:52]File name is /storage/ofd_packets/00148915 [16:47:52]Write 311 bytes [16:47:52]NVStorageSaveData done [16:47:52]OFDSenderStorePacket done [16:47:52]KKMCreateOFDPacket done [16:47:52]NVStorageSaveData kkm_last_timestamp [16:47:52]File name is /storage/kkm_last_timestamp [16:47:52]Write 4 bytes [16:47:52]NVStorageSaveData done [16:47:52]ExternCall_PrintAddStr [16:47:52]wPrintStart [16:47:52]Write to MH i2c: 01 00 00 0C 20 2C [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: 01 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: 01 07 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: 01 07 00 0C 20 00 00 00 00 00 FF 0F 41 [16:47:52]RasterBufferAndPrint [16:47:52]line Счет N : (3)11906 [16:47:52]line ИНН: 02508201610067 [16:47:52]line Контрольно-Кассовый Чек [16:47:52]line ПРОДАЖА [16:47:52]line Товар: 42203223 [16:47:52]line Драже Skittles 2в1 [16:47:52]line 1.000 * 51.00 [16:47:52]line = 51.00 [16:47:52]line НДС 12% НСП 1% [16:47:52]line > о реализуемом товаре [16:47:52]line ИТОГО: 51.00 [16:47:52]line НСП 1% : 0.45 [16:47:52]line НДС 12% : 5.42 [16:47:52]line Наличными: 51.00 [16:47:52]line Безнал.: 0.00 [16:47:52]line Место: АЗС № 68 "Партнер Нефть" [16:47:52]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:47:52]line СНО: Общий режим [16:47:52]line Чек 254 04.06.2024 16:47 [16:47:52]line Смена: 368 ФФД: 1.0 [16:47:52]line ЗНМ: 0300000035 [16:47:52]line РНМ: 0000000000092720 [16:47:52]line Версия ККМ: 001 [16:47:52]line ФМ: 0000000000875057 [16:47:52]line ФД: 148915 [16:47:52]line ФПД: 122117982540577 [16:47:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164752&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148915&fm=122117982540577&tin=02508201610067®Number=0000000000092720&sum=5100 [16:47:52]line 0 [16:47:52]OFD Sender: Processing packet 148915 [packets to send 100, broken 99] [16:47:52]ProducePacketName [16:47:52]name=ofd_packets/00148915 [16:47:52]OFD Sender: To server: pG, [16:47:52]CommunicateWithHost lk.salyk.kg:30040 [16:47:52]ConnectInit lk.salyk.kg [16:47:52]written 0, free lines is 4095 [16:47:52]Connected sock=10 [16:47:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 19 01 00 00 6B 8C 11 01 E0 80 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 32 32 30 33 32 32 33 06 04 18 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 32 D0 B2 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 38 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B3 45 02 00 35 04 06 00 6F 10 CE F8 53 21 23 14 BA E7 3D 90 33 F9 [16:47:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 44 F4 47 00 27 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 38 37 35 30 35 37 10 04 04 00 B3 45 02 00 F4 03 04 00 5B EC 5E 66 B6 04 01 00 00 3B 39 95 F4 F2 E7 69 3F [16:47:52]CommunicateWithHost err = 0 [16:47:52]CheckOFDResponse [16:47:52]1017 (14) - 77093643461234 [16:47:52]1041 (16) - 0000000000875057 [16:47:52]1040 (4) - 148915 [16:47:52]1012 (4) - 04.06.2024 10:28 [16:47:52]1206 (1) - 0 [16:47:52]OFD Sender: Remove packet 148915 [16:47:52]ProducePacketName [16:47:52]name=ofd_packets/00148915 [16:47:52]NVStorageDeleteData [16:47:52]Write to MH i2c: 01 00 00 34 20 54 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: 01 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: 01 07 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: 01 07 00 34 20 00 00 00 00 00 A0 0C 07 [16:47:52]RasterBufferAndPrint [16:47:52]line [16:47:52]line [16:47:52]line [16:47:52]line [16:47:52]line [16:47:52]written 0, free lines is 3236 [16:47:52]MH_Cut [16:47:52]Write to MH i2c: D1 01 00 3B 20 01 2D [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: D1 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: D1 01 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: D1 01 00 3B 20 00 2C [16:47:52]Write to MH i2c: 01 00 00 3C 20 5C [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:53]OFD Sender: No OFD packet to send [16:47:54]*** Cut start [16:47:54]*** Partial cut [16:47:54]*** CUTSNS_PIN = 1 [16:47:54]*** CUTSNS_PIN = 0 [16:47:54]*** Brake cut motor [16:47:54]Read from MH i2c: 01 [16:47:54]MH_I2C_Read... [16:47:54]*** Stop cut motor [16:47:54]*** Cut end [16:47:54]Read from MH i2c: 01 07 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: 01 07 00 3C 20 00 00 00 00 00 FF 0F 71 [16:47:54]process_action close_receipt done [16:47:54]requested_data is exist [16:47:54]produce_requested_data [16:47:54]requested_item fm.sn is exist - process it [16:47:54]wFMCommunicate request_size=4 [16:47:54]MH_SAM_APDU [16:47:54]CAPDU: 80 11 00 00 [16:47:54]Write to MH i2c: E2 08 00 3D 20 80 11 00 00 00 00 00 00 D7 [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:54]Read from MH i2c: E2 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 17 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 17 00 3D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2A [16:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:47:54]wFMCommunicate OK [16:47:54]requested_item fd.num is exist - process it [16:47:54]SAM_PROTO_GetFieldsCounters [16:47:54]wFMCommunicate request_size=4 [16:47:54]MH_SAM_APDU [16:47:54]CAPDU: 80 13 00 00 [16:47:54]Write to MH i2c: E2 08 00 3E 20 80 13 00 00 00 00 00 00 DA [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:54]Read from MH i2c: E2 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 62 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 62 00 3E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [16:47:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:54]wFMCommunicate OK [16:47:54]SAM_PROTO_GetFieldsCounters done [16:47:54]requested_item shift.num is exist - process it [16:47:54]requested_item shift.opened is exist - process it [16:47:54]req_shift_opened [16:47:54]FM_GetShiftState [16:47:54]SAM_PROTO_GetShiftState [16:47:54]wFMCommunicate request_size=4 [16:47:54]MH_SAM_APDU [16:47:54]CAPDU: 80 13 01 00 [16:47:54]Write to MH i2c: E2 08 00 3F 20 80 13 01 00 00 00 00 00 DC [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:54]Read from MH i2c: E2 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 0E 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 0E 00 3F 20 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9F [16:47:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:47:54]wFMCommunicate OK [16:47:54]SAM_PROTO_GetShiftState done [16:47:54]FM_GetShiftState done [16:47:54]req_shift_opened done [16:47:54]requested_item shift.open_date is exist - process it [16:47:54]req_shift_open_date [16:47:54]req_shift_open_date done [16:47:54]produce_requested_data done [16:47:54]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148915,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:47:54]process_action_free close_receipt [16:47:54]json_value_free [16:47:54]json_value_free done [16:47:54]process_json_proto returns [16:47:54]Send response to host [16:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148915,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:47:54]free response buf [16:47:54]execute_script done [16:47:54]execute_script returns [16:47:54]free content buf [16:47:54]Sock 7.Close socket [16:47:54]Sock 7.Thread stoped [16:47:55]accept exits with 9 [16:47:55]New connection [16:47:55]New thread 3067264356 created [16:47:55]Thread 3067407716 joined [16:47:55]Waiting for new connection... [16:47:55] Sock 9.Parse request [16:47:55]Sock 9.Check first char [16:47:55]Sock 9.First char is OK [16:47:55]request: POST /json_proto HTTP/1.0 [16:47:55]Method: POST [16:47:55]URL: /json_proto [16:47:55]Method is POST - this is cgi request [16:47:55]url: /json_proto [16:47:55]query_string will be loaded in cgi processing [16:47:55]execute_cgi json_proto POST (null) [16:47:55]execute_cgi path=json_proto method=POST [16:47:55]POST find Content-Length [16:47:55]Host: 172.17.38.4:8080 [16:47:55]Content-Length: 678 [16:47:55]Content-Type: application/json [16:47:55] [16:47:55]POST finish read [16:47:55]Found Content-Length = 678 [16:47:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:55]execute_script... [16:47: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)979848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:55]POST & json_proto [16:47:55]process_json_proto [16:47:55]json parsed OK: [16:47:55]protocol is kg_v1.0 [16:47:55]action value=close_receipt [16:47:55]process_action close_receipt [16:47:55]cmd_close_receipt [16:47:55]MH_GetDate [16:47:55]Write to MH i2c: F0 00 00 40 20 4F [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: F0 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: F0 09 00 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: F0 09 00 40 20 00 3D 45 5F 66 CC 51 87 64 A7 [16:47:55]GetLastDocTimeStamp 1717519672 [16:47:55]current date 1717519677 [16:47:55]FM_GetShiftState [16:47:55]SAM_PROTO_GetShiftState [16:47:55]wFMCommunicate request_size=4 [16:47:55]MH_SAM_APDU [16:47:55]CAPDU: 80 13 01 00 [16:47:55]Write to MH i2c: E2 08 00 41 20 80 13 01 00 00 00 00 00 DE [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:55]Read from MH i2c: E2 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 0E 00 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 0E 00 41 20 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A1 [16:47:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:47:55]wFMCommunicate OK [16:47:55]SAM_PROTO_GetShiftState done [16:47:55]FM_GetShiftState done [16:47:55]opened in 1717460629 [16:47:55]opened+sec_in_day 1717547029 [16:47:55]quantity*price = 70044 [16:47:55]sum+1 = 70045 [16:47:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 255 04.06.2024 16:47 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148916 ФПД: 221478537923747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164757&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148916&fm=221478537923747&tin=02508201610067®Number=0000000000092720&sum=70000 [16:47:56]StoreToDocumentArchive [16:47:56]shift 368 fd 148916 [16:47:56]save to /storage/0368/doc_00148916 [16:47:56]save last doc name /storage/0368/doc_00148916 to /storage/kkm_last_doc_name [16:47:56]save OK [16:47:56]Clear old archive folders... [16:47:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:56]tlvbuf is B6E17470 [16:47:56]SAM_PROTO_ClearQueue [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 09 00 00 [16:47:56]Write to MH i2c: E2 08 00 4E 20 80 09 00 00 00 00 00 00 E0 [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 4E 20 00 90 00 E2 [16:47:56]RAPDU: 90 00 [16:47:56]wFMCommunicate OK [16:47:56]SAM_PROTO_ClearQueue done [16:47:56]KKMCreateOFDPacket [16:47:56]OFDProtocolAddRootSTLVToBuf [16:47:56]FM_MakeSignedData [16:47:56]FM_MakeSignedData [16:47:56]SAM_PROTO_SignData [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 0D 01 02 [16:47:56]Write to MH i2c: E2 08 00 4F 20 80 0D 01 02 00 00 00 00 E8 [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 4F 20 00 90 00 E3 [16:47:56]RAPDU: 90 00 [16:47:56]wFMCommunicate OK [16:47:56]wFMCommunicate request_size=255 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 3D 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B4 45 02 00 35 04 06 00 C9 [16:47:56]Write to MH i2c: E2 02 01 50 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 3D 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B4 45 02 00 35 04 06 00 C9 00 00 FD [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:57]Read from MH i2c: E2 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 03 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 03 00 50 20 00 90 00 E4 [16:47:57]RAPDU: 90 00 [16:47:57]wFMCommunicate OK [16:47:57]wFMCommunicate request_size=10 [16:47:57]MH_SAM_APDU [16:47:57]CAPDU: 80 0D 02 02 05 6E FD 94 0C A3 [16:47:57]Write to MH i2c: E2 0D 00 51 20 80 0D 02 02 05 00 6E FD 94 0C A3 00 00 A3 [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:57]Read from MH i2c: E2 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 03 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 03 00 51 20 00 90 00 E5 [16:47:57]RAPDU: 90 00 [16:47:57]wFMCommunicate OK [16:47:57]wFMCommunicate request_size=4 [16:47:57]MH_SAM_APDU [16:47:57]CAPDU: 80 0D 03 02 [16:47:57]Write to MH i2c: E2 08 00 52 20 80 0D 03 02 00 00 00 00 ED [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:57]Read from MH i2c: E2 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 0B 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 0B 00 52 20 00 7F 9D E8 59 16 43 C3 B9 90 00 20 [16:47:57]RAPDU: 7F 9D E8 59 16 43 C3 B9 90 00 [16:47:57]wFMCommunicate OK [16:47:57]SAM_PROTO_SignData done [16:47:57]FM_MakeSignedData done [16:47:57]CreateOFDProtocolMessage [16:47:57]wFMCommunicate request_size=4 [16:47:57]MH_SAM_APDU [16:47:57]CAPDU: 80 11 00 00 [16:47:57]Write to MH i2c: E2 08 00 53 20 80 11 00 00 00 00 00 00 ED [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:57]Read from MH i2c: E2 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 17 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 17 00 53 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 40 [16:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:47:57]wFMCommunicate OK [16:47:57]CreateOFDProtocolMessage done [16:47:57]OFDSenderStorePacket 148916 [16:47:57]StoreOFDPacket docnum=148916 [16:47:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4B 9E 07 01 BB 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 3D 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B4 45 02 00 35 04 06 00 C9 6E FD 94 0C A3 7F 9D E8 59 16 43 C3 B9 [16:47:57]CheckFolder [16:47:57]dirname=/storage/ofd_packets [16:47:57]CheckFolder done [16:47:57]ProducePacketName [16:47:57]name=ofd_packets/00148916 [16:47:57]NVStorageSaveData ofd_packets/00148916 [16:47:57]File name is /storage/ofd_packets/00148916 [16:47:57]Write 301 bytes [16:47:57]NVStorageSaveData done [16:47:57]OFDSenderStorePacket done [16:47:57]KKMCreateOFDPacket done [16:47:57]NVStorageSaveData kkm_last_timestamp [16:47:57]File name is /storage/kkm_last_timestamp [16:47:57]Write 4 bytes [16:47:57]NVStorageSaveData done [16:47:57]ExternCall_PrintAddStr [16:47:57]wPrintStart [16:47:57]Write to MH i2c: 01 00 00 54 20 74 [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: 01 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: 01 07 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: 01 07 00 54 20 00 00 00 00 00 FF 0F 89 [16:47:57]RasterBufferAndPrint [16:47:57]line Счет N : (1)979848 [16:47:57]line ИНН: 02508201610067 [16:47:57]line Контрольно-Кассовый Чек [16:47:57]line ПРОДАЖА [16:47:57]line ТРК (МРК, ГНК) : 41 [16:47:57]line Товар: 2710124130 [16:47:57]line Аи-92-К-5 [16:47:57]line 10.470 * 66.90 [16:47:57]line = 700.44 [16:47:57]line НДС 12% НСП 1% [16:47:57]line > о реализуемом товаре [16:47:57]line ОКРУГЛЕНИЕ: -0.44 [16:47:57]line ИТОГО: 700.00 [16:47:57]line Внесено: 700.00 [16:47:57]line СДАЧА: 0.00 [16:47:57]line НСП 1% : 6.20 [16:47:57]line НДС 12% : 74.38 [16:47:57]line Наличными: 700.00 [16:47:57]line Безнал.: 0.00 [16:47:57]line Место: АЗС № 68 "Партнер Нефть" [16:47:57]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:47:57]line СНО: Общий режим [16:47:57]line Чек 255 04.06.2024 16:47 [16:47:57]line Смена: 368 ФФД: 1.0 [16:47:57]line ЗНМ: 0300000035 [16:47:57]line РНМ: 0000000000092720 [16:47:57]line Версия ККМ: 001 [16:47:57]line ФМ: 0000000000875057 [16:47:57]line ФД: 148916 [16:47:57]line ФПД: 221478537923747 [16:47:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164757&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148916&fm=221478537923747&tin=02508201610067®Number=0000000000092720&sum=70000 [16:47:57]written 0, free lines is 4095 [16:47:57]OFD Sender: Processing packet 148916 [packets to send 100, broken 99] [16:47:57]ProducePacketName [16:47:57]name=ofd_packets/00148916 [16:47:57]OFD Sender: To server: pG, [16:47:57]CommunicateWithHost lk.salyk.kg:30040 [16:47:57]ConnectInit lk.salyk.kg [16:47:57]Connected sock=10 [16:47:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4B 9E 07 01 BB 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 3D 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B4 45 02 00 35 04 06 00 C9 6E FD 94 0C A3 7F 9D E8 59 16 43 C3 B9 [16:47:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 72 75 47 00 42 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B4 45 02 00 F4 03 04 00 60 EC 5E 66 B6 04 01 00 00 B1 45 60 D4 04 F6 4B B7 [16:47:57]CommunicateWithHost err = 0 [16:47:57]CheckOFDResponse [16:47:57]1017 (14) - 77093643461234 [16:47:57]1041 (16) - 0000000000875057 [16:47:57]1040 (4) - 148916 [16:47:57]1012 (4) - 04.06.2024 10:28 [16:47:57]1206 (1) - 0 [16:47:57]OFD Sender: Remove packet 148916 [16:47:57]ProducePacketName [16:47:57]name=ofd_packets/00148916 [16:47:57]NVStorageDeleteData [16:47:57]Write to MH i2c: 01 00 00 7F 20 9F [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: 01 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: 01 07 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: 01 07 00 7F 20 00 00 00 00 00 71 0C 23 [16:47:57]RasterBufferAndPrint [16:47:57]line [16:47:57]line [16:47:57]line [16:47:57]line [16:47:57]line [16:47:57]written 0, free lines is 3192 [16:47:57]MH_Cut [16:47:57]Write to MH i2c: D1 01 00 86 20 01 78 [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: D1 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: D1 01 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: D1 01 00 86 20 00 77 [16:47:57]Write to MH i2c: 01 00 00 87 20 A7 [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:58]OFD Sender: No OFD packet to send [16:47:59]*** Cut start [16:47:59]*** Partial cut [16:47:59]*** CUTSNS_PIN = 1 [16:47:59]*** CUTSNS_PIN = 0 [16:47:59]*** Brake cut motor [16:47:59]Read from MH i2c: 01 [16:47:59]MH_I2C_Read... [16:47:59]*** Stop cut motor [16:47:59]*** Cut end [16:47:59]Read from MH i2c: 01 07 00 [16:47:59]MH_I2C_Read... [16:47:59]Read from MH i2c: 01 07 00 87 20 00 00 00 00 00 FF 0F BC [16:47:59]process_action close_receipt done [16:47:59]requested_data is exist [16:47:59]produce_requested_data [16:47:59]requested_item fm.sn is exist - process it [16:47:59]wFMCommunicate request_size=4 [16:47:59]MH_SAM_APDU [16:47:59]CAPDU: 80 11 00 00 [16:47:59]Write to MH i2c: E2 08 00 88 20 80 11 00 00 00 00 00 00 22 [16:47:59]Write i2c OK [16:47:59]MH_I2C_Read... [16:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:59]Read from MH i2c: E2 [16:47:59]MH_I2C_Read... [16:47:59]Read from MH i2c: E2 17 00 [16:47:59]MH_I2C_Read... [16:47:59]Read from MH i2c: E2 17 00 88 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 75 [16:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:47:59]wFMCommunicate OK [16:47:59]requested_item fd.num is exist - process it [16:47:59]SAM_PROTO_GetFieldsCounters [16:47:59]wFMCommunicate request_size=4 [16:47:59]MH_SAM_APDU [16:47:59]CAPDU: 80 13 00 00 [16:47:59]Write to MH i2c: E2 08 00 89 20 80 13 00 00 00 00 00 00 25 [16:47:59]Write i2c OK [16:47:59]MH_I2C_Read... [16:47:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:59]Read from MH i2c: E2 [16:47:59]MH_I2C_Read... [16:47:59]Read from MH i2c: E2 62 00 [16:47:59]MH_I2C_Read... [16:47:59]Read from MH i2c: E2 62 00 89 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [16:47:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:59]wFMCommunicate OK [16:47:59]SAM_PROTO_GetFieldsCounters done [16:47:59]requested_item shift.num is exist - process it [16:47:59]requested_item shift.opened is exist - process it [16:47:59]req_shift_opened [16:47:59]FM_GetShiftState [16:47:59]SAM_PROTO_GetShiftState [16:47:59]wFMCommunicate request_size=4 [16:47:59]MH_SAM_APDU [16:47:59]CAPDU: 80 13 01 00 [16:47:59]Write to MH i2c: E2 08 00 8A 20 80 13 01 00 00 00 00 00 27 [16:47:59]Write i2c OK [16:47:59]MH_I2C_Read... [16:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:00]Read from MH i2c: E2 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 0E 00 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 0E 00 8A 20 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EA [16:48:00]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:48:00]wFMCommunicate OK [16:48:00]SAM_PROTO_GetShiftState done [16:48:00]FM_GetShiftState done [16:48:00]req_shift_opened done [16:48:00]requested_item shift.open_date is exist - process it [16:48:00]req_shift_open_date [16:48:00]req_shift_open_date done [16:48:00]produce_requested_data done [16:48:00]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148916,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:48:00]process_action_free close_receipt [16:48:00]json_value_free [16:48:00]json_value_free done [16:48:00]process_json_proto returns [16:48:00]Send response to host [16:48:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148916,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:48:00]free response buf [16:48:00]execute_script done [16:48:00]execute_script returns [16:48:00]free content buf [16:48:00]Sock 9.Close socket [16:48:00]Sock 9.Thread stoped [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:01]accept exits with 7 [16:49:01]New connection [16:49:01]New thread 3067407716 created [16:49:01]Thread 3067264356 joined [16:49:01]Waiting for new connection... [16:49:01] Sock 7.Parse request [16:49:01]Sock 7.Check first char [16:49:01]Sock 7.First char is OK [16:49:01]request: POST /json_proto HTTP/1.0 [16:49:01]Method: POST [16:49:01]URL: /json_proto [16:49:01]Method is POST - this is cgi request [16:49:01]url: /json_proto [16:49:01]query_string will be loaded in cgi processing [16:49:01]execute_cgi json_proto POST (null) [16:49:01]execute_cgi path=json_proto method=POST [16:49:01]POST find Content-Length [16:49:01]Host: 172.17.38.4:8080 [16:49:01]Content-Length: 682 [16:49:01]Content-Type: application/json [16:49:01] [16:49:01]POST finish read [16:49:01]Found Content-Length = 682 [16:49:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:01]execute_script... [16:49:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:01]POST & json_proto [16:49:01]process_json_proto [16:49:01]json parsed OK: [16:49:01]protocol is kg_v1.0 [16:49:01]action value=close_receipt [16:49:01]process_action close_receipt [16:49:01]cmd_close_receipt [16:49:01]MH_GetDate [16:49:01]Write to MH i2c: F0 00 00 8B 20 9A [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: F0 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: F0 09 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: F0 09 00 8B 20 00 7E 45 5F 66 CC 51 87 64 33 [16:49:01]GetLastDocTimeStamp 1717519677 [16:49:01]current date 1717519742 [16:49:01]FM_GetShiftState [16:49:01]SAM_PROTO_GetShiftState [16:49:01]wFMCommunicate request_size=4 [16:49:01]MH_SAM_APDU [16:49:01]CAPDU: 80 13 01 00 [16:49:01]Write to MH i2c: E2 08 00 8C 20 80 13 01 00 00 00 00 00 29 [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:01]Read from MH i2c: E2 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 0E 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 0E 00 8C 20 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EC [16:49:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:49:01]wFMCommunicate OK [16:49:01]SAM_PROTO_GetShiftState done [16:49:01]FM_GetShiftState done [16:49:01]opened in 1717460629 [16:49:01]opened+sec_in_day 1717547029 [16:49:01]quantity*price = 100015 [16:49:01]sum+1 = 100017 [16:49:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 256 04.06.2024 16:49 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148917 ФПД: 236583661274034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164902&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148917&fm=236583661274034&tin=02508201610067®Number=0000000000092720&sum=100000 [16:49:02]StoreToDocumentArchive [16:49:02]shift 368 fd 148917 [16:49:02]save to /storage/0368/doc_00148917 [16:49:02]save last doc name /storage/0368/doc_00148917 to /storage/kkm_last_doc_name [16:49:02]save OK [16:49:02]Clear old archive folders... [16:49:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:02]tlvbuf is B6F49D70 [16:49:02]SAM_PROTO_ClearQueue [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 09 00 00 [16:49:02]Write to MH i2c: E2 08 00 99 20 80 09 00 00 00 00 00 00 2B [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 99 20 00 90 00 2D [16:49:02]RAPDU: 90 00 [16:49:02]wFMCommunicate OK [16:49:02]SAM_PROTO_ClearQueue done [16:49:02]KKMCreateOFDPacket [16:49:02]OFDProtocolAddRootSTLVToBuf [16:49:02]FM_MakeSignedData [16:49:02]FM_MakeSignedData [16:49:02]SAM_PROTO_SignData [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 0D 01 02 [16:49:02]Write to MH i2c: E2 08 00 9A 20 80 0D 01 02 00 00 00 00 33 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 9A 20 00 90 00 2E [16:49:02]RAPDU: 90 00 [16:49:02]wFMCommunicate OK [16:49:02]wFMCommunicate request_size=255 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 7E 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B5 45 02 00 35 04 06 00 D7 [16:49:02]Write to MH i2c: E2 02 01 9B 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 01 00 00 F4 03 04 00 7E 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B5 45 02 00 35 04 06 00 D7 00 00 84 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 9B 20 00 90 00 2F [16:49:02]RAPDU: 90 00 [16:49:02]wFMCommunicate OK [16:49:02]wFMCommunicate request_size=10 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 0D 02 02 05 2B ED 17 03 B2 [16:49:02]Write to MH i2c: E2 0D 00 9C 20 80 0D 02 02 05 00 2B ED 17 03 B2 00 00 24 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 9C 20 00 90 00 30 [16:49:02]RAPDU: 90 00 [16:49:02]wFMCommunicate OK [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 0D 03 02 [16:49:02]Write to MH i2c: E2 08 00 9D 20 80 0D 03 02 00 00 00 00 38 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 0B 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 0B 00 9D 20 00 59 A9 EB 40 1E 3B B5 DC 90 00 50 [16:49:02]RAPDU: 59 A9 EB 40 1E 3B B5 DC 90 00 [16:49:02]wFMCommunicate OK [16:49:02]SAM_PROTO_SignData done [16:49:02]FM_MakeSignedData done [16:49:02]CreateOFDProtocolMessage [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 11 00 00 [16:49:02]Write to MH i2c: E2 08 00 9E 20 80 11 00 00 00 00 00 00 38 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 17 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 17 00 9E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8B [16:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:49:02]wFMCommunicate OK [16:49:02]CreateOFDProtocolMessage done [16:49:02]OFDSenderStorePacket 148917 [16:49:02]StoreOFDPacket docnum=148917 [16:49:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 49 47 07 01 60 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 01 00 00 F4 03 04 00 7E 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B5 45 02 00 35 04 06 00 D7 2B ED 17 03 B2 59 A9 EB 40 1E 3B B5 DC [16:49:02]CheckFolder [16:49:02]dirname=/storage/ofd_packets [16:49:02]CheckFolder done [16:49:02]ProducePacketName [16:49:02]name=ofd_packets/00148917 [16:49:02]NVStorageSaveData ofd_packets/00148917 [16:49:02]File name is /storage/ofd_packets/00148917 [16:49:02]Write 301 bytes [16:49:02]NVStorageSaveData done [16:49:02]OFDSenderStorePacket done [16:49:02]KKMCreateOFDPacket done [16:49:02]NVStorageSaveData kkm_last_timestamp [16:49:02]File name is /storage/kkm_last_timestamp [16:49:02]Write 4 bytes [16:49:02]NVStorageSaveData done [16:49:02]ExternCall_PrintAddStr [16:49:02]wPrintStart [16:49:02]Write to MH i2c: 01 00 00 9F 20 BF [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 07 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 07 00 9F 20 00 00 00 00 00 FF 0F D4 [16:49:02]RasterBufferAndPrint [16:49:02]line Счет N : (1)979850 [16:49:02]line ИНН: 02508201610067 [16:49:02]line Контрольно-Кассовый Чек [16:49:02]line ПРОДАЖА [16:49:02]line ТРК (МРК, ГНК) : 31 [16:49:02]line Товар: 2710124130 [16:49:02]line Аи-92-К-5 [16:49:02]line 14.950 * 66.90 [16:49:02]line = 1000.16 [16:49:02]line НДС 12% НСП 1% [16:49:02]line > о реализуемом товаре [16:49:02]line ОКРУГЛЕНИЕ: -0.16 [16:49:02]line ИТОГО: 1000.00 [16:49:02]line Внесено: 1000.00 [16:49:02]line СДАЧА: 0.00 [16:49:02]line НСП 1% : 8.85 [16:49:02]line НДС 12% : 106.21 [16:49:02]line Наличными: 1000.00 [16:49:02]line Безнал.: 0.00 [16:49:02]line Место: АЗС № 68 "Партнер Нефть" [16:49:02]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:49:02]line СНО: Общий режим [16:49:02]line Чек 256 04.06.2024 16:49 [16:49:02]line Смена: 368 ФФД: 1.0 [16:49:02]line ЗНМ: 0300000035 [16:49:02]line РНМ: 0000000000092720 [16:49:02]line Версия ККМ: 001 [16:49:02]line ФМ: 0000000000875057 [16:49:02]line ФД: 148917 [16:49:02]line ФПД: 236583661274034 [16:49:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164902&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148917&fm=236583661274034&tin=02508201610067®Number=0000000000092720&sum=100000 [16:49:03]OFD Sender: Processing packet 148917 [packets to send 100, broken 99] [16:49:03]ProducePacketName [16:49:03]name=ofd_packets/00148917 [16:49:03]OFD Sender: To server: pG, [16:49:03]CommunicateWithHost lk.salyk.kg:30040 [16:49:03]ConnectInit lk.salyk.kg [16:49:03]written 0, free lines is 4095 [16:49:03]Connected sock=10 [16:49:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 49 47 07 01 60 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 01 00 00 F4 03 04 00 7E 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B5 45 02 00 35 04 06 00 D7 2B ED 17 03 B2 59 A9 EB 40 1E 3B B5 DC [16:49:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 88 C2 47 00 6A 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B5 45 02 00 F4 03 04 00 A2 EC 5E 66 B6 04 01 00 00 44 91 A7 5E 86 8E 38 E1 [16:49:03]CommunicateWithHost err = 0 [16:49:03]CheckOFDResponse [16:49:03]1017 (14) - 77093643461234 [16:49:03]1041 (16) - 0000000000875057 [16:49:03]1040 (4) - 148917 [16:49:03]1012 (4) - 04.06.2024 10:29 [16:49:03]1206 (1) - 0 [16:49:03]OFD Sender: Remove packet 148917 [16:49:03]ProducePacketName [16:49:03]name=ofd_packets/00148917 [16:49:03]NVStorageDeleteData [16:49:03]Write to MH i2c: 01 00 00 CA 20 EA [16:49:03]Write i2c OK [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: 01 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: 01 07 00 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: 01 07 00 CA 20 00 00 00 00 00 6E 0C 6B [16:49:03]RasterBufferAndPrint [16:49:03]line [16:49:03]line [16:49:03]line [16:49:03]line [16:49:03]line [16:49:03]written 0, free lines is 3185 [16:49:03]MH_Cut [16:49:03]Write to MH i2c: D1 01 00 D1 20 01 C3 [16:49:03]Write i2c OK [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: D1 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: D1 01 00 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: D1 01 00 D1 20 00 C2 [16:49:03]Write to MH i2c: 01 00 00 D2 20 F2 [16:49:03]Write i2c OK [16:49:03]MH_I2C_Read... [16:49:03]OFD Sender: No OFD packet to send [16:49:04]*** Cut start [16:49:04]*** Partial cut [16:49:04]*** CUTSNS_PIN = 1 [16:49:04]*** CUTSNS_PIN = 0 [16:49:05]*** Brake cut motor [16:49:05]Read from MH i2c: 01 [16:49:05]MH_I2C_Read... [16:49:05]*** Stop cut motor [16:49:05]*** Cut end [16:49:05]Read from MH i2c: 01 07 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: 01 07 00 D2 20 00 00 00 00 00 FF 0F 07 [16:49:05]process_action close_receipt done [16:49:05]requested_data is exist [16:49:05]produce_requested_data [16:49:05]requested_item fm.sn is exist - process it [16:49:05]wFMCommunicate request_size=4 [16:49:05]MH_SAM_APDU [16:49:05]CAPDU: 80 11 00 00 [16:49:05]Write to MH i2c: E2 08 00 D3 20 80 11 00 00 00 00 00 00 6D [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 [16:49:05]MH_I2C_Read... [16:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:05]Read from MH i2c: E2 17 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 17 00 D3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C0 [16:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:49:05]wFMCommunicate OK [16:49:05]requested_item fd.num is exist - process it [16:49:05]SAM_PROTO_GetFieldsCounters [16:49:05]wFMCommunicate request_size=4 [16:49:05]MH_SAM_APDU [16:49:05]CAPDU: 80 13 00 00 [16:49:05]Write to MH i2c: E2 08 00 D4 20 80 13 00 00 00 00 00 00 70 [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:05]Read from MH i2c: E2 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 62 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 62 00 D4 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B5 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [16:49:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B5 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:05]wFMCommunicate OK [16:49:05]SAM_PROTO_GetFieldsCounters done [16:49:05]requested_item shift.num is exist - process it [16:49:05]requested_item shift.opened is exist - process it [16:49:05]req_shift_opened [16:49:05]FM_GetShiftState [16:49:05]SAM_PROTO_GetShiftState [16:49:05]wFMCommunicate request_size=4 [16:49:05]MH_SAM_APDU [16:49:05]CAPDU: 80 13 01 00 [16:49:05]Write to MH i2c: E2 08 00 D5 20 80 13 01 00 00 00 00 00 72 [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:05]Read from MH i2c: E2 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 0E 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: E2 0E 00 D5 20 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 35 [16:49:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:49:05]wFMCommunicate OK [16:49:05]SAM_PROTO_GetShiftState done [16:49:05]FM_GetShiftState done [16:49:05]req_shift_opened done [16:49:05]requested_item shift.open_date is exist - process it [16:49:05]req_shift_open_date [16:49:05]req_shift_open_date done [16:49:05]produce_requested_data done [16:49:05]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148917,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:49:05]process_action_free close_receipt [16:49:05]json_value_free [16:49:05]json_value_free done [16:49:05]process_json_proto returns [16:49:05]Send response to host [16:49:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148917,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:49:05]free response buf [16:49:05]execute_script done [16:49:05]execute_script returns [16:49:05]free content buf [16:49:05]Sock 7.Close socket [16:49:05]Sock 7.Thread stoped [16:49:07]accept exits with 9 [16:49:07]New connection [16:49:07]New thread 3067264356 created [16:49:07]Thread 3067407716 joined [16:49:07]Waiting for new connection... [16:49:07] Sock 9.Parse request [16:49:07]Sock 9.Check first char [16:49:07]Sock 9.First char is OK [16:49:07]request: POST /json_proto HTTP/1.0 [16:49:07]Method: POST [16:49:07]URL: /json_proto [16:49:07]Method is POST - this is cgi request [16:49:07]url: /json_proto [16:49:07]query_string will be loaded in cgi processing [16:49:07]execute_cgi json_proto POST (null) [16:49:07]execute_cgi path=json_proto method=POST [16:49:07]POST find Content-Length [16:49:07]Host: 172.17.38.4:8080 [16:49:07]Content-Length: 677 [16:49:07]Content-Type: application/json [16:49:07] [16:49:07]POST finish read [16:49:07]Found Content-Length = 677 [16:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:07]execute_script... [16:49: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)979849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:07]POST & json_proto [16:49:07]process_json_proto [16:49:07]json parsed OK: [16:49:07]protocol is kg_v1.0 [16:49:07]action value=close_receipt [16:49:07]process_action close_receipt [16:49:07]cmd_close_receipt [16:49:07]MH_GetDate [16:49:07]Write to MH i2c: F0 00 00 D6 20 E5 [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: F0 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: F0 09 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: F0 09 00 D6 20 00 84 45 5F 66 CC 51 87 64 84 [16:49:07]GetLastDocTimeStamp 1717519742 [16:49:07]current date 1717519748 [16:49:07]FM_GetShiftState [16:49:07]SAM_PROTO_GetShiftState [16:49:07]wFMCommunicate request_size=4 [16:49:07]MH_SAM_APDU [16:49:07]CAPDU: 80 13 01 00 [16:49:07]Write to MH i2c: E2 08 00 D7 20 80 13 01 00 00 00 00 00 74 [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:07]Read from MH i2c: E2 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 0E 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 0E 00 D7 20 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 37 [16:49:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:49:07]wFMCommunicate OK [16:49:07]SAM_PROTO_GetShiftState done [16:49:07]FM_GetShiftState done [16:49:07]opened in 1717460629 [16:49:07]opened+sec_in_day 1717547029 [16:49:07]quantity*price = 20003 [16:49:07]sum+1 = 20004 [16:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 257 04.06.2024 16:49 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148918 ФПД: 113638000577788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164908&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148918&fm=113638000577788&tin=02508201610067®Number=0000000000092720&sum=20000 [16:49:08]StoreToDocumentArchive [16:49:08]shift 368 fd 148918 [16:49:08]save to /storage/0368/doc_00148918 [16:49:08]save last doc name /storage/0368/doc_00148918 to /storage/kkm_last_doc_name [16:49:08]save OK [16:49:08]Clear old archive folders... [16:49:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:08]tlvbuf is 00476C30 [16:49:08]SAM_PROTO_ClearQueue [16:49:08]wFMCommunicate request_size=4 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 09 00 00 [16:49:08]Write to MH i2c: E2 08 00 E4 20 80 09 00 00 00 00 00 00 76 [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 03 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 03 00 E4 20 00 90 00 78 [16:49:08]RAPDU: 90 00 [16:49:08]wFMCommunicate OK [16:49:08]SAM_PROTO_ClearQueue done [16:49:08]KKMCreateOFDPacket [16:49:08]OFDProtocolAddRootSTLVToBuf [16:49:08]FM_MakeSignedData [16:49:08]FM_MakeSignedData [16:49:08]SAM_PROTO_SignData [16:49:08]wFMCommunicate request_size=4 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 0D 01 02 [16:49:08]Write to MH i2c: E2 08 00 E5 20 80 0D 01 02 00 00 00 00 7E [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 03 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 03 00 E5 20 00 90 00 79 [16:49:08]RAPDU: 90 00 [16:49:08]wFMCommunicate OK [16:49:08]wFMCommunicate request_size=255 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 84 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B6 45 02 00 35 04 06 00 67 [16:49:08]Write to MH i2c: E2 02 01 E6 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 84 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B6 45 02 00 35 04 06 00 67 00 00 2F [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]OFD Sender: No OFD packet to send [16:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 03 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 03 00 E6 20 00 90 00 7A [16:49:08]RAPDU: 90 00 [16:49:08]wFMCommunicate OK [16:49:08]wFMCommunicate request_size=10 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 0D 02 02 05 5A 68 A8 4C FC [16:49:08]Write to MH i2c: E2 0D 00 E7 20 80 0D 02 02 05 00 5A 68 A8 4C FC 00 00 3D [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 E7 20 00 90 00 7B [16:49:09]RAPDU: 90 00 [16:49:09]wFMCommunicate OK [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 0D 03 02 [16:49:09]Write to MH i2c: E2 08 00 E8 20 80 0D 03 02 00 00 00 00 83 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 0B 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 0B 00 E8 20 00 71 C0 15 AB AF C6 BB 55 90 00 FA [16:49:09]RAPDU: 71 C0 15 AB AF C6 BB 55 90 00 [16:49:09]wFMCommunicate OK [16:49:09]SAM_PROTO_SignData done [16:49:09]FM_MakeSignedData done [16:49:09]CreateOFDProtocolMessage [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 11 00 00 [16:49:09]Write to MH i2c: E2 08 00 E9 20 80 11 00 00 00 00 00 00 83 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 17 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 17 00 E9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D6 [16:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:49:09]wFMCommunicate OK [16:49:09]CreateOFDProtocolMessage done [16:49:09]OFDSenderStorePacket 148918 [16:49:09]StoreOFDPacket docnum=148918 [16:49:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 70 BB 07 01 CF 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 84 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B6 45 02 00 35 04 06 00 67 5A 68 A8 4C FC 71 C0 15 AB AF C6 BB 55 [16:49:09]CheckFolder [16:49:09]dirname=/storage/ofd_packets [16:49:09]CheckFolder done [16:49:09]ProducePacketName [16:49:09]name=ofd_packets/00148918 [16:49:09]NVStorageSaveData ofd_packets/00148918 [16:49:09]File name is /storage/ofd_packets/00148918 [16:49:09]Write 301 bytes [16:49:09]NVStorageSaveData done [16:49:09]OFDSenderStorePacket done [16:49:09]KKMCreateOFDPacket done [16:49:09]NVStorageSaveData kkm_last_timestamp [16:49:09]File name is /storage/kkm_last_timestamp [16:49:09]Write 4 bytes [16:49:09]NVStorageSaveData done [16:49:09]ExternCall_PrintAddStr [16:49:09]wPrintStart [16:49:09]Write to MH i2c: 01 00 00 EA 20 0A [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: 01 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: 01 07 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: 01 07 00 EA 20 00 00 00 00 00 FF 0F 1F [16:49:09]RasterBufferAndPrint [16:49:09]line Счет N : (1)979849 [16:49:09]line ИНН: 02508201610067 [16:49:09]line Контрольно-Кассовый Чек [16:49:09]line ПРОДАЖА [16:49:09]line ТРК (МРК, ГНК) : 12 [16:49:09]line Товар: 2710124130 [16:49:09]line Аи-92-К-5 [16:49:09]line 2.990 * 66.90 [16:49:09]line = 200.03 [16:49:09]line НДС 12% НСП 1% [16:49:09]line > о реализуемом товаре [16:49:09]line ОКРУГЛЕНИЕ: -0.03 [16:49:09]line ИТОГО: 200.00 [16:49:09]line Внесено: 200.00 [16:49:09]line СДАЧА: 0.00 [16:49:09]line НСП 1% : 1.77 [16:49:09]line НДС 12% : 21.24 [16:49:09]line Наличными: 200.00 [16:49:09]line Безнал.: 0.00 [16:49:09]line Место: АЗС № 68 "Партнер Нефть" [16:49:09]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:49:09]line СНО: Общий режим [16:49:09]line Чек 257 04.06.2024 16:49 [16:49:09]line Смена: 368 ФФД: 1.0 [16:49:09]line ЗНМ: 0300000035 [16:49:09]line РНМ: 0000000000092720 [16:49:09]line Версия ККМ: 001 [16:49:09]line ФМ: 0000000000875057 [16:49:09]line ФД: 148918 [16:49:09]line ФПД: 113638000577788 [16:49:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164908&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148918&fm=113638000577788&tin=02508201610067®Number=0000000000092720&sum=20000 [16:49:09]OFD Sender: Processing packet 148918 [packets to send 100, broken 99] [16:49:09]ProducePacketName [16:49:09]name=ofd_packets/00148918 [16:49:09]OFD Sender: To server: pG, [16:49:09]CommunicateWithHost lk.salyk.kg:30040 [16:49:09]ConnectInit lk.salyk.kg [16:49:09]written 0, free lines is 4095 [16:49:09]Connected sock=10 [16:49:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 70 BB 07 01 CF 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 84 45 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B6 45 02 00 35 04 06 00 67 5A 68 A8 4C FC 71 C0 15 AB AF C6 BB 55 [16:49:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 95 C8 47 00 F9 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B6 45 02 00 F4 03 04 00 A8 EC 5E 66 B6 04 01 00 00 5D 6B E4 0C 0F CC 9E 62 [16:49:09]CommunicateWithHost err = 0 [16:49:09]CheckOFDResponse [16:49:09]1017 (14) - 77093643461234 [16:49:09]1041 (16) - 0000000000875057 [16:49:09]1040 (4) - 148918 [16:49:09]1012 (4) - 04.06.2024 10:30 [16:49:09]1206 (1) - 0 [16:49:09]OFD Sender: Remove packet 148918 [16:49:09]ProducePacketName [16:49:09]name=ofd_packets/00148918 [16:49:09]NVStorageDeleteData [16:49:09]Write to MH i2c: 01 00 00 15 21 36 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: 01 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: 01 07 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: 01 07 00 15 21 00 00 00 00 00 6C 0C B5 [16:49:09]RasterBufferAndPrint [16:49:09]line [16:49:09]line [16:49:09]line [16:49:09]line [16:49:09]line [16:49:09]written 0, free lines is 3185 [16:49:09]MH_Cut [16:49:09]Write to MH i2c: D1 01 00 1C 21 01 0F [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: D1 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: D1 01 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: D1 01 00 1C 21 00 0E [16:49:09]Write to MH i2c: 01 00 00 1D 21 3E [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:10]OFD Sender: No OFD packet to send [16:49:11]*** Cut start [16:49:11]*** Partial cut [16:49:11]*** CUTSNS_PIN = 1 [16:49:11]*** CUTSNS_PIN = 0 [16:49:11]*** Brake cut motor [16:49:11]Read from MH i2c: 01 [16:49:11]MH_I2C_Read... [16:49:11]*** Stop cut motor [16:49:11]*** Cut end [16:49:11]Read from MH i2c: 01 07 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 07 00 1D 21 00 00 00 00 00 FF 0F 53 [16:49:11]process_action close_receipt done [16:49:11]requested_data is exist [16:49:11]produce_requested_data [16:49:11]requested_item fm.sn is exist - process it [16:49:11]wFMCommunicate request_size=4 [16:49:11]MH_SAM_APDU [16:49:11]CAPDU: 80 11 00 00 [16:49:11]Write to MH i2c: E2 08 00 1E 21 80 11 00 00 00 00 00 00 B9 [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:11]Read from MH i2c: E2 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 17 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 17 00 1E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0C [16:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:49:11]wFMCommunicate OK [16:49:11]requested_item fd.num is exist - process it [16:49:11]SAM_PROTO_GetFieldsCounters [16:49:11]wFMCommunicate request_size=4 [16:49:11]MH_SAM_APDU [16:49:11]CAPDU: 80 13 00 00 [16:49:11]Write to MH i2c: E2 08 00 1F 21 80 13 00 00 00 00 00 00 BC [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:12]Read from MH i2c: E2 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 62 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 62 00 1F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B6 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [16:49:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B6 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:12]wFMCommunicate OK [16:49:12]SAM_PROTO_GetFieldsCounters done [16:49:12]requested_item shift.num is exist - process it [16:49:12]requested_item shift.opened is exist - process it [16:49:12]req_shift_opened [16:49:12]FM_GetShiftState [16:49:12]SAM_PROTO_GetShiftState [16:49:12]wFMCommunicate request_size=4 [16:49:12]MH_SAM_APDU [16:49:12]CAPDU: 80 13 01 00 [16:49:12]Write to MH i2c: E2 08 00 20 21 80 13 01 00 00 00 00 00 BE [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:12]Read from MH i2c: E2 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 0E 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 0E 00 20 21 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 81 [16:49:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:49:12]wFMCommunicate OK [16:49:12]SAM_PROTO_GetShiftState done [16:49:12]FM_GetShiftState done [16:49:12]req_shift_opened done [16:49:12]requested_item shift.open_date is exist - process it [16:49:12]req_shift_open_date [16:49:12]req_shift_open_date done [16:49:12]produce_requested_data done [16:49:12]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148918,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:49:12]process_action_free close_receipt [16:49:12]json_value_free [16:49:12]json_value_free done [16:49:12]process_json_proto returns [16:49:12]Send response to host [16:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148918,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:49:12]free response buf [16:49:12]execute_script done [16:49:12]execute_script returns [16:49:12]free content buf [16:49:12]Sock 9.Close socket [16:49:12]Sock 9.Thread stoped [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:26]accept exits with 7 [16:52:26]New connection [16:52:26]New thread 3067407716 created [16:52:26]Thread 3067264356 joined [16:52:26]Waiting for new connection... [16:52:26] Sock 7.Parse request [16:52:26]Sock 7.Check first char [16:52:26]Sock 7.First char is OK [16:52:26]request: POST /json_proto HTTP/1.0 [16:52:26]Method: POST [16:52:26]URL: /json_proto [16:52:26]Method is POST - this is cgi request [16:52:26]url: /json_proto [16:52:26]query_string will be loaded in cgi processing [16:52:26]execute_cgi json_proto POST (null) [16:52:26]execute_cgi path=json_proto method=POST [16:52:26]POST find Content-Length [16:52:26]Host: 172.17.38.4:8080 [16:52:26]Content-Length: 677 [16:52:26]Content-Type: application/json [16:52:26] [16:52:26]POST finish read [16:52:26]Found Content-Length = 677 [16:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:26]execute_script... [16:52: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)979851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:26]POST & json_proto [16:52:26]process_json_proto [16:52:26]json parsed OK: [16:52:26]protocol is kg_v1.0 [16:52:26]action value=close_receipt [16:52:26]process_action close_receipt [16:52:26]cmd_close_receipt [16:52:26]MH_GetDate [16:52:26]Write to MH i2c: F0 00 00 21 21 31 [16:52:26]Write i2c OK [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: F0 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: F0 09 00 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: F0 09 00 21 21 00 4C 46 5F 66 CC 51 87 64 99 [16:52:26]GetLastDocTimeStamp 1717519748 [16:52:26]current date 1717519948 [16:52:26]FM_GetShiftState [16:52:26]SAM_PROTO_GetShiftState [16:52:26]wFMCommunicate request_size=4 [16:52:26]MH_SAM_APDU [16:52:26]CAPDU: 80 13 01 00 [16:52:26]Write to MH i2c: E2 08 00 22 21 80 13 01 00 00 00 00 00 C0 [16:52:26]Write i2c OK [16:52:26]MH_I2C_Read... [16:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:26]Read from MH i2c: E2 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: E2 0E 00 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: E2 0E 00 22 21 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 83 [16:52:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:52:26]wFMCommunicate OK [16:52:26]SAM_PROTO_GetShiftState done [16:52:26]FM_GetShiftState done [16:52:26]opened in 1717460629 [16:52:26]opened+sec_in_day 1717547029 [16:52:26]quantity*price = 40006 [16:52:26]sum+1 = 40007 [16:52:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 258 04.06.2024 16:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148919 ФПД: 73203074969143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T165228&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148919&fm=73203074969143&tin=02508201610067®Number=0000000000092720&sum=40000 [16:52:27]StoreToDocumentArchive [16:52:27]shift 368 fd 148919 [16:52:27]save to /storage/0368/doc_00148919 [16:52:27]save last doc name /storage/0368/doc_00148919 to /storage/kkm_last_doc_name [16:52:27]save OK [16:52:27]Clear old archive folders... [16:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:27]tlvbuf is 00517A60 [16:52:27]SAM_PROTO_ClearQueue [16:52:27]wFMCommunicate request_size=4 [16:52:27]MH_SAM_APDU [16:52:27]CAPDU: 80 09 00 00 [16:52:27]Write to MH i2c: E2 08 00 2F 21 80 09 00 00 00 00 00 00 C2 [16:52:27]Write i2c OK [16:52:27]MH_I2C_Read... [16:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:27]Read from MH i2c: E2 [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: E2 03 00 [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: E2 03 00 2F 21 00 90 00 C4 [16:52:27]RAPDU: 90 00 [16:52:27]wFMCommunicate OK [16:52:27]SAM_PROTO_ClearQueue done [16:52:27]KKMCreateOFDPacket [16:52:27]OFDProtocolAddRootSTLVToBuf [16:52:27]FM_MakeSignedData [16:52:27]FM_MakeSignedData [16:52:27]SAM_PROTO_SignData [16:52:27]wFMCommunicate request_size=4 [16:52:27]MH_SAM_APDU [16:52:27]CAPDU: 80 0D 01 02 [16:52:27]Write to MH i2c: E2 08 00 30 21 80 0D 01 02 00 00 00 00 CA [16:52:27]Write i2c OK [16:52:27]MH_I2C_Read... [16:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:28]Read from MH i2c: E2 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 03 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 03 00 30 21 00 90 00 C5 [16:52:28]RAPDU: 90 00 [16:52:28]wFMCommunicate OK [16:52:28]wFMCommunicate request_size=255 [16:52:28]MH_SAM_APDU [16:52:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 02 01 00 00 F4 03 04 00 4C 46 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B7 45 02 00 35 04 06 00 42 [16:52:28]Write to MH i2c: E2 02 01 31 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 02 01 00 00 F4 03 04 00 4C 46 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B7 45 02 00 35 04 06 00 42 00 00 2E [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:28]Read from MH i2c: E2 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 03 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 03 00 31 21 00 90 00 C6 [16:52:28]RAPDU: 90 00 [16:52:28]wFMCommunicate OK [16:52:28]wFMCommunicate request_size=10 [16:52:28]MH_SAM_APDU [16:52:28]CAPDU: 80 0D 02 02 05 93 EB 47 AE 37 [16:52:28]Write to MH i2c: E2 0D 00 32 21 80 0D 02 02 05 00 93 EB 47 AE 37 00 00 81 [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:28]Read from MH i2c: E2 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 03 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 03 00 32 21 00 90 00 C7 [16:52:28]RAPDU: 90 00 [16:52:28]wFMCommunicate OK [16:52:28]wFMCommunicate request_size=4 [16:52:28]MH_SAM_APDU [16:52:28]CAPDU: 80 0D 03 02 [16:52:28]Write to MH i2c: E2 08 00 33 21 80 0D 03 02 00 00 00 00 CF [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:28]Read from MH i2c: E2 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 0B 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 0B 00 33 21 00 06 D0 28 BD 4E A3 FA 50 90 00 C6 [16:52:28]RAPDU: 06 D0 28 BD 4E A3 FA 50 90 00 [16:52:28]wFMCommunicate OK [16:52:28]SAM_PROTO_SignData done [16:52:28]FM_MakeSignedData done [16:52:28]CreateOFDProtocolMessage [16:52:28]wFMCommunicate request_size=4 [16:52:28]MH_SAM_APDU [16:52:28]CAPDU: 80 11 00 00 [16:52:28]Write to MH i2c: E2 08 00 34 21 80 11 00 00 00 00 00 00 CF [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:28]Read from MH i2c: E2 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 17 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: E2 17 00 34 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 22 [16:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:52:28]wFMCommunicate OK [16:52:28]CreateOFDProtocolMessage done [16:52:28]OFDSenderStorePacket 148919 [16:52:28]StoreOFDPacket docnum=148919 [16:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 DF 7E 07 01 21 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 02 01 00 00 F4 03 04 00 4C 46 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B7 45 02 00 35 04 06 00 42 93 EB 47 AE 37 06 D0 28 BD 4E A3 FA 50 [16:52:28]CheckFolder [16:52:28]dirname=/storage/ofd_packets [16:52:28]CheckFolder done [16:52:28]ProducePacketName [16:52:28]name=ofd_packets/00148919 [16:52:28]NVStorageSaveData ofd_packets/00148919 [16:52:28]File name is /storage/ofd_packets/00148919 [16:52:28]Write 301 bytes [16:52:28]NVStorageSaveData done [16:52:28]OFDSenderStorePacket done [16:52:28]KKMCreateOFDPacket done [16:52:28]NVStorageSaveData kkm_last_timestamp [16:52:28]File name is /storage/kkm_last_timestamp [16:52:28]Write 4 bytes [16:52:28]NVStorageSaveData done [16:52:28]ExternCall_PrintAddStr [16:52:28]wPrintStart [16:52:28]Write to MH i2c: 01 00 00 35 21 56 [16:52:28]Write i2c OK [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: 01 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: 01 07 00 [16:52:28]MH_I2C_Read... [16:52:28]Read from MH i2c: 01 07 00 35 21 00 00 00 00 00 FF 0F 6B [16:52:28]RasterBufferAndPrint [16:52:28]line Счет N : (1)979851 [16:52:28]line ИНН: 02508201610067 [16:52:28]line Контрольно-Кассовый Чек [16:52:28]line ПРОДАЖА [16:52:28]line ТРК (МРК, ГНК) : 22 [16:52:28]line Товар: 2710124130 [16:52:28]line Аи-92-К-5 [16:52:28]line 5.980 * 66.90 [16:52:28]line = 400.06 [16:52:28]line НДС 12% НСП 1% [16:52:28]line > о реализуемом товаре [16:52:28]line ОКРУГЛЕНИЕ: -0.06 [16:52:28]line ИТОГО: 400.00 [16:52:28]line Внесено: 400.00 [16:52:28]line СДАЧА: 0.00 [16:52:28]line НСП 1% : 3.54 [16:52:28]line НДС 12% : 42.48 [16:52:28]line Наличными: 400.00 [16:52:28]line Безнал.: 0.00 [16:52:28]line Место: АЗС № 68 "Партнер Нефть" [16:52:28]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:52:28]line СНО: Общий режим [16:52:28]line Чек 258 04.06.2024 16:52 [16:52:28]line Смена: 368 ФФД: 1.0 [16:52:28]line ЗНМ: 0300000035 [16:52:28]line РНМ: 0000000000092720 [16:52:28]line Версия ККМ: 001 [16:52:28]line ФМ: 0000000000875057 [16:52:28]line ФД: 148919 [16:52:28]line ФПД: 73203074969143 [16:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T165228&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148919&fm=73203074969143&tin=02508201610067®Number=0000000000092720&sum=40000 [16:52:28]OFD Sender: Processing packet 148919 [packets to send 100, broken 99] [16:52:28]ProducePacketName [16:52:28]name=ofd_packets/00148919 [16:52:28]OFD Sender: To server: pG, [16:52:28]CommunicateWithHost lk.salyk.kg:30040 [16:52:28]ConnectInit lk.salyk.kg [16:52:28]written 0, free lines is 4095 [16:52:28]Connected sock=10 [16:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 DF 7E 07 01 21 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 02 01 00 00 F4 03 04 00 4C 46 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B7 45 02 00 35 04 06 00 42 93 EB 47 AE 37 06 D0 28 BD 4E A3 FA 50 [16:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3B 50 47 00 7F 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 38 37 35 30 35 37 10 04 04 00 B7 45 02 00 F4 03 04 00 6F ED 5E 66 B6 04 01 00 00 7D 55 16 4B 3F 4C D5 F7 [16:52:29]CommunicateWithHost err = 0 [16:52:29]CheckOFDResponse [16:52:29]1017 (14) - 77093643461234 [16:52:29]1041 (16) - 0000000000875057 [16:52:29]1040 (4) - 148919 [16:52:29]1012 (4) - 04.06.2024 10:33 [16:52:29]1206 (1) - 0 [16:52:29]OFD Sender: Remove packet 148919 [16:52:29]ProducePacketName [16:52:29]name=ofd_packets/00148919 [16:52:29]NVStorageDeleteData [16:52:29]Write to MH i2c: 01 00 00 60 21 81 [16:52:29]Write i2c OK [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: 01 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: 01 07 00 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: 01 07 00 60 21 00 00 00 00 00 69 0C FD [16:52:29]RasterBufferAndPrint [16:52:29]line [16:52:29]line [16:52:29]line [16:52:29]line [16:52:29]line [16:52:29]written 0, free lines is 3180 [16:52:29]MH_Cut [16:52:29]Write to MH i2c: D1 01 00 67 21 01 5A [16:52:29]Write i2c OK [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: D1 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: D1 01 00 [16:52:29]MH_I2C_Read... [16:52:29]Read from MH i2c: D1 01 00 67 21 00 59 [16:52:29]Write to MH i2c: 01 00 00 68 21 89 [16:52:29]Write i2c OK [16:52:29]MH_I2C_Read... [16:52:29]OFD Sender: No OFD packet to send [16:52:30]*** Cut start [16:52:30]*** Partial cut [16:52:30]*** CUTSNS_PIN = 1 [16:52:30]*** CUTSNS_PIN = 0 [16:52:30]*** Brake cut motor [16:52:31]Read from MH i2c: 01 [16:52:31]MH_I2C_Read... [16:52:31]*** Stop cut motor [16:52:31]*** Cut end [16:52:31]Read from MH i2c: 01 07 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: 01 07 00 68 21 00 00 00 00 00 FF 0F 9E [16:52:31]process_action close_receipt done [16:52:31]requested_data is exist [16:52:31]produce_requested_data [16:52:31]requested_item fm.sn is exist - process it [16:52:31]wFMCommunicate request_size=4 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 11 00 00 [16:52:31]Write to MH i2c: E2 08 00 69 21 80 11 00 00 00 00 00 00 04 [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 17 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 17 00 69 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 57 [16:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:52:31]wFMCommunicate OK [16:52:31]requested_item fd.num is exist - process it [16:52:31]SAM_PROTO_GetFieldsCounters [16:52:31]wFMCommunicate request_size=4 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 13 00 00 [16:52:31]Write to MH i2c: E2 08 00 6A 21 80 13 00 00 00 00 00 00 07 [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 62 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 62 00 6A 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B7 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [16:52:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B7 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:31]wFMCommunicate OK [16:52:31]SAM_PROTO_GetFieldsCounters done [16:52:31]requested_item shift.num is exist - process it [16:52:31]requested_item shift.opened is exist - process it [16:52:31]req_shift_opened [16:52:31]FM_GetShiftState [16:52:31]SAM_PROTO_GetShiftState [16:52:31]wFMCommunicate request_size=4 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 13 01 00 [16:52:31]Write to MH i2c: E2 08 00 6B 21 80 13 01 00 00 00 00 00 09 [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 0E 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 0E 00 6B 21 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CC [16:52:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:52:31]wFMCommunicate OK [16:52:31]SAM_PROTO_GetShiftState done [16:52:31]FM_GetShiftState done [16:52:31]req_shift_opened done [16:52:31]requested_item shift.open_date is exist - process it [16:52:31]req_shift_open_date [16:52:31]req_shift_open_date done [16:52:31]produce_requested_data done [16:52:31]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148919,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:52:31]process_action_free close_receipt [16:52:31]json_value_free [16:52:31]json_value_free done [16:52:31]process_json_proto returns [16:52:31]Send response to host [16:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148919,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:52:31]free response buf [16:52:31]execute_script done [16:52:31]execute_script returns [16:52:31]free content buf [16:52:31]Sock 7.Close socket [16:52:31]Sock 7.Thread stoped [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:57]accept exits with 9 [16:52:57]New connection [16:52:57]New thread 3067264356 created [16:52:57]Thread 3067407716 joined [16:52:57]Waiting for new connection... [16:52:57] Sock 9.Parse request [16:52:57]Sock 9.Check first char [16:52:57]Sock 9.First char is OK [16:52:57]request: POST /json_proto HTTP/1.0 [16:52:57]Method: POST [16:52:57]URL: /json_proto [16:52:57]Method is POST - this is cgi request [16:52:57]url: /json_proto [16:52:57]query_string will be loaded in cgi processing [16:52:57]execute_cgi json_proto POST (null) [16:52:57]execute_cgi path=json_proto method=POST [16:52:57]POST find Content-Length [16:52:57]Host: 172.17.38.4:8080 [16:52:57]Content-Length: 677 [16:52:57]Content-Type: application/json [16:52:57] [16:52:57]POST finish read [16:52:57]Found Content-Length = 677 [16:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:57]execute_script... [16:52: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)979852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:57]POST & json_proto [16:52:57]process_json_proto [16:52:57]json parsed OK: [16:52:57]protocol is kg_v1.0 [16:52:57]action value=close_receipt [16:52:57]process_action close_receipt [16:52:57]cmd_close_receipt [16:52:57]MH_GetDate [16:52:57]Write to MH i2c: F0 00 00 6C 21 7C [16:52:57]Write i2c OK [16:52:57]MH_I2C_Read... [16:52:57]Read from MH i2c: F0 [16:52:57]MH_I2C_Read... [16:52:57]Read from MH i2c: F0 09 00 [16:52:57]MH_I2C_Read... [16:52:57]Read from MH i2c: F0 09 00 6C 21 00 6B 46 5F 66 CC 51 87 64 03 [16:52:57]GetLastDocTimeStamp 1717519948 [16:52:57]current date 1717519979 [16:52:57]FM_GetShiftState [16:52:57]SAM_PROTO_GetShiftState [16:52:57]wFMCommunicate request_size=4 [16:52:57]MH_SAM_APDU [16:52:57]CAPDU: 80 13 01 00 [16:52:57]Write to MH i2c: E2 08 00 6D 21 80 13 01 00 00 00 00 00 0B [16:52:57]Write i2c OK [16:52:57]MH_I2C_Read... [16:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:57]Read from MH i2c: E2 [16:52:57]MH_I2C_Read... [16:52:57]Read from MH i2c: E2 0E 00 [16:52:57]MH_I2C_Read... [16:52:57]Read from MH i2c: E2 0E 00 6D 21 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CE [16:52:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:52:57]wFMCommunicate OK [16:52:57]SAM_PROTO_GetShiftState done [16:52:57]FM_GetShiftState done [16:52:57]opened in 1717460629 [16:52:57]opened+sec_in_day 1717547029 [16:52:57]quantity*price = 30038 [16:52:57]sum+1 = 30039 [16:52:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 259 04.06.2024 16:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148920 ФПД: 193918477750421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T165259&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148920&fm=193918477750421&tin=02508201610067®Number=0000000000092720&sum=30000 [16:52:59]StoreToDocumentArchive [16:52:59]shift 368 fd 148920 [16:52:59]save to /storage/0368/doc_00148920 [16:52:59]save last doc name /storage/0368/doc_00148920 to /storage/kkm_last_doc_name [16:52:59]save OK [16:52:59]Clear old archive folders... [16:52:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:59]tlvbuf is 0049D930 [16:52:59]SAM_PROTO_ClearQueue [16:52:59]wFMCommunicate request_size=4 [16:52:59]MH_SAM_APDU [16:52:59]CAPDU: 80 09 00 00 [16:52:59]Write to MH i2c: E2 08 00 7A 21 80 09 00 00 00 00 00 00 0D [16:52:59]Write i2c OK [16:52:59]MH_I2C_Read... [16:52:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:59]Read from MH i2c: E2 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 03 00 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 03 00 7A 21 00 90 00 0F [16:52:59]RAPDU: 90 00 [16:52:59]wFMCommunicate OK [16:52:59]SAM_PROTO_ClearQueue done [16:52:59]KKMCreateOFDPacket [16:52:59]OFDProtocolAddRootSTLVToBuf [16:52:59]FM_MakeSignedData [16:52:59]FM_MakeSignedData [16:52:59]SAM_PROTO_SignData [16:52:59]wFMCommunicate request_size=4 [16:52:59]MH_SAM_APDU [16:52:59]CAPDU: 80 0D 01 02 [16:52:59]Write to MH i2c: E2 08 00 7B 21 80 0D 01 02 00 00 00 00 15 [16:52:59]Write i2c OK [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 [16:52:59]MH_I2C_Read... [16:52:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:59]Read from MH i2c: E2 03 00 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 03 00 7B 21 00 90 00 10 [16:52:59]RAPDU: 90 00 [16:52:59]wFMCommunicate OK [16:52:59]wFMCommunicate request_size=255 [16:52:59]MH_SAM_APDU [16:52:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 03 01 00 00 F4 03 04 00 6B 46 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B8 45 02 00 35 04 06 00 B0 [16:52:59]Write to MH i2c: E2 02 01 7C 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 03 01 00 00 F4 03 04 00 6B 46 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B8 45 02 00 35 04 06 00 B0 00 00 2D [16:52:59]Write i2c OK [16:52:59]MH_I2C_Read... [16:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:59]Read from MH i2c: E2 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 03 00 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 03 00 7C 21 00 90 00 11 [16:52:59]RAPDU: 90 00 [16:52:59]wFMCommunicate OK [16:52:59]wFMCommunicate request_size=10 [16:52:59]MH_SAM_APDU [16:52:59]CAPDU: 80 0D 02 02 05 5E 29 FB 50 95 [16:52:59]Write to MH i2c: E2 0D 00 7D 21 80 0D 02 02 05 00 5E 29 FB 50 95 00 00 89 [16:52:59]Write i2c OK [16:52:59]MH_I2C_Read... [16:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:59]Read from MH i2c: E2 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 03 00 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 03 00 7D 21 00 90 00 12 [16:52:59]RAPDU: 90 00 [16:52:59]wFMCommunicate OK [16:52:59]wFMCommunicate request_size=4 [16:52:59]MH_SAM_APDU [16:52:59]CAPDU: 80 0D 03 02 [16:52:59]Write to MH i2c: E2 08 00 7E 21 80 0D 03 02 00 00 00 00 1A [16:52:59]Write i2c OK [16:52:59]MH_I2C_Read... [16:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:59]Read from MH i2c: E2 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 0B 00 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 0B 00 7E 21 00 7D F3 71 33 96 10 CB 71 90 00 11 [16:52:59]RAPDU: 7D F3 71 33 96 10 CB 71 90 00 [16:52:59]wFMCommunicate OK [16:52:59]SAM_PROTO_SignData done [16:52:59]FM_MakeSignedData done [16:52:59]CreateOFDProtocolMessage [16:52:59]wFMCommunicate request_size=4 [16:52:59]MH_SAM_APDU [16:52:59]CAPDU: 80 11 00 00 [16:52:59]Write to MH i2c: E2 08 00 7F 21 80 11 00 00 00 00 00 00 1A [16:52:59]Write i2c OK [16:52:59]MH_I2C_Read... [16:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:59]Read from MH i2c: E2 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 17 00 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 17 00 7F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6D [16:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:52:59]wFMCommunicate OK [16:52:59]CreateOFDProtocolMessage done [16:52:59]OFDSenderStorePacket 148920 [16:52:59]StoreOFDPacket docnum=148920 [16:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3A 86 07 01 35 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 03 01 00 00 F4 03 04 00 6B 46 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B8 45 02 00 35 04 06 00 B0 5E 29 FB 50 95 7D F3 71 33 96 10 CB 71 [16:52:59]CheckFolder [16:52:59]dirname=/storage/ofd_packets [16:52:59]CheckFolder done [16:52:59]ProducePacketName [16:52:59]name=ofd_packets/00148920 [16:52:59]NVStorageSaveData ofd_packets/00148920 [16:52:59]File name is /storage/ofd_packets/00148920 [16:52:59]Write 301 bytes [16:52:59]NVStorageSaveData done [16:52:59]OFDSenderStorePacket done [16:52:59]KKMCreateOFDPacket done [16:52:59]NVStorageSaveData kkm_last_timestamp [16:52:59]File name is /storage/kkm_last_timestamp [16:52:59]Write 4 bytes [16:52:59]NVStorageSaveData done [16:52:59]ExternCall_PrintAddStr [16:52:59]wPrintStart [16:52:59]Write to MH i2c: 01 00 00 80 21 A1 [16:52:59]Write i2c OK [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: 01 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: 01 07 00 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: 01 07 00 80 21 00 00 00 00 00 FF 0F B6 [16:52:59]RasterBufferAndPrint [16:52:59]line Счет N : (1)979852 [16:52:59]line ИНН: 02508201610067 [16:52:59]line Контрольно-Кассовый Чек [16:52:59]line ПРОДАЖА [16:52:59]line ТРК (МРК, ГНК) : 31 [16:52:59]line Товар: 2710124130 [16:52:59]line Аи-92-К-5 [16:52:59]line 4.490 * 66.90 [16:52:59]line = 300.38 [16:52:59]line НДС 12% НСП 1% [16:52:59]line > о реализуемом товаре [16:52:59]line ОКРУГЛЕНИЕ: -0.38 [16:52:59]line ИТОГО: 300.00 [16:52:59]line Внесено: 300.00 [16:52:59]line СДАЧА: 0.00 [16:52:59]line НСП 1% : 2.66 [16:52:59]line НДС 12% : 31.90 [16:52:59]line Наличными: 300.00 [16:52:59]line Безнал.: 0.00 [16:52:59]line Место: АЗС № 68 "Партнер Нефть" [16:52:59]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:52:59]line СНО: Общий режим [16:52:59]line Чек 259 04.06.2024 16:52 [16:52:59]line Смена: 368 ФФД: 1.0 [16:52:59]line ЗНМ: 0300000035 [16:52:59]line РНМ: 0000000000092720 [16:52:59]line Версия ККМ: 001 [16:52:59]line ФМ: 0000000000875057 [16:52:59]line ФД: 148920 [16:52:59]line ФПД: 193918477750421 [16:52:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T165259&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148920&fm=193918477750421&tin=02508201610067®Number=0000000000092720&sum=30000 [16:52:59]OFD Sender: Processing packet 148920 [packets to send 100, broken 99] [16:52:59]ProducePacketName [16:52:59]name=ofd_packets/00148920 [16:52:59]OFD Sender: To server: pG, [16:52:59]CommunicateWithHost lk.salyk.kg:30040 [16:52:59]ConnectInit lk.salyk.kg [16:52:59]written 0, free lines is 4095 [16:52:59]Connected sock=10 [16:52:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3A 86 07 01 35 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 03 01 00 00 F4 03 04 00 6B 46 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B8 45 02 00 35 04 06 00 B0 5E 29 FB 50 95 7D F3 71 33 96 10 CB 71 [16:53:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A9 75 47 00 74 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B8 45 02 00 F4 03 04 00 8E ED 5E 66 B6 04 01 00 00 CE 55 1F A0 DF 40 A5 5E [16:53:00]CommunicateWithHost err = 0 [16:53:00]CheckOFDResponse [16:53:00]1017 (14) - 77093643461234 [16:53:00]1041 (16) - 0000000000875057 [16:53:00]1040 (4) - 148920 [16:53:00]1012 (4) - 04.06.2024 10:33 [16:53:00]1206 (1) - 0 [16:53:00]OFD Sender: Remove packet 148920 [16:53:00]ProducePacketName [16:53:00]name=ofd_packets/00148920 [16:53:00]NVStorageDeleteData [16:53:00]Write to MH i2c: 01 00 00 AB 21 CC [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: 01 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: 01 07 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: 01 07 00 AB 21 00 00 00 00 00 6B 0C 4A [16:53:00]RasterBufferAndPrint [16:53:00]line [16:53:00]line [16:53:00]line [16:53:00]line [16:53:00]line [16:53:00]written 0, free lines is 3182 [16:53:00]MH_Cut [16:53:00]Write to MH i2c: D1 01 00 B2 21 01 A5 [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: D1 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: D1 01 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: D1 01 00 B2 21 00 A4 [16:53:00]Write to MH i2c: 01 00 00 B3 21 D4 [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]OFD Sender: No OFD packet to send [16:53:01]*** Cut start [16:53:01]*** Partial cut [16:53:01]*** CUTSNS_PIN = 1 [16:53:01]*** CUTSNS_PIN = 0 [16:53:01]*** Brake cut motor [16:53:02]Read from MH i2c: 01 [16:53:02]MH_I2C_Read... [16:53:02]*** Stop cut motor [16:53:02]*** Cut end [16:53:02]Read from MH i2c: 01 07 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: 01 07 00 B3 21 00 00 00 00 00 FF 0F E9 [16:53:02]process_action close_receipt done [16:53:02]requested_data is exist [16:53:02]produce_requested_data [16:53:02]requested_item fm.sn is exist - process it [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 11 00 00 [16:53:02]Write to MH i2c: E2 08 00 B4 21 80 11 00 00 00 00 00 00 4F [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:02]Read from MH i2c: E2 17 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 17 00 B4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A2 [16:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:53:02]wFMCommunicate OK [16:53:02]requested_item fd.num is exist - process it [16:53:02]SAM_PROTO_GetFieldsCounters [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 13 00 00 [16:53:02]Write to MH i2c: E2 08 00 B5 21 80 13 00 00 00 00 00 00 52 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 62 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 62 00 B5 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [16:53:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:02]wFMCommunicate OK [16:53:02]SAM_PROTO_GetFieldsCounters done [16:53:02]requested_item shift.num is exist - process it [16:53:02]requested_item shift.opened is exist - process it [16:53:02]req_shift_opened [16:53:02]FM_GetShiftState [16:53:02]SAM_PROTO_GetShiftState [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 13 01 00 [16:53:02]Write to MH i2c: E2 08 00 B6 21 80 13 01 00 00 00 00 00 54 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 0E 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 0E 00 B6 21 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 17 [16:53:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:53:02]wFMCommunicate OK [16:53:02]SAM_PROTO_GetShiftState done [16:53:02]FM_GetShiftState done [16:53:02]req_shift_opened done [16:53:02]requested_item shift.open_date is exist - process it [16:53:02]req_shift_open_date [16:53:02]req_shift_open_date done [16:53:02]produce_requested_data done [16:53:02]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148920,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:53:02]process_action_free close_receipt [16:53:02]json_value_free [16:53:02]json_value_free done [16:53:02]process_json_proto returns [16:53:02]Send response to host [16:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148920,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:53:02]free response buf [16:53:02]execute_script done [16:53:02]execute_script returns [16:53:02]free content buf [16:53:02]Sock 9.Close socket [16:53:02]Sock 9.Thread stoped [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]accept exits with 7 [16:55:40]New connection [16:55:40]New thread 3067407716 created [16:55:40]Thread 3067264356 joined [16:55:40]Waiting for new connection... [16:55:40] Sock 7.Parse request [16:55:40]Sock 7.Check first char [16:55:40]Sock 7.First char is OK [16:55:40]request: POST /json_proto HTTP/1.0 [16:55:40]Method: POST [16:55:40]URL: /json_proto [16:55:40]Method is POST - this is cgi request [16:55:40]url: /json_proto [16:55:40]query_string will be loaded in cgi processing [16:55:40]execute_cgi json_proto POST (null) [16:55:40]execute_cgi path=json_proto method=POST [16:55:40]POST find Content-Length [16:55:40]Host: 172.17.38.4:8080 [16:55:40]Content-Length: 621 [16:55:40]Content-Type: application/json [16:55:40] [16:55:40]POST finish read [16:55:40]Found Content-Length = 621 [16:55:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11907", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:40]execute_script... [16:55:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11907", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:40]POST & json_proto [16:55:40]process_json_proto [16:55:40]json parsed OK: [16:55:40]protocol is kg_v1.0 [16:55:40]action value=close_receipt [16:55:40]process_action close_receipt [16:55:40]cmd_close_receipt [16:55:40]MH_GetDate [16:55:40]Write to MH i2c: F0 00 00 B7 21 C7 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: F0 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: F0 09 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: F0 09 00 B7 21 00 0E 47 5F 66 CC 51 87 64 F2 [16:55:40]GetLastDocTimeStamp 1717519979 [16:55:40]current date 1717520142 [16:55:40]FM_GetShiftState [16:55:40]SAM_PROTO_GetShiftState [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 13 01 00 [16:55:40]Write to MH i2c: E2 08 00 B8 21 80 13 01 00 00 00 00 00 56 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 0E 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 0E 00 B8 21 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 19 [16:55:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:55:40]wFMCommunicate OK [16:55:40]SAM_PROTO_GetShiftState done [16:55:40]FM_GetShiftState done [16:55:40]opened in 1717460629 [16:55:40]opened+sec_in_day 1717547029 [16:55:40]quantity*price = 15100 [16:55:40]sum+1 = 15101 [16:55:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 260 04.06.2024 16:55 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148921 ФПД: 224072306301138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T165542&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148921&fm=224072306301138&tin=02508201610067®Number=0000000000092720&sum=15100 0 [16:55:41]StoreToDocumentArchive [16:55:41]shift 368 fd 148921 [16:55:41]save to /storage/0368/doc_00148921 [16:55:41]save last doc name /storage/0368/doc_00148921 to /storage/kkm_last_doc_name [16:55:41]save OK [16:55:41]Clear old archive folders... [16:55:41]ProcessDocumentItem done err = 0, tmpTLVsize=274 [16:55:41]tlvbuf is 00476850 [16:55:41]SAM_PROTO_ClearQueue [16:55:41]wFMCommunicate request_size=4 [16:55:41]MH_SAM_APDU [16:55:41]CAPDU: 80 09 00 00 [16:55:41]Write to MH i2c: E2 08 00 C5 21 80 09 00 00 00 00 00 00 58 [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:41]Read from MH i2c: E2 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: E2 03 00 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: E2 03 00 C5 21 00 90 00 5A [16:55:41]RAPDU: 90 00 [16:55:41]wFMCommunicate OK [16:55:41]SAM_PROTO_ClearQueue done [16:55:41]KKMCreateOFDPacket [16:55:41]OFDProtocolAddRootSTLVToBuf [16:55:41]FM_MakeSignedData [16:55:41]FM_MakeSignedData [16:55:41]SAM_PROTO_SignData [16:55:41]wFMCommunicate request_size=4 [16:55:41]MH_SAM_APDU [16:55:41]CAPDU: 80 0D 01 02 [16:55:41]Write to MH i2c: E2 08 00 C6 21 80 0D 01 02 00 00 00 00 60 [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:41]Read from MH i2c: E2 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: E2 03 00 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: E2 03 00 C6 21 00 90 00 5B [16:55:41]RAPDU: 90 00 [16:55:41]wFMCommunicate OK [16:55:41]wFMCommunicate request_size=255 [16:55:41]MH_SAM_APDU [16:55:41]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 04 01 00 00 F4 03 04 00 0E 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 [16:55:41]Write to MH i2c: E2 02 01 C7 21 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 04 01 00 00 F4 03 04 00 0E 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 00 00 B4 [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:41]Read from MH i2c: E2 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: E2 03 00 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: E2 03 00 C7 21 00 90 00 5C [16:55:41]RAPDU: 90 00 [16:55:41]wFMCommunicate OK [16:55:41]wFMCommunicate request_size=33 [16:55:41]MH_SAM_APDU [16:55:41]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B9 45 02 00 35 04 06 00 CB CA E6 38 98 D2 [16:55:41]Write to MH i2c: E2 24 00 C8 21 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B9 45 02 00 35 04 06 00 CB CA E6 38 98 D2 00 00 0F [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:42]Read from MH i2c: E2 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 03 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 03 00 C8 21 00 90 00 5D [16:55:42]RAPDU: 90 00 [16:55:42]wFMCommunicate OK [16:55:42]wFMCommunicate request_size=4 [16:55:42]MH_SAM_APDU [16:55:42]CAPDU: 80 0D 03 02 [16:55:42]Write to MH i2c: E2 08 00 C9 21 80 0D 03 02 00 00 00 00 65 [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:42]Read from MH i2c: E2 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 0B 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 0B 00 C9 21 00 B1 07 B8 A3 9E 76 FD 37 90 00 C1 [16:55:42]RAPDU: B1 07 B8 A3 9E 76 FD 37 90 00 [16:55:42]wFMCommunicate OK [16:55:42]SAM_PROTO_SignData done [16:55:42]FM_MakeSignedData done [16:55:42]CreateOFDProtocolMessage [16:55:42]wFMCommunicate request_size=4 [16:55:42]MH_SAM_APDU [16:55:42]CAPDU: 80 11 00 00 [16:55:42]Write to MH i2c: E2 08 00 CA 21 80 11 00 00 00 00 00 00 65 [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:42]Read from MH i2c: E2 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 17 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 17 00 CA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B8 [16:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:55:42]wFMCommunicate OK [16:55:42]CreateOFDProtocolMessage done [16:55:42]OFDSenderStorePacket 148921 [16:55:42]StoreOFDPacket docnum=148921 [16:55:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 39 00 1E 01 BC 4C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 04 01 00 00 F4 03 04 00 0E 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B9 45 02 00 35 04 06 00 CB CA E6 38 98 D2 B1 07 B8 A3 9E 76 FD 37 [16:55:42]CheckFolder [16:55:42]dirname=/storage/ofd_packets [16:55:42]CheckFolder done [16:55:42]ProducePacketName [16:55:42]name=ofd_packets/00148921 [16:55:42]NVStorageSaveData ofd_packets/00148921 [16:55:42]File name is /storage/ofd_packets/00148921 [16:55:42]Write 324 bytes [16:55:42]NVStorageSaveData done [16:55:42]OFDSenderStorePacket done [16:55:42]KKMCreateOFDPacket done [16:55:42]NVStorageSaveData kkm_last_timestamp [16:55:42]File name is /storage/kkm_last_timestamp [16:55:42]Write 4 bytes [16:55:42]NVStorageSaveData done [16:55:42]OFD Sender: Processing packet 148921 [packets to send 100, broken 99] [16:55:42]ProducePacketName [16:55:42]name=ofd_packets/00148921 [16:55:42]OFD Sender: To server: pG, [16:55:42]CommunicateWithHost lk.salyk.kg:30040 [16:55:42]ConnectInit lk.salyk.kg [16:55:42]ExternCall_PrintAddStr [16:55:42]wPrintStart [16:55:42]Write to MH i2c: 01 00 00 CB 21 EC [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: 01 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: 01 07 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: 01 07 00 CB 21 00 00 00 00 00 FF 0F 01 [16:55:42]RasterBufferAndPrint [16:55:42]line Счет N : (3)11907 [16:55:42]line ИНН: 02508201610067 [16:55:42]line Контрольно-Кассовый Чек [16:55:42]line ПРОДАЖА [16:55:42]line Товар: 48741958 [16:55:42]line Сигареты Parliament Aqua Blue [16:55:42]line 1.000 * 151.00 [16:55:42]line = 151.00 [16:55:42]line НДС 12% НСП 1% [16:55:42]line > о реализуемом товаре [16:55:42]line ИТОГО: 151.00 [16:55:42]line НСП 1% : 1.34 [16:55:42]line НДС 12% : 16.03 [16:55:42]line Наличными: 151.00 [16:55:42]line Безнал.: 0.00 [16:55:42]line Место: АЗС № 68 "Партнер Нефть" [16:55:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:55:42]line СНО: Общий режим [16:55:42]line Чек 260 04.06.2024 16:55 [16:55:42]line Смена: 368 ФФД: 1.0 [16:55:42]line ЗНМ: 0300000035 [16:55:42]line РНМ: 0000000000092720 [16:55:42]line Версия ККМ: 001 [16:55:42]line ФМ: 0000000000875057 [16:55:42]line ФД: 148921 [16:55:42]line ФПД: 224072306301138 [16:55:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T165542&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148921&fm=224072306301138&tin=02508201610067®Number=0000000000092720&sum=15100 [16:55:42]line 0 [16:55:42]Connected sock=11 [16:55:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 39 00 1E 01 BC 4C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 04 01 00 00 F4 03 04 00 0E 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B9 45 02 00 35 04 06 00 CB CA E6 38 98 D2 B1 07 B8 A3 9E 76 FD 37 [16:55:42]written 0, free lines is 4095 [16:55:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C0 AD 47 00 11 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 B9 45 02 00 F4 03 04 00 31 EE 5E 66 B6 04 01 00 00 FA 42 AB 88 3D 70 0F D7 [16:55:42]CommunicateWithHost err = 0 [16:55:42]CheckOFDResponse [16:55:42]1017 (14) - 77093643461234 [16:55:42]1041 (16) - 0000000000875057 [16:55:42]1040 (4) - 148921 [16:55:42]1012 (4) - 04.06.2024 10:36 [16:55:42]1206 (1) - 0 [16:55:42]OFD Sender: Remove packet 148921 [16:55:42]ProducePacketName [16:55:42]name=ofd_packets/00148921 [16:55:42]NVStorageDeleteData [16:55:42]Write to MH i2c: 01 00 00 F4 21 15 [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: 01 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: 01 07 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: 01 07 00 F4 21 00 00 00 00 00 66 0C 8E [16:55:42]RasterBufferAndPrint [16:55:42]line [16:55:42]line [16:55:42]line [16:55:42]line [16:55:42]line [16:55:42]written 0, free lines is 3177 [16:55:42]MH_Cut [16:55:42]Write to MH i2c: D1 01 00 FB 21 01 EE [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: D1 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: D1 01 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: D1 01 00 FB 21 00 ED [16:55:42]Write to MH i2c: 01 00 00 FC 21 1D [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:43]OFD Sender: No OFD packet to send [16:55:44]*** Cut start [16:55:44]*** Partial cut [16:55:44]*** CUTSNS_PIN = 1 [16:55:44]*** CUTSNS_PIN = 0 [16:55:44]*** Brake cut motor [16:55:44]Read from MH i2c: 01 [16:55:44]MH_I2C_Read... [16:55:44]*** Stop cut motor [16:55:44]*** Cut end [16:55:44]Read from MH i2c: 01 07 00 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: 01 07 00 FC 21 00 00 00 00 00 FF 0F 32 [16:55:44]process_action close_receipt done [16:55:44]requested_data is exist [16:55:44]produce_requested_data [16:55:44]requested_item fm.sn is exist - process it [16:55:44]wFMCommunicate request_size=4 [16:55:44]MH_SAM_APDU [16:55:44]CAPDU: 80 11 00 00 [16:55:44]Write to MH i2c: E2 08 00 FD 21 80 11 00 00 00 00 00 00 98 [16:55:44]Write i2c OK [16:55:44]MH_I2C_Read... [16:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:44]Read from MH i2c: E2 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: E2 17 00 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: E2 17 00 FD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EB [16:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:55:44]wFMCommunicate OK [16:55:44]requested_item fd.num is exist - process it [16:55:44]SAM_PROTO_GetFieldsCounters [16:55:44]wFMCommunicate request_size=4 [16:55:44]MH_SAM_APDU [16:55:44]CAPDU: 80 13 00 00 [16:55:44]Write to MH i2c: E2 08 00 FE 21 80 13 00 00 00 00 00 00 9B [16:55:44]Write i2c OK [16:55:44]MH_I2C_Read... [16:55:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:44]Read from MH i2c: E2 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: E2 62 00 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: E2 62 00 FE 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B9 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [16:55:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 B9 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:44]wFMCommunicate OK [16:55:44]SAM_PROTO_GetFieldsCounters done [16:55:44]requested_item shift.num is exist - process it [16:55:44]requested_item shift.opened is exist - process it [16:55:44]req_shift_opened [16:55:44]FM_GetShiftState [16:55:44]SAM_PROTO_GetShiftState [16:55:44]wFMCommunicate request_size=4 [16:55:44]MH_SAM_APDU [16:55:44]CAPDU: 80 13 01 00 [16:55:44]Write to MH i2c: E2 08 00 FF 21 80 13 01 00 00 00 00 00 9D [16:55:44]Write i2c OK [16:55:44]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 0E 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 0E 00 FF 21 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 60 [16:55:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:55:45]wFMCommunicate OK [16:55:45]SAM_PROTO_GetShiftState done [16:55:45]FM_GetShiftState done [16:55:45]req_shift_opened done [16:55:45]requested_item shift.open_date is exist - process it [16:55:45]req_shift_open_date [16:55:45]req_shift_open_date done [16:55:45]produce_requested_data done [16:55:45]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148921,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:55:45]process_action_free close_receipt [16:55:45]json_value_free [16:55:45]json_value_free done [16:55:45]process_json_proto returns [16:55:45]Send response to host [16:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148921,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:55:45]free response buf [16:55:45]execute_script done [16:55:45]execute_script returns [16:55:45]free content buf [16:55:45]Sock 7.Close socket [16:55:45]Sock 7.Thread stoped [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:04]accept exits with 9 [16:56:04]New connection [16:56:04]New thread 3067264356 created [16:56:04]Thread 3067407716 joined [16:56:04]Waiting for new connection... [16:56:04] Sock 9.Parse request [16:56:04]Sock 9.Check first char [16:56:04]Sock 9.First char is OK [16:56:04]request: POST /json_proto HTTP/1.0 [16:56:04]Method: POST [16:56:04]URL: /json_proto [16:56:04]Method is POST - this is cgi request [16:56:04]url: /json_proto [16:56:04]query_string will be loaded in cgi processing [16:56:04]execute_cgi json_proto POST (null) [16:56:04]execute_cgi path=json_proto method=POST [16:56:04]POST find Content-Length [16:56:04]Host: 172.17.38.4:8080 [16:56:04]Content-Length: 674 [16:56:04]Content-Type: application/json [16:56:04] [16:56:04]POST finish read [16:56:04]Found Content-Length = 674 [16:56:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 3.430, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:04]execute_script... [16:56: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)979853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 3.430, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:04]POST & json_proto [16:56:04]process_json_proto [16:56:04]json parsed OK: [16:56:04]protocol is kg_v1.0 [16:56:04]action value=close_receipt [16:56:04]process_action close_receipt [16:56:04]cmd_close_receipt [16:56:04]MH_GetDate [16:56:04]Write to MH i2c: F0 00 00 00 22 11 [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: F0 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: F0 09 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: F0 09 00 00 22 00 26 47 5F 66 CC 51 87 64 54 [16:56:04]GetLastDocTimeStamp 1717520142 [16:56:04]current date 1717520166 [16:56:04]FM_GetShiftState [16:56:04]SAM_PROTO_GetShiftState [16:56:04]wFMCommunicate request_size=4 [16:56:04]MH_SAM_APDU [16:56:04]CAPDU: 80 13 01 00 [16:56:04]Write to MH i2c: E2 08 00 01 22 80 13 01 00 00 00 00 00 A0 [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:04]Read from MH i2c: E2 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 0E 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 0E 00 01 22 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 63 [16:56:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:56:04]wFMCommunicate OK [16:56:04]SAM_PROTO_GetShiftState done [16:56:04]FM_GetShiftState done [16:56:04]opened in 1717460629 [16:56:04]opened+sec_in_day 1717547029 [16:56:04]quantity*price = 25004 [16:56:04]sum+1 = 25006 [16:56:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 261 04.06.2024 16:56 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148922 ФПД: 103640230385792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T165606&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148922&fm=103640230385792&tin=02508201610067®Number=0000000000092720&sum=25000 [16:56:06]StoreToDocumentArchive [16:56:06]shift 368 fd 148922 [16:56:06]save to /storage/0368/doc_00148922 [16:56:06]save last doc name /storage/0368/doc_00148922 to /storage/kkm_last_doc_name [16:56:06]save OK [16:56:06]Clear old archive folders... [16:56:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:56:06]tlvbuf is B6F49EA0 [16:56:06]SAM_PROTO_ClearQueue [16:56:06]wFMCommunicate request_size=4 [16:56:06]MH_SAM_APDU [16:56:06]CAPDU: 80 09 00 00 [16:56:06]Write to MH i2c: E2 08 00 0E 22 80 09 00 00 00 00 00 00 A2 [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:06]Read from MH i2c: E2 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 03 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 03 00 0E 22 00 90 00 A4 [16:56:06]RAPDU: 90 00 [16:56:06]wFMCommunicate OK [16:56:06]SAM_PROTO_ClearQueue done [16:56:06]KKMCreateOFDPacket [16:56:06]OFDProtocolAddRootSTLVToBuf [16:56:06]FM_MakeSignedData [16:56:06]FM_MakeSignedData [16:56:06]SAM_PROTO_SignData [16:56:06]wFMCommunicate request_size=4 [16:56:06]MH_SAM_APDU [16:56:06]CAPDU: 80 0D 01 02 [16:56:06]Write to MH i2c: E2 08 00 0F 22 80 0D 01 02 00 00 00 00 AA [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:06]Read from MH i2c: E2 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 03 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 03 00 0F 22 00 90 00 A5 [16:56:06]RAPDU: 90 00 [16:56:06]wFMCommunicate OK [16:56:06]wFMCommunicate request_size=255 [16:56:06]MH_SAM_APDU [16:56:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 26 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BA 45 02 00 35 04 06 00 5E 42 9F 1D [16:56:06]Write to MH i2c: E2 02 01 10 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 26 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BA 45 02 00 35 04 06 00 5E 42 9F 1D 00 00 77 [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:06]Read from MH i2c: E2 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 03 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 03 00 10 22 00 90 00 A6 [16:56:06]RAPDU: 90 00 [16:56:06]wFMCommunicate OK [16:56:06]wFMCommunicate request_size=7 [16:56:06]MH_SAM_APDU [16:56:06]CAPDU: 80 0D 02 02 02 D8 80 [16:56:06]Write to MH i2c: E2 0A 00 11 22 80 0D 02 02 02 00 D8 80 00 00 09 [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:06]Read from MH i2c: E2 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 03 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 03 00 11 22 00 90 00 A7 [16:56:06]RAPDU: 90 00 [16:56:06]wFMCommunicate OK [16:56:06]wFMCommunicate request_size=4 [16:56:06]MH_SAM_APDU [16:56:06]CAPDU: 80 0D 03 02 [16:56:06]Write to MH i2c: E2 08 00 12 22 80 0D 03 02 00 00 00 00 AF [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:06]Read from MH i2c: E2 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 0B 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 0B 00 12 22 00 2A A2 F9 08 0A 24 A3 2F 90 00 7D [16:56:06]RAPDU: 2A A2 F9 08 0A 24 A3 2F 90 00 [16:56:06]wFMCommunicate OK [16:56:06]SAM_PROTO_SignData done [16:56:06]FM_MakeSignedData done [16:56:06]CreateOFDProtocolMessage [16:56:06]wFMCommunicate request_size=4 [16:56:06]MH_SAM_APDU [16:56:06]CAPDU: 80 11 00 00 [16:56:06]Write to MH i2c: E2 08 00 13 22 80 11 00 00 00 00 00 00 AF [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:06]Read from MH i2c: E2 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 17 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: E2 17 00 13 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 02 [16:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:56:06]wFMCommunicate OK [16:56:06]CreateOFDProtocolMessage done [16:56:06]OFDSenderStorePacket 148922 [16:56:06]StoreOFDPacket docnum=148922 [16:56:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 8C 30 04 01 9F 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 26 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BA 45 02 00 35 04 06 00 5E 42 9F 1D D8 80 2A A2 F9 08 0A 24 A3 2F [16:56:06]CheckFolder [16:56:06]dirname=/storage/ofd_packets [16:56:06]CheckFolder done [16:56:06]ProducePacketName [16:56:06]name=ofd_packets/00148922 [16:56:06]NVStorageSaveData ofd_packets/00148922 [16:56:06]File name is /storage/ofd_packets/00148922 [16:56:06]Write 298 bytes [16:56:06]NVStorageSaveData done [16:56:06]OFDSenderStorePacket done [16:56:06]KKMCreateOFDPacket done [16:56:06]NVStorageSaveData kkm_last_timestamp [16:56:06]File name is /storage/kkm_last_timestamp [16:56:06]Write 4 bytes [16:56:06]NVStorageSaveData done [16:56:06]ExternCall_PrintAddStr [16:56:06]wPrintStart [16:56:06]Write to MH i2c: 01 00 00 14 22 36 [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 07 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: 01 07 00 14 22 00 00 00 00 00 FF 0F 4B [16:56:06]RasterBufferAndPrint [16:56:06]line Счет N : (1)979853 [16:56:06]line ИНН: 02508201610067 [16:56:06]line Контрольно-Кассовый Чек [16:56:06]line ПРОДАЖА [16:56:06]line ТРК (МРК, ГНК) : 52 [16:56:06]line Товар: 2710194210 [16:56:06]line ДТ-К-5 [16:56:06]line 3.430 * 72.90 [16:56:06]line = 250.05 [16:56:06]line НДС 12% НСП 1% [16:56:06]line > о реализуемом товаре [16:56:06]line ОКРУГЛЕНИЕ: -0.05 [16:56:06]line ИТОГО: 250.00 [16:56:06]line Внесено: 250.00 [16:56:06]line СДАЧА: 0.00 [16:56:06]line НСП 1% : 2.21 [16:56:06]line НДС 12% : 26.55 [16:56:06]line Наличными: 250.00 [16:56:06]line Безнал.: 0.00 [16:56:06]line Место: АЗС № 68 "Партнер Нефть" [16:56:06]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:56:06]line СНО: Общий режим [16:56:06]line Чек 261 04.06.2024 16:56 [16:56:06]line Смена: 368 ФФД: 1.0 [16:56:06]line ЗНМ: 0300000035 [16:56:06]line РНМ: 0000000000092720 [16:56:06]line Версия ККМ: 001 [16:56:06]line ФМ: 0000000000875057 [16:56:06]line ФД: 148922 [16:56:06]line ФПД: 103640230385792 [16:56:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T165606&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148922&fm=103640230385792&tin=02508201610067®Number=0000000000092720&sum=25000 [16:56:06]OFD Sender: Processing packet 148922 [packets to send 100, broken 99] [16:56:06]ProducePacketName [16:56:06]name=ofd_packets/00148922 [16:56:06]OFD Sender: To server: pG, [16:56:06]CommunicateWithHost lk.salyk.kg:30040 [16:56:06]ConnectInit lk.salyk.kg [16:56:06]written 0, free lines is 4095 [16:56:07]Connected sock=10 [16:56:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 8C 30 04 01 9F 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 26 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BA 45 02 00 35 04 06 00 5E 42 9F 1D D8 80 2A A2 F9 08 0A 24 A3 2F [16:56:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BA BE 47 00 52 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 38 37 35 30 35 37 10 04 04 00 BA 45 02 00 F4 03 04 00 4A EE 5E 66 B6 04 01 00 00 27 CE D2 59 26 25 F7 8C [16:56:07]CommunicateWithHost err = 0 [16:56:07]CheckOFDResponse [16:56:07]1017 (14) - 77093643461234 [16:56:07]1041 (16) - 0000000000875057 [16:56:07]1040 (4) - 148922 [16:56:07]1012 (4) - 04.06.2024 10:36 [16:56:07]1206 (1) - 0 [16:56:07]OFD Sender: Remove packet 148922 [16:56:07]ProducePacketName [16:56:07]name=ofd_packets/00148922 [16:56:07]NVStorageDeleteData [16:56:07]Write to MH i2c: 01 00 00 3F 22 61 [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 07 00 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: 01 07 00 3F 22 00 00 00 00 00 70 0C E4 [16:56:07]RasterBufferAndPrint [16:56:07]line [16:56:07]line [16:56:07]line [16:56:07]line [16:56:07]line [16:56:07]written 0, free lines is 3187 [16:56:07]MH_Cut [16:56:07]Write to MH i2c: D1 01 00 46 22 01 3A [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: D1 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: D1 01 00 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: D1 01 00 46 22 00 39 [16:56:07]Write to MH i2c: 01 00 00 47 22 69 [16:56:07]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]OFD Sender: No OFD packet to send [16:56:08]*** Cut start [16:56:08]*** Partial cut [16:56:08]*** CUTSNS_PIN = 1 [16:56:08]*** CUTSNS_PIN = 0 [16:56:08]*** Brake cut motor [16:56:09]Read from MH i2c: 01 [16:56:09]MH_I2C_Read... [16:56:09]*** Stop cut motor [16:56:09]*** Cut end [16:56:09]Read from MH i2c: 01 07 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 07 00 47 22 00 00 00 00 00 FF 0F 7E [16:56:09]process_action close_receipt done [16:56:09]requested_data is exist [16:56:09]produce_requested_data [16:56:09]requested_item fm.sn is exist - process it [16:56:09]wFMCommunicate request_size=4 [16:56:09]MH_SAM_APDU [16:56:09]CAPDU: 80 11 00 00 [16:56:09]Write to MH i2c: E2 08 00 48 22 80 11 00 00 00 00 00 00 E4 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:09]Read from MH i2c: E2 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 17 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 17 00 48 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 37 [16:56:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:56:09]wFMCommunicate OK [16:56:09]requested_item fd.num is exist - process it [16:56:09]SAM_PROTO_GetFieldsCounters [16:56:09]wFMCommunicate request_size=4 [16:56:09]MH_SAM_APDU [16:56:09]CAPDU: 80 13 00 00 [16:56:09]Write to MH i2c: E2 08 00 49 22 80 13 00 00 00 00 00 00 E7 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:09]Read from MH i2c: E2 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 62 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 62 00 49 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BA 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [16:56:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BA 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:09]wFMCommunicate OK [16:56:09]SAM_PROTO_GetFieldsCounters done [16:56:09]requested_item shift.num is exist - process it [16:56:09]requested_item shift.opened is exist - process it [16:56:09]req_shift_opened [16:56:09]FM_GetShiftState [16:56:09]SAM_PROTO_GetShiftState [16:56:09]wFMCommunicate request_size=4 [16:56:09]MH_SAM_APDU [16:56:09]CAPDU: 80 13 01 00 [16:56:09]Write to MH i2c: E2 08 00 4A 22 80 13 01 00 00 00 00 00 E9 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:09]Read from MH i2c: E2 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 0E 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: E2 0E 00 4A 22 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AC [16:56:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:56:09]wFMCommunicate OK [16:56:09]SAM_PROTO_GetShiftState done [16:56:09]FM_GetShiftState done [16:56:09]req_shift_opened done [16:56:09]requested_item shift.open_date is exist - process it [16:56:09]req_shift_open_date [16:56:09]req_shift_open_date done [16:56:09]produce_requested_data done [16:56:09]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148922,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:56:09]process_action_free close_receipt [16:56:09]json_value_free [16:56:09]json_value_free done [16:56:09]process_json_proto returns [16:56:09]Send response to host [16:56:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148922,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:56:09]free response buf [16:56:09]execute_script done [16:56:09]execute_script returns [16:56:09]free content buf [16:56:09]Sock 9.Close socket [16:56:09]Sock 9.Thread stoped [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:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:50]accept exits with 7 [16:58:50]New connection [16:58:50]New thread 3067407716 created [16:58:50]Thread 3067264356 joined [16:58:50]Waiting for new connection... [16:58:50] Sock 7.Parse request [16:58:50]Sock 7.Check first char [16:58:50]Sock 7.First char is OK [16:58:50]request: POST /json_proto HTTP/1.0 [16:58:50]Method: POST [16:58:50]URL: /json_proto [16:58:50]Method is POST - this is cgi request [16:58:50]url: /json_proto [16:58:50]query_string will be loaded in cgi processing [16:58:50]execute_cgi json_proto POST (null) [16:58:50]execute_cgi path=json_proto method=POST [16:58:50]POST find Content-Length [16:58:50]Host: 172.17.38.4:8080 [16:58:50]Content-Length: 678 [16:58:50]Content-Type: application/json [16:58:50] [16:58:50]POST finish read [16:58:50]Found Content-Length = 678 [16:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.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" ] } } [16:58:50]execute_script... [16:58: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)979854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.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" ] } } [16:58:50]POST & json_proto [16:58:50]process_json_proto [16:58:50]json parsed OK: [16:58:50]protocol is kg_v1.0 [16:58:50]action value=close_receipt [16:58:50]process_action close_receipt [16:58:50]cmd_close_receipt [16:58:50]MH_GetDate [16:58:50]Write to MH i2c: F0 00 00 4B 22 5C [16:58:50]Write i2c OK [16:58:50]MH_I2C_Read... [16:58:50]Read from MH i2c: F0 [16:58:50]MH_I2C_Read... [16:58:50]Read from MH i2c: F0 09 00 [16:58:50]MH_I2C_Read... [16:58:50]Read from MH i2c: F0 09 00 4B 22 00 CC 47 5F 66 CC 51 87 64 45 [16:58:50]GetLastDocTimeStamp 1717520166 [16:58:50]current date 1717520332 [16:58:50]FM_GetShiftState [16:58:50]SAM_PROTO_GetShiftState [16:58:50]wFMCommunicate request_size=4 [16:58:50]MH_SAM_APDU [16:58:50]CAPDU: 80 13 01 00 [16:58:50]Write to MH i2c: E2 08 00 4C 22 80 13 01 00 00 00 00 00 EB [16:58:50]Write i2c OK [16:58:50]MH_I2C_Read... [16:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:50]Read from MH i2c: E2 [16:58:50]MH_I2C_Read... [16:58:50]Read from MH i2c: E2 0E 00 [16:58:50]MH_I2C_Read... [16:58:50]Read from MH i2c: E2 0E 00 4C 22 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AE [16:58:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:58:50]wFMCommunicate OK [16:58:50]SAM_PROTO_GetShiftState done [16:58:50]FM_GetShiftState done [16:58:50]opened in 1717460629 [16:58:50]opened+sec_in_day 1717547029 [16:58:50]quantity*price = 80012 [16:58:50]sum+1 = 80013 [16:58:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 262 04.06.2024 16:58 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148923 ФПД: 38297474184306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T165852&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148923&fm=38297474184306&tin=02508201610067®Number=0000000000092720&sum=80000 [16:58:51]StoreToDocumentArchive [16:58:51]shift 368 fd 148923 [16:58:51]save to /storage/0368/doc_00148923 [16:58:51]save last doc name /storage/0368/doc_00148923 to /storage/kkm_last_doc_name [16:58:51]save OK [16:58:51]Clear old archive folders... [16:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:51]tlvbuf is 004E9710 [16:58:51]SAM_PROTO_ClearQueue [16:58:51]wFMCommunicate request_size=4 [16:58:51]MH_SAM_APDU [16:58:51]CAPDU: 80 09 00 00 [16:58:51]Write to MH i2c: E2 08 00 59 22 80 09 00 00 00 00 00 00 ED [16:58:51]Write i2c OK [16:58:51]MH_I2C_Read... [16:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:51]Read from MH i2c: E2 [16:58:51]MH_I2C_Read... [16:58:51]Read from MH i2c: E2 03 00 [16:58:51]MH_I2C_Read... [16:58:51]Read from MH i2c: E2 03 00 59 22 00 90 00 EF [16:58:51]RAPDU: 90 00 [16:58:51]wFMCommunicate OK [16:58:51]SAM_PROTO_ClearQueue done [16:58:51]KKMCreateOFDPacket [16:58:51]OFDProtocolAddRootSTLVToBuf [16:58:51]FM_MakeSignedData [16:58:51]FM_MakeSignedData [16:58:51]SAM_PROTO_SignData [16:58:51]wFMCommunicate request_size=4 [16:58:51]MH_SAM_APDU [16:58:51]CAPDU: 80 0D 01 02 [16:58:51]Write to MH i2c: E2 08 00 5A 22 80 0D 01 02 00 00 00 00 F5 [16:58:51]Write i2c OK [16:58:51]MH_I2C_Read... [16:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:51]Read from MH i2c: E2 [16:58:51]MH_I2C_Read... [16:58:51]Read from MH i2c: E2 03 00 [16:58:51]MH_I2C_Read... [16:58:51]Read from MH i2c: E2 03 00 5A 22 00 90 00 F0 [16:58:51]RAPDU: 90 00 [16:58:51]wFMCommunicate OK [16:58:51]wFMCommunicate request_size=255 [16:58:51]MH_SAM_APDU [16:58:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 06 01 00 00 F4 03 04 00 CC 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BB 45 02 00 35 04 06 00 22 [16:58:51]Write to MH i2c: E2 02 01 5B 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 06 01 00 00 F4 03 04 00 CC 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BB 45 02 00 35 04 06 00 22 00 00 DF [16:58:51]Write i2c OK [16:58:51]MH_I2C_Read... [16:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:51]Read from MH i2c: E2 [16:58:51]MH_I2C_Read... [16:58:51]Read from MH i2c: E2 03 00 [16:58:51]MH_I2C_Read... [16:58:51]Read from MH i2c: E2 03 00 5B 22 00 90 00 F1 [16:58:51]RAPDU: 90 00 [16:58:51]wFMCommunicate OK [16:58:51]wFMCommunicate request_size=10 [16:58:51]MH_SAM_APDU [16:58:51]CAPDU: 80 0D 02 02 05 D4 D3 58 34 72 [16:58:51]Write to MH i2c: E2 0D 00 5C 22 80 0D 02 02 05 00 D4 D3 58 34 72 00 00 A7 [16:58:51]Write i2c OK [16:58:51]MH_I2C_Read... [16:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:52]Read from MH i2c: E2 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: E2 03 00 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: E2 03 00 5C 22 00 90 00 F2 [16:58:52]RAPDU: 90 00 [16:58:52]wFMCommunicate OK [16:58:52]wFMCommunicate request_size=4 [16:58:52]MH_SAM_APDU [16:58:52]CAPDU: 80 0D 03 02 [16:58:52]Write to MH i2c: E2 08 00 5D 22 80 0D 03 02 00 00 00 00 FA [16:58:52]Write i2c OK [16:58:52]MH_I2C_Read... [16:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:52]Read from MH i2c: E2 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: E2 0B 00 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: E2 0B 00 5D 22 00 B8 E2 1C F4 76 D0 FD 47 90 00 2F [16:58:52]RAPDU: B8 E2 1C F4 76 D0 FD 47 90 00 [16:58:52]wFMCommunicate OK [16:58:52]SAM_PROTO_SignData done [16:58:52]FM_MakeSignedData done [16:58:52]CreateOFDProtocolMessage [16:58:52]wFMCommunicate request_size=4 [16:58:52]MH_SAM_APDU [16:58:52]CAPDU: 80 11 00 00 [16:58:52]Write to MH i2c: E2 08 00 5E 22 80 11 00 00 00 00 00 00 FA [16:58:52]Write i2c OK [16:58:52]MH_I2C_Read... [16:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:52]Read from MH i2c: E2 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: E2 17 00 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: E2 17 00 5E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4D [16:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:58:52]wFMCommunicate OK [16:58:52]CreateOFDProtocolMessage done [16:58:52]OFDSenderStorePacket 148923 [16:58:52]StoreOFDPacket docnum=148923 [16:58:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 31 90 07 01 EB 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 CC 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BB 45 02 00 35 04 06 00 22 D4 D3 58 34 72 B8 E2 1C F4 76 D0 FD 47 [16:58:52]CheckFolder [16:58:52]dirname=/storage/ofd_packets [16:58:52]CheckFolder done [16:58:52]ProducePacketName [16:58:52]name=ofd_packets/00148923 [16:58:52]NVStorageSaveData ofd_packets/00148923 [16:58:52]File name is /storage/ofd_packets/00148923 [16:58:52]Write 301 bytes [16:58:52]NVStorageSaveData done [16:58:52]OFDSenderStorePacket done [16:58:52]KKMCreateOFDPacket done [16:58:52]NVStorageSaveData kkm_last_timestamp [16:58:52]File name is /storage/kkm_last_timestamp [16:58:52]Write 4 bytes [16:58:52]NVStorageSaveData done [16:58:52]OFD Sender: Processing packet 148923 [packets to send 100, broken 99] [16:58:52]ProducePacketName [16:58:52]name=ofd_packets/00148923 [16:58:52]OFD Sender: To server: pG, [16:58:52]CommunicateWithHost lk.salyk.kg:30040 [16:58:52]ConnectInit lk.salyk.kg [16:58:52]ExternCall_PrintAddStr [16:58:52]wPrintStart [16:58:52]Write to MH i2c: 01 00 00 5F 22 81 [16:58:52]Write i2c OK [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: 01 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: 01 07 00 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: 01 07 00 5F 22 00 00 00 00 00 FF 0F 96 [16:58:52]RasterBufferAndPrint [16:58:52]line Счет N : (1)979854 [16:58:52]line ИНН: 02508201610067 [16:58:52]line Контрольно-Кассовый Чек [16:58:52]line ПРОДАЖА [16:58:52]line ТРК (МРК, ГНК) : 12 [16:58:52]line Товар: 2710124130 [16:58:52]line Аи-92-К-5 [16:58:52]line 11.960 * 66.90 [16:58:52]line = 800.12 [16:58:52]line НДС 12% НСП 1% [16:58:52]line > о реализуемом товаре [16:58:52]line ОКРУГЛЕНИЕ: -0.12 [16:58:52]line ИТОГО: 800.00 [16:58:52]line Внесено: 800.00 [16:58:52]line СДАЧА: 0.00 [16:58:52]line НСП 1% : 7.08 [16:58:52]line НДС 12% : 84.97 [16:58:52]line Наличными: 800.00 [16:58:52]line Безнал.: 0.00 [16:58:52]line Место: АЗС № 68 "Партнер Нефть" [16:58:52]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [16:58:52]line СНО: Общий режим [16:58:52]line Чек 262 04.06.2024 16:58 [16:58:52]line Смена: 368 ФФД: 1.0 [16:58:52]line ЗНМ: 0300000035 [16:58:52]line РНМ: 0000000000092720 [16:58:52]line Версия ККМ: 001 [16:58:52]line ФМ: 0000000000875057 [16:58:52]line ФД: 148923 [16:58:52]line ФПД: 38297474184306 [16:58:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T165852&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148923&fm=38297474184306&tin=02508201610067®Number=0000000000092720&sum=80000 [16:58:52]written 0, free lines is 4095 [16:58:52]Write to MH i2c: 01 00 00 8A 22 AC [16:58:52]Write i2c OK [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: 01 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: 01 07 00 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: 01 07 00 8A 22 00 00 00 00 00 68 0C 27 [16:58:52]RasterBufferAndPrint [16:58:52]line [16:58:52]line [16:58:52]line [16:58:52]line [16:58:52]line [16:58:52]written 0, free lines is 3179 [16:58:52]MH_Cut [16:58:52]Write to MH i2c: D1 01 00 91 22 01 85 [16:58:52]Write i2c OK [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: D1 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: D1 01 00 [16:58:52]MH_I2C_Read... [16:58:52]Read from MH i2c: D1 01 00 91 22 00 84 [16:58:52]Write to MH i2c: 01 00 00 92 22 B4 [16:58:52]Write i2c OK [16:58:52]MH_I2C_Read... [16:58:54]*** Cut start [16:58:54]*** Partial cut [16:58:54]*** CUTSNS_PIN = 1 [16:58:54]*** CUTSNS_PIN = 0 [16:58:54]*** Brake cut motor [16:58:54]Read from MH i2c: 01 [16:58:54]MH_I2C_Read... [16:58:54]*** Stop cut motor [16:58:54]*** Cut end [16:58:54]Read from MH i2c: 01 07 00 [16:58:54]MH_I2C_Read... [16:58:54]Read from MH i2c: 01 07 00 92 22 00 00 00 00 00 FF 0F C9 [16:58:54]process_action close_receipt done [16:58:54]requested_data is exist [16:58:54]produce_requested_data [16:58:54]requested_item fm.sn is exist - process it [16:58:54]wFMCommunicate request_size=4 [16:58:54]MH_SAM_APDU [16:58:54]CAPDU: 80 11 00 00 [16:58:54]Write to MH i2c: E2 08 00 93 22 80 11 00 00 00 00 00 00 2F [16:58:54]Write i2c OK [16:58:54]MH_I2C_Read... [16:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:54]Read from MH i2c: E2 [16:58:54]MH_I2C_Read... [16:58:54]Read from MH i2c: E2 17 00 [16:58:54]MH_I2C_Read... [16:58:54]Read from MH i2c: E2 17 00 93 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 82 [16:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [16:58:54]wFMCommunicate OK [16:58:54]requested_item fd.num is exist - process it [16:58:54]SAM_PROTO_GetFieldsCounters [16:58:54]wFMCommunicate request_size=4 [16:58:54]MH_SAM_APDU [16:58:54]CAPDU: 80 13 00 00 [16:58:54]Write to MH i2c: E2 08 00 94 22 80 13 00 00 00 00 00 00 32 [16:58:54]Write i2c OK [16:58:54]MH_I2C_Read... [16:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:55]Read from MH i2c: E2 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 62 00 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 62 00 94 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BB 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [16:58:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BB 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:55]wFMCommunicate OK [16:58:55]SAM_PROTO_GetFieldsCounters done [16:58:55]requested_item shift.num is exist - process it [16:58:55]requested_item shift.opened is exist - process it [16:58:55]req_shift_opened [16:58:55]FM_GetShiftState [16:58:55]SAM_PROTO_GetShiftState [16:58:55]wFMCommunicate request_size=4 [16:58:55]MH_SAM_APDU [16:58:55]CAPDU: 80 13 01 00 [16:58:55]Write to MH i2c: E2 08 00 95 22 80 13 01 00 00 00 00 00 34 [16:58:55]Write i2c OK [16:58:55]MH_I2C_Read... [16:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:55]Read from MH i2c: E2 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 0E 00 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 0E 00 95 22 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F7 [16:58:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [16:58:55]wFMCommunicate OK [16:58:55]SAM_PROTO_GetShiftState done [16:58:55]FM_GetShiftState done [16:58:55]req_shift_opened done [16:58:55]requested_item shift.open_date is exist - process it [16:58:55]req_shift_open_date [16:58:55]req_shift_open_date done [16:58:55]produce_requested_data done [16:58:55]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148923,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [16:58:55]process_action_free close_receipt [16:58:55]json_value_free [16:58:55]json_value_free done [16:58:55]process_json_proto returns [16:58:55]Send response to host [16:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148923,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [16:58:55]free response buf [16:58:55]execute_script done [16:58:55]execute_script returns [16:58:55]free content buf [16:58:55]Sock 7.Close socket [16:58:55]Sock 7.Thread stoped [16:58:57]ConnectInit Can't take IP for lk.salyk.kg [16:58:57]CommunicateWithHost connect error [16:58:57]CommunicateWithHost err = -1 [16:58:57]OFD Sender: Server communicate error [16:59:02]OFD Sender: Processing packet 148923 [packets to send 100, broken 99] [16:59:02]ProducePacketName [16:59:02]name=ofd_packets/00148923 [16:59:02]OFD Sender: To server: pG, [16:59:02]CommunicateWithHost lk.salyk.kg:30040 [16:59:02]ConnectInit lk.salyk.kg [16:59:07]ConnectInit Can't take IP for lk.salyk.kg [16:59:07]CommunicateWithHost connect error [16:59:07]CommunicateWithHost err = -1 [16:59:07]OFD Sender: Server communicate error [16:59:12]OFD Sender: Processing packet 148923 [packets to send 100, broken 99] [16:59:12]ProducePacketName [16:59:12]name=ofd_packets/00148923 [16:59:12]OFD Sender: To server: pG, [16:59:12]CommunicateWithHost lk.salyk.kg:30040 [16:59:12]ConnectInit lk.salyk.kg [16:59:12]Connected sock=7 [16:59:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 31 90 07 01 EB 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 CC 47 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BB 45 02 00 35 04 06 00 22 D4 D3 58 34 72 B8 E2 1C F4 76 D0 FD 47 [16:59:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E1 AB 47 00 10 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 38 37 35 30 35 37 10 04 04 00 BB 45 02 00 F4 03 04 00 03 EF 5E 66 B6 04 01 00 00 D7 7D 1A 6C C0 55 E5 B1 [16:59:12]CommunicateWithHost err = 0 [16:59:12]CheckOFDResponse [16:59:12]1017 (14) - 77093643461234 [16:59:12]1041 (16) - 0000000000875057 [16:59:12]1040 (4) - 148923 [16:59:12]1012 (4) - 04.06.2024 10:40 [16:59:12]1206 (1) - 0 [16:59:12]OFD Sender: Remove packet 148923 [16:59:12]ProducePacketName [16:59:12]name=ofd_packets/00148923 [16:59:12]NVStorageDeleteData [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:06]accept exits with 10 [17:02:06]New connection [17:02:06]New thread 3067264356 created [17:02:06]Thread 3067407716 joined [17:02:06]Waiting for new connection... [17:02:06] Sock 10.Parse request [17:02:06]Sock 10.Check first char [17:02:06]Sock 10.First char is OK [17:02:06]request: POST /json_proto HTTP/1.0 [17:02:06]Method: POST [17:02:06]URL: /json_proto [17:02:06]Method is POST - this is cgi request [17:02:06]url: /json_proto [17:02:06]query_string will be loaded in cgi processing [17:02:06]execute_cgi json_proto POST (null) [17:02:06]execute_cgi path=json_proto method=POST [17:02:06]POST find Content-Length [17:02:06]Host: 172.17.38.4:8080 [17:02:06]Content-Length: 677 [17:02:06]Content-Type: application/json [17:02:06] [17:02:06]POST finish read [17:02:06]Found Content-Length = 677 [17:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:06]execute_script... [17:02:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:06]POST & json_proto [17:02:06]process_json_proto [17:02:06]json parsed OK: [17:02:06]protocol is kg_v1.0 [17:02:06]action value=close_receipt [17:02:06]process_action close_receipt [17:02:06]cmd_close_receipt [17:02:06]MH_GetDate [17:02:06]Write to MH i2c: F0 00 00 96 22 A7 [17:02:06]Write i2c OK [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: F0 [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: F0 09 00 [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: F0 09 00 96 22 00 8F 48 5F 66 CC 51 87 64 54 [17:02:06]GetLastDocTimeStamp 1717520332 [17:02:06]current date 1717520527 [17:02:06]FM_GetShiftState [17:02:06]SAM_PROTO_GetShiftState [17:02:06]wFMCommunicate request_size=4 [17:02:06]MH_SAM_APDU [17:02:06]CAPDU: 80 13 01 00 [17:02:06]Write to MH i2c: E2 08 00 97 22 80 13 01 00 00 00 00 00 36 [17:02:06]Write i2c OK [17:02:06]MH_I2C_Read... [17:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:06]Read from MH i2c: E2 [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: E2 0E 00 [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: E2 0E 00 97 22 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F9 [17:02:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:02:06]wFMCommunicate OK [17:02:06]SAM_PROTO_GetShiftState done [17:02:06]FM_GetShiftState done [17:02:06]opened in 1717460629 [17:02:06]opened+sec_in_day 1717547029 [17:02:06]quantity*price = 30038 [17:02:06]sum+1 = 30039 [17:02: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 263 04.06.2024 17:02 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148924 ФПД: 239022012404088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T170207&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148924&fm=239022012404088&tin=02508201610067®Number=0000000000092720&sum=30000 [17:02:07]StoreToDocumentArchive [17:02:07]shift 368 fd 148924 [17:02:07]save to /storage/0368/doc_00148924 [17:02:07]save last doc name /storage/0368/doc_00148924 to /storage/kkm_last_doc_name [17:02:07]save OK [17:02:07]Clear old archive folders... [17:02:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:07]tlvbuf is 004C0830 [17:02:07]SAM_PROTO_ClearQueue [17:02:07]wFMCommunicate request_size=4 [17:02:07]MH_SAM_APDU [17:02:07]CAPDU: 80 09 00 00 [17:02:07]Write to MH i2c: E2 08 00 A4 22 80 09 00 00 00 00 00 00 38 [17:02:07]Write i2c OK [17:02:07]MH_I2C_Read... [17:02:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:07]Read from MH i2c: E2 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 03 00 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 03 00 A4 22 00 90 00 3A [17:02:07]RAPDU: 90 00 [17:02:07]wFMCommunicate OK [17:02:07]SAM_PROTO_ClearQueue done [17:02:07]KKMCreateOFDPacket [17:02:07]OFDProtocolAddRootSTLVToBuf [17:02:07]FM_MakeSignedData [17:02:07]FM_MakeSignedData [17:02:07]SAM_PROTO_SignData [17:02:07]wFMCommunicate request_size=4 [17:02:07]MH_SAM_APDU [17:02:07]CAPDU: 80 0D 01 02 [17:02:07]Write to MH i2c: E2 08 00 A5 22 80 0D 01 02 00 00 00 00 40 [17:02:07]Write i2c OK [17:02:07]MH_I2C_Read... [17:02:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:07]Read from MH i2c: E2 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 03 00 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 03 00 A5 22 00 90 00 3B [17:02:07]RAPDU: 90 00 [17:02:07]wFMCommunicate OK [17:02:07]wFMCommunicate request_size=255 [17:02:07]MH_SAM_APDU [17:02:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 07 01 00 00 F4 03 04 00 8F 48 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BC 45 02 00 35 04 06 00 D9 [17:02:07]Write to MH i2c: E2 02 01 A6 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 07 01 00 00 F4 03 04 00 8F 48 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BC 45 02 00 35 04 06 00 D9 00 00 AF [17:02:07]Write i2c OK [17:02:07]MH_I2C_Read... [17:02:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:07]Read from MH i2c: E2 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 03 00 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 03 00 A6 22 00 90 00 3C [17:02:07]RAPDU: 90 00 [17:02:07]wFMCommunicate OK [17:02:07]wFMCommunicate request_size=10 [17:02:07]MH_SAM_APDU [17:02:07]CAPDU: 80 0D 02 02 05 63 A6 24 91 78 [17:02:07]Write to MH i2c: E2 0D 00 A7 22 80 0D 02 02 05 00 63 A6 24 91 78 00 00 83 [17:02:07]Write i2c OK [17:02:07]MH_I2C_Read... [17:02:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:07]Read from MH i2c: E2 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 03 00 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 03 00 A7 22 00 90 00 3D [17:02:07]RAPDU: 90 00 [17:02:07]wFMCommunicate OK [17:02:07]wFMCommunicate request_size=4 [17:02:07]MH_SAM_APDU [17:02:07]CAPDU: 80 0D 03 02 [17:02:07]Write to MH i2c: E2 08 00 A8 22 80 0D 03 02 00 00 00 00 45 [17:02:07]Write i2c OK [17:02:07]MH_I2C_Read... [17:02:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:07]Read from MH i2c: E2 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 0B 00 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 0B 00 A8 22 00 1C 48 B1 96 12 F6 EC 79 90 00 5E [17:02:07]RAPDU: 1C 48 B1 96 12 F6 EC 79 90 00 [17:02:07]wFMCommunicate OK [17:02:07]SAM_PROTO_SignData done [17:02:07]FM_MakeSignedData done [17:02:07]CreateOFDProtocolMessage [17:02:07]wFMCommunicate request_size=4 [17:02:07]MH_SAM_APDU [17:02:07]CAPDU: 80 11 00 00 [17:02:07]Write to MH i2c: E2 08 00 A9 22 80 11 00 00 00 00 00 00 45 [17:02:07]Write i2c OK [17:02:07]MH_I2C_Read... [17:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:07]Read from MH i2c: E2 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 17 00 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 17 00 A9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 98 [17:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:02:07]wFMCommunicate OK [17:02:07]CreateOFDProtocolMessage done [17:02:07]OFDSenderStorePacket 148924 [17:02:07]StoreOFDPacket docnum=148924 [17:02:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 27 DC 07 01 16 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8F 48 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BC 45 02 00 35 04 06 00 D9 63 A6 24 91 78 1C 48 B1 96 12 F6 EC 79 [17:02:07]CheckFolder [17:02:07]dirname=/storage/ofd_packets [17:02:07]CheckFolder done [17:02:07]ProducePacketName [17:02:07]name=ofd_packets/00148924 [17:02:07]NVStorageSaveData ofd_packets/00148924 [17:02:07]File name is /storage/ofd_packets/00148924 [17:02:07]Write 301 bytes [17:02:07]NVStorageSaveData done [17:02:07]OFDSenderStorePacket done [17:02:07]KKMCreateOFDPacket done [17:02:07]NVStorageSaveData kkm_last_timestamp [17:02:07]File name is /storage/kkm_last_timestamp [17:02:07]Write 4 bytes [17:02:07]NVStorageSaveData done [17:02:07]OFD Sender: Processing packet 148924 [packets to send 100, broken 99] [17:02:07]ProducePacketName [17:02:07]name=ofd_packets/00148924 [17:02:07]OFD Sender: To server: pG, [17:02:07]CommunicateWithHost lk.salyk.kg:30040 [17:02:07]ConnectInit lk.salyk.kg [17:02:07]ExternCall_PrintAddStr [17:02:07]wPrintStart [17:02:07]Write to MH i2c: 01 00 00 AA 22 CC [17:02:07]Write i2c OK [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: 01 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: 01 07 00 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: 01 07 00 AA 22 00 00 00 00 00 FF 0F E1 [17:02:07]RasterBufferAndPrint [17:02:07]line Счет N : (1)979855 [17:02:07]line ИНН: 02508201610067 [17:02:07]line Контрольно-Кассовый Чек [17:02:07]line ПРОДАЖА [17:02:07]line ТРК (МРК, ГНК) : 22 [17:02:07]line Товар: 2710124130 [17:02:07]line Аи-92-К-5 [17:02:07]line 4.490 * 66.90 [17:02:07]line = 300.38 [17:02:07]line НДС 12% НСП 1% [17:02:07]line > о реализуемом товаре [17:02:07]line ОКРУГЛЕНИЕ: -0.38 [17:02:07]line ИТОГО: 300.00 [17:02:07]line Внесено: 300.00 [17:02:07]line СДАЧА: 0.00 [17:02:07]line НСП 1% : 2.66 [17:02:07]line НДС 12% : 31.90 [17:02:07]line Наличными: 300.00 [17:02:07]line Безнал.: 0.00 [17:02:07]line Место: АЗС № 68 "Партнер Нефть" [17:02:07]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:02:07]line СНО: Общий режим [17:02:07]line Чек 263 04.06.2024 17:02 [17:02:07]line Смена: 368 ФФД: 1.0 [17:02:07]line ЗНМ: 0300000035 [17:02:07]line РНМ: 0000000000092720 [17:02:07]line Версия ККМ: 001 [17:02:07]line ФМ: 0000000000875057 [17:02:07]line ФД: 148924 [17:02:07]line ФПД: 239022012404088 [17:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T170207&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148924&fm=239022012404088&tin=02508201610067®Number=0000000000092720&sum=30000 [17:02:08]Connected sock=11 [17:02:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 27 DC 07 01 16 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8F 48 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BC 45 02 00 35 04 06 00 D9 63 A6 24 91 78 1C 48 B1 96 12 F6 EC 79 [17:02:08]written 0, free lines is 4095 [17:02:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 62 A5 47 00 44 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 38 37 35 30 35 37 10 04 04 00 BC 45 02 00 F4 03 04 00 B3 EF 5E 66 B6 04 01 00 00 27 5B 91 95 96 4B B6 13 [17:02:08]CommunicateWithHost err = 0 [17:02:08]CheckOFDResponse [17:02:08]1017 (14) - 77093643461234 [17:02:08]1041 (16) - 0000000000875057 [17:02:08]1040 (4) - 148924 [17:02:08]1012 (4) - 04.06.2024 10:42 [17:02:08]1206 (1) - 0 [17:02:08]OFD Sender: Remove packet 148924 [17:02:08]ProducePacketName [17:02:08]name=ofd_packets/00148924 [17:02:08]NVStorageDeleteData [17:02:08]Write to MH i2c: 01 00 00 D5 22 F7 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 07 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 07 00 D5 22 00 00 00 00 00 6E 0C 78 [17:02:08]RasterBufferAndPrint [17:02:08]line [17:02:08]line [17:02:08]line [17:02:08]line [17:02:08]line [17:02:08]written 0, free lines is 3186 [17:02:08]MH_Cut [17:02:08]Write to MH i2c: D1 01 00 DC 22 01 D0 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: D1 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: D1 01 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: D1 01 00 DC 22 00 CF [17:02:08]Write to MH i2c: 01 00 00 DD 22 FF [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]OFD Sender: No OFD packet to send [17:02:09]*** Cut start [17:02:09]*** Partial cut [17:02:09]*** CUTSNS_PIN = 1 [17:02:09]*** CUTSNS_PIN = 0 [17:02:10]*** Brake cut motor [17:02:10]Read from MH i2c: 01 [17:02:10]MH_I2C_Read... [17:02:10]*** Stop cut motor [17:02:10]*** Cut end [17:02:10]Read from MH i2c: 01 07 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: 01 07 00 DD 22 00 00 00 00 00 FF 0F 14 [17:02:10]process_action close_receipt done [17:02:10]requested_data is exist [17:02:10]produce_requested_data [17:02:10]requested_item fm.sn is exist - process it [17:02:10]wFMCommunicate request_size=4 [17:02:10]MH_SAM_APDU [17:02:10]CAPDU: 80 11 00 00 [17:02:10]Write to MH i2c: E2 08 00 DE 22 80 11 00 00 00 00 00 00 7A [17:02:10]Write i2c OK [17:02:10]MH_I2C_Read... [17:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:10]Read from MH i2c: E2 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 17 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 17 00 DE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CD [17:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:02:10]wFMCommunicate OK [17:02:10]requested_item fd.num is exist - process it [17:02:10]SAM_PROTO_GetFieldsCounters [17:02:10]wFMCommunicate request_size=4 [17:02:10]MH_SAM_APDU [17:02:10]CAPDU: 80 13 00 00 [17:02:10]Write to MH i2c: E2 08 00 DF 22 80 13 00 00 00 00 00 00 7D [17:02:10]Write i2c OK [17:02:10]MH_I2C_Read... [17:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:10]Read from MH i2c: E2 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 62 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 62 00 DF 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [17:02:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:10]wFMCommunicate OK [17:02:10]SAM_PROTO_GetFieldsCounters done [17:02:10]requested_item shift.num is exist - process it [17:02:10]requested_item shift.opened is exist - process it [17:02:10]req_shift_opened [17:02:10]FM_GetShiftState [17:02:10]SAM_PROTO_GetShiftState [17:02:10]wFMCommunicate request_size=4 [17:02:10]MH_SAM_APDU [17:02:10]CAPDU: 80 13 01 00 [17:02:10]Write to MH i2c: E2 08 00 E0 22 80 13 01 00 00 00 00 00 7F [17:02:10]Write i2c OK [17:02:10]MH_I2C_Read... [17:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:10]Read from MH i2c: E2 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 0E 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 0E 00 E0 22 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 42 [17:02:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:02:10]wFMCommunicate OK [17:02:10]SAM_PROTO_GetShiftState done [17:02:10]FM_GetShiftState done [17:02:10]req_shift_opened done [17:02:10]requested_item shift.open_date is exist - process it [17:02:10]req_shift_open_date [17:02:10]req_shift_open_date done [17:02:10]produce_requested_data done [17:02:10]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148924,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:02:10]process_action_free close_receipt [17:02:10]json_value_free [17:02:10]json_value_free done [17:02:10]process_json_proto returns [17:02:10]Send response to host [17:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148924,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:02:10]free response buf [17:02:10]execute_script done [17:02:10]execute_script returns [17:02:10]free content buf [17:02:10]Sock 10.Close socket [17:02:10]Sock 10.Thread stoped [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:17]accept exits with 9 [17:07:17]New connection [17:07:17]New thread 3067407716 created [17:07:17]Thread 3067264356 joined [17:07:17]Waiting for new connection... [17:07:17] Sock 9.Parse request [17:07:17]Sock 9.Check first char [17:07:17]Sock 9.First char is OK [17:07:17]request: POST /json_proto HTTP/1.0 [17:07:17]Method: POST [17:07:17]URL: /json_proto [17:07:17]Method is POST - this is cgi request [17:07:17]url: /json_proto [17:07:17]query_string will be loaded in cgi processing [17:07:17]execute_cgi json_proto POST (null) [17:07:17]execute_cgi path=json_proto method=POST [17:07:17]POST find Content-Length [17:07:17]Host: 172.17.38.4:8080 [17:07:17]Content-Length: 793 [17:07:17]Content-Type: application/json [17:07:17] [17:07:17]POST finish read [17:07:17]Found Content-Length = 793 [17:07:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:17]execute_script... [17:07:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:17]POST & json_proto [17:07:17]process_json_proto [17:07:17]json parsed OK: [17:07:17]protocol is kg_v1.0 [17:07:17]action value=close_receipt [17:07:17]process_action close_receipt [17:07:17]cmd_close_receipt [17:07:17]MH_GetDate [17:07:17]Write to MH i2c: F0 00 00 E1 22 F2 [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: F0 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: F0 09 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: F0 09 00 E1 22 00 C7 49 5F 66 CC 51 87 64 D8 [17:07:17]GetLastDocTimeStamp 1717520527 [17:07:17]current date 1717520839 [17:07:17]FM_GetShiftState [17:07:17]SAM_PROTO_GetShiftState [17:07:17]wFMCommunicate request_size=4 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 13 01 00 [17:07:17]Write to MH i2c: E2 08 00 E2 22 80 13 01 00 00 00 00 00 81 [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 0E 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 0E 00 E2 22 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 44 [17:07:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:07:17]wFMCommunicate OK [17:07:17]SAM_PROTO_GetShiftState done [17:07:17]FM_GetShiftState done [17:07:17]opened in 1717460629 [17:07:17]opened+sec_in_day 1717547029 [17:07:17]quantity*price = 100015 [17:07:17]sum+1 = 100017 [17:07:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 264 04.06.2024 17:07 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148925 ФПД: 98029397115819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T170719&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148925&fm=98029397115819&tin=02508201610067®Number=0000000000092720&sum=100016 [17:07:18]StoreToDocumentArchive [17:07:18]shift 368 fd 148925 [17:07:18]save to /storage/0368/doc_00148925 [17:07:18]save last doc name /storage/0368/doc_00148925 to /storage/kkm_last_doc_name [17:07:18]save OK [17:07:18]Clear old archive folders... [17:07:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:18]tlvbuf is 00545860 [17:07:18]SAM_PROTO_ClearQueue [17:07:18]wFMCommunicate request_size=4 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 09 00 00 [17:07:18]Write to MH i2c: E2 08 00 EF 22 80 09 00 00 00 00 00 00 83 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:18]Read from MH i2c: E2 03 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 03 00 EF 22 00 90 00 85 [17:07:18]RAPDU: 90 00 [17:07:18]wFMCommunicate OK [17:07:18]SAM_PROTO_ClearQueue done [17:07:18]KKMCreateOFDPacket [17:07:18]OFDProtocolAddRootSTLVToBuf [17:07:18]FM_MakeSignedData [17:07:18]FM_MakeSignedData [17:07:18]SAM_PROTO_SignData [17:07:18]wFMCommunicate request_size=4 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 0D 01 02 [17:07:18]Write to MH i2c: E2 08 00 F0 22 80 0D 01 02 00 00 00 00 8B [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 03 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 03 00 F0 22 00 90 00 86 [17:07:18]RAPDU: 90 00 [17:07:18]wFMCommunicate OK [17:07:18]wFMCommunicate request_size=255 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 08 01 00 00 F4 03 04 00 C7 49 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BD 45 02 00 35 04 06 00 59 [17:07:18]Write to MH i2c: E2 02 01 F1 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 08 01 00 00 F4 03 04 00 C7 49 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BD 45 02 00 35 04 06 00 59 00 00 DB [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:19]Read from MH i2c: E2 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 03 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 03 00 F1 22 00 90 00 87 [17:07:19]RAPDU: 90 00 [17:07:19]wFMCommunicate OK [17:07:19]wFMCommunicate request_size=10 [17:07:19]MH_SAM_APDU [17:07:19]CAPDU: 80 0D 02 02 05 28 3F 64 83 AB [17:07:19]Write to MH i2c: E2 0D 00 F2 22 80 0D 02 02 05 00 28 3F 64 83 AB 00 00 91 [17:07:19]Write i2c OK [17:07:19]MH_I2C_Read... [17:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:19]Read from MH i2c: E2 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 03 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 03 00 F2 22 00 90 00 88 [17:07:19]RAPDU: 90 00 [17:07:19]wFMCommunicate OK [17:07:19]wFMCommunicate request_size=4 [17:07:19]MH_SAM_APDU [17:07:19]CAPDU: 80 0D 03 02 [17:07:19]Write to MH i2c: E2 08 00 F3 22 80 0D 03 02 00 00 00 00 90 [17:07:19]Write i2c OK [17:07:19]MH_I2C_Read... [17:07:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:19]Read from MH i2c: E2 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 0B 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 0B 00 F3 22 00 FA 5D 31 BE F8 AE B1 22 90 00 50 [17:07:19]RAPDU: FA 5D 31 BE F8 AE B1 22 90 00 [17:07:19]wFMCommunicate OK [17:07:19]SAM_PROTO_SignData done [17:07:19]FM_MakeSignedData done [17:07:19]CreateOFDProtocolMessage [17:07:19]wFMCommunicate request_size=4 [17:07:19]MH_SAM_APDU [17:07:19]CAPDU: 80 11 00 00 [17:07:19]Write to MH i2c: E2 08 00 F4 22 80 11 00 00 00 00 00 00 90 [17:07:19]Write i2c OK [17:07:19]MH_I2C_Read... [17:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:19]Read from MH i2c: E2 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 17 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 17 00 F4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E3 [17:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:07:19]wFMCommunicate OK [17:07:19]CreateOFDProtocolMessage done [17:07:19]OFDSenderStorePacket 148925 [17:07:19]StoreOFDPacket docnum=148925 [17:07:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FF 98 07 01 F0 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 08 01 00 00 F4 03 04 00 C7 49 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BD 45 02 00 35 04 06 00 59 28 3F 64 83 AB FA 5D 31 BE F8 AE B1 22 [17:07:19]CheckFolder [17:07:19]dirname=/storage/ofd_packets [17:07:19]CheckFolder done [17:07:19]ProducePacketName [17:07:19]name=ofd_packets/00148925 [17:07:19]NVStorageSaveData ofd_packets/00148925 [17:07:19]File name is /storage/ofd_packets/00148925 [17:07:19]Write 301 bytes [17:07:19]NVStorageSaveData done [17:07:19]OFDSenderStorePacket done [17:07:19]KKMCreateOFDPacket done [17:07:19]NVStorageSaveData kkm_last_timestamp [17:07:19]File name is /storage/kkm_last_timestamp [17:07:19]Write 4 bytes [17:07:19]NVStorageSaveData done [17:07:19]ExternCall_PrintAddStr [17:07:19]wPrintStart [17:07:19]Write to MH i2c: 01 00 00 F5 22 17 [17:07:19]Write i2c OK [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: 01 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: 01 07 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: 01 07 00 F5 22 00 00 00 00 00 FF 0F 2C [17:07:19]RasterBufferAndPrint [17:07:19]line Счет N : (1)979856 [17:07:19]line ИНН: 02508201610067 [17:07:19]line Контрольно-Кассовый Чек [17:07:19]line ПРОДАЖА [17:07:19]line ТРК (МРК, ГНК) : 22 [17:07:19]line Товар: 2710124130 [17:07:19]line Аи-92-К-5 [17:07:19]line 14.950 * 66.90 [17:07:19]line = 1000.16 [17:07:19]line НДС 12% НСП 1% [17:07:19]line > о реализуемом товаре [17:07:19]line ИТОГО: 1000.16 [17:07:19]line НСП 1% : 8.85 [17:07:19]line НДС 12% : 106.21 [17:07:19]line Наличными: 0.00 [17:07:19]line Безнал.: 1000.16 [17:07:19]line Место: АЗС № 68 "Партнер Нефть" [17:07:19]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:07:19]line СНО: Общий режим [17:07:19]line Чек 264 04.06.2024 17:07 [17:07:19]line Смена: 368 ФФД: 1.0 [17:07:19]line ЗНМ: 0300000035 [17:07:19]line РНМ: 0000000000092720 [17:07:19]line Версия ККМ: 001 [17:07:19]line Платежная система: KICB Банк [17:07:19]line ФМ: 0000000000875057 [17:07:19]line ФД: 148925 [17:07:19]line ФПД: 98029397115819 [17:07:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T170719&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148925&fm=98029397115819&tin=02508201610067®Number=0000000000092720&sum=100016 [17:07:19]OFD Sender: Processing packet 148925 [packets to send 100, broken 99] [17:07:19]ProducePacketName [17:07:19]name=ofd_packets/00148925 [17:07:19]OFD Sender: To server: pG, [17:07:19]CommunicateWithHost lk.salyk.kg:30040 [17:07:19]ConnectInit lk.salyk.kg [17:07:19]written 0, free lines is 4095 [17:07:19]Connected sock=10 [17:07:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FF 98 07 01 F0 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 08 01 00 00 F4 03 04 00 C7 49 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BD 45 02 00 35 04 06 00 59 28 3F 64 83 AB FA 5D 31 BE F8 AE B1 22 [17:07:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F4 39 47 00 EE 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 38 37 35 30 35 37 10 04 04 00 BD 45 02 00 F4 03 04 00 EA F0 5E 66 B6 04 01 00 00 D0 51 72 E7 35 C1 DE F0 [17:07:19]CommunicateWithHost err = 0 [17:07:19]CheckOFDResponse [17:07:19]1017 (14) - 77093643461234 [17:07:19]1041 (16) - 0000000000875057 [17:07:19]1040 (4) - 148925 [17:07:19]1012 (4) - 04.06.2024 10:48 [17:07:19]1206 (1) - 0 [17:07:19]OFD Sender: Remove packet 148925 [17:07:19]ProducePacketName [17:07:19]name=ofd_packets/00148925 [17:07:19]NVStorageDeleteData [17:07:19]Write to MH i2c: 01 00 00 1F 23 42 [17:07:19]Write i2c OK [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: 01 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: 01 07 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: 01 07 00 1F 23 00 00 00 00 00 86 0C DB [17:07:19]RasterBufferAndPrint [17:07:19]line [17:07:19]line [17:07:19]line [17:07:19]line [17:07:19]line [17:07:19]written 0, free lines is 3209 [17:07:20]MH_Cut [17:07:20]Write to MH i2c: D1 01 00 26 23 01 1B [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: D1 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: D1 01 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: D1 01 00 26 23 00 1A [17:07:20]Write to MH i2c: 01 00 00 27 23 4A [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]OFD Sender: No OFD packet to send [17:07:21]*** Cut start [17:07:21]*** Partial cut [17:07:21]*** CUTSNS_PIN = 1 [17:07:21]*** CUTSNS_PIN = 0 [17:07:21]*** Brake cut motor [17:07:21]Read from MH i2c: 01 [17:07:21]MH_I2C_Read... [17:07:21]*** Stop cut motor [17:07:21]*** Cut end [17:07:21]Read from MH i2c: 01 07 00 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: 01 07 00 27 23 00 00 00 00 00 FF 0F 5F [17:07:21]process_action close_receipt done [17:07:21]requested_data is exist [17:07:21]produce_requested_data [17:07:21]requested_item fm.sn is exist - process it [17:07:21]wFMCommunicate request_size=4 [17:07:21]MH_SAM_APDU [17:07:21]CAPDU: 80 11 00 00 [17:07:21]Write to MH i2c: E2 08 00 28 23 80 11 00 00 00 00 00 00 C5 [17:07:21]Write i2c OK [17:07:21]MH_I2C_Read... [17:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:21]Read from MH i2c: E2 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: E2 17 00 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: E2 17 00 28 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 18 [17:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:07:21]wFMCommunicate OK [17:07:21]requested_item fd.num is exist - process it [17:07:21]SAM_PROTO_GetFieldsCounters [17:07:21]wFMCommunicate request_size=4 [17:07:21]MH_SAM_APDU [17:07:21]CAPDU: 80 13 00 00 [17:07:21]Write to MH i2c: E2 08 00 29 23 80 13 00 00 00 00 00 00 C8 [17:07:21]Write i2c OK [17:07:21]MH_I2C_Read... [17:07:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 62 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 62 00 29 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BD 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [17:07:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BD 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:22]wFMCommunicate OK [17:07:22]SAM_PROTO_GetFieldsCounters done [17:07:22]requested_item shift.num is exist - process it [17:07:22]requested_item shift.opened is exist - process it [17:07:22]req_shift_opened [17:07:22]FM_GetShiftState [17:07:22]SAM_PROTO_GetShiftState [17:07:22]wFMCommunicate request_size=4 [17:07:22]MH_SAM_APDU [17:07:22]CAPDU: 80 13 01 00 [17:07:22]Write to MH i2c: E2 08 00 2A 23 80 13 01 00 00 00 00 00 CA [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 0E 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 0E 00 2A 23 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8D [17:07:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:07:22]wFMCommunicate OK [17:07:22]SAM_PROTO_GetShiftState done [17:07:22]FM_GetShiftState done [17:07:22]req_shift_opened done [17:07:22]requested_item shift.open_date is exist - process it [17:07:22]req_shift_open_date [17:07:22]req_shift_open_date done [17:07:22]produce_requested_data done [17:07:22]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148925,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:07:22]process_action_free close_receipt [17:07:22]json_value_free [17:07:22]json_value_free done [17:07:22]process_json_proto returns [17:07:22]Send response to host [17:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148925,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:07:22]free response buf [17:07:22]execute_script done [17:07:22]execute_script returns [17:07:22]free content buf [17:07:22]Sock 9.Close socket [17:07:22]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:37]accept exits with 7 [17:10:37]New connection [17:10:37]New thread 3067264356 created [17:10:37]Thread 3067407716 joined [17:10:37]Waiting for new connection... [17:10:37] Sock 7.Parse request [17:10:37]Sock 7.Check first char [17:10:37]Sock 7.First char is OK [17:10:37]request: POST /json_proto HTTP/1.0 [17:10:37]Method: POST [17:10:37]URL: /json_proto [17:10:37]Method is POST - this is cgi request [17:10:37]url: /json_proto [17:10:37]query_string will be loaded in cgi processing [17:10:37]execute_cgi json_proto POST (null) [17:10:37]execute_cgi path=json_proto method=POST [17:10:37]POST find Content-Length [17:10:37]Host: 172.17.38.4:8080 [17:10:37]Content-Length: 677 [17:10:37]Content-Type: application/json [17:10:37] [17:10:37]POST finish read [17:10:37]Found Content-Length = 677 [17:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:37]execute_script... [17: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)979858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:37]POST & json_proto [17:10:37]process_json_proto [17:10:37]json parsed OK: [17:10:37]protocol is kg_v1.0 [17:10:37]action value=close_receipt [17:10:37]process_action close_receipt [17:10:37]cmd_close_receipt [17:10:37]MH_GetDate [17:10:37]Write to MH i2c: F0 00 00 2B 23 3D [17:10:37]Write i2c OK [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: F0 [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: F0 09 00 [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: F0 09 00 2B 23 00 8F 4A 5F 66 CC 51 87 64 EC [17:10:37]GetLastDocTimeStamp 1717520839 [17:10:37]current date 1717521039 [17:10:37]FM_GetShiftState [17:10:37]SAM_PROTO_GetShiftState [17:10:37]wFMCommunicate request_size=4 [17:10:37]MH_SAM_APDU [17:10:37]CAPDU: 80 13 01 00 [17:10:37]Write to MH i2c: E2 08 00 2C 23 80 13 01 00 00 00 00 00 CC [17:10:37]Write i2c OK [17:10:37]MH_I2C_Read... [17:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:37]Read from MH i2c: E2 [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: E2 0E 00 [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: E2 0E 00 2C 23 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8F [17:10:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:10:37]wFMCommunicate OK [17:10:37]SAM_PROTO_GetShiftState done [17:10:37]FM_GetShiftState done [17:10:37]opened in 1717460629 [17:10:37]opened+sec_in_day 1717547029 [17:10:37]quantity*price = 24017 [17:10:37]sum+1 = 24018 [17:10:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 265 04.06.2024 17:10 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148926 ФПД: 260179406946492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171039&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148926&fm=260179406946492&tin=02508201610067®Number=0000000000092720&sum=24000 [17:10:38]StoreToDocumentArchive [17:10:38]shift 368 fd 148926 [17:10:38]save to /storage/0368/doc_00148926 [17:10:38]save last doc name /storage/0368/doc_00148926 to /storage/kkm_last_doc_name [17:10:38]save OK [17:10:38]Clear old archive folders... [17:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:38]tlvbuf is 004C0E20 [17:10:38]SAM_PROTO_ClearQueue [17:10:38]wFMCommunicate request_size=4 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 09 00 00 [17:10:38]Write to MH i2c: E2 08 00 39 23 80 09 00 00 00 00 00 00 CE [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 39 23 00 90 00 D0 [17:10:38]RAPDU: 90 00 [17:10:38]wFMCommunicate OK [17:10:38]SAM_PROTO_ClearQueue done [17:10:38]KKMCreateOFDPacket [17:10:38]OFDProtocolAddRootSTLVToBuf [17:10:38]FM_MakeSignedData [17:10:38]FM_MakeSignedData [17:10:38]SAM_PROTO_SignData [17:10:38]wFMCommunicate request_size=4 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 0D 01 02 [17:10:38]Write to MH i2c: E2 08 00 3A 23 80 0D 01 02 00 00 00 00 D6 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 3A 23 00 90 00 D1 [17:10:38]RAPDU: 90 00 [17:10:38]wFMCommunicate OK [17:10:38]wFMCommunicate request_size=255 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 8F 4A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BE 45 02 00 35 04 06 00 EC [17:10:38]Write to MH i2c: E2 02 01 3B 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 8F 4A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BE 45 02 00 35 04 06 00 EC 00 00 70 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 3B 23 00 90 00 D2 [17:10:38]RAPDU: 90 00 [17:10:38]wFMCommunicate OK [17:10:38]wFMCommunicate request_size=10 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 0D 02 02 05 A1 BD 21 00 BC [17:10:38]Write to MH i2c: E2 0D 00 3C 23 80 0D 02 02 05 00 A1 BD 21 00 BC 00 00 1E [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 3C 23 00 90 00 D3 [17:10:38]RAPDU: 90 00 [17:10:38]wFMCommunicate OK [17:10:38]wFMCommunicate request_size=4 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 0D 03 02 [17:10:38]Write to MH i2c: E2 08 00 3D 23 80 0D 03 02 00 00 00 00 DB [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 0B 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 0B 00 3D 23 00 F9 58 75 51 F6 9E E8 31 90 00 A0 [17:10:38]RAPDU: F9 58 75 51 F6 9E E8 31 90 00 [17:10:38]wFMCommunicate OK [17:10:38]SAM_PROTO_SignData done [17:10:38]FM_MakeSignedData done [17:10:38]CreateOFDProtocolMessage [17:10:38]wFMCommunicate request_size=4 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 11 00 00 [17:10:38]Write to MH i2c: E2 08 00 3E 23 80 11 00 00 00 00 00 00 DB [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 17 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 17 00 3E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2E [17:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:10:38]wFMCommunicate OK [17:10:38]CreateOFDProtocolMessage done [17:10:38]OFDSenderStorePacket 148926 [17:10:38]StoreOFDPacket docnum=148926 [17:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 16 D8 07 01 C8 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 8F 4A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BE 45 02 00 35 04 06 00 EC A1 BD 21 00 BC F9 58 75 51 F6 9E E8 31 [17:10:38]CheckFolder [17:10:38]dirname=/storage/ofd_packets [17:10:38]CheckFolder done [17:10:38]ProducePacketName [17:10:38]name=ofd_packets/00148926 [17:10:38]NVStorageSaveData ofd_packets/00148926 [17:10:38]File name is /storage/ofd_packets/00148926 [17:10:38]Write 301 bytes [17:10:38]NVStorageSaveData done [17:10:38]OFDSenderStorePacket done [17:10:38]KKMCreateOFDPacket done [17:10:38]NVStorageSaveData kkm_last_timestamp [17:10:38]File name is /storage/kkm_last_timestamp [17:10:38]Write 4 bytes [17:10:38]NVStorageSaveData done [17:10:38]ExternCall_PrintAddStr [17:10:38]wPrintStart [17:10:38]Write to MH i2c: 01 00 00 3F 23 62 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 07 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 07 00 3F 23 00 00 00 00 00 FF 0F 77 [17:10:38]RasterBufferAndPrint [17:10:38]line Счет N : (1)979858 [17:10:38]line ИНН: 02508201610067 [17:10:38]line Контрольно-Кассовый Чек [17:10:38]line ПРОДАЖА [17:10:38]line ТРК (МРК, ГНК) : 12 [17:10:38]line Товар: 2710124130 [17:10:38]line Аи-92-К-5 [17:10:38]line 3.590 * 66.90 [17:10:38]line = 240.17 [17:10:38]line НДС 12% НСП 1% [17:10:38]line > о реализуемом товаре [17:10:38]line ОКРУГЛЕНИЕ: -0.17 [17:10:38]line ИТОГО: 240.00 [17:10:38]line Внесено: 240.00 [17:10:38]line СДАЧА: 0.00 [17:10:38]line НСП 1% : 2.12 [17:10:38]line НДС 12% : 25.50 [17:10:38]line Наличными: 240.00 [17:10:38]line Безнал.: 0.00 [17:10:38]line Место: АЗС № 68 "Партнер Нефть" [17:10:38]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:10:38]line СНО: Общий режим [17:10:38]line Чек 265 04.06.2024 17:10 [17:10:38]line Смена: 368 ФФД: 1.0 [17:10:38]line ЗНМ: 0300000035 [17:10:38]line РНМ: 0000000000092720 [17:10:38]line Версия ККМ: 001 [17:10:38]line ФМ: 0000000000875057 [17:10:38]line ФД: 148926 [17:10:38]line ФПД: 260179406946492 [17:10:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171039&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148926&fm=260179406946492&tin=02508201610067®Number=0000000000092720&sum=24000 [17:10:39]OFD Sender: Processing packet 148926 [packets to send 100, broken 99] [17:10:39]ProducePacketName [17:10:39]name=ofd_packets/00148926 [17:10:39]OFD Sender: To server: pG, [17:10:39]CommunicateWithHost lk.salyk.kg:30040 [17:10:39]ConnectInit lk.salyk.kg [17:10:39]written 0, free lines is 4095 [17:10:39]Connected sock=11 [17:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 16 D8 07 01 C8 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 8F 4A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BE 45 02 00 35 04 06 00 EC A1 BD 21 00 BC F9 58 75 51 F6 9E E8 31 [17:10:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9D 7B 47 00 5F 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 38 37 35 30 35 37 10 04 04 00 BE 45 02 00 F4 03 04 00 B2 F1 5E 66 B6 04 01 00 00 5A CA 27 69 59 39 DF 59 [17:10:39]CommunicateWithHost err = 0 [17:10:39]CheckOFDResponse [17:10:39]1017 (14) - 77093643461234 [17:10:39]1041 (16) - 0000000000875057 [17:10:39]1040 (4) - 148926 [17:10:39]1012 (4) - 04.06.2024 10:51 [17:10:39]1206 (1) - 0 [17:10:39]OFD Sender: Remove packet 148926 [17:10:39]ProducePacketName [17:10:39]name=ofd_packets/00148926 [17:10:39]NVStorageDeleteData [17:10:39]Write to MH i2c: 01 00 00 6A 23 8D [17:10:39]Write i2c OK [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: 01 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: 01 07 00 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: 01 07 00 6A 23 00 00 00 00 00 66 0C 06 [17:10:39]RasterBufferAndPrint [17:10:39]line [17:10:39]line [17:10:39]line [17:10:39]line [17:10:39]line [17:10:39]written 0, free lines is 3177 [17:10:39]MH_Cut [17:10:39]Write to MH i2c: D1 01 00 71 23 01 66 [17:10:39]Write i2c OK [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: D1 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: D1 01 00 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: D1 01 00 71 23 00 65 [17:10:39]Write to MH i2c: 01 00 00 72 23 95 [17:10:39]Write i2c OK [17:10:39]MH_I2C_Read... [17:10:40]OFD Sender: No OFD packet to send [17:10:40]*** Cut start [17:10:40]*** Partial cut [17:10:40]*** CUTSNS_PIN = 1 [17:10:41]*** CUTSNS_PIN = 0 [17:10:41]*** Brake cut motor [17:10:41]Read from MH i2c: 01 [17:10:41]MH_I2C_Read... [17:10:41]*** Stop cut motor [17:10:41]*** Cut end [17:10:41]Read from MH i2c: 01 07 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: 01 07 00 72 23 00 00 00 00 00 FF 0F AA [17:10:41]process_action close_receipt done [17:10:41]requested_data is exist [17:10:41]produce_requested_data [17:10:41]requested_item fm.sn is exist - process it [17:10:41]wFMCommunicate request_size=4 [17:10:41]MH_SAM_APDU [17:10:41]CAPDU: 80 11 00 00 [17:10:41]Write to MH i2c: E2 08 00 73 23 80 11 00 00 00 00 00 00 10 [17:10:41]Write i2c OK [17:10:41]MH_I2C_Read... [17:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:41]Read from MH i2c: E2 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 17 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 17 00 73 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 63 [17:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:10:41]wFMCommunicate OK [17:10:41]requested_item fd.num is exist - process it [17:10:41]SAM_PROTO_GetFieldsCounters [17:10:41]wFMCommunicate request_size=4 [17:10:41]MH_SAM_APDU [17:10:41]CAPDU: 80 13 00 00 [17:10:41]Write to MH i2c: E2 08 00 74 23 80 13 00 00 00 00 00 00 13 [17:10:41]Write i2c OK [17:10:41]MH_I2C_Read... [17:10:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:41]Read from MH i2c: E2 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 62 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 62 00 74 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [17:10:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:41]wFMCommunicate OK [17:10:41]SAM_PROTO_GetFieldsCounters done [17:10:41]requested_item shift.num is exist - process it [17:10:41]requested_item shift.opened is exist - process it [17:10:41]req_shift_opened [17:10:41]FM_GetShiftState [17:10:41]SAM_PROTO_GetShiftState [17:10:41]wFMCommunicate request_size=4 [17:10:41]MH_SAM_APDU [17:10:41]CAPDU: 80 13 01 00 [17:10:41]Write to MH i2c: E2 08 00 75 23 80 13 01 00 00 00 00 00 15 [17:10:41]Write i2c OK [17:10:41]MH_I2C_Read... [17:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:41]Read from MH i2c: E2 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 0E 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 0E 00 75 23 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D8 [17:10:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:10:41]wFMCommunicate OK [17:10:41]SAM_PROTO_GetShiftState done [17:10:41]FM_GetShiftState done [17:10:41]req_shift_opened done [17:10:41]requested_item shift.open_date is exist - process it [17:10:41]req_shift_open_date [17:10:41]req_shift_open_date done [17:10:41]produce_requested_data done [17:10:41]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148926,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:10:41]process_action_free close_receipt [17:10:41]json_value_free [17:10:41]json_value_free done [17:10:41]process_json_proto returns [17:10:41]Send response to host [17:10:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148926,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:10:41]free response buf [17:10:41]execute_script done [17:10:41]execute_script returns [17:10:41]free content buf [17:10:41]Sock 7.Close socket [17:10:41]Sock 7.Thread stoped [17:10:44]accept exits with 9 [17:10:44]New connection [17:10:44]New thread 3067407716 created [17:10:44]Thread 3067264356 joined [17:10:44]Waiting for new connection... [17:10:44] Sock 9.Parse request [17:10:44]Sock 9.Check first char [17:10:44]Sock 9.First char is OK [17:10:44]request: POST /json_proto HTTP/1.0 [17:10:44]Method: POST [17:10:44]URL: /json_proto [17:10:44]Method is POST - this is cgi request [17:10:44]url: /json_proto [17:10:44]query_string will be loaded in cgi processing [17:10:44]execute_cgi json_proto POST (null) [17:10:44]execute_cgi path=json_proto method=POST [17:10:44]POST find Content-Length [17:10:44]Host: 172.17.38.4:8080 [17:10:44]Content-Length: 790 [17:10:44]Content-Type: application/json [17:10:44] [17:10:44]POST finish read [17:10:44]Found Content-Length = 790 [17:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:44]execute_script... [17:10: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)979857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:44]POST & json_proto [17:10:44]process_json_proto [17:10:44]json parsed OK: [17:10:44]protocol is kg_v1.0 [17:10:44]action value=close_receipt [17:10:44]process_action close_receipt [17:10:44]cmd_close_receipt [17:10:44]MH_GetDate [17:10:44]Write to MH i2c: F0 00 00 76 23 88 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: F0 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: F0 09 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: F0 09 00 76 23 00 95 4A 5F 66 CC 51 87 64 3D [17:10:44]GetLastDocTimeStamp 1717521039 [17:10:44]current date 1717521045 [17:10:44]FM_GetShiftState [17:10:44]SAM_PROTO_GetShiftState [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 13 01 00 [17:10:44]Write to MH i2c: E2 08 00 77 23 80 13 01 00 00 00 00 00 17 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 0E 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 0E 00 77 23 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DA [17:10:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:10:44]wFMCommunicate OK [17:10:44]SAM_PROTO_GetShiftState done [17:10:44]FM_GetShiftState done [17:10:44]opened in 1717460629 [17:10:44]opened+sec_in_day 1717547029 [17:10:44]quantity*price = 30038 [17:10:44]sum+1 = 30039 [17:10:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 266 04.06.2024 17:10 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148927 ФПД: 14305965237066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171046&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148927&fm=14305965237066&tin=02508201610067®Number=0000000000092720&sum=30038 [17:10:45]StoreToDocumentArchive [17:10:45]shift 368 fd 148927 [17:10:45]save to /storage/0368/doc_00148927 [17:10:45]save last doc name /storage/0368/doc_00148927 to /storage/kkm_last_doc_name [17:10:45]save OK [17:10:45]Clear old archive folders... [17:10:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:45]tlvbuf is B6F17600 [17:10:45]SAM_PROTO_ClearQueue [17:10:45]wFMCommunicate request_size=4 [17:10:45]MH_SAM_APDU [17:10:45]CAPDU: 80 09 00 00 [17:10:45]Write to MH i2c: E2 08 00 84 23 80 09 00 00 00 00 00 00 19 [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 03 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 03 00 84 23 00 90 00 1B [17:10:45]RAPDU: 90 00 [17:10:45]wFMCommunicate OK [17:10:45]SAM_PROTO_ClearQueue done [17:10:45]KKMCreateOFDPacket [17:10:45]OFDProtocolAddRootSTLVToBuf [17:10:45]FM_MakeSignedData [17:10:45]FM_MakeSignedData [17:10:45]SAM_PROTO_SignData [17:10:45]wFMCommunicate request_size=4 [17:10:45]MH_SAM_APDU [17:10:45]CAPDU: 80 0D 01 02 [17:10:45]Write to MH i2c: E2 08 00 85 23 80 0D 01 02 00 00 00 00 21 [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 03 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 03 00 85 23 00 90 00 1C [17:10:45]RAPDU: 90 00 [17:10:45]wFMCommunicate OK [17:10:45]wFMCommunicate request_size=255 [17:10:45]MH_SAM_APDU [17:10:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 01 00 00 F4 03 04 00 96 4A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BF 45 02 00 35 04 06 00 0D [17:10:45]Write to MH i2c: E2 02 01 86 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 01 00 00 F4 03 04 00 96 4A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BF 45 02 00 35 04 06 00 0D 00 00 1F [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 03 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 03 00 86 23 00 90 00 1D [17:10:45]RAPDU: 90 00 [17:10:45]wFMCommunicate OK [17:10:45]wFMCommunicate request_size=10 [17:10:45]MH_SAM_APDU [17:10:45]CAPDU: 80 0D 02 02 05 02 DD F9 E3 4A [17:10:45]Write to MH i2c: E2 0D 00 87 23 80 0D 02 02 05 00 02 DD F9 E3 4A 00 00 33 [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 03 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 03 00 87 23 00 90 00 1E [17:10:45]RAPDU: 90 00 [17:10:45]wFMCommunicate OK [17:10:45]wFMCommunicate request_size=4 [17:10:45]MH_SAM_APDU [17:10:45]CAPDU: 80 0D 03 02 [17:10:45]Write to MH i2c: E2 08 00 88 23 80 0D 03 02 00 00 00 00 26 [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 0B 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 0B 00 88 23 00 F6 BD 4F BB DF 84 A2 27 90 00 10 [17:10:45]RAPDU: F6 BD 4F BB DF 84 A2 27 90 00 [17:10:45]wFMCommunicate OK [17:10:45]SAM_PROTO_SignData done [17:10:45]FM_MakeSignedData done [17:10:45]CreateOFDProtocolMessage [17:10:45]wFMCommunicate request_size=4 [17:10:45]MH_SAM_APDU [17:10:45]CAPDU: 80 11 00 00 [17:10:45]Write to MH i2c: E2 08 00 89 23 80 11 00 00 00 00 00 00 26 [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 17 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 17 00 89 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 79 [17:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:10:45]wFMCommunicate OK [17:10:45]CreateOFDProtocolMessage done [17:10:45]OFDSenderStorePacket 148927 [17:10:45]StoreOFDPacket docnum=148927 [17:10:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 EA C0 07 01 0A 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 96 4A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BF 45 02 00 35 04 06 00 0D 02 DD F9 E3 4A F6 BD 4F BB DF 84 A2 27 [17:10:45]CheckFolder [17:10:45]dirname=/storage/ofd_packets [17:10:45]CheckFolder done [17:10:45]ProducePacketName [17:10:45]name=ofd_packets/00148927 [17:10:45]NVStorageSaveData ofd_packets/00148927 [17:10:45]File name is /storage/ofd_packets/00148927 [17:10:45]Write 301 bytes [17:10:45]NVStorageSaveData done [17:10:45]OFDSenderStorePacket done [17:10:45]KKMCreateOFDPacket done [17:10:45]NVStorageSaveData kkm_last_timestamp [17:10:45]File name is /storage/kkm_last_timestamp [17:10:45]Write 4 bytes [17:10:45]NVStorageSaveData done [17:10:45]ExternCall_PrintAddStr [17:10:45]wPrintStart [17:10:45]Write to MH i2c: 01 00 00 8A 23 AD [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: 01 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: 01 07 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: 01 07 00 8A 23 00 00 00 00 00 FF 0F C2 [17:10:45]RasterBufferAndPrint [17:10:45]line Счет N : (1)979857 [17:10:45]line ИНН: 02508201610067 [17:10:45]line Контрольно-Кассовый Чек [17:10:45]line ПРОДАЖА [17:10:45]line ТРК (МРК, ГНК) : 31 [17:10:45]line Товар: 2710124130 [17:10:45]line Аи-92-К-5 [17:10:45]line 4.490 * 66.90 [17:10:45]line = 300.38 [17:10:45]line НДС 12% НСП 1% [17:10:45]line > о реализуемом товаре [17:10:45]line ИТОГО: 300.38 [17:10:45]line НСП 1% : 2.66 [17:10:45]line НДС 12% : 31.90 [17:10:45]line Наличными: 0.00 [17:10:45]line Безнал.: 300.38 [17:10:45]line Место: АЗС № 68 "Партнер Нефть" [17:10:45]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:10:45]line СНО: Общий режим [17:10:45]line Чек 266 04.06.2024 17:10 [17:10:45]line Смена: 368 ФФД: 1.0 [17:10:45]line ЗНМ: 0300000035 [17:10:45]line РНМ: 0000000000092720 [17:10:45]line Версия ККМ: 001 [17:10:45]line Платежная система: KICB Банк [17:10:45]line ФМ: 0000000000875057 [17:10:45]line ФД: 148927 [17:10:45]line ФПД: 14305965237066 [17:10:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171046&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148927&fm=14305965237066&tin=02508201610067®Number=0000000000092720&sum=30038 [17:10:45]written 0, free lines is 4095 [17:10:45]OFD Sender: Processing packet 148927 [packets to send 100, broken 99] [17:10:45]ProducePacketName [17:10:45]name=ofd_packets/00148927 [17:10:45]OFD Sender: To server: pG, [17:10:45]CommunicateWithHost lk.salyk.kg:30040 [17:10:45]ConnectInit lk.salyk.kg [17:10:46]Connected sock=10 [17:10:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 EA C0 07 01 0A 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 96 4A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 BF 45 02 00 35 04 06 00 0D 02 DD F9 E3 4A F6 BD 4F BB DF 84 A2 27 [17:10:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 95 79 47 00 E6 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 38 37 35 30 35 37 10 04 04 00 BF 45 02 00 F4 03 04 00 B9 F1 5E 66 B6 04 01 00 00 18 27 5E B4 4A D6 7F F4 [17:10:46]CommunicateWithHost err = 0 [17:10:46]CheckOFDResponse [17:10:46]1017 (14) - 77093643461234 [17:10:46]1041 (16) - 0000000000875057 [17:10:46]1040 (4) - 148927 [17:10:46]1012 (4) - 04.06.2024 10:51 [17:10:46]1206 (1) - 0 [17:10:46]OFD Sender: Remove packet 148927 [17:10:46]ProducePacketName [17:10:46]name=ofd_packets/00148927 [17:10:46]NVStorageDeleteData [17:10:46]Write to MH i2c: 01 00 00 B4 23 D7 [17:10:46]Write i2c OK [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: 01 [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: 01 07 00 [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: 01 07 00 B4 23 00 00 00 00 00 91 0C 7B [17:10:46]RasterBufferAndPrint [17:10:46]line [17:10:46]line [17:10:46]line [17:10:46]line [17:10:46]line [17:10:46]written 0, free lines is 3222 [17:10:46]MH_Cut [17:10:46]Write to MH i2c: D1 01 00 BB 23 01 B0 [17:10:46]Write i2c OK [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: D1 [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: D1 01 00 [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: D1 01 00 BB 23 00 AF [17:10:46]Write to MH i2c: 01 00 00 BC 23 DF [17:10:46]Write i2c OK [17:10:46]MH_I2C_Read... [17:10:46]OFD Sender: No OFD packet to send [17:10:47]*** Cut start [17:10:47]*** Partial cut [17:10:47]*** CUTSNS_PIN = 1 [17:10:47]*** CUTSNS_PIN = 0 [17:10:47]*** Brake cut motor [17:10:48]Read from MH i2c: 01 [17:10:48]MH_I2C_Read... [17:10:48]*** Stop cut motor [17:10:48]*** Cut end [17:10:48]Read from MH i2c: 01 07 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 07 00 BC 23 00 00 00 00 00 FF 0F F4 [17:10:48]process_action close_receipt done [17:10:48]requested_data is exist [17:10:48]produce_requested_data [17:10:48]requested_item fm.sn is exist - process it [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 11 00 00 [17:10:48]Write to MH i2c: E2 08 00 BD 23 80 11 00 00 00 00 00 00 5A [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 17 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 17 00 BD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AD [17:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:10:48]wFMCommunicate OK [17:10:48]requested_item fd.num is exist - process it [17:10:48]SAM_PROTO_GetFieldsCounters [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 13 00 00 [17:10:48]Write to MH i2c: E2 08 00 BE 23 80 13 00 00 00 00 00 00 5D [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 62 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 62 00 BE 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [17:10:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 BF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:48]wFMCommunicate OK [17:10:48]SAM_PROTO_GetFieldsCounters done [17:10:48]requested_item shift.num is exist - process it [17:10:48]requested_item shift.opened is exist - process it [17:10:48]req_shift_opened [17:10:48]FM_GetShiftState [17:10:48]SAM_PROTO_GetShiftState [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 13 01 00 [17:10:48]Write to MH i2c: E2 08 00 BF 23 80 13 01 00 00 00 00 00 5F [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 0E 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 0E 00 BF 23 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 22 [17:10:48]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:10:48]wFMCommunicate OK [17:10:48]SAM_PROTO_GetShiftState done [17:10:48]FM_GetShiftState done [17:10:48]req_shift_opened done [17:10:48]requested_item shift.open_date is exist - process it [17:10:48]req_shift_open_date [17:10:48]req_shift_open_date done [17:10:48]produce_requested_data done [17:10:48]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148927,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:10:48]process_action_free close_receipt [17:10:48]json_value_free [17:10:48]json_value_free done [17:10:48]process_json_proto returns [17:10:48]Send response to host [17:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148927,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:10:48]free response buf [17:10:48]execute_script done [17:10:48]execute_script returns [17:10:48]free content buf [17:10:48]Sock 9.Close socket [17:10:48]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:31]accept exits with 7 [17:16:31]New connection [17:16:31]New thread 3067264356 created [17:16:31]Thread 3067407716 joined [17:16:31]Waiting for new connection... [17:16:31] Sock 7.Parse request [17:16:31]Sock 7.Check first char [17:16:31]Sock 7.First char is OK [17:16:31]request: POST /json_proto HTTP/1.0 [17:16:31]Method: POST [17:16:31]URL: /json_proto [17:16:31]Method is POST - this is cgi request [17:16:31]url: /json_proto [17:16:31]query_string will be loaded in cgi processing [17:16:31]execute_cgi json_proto POST (null) [17:16:31]execute_cgi path=json_proto method=POST [17:16:31]POST find Content-Length [17:16:31]Host: 172.17.38.4:8080 [17:16:31]Content-Length: 800 [17:16:31]Content-Type: application/json [17:16:31] [17:16:31]POST finish read [17:16:31]Found Content-Length = 800 [17:16:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:31]execute_script... [17:16:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:31]POST & json_proto [17:16:31]process_json_proto [17:16:31]json parsed OK: [17:16:31]protocol is kg_v1.0 [17:16:31]action value=close_receipt [17:16:31]process_action close_receipt [17:16:31]cmd_close_receipt [17:16:31]MH_GetDate [17:16:31]Write to MH i2c: F0 00 00 C0 23 D2 [17:16:31]Write i2c OK [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: F0 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: F0 09 00 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: F0 09 00 C0 23 00 F1 4B 5F 66 CC 51 87 64 E4 [17:16:31]GetLastDocTimeStamp 1717521046 [17:16:31]current date 1717521393 [17:16:31]FM_GetShiftState [17:16:31]SAM_PROTO_GetShiftState [17:16:31]wFMCommunicate request_size=4 [17:16:31]MH_SAM_APDU [17:16:31]CAPDU: 80 13 01 00 [17:16:31]Write to MH i2c: E2 08 00 C1 23 80 13 01 00 00 00 00 00 61 [17:16:31]Write i2c OK [17:16:31]MH_I2C_Read... [17:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:31]Read from MH i2c: E2 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 0E 00 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 0E 00 C1 23 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 24 [17:16:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:16:31]wFMCommunicate OK [17:16:31]SAM_PROTO_GetShiftState done [17:16:31]FM_GetShiftState done [17:16:31]opened in 1717460629 [17:16:31]opened+sec_in_day 1717547029 [17:16:31]quantity*price = 40006 [17:16:31]sum+1 = 40007 [17:16:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 267 04.06.2024 17:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148928 ФПД: 187916590297722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171633&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148928&fm=187916590297722&tin=02508201610067®Number=0000000000092720&sum=40006 [17:16:33]StoreToDocumentArchive [17:16:33]shift 368 fd 148928 [17:16:33]save to /storage/0368/doc_00148928 [17:16:33]save last doc name /storage/0368/doc_00148928 to /storage/kkm_last_doc_name [17:16:33]save OK [17:16:33]Clear old archive folders... [17:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:33]tlvbuf is 00466A50 [17:16:33]SAM_PROTO_ClearQueue [17:16:33]wFMCommunicate request_size=4 [17:16:33]MH_SAM_APDU [17:16:33]CAPDU: 80 09 00 00 [17:16:33]Write to MH i2c: E2 08 00 CE 23 80 09 00 00 00 00 00 00 63 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:33]Read from MH i2c: E2 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 03 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 03 00 CE 23 00 90 00 65 [17:16:33]RAPDU: 90 00 [17:16:33]wFMCommunicate OK [17:16:33]SAM_PROTO_ClearQueue done [17:16:33]KKMCreateOFDPacket [17:16:33]OFDProtocolAddRootSTLVToBuf [17:16:33]FM_MakeSignedData [17:16:33]FM_MakeSignedData [17:16:33]SAM_PROTO_SignData [17:16:33]wFMCommunicate request_size=4 [17:16:33]MH_SAM_APDU [17:16:33]CAPDU: 80 0D 01 02 [17:16:33]Write to MH i2c: E2 08 00 CF 23 80 0D 01 02 00 00 00 00 6B [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:33]Read from MH i2c: E2 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 03 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 03 00 CF 23 00 90 00 66 [17:16:33]RAPDU: 90 00 [17:16:33]wFMCommunicate OK [17:16:33]wFMCommunicate request_size=255 [17:16:33]MH_SAM_APDU [17:16:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 01 00 00 F4 03 04 00 F1 4B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C0 45 02 00 35 04 06 00 AA [17:16:33]Write to MH i2c: E2 02 01 D0 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 01 00 00 F4 03 04 00 F1 4B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C0 45 02 00 35 04 06 00 AA 00 00 FF [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:33]Read from MH i2c: E2 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 03 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 03 00 D0 23 00 90 00 67 [17:16:33]RAPDU: 90 00 [17:16:33]wFMCommunicate OK [17:16:33]wFMCommunicate request_size=10 [17:16:33]MH_SAM_APDU [17:16:33]CAPDU: 80 0D 02 02 05 E8 BD 9C B2 7A [17:16:33]Write to MH i2c: E2 0D 00 D1 23 80 0D 02 02 05 00 E8 BD 9C B2 7A 00 00 E5 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:33]Read from MH i2c: E2 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 03 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 03 00 D1 23 00 90 00 68 [17:16:33]RAPDU: 90 00 [17:16:33]wFMCommunicate OK [17:16:33]wFMCommunicate request_size=4 [17:16:33]MH_SAM_APDU [17:16:33]CAPDU: 80 0D 03 02 [17:16:33]Write to MH i2c: E2 08 00 D2 23 80 0D 03 02 00 00 00 00 70 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:33]Read from MH i2c: E2 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 0B 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 0B 00 D2 23 00 01 30 02 D4 08 43 84 4E 90 00 95 [17:16:33]RAPDU: 01 30 02 D4 08 43 84 4E 90 00 [17:16:33]wFMCommunicate OK [17:16:33]SAM_PROTO_SignData done [17:16:33]FM_MakeSignedData done [17:16:33]CreateOFDProtocolMessage [17:16:33]wFMCommunicate request_size=4 [17:16:33]MH_SAM_APDU [17:16:33]CAPDU: 80 11 00 00 [17:16:33]Write to MH i2c: E2 08 00 D3 23 80 11 00 00 00 00 00 00 70 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:33]Read from MH i2c: E2 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 17 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 17 00 D3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C3 [17:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:16:33]wFMCommunicate OK [17:16:33]CreateOFDProtocolMessage done [17:16:33]OFDSenderStorePacket 148928 [17:16:33]StoreOFDPacket docnum=148928 [17:16:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4F D8 07 01 5D 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 01 00 00 F4 03 04 00 F1 4B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C0 45 02 00 35 04 06 00 AA E8 BD 9C B2 7A 01 30 02 D4 08 43 84 4E [17:16:33]CheckFolder [17:16:33]dirname=/storage/ofd_packets [17:16:33]CheckFolder done [17:16:33]ProducePacketName [17:16:33]name=ofd_packets/00148928 [17:16:33]NVStorageSaveData ofd_packets/00148928 [17:16:33]File name is /storage/ofd_packets/00148928 [17:16:33]Write 301 bytes [17:16:33]NVStorageSaveData done [17:16:33]OFDSenderStorePacket done [17:16:33]KKMCreateOFDPacket done [17:16:33]NVStorageSaveData kkm_last_timestamp [17:16:33]File name is /storage/kkm_last_timestamp [17:16:33]Write 4 bytes [17:16:33]NVStorageSaveData done [17:16:33]ExternCall_PrintAddStr [17:16:33]wPrintStart [17:16:33]Write to MH i2c: 01 00 00 D4 23 F7 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 07 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: 01 07 00 D4 23 00 00 00 00 00 FF 0F 0C [17:16:33]RasterBufferAndPrint [17:16:33]line Счет N : (1)979859 [17:16:33]line ИНН: 02508201610067 [17:16:33]line Контрольно-Кассовый Чек [17:16:33]line ПРОДАЖА [17:16:33]line ТРК (МРК, ГНК) : 22 [17:16:33]line Товар: 2710124130 [17:16:33]line Аи-92-К-5 [17:16:33]line 5.980 * 66.90 [17:16:33]line = 400.06 [17:16:33]line НДС 12% НСП 1% [17:16:33]line > о реализуемом товаре [17:16:33]line ИТОГО: 400.06 [17:16:33]line НСП 1% : 3.54 [17:16:33]line НДС 12% : 42.48 [17:16:33]line Наличными: 0.00 [17:16:33]line Безнал.: 400.06 [17:16:33]line Место: АЗС № 68 "Партнер Нефть" [17:16:33]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:16:33]line СНО: Общий режим [17:16:33]line Чек 267 04.06.2024 17:16 [17:16:33]line Смена: 368 ФФД: 1.0 [17:16:33]line ЗНМ: 0300000035 [17:16:33]line РНМ: 0000000000092720 [17:16:33]line Версия ККМ: 001 [17:16:33]line Платежная система: O! деньги [17:16:33]line ФМ: 0000000000875057 [17:16:33]line ФД: 148928 [17:16:33]line ФПД: 187916590297722 [17:16:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171633&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148928&fm=187916590297722&tin=02508201610067®Number=0000000000092720&sum=40006 [17:16:33]OFD Sender: Processing packet 148928 [packets to send 100, broken 99] [17:16:33]ProducePacketName [17:16:33]name=ofd_packets/00148928 [17:16:33]OFD Sender: To server: pG, [17:16:33]CommunicateWithHost lk.salyk.kg:30040 [17:16:33]ConnectInit lk.salyk.kg [17:16:33]written 0, free lines is 4095 [17:16:34]Connected sock=11 [17:16:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4F D8 07 01 5D 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 01 00 00 F4 03 04 00 F1 4B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C0 45 02 00 35 04 06 00 AA E8 BD 9C B2 7A 01 30 02 D4 08 43 84 4E [17:16:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 17 B0 47 00 DA 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C0 45 02 00 F4 03 04 00 15 F3 5E 66 B6 04 01 00 00 71 25 B9 3F 26 ED D8 53 [17:16:34]CommunicateWithHost err = 0 [17:16:34]CheckOFDResponse [17:16:34]1017 (14) - 77093643461234 [17:16:34]1041 (16) - 0000000000875057 [17:16:34]1040 (4) - 148928 [17:16:34]1012 (4) - 04.06.2024 10:57 [17:16:34]1206 (1) - 0 [17:16:34]OFD Sender: Remove packet 148928 [17:16:34]ProducePacketName [17:16:34]name=ofd_packets/00148928 [17:16:34]NVStorageDeleteData [17:16:34]Write to MH i2c: 01 00 00 FE 23 21 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: 01 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: 01 07 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: 01 07 00 FE 23 00 00 00 00 00 83 0C B7 [17:16:34]RasterBufferAndPrint [17:16:34]line [17:16:34]line [17:16:34]line [17:16:34]line [17:16:34]line [17:16:34]written 0, free lines is 3207 [17:16:34]MH_Cut [17:16:34]Write to MH i2c: D1 01 00 05 24 01 FB [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: D1 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: D1 01 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: D1 01 00 05 24 00 FA [17:16:34]Write to MH i2c: 01 00 00 06 24 2A [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]OFD Sender: No OFD packet to send [17:16:35]*** Cut start [17:16:35]*** Partial cut [17:16:35]*** CUTSNS_PIN = 1 [17:16:35]*** CUTSNS_PIN = 0 [17:16:35]*** Brake cut motor [17:16:36]Read from MH i2c: 01 [17:16:36]MH_I2C_Read... [17:16:36]*** Stop cut motor [17:16:36]*** Cut end [17:16:36]Read from MH i2c: 01 07 00 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: 01 07 00 06 24 00 00 00 00 00 FF 0F 3F [17:16:36]process_action close_receipt done [17:16:36]requested_data is exist [17:16:36]produce_requested_data [17:16:36]requested_item fm.sn is exist - process it [17:16:36]wFMCommunicate request_size=4 [17:16:36]MH_SAM_APDU [17:16:36]CAPDU: 80 11 00 00 [17:16:36]Write to MH i2c: E2 08 00 07 24 80 11 00 00 00 00 00 00 A5 [17:16:36]Write i2c OK [17:16:36]MH_I2C_Read... [17:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:36]Read from MH i2c: E2 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 17 00 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 17 00 07 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F8 [17:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:16:36]wFMCommunicate OK [17:16:36]requested_item fd.num is exist - process it [17:16:36]SAM_PROTO_GetFieldsCounters [17:16:36]wFMCommunicate request_size=4 [17:16:36]MH_SAM_APDU [17:16:36]CAPDU: 80 13 00 00 [17:16:36]Write to MH i2c: E2 08 00 08 24 80 13 00 00 00 00 00 00 A8 [17:16:36]Write i2c OK [17:16:36]MH_I2C_Read... [17:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:36]Read from MH i2c: E2 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 62 00 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 62 00 08 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C0 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [17:16:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C0 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:36]wFMCommunicate OK [17:16:36]SAM_PROTO_GetFieldsCounters done [17:16:36]requested_item shift.num is exist - process it [17:16:36]requested_item shift.opened is exist - process it [17:16:36]req_shift_opened [17:16:36]FM_GetShiftState [17:16:36]SAM_PROTO_GetShiftState [17:16:36]wFMCommunicate request_size=4 [17:16:36]MH_SAM_APDU [17:16:36]CAPDU: 80 13 01 00 [17:16:36]Write to MH i2c: E2 08 00 09 24 80 13 01 00 00 00 00 00 AA [17:16:36]Write i2c OK [17:16:36]MH_I2C_Read... [17:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:36]Read from MH i2c: E2 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 0E 00 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 0E 00 09 24 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6D [17:16:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:16:36]wFMCommunicate OK [17:16:36]SAM_PROTO_GetShiftState done [17:16:36]FM_GetShiftState done [17:16:36]req_shift_opened done [17:16:36]requested_item shift.open_date is exist - process it [17:16:36]req_shift_open_date [17:16:36]req_shift_open_date done [17:16:36]produce_requested_data done [17:16:36]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148928,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:16:36]process_action_free close_receipt [17:16:36]json_value_free [17:16:36]json_value_free done [17:16:36]process_json_proto returns [17:16:36]Send response to host [17:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148928,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:16:36]free response buf [17:16:36]execute_script done [17:16:36]execute_script returns [17:16:36]free content buf [17:16:36]Sock 7.Close socket [17:16:36]Sock 7.Thread stoped [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:10]accept exits with 9 [17:17:10]New connection [17:17:10]New thread 3067407716 created [17:17:10]Thread 3067264356 joined [17:17:10]Waiting for new connection... [17:17:10] Sock 9.Parse request [17:17:10]Sock 9.Check first char [17:17:10]Sock 9.First char is OK [17:17:10]request: POST /json_proto HTTP/1.0 [17:17:10]Method: POST [17:17:10]URL: /json_proto [17:17:10]Method is POST - this is cgi request [17:17:10]url: /json_proto [17:17:10]query_string will be loaded in cgi processing [17:17:10]execute_cgi json_proto POST (null) [17:17:10]execute_cgi path=json_proto method=POST [17:17:10]POST find Content-Length [17:17:10]Host: 172.17.38.4:8080 [17:17:10]Content-Length: 657 [17:17:10]Content-Type: application/json [17:17:10] [17:17:10]POST finish read [17:17:10]Found Content-Length = 657 [17:17:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11908", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:10]execute_script... [17:17:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11908", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:10]POST & json_proto [17:17:10]process_json_proto [17:17:10]json parsed OK: [17:17:10]protocol is kg_v1.0 [17:17:10]action value=close_receipt [17:17:10]process_action close_receipt [17:17:10]cmd_close_receipt [17:17:10]MH_GetDate [17:17:10]Write to MH i2c: F0 00 00 0A 24 1D [17:17:10]Write i2c OK [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: F0 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: F0 09 00 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: F0 09 00 0A 24 00 18 4C 5F 66 CC 51 87 64 57 [17:17:10]GetLastDocTimeStamp 1717521393 [17:17:10]current date 1717521432 [17:17:10]FM_GetShiftState [17:17:10]SAM_PROTO_GetShiftState [17:17:10]wFMCommunicate request_size=4 [17:17:10]MH_SAM_APDU [17:17:10]CAPDU: 80 13 01 00 [17:17:10]Write to MH i2c: E2 08 00 0B 24 80 13 01 00 00 00 00 00 AC [17:17:10]Write i2c OK [17:17:10]MH_I2C_Read... [17:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:10]Read from MH i2c: E2 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: E2 0E 00 [17:17:10]MH_I2C_Read... [17:17:10]Read from MH i2c: E2 0E 00 0B 24 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6F [17:17:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:17:10]wFMCommunicate OK [17:17:10]SAM_PROTO_GetShiftState done [17:17:10]FM_GetShiftState done [17:17:10]opened in 1717460629 [17:17:10]opened+sec_in_day 1717547029 [17:17:10]quantity*price = 11300 [17:17:10]sum+1 = 11301 [17:17:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 268 04.06.2024 17:17 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148929 ФПД: 202898236081912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171712&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148929&fm=202898236081912&tin=02508201610067®Number=0000000000092720&sum=11300 0 [17:17:11]StoreToDocumentArchive [17:17:11]shift 368 fd 148929 [17:17:11]save to /storage/0368/doc_00148929 [17:17:11]save last doc name /storage/0368/doc_00148929 to /storage/kkm_last_doc_name [17:17:11]save OK [17:17:11]Clear old archive folders... [17:17:11]ProcessDocumentItem done err = 0, tmpTLVsize=278 [17:17:11]tlvbuf is 004C0560 [17:17:11]SAM_PROTO_ClearQueue [17:17:11]wFMCommunicate request_size=4 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 09 00 00 [17:17:11]Write to MH i2c: E2 08 00 18 24 80 09 00 00 00 00 00 00 AE [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 18 24 00 90 00 B0 [17:17:11]RAPDU: 90 00 [17:17:11]wFMCommunicate OK [17:17:11]SAM_PROTO_ClearQueue done [17:17:11]KKMCreateOFDPacket [17:17:11]OFDProtocolAddRootSTLVToBuf [17:17:11]FM_MakeSignedData [17:17:11]FM_MakeSignedData [17:17:11]SAM_PROTO_SignData [17:17:11]wFMCommunicate request_size=4 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 0D 01 02 [17:17:11]Write to MH i2c: E2 08 00 19 24 80 0D 01 02 00 00 00 00 B6 [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 19 24 00 90 00 B1 [17:17:11]RAPDU: 90 00 [17:17:11]wFMCommunicate OK [17:17:11]wFMCommunicate request_size=255 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 18 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 [17:17:11]Write to MH i2c: E2 02 01 1A 24 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 18 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 00 00 A9 [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 1A 24 00 90 00 B2 [17:17:11]RAPDU: 90 00 [17:17:11]wFMCommunicate OK [17:17:11]wFMCommunicate request_size=37 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C1 45 02 00 35 04 06 00 B8 88 ED 49 86 F8 [17:17:11]Write to MH i2c: E2 28 00 1B 24 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C1 45 02 00 35 04 06 00 B8 88 ED 49 86 F8 00 00 0C [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 03 00 1B 24 00 90 00 B3 [17:17:11]RAPDU: 90 00 [17:17:11]wFMCommunicate OK [17:17:11]wFMCommunicate request_size=4 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 0D 03 02 [17:17:11]Write to MH i2c: E2 08 00 1C 24 80 0D 03 02 00 00 00 00 BB [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 0B 00 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 0B 00 1C 24 00 43 6C 36 4A 3F E0 9F F4 90 00 9D [17:17:11]RAPDU: 43 6C 36 4A 3F E0 9F F4 90 00 [17:17:11]wFMCommunicate OK [17:17:11]SAM_PROTO_SignData done [17:17:11]FM_MakeSignedData done [17:17:11]CreateOFDProtocolMessage [17:17:11]wFMCommunicate request_size=4 [17:17:11]MH_SAM_APDU [17:17:11]CAPDU: 80 11 00 00 [17:17:11]Write to MH i2c: E2 08 00 1D 24 80 11 00 00 00 00 00 00 BB [17:17:11]Write i2c OK [17:17:11]MH_I2C_Read... [17:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:11]Read from MH i2c: E2 [17:17:11]MH_I2C_Read... [17:17:11]Read from MH i2c: E2 17 00 [17:17:11]MH_I2C_Read... [17:17:12]Read from MH i2c: E2 17 00 1D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0E [17:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:17:12]wFMCommunicate OK [17:17:12]CreateOFDProtocolMessage done [17:17:12]OFDSenderStorePacket 148929 [17:17:12]StoreOFDPacket docnum=148929 [17:17:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2A 01 00 00 AC 6F 22 01 C4 74 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 18 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C1 45 02 00 35 04 06 00 B8 88 ED 49 86 F8 43 6C 36 4A 3F E0 9F F4 [17:17:12]CheckFolder [17:17:12]dirname=/storage/ofd_packets [17:17:12]CheckFolder done [17:17:12]ProducePacketName [17:17:12]name=ofd_packets/00148929 [17:17:12]NVStorageSaveData ofd_packets/00148929 [17:17:12]File name is /storage/ofd_packets/00148929 [17:17:12]Write 328 bytes [17:17:12]NVStorageSaveData done [17:17:12]OFDSenderStorePacket done [17:17:12]KKMCreateOFDPacket done [17:17:12]NVStorageSaveData kkm_last_timestamp [17:17:12]File name is /storage/kkm_last_timestamp [17:17:12]Write 4 bytes [17:17:12]NVStorageSaveData done [17:17:12]ExternCall_PrintAddStr [17:17:12]wPrintStart [17:17:12]Write to MH i2c: 01 00 00 1E 24 42 [17:17:12]Write i2c OK [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: 01 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: 01 07 00 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: 01 07 00 1E 24 00 00 00 00 00 FF 0F 57 [17:17:12]RasterBufferAndPrint [17:17:12]line Счет N : (3)11908 [17:17:12]line ИНН: 02508201610067 [17:17:12]line Контрольно-Кассовый Чек [17:17:12]line ПРОДАЖА [17:17:12]line Товар: 5449000054227 [17:17:12]line Напиток Кока-Кола 1л [17:17:12]line 1.000 * 113.00 [17:17:12]line = 113.00 [17:17:12]line НДС 12% НСП 1% [17:17:12]line > о реализуемом товаре [17:17:12]line ИТОГО: 113.00 [17:17:12]line НСП 1% : 1.00 [17:17:12]line НДС 12% : 12.00 [17:17:12]line Наличными: 113.00 [17:17:12]line Безнал.: 0.00 [17:17:12]line Место: АЗС № 68 "Партнер Нефть" [17:17:12]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:17:12]line СНО: Общий режим [17:17:12]line Чек 268 04.06.2024 17:17 [17:17:12]line Смена: 368 ФФД: 1.0 [17:17:12]line ЗНМ: 0300000035 [17:17:12]line РНМ: 0000000000092720 [17:17:12]line Версия ККМ: 001 [17:17:12]line ФМ: 0000000000875057 [17:17:12]line ФД: 148929 [17:17:12]line ФПД: 202898236081912 [17:17:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171712&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148929&fm=202898236081912&tin=02508201610067®Number=0000000000092720&sum=11300 [17:17:12]line 0 [17:17:12]OFD Sender: Processing packet 148929 [packets to send 100, broken 99] [17:17:12]ProducePacketName [17:17:12]name=ofd_packets/00148929 [17:17:12]OFD Sender: To server: pG, [17:17:12]CommunicateWithHost lk.salyk.kg:30040 [17:17:12]ConnectInit lk.salyk.kg [17:17:12]written 0, free lines is 4095 [17:17:12]Connected sock=10 [17:17:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2A 01 00 00 AC 6F 22 01 C4 74 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 18 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C1 45 02 00 35 04 06 00 B8 88 ED 49 86 F8 43 6C 36 4A 3F E0 9F F4 [17:17:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3F 86 47 00 AF F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C1 45 02 00 F4 03 04 00 3B F3 5E 66 B6 04 01 00 00 DC 53 82 A4 47 8E A5 A9 [17:17:12]CommunicateWithHost err = 0 [17:17:12]CheckOFDResponse [17:17:12]1017 (14) - 77093643461234 [17:17:12]1041 (16) - 0000000000875057 [17:17:12]1040 (4) - 148929 [17:17:12]1012 (4) - 04.06.2024 10:58 [17:17:12]1206 (1) - 0 [17:17:12]OFD Sender: Remove packet 148929 [17:17:12]ProducePacketName [17:17:12]name=ofd_packets/00148929 [17:17:12]NVStorageDeleteData [17:17:12]Write to MH i2c: 01 00 00 46 24 6A [17:17:12]Write i2c OK [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: 01 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: 01 07 00 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: 01 07 00 46 24 00 00 00 00 00 92 0C 0F [17:17:12]RasterBufferAndPrint [17:17:12]line [17:17:12]line [17:17:12]line [17:17:12]line [17:17:12]line [17:17:12]written 0, free lines is 3223 [17:17:12]MH_Cut [17:17:12]Write to MH i2c: D1 01 00 4D 24 01 43 [17:17:12]Write i2c OK [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: D1 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: D1 01 00 [17:17:12]MH_I2C_Read... [17:17:12]Read from MH i2c: D1 01 00 4D 24 00 42 [17:17:12]Write to MH i2c: 01 00 00 4E 24 72 [17:17:12]Write i2c OK [17:17:12]MH_I2C_Read... [17:17:13]OFD Sender: No OFD packet to send [17:17:13]*** Cut start [17:17:13]*** Partial cut [17:17:13]*** CUTSNS_PIN = 1 [17:17:13]*** CUTSNS_PIN = 0 [17:17:14]*** Brake cut motor [17:17:14]Read from MH i2c: 01 [17:17:14]MH_I2C_Read... [17:17:14]*** Stop cut motor [17:17:14]*** Cut end [17:17:14]Read from MH i2c: 01 07 00 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 FF 0F 87 [17:17:14]process_action close_receipt done [17:17:14]requested_data is exist [17:17:14]produce_requested_data [17:17:14]requested_item fm.sn is exist - process it [17:17:14]wFMCommunicate request_size=4 [17:17:14]MH_SAM_APDU [17:17:14]CAPDU: 80 11 00 00 [17:17:14]Write to MH i2c: E2 08 00 4F 24 80 11 00 00 00 00 00 00 ED [17:17:14]Write i2c OK [17:17:14]MH_I2C_Read... [17:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:14]Read from MH i2c: E2 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: E2 17 00 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: E2 17 00 4F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 40 [17:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:17:14]wFMCommunicate OK [17:17:14]requested_item fd.num is exist - process it [17:17:14]SAM_PROTO_GetFieldsCounters [17:17:14]wFMCommunicate request_size=4 [17:17:14]MH_SAM_APDU [17:17:14]CAPDU: 80 13 00 00 [17:17:14]Write to MH i2c: E2 08 00 50 24 80 13 00 00 00 00 00 00 F0 [17:17:14]Write i2c OK [17:17:14]MH_I2C_Read... [17:17:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:14]Read from MH i2c: E2 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: E2 62 00 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: E2 62 00 50 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [17:17:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:14]wFMCommunicate OK [17:17:14]SAM_PROTO_GetFieldsCounters done [17:17:14]requested_item shift.num is exist - process it [17:17:14]requested_item shift.opened is exist - process it [17:17:14]req_shift_opened [17:17:14]FM_GetShiftState [17:17:14]SAM_PROTO_GetShiftState [17:17:14]wFMCommunicate request_size=4 [17:17:14]MH_SAM_APDU [17:17:14]CAPDU: 80 13 01 00 [17:17:14]Write to MH i2c: E2 08 00 51 24 80 13 01 00 00 00 00 00 F2 [17:17:14]Write i2c OK [17:17:14]MH_I2C_Read... [17:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:14]Read from MH i2c: E2 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: E2 0E 00 [17:17:14]MH_I2C_Read... [17:17:14]Read from MH i2c: E2 0E 00 51 24 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B5 [17:17:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:17:14]wFMCommunicate OK [17:17:14]SAM_PROTO_GetShiftState done [17:17:14]FM_GetShiftState done [17:17:14]req_shift_opened done [17:17:14]requested_item shift.open_date is exist - process it [17:17:14]req_shift_open_date [17:17:14]req_shift_open_date done [17:17:14]produce_requested_data done [17:17:14]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148929,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:17:14]process_action_free close_receipt [17:17:14]json_value_free [17:17:14]json_value_free done [17:17:14]process_json_proto returns [17:17:14]Send response to host [17:17:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148929,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:17:14]free response buf [17:17:14]execute_script done [17:17:14]execute_script returns [17:17:14]free content buf [17:17:14]Sock 9.Close socket [17:17:14]Sock 9.Thread stoped [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:24]accept exits with 7 [17:17:24]New connection [17:17:24]New thread 3067264356 created [17:17:24]Thread 3067407716 joined [17:17:24]Waiting for new connection... [17:17:24] Sock 7.Parse request [17:17:24]Sock 7.Check first char [17:17:24]Sock 7.First char is OK [17:17:24]request: POST /json_proto HTTP/1.0 [17:17:24]Method: POST [17:17:24]URL: /json_proto [17:17:24]Method is POST - this is cgi request [17:17:24]url: /json_proto [17:17:24]query_string will be loaded in cgi processing [17:17:24]execute_cgi json_proto POST (null) [17:17:24]execute_cgi path=json_proto method=POST [17:17:24]POST find Content-Length [17:17:24]Host: 172.17.38.4:8080 [17:17:24]Content-Length: 790 [17:17:24]Content-Type: application/json [17:17:24] [17:17:24]POST finish read [17:17:24]Found Content-Length = 790 [17:17:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:24]execute_script... [17:17:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:24]POST & json_proto [17:17:24]process_json_proto [17:17:24]json parsed OK: [17:17:24]protocol is kg_v1.0 [17:17:24]action value=close_receipt [17:17:24]process_action close_receipt [17:17:24]cmd_close_receipt [17:17:24]MH_GetDate [17:17:24]Write to MH i2c: F0 00 00 52 24 65 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: F0 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: F0 09 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: F0 09 00 52 24 00 25 4C 5F 66 CC 51 87 64 AC [17:17:24]GetLastDocTimeStamp 1717521432 [17:17:24]current date 1717521445 [17:17:24]FM_GetShiftState [17:17:24]SAM_PROTO_GetShiftState [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 13 01 00 [17:17:24]Write to MH i2c: E2 08 00 53 24 80 13 01 00 00 00 00 00 F4 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0E 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0E 00 53 24 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B7 [17:17:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:17:24]wFMCommunicate OK [17:17:24]SAM_PROTO_GetShiftState done [17:17:24]FM_GetShiftState done [17:17:24]opened in 1717460629 [17:17:24]opened+sec_in_day 1717547029 [17:17:24]quantity*price = 30038 [17:17:24]sum+1 = 30039 [17:17:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 269 04.06.2024 17:17 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148930 ФПД: 75302678890382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171726&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148930&fm=75302678890382&tin=02508201610067®Number=0000000000092720&sum=30038 [17:17:25]StoreToDocumentArchive [17:17:25]shift 368 fd 148930 [17:17:25]save to /storage/0368/doc_00148930 [17:17:25]save last doc name /storage/0368/doc_00148930 to /storage/kkm_last_doc_name [17:17:25]save OK [17:17:25]Clear old archive folders... [17:17:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:25]tlvbuf is B6E17060 [17:17:25]SAM_PROTO_ClearQueue [17:17:25]wFMCommunicate request_size=4 [17:17:25]MH_SAM_APDU [17:17:25]CAPDU: 80 09 00 00 [17:17:25]Write to MH i2c: E2 08 00 60 24 80 09 00 00 00 00 00 00 F6 [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:25]Read from MH i2c: E2 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 03 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 03 00 60 24 00 90 00 F8 [17:17:25]RAPDU: 90 00 [17:17:25]wFMCommunicate OK [17:17:25]SAM_PROTO_ClearQueue done [17:17:25]KKMCreateOFDPacket [17:17:25]OFDProtocolAddRootSTLVToBuf [17:17:25]FM_MakeSignedData [17:17:25]FM_MakeSignedData [17:17:25]SAM_PROTO_SignData [17:17:25]wFMCommunicate request_size=4 [17:17:25]MH_SAM_APDU [17:17:25]CAPDU: 80 0D 01 02 [17:17:25]Write to MH i2c: E2 08 00 61 24 80 0D 01 02 00 00 00 00 FE [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:25]Read from MH i2c: E2 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 03 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 03 00 61 24 00 90 00 F9 [17:17:25]RAPDU: 90 00 [17:17:25]wFMCommunicate OK [17:17:25]wFMCommunicate request_size=255 [17:17:25]MH_SAM_APDU [17:17:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0D 01 00 00 F4 03 04 00 26 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C2 45 02 00 35 04 06 00 44 [17:17:25]Write to MH i2c: E2 02 01 62 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 26 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C2 45 02 00 35 04 06 00 44 00 00 CB [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:25]Read from MH i2c: E2 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 03 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 03 00 62 24 00 90 00 FA [17:17:25]RAPDU: 90 00 [17:17:25]wFMCommunicate OK [17:17:25]wFMCommunicate request_size=10 [17:17:25]MH_SAM_APDU [17:17:25]CAPDU: 80 0D 02 02 05 7C C5 6D 07 8E [17:17:25]Write to MH i2c: E2 0D 00 63 24 80 0D 02 02 05 00 7C C5 6D 07 8E 00 00 4E [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:25]Read from MH i2c: E2 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 03 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 03 00 63 24 00 90 00 FB [17:17:25]RAPDU: 90 00 [17:17:25]wFMCommunicate OK [17:17:25]wFMCommunicate request_size=4 [17:17:25]MH_SAM_APDU [17:17:25]CAPDU: 80 0D 03 02 [17:17:25]Write to MH i2c: E2 08 00 64 24 80 0D 03 02 00 00 00 00 03 [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:25]Read from MH i2c: E2 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 0B 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 0B 00 64 24 00 93 7B D2 DC 9C 25 EF E4 90 00 54 [17:17:25]RAPDU: 93 7B D2 DC 9C 25 EF E4 90 00 [17:17:25]wFMCommunicate OK [17:17:25]SAM_PROTO_SignData done [17:17:25]FM_MakeSignedData done [17:17:25]CreateOFDProtocolMessage [17:17:25]wFMCommunicate request_size=4 [17:17:25]MH_SAM_APDU [17:17:25]CAPDU: 80 11 00 00 [17:17:25]Write to MH i2c: E2 08 00 65 24 80 11 00 00 00 00 00 00 03 [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:25]Read from MH i2c: E2 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 17 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: E2 17 00 65 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 56 [17:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:17:25]wFMCommunicate OK [17:17:25]CreateOFDProtocolMessage done [17:17:25]OFDSenderStorePacket 148930 [17:17:25]StoreOFDPacket docnum=148930 [17:17:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 20 8B 07 01 52 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0D 01 00 00 F4 03 04 00 26 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C2 45 02 00 35 04 06 00 44 7C C5 6D 07 8E 93 7B D2 DC 9C 25 EF E4 [17:17:25]CheckFolder [17:17:25]dirname=/storage/ofd_packets [17:17:25]CheckFolder done [17:17:25]ProducePacketName [17:17:25]name=ofd_packets/00148930 [17:17:25]NVStorageSaveData ofd_packets/00148930 [17:17:25]File name is /storage/ofd_packets/00148930 [17:17:25]Write 301 bytes [17:17:25]NVStorageSaveData done [17:17:25]OFDSenderStorePacket done [17:17:25]KKMCreateOFDPacket done [17:17:25]NVStorageSaveData kkm_last_timestamp [17:17:25]File name is /storage/kkm_last_timestamp [17:17:25]Write 4 bytes [17:17:25]NVStorageSaveData done [17:17:25]ExternCall_PrintAddStr [17:17:25]wPrintStart [17:17:25]Write to MH i2c: 01 00 00 66 24 8A [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: 01 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: 01 07 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: 01 07 00 66 24 00 00 00 00 00 FF 0F 9F [17:17:25]RasterBufferAndPrint [17:17:25]line Счет N : (1)979860 [17:17:25]line ИНН: 02508201610067 [17:17:25]line Контрольно-Кассовый Чек [17:17:25]line ПРОДАЖА [17:17:25]line ТРК (МРК, ГНК) : 31 [17:17:25]line Товар: 2710124130 [17:17:25]line Аи-92-К-5 [17:17:25]line 4.490 * 66.90 [17:17:25]line = 300.38 [17:17:25]line НДС 12% НСП 1% [17:17:25]line > о реализуемом товаре [17:17:25]line ИТОГО: 300.38 [17:17:25]line НСП 1% : 2.66 [17:17:25]line НДС 12% : 31.90 [17:17:25]line Наличными: 0.00 [17:17:25]line Безнал.: 300.38 [17:17:25]line Место: АЗС № 68 "Партнер Нефть" [17:17:25]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:17:25]line СНО: Общий режим [17:17:25]line Чек 269 04.06.2024 17:17 [17:17:25]line Смена: 368 ФФД: 1.0 [17:17:25]line ЗНМ: 0300000035 [17:17:25]line РНМ: 0000000000092720 [17:17:25]line Версия ККМ: 001 [17:17:25]line Платежная система: KICB Банк [17:17:25]line ФМ: 0000000000875057 [17:17:25]line ФД: 148930 [17:17:25]line ФПД: 75302678890382 [17:17:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171726&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148930&fm=75302678890382&tin=02508201610067®Number=0000000000092720&sum=30038 [17:17:25]written 0, free lines is 4095 [17:17:25]OFD Sender: Processing packet 148930 [packets to send 100, broken 99] [17:17:25]ProducePacketName [17:17:25]name=ofd_packets/00148930 [17:17:25]OFD Sender: To server: pG, [17:17:25]CommunicateWithHost lk.salyk.kg:30040 [17:17:25]ConnectInit lk.salyk.kg [17:17:26]Write to MH i2c: 01 00 00 90 24 B4 [17:17:26]Write i2c OK [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: 01 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: 01 07 00 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: 01 07 00 90 24 00 00 00 00 00 84 0C 4B [17:17:26]RasterBufferAndPrint [17:17:26]line [17:17:26]line [17:17:26]line [17:17:26]line [17:17:26]line [17:17:26]written 0, free lines is 3209 [17:17:26]MH_Cut [17:17:26]Write to MH i2c: D1 01 00 97 24 01 8D [17:17:26]Write i2c OK [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: D1 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: D1 01 00 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: D1 01 00 97 24 00 8C [17:17:26]Write to MH i2c: 01 00 00 98 24 BC [17:17:26]Write i2c OK [17:17:26]MH_I2C_Read... [17:17:27]Connected sock=10 [17:17:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 20 8B 07 01 52 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0D 01 00 00 F4 03 04 00 26 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C2 45 02 00 35 04 06 00 44 7C C5 6D 07 8E 93 7B D2 DC 9C 25 EF E4 [17:17:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 75 9C 47 00 F3 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C2 45 02 00 F4 03 04 00 4A F3 5E 66 B6 04 01 00 00 65 2D 4F E0 68 0B 6B BC [17:17:27]CommunicateWithHost err = 0 [17:17:27]CheckOFDResponse [17:17:27]1017 (14) - 77093643461234 [17:17:27]1041 (16) - 0000000000875057 [17:17:27]1040 (4) - 148930 [17:17:27]1012 (4) - 04.06.2024 10:58 [17:17:27]1206 (1) - 0 [17:17:27]OFD Sender: Remove packet 148930 [17:17:27]ProducePacketName [17:17:27]name=ofd_packets/00148930 [17:17:27]NVStorageDeleteData [17:17:27]*** Cut start [17:17:27]*** Partial cut [17:17:27]*** CUTSNS_PIN = 1 [17:17:27]*** CUTSNS_PIN = 0 [17:17:27]OFD Sender: No OFD packet to send [17:17:27]*** Brake cut motor [17:17:28]Read from MH i2c: 01 [17:17:28]MH_I2C_Read... [17:17:28]*** Stop cut motor [17:17:28]*** Cut end [17:17:28]Read from MH i2c: 01 07 00 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: 01 07 00 98 24 00 00 00 00 00 FF 0F D1 [17:17:28]process_action close_receipt done [17:17:28]requested_data is exist [17:17:28]produce_requested_data [17:17:28]requested_item fm.sn is exist - process it [17:17:28]wFMCommunicate request_size=4 [17:17:28]MH_SAM_APDU [17:17:28]CAPDU: 80 11 00 00 [17:17:28]Write to MH i2c: E2 08 00 99 24 80 11 00 00 00 00 00 00 37 [17:17:28]Write i2c OK [17:17:28]MH_I2C_Read... [17:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:28]Read from MH i2c: E2 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: E2 17 00 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: E2 17 00 99 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8A [17:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:17:28]wFMCommunicate OK [17:17:28]requested_item fd.num is exist - process it [17:17:28]SAM_PROTO_GetFieldsCounters [17:17:28]wFMCommunicate request_size=4 [17:17:28]MH_SAM_APDU [17:17:28]CAPDU: 80 13 00 00 [17:17:28]Write to MH i2c: E2 08 00 9A 24 80 13 00 00 00 00 00 00 3A [17:17:28]Write i2c OK [17:17:28]MH_I2C_Read... [17:17:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:28]Read from MH i2c: E2 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: E2 62 00 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: E2 62 00 9A 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [17:17:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:28]wFMCommunicate OK [17:17:28]SAM_PROTO_GetFieldsCounters done [17:17:28]requested_item shift.num is exist - process it [17:17:28]requested_item shift.opened is exist - process it [17:17:28]req_shift_opened [17:17:28]FM_GetShiftState [17:17:28]SAM_PROTO_GetShiftState [17:17:28]wFMCommunicate request_size=4 [17:17:28]MH_SAM_APDU [17:17:28]CAPDU: 80 13 01 00 [17:17:28]Write to MH i2c: E2 08 00 9B 24 80 13 01 00 00 00 00 00 3C [17:17:28]Write i2c OK [17:17:28]MH_I2C_Read... [17:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:28]Read from MH i2c: E2 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: E2 0E 00 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: E2 0E 00 9B 24 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FF [17:17:28]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:17:28]wFMCommunicate OK [17:17:28]SAM_PROTO_GetShiftState done [17:17:28]FM_GetShiftState done [17:17:28]req_shift_opened done [17:17:28]requested_item shift.open_date is exist - process it [17:17:28]req_shift_open_date [17:17:28]req_shift_open_date done [17:17:28]produce_requested_data done [17:17:28]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148930,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:17:28]process_action_free close_receipt [17:17:28]json_value_free [17:17:28]json_value_free done [17:17:28]process_json_proto returns [17:17:28]Send response to host [17:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148930,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:17:28]free response buf [17:17:28]execute_script done [17:17:28]execute_script returns [17:17:28]free content buf [17:17:28]Sock 7.Close socket [17:17:28]Sock 7.Thread stoped [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18: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]accept exits with 9 [17:18:42]New connection [17:18:42]New thread 3067407716 created [17:18:42]Thread 3067264356 joined [17:18:42]Waiting for new connection... [17:18:42] Sock 9.Parse request [17:18:42]Sock 9.Check first char [17:18:42]Sock 9.First char is OK [17:18:42]request: POST /json_proto HTTP/1.0 [17:18:42]Method: POST [17:18:42]URL: /json_proto [17:18:42]Method is POST - this is cgi request [17:18:42]url: /json_proto [17:18:42]query_string will be loaded in cgi processing [17:18:42]execute_cgi json_proto POST (null) [17:18:42]execute_cgi path=json_proto method=POST [17:18:42]POST find Content-Length [17:18:42]Host: 172.17.38.4:8080 [17:18:42]Content-Length: 671 [17:18:42]Content-Type: application/json [17:18:42] [17:18:42]POST finish read [17:18:42]Found Content-Length = 671 [17:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 10.310, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:42]execute_script... [17:18: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)979861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 10.310, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:42]POST & json_proto [17:18:42]process_json_proto [17:18:42]json parsed OK: [17:18:42]protocol is kg_v1.0 [17:18:42]action value=close_receipt [17:18:42]process_action close_receipt [17:18:42]cmd_close_receipt [17:18:42]MH_GetDate [17:18:42]Write to MH i2c: F0 00 00 9C 24 AF [17:18:42]Write i2c OK [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: F0 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: F0 09 00 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: F0 09 00 9C 24 00 74 4C 5F 66 CC 51 87 64 45 [17:18:42]GetLastDocTimeStamp 1717521446 [17:18:42]current date 1717521524 [17:18:42]FM_GetShiftState [17:18:42]SAM_PROTO_GetShiftState [17:18:42]wFMCommunicate request_size=4 [17:18:42]MH_SAM_APDU [17:18:42]CAPDU: 80 13 01 00 [17:18:42]Write to MH i2c: E2 08 00 9D 24 80 13 01 00 00 00 00 00 3E [17:18:42]Write i2c OK [17:18:42]MH_I2C_Read... [17:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:42]Read from MH i2c: E2 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: E2 0E 00 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: E2 0E 00 9D 24 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 01 [17:18:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:18:42]wFMCommunicate OK [17:18:42]SAM_PROTO_GetShiftState done [17:18:42]FM_GetShiftState done [17:18:42]opened in 1717460629 [17:18:42]opened+sec_in_day 1717547029 [17:18:42]quantity*price = 70004 [17:18:42]sum+1 = 70006 [17:18:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 270 04.06.2024 17:18 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148931 ФПД: 201263967705255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171844&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148931&fm=201263967705255&tin=02508201610067®Number=0000000000092720&sum=70000 [17:18:43]StoreToDocumentArchive [17:18:43]shift 368 fd 148931 [17:18:43]save to /storage/0368/doc_00148931 [17:18:43]save last doc name /storage/0368/doc_00148931 to /storage/kkm_last_doc_name [17:18:43]save OK [17:18:43]Clear old archive folders... [17:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:18:43]tlvbuf is 00486CD0 [17:18:43]SAM_PROTO_ClearQueue [17:18:43]wFMCommunicate request_size=4 [17:18:43]MH_SAM_APDU [17:18:43]CAPDU: 80 09 00 00 [17:18:43]Write to MH i2c: E2 08 00 AA 24 80 09 00 00 00 00 00 00 40 [17:18:43]Write i2c OK [17:18:43]MH_I2C_Read... [17:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:43]Read from MH i2c: E2 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 03 00 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 03 00 AA 24 00 90 00 42 [17:18:43]RAPDU: 90 00 [17:18:43]wFMCommunicate OK [17:18:43]SAM_PROTO_ClearQueue done [17:18:43]KKMCreateOFDPacket [17:18:43]OFDProtocolAddRootSTLVToBuf [17:18:43]FM_MakeSignedData [17:18:43]FM_MakeSignedData [17:18:43]SAM_PROTO_SignData [17:18:43]wFMCommunicate request_size=4 [17:18:43]MH_SAM_APDU [17:18:43]CAPDU: 80 0D 01 02 [17:18:43]Write to MH i2c: E2 08 00 AB 24 80 0D 01 02 00 00 00 00 48 [17:18:43]Write i2c OK [17:18:43]MH_I2C_Read... [17:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:43]Read from MH i2c: E2 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 03 00 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 03 00 AB 24 00 90 00 43 [17:18:43]RAPDU: 90 00 [17:18:43]wFMCommunicate OK [17:18:43]wFMCommunicate request_size=255 [17:18:43]MH_SAM_APDU [17:18:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 74 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C3 45 02 00 35 04 06 00 [17:18:43]Write to MH i2c: E2 02 01 AC 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 74 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C3 45 02 00 35 04 06 00 00 00 26 [17:18:43]Write i2c OK [17:18:43]MH_I2C_Read... [17:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:43]Read from MH i2c: E2 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 03 00 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 03 00 AC 24 00 90 00 44 [17:18:43]RAPDU: 90 00 [17:18:43]wFMCommunicate OK [17:18:43]wFMCommunicate request_size=11 [17:18:43]MH_SAM_APDU [17:18:43]CAPDU: 80 0D 02 02 06 B7 0C 6B 4D 18 A7 [17:18:43]Write to MH i2c: E2 0E 00 AD 24 80 0D 02 02 06 00 B7 0C 6B 4D 18 A7 00 00 91 [17:18:43]Write i2c OK [17:18:43]MH_I2C_Read... [17:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:43]Read from MH i2c: E2 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 03 00 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 03 00 AD 24 00 90 00 45 [17:18:43]RAPDU: 90 00 [17:18:43]wFMCommunicate OK [17:18:43]wFMCommunicate request_size=4 [17:18:43]MH_SAM_APDU [17:18:43]CAPDU: 80 0D 03 02 [17:18:43]Write to MH i2c: E2 08 00 AE 24 80 0D 03 02 00 00 00 00 4D [17:18:43]Write i2c OK [17:18:43]MH_I2C_Read... [17:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:43]Read from MH i2c: E2 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 0B 00 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 0B 00 AE 24 00 68 A0 7E DB E4 F8 48 29 90 00 FC [17:18:43]RAPDU: 68 A0 7E DB E4 F8 48 29 90 00 [17:18:43]wFMCommunicate OK [17:18:43]SAM_PROTO_SignData done [17:18:43]FM_MakeSignedData done [17:18:43]CreateOFDProtocolMessage [17:18:43]wFMCommunicate request_size=4 [17:18:43]MH_SAM_APDU [17:18:43]CAPDU: 80 11 00 00 [17:18:43]Write to MH i2c: E2 08 00 AF 24 80 11 00 00 00 00 00 00 4D [17:18:43]Write i2c OK [17:18:43]MH_I2C_Read... [17:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:43]Read from MH i2c: E2 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 17 00 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: E2 17 00 AF 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A0 [17:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:18:43]wFMCommunicate OK [17:18:43]CreateOFDProtocolMessage done [17:18:43]OFDSenderStorePacket 148931 [17:18:43]StoreOFDPacket docnum=148931 [17:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 07 9D 08 01 30 3F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 74 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C3 45 02 00 35 04 06 00 B7 0C 6B 4D 18 A7 68 A0 7E DB E4 F8 48 29 [17:18:43]CheckFolder [17:18:43]dirname=/storage/ofd_packets [17:18:43]CheckFolder done [17:18:43]ProducePacketName [17:18:43]name=ofd_packets/00148931 [17:18:43]NVStorageSaveData ofd_packets/00148931 [17:18:43]File name is /storage/ofd_packets/00148931 [17:18:43]Write 302 bytes [17:18:43]NVStorageSaveData done [17:18:43]OFDSenderStorePacket done [17:18:43]KKMCreateOFDPacket done [17:18:43]NVStorageSaveData kkm_last_timestamp [17:18:43]File name is /storage/kkm_last_timestamp [17:18:43]Write 4 bytes [17:18:43]NVStorageSaveData done [17:18:43]ExternCall_PrintAddStr [17:18:43]wPrintStart [17:18:43]Write to MH i2c: 01 00 00 B0 24 D4 [17:18:43]Write i2c OK [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: 01 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: 01 07 00 [17:18:43]MH_I2C_Read... [17:18:43]Read from MH i2c: 01 07 00 B0 24 00 00 00 00 00 FF 0F E9 [17:18:43]RasterBufferAndPrint [17:18:43]line Счет N : (1)979861 [17:18:43]line ИНН: 02508201610067 [17:18:43]line Контрольно-Кассовый Чек [17:18:43]line ПРОДАЖА [17:18:43]line ТРК (МРК, ГНК) : 33 [17:18:43]line Товар: 2710124130 [17:18:43]line SUPER 92-К-5 [17:18:43]line 10.310 * 67.90 [17:18:43]line = 700.05 [17:18:43]line НДС 12% НСП 1% [17:18:43]line > о реализуемом товаре [17:18:43]line ОКРУГЛЕНИЕ: -0.05 [17:18:43]line ИТОГО: 700.00 [17:18:43]line Внесено: 700.00 [17:18:43]line СДАЧА: 0.00 [17:18:43]line НСП 1% : 6.19 [17:18:43]line НДС 12% : 74.34 [17:18:43]line Наличными: 700.00 [17:18:43]line Безнал.: 0.00 [17:18:43]line Место: АЗС № 68 "Партнер Нефть" [17:18:43]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:18:43]line СНО: Общий режим [17:18:43]line Чек 270 04.06.2024 17:18 [17:18:43]line Смена: 368 ФФД: 1.0 [17:18:43]line ЗНМ: 0300000035 [17:18:43]line РНМ: 0000000000092720 [17:18:43]line Версия ККМ: 001 [17:18:43]line ФМ: 0000000000875057 [17:18:43]line ФД: 148931 [17:18:43]line ФПД: 201263967705255 [17:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171844&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148931&fm=201263967705255&tin=02508201610067®Number=0000000000092720&sum=70000 [17:18:44]OFD Sender: Processing packet 148931 [packets to send 100, broken 99] [17:18:44]ProducePacketName [17:18:44]name=ofd_packets/00148931 [17:18:44]OFD Sender: To server: pG, [17:18:44]CommunicateWithHost lk.salyk.kg:30040 [17:18:44]ConnectInit lk.salyk.kg [17:18:44]written 0, free lines is 4095 [17:18:44]Connected sock=10 [17:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 07 9D 08 01 30 3F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 74 4C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C3 45 02 00 35 04 06 00 B7 0C 6B 4D 18 A7 68 A0 7E DB E4 F8 48 29 [17:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E7 6B 47 00 CB 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 38 37 35 30 35 37 10 04 04 00 C3 45 02 00 F4 03 04 00 97 F3 5E 66 B6 04 01 00 00 DC 65 86 42 29 10 70 5A [17:18:44]CommunicateWithHost err = 0 [17:18:44]CheckOFDResponse [17:18:44]1017 (14) - 77093643461234 [17:18:44]1041 (16) - 0000000000875057 [17:18:44]1040 (4) - 148931 [17:18:44]1012 (4) - 04.06.2024 10:59 [17:18:44]1206 (1) - 0 [17:18:44]OFD Sender: Remove packet 148931 [17:18:44]ProducePacketName [17:18:44]name=ofd_packets/00148931 [17:18:44]NVStorageDeleteData [17:18:44]Write to MH i2c: 01 00 00 DB 24 FF [17:18:44]Write i2c OK [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: 01 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: 01 07 00 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: 01 07 00 DB 24 00 00 00 00 00 6C 0C 7E [17:18:44]RasterBufferAndPrint [17:18:44]line [17:18:44]line [17:18:44]line [17:18:44]line [17:18:44]line [17:18:44]written 0, free lines is 3183 [17:18:44]MH_Cut [17:18:44]Write to MH i2c: D1 01 00 E2 24 01 D8 [17:18:44]Write i2c OK [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: D1 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: D1 01 00 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: D1 01 00 E2 24 00 D7 [17:18:44]Write to MH i2c: 01 00 00 E3 24 07 [17:18:44]Write i2c OK [17:18:44]MH_I2C_Read... [17:18:45]OFD Sender: No OFD packet to send [17:18:45]*** Cut start [17:18:45]*** Partial cut [17:18:45]*** CUTSNS_PIN = 1 [17:18:45]*** CUTSNS_PIN = 0 [17:18:46]*** Brake cut motor [17:18:46]Read from MH i2c: 01 [17:18:46]MH_I2C_Read... [17:18:46]*** Stop cut motor [17:18:46]*** Cut end [17:18:46]Read from MH i2c: 01 07 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: 01 07 00 E3 24 00 00 00 00 00 FF 0F 1C [17:18:46]process_action close_receipt done [17:18:46]requested_data is exist [17:18:46]produce_requested_data [17:18:46]requested_item fm.sn is exist - process it [17:18:46]wFMCommunicate request_size=4 [17:18:46]MH_SAM_APDU [17:18:46]CAPDU: 80 11 00 00 [17:18:46]Write to MH i2c: E2 08 00 E4 24 80 11 00 00 00 00 00 00 82 [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:46]Read from MH i2c: E2 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 17 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 17 00 E4 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D5 [17:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:18:46]wFMCommunicate OK [17:18:46]requested_item fd.num is exist - process it [17:18:46]SAM_PROTO_GetFieldsCounters [17:18:46]wFMCommunicate request_size=4 [17:18:46]MH_SAM_APDU [17:18:46]CAPDU: 80 13 00 00 [17:18:46]Write to MH i2c: E2 08 00 E5 24 80 13 00 00 00 00 00 00 85 [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:46]Read from MH i2c: E2 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 62 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 62 00 E5 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [17:18:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:46]wFMCommunicate OK [17:18:46]SAM_PROTO_GetFieldsCounters done [17:18:46]requested_item shift.num is exist - process it [17:18:46]requested_item shift.opened is exist - process it [17:18:46]req_shift_opened [17:18:46]FM_GetShiftState [17:18:46]SAM_PROTO_GetShiftState [17:18:46]wFMCommunicate request_size=4 [17:18:46]MH_SAM_APDU [17:18:46]CAPDU: 80 13 01 00 [17:18:46]Write to MH i2c: E2 08 00 E6 24 80 13 01 00 00 00 00 00 87 [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:46]Read from MH i2c: E2 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 0E 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 0E 00 E6 24 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4A [17:18:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:18:46]wFMCommunicate OK [17:18:46]SAM_PROTO_GetShiftState done [17:18:46]FM_GetShiftState done [17:18:46]req_shift_opened done [17:18:46]requested_item shift.open_date is exist - process it [17:18:46]req_shift_open_date [17:18:46]req_shift_open_date done [17:18:46]produce_requested_data done [17:18:46]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148931,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:18:46]process_action_free close_receipt [17:18:46]json_value_free [17:18:46]json_value_free done [17:18:46]process_json_proto returns [17:18:46]Send response to host [17:18:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148931,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:18:46]free response buf [17:18:46]execute_script done [17:18:46]execute_script returns [17:18:46]free content buf [17:18:46]Sock 9.Close socket [17:18:46]Sock 9.Thread stoped [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:09]accept exits with 7 [17:24:09]New connection [17:24:09]New thread 3067264356 created [17:24:09]Thread 3067407716 joined [17:24:09]Waiting for new connection... [17:24:09] Sock 7.Parse request [17:24:09]Sock 7.Check first char [17:24:09]Sock 7.First char is OK [17:24:09]request: POST /json_proto HTTP/1.0 [17:24:09]Method: POST [17:24:09]URL: /json_proto [17:24:09]Method is POST - this is cgi request [17:24:09]url: /json_proto [17:24:09]query_string will be loaded in cgi processing [17:24:09]execute_cgi json_proto POST (null) [17:24:09]execute_cgi path=json_proto method=POST [17:24:09]POST find Content-Length [17:24:09]Host: 172.17.38.4:8080 [17:24:09]Content-Length: 800 [17:24:09]Content-Type: application/json [17:24:09] [17:24:09]POST finish read [17:24:09]Found Content-Length = 800 [17:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 19.210, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1400.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:09]execute_script... [17:24: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)979862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 19.210, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1400.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:09]POST & json_proto [17:24:09]process_json_proto [17:24:09]json parsed OK: [17:24:09]protocol is kg_v1.0 [17:24:09]action value=close_receipt [17:24:09]process_action close_receipt [17:24:09]cmd_close_receipt [17:24:09]MH_GetDate [17:24:09]Write to MH i2c: F0 00 00 E7 24 FA [17:24:09]Write i2c OK [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: F0 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: F0 09 00 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: F0 09 00 E7 24 00 BB 4D 5F 66 CC 51 87 64 D8 [17:24:09]GetLastDocTimeStamp 1717521524 [17:24:09]current date 1717521851 [17:24:09]FM_GetShiftState [17:24:09]SAM_PROTO_GetShiftState [17:24:09]wFMCommunicate request_size=4 [17:24:09]MH_SAM_APDU [17:24:09]CAPDU: 80 13 01 00 [17:24:09]Write to MH i2c: E2 08 00 E8 24 80 13 01 00 00 00 00 00 89 [17:24:09]Write i2c OK [17:24:09]MH_I2C_Read... [17:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:09]Read from MH i2c: E2 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: E2 0E 00 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: E2 0E 00 E8 24 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4C [17:24:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:24:09]wFMCommunicate OK [17:24:09]SAM_PROTO_GetShiftState done [17:24:09]FM_GetShiftState done [17:24:09]opened in 1717460629 [17:24:09]opened+sec_in_day 1717547029 [17:24:09]quantity*price = 140040 [17:24:09]sum+1 = 140042 [17:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.41 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 0.00 Безнал.: 1400.41 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 271 04.06.2024 17:24 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148932 ФПД: 52394558060699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172411&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148932&fm=52394558060699&tin=02508201610067®Number=0000000000092720&sum=140041 [17:24:10]StoreToDocumentArchive [17:24:10]shift 368 fd 148932 [17:24:10]save to /storage/0368/doc_00148932 [17:24:10]save last doc name /storage/0368/doc_00148932 to /storage/kkm_last_doc_name [17:24:10]save OK [17:24:10]Clear old archive folders... [17:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:24:11]tlvbuf is B6FC44B0 [17:24:11]SAM_PROTO_ClearQueue [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 09 00 00 [17:24:11]Write to MH i2c: E2 08 00 F5 24 80 09 00 00 00 00 00 00 8B [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 F5 24 00 90 00 8D [17:24:11]RAPDU: 90 00 [17:24:11]wFMCommunicate OK [17:24:11]SAM_PROTO_ClearQueue done [17:24:11]KKMCreateOFDPacket [17:24:11]OFDProtocolAddRootSTLVToBuf [17:24:11]FM_MakeSignedData [17:24:11]FM_MakeSignedData [17:24:11]SAM_PROTO_SignData [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 0D 01 02 [17:24:11]Write to MH i2c: E2 08 00 F6 24 80 0D 01 02 00 00 00 00 93 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 F6 24 00 90 00 8E [17:24:11]RAPDU: 90 00 [17:24:11]wFMCommunicate OK [17:24:11]wFMCommunicate request_size=255 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BB 4D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C4 45 02 00 35 04 06 00 2F A7 0F 05 [17:24:11]Write to MH i2c: E2 02 01 F7 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BB 4D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C4 45 02 00 35 04 06 00 2F A7 0F 05 00 00 D0 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 F7 24 00 90 00 8F [17:24:11]RAPDU: 90 00 [17:24:11]wFMCommunicate OK [17:24:11]wFMCommunicate request_size=7 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 0D 02 02 02 78 9B [17:24:11]Write to MH i2c: E2 0A 00 F8 24 80 0D 02 02 02 00 78 9B 00 00 AD [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 F8 24 00 90 00 90 [17:24:11]RAPDU: 90 00 [17:24:11]wFMCommunicate OK [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 0D 03 02 [17:24:11]Write to MH i2c: E2 08 00 F9 24 80 0D 03 02 00 00 00 00 98 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0B 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0B 00 F9 24 00 94 A9 45 B4 21 DB 07 67 90 00 39 [17:24:11]RAPDU: 94 A9 45 B4 21 DB 07 67 90 00 [17:24:11]wFMCommunicate OK [17:24:11]SAM_PROTO_SignData done [17:24:11]FM_MakeSignedData done [17:24:11]CreateOFDProtocolMessage [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 11 00 00 [17:24:11]Write to MH i2c: E2 08 00 FA 24 80 11 00 00 00 00 00 00 98 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 17 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 17 00 FA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EB [17:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:24:11]wFMCommunicate OK [17:24:11]CreateOFDProtocolMessage done [17:24:11]OFDSenderStorePacket 148932 [17:24:11]StoreOFDPacket docnum=148932 [17:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 0E 39 04 01 C6 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BB 4D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C4 45 02 00 35 04 06 00 2F A7 0F 05 78 9B 94 A9 45 B4 21 DB 07 67 [17:24:11]CheckFolder [17:24:11]dirname=/storage/ofd_packets [17:24:11]CheckFolder done [17:24:11]ProducePacketName [17:24:11]name=ofd_packets/00148932 [17:24:11]NVStorageSaveData ofd_packets/00148932 [17:24:11]File name is /storage/ofd_packets/00148932 [17:24:11]Write 298 bytes [17:24:11]NVStorageSaveData done [17:24:11]OFDSenderStorePacket done [17:24:11]KKMCreateOFDPacket done [17:24:11]NVStorageSaveData kkm_last_timestamp [17:24:11]File name is /storage/kkm_last_timestamp [17:24:11]Write 4 bytes [17:24:11]NVStorageSaveData done [17:24:11]ExternCall_PrintAddStr [17:24:11]wPrintStart [17:24:11]Write to MH i2c: 01 00 00 FB 24 1F [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 07 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 07 00 FB 24 00 00 00 00 00 FF 0F 34 [17:24:11]RasterBufferAndPrint [17:24:11]line Счет N : (1)979862 [17:24:11]line ИНН: 02508201610067 [17:24:11]line Контрольно-Кассовый Чек [17:24:11]line ПРОДАЖА [17:24:11]line ТРК (МРК, ГНК) : 21 [17:24:11]line Товар: 2710194210 [17:24:11]line ДТ-К-5 [17:24:11]line 19.210 * 72.90 [17:24:11]line = 1400.41 [17:24:11]line НДС 12% НСП 1% [17:24:11]line > о реализуемом товаре [17:24:11]line ИТОГО: 1400.41 [17:24:11]line НСП 1% : 12.39 [17:24:11]line НДС 12% : 148.72 [17:24:11]line Наличными: 0.00 [17:24:11]line Безнал.: 1400.41 [17:24:11]line Место: АЗС № 68 "Партнер Нефть" [17:24:11]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:24:11]line СНО: Общий режим [17:24:11]line Чек 271 04.06.2024 17:24 [17:24:11]line Смена: 368 ФФД: 1.0 [17:24:11]line ЗНМ: 0300000035 [17:24:11]line РНМ: 0000000000092720 [17:24:11]line Версия ККМ: 001 [17:24:11]line Платежная система: O! деньги [17:24:11]line ФМ: 0000000000875057 [17:24:11]line ФД: 148932 [17:24:11]line ФПД: 52394558060699 [17:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172411&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148932&fm=52394558060699&tin=02508201610067®Number=0000000000092720&sum=140041 [17:24:11]OFD Sender: Processing packet 148932 [packets to send 100, broken 99] [17:24:11]ProducePacketName [17:24:11]name=ofd_packets/00148932 [17:24:11]OFD Sender: To server: pG, [17:24:11]CommunicateWithHost lk.salyk.kg:30040 [17:24:11]ConnectInit lk.salyk.kg [17:24:11]written 0, free lines is 4095 [17:24:11]Connected sock=10 [17:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 0E 39 04 01 C6 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 BB 4D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C4 45 02 00 35 04 06 00 2F A7 0F 05 78 9B 94 A9 45 B4 21 DB 07 67 [17:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CC 94 47 00 C8 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 38 37 35 30 35 37 10 04 04 00 C4 45 02 00 F4 03 04 00 DF F4 5E 66 B6 04 01 00 00 3E 27 CD E9 7C 9C CF 72 [17:24:12]CommunicateWithHost err = 0 [17:24:12]CheckOFDResponse [17:24:12]1017 (14) - 77093643461234 [17:24:12]1041 (16) - 0000000000875057 [17:24:12]1040 (4) - 148932 [17:24:12]1012 (4) - 04.06.2024 11:05 [17:24:12]1206 (1) - 0 [17:24:12]OFD Sender: Remove packet 148932 [17:24:12]ProducePacketName [17:24:12]name=ofd_packets/00148932 [17:24:12]NVStorageDeleteData [17:24:12]Write to MH i2c: 01 00 00 25 25 4A [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 25 25 00 00 00 00 00 7F 0C DC [17:24:12]RasterBufferAndPrint [17:24:12]line [17:24:12]line [17:24:12]line [17:24:12]line [17:24:12]line [17:24:12]written 0, free lines is 3204 [17:24:12]MH_Cut [17:24:12]Write to MH i2c: D1 01 00 2C 25 01 23 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: D1 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: D1 01 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: D1 01 00 2C 25 00 22 [17:24:12]Write to MH i2c: 01 00 00 2D 25 52 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]OFD Sender: No OFD packet to send [17:24:13]*** Cut start [17:24:13]*** Partial cut [17:24:13]*** CUTSNS_PIN = 1 [17:24:13]*** CUTSNS_PIN = 0 [17:24:13]*** Brake cut motor [17:24:14]Read from MH i2c: 01 [17:24:14]MH_I2C_Read... [17:24:14]*** Stop cut motor [17:24:14]*** Cut end [17:24:14]Read from MH i2c: 01 07 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 07 00 2D 25 00 00 00 00 00 FF 0F 67 [17:24:14]process_action close_receipt done [17:24:14]requested_data is exist [17:24:14]produce_requested_data [17:24:14]requested_item fm.sn is exist - process it [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 11 00 00 [17:24:14]Write to MH i2c: E2 08 00 2E 25 80 11 00 00 00 00 00 00 CD [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 17 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 17 00 2E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 20 [17:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:24:14]wFMCommunicate OK [17:24:14]requested_item fd.num is exist - process it [17:24:14]SAM_PROTO_GetFieldsCounters [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 13 00 00 [17:24:14]Write to MH i2c: E2 08 00 2F 25 80 13 00 00 00 00 00 00 D0 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 62 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 62 00 2F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [17:24:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:14]wFMCommunicate OK [17:24:14]SAM_PROTO_GetFieldsCounters done [17:24:14]requested_item shift.num is exist - process it [17:24:14]requested_item shift.opened is exist - process it [17:24:14]req_shift_opened [17:24:14]FM_GetShiftState [17:24:14]SAM_PROTO_GetShiftState [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 13 01 00 [17:24:14]Write to MH i2c: E2 08 00 30 25 80 13 01 00 00 00 00 00 D2 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 0E 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 0E 00 30 25 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 95 [17:24:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:24:14]wFMCommunicate OK [17:24:14]SAM_PROTO_GetShiftState done [17:24:14]FM_GetShiftState done [17:24:14]req_shift_opened done [17:24:14]requested_item shift.open_date is exist - process it [17:24:14]req_shift_open_date [17:24:14]req_shift_open_date done [17:24:14]produce_requested_data done [17:24:14]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148932,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:24:14]process_action_free close_receipt [17:24:14]json_value_free [17:24:14]json_value_free done [17:24:14]process_json_proto returns [17:24:14]Send response to host [17:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148932,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:24:14]free response buf [17:24:14]execute_script done [17:24:14]execute_script returns [17:24:14]free content buf [17:24:14]Sock 7.Close socket [17:24:14]Sock 7.Thread stoped [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:15]accept exits with 9 [17:25:15]New connection [17:25:15]New thread 3067407716 created [17:25:15]Thread 3067264356 joined [17:25:15]Waiting for new connection... [17:25:15] Sock 9.Parse request [17:25:15]Sock 9.Check first char [17:25:15]Sock 9.First char is OK [17:25:15]request: POST /json_proto HTTP/1.0 [17:25:15]Method: POST [17:25:15]URL: /json_proto [17:25:15]Method is POST - this is cgi request [17:25:15]url: /json_proto [17:25:15]query_string will be loaded in cgi processing [17:25:15]execute_cgi json_proto POST (null) [17:25:15]execute_cgi path=json_proto method=POST [17:25:15]POST find Content-Length [17:25:15]Host: 172.17.38.4:8080 [17:25:15]Content-Length: 803 [17:25:15]Content-Type: application/json [17:25:15] [17:25:15]POST finish read [17:25:15]Found Content-Length = 803 [17:25:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:15]execute_script... [17:25:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:15]POST & json_proto [17:25:15]process_json_proto [17:25:15]json parsed OK: [17:25:15]protocol is kg_v1.0 [17:25:15]action value=close_receipt [17:25:15]process_action close_receipt [17:25:15]cmd_close_receipt [17:25:15]MH_GetDate [17:25:15]Write to MH i2c: F0 00 00 31 25 45 [17:25:15]Write i2c OK [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: F0 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: F0 09 00 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: F0 09 00 31 25 00 FD 4D 5F 66 CC 51 87 64 65 [17:25:15]GetLastDocTimeStamp 1717521851 [17:25:15]current date 1717521917 [17:25:15]FM_GetShiftState [17:25:15]SAM_PROTO_GetShiftState [17:25:15]wFMCommunicate request_size=4 [17:25:15]MH_SAM_APDU [17:25:15]CAPDU: 80 13 01 00 [17:25:15]Write to MH i2c: E2 08 00 32 25 80 13 01 00 00 00 00 00 D4 [17:25:15]Write i2c OK [17:25:15]MH_I2C_Read... [17:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:15]Read from MH i2c: E2 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 0E 00 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 0E 00 32 25 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 97 [17:25:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:25:15]wFMCommunicate OK [17:25:15]SAM_PROTO_GetShiftState done [17:25:15]FM_GetShiftState done [17:25:15]opened in 1717460629 [17:25:15]opened+sec_in_day 1717547029 [17:25:15]quantity*price = 100060 [17:25:15]sum+1 = 100062 [17:25:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.61 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.61 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 272 04.06.2024 17:25 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148933 ФПД: 77053028911472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172517&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148933&fm=77053028911472&tin=02508201610067®Number=0000000000092720&sum=100061 [17:25:16]StoreToDocumentArchive [17:25:16]shift 368 fd 148933 [17:25:16]save to /storage/0368/doc_00148933 [17:25:16]save last doc name /storage/0368/doc_00148933 to /storage/kkm_last_doc_name [17:25:16]save OK [17:25:16]Clear old archive folders... [17:25:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:16]tlvbuf is 00494250 [17:25:16]SAM_PROTO_ClearQueue [17:25:16]wFMCommunicate request_size=4 [17:25:16]MH_SAM_APDU [17:25:16]CAPDU: 80 09 00 00 [17:25:16]Write to MH i2c: E2 08 00 3F 25 80 09 00 00 00 00 00 00 D6 [17:25:16]Write i2c OK [17:25:16]MH_I2C_Read... [17:25:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:16]Read from MH i2c: E2 [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: E2 03 00 [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: E2 03 00 3F 25 00 90 00 D8 [17:25:16]RAPDU: 90 00 [17:25:16]wFMCommunicate OK [17:25:16]SAM_PROTO_ClearQueue done [17:25:16]KKMCreateOFDPacket [17:25:16]OFDProtocolAddRootSTLVToBuf [17:25:16]FM_MakeSignedData [17:25:16]FM_MakeSignedData [17:25:16]SAM_PROTO_SignData [17:25:16]wFMCommunicate request_size=4 [17:25:16]MH_SAM_APDU [17:25:16]CAPDU: 80 0D 01 02 [17:25:16]Write to MH i2c: E2 08 00 40 25 80 0D 01 02 00 00 00 00 DE [17:25:16]Write i2c OK [17:25:16]MH_I2C_Read... [17:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:17]Read from MH i2c: E2 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: E2 03 00 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: E2 03 00 40 25 00 90 00 D9 [17:25:17]RAPDU: 90 00 [17:25:17]wFMCommunicate OK [17:25:17]wFMCommunicate request_size=255 [17:25:17]MH_SAM_APDU [17:25:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 FD 4D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C5 45 02 00 35 04 06 00 46 [17:25:17]Write to MH i2c: E2 02 01 41 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 FD 4D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C5 45 02 00 35 04 06 00 46 00 00 2B [17:25:17]Write i2c OK [17:25:17]MH_I2C_Read... [17:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:17]Read from MH i2c: E2 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: E2 03 00 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: E2 03 00 41 25 00 90 00 DA [17:25:17]RAPDU: 90 00 [17:25:17]wFMCommunicate OK [17:25:17]wFMCommunicate request_size=10 [17:25:17]MH_SAM_APDU [17:25:17]CAPDU: 80 0D 02 02 05 14 4E 6A C9 70 [17:25:17]Write to MH i2c: E2 0D 00 42 25 80 0D 02 02 05 00 14 4E 6A C9 70 00 00 F0 [17:25:17]Write i2c OK [17:25:17]MH_I2C_Read... [17:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:17]Read from MH i2c: E2 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: E2 03 00 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: E2 03 00 42 25 00 90 00 DB [17:25:17]RAPDU: 90 00 [17:25:17]wFMCommunicate OK [17:25:17]wFMCommunicate request_size=4 [17:25:17]MH_SAM_APDU [17:25:17]CAPDU: 80 0D 03 02 [17:25:17]Write to MH i2c: E2 08 00 43 25 80 0D 03 02 00 00 00 00 E3 [17:25:17]Write i2c OK [17:25:17]MH_I2C_Read... [17:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:17]Read from MH i2c: E2 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: E2 0B 00 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: E2 0B 00 43 25 00 89 FC 8A 39 2A 55 8C 35 90 00 6C [17:25:17]RAPDU: 89 FC 8A 39 2A 55 8C 35 90 00 [17:25:17]wFMCommunicate OK [17:25:17]SAM_PROTO_SignData done [17:25:17]FM_MakeSignedData done [17:25:17]CreateOFDProtocolMessage [17:25:17]wFMCommunicate request_size=4 [17:25:17]MH_SAM_APDU [17:25:17]CAPDU: 80 11 00 00 [17:25:17]Write to MH i2c: E2 08 00 44 25 80 11 00 00 00 00 00 00 E3 [17:25:17]Write i2c OK [17:25:17]MH_I2C_Read... [17:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:17]Read from MH i2c: E2 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: E2 17 00 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: E2 17 00 44 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 36 [17:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:25:17]wFMCommunicate OK [17:25:17]CreateOFDProtocolMessage done [17:25:17]OFDSenderStorePacket 148933 [17:25:17]StoreOFDPacket docnum=148933 [17:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 12 FD 07 01 7F 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 FD 4D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C5 45 02 00 35 04 06 00 46 14 4E 6A C9 70 89 FC 8A 39 2A 55 8C 35 [17:25:17]CheckFolder [17:25:17]dirname=/storage/ofd_packets [17:25:17]CheckFolder done [17:25:17]ProducePacketName [17:25:17]name=ofd_packets/00148933 [17:25:17]NVStorageSaveData ofd_packets/00148933 [17:25:17]File name is /storage/ofd_packets/00148933 [17:25:17]Write 301 bytes [17:25:17]NVStorageSaveData done [17:25:17]OFDSenderStorePacket done [17:25:17]KKMCreateOFDPacket done [17:25:17]NVStorageSaveData kkm_last_timestamp [17:25:17]File name is /storage/kkm_last_timestamp [17:25:17]Write 4 bytes [17:25:17]NVStorageSaveData done [17:25:17]ExternCall_PrintAddStr [17:25:17]wPrintStart [17:25:17]Write to MH i2c: 01 00 00 45 25 6A [17:25:17]Write i2c OK [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: 01 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: 01 07 00 [17:25:17]MH_I2C_Read... [17:25:17]Read from MH i2c: 01 07 00 45 25 00 00 00 00 00 FF 0F 7F [17:25:17]RasterBufferAndPrint [17:25:17]line Счет N : (1)979864 [17:25:17]line ИНН: 02508201610067 [17:25:17]line Контрольно-Кассовый Чек [17:25:17]line ПРОДАЖА [17:25:17]line ТРК (МРК, ГНК) : 23 [17:25:17]line Товар: 2710124500 [17:25:17]line Аи-95-К-5 [17:25:17]line 13.540 * 73.90 [17:25:17]line = 1000.61 [17:25:17]line НДС 12% НСП 1% [17:25:17]line > о реализуемом товаре [17:25:17]line ИТОГО: 1000.61 [17:25:17]line НСП 1% : 8.85 [17:25:17]line НДС 12% : 106.26 [17:25:17]line Наличными: 0.00 [17:25:17]line Безнал.: 1000.61 [17:25:17]line Место: АЗС № 68 "Партнер Нефть" [17:25:17]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:25:17]line СНО: Общий режим [17:25:17]line Чек 272 04.06.2024 17:25 [17:25:17]line Смена: 368 ФФД: 1.0 [17:25:17]line ЗНМ: 0300000035 [17:25:17]line РНМ: 0000000000092720 [17:25:17]line Версия ККМ: 001 [17:25:17]line Платежная система: O! деньги [17:25:17]line ФМ: 0000000000875057 [17:25:17]line ФД: 148933 [17:25:17]line ФПД: 77053028911472 [17:25:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172517&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148933&fm=77053028911472&tin=02508201610067®Number=0000000000092720&sum=100061 [17:25:17]OFD Sender: Processing packet 148933 [packets to send 100, broken 99] [17:25:17]ProducePacketName [17:25:17]name=ofd_packets/00148933 [17:25:17]OFD Sender: To server: pG, [17:25:17]CommunicateWithHost lk.salyk.kg:30040 [17:25:17]ConnectInit lk.salyk.kg [17:25:17]written 0, free lines is 4095 [17:25:17]Connected sock=10 [17:25:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 12 FD 07 01 7F 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 FD 4D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C5 45 02 00 35 04 06 00 46 14 4E 6A C9 70 89 FC 8A 39 2A 55 8C 35 [17:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 09 B6 47 00 93 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 38 37 35 30 35 37 10 04 04 00 C5 45 02 00 F4 03 04 00 20 F5 5E 66 B6 04 01 00 00 CE 06 75 43 88 E5 DE 35 [17:25:18]CommunicateWithHost err = 0 [17:25:18]CheckOFDResponse [17:25:18]1017 (14) - 77093643461234 [17:25:18]1041 (16) - 0000000000875057 [17:25:18]1040 (4) - 148933 [17:25:18]1012 (4) - 04.06.2024 11:06 [17:25:18]1206 (1) - 0 [17:25:18]OFD Sender: Remove packet 148933 [17:25:18]ProducePacketName [17:25:18]name=ofd_packets/00148933 [17:25:18]NVStorageDeleteData [17:25:18]Write to MH i2c: 01 00 00 6F 25 94 [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: 01 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: 01 07 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: 01 07 00 6F 25 00 00 00 00 00 88 0C 2F [17:25:18]RasterBufferAndPrint [17:25:18]line [17:25:18]line [17:25:18]line [17:25:18]line [17:25:18]line [17:25:18]written 0, free lines is 3211 [17:25:18]MH_Cut [17:25:18]Write to MH i2c: D1 01 00 76 25 01 6D [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: D1 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: D1 01 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: D1 01 00 76 25 00 6C [17:25:18]Write to MH i2c: 01 00 00 77 25 9C [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]OFD Sender: No OFD packet to send [17:25:19]*** Cut start [17:25:19]*** Partial cut [17:25:19]*** CUTSNS_PIN = 1 [17:25:19]*** CUTSNS_PIN = 0 [17:25:19]*** Brake cut motor [17:25:20]Read from MH i2c: 01 [17:25:20]MH_I2C_Read... [17:25:20]*** Stop cut motor [17:25:20]*** Cut end [17:25:20]Read from MH i2c: 01 07 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: 01 07 00 77 25 00 00 00 00 00 FF 0F B1 [17:25:20]process_action close_receipt done [17:25:20]requested_data is exist [17:25:20]produce_requested_data [17:25:20]requested_item fm.sn is exist - process it [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 11 00 00 [17:25:20]Write to MH i2c: E2 08 00 78 25 80 11 00 00 00 00 00 00 17 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 17 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 17 00 78 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6A [17:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:25:20]wFMCommunicate OK [17:25:20]requested_item fd.num is exist - process it [17:25:20]SAM_PROTO_GetFieldsCounters [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 13 00 00 [17:25:20]Write to MH i2c: E2 08 00 79 25 80 13 00 00 00 00 00 00 1A [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 62 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 62 00 79 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C5 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [17:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C5 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:20]wFMCommunicate OK [17:25:20]SAM_PROTO_GetFieldsCounters done [17:25:20]requested_item shift.num is exist - process it [17:25:20]requested_item shift.opened is exist - process it [17:25:20]req_shift_opened [17:25:20]FM_GetShiftState [17:25:20]SAM_PROTO_GetShiftState [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 13 01 00 [17:25:20]Write to MH i2c: E2 08 00 7A 25 80 13 01 00 00 00 00 00 1C [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 0E 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 0E 00 7A 25 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DF [17:25:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:25:20]wFMCommunicate OK [17:25:20]SAM_PROTO_GetShiftState done [17:25:20]FM_GetShiftState done [17:25:20]req_shift_opened done [17:25:20]requested_item shift.open_date is exist - process it [17:25:20]req_shift_open_date [17:25:20]req_shift_open_date done [17:25:20]produce_requested_data done [17:25:20]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148933,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:25:20]process_action_free close_receipt [17:25:20]json_value_free [17:25:20]json_value_free done [17:25:20]process_json_proto returns [17:25:20]Send response to host [17:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148933,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:25:20]free response buf [17:25:20]execute_script done [17:25:20]execute_script returns [17:25:20]free content buf [17:25:20]Sock 9.Close socket [17:25:20]Sock 9.Thread stoped [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:55]accept exits with 7 [17:26:55]New connection [17:26:55]New thread 3067264356 created [17:26:55]Thread 3067407716 joined [17:26:55]Waiting for new connection... [17:26:55] Sock 7.Parse request [17:26:55]Sock 7.Check first char [17:26:55]Sock 7.First char is OK [17:26:55]request: POST /json_proto HTTP/1.0 [17:26:55]Method: POST [17:26:55]URL: /json_proto [17:26:55]Method is POST - this is cgi request [17:26:55]url: /json_proto [17:26:55]query_string will be loaded in cgi processing [17:26:55]execute_cgi json_proto POST (null) [17:26:55]execute_cgi path=json_proto method=POST [17:26:55]POST find Content-Length [17:26:55]Host: 172.17.38.4:8080 [17:26:55]Content-Length: 677 [17:26:55]Content-Type: application/json [17:26:55] [17:26:55]POST finish read [17:26:55]Found Content-Length = 677 [17:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:55]execute_script... [17:26: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)979865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:55]POST & json_proto [17:26:55]process_json_proto [17:26:55]json parsed OK: [17:26:55]protocol is kg_v1.0 [17:26:55]action value=close_receipt [17:26:55]process_action close_receipt [17:26:55]cmd_close_receipt [17:26:55]MH_GetDate [17:26:55]Write to MH i2c: F0 00 00 7B 25 8F [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: F0 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: F0 09 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: F0 09 00 7B 25 00 61 4E 5F 66 CC 51 87 64 14 [17:26:55]GetLastDocTimeStamp 1717521917 [17:26:55]current date 1717522017 [17:26:55]FM_GetShiftState [17:26:55]SAM_PROTO_GetShiftState [17:26:55]wFMCommunicate request_size=4 [17:26:55]MH_SAM_APDU [17:26:55]CAPDU: 80 13 01 00 [17:26:55]Write to MH i2c: E2 08 00 7C 25 80 13 01 00 00 00 00 00 1E [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 0E 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 0E 00 7C 25 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E1 [17:26:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:26:55]wFMCommunicate OK [17:26:55]SAM_PROTO_GetShiftState done [17:26:55]FM_GetShiftState done [17:26:55]opened in 1717460629 [17:26:55]opened+sec_in_day 1717547029 [17:26:55]quantity*price = 14049 [17:26:55]sum+1 = 14050 [17:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 273 04.06.2024 17:26 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148934 ФПД: 40164484478189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172657&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148934&fm=40164484478189&tin=02508201610067®Number=0000000000092720&sum=14000 [17:26:56]StoreToDocumentArchive [17:26:56]shift 368 fd 148934 [17:26:56]save to /storage/0368/doc_00148934 [17:26:56]save last doc name /storage/0368/doc_00148934 to /storage/kkm_last_doc_name [17:26:56]save OK [17:26:56]Clear old archive folders... [17:26:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:56]tlvbuf is 004A20A0 [17:26:56]SAM_PROTO_ClearQueue [17:26:56]wFMCommunicate request_size=4 [17:26:56]MH_SAM_APDU [17:26:56]CAPDU: 80 09 00 00 [17:26:56]Write to MH i2c: E2 08 00 89 25 80 09 00 00 00 00 00 00 20 [17:26:56]Write i2c OK [17:26:56]MH_I2C_Read... [17:26:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:56]Read from MH i2c: E2 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: E2 03 00 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: E2 03 00 89 25 00 90 00 22 [17:26:56]RAPDU: 90 00 [17:26:56]wFMCommunicate OK [17:26:56]SAM_PROTO_ClearQueue done [17:26:56]KKMCreateOFDPacket [17:26:56]OFDProtocolAddRootSTLVToBuf [17:26:56]FM_MakeSignedData [17:26:56]FM_MakeSignedData [17:26:56]SAM_PROTO_SignData [17:26:56]wFMCommunicate request_size=4 [17:26:56]MH_SAM_APDU [17:26:56]CAPDU: 80 0D 01 02 [17:26:56]Write to MH i2c: E2 08 00 8A 25 80 0D 01 02 00 00 00 00 28 [17:26:56]Write i2c OK [17:26:56]MH_I2C_Read... [17:26:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:56]Read from MH i2c: E2 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: E2 03 00 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: E2 03 00 8A 25 00 90 00 23 [17:26:56]RAPDU: 90 00 [17:26:56]wFMCommunicate OK [17:26:56]wFMCommunicate request_size=255 [17:26:56]MH_SAM_APDU [17:26:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 61 4E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C6 45 02 00 35 04 06 00 24 [17:26:56]Write to MH i2c: E2 02 01 8B 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 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 61 4E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C6 45 02 00 35 04 06 00 24 00 00 05 [17:26:56]Write i2c OK [17:26:56]MH_I2C_Read... [17:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:57]Read from MH i2c: E2 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 03 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 03 00 8B 25 00 90 00 24 [17:26:57]RAPDU: 90 00 [17:26:57]wFMCommunicate OK [17:26:57]wFMCommunicate request_size=10 [17:26:57]MH_SAM_APDU [17:26:57]CAPDU: 80 0D 02 02 05 87 85 D4 74 ED [17:26:57]Write to MH i2c: E2 0D 00 8C 25 80 0D 02 02 05 00 87 85 D4 74 ED 00 00 76 [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:57]Read from MH i2c: E2 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 03 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 03 00 8C 25 00 90 00 25 [17:26:57]RAPDU: 90 00 [17:26:57]wFMCommunicate OK [17:26:57]wFMCommunicate request_size=4 [17:26:57]MH_SAM_APDU [17:26:57]CAPDU: 80 0D 03 02 [17:26:57]Write to MH i2c: E2 08 00 8D 25 80 0D 03 02 00 00 00 00 2D [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:57]Read from MH i2c: E2 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 0B 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 0B 00 8D 25 00 2B 54 DD AF 4B AF FD 76 90 00 A6 [17:26:57]RAPDU: 2B 54 DD AF 4B AF FD 76 90 00 [17:26:57]wFMCommunicate OK [17:26:57]SAM_PROTO_SignData done [17:26:57]FM_MakeSignedData done [17:26:57]CreateOFDProtocolMessage [17:26:57]wFMCommunicate request_size=4 [17:26:57]MH_SAM_APDU [17:26:57]CAPDU: 80 11 00 00 [17:26:57]Write to MH i2c: E2 08 00 8E 25 80 11 00 00 00 00 00 00 2D [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:57]Read from MH i2c: E2 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 17 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 17 00 8E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 80 [17:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:26:57]wFMCommunicate OK [17:26:57]CreateOFDProtocolMessage done [17:26:57]OFDSenderStorePacket 148934 [17:26:57]StoreOFDPacket docnum=148934 [17:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 73 E2 07 01 7F 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 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 61 4E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C6 45 02 00 35 04 06 00 24 87 85 D4 74 ED 2B 54 DD AF 4B AF FD 76 [17:26:57]CheckFolder [17:26:57]dirname=/storage/ofd_packets [17:26:57]CheckFolder done [17:26:57]ProducePacketName [17:26:57]name=ofd_packets/00148934 [17:26:57]NVStorageSaveData ofd_packets/00148934 [17:26:57]File name is /storage/ofd_packets/00148934 [17:26:57]Write 301 bytes [17:26:57]NVStorageSaveData done [17:26:57]OFDSenderStorePacket done [17:26:57]KKMCreateOFDPacket done [17:26:57]NVStorageSaveData kkm_last_timestamp [17:26:57]File name is /storage/kkm_last_timestamp [17:26:57]Write 4 bytes [17:26:57]NVStorageSaveData done [17:26:57]ExternCall_PrintAddStr [17:26:57]wPrintStart [17:26:57]Write to MH i2c: 01 00 00 8F 25 B4 [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: 01 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: 01 07 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: 01 07 00 8F 25 00 00 00 00 00 FF 0F C9 [17:26:57]RasterBufferAndPrint [17:26:57]line Счет N : (1)979865 [17:26:57]line ИНН: 02508201610067 [17:26:57]line Контрольно-Кассовый Чек [17:26:57]line ПРОДАЖА [17:26:57]line ТРК (МРК, ГНК) : 12 [17:26:57]line Товар: 2710124130 [17:26:57]line Аи-92-К-5 [17:26:57]line 2.100 * 66.90 [17:26:57]line = 140.49 [17:26:57]line НДС 12% НСП 1% [17:26:57]line > о реализуемом товаре [17:26:57]line ОКРУГЛЕНИЕ: -0.49 [17:26:57]line ИТОГО: 140.00 [17:26:57]line Внесено: 140.00 [17:26:57]line СДАЧА: 0.00 [17:26:57]line НСП 1% : 1.24 [17:26:57]line НДС 12% : 14.92 [17:26:57]line Наличными: 140.00 [17:26:57]line Безнал.: 0.00 [17:26:57]line Место: АЗС № 68 "Партнер Нефть" [17:26:57]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:26:57]line СНО: Общий режим [17:26:57]line Чек 273 04.06.2024 17:26 [17:26:57]line Смена: 368 ФФД: 1.0 [17:26:57]line ЗНМ: 0300000035 [17:26:57]line РНМ: 0000000000092720 [17:26:57]line Версия ККМ: 001 [17:26:57]line ФМ: 0000000000875057 [17:26:57]line ФД: 148934 [17:26:57]line ФПД: 40164484478189 [17:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172657&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148934&fm=40164484478189&tin=02508201610067®Number=0000000000092720&sum=14000 [17:26:57]OFD Sender: Processing packet 148934 [packets to send 100, broken 99] [17:26:57]ProducePacketName [17:26:57]name=ofd_packets/00148934 [17:26:57]OFD Sender: To server: pG, [17:26:57]CommunicateWithHost lk.salyk.kg:30040 [17:26:57]ConnectInit lk.salyk.kg [17:26:57]written 0, free lines is 4095 [17:26:57]Connected sock=10 [17:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 73 E2 07 01 7F 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 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 61 4E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C6 45 02 00 35 04 06 00 24 87 85 D4 74 ED 2B 54 DD AF 4B AF FD 76 [17:26:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CF 49 47 00 93 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C6 45 02 00 F4 03 04 00 84 F5 5E 66 B6 04 01 00 00 81 3B 92 45 34 19 6A D5 [17:26:57]CommunicateWithHost err = 0 [17:26:57]CheckOFDResponse [17:26:57]1017 (14) - 77093643461234 [17:26:57]1041 (16) - 0000000000875057 [17:26:57]1040 (4) - 148934 [17:26:57]1012 (4) - 04.06.2024 11:07 [17:26:57]1206 (1) - 0 [17:26:57]OFD Sender: Remove packet 148934 [17:26:57]ProducePacketName [17:26:57]name=ofd_packets/00148934 [17:26:57]NVStorageDeleteData [17:26:57]Write to MH i2c: 01 00 00 BA 25 DF [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: 01 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: 01 07 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: 01 07 00 BA 25 00 00 00 00 00 6B 0C 5D [17:26:57]RasterBufferAndPrint [17:26:57]line [17:26:57]line [17:26:57]line [17:26:57]line [17:26:57]line [17:26:57]written 0, free lines is 3182 [17:26:58]MH_Cut [17:26:58]Write to MH i2c: D1 01 00 C1 25 01 B8 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: D1 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: D1 01 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: D1 01 00 C1 25 00 B7 [17:26:58]Write to MH i2c: 01 00 00 C2 25 E7 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]OFD Sender: No OFD packet to send [17:26:59]*** Cut start [17:26:59]*** Partial cut [17:26:59]*** CUTSNS_PIN = 1 [17:26:59]*** CUTSNS_PIN = 0 [17:26:59]*** Brake cut motor [17:26:59]Read from MH i2c: 01 [17:26:59]MH_I2C_Read... [17:26:59]*** Stop cut motor [17:26:59]*** Cut end [17:26:59]Read from MH i2c: 01 07 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: 01 07 00 C2 25 00 00 00 00 00 FF 0F FC [17:26:59]process_action close_receipt done [17:26:59]requested_data is exist [17:26:59]produce_requested_data [17:26:59]requested_item fm.sn is exist - process it [17:26:59]wFMCommunicate request_size=4 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 11 00 00 [17:26:59]Write to MH i2c: E2 08 00 C3 25 80 11 00 00 00 00 00 00 62 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:59]Read from MH i2c: E2 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 17 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 17 00 C3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B5 [17:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:26:59]wFMCommunicate OK [17:26:59]requested_item fd.num is exist - process it [17:26:59]SAM_PROTO_GetFieldsCounters [17:26:59]wFMCommunicate request_size=4 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 13 00 00 [17:26:59]Write to MH i2c: E2 08 00 C4 25 80 13 00 00 00 00 00 00 65 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 62 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 62 00 C4 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C6 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [17:27:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C6 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:00]wFMCommunicate OK [17:27:00]SAM_PROTO_GetFieldsCounters done [17:27:00]requested_item shift.num is exist - process it [17:27:00]requested_item shift.opened is exist - process it [17:27:00]req_shift_opened [17:27:00]FM_GetShiftState [17:27:00]SAM_PROTO_GetShiftState [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 13 01 00 [17:27:00]Write to MH i2c: E2 08 00 C5 25 80 13 01 00 00 00 00 00 67 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 0E 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 0E 00 C5 25 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2A [17:27:00]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:27:00]wFMCommunicate OK [17:27:00]SAM_PROTO_GetShiftState done [17:27:00]FM_GetShiftState done [17:27:00]req_shift_opened done [17:27:00]requested_item shift.open_date is exist - process it [17:27:00]req_shift_open_date [17:27:00]req_shift_open_date done [17:27:00]produce_requested_data done [17:27:00]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148934,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:27:00]process_action_free close_receipt [17:27:00]json_value_free [17:27:00]json_value_free done [17:27:00]process_json_proto returns [17:27:00]Send response to host [17:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148934,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:27:00]free response buf [17:27:00]execute_script done [17:27:00]execute_script returns [17:27:00]free content buf [17:27:00]Sock 7.Close socket [17:27:00]Sock 7.Thread stoped [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:03]accept exits with 9 [17:28:03]New connection [17:28:03]New thread 3067407716 created [17:28:03]Thread 3067264356 joined [17:28:03]Waiting for new connection... [17:28:03] Sock 9.Parse request [17:28:03]Sock 9.Check first char [17:28:03]Sock 9.First char is OK [17:28:03]request: POST /json_proto HTTP/1.0 [17:28:03]Method: POST [17:28:03]URL: /json_proto [17:28:03]Method is POST - this is cgi request [17:28:03]url: /json_proto [17:28:03]query_string will be loaded in cgi processing [17:28:03]execute_cgi json_proto POST (null) [17:28:03]execute_cgi path=json_proto method=POST [17:28:03]POST find Content-Length [17:28:03]Host: 172.17.38.4:8080 [17:28:03]Content-Length: 679 [17:28:03]Content-Type: application/json [17:28:03] [17:28:03]POST finish read [17:28:03]Found Content-Length = 679 [17:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:28:03]execute_script... [17:28: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)979866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:28:03]POST & json_proto [17:28:03]process_json_proto [17:28:03]json parsed OK: [17:28:03]protocol is kg_v1.0 [17:28:03]action value=close_receipt [17:28:03]process_action close_receipt [17:28:03]cmd_close_receipt [17:28:03]MH_GetDate [17:28:03]Write to MH i2c: F0 00 00 C6 25 DA [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: F0 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: F0 09 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: F0 09 00 C6 25 00 A5 4E 5F 66 CC 51 87 64 A3 [17:28:03]GetLastDocTimeStamp 1717522017 [17:28:03]current date 1717522085 [17:28:03]FM_GetShiftState [17:28:03]SAM_PROTO_GetShiftState [17:28:03]wFMCommunicate request_size=4 [17:28:03]MH_SAM_APDU [17:28:03]CAPDU: 80 13 01 00 [17:28:03]Write to MH i2c: E2 08 00 C7 25 80 13 01 00 00 00 00 00 69 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:03]Read from MH i2c: E2 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 0E 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 0E 00 C7 25 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2C [17:28:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:28:03]wFMCommunicate OK [17:28:03]SAM_PROTO_GetShiftState done [17:28:03]FM_GetShiftState done [17:28:03]opened in 1717460629 [17:28:03]opened+sec_in_day 1717547029 [17:28:03]quantity*price = 100018 [17:28:03]sum+1 = 100020 [17:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 274 04.06.2024 17:28 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148935 ФПД: 278746586069454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172805&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148935&fm=278746586069454&tin=02508201610067®Number=0000000000092720&sum=100000 [17:28:04]StoreToDocumentArchive [17:28:04]shift 368 fd 148935 [17:28:04]save to /storage/0368/doc_00148935 [17:28:04]save last doc name /storage/0368/doc_00148935 to /storage/kkm_last_doc_name [17:28:04]save OK [17:28:04]Clear old archive folders... [17:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:28:04]tlvbuf is 004767B0 [17:28:04]SAM_PROTO_ClearQueue [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 09 00 00 [17:28:04]Write to MH i2c: E2 08 00 D4 25 80 09 00 00 00 00 00 00 6B [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 03 00 D4 25 00 90 00 6D [17:28:04]RAPDU: 90 00 [17:28:04]wFMCommunicate OK [17:28:04]SAM_PROTO_ClearQueue done [17:28:04]KKMCreateOFDPacket [17:28:04]OFDProtocolAddRootSTLVToBuf [17:28:04]FM_MakeSignedData [17:28:04]FM_MakeSignedData [17:28:04]SAM_PROTO_SignData [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 0D 01 02 [17:28:04]Write to MH i2c: E2 08 00 D5 25 80 0D 01 02 00 00 00 00 73 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 03 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 03 00 D5 25 00 90 00 6E [17:28:05]RAPDU: 90 00 [17:28:05]wFMCommunicate OK [17:28:05]wFMCommunicate request_size=255 [17:28:05]MH_SAM_APDU [17:28:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 01 00 00 F4 03 04 00 A5 4E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C7 45 02 00 35 04 06 00 FD 84 BF 3E [17:28:05]Write to MH i2c: E2 02 01 D6 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 01 00 00 F4 03 04 00 A5 4E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C7 45 02 00 35 04 06 00 FD 84 BF 3E 00 00 9C [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 03 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 03 00 D6 25 00 90 00 6F [17:28:05]RAPDU: 90 00 [17:28:05]wFMCommunicate OK [17:28:05]wFMCommunicate request_size=7 [17:28:05]MH_SAM_APDU [17:28:05]CAPDU: 80 0D 02 02 02 B9 CE [17:28:05]Write to MH i2c: E2 0A 00 D7 25 80 0D 02 02 02 00 B9 CE 00 00 01 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 03 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 03 00 D7 25 00 90 00 70 [17:28:05]RAPDU: 90 00 [17:28:05]wFMCommunicate OK [17:28:05]wFMCommunicate request_size=4 [17:28:05]MH_SAM_APDU [17:28:05]CAPDU: 80 0D 03 02 [17:28:05]Write to MH i2c: E2 08 00 D8 25 80 0D 03 02 00 00 00 00 78 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 0B 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 0B 00 D8 25 00 F4 B6 6A 84 E0 09 FD 65 90 00 5C [17:28:05]RAPDU: F4 B6 6A 84 E0 09 FD 65 90 00 [17:28:05]wFMCommunicate OK [17:28:05]SAM_PROTO_SignData done [17:28:05]FM_MakeSignedData done [17:28:05]CreateOFDProtocolMessage [17:28:05]wFMCommunicate request_size=4 [17:28:05]MH_SAM_APDU [17:28:05]CAPDU: 80 11 00 00 [17:28:05]Write to MH i2c: E2 08 00 D9 25 80 11 00 00 00 00 00 00 78 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 17 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 17 00 D9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CB [17:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:28:05]wFMCommunicate OK [17:28:05]CreateOFDProtocolMessage done [17:28:05]OFDSenderStorePacket 148935 [17:28:05]StoreOFDPacket docnum=148935 [17:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 32 CC 04 01 2C A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 01 00 00 F4 03 04 00 A5 4E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C7 45 02 00 35 04 06 00 FD 84 BF 3E B9 CE F4 B6 6A 84 E0 09 FD 65 [17:28:05]CheckFolder [17:28:05]dirname=/storage/ofd_packets [17:28:05]CheckFolder done [17:28:05]ProducePacketName [17:28:05]name=ofd_packets/00148935 [17:28:05]NVStorageSaveData ofd_packets/00148935 [17:28:05]File name is /storage/ofd_packets/00148935 [17:28:05]Write 298 bytes [17:28:05]NVStorageSaveData done [17:28:05]OFDSenderStorePacket done [17:28:05]KKMCreateOFDPacket done [17:28:05]NVStorageSaveData kkm_last_timestamp [17:28:05]File name is /storage/kkm_last_timestamp [17:28:05]Write 4 bytes [17:28:05]NVStorageSaveData done [17:28:05]ExternCall_PrintAddStr [17:28:05]wPrintStart [17:28:05]Write to MH i2c: 01 00 00 DA 25 FF [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: 01 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: 01 07 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: 01 07 00 DA 25 00 00 00 00 00 FF 0F 14 [17:28:05]RasterBufferAndPrint [17:28:05]line Счет N : (1)979866 [17:28:05]line ИНН: 02508201610067 [17:28:05]line Контрольно-Кассовый Чек [17:28:05]line ПРОДАЖА [17:28:05]line ТРК (МРК, ГНК) : 51 [17:28:05]line Товар: 2710194210 [17:28:05]line ДТ-К-5 [17:28:05]line 13.720 * 72.90 [17:28:05]line = 1000.19 [17:28:05]line НДС 12% НСП 1% [17:28:05]line > о реализуемом товаре [17:28:05]line ОКРУГЛЕНИЕ: -0.19 [17:28:05]line ИТОГО: 1000.00 [17:28:05]line Внесено: 1000.00 [17:28:05]line СДАЧА: 0.00 [17:28:05]line НСП 1% : 8.85 [17:28:05]line НДС 12% : 106.21 [17:28:05]line Наличными: 1000.00 [17:28:05]line Безнал.: 0.00 [17:28:05]line Место: АЗС № 68 "Партнер Нефть" [17:28:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:28:05]line СНО: Общий режим [17:28:05]line Чек 274 04.06.2024 17:28 [17:28:05]line Смена: 368 ФФД: 1.0 [17:28:05]line ЗНМ: 0300000035 [17:28:05]line РНМ: 0000000000092720 [17:28:05]line Версия ККМ: 001 [17:28:05]line ФМ: 0000000000875057 [17:28:05]line ФД: 148935 [17:28:05]line ФПД: 278746586069454 [17:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172805&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148935&fm=278746586069454&tin=02508201610067®Number=0000000000092720&sum=100000 [17:28:05]OFD Sender: Processing packet 148935 [packets to send 100, broken 99] [17:28:05]ProducePacketName [17:28:05]name=ofd_packets/00148935 [17:28:05]OFD Sender: To server: pG, [17:28:05]CommunicateWithHost lk.salyk.kg:30040 [17:28:05]ConnectInit lk.salyk.kg [17:28:05]written 0, free lines is 4095 [17:28:05]Connected sock=10 [17:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 32 CC 04 01 2C A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 01 00 00 F4 03 04 00 A5 4E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C7 45 02 00 35 04 06 00 FD 84 BF 3E B9 CE F4 B6 6A 84 E0 09 FD 65 [17:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 4F 03 47 00 FA E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C7 45 02 00 F4 03 04 00 C8 F5 5E 66 B6 04 01 00 00 9E 53 A0 1F 1C 6A 06 D7 [17:28:06]CommunicateWithHost err = 0 [17:28:06]CheckOFDResponse [17:28:06]1017 (14) - 77093643461234 [17:28:06]1041 (16) - 0000000000875057 [17:28:06]1040 (4) - 148935 [17:28:06]1012 (4) - 04.06.2024 11:08 [17:28:06]1206 (1) - 0 [17:28:06]OFD Sender: Remove packet 148935 [17:28:06]ProducePacketName [17:28:06]name=ofd_packets/00148935 [17:28:06]NVStorageDeleteData [17:28:06]Write to MH i2c: 01 00 00 05 26 2B [17:28:06]Write i2c OK [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: 01 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: 01 07 00 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: 01 07 00 05 26 00 00 00 00 00 71 0C AF [17:28:06]RasterBufferAndPrint [17:28:06]line [17:28:06]line [17:28:06]line [17:28:06]line [17:28:06]line [17:28:06]written 0, free lines is 3187 [17:28:06]MH_Cut [17:28:06]Write to MH i2c: D1 01 00 0C 26 01 04 [17:28:06]Write i2c OK [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: D1 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: D1 01 00 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: D1 01 00 0C 26 00 03 [17:28:06]Write to MH i2c: 01 00 00 0D 26 33 [17:28:06]Write i2c OK [17:28:06]MH_I2C_Read... [17:28:06]OFD Sender: No OFD packet to send [17:28:07]*** Cut start [17:28:07]*** Partial cut [17:28:07]*** CUTSNS_PIN = 1 [17:28:07]*** CUTSNS_PIN = 0 [17:28:07]*** Brake cut motor [17:28:08]Read from MH i2c: 01 [17:28:08]MH_I2C_Read... [17:28:08]*** Stop cut motor [17:28:08]*** Cut end [17:28:08]Read from MH i2c: 01 07 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 07 00 0D 26 00 00 00 00 00 FF 0F 48 [17:28:08]process_action close_receipt done [17:28:08]requested_data is exist [17:28:08]produce_requested_data [17:28:08]requested_item fm.sn is exist - process it [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 11 00 00 [17:28:08]Write to MH i2c: E2 08 00 0E 26 80 11 00 00 00 00 00 00 AE [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 17 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 17 00 0E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 01 [17:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:28:08]wFMCommunicate OK [17:28:08]requested_item fd.num is exist - process it [17:28:08]SAM_PROTO_GetFieldsCounters [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 13 00 00 [17:28:08]Write to MH i2c: E2 08 00 0F 26 80 13 00 00 00 00 00 00 B1 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 62 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 62 00 0F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C7 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [17:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C7 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:08]wFMCommunicate OK [17:28:08]SAM_PROTO_GetFieldsCounters done [17:28:08]requested_item shift.num is exist - process it [17:28:08]requested_item shift.opened is exist - process it [17:28:08]req_shift_opened [17:28:08]FM_GetShiftState [17:28:08]SAM_PROTO_GetShiftState [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 13 01 00 [17:28:08]Write to MH i2c: E2 08 00 10 26 80 13 01 00 00 00 00 00 B3 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 0E 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 0E 00 10 26 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 76 [17:28:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:28:08]wFMCommunicate OK [17:28:08]SAM_PROTO_GetShiftState done [17:28:08]FM_GetShiftState done [17:28:08]req_shift_opened done [17:28:08]requested_item shift.open_date is exist - process it [17:28:08]req_shift_open_date [17:28:08]req_shift_open_date done [17:28:08]produce_requested_data done [17:28:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148935,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:28:08]process_action_free close_receipt [17:28:08]json_value_free [17:28:08]json_value_free done [17:28:08]process_json_proto returns [17:28:08]Send response to host [17:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148935,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:28:08]free response buf [17:28:08]execute_script done [17:28:08]execute_script returns [17:28:08]free content buf [17:28:08]Sock 9.Close socket [17:28:08]Sock 9.Thread stoped [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]accept exits with 7 [17:32:46]New connection [17:32:46]New thread 3067264356 created [17:32:46]Thread 3067407716 joined [17:32:46]Waiting for new connection... [17:32:46] Sock 7.Parse request [17:32:46]Sock 7.Check first char [17:32:46]Sock 7.First char is OK [17:32:46]request: POST /json_proto HTTP/1.0 [17:32:46]Method: POST [17:32:46]URL: /json_proto [17:32:46]Method is POST - this is cgi request [17:32:46]url: /json_proto [17:32:46]query_string will be loaded in cgi processing [17:32:46]execute_cgi json_proto POST (null) [17:32:46]execute_cgi path=json_proto method=POST [17:32:46]POST find Content-Length [17:32:46]Host: 172.17.38.4:8080 [17:32:46]Content-Length: 677 [17:32:46]Content-Type: application/json [17:32:46] [17:32:46]POST finish read [17:32:46]Found Content-Length = 677 [17:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:46]execute_script... [17:32:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:46]POST & json_proto [17:32:46]process_json_proto [17:32:46]json parsed OK: [17:32:46]protocol is kg_v1.0 [17:32:46]action value=close_receipt [17:32:46]process_action close_receipt [17:32:46]cmd_close_receipt [17:32:46]MH_GetDate [17:32:46]Write to MH i2c: F0 00 00 11 26 26 [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: F0 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: F0 09 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: F0 09 00 11 26 00 C0 4F 5F 66 CC 51 87 64 0B [17:32:46]GetLastDocTimeStamp 1717522085 [17:32:46]current date 1717522368 [17:32:46]FM_GetShiftState [17:32:46]SAM_PROTO_GetShiftState [17:32:46]wFMCommunicate request_size=4 [17:32:46]MH_SAM_APDU [17:32:46]CAPDU: 80 13 01 00 [17:32:46]Write to MH i2c: E2 08 00 12 26 80 13 01 00 00 00 00 00 B5 [17:32:46]Write i2c OK [17:32:46]MH_I2C_Read... [17:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:46]Read from MH i2c: E2 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 0E 00 [17:32:46]MH_I2C_Read... [17:32:46]Read from MH i2c: E2 0E 00 12 26 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 78 [17:32:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:32:46]wFMCommunicate OK [17:32:46]SAM_PROTO_GetShiftState done [17:32:46]FM_GetShiftState done [17:32:46]opened in 1717460629 [17:32:46]opened+sec_in_day 1717547029 [17:32:46]quantity*price = 50041 [17:32:46]sum+1 = 50042 [17:32:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 275 04.06.2024 17:32 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148936 ФПД: 24483818913624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T173248&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148936&fm=24483818913624&tin=02508201610067®Number=0000000000092720&sum=50000 [17:32:47]StoreToDocumentArchive [17:32:47]shift 368 fd 148936 [17:32:47]save to /storage/0368/doc_00148936 [17:32:47]save last doc name /storage/0368/doc_00148936 to /storage/kkm_last_doc_name [17:32:47]save OK [17:32:47]Clear old archive folders... [17:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:47]tlvbuf is 00489600 [17:32:47]SAM_PROTO_ClearQueue [17:32:47]wFMCommunicate request_size=4 [17:32:47]MH_SAM_APDU [17:32:47]CAPDU: 80 09 00 00 [17:32:47]Write to MH i2c: E2 08 00 1F 26 80 09 00 00 00 00 00 00 B7 [17:32:47]Write i2c OK [17:32:47]MH_I2C_Read... [17:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:47]Read from MH i2c: E2 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 03 00 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 03 00 1F 26 00 90 00 B9 [17:32:47]RAPDU: 90 00 [17:32:47]wFMCommunicate OK [17:32:47]SAM_PROTO_ClearQueue done [17:32:47]KKMCreateOFDPacket [17:32:47]OFDProtocolAddRootSTLVToBuf [17:32:47]FM_MakeSignedData [17:32:47]FM_MakeSignedData [17:32:47]SAM_PROTO_SignData [17:32:47]wFMCommunicate request_size=4 [17:32:47]MH_SAM_APDU [17:32:47]CAPDU: 80 0D 01 02 [17:32:47]Write to MH i2c: E2 08 00 20 26 80 0D 01 02 00 00 00 00 BF [17:32:47]Write i2c OK [17:32:47]MH_I2C_Read... [17:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:47]Read from MH i2c: E2 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 03 00 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 03 00 20 26 00 90 00 BA [17:32:47]RAPDU: 90 00 [17:32:47]wFMCommunicate OK [17:32:47]wFMCommunicate request_size=255 [17:32:47]MH_SAM_APDU [17:32:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 C0 4F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C8 45 02 00 35 04 06 00 16 [17:32:47]Write to MH i2c: E2 02 01 21 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 C0 4F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C8 45 02 00 35 04 06 00 16 00 00 C7 [17:32:47]Write i2c OK [17:32:47]MH_I2C_Read... [17:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:47]Read from MH i2c: E2 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 03 00 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 03 00 21 26 00 90 00 BB [17:32:47]RAPDU: 90 00 [17:32:47]wFMCommunicate OK [17:32:47]wFMCommunicate request_size=10 [17:32:47]MH_SAM_APDU [17:32:47]CAPDU: 80 0D 02 02 05 44 95 54 3F 58 [17:32:47]Write to MH i2c: E2 0D 00 22 26 80 0D 02 02 05 00 44 95 54 3F 58 00 00 90 [17:32:47]Write i2c OK [17:32:47]MH_I2C_Read... [17:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:47]Read from MH i2c: E2 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 03 00 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 03 00 22 26 00 90 00 BC [17:32:47]RAPDU: 90 00 [17:32:47]wFMCommunicate OK [17:32:47]wFMCommunicate request_size=4 [17:32:47]MH_SAM_APDU [17:32:47]CAPDU: 80 0D 03 02 [17:32:47]Write to MH i2c: E2 08 00 23 26 80 0D 03 02 00 00 00 00 C4 [17:32:47]Write i2c OK [17:32:47]MH_I2C_Read... [17:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 0B 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 0B 00 23 26 00 07 0B 5D 44 07 30 4C 26 90 00 21 [17:32:48]RAPDU: 07 0B 5D 44 07 30 4C 26 90 00 [17:32:48]wFMCommunicate OK [17:32:48]SAM_PROTO_SignData done [17:32:48]FM_MakeSignedData done [17:32:48]CreateOFDProtocolMessage [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 11 00 00 [17:32:48]Write to MH i2c: E2 08 00 24 26 80 11 00 00 00 00 00 00 C4 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 17 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 17 00 24 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 17 [17:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:32:48]wFMCommunicate OK [17:32:48]CreateOFDProtocolMessage done [17:32:48]OFDSenderStorePacket 148936 [17:32:48]StoreOFDPacket docnum=148936 [17:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7E B3 07 01 01 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 C0 4F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C8 45 02 00 35 04 06 00 16 44 95 54 3F 58 07 0B 5D 44 07 30 4C 26 [17:32:48]CheckFolder [17:32:48]dirname=/storage/ofd_packets [17:32:48]CheckFolder done [17:32:48]ProducePacketName [17:32:48]name=ofd_packets/00148936 [17:32:48]NVStorageSaveData ofd_packets/00148936 [17:32:48]File name is /storage/ofd_packets/00148936 [17:32:48]Write 301 bytes [17:32:48]NVStorageSaveData done [17:32:48]OFDSenderStorePacket done [17:32:48]KKMCreateOFDPacket done [17:32:48]NVStorageSaveData kkm_last_timestamp [17:32:48]File name is /storage/kkm_last_timestamp [17:32:48]Write 4 bytes [17:32:48]NVStorageSaveData done [17:32:48]ExternCall_PrintAddStr [17:32:48]wPrintStart [17:32:48]Write to MH i2c: 01 00 00 25 26 4B [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: 01 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: 01 07 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: 01 07 00 25 26 00 00 00 00 00 FF 0F 60 [17:32:48]RasterBufferAndPrint [17:32:48]line Счет N : (1)979867 [17:32:48]line ИНН: 02508201610067 [17:32:48]line Контрольно-Кассовый Чек [17:32:48]line ПРОДАЖА [17:32:48]line ТРК (МРК, ГНК) : 41 [17:32:48]line Товар: 2710124130 [17:32:48]line Аи-92-К-5 [17:32:48]line 7.480 * 66.90 [17:32:48]line = 500.41 [17:32:48]line НДС 12% НСП 1% [17:32:48]line > о реализуемом товаре [17:32:48]line ОКРУГЛЕНИЕ: -0.41 [17:32:48]line ИТОГО: 500.00 [17:32:48]line Внесено: 500.00 [17:32:48]line СДАЧА: 0.00 [17:32:48]line НСП 1% : 4.43 [17:32:48]line НДС 12% : 53.14 [17:32:48]line Наличными: 500.00 [17:32:48]line Безнал.: 0.00 [17:32:48]line Место: АЗС № 68 "Партнер Нефть" [17:32:48]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:32:48]line СНО: Общий режим [17:32:48]line Чек 275 04.06.2024 17:32 [17:32:48]line Смена: 368 ФФД: 1.0 [17:32:48]line ЗНМ: 0300000035 [17:32:48]line РНМ: 0000000000092720 [17:32:48]line Версия ККМ: 001 [17:32:48]line ФМ: 0000000000875057 [17:32:48]line ФД: 148936 [17:32:48]line ФПД: 24483818913624 [17:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T173248&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148936&fm=24483818913624&tin=02508201610067®Number=0000000000092720&sum=50000 [17:32:48]OFD Sender: Processing packet 148936 [packets to send 100, broken 99] [17:32:48]ProducePacketName [17:32:48]name=ofd_packets/00148936 [17:32:48]OFD Sender: To server: pG, [17:32:48]CommunicateWithHost lk.salyk.kg:30040 [17:32:48]ConnectInit lk.salyk.kg [17:32:48]written 0, free lines is 4095 [17:32:48]Connected sock=10 [17:32:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7E B3 07 01 01 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 C0 4F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C8 45 02 00 35 04 06 00 16 44 95 54 3F 58 07 0B 5D 44 07 30 4C 26 [17:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 94 E1 47 00 B0 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C8 45 02 00 F4 03 04 00 E3 F6 5E 66 B6 04 01 00 00 AE 99 BA 00 B2 EE 25 25 [17:32:48]CommunicateWithHost err = 0 [17:32:48]CheckOFDResponse [17:32:48]1017 (14) - 77093643461234 [17:32:48]1041 (16) - 0000000000875057 [17:32:48]1040 (4) - 148936 [17:32:48]1012 (4) - 04.06.2024 11:13 [17:32:48]1206 (1) - 0 [17:32:48]OFD Sender: Remove packet 148936 [17:32:48]ProducePacketName [17:32:48]name=ofd_packets/00148936 [17:32:48]NVStorageDeleteData [17:32:48]Write to MH i2c: 01 00 00 50 26 76 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: 01 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: 01 07 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: 01 07 00 50 26 00 00 00 00 00 7D 0C 06 [17:32:48]RasterBufferAndPrint [17:32:48]line [17:32:48]line [17:32:48]line [17:32:48]line [17:32:48]line [17:32:48]written 0, free lines is 3199 [17:32:48]MH_Cut [17:32:48]Write to MH i2c: D1 01 00 57 26 01 4F [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: D1 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: D1 01 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: D1 01 00 57 26 00 4E [17:32:48]Write to MH i2c: 01 00 00 58 26 7E [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:49]OFD Sender: No OFD packet to send [17:32:50]*** Cut start [17:32:50]*** Partial cut [17:32:50]*** CUTSNS_PIN = 1 [17:32:50]*** CUTSNS_PIN = 0 [17:32:50]*** Brake cut motor [17:32:50]Read from MH i2c: 01 [17:32:50]MH_I2C_Read... [17:32:50]*** Stop cut motor [17:32:50]*** Cut end [17:32:50]Read from MH i2c: 01 07 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: 01 07 00 58 26 00 00 00 00 00 FF 0F 93 [17:32:50]process_action close_receipt done [17:32:50]requested_data is exist [17:32:50]produce_requested_data [17:32:50]requested_item fm.sn is exist - process it [17:32:50]wFMCommunicate request_size=4 [17:32:50]MH_SAM_APDU [17:32:50]CAPDU: 80 11 00 00 [17:32:50]Write to MH i2c: E2 08 00 59 26 80 11 00 00 00 00 00 00 F9 [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:50]Read from MH i2c: E2 17 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 17 00 59 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4C [17:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:32:50]wFMCommunicate OK [17:32:50]requested_item fd.num is exist - process it [17:32:50]SAM_PROTO_GetFieldsCounters [17:32:50]wFMCommunicate request_size=4 [17:32:50]MH_SAM_APDU [17:32:50]CAPDU: 80 13 00 00 [17:32:50]Write to MH i2c: E2 08 00 5A 26 80 13 00 00 00 00 00 00 FC [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 62 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 62 00 5A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [17:32:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:50]wFMCommunicate OK [17:32:50]SAM_PROTO_GetFieldsCounters done [17:32:50]requested_item shift.num is exist - process it [17:32:50]requested_item shift.opened is exist - process it [17:32:50]req_shift_opened [17:32:50]FM_GetShiftState [17:32:50]SAM_PROTO_GetShiftState [17:32:50]wFMCommunicate request_size=4 [17:32:50]MH_SAM_APDU [17:32:50]CAPDU: 80 13 01 00 [17:32:50]Write to MH i2c: E2 08 00 5B 26 80 13 01 00 00 00 00 00 FE [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 0E 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 0E 00 5B 26 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C1 [17:32:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:32:50]wFMCommunicate OK [17:32:50]SAM_PROTO_GetShiftState done [17:32:50]FM_GetShiftState done [17:32:50]req_shift_opened done [17:32:50]requested_item shift.open_date is exist - process it [17:32:50]req_shift_open_date [17:32:50]req_shift_open_date done [17:32:50]produce_requested_data done [17:32:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148936,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:32:50]process_action_free close_receipt [17:32:50]json_value_free [17:32:50]json_value_free done [17:32:50]process_json_proto returns [17:32:50]Send response to host [17:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148936,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:32:50]free response buf [17:32:50]execute_script done [17:32:50]execute_script returns [17:32:50]free content buf [17:32:50]Sock 7.Close socket [17:32:50]Sock 7.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:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:45]accept exits with 9 [17:36:45]New connection [17:36:45]New thread 3067407716 created [17:36:45]Thread 3067264356 joined [17:36:45]Waiting for new connection... [17:36:45] Sock 9.Parse request [17:36:45]Sock 9.Check first char [17:36:45]Sock 9.First char is OK [17:36:45]request: POST /json_proto HTTP/1.0 [17:36:45]Method: POST [17:36:45]URL: /json_proto [17:36:45]Method is POST - this is cgi request [17:36:45]url: /json_proto [17:36:45]query_string will be loaded in cgi processing [17:36:45]execute_cgi json_proto POST (null) [17:36:45]execute_cgi path=json_proto method=POST [17:36:45]POST find Content-Length [17:36:45]Host: 172.17.38.4:8080 [17:36:45]Content-Length: 677 [17:36:45]Content-Type: application/json [17:36:45] [17:36:45]POST finish read [17:36:45]Found Content-Length = 677 [17:36:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:45]execute_script... [17:36: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)979868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:45]POST & json_proto [17:36:45]process_json_proto [17:36:45]json parsed OK: [17:36:45]protocol is kg_v1.0 [17:36:45]action value=close_receipt [17:36:45]process_action close_receipt [17:36:45]cmd_close_receipt [17:36:45]MH_GetDate [17:36:45]Write to MH i2c: F0 00 00 5C 26 71 [17:36:45]Write i2c OK [17:36:45]MH_I2C_Read... [17:36:45]Read from MH i2c: F0 [17:36:45]MH_I2C_Read... [17:36:45]Read from MH i2c: F0 09 00 [17:36:45]MH_I2C_Read... [17:36:45]Read from MH i2c: F0 09 00 5C 26 00 AF 50 5F 66 CC 51 87 64 46 [17:36:45]GetLastDocTimeStamp 1717522368 [17:36:45]current date 1717522607 [17:36:45]FM_GetShiftState [17:36:45]SAM_PROTO_GetShiftState [17:36:45]wFMCommunicate request_size=4 [17:36:45]MH_SAM_APDU [17:36:45]CAPDU: 80 13 01 00 [17:36:45]Write to MH i2c: E2 08 00 5D 26 80 13 01 00 00 00 00 00 00 [17:36:45]Write i2c OK [17:36:45]MH_I2C_Read... [17:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:46]Read from MH i2c: E2 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: E2 0E 00 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: E2 0E 00 5D 26 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C3 [17:36:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:36:46]wFMCommunicate OK [17:36:46]SAM_PROTO_GetShiftState done [17:36:46]FM_GetShiftState done [17:36:46]opened in 1717460629 [17:36:46]opened+sec_in_day 1717547029 [17:36:46]quantity*price = 20003 [17:36:46]sum+1 = 20004 [17:36:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 276 04.06.2024 17:36 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148937 ФПД: 211856431699628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T173647&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148937&fm=211856431699628&tin=02508201610067®Number=0000000000092720&sum=20000 [17:36:47]StoreToDocumentArchive [17:36:47]shift 368 fd 148937 [17:36:47]save to /storage/0368/doc_00148937 [17:36:47]save last doc name /storage/0368/doc_00148937 to /storage/kkm_last_doc_name [17:36:47]save OK [17:36:47]Clear old archive folders... [17:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:47]tlvbuf is 0049E270 [17:36:47]SAM_PROTO_ClearQueue [17:36:47]wFMCommunicate request_size=4 [17:36:47]MH_SAM_APDU [17:36:47]CAPDU: 80 09 00 00 [17:36:47]Write to MH i2c: E2 08 00 6A 26 80 09 00 00 00 00 00 00 02 [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:47]Read from MH i2c: E2 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 6A 26 00 90 00 04 [17:36:47]RAPDU: 90 00 [17:36:47]wFMCommunicate OK [17:36:47]SAM_PROTO_ClearQueue done [17:36:47]KKMCreateOFDPacket [17:36:47]OFDProtocolAddRootSTLVToBuf [17:36:47]FM_MakeSignedData [17:36:47]FM_MakeSignedData [17:36:47]SAM_PROTO_SignData [17:36:47]wFMCommunicate request_size=4 [17:36:47]MH_SAM_APDU [17:36:47]CAPDU: 80 0D 01 02 [17:36:47]Write to MH i2c: E2 08 00 6B 26 80 0D 01 02 00 00 00 00 0A [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:47]Read from MH i2c: E2 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 6B 26 00 90 00 05 [17:36:47]RAPDU: 90 00 [17:36:47]wFMCommunicate OK [17:36:47]wFMCommunicate request_size=255 [17:36:47]MH_SAM_APDU [17:36:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 AF 50 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C9 45 02 00 35 04 06 00 C0 [17:36:47]Write to MH i2c: E2 02 01 6C 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 AF 50 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C9 45 02 00 35 04 06 00 C0 00 00 70 [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:47]Read from MH i2c: E2 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 6C 26 00 90 00 06 [17:36:47]RAPDU: 90 00 [17:36:47]wFMCommunicate OK [17:36:47]wFMCommunicate request_size=10 [17:36:47]MH_SAM_APDU [17:36:47]CAPDU: 80 0D 02 02 05 AE AB 5A D6 AC [17:36:47]Write to MH i2c: E2 0D 00 6D 26 80 0D 02 02 05 00 AE AB 5A D6 AC 00 00 4C [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:47]Read from MH i2c: E2 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 6D 26 00 90 00 07 [17:36:47]RAPDU: 90 00 [17:36:47]wFMCommunicate OK [17:36:47]wFMCommunicate request_size=4 [17:36:47]MH_SAM_APDU [17:36:47]CAPDU: 80 0D 03 02 [17:36:47]Write to MH i2c: E2 08 00 6E 26 80 0D 03 02 00 00 00 00 0F [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:47]Read from MH i2c: E2 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 0B 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 0B 00 6E 26 00 65 C8 C7 C1 A7 74 21 3A 90 00 3B [17:36:47]RAPDU: 65 C8 C7 C1 A7 74 21 3A 90 00 [17:36:47]wFMCommunicate OK [17:36:47]SAM_PROTO_SignData done [17:36:47]FM_MakeSignedData done [17:36:47]CreateOFDProtocolMessage [17:36:47]wFMCommunicate request_size=4 [17:36:47]MH_SAM_APDU [17:36:47]CAPDU: 80 11 00 00 [17:36:47]Write to MH i2c: E2 08 00 6F 26 80 11 00 00 00 00 00 00 0F [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:47]Read from MH i2c: E2 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 17 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 17 00 6F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 62 [17:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:36:47]wFMCommunicate OK [17:36:47]CreateOFDProtocolMessage done [17:36:47]OFDSenderStorePacket 148937 [17:36:47]StoreOFDPacket docnum=148937 [17:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4D 04 07 01 A4 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 14 01 00 00 F4 03 04 00 AF 50 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C9 45 02 00 35 04 06 00 C0 AE AB 5A D6 AC 65 C8 C7 C1 A7 74 21 3A [17:36:47]CheckFolder [17:36:47]dirname=/storage/ofd_packets [17:36:47]CheckFolder done [17:36:47]ProducePacketName [17:36:47]name=ofd_packets/00148937 [17:36:47]NVStorageSaveData ofd_packets/00148937 [17:36:47]File name is /storage/ofd_packets/00148937 [17:36:47]Write 301 bytes [17:36:47]NVStorageSaveData done [17:36:47]OFDSenderStorePacket done [17:36:47]KKMCreateOFDPacket done [17:36:47]NVStorageSaveData kkm_last_timestamp [17:36:47]File name is /storage/kkm_last_timestamp [17:36:47]Write 4 bytes [17:36:47]NVStorageSaveData done [17:36:47]ExternCall_PrintAddStr [17:36:47]wPrintStart [17:36:47]Write to MH i2c: 01 00 00 70 26 96 [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: 01 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: 01 07 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: 01 07 00 70 26 00 00 00 00 00 FF 0F AB [17:36:47]RasterBufferAndPrint [17:36:47]line Счет N : (1)979868 [17:36:47]line ИНН: 02508201610067 [17:36:47]line Контрольно-Кассовый Чек [17:36:47]line ПРОДАЖА [17:36:47]line ТРК (МРК, ГНК) : 12 [17:36:47]line Товар: 2710124130 [17:36:47]line Аи-92-К-5 [17:36:47]line 2.990 * 66.90 [17:36:47]line = 200.03 [17:36:47]line НДС 12% НСП 1% [17:36:47]line > о реализуемом товаре [17:36:47]line ОКРУГЛЕНИЕ: -0.03 [17:36:47]line ИТОГО: 200.00 [17:36:47]line Внесено: 200.00 [17:36:47]line СДАЧА: 0.00 [17:36:47]line НСП 1% : 1.77 [17:36:47]line НДС 12% : 21.24 [17:36:47]line Наличными: 200.00 [17:36:47]line Безнал.: 0.00 [17:36:47]line Место: АЗС № 68 "Партнер Нефть" [17:36:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:36:47]line СНО: Общий режим [17:36:47]line Чек 276 04.06.2024 17:36 [17:36:47]line Смена: 368 ФФД: 1.0 [17:36:47]line ЗНМ: 0300000035 [17:36:47]line РНМ: 0000000000092720 [17:36:47]line Версия ККМ: 001 [17:36:47]line ФМ: 0000000000875057 [17:36:47]line ФД: 148937 [17:36:47]line ФПД: 211856431699628 [17:36:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T173647&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148937&fm=211856431699628&tin=02508201610067®Number=0000000000092720&sum=20000 [17:36:48]OFD Sender: Processing packet 148937 [packets to send 100, broken 99] [17:36:48]ProducePacketName [17:36:48]name=ofd_packets/00148937 [17:36:48]OFD Sender: To server: pG, [17:36:48]CommunicateWithHost lk.salyk.kg:30040 [17:36:48]ConnectInit lk.salyk.kg [17:36:48]written 0, free lines is 4095 [17:36:48]Connected sock=10 [17:36:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4D 04 07 01 A4 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 14 01 00 00 F4 03 04 00 AF 50 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C9 45 02 00 35 04 06 00 C0 AE AB 5A D6 AC 65 C8 C7 C1 A7 74 21 3A [17:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 AF E5 47 00 5D 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 C9 45 02 00 F4 03 04 00 D3 F7 5E 66 B6 04 01 00 00 A4 6C 62 76 B9 72 30 0E [17:36:48]CommunicateWithHost err = 0 [17:36:48]CheckOFDResponse [17:36:48]1017 (14) - 77093643461234 [17:36:48]1041 (16) - 0000000000875057 [17:36:48]1040 (4) - 148937 [17:36:48]1012 (4) - 04.06.2024 11:17 [17:36:48]1206 (1) - 0 [17:36:48]OFD Sender: Remove packet 148937 [17:36:48]ProducePacketName [17:36:48]name=ofd_packets/00148937 [17:36:48]NVStorageDeleteData [17:36:48]Write to MH i2c: 01 00 00 9B 26 C1 [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 07 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 07 00 9B 26 00 00 00 00 00 6C 0C 40 [17:36:48]RasterBufferAndPrint [17:36:48]line [17:36:48]line [17:36:48]line [17:36:48]line [17:36:48]line [17:36:48]written 0, free lines is 3184 [17:36:48]MH_Cut [17:36:48]Write to MH i2c: D1 01 00 A2 26 01 9A [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: D1 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: D1 01 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: D1 01 00 A2 26 00 99 [17:36:48]Write to MH i2c: 01 00 00 A3 26 C9 [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]OFD Sender: No OFD packet to send [17:36:49]*** Cut start [17:36:49]*** Partial cut [17:36:49]*** CUTSNS_PIN = 1 [17:36:49]*** CUTSNS_PIN = 0 [17:36:49]*** Brake cut motor [17:36:50]Read from MH i2c: 01 [17:36:50]MH_I2C_Read... [17:36:50]*** Stop cut motor [17:36:50]*** Cut end [17:36:50]Read from MH i2c: 01 07 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: 01 07 00 A3 26 00 00 00 00 00 FF 0F DE [17:36:50]process_action close_receipt done [17:36:50]requested_data is exist [17:36:50]produce_requested_data [17:36:50]requested_item fm.sn is exist - process it [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 11 00 00 [17:36:50]Write to MH i2c: E2 08 00 A4 26 80 11 00 00 00 00 00 00 44 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:50]Read from MH i2c: E2 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 17 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 17 00 A4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 97 [17:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:36:50]wFMCommunicate OK [17:36:50]requested_item fd.num is exist - process it [17:36:50]SAM_PROTO_GetFieldsCounters [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 13 00 00 [17:36:50]Write to MH i2c: E2 08 00 A5 26 80 13 00 00 00 00 00 00 47 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:50]Read from MH i2c: E2 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 62 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 62 00 A5 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C9 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [17:36:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 C9 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:50]wFMCommunicate OK [17:36:50]SAM_PROTO_GetFieldsCounters done [17:36:50]requested_item shift.num is exist - process it [17:36:50]requested_item shift.opened is exist - process it [17:36:50]req_shift_opened [17:36:50]FM_GetShiftState [17:36:50]SAM_PROTO_GetShiftState [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 13 01 00 [17:36:50]Write to MH i2c: E2 08 00 A6 26 80 13 01 00 00 00 00 00 49 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:50]Read from MH i2c: E2 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 0E 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 0E 00 A6 26 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0C [17:36:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:36:50]wFMCommunicate OK [17:36:50]SAM_PROTO_GetShiftState done [17:36:50]FM_GetShiftState done [17:36:50]req_shift_opened done [17:36:50]requested_item shift.open_date is exist - process it [17:36:50]req_shift_open_date [17:36:50]req_shift_open_date done [17:36:50]produce_requested_data done [17:36:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148937,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:36:50]process_action_free close_receipt [17:36:50]json_value_free [17:36:50]json_value_free done [17:36:50]process_json_proto returns [17:36:50]Send response to host [17:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148937,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:36:50]free response buf [17:36:50]execute_script done [17:36:50]execute_script returns [17:36:50]free content buf [17:36:50]Sock 9.Close socket [17:36:50]Sock 9.Thread stoped [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]accept exits with 7 [17:38:53]New connection [17:38:53]New thread 3067264356 created [17:38:53]Thread 3067407716 joined [17:38:53]Waiting for new connection... [17:38:53] Sock 7.Parse request [17:38:53]Sock 7.Check first char [17:38:53]Sock 7.First char is OK [17:38:53]request: POST /json_proto HTTP/1.0 [17:38:53]Method: POST [17:38:53]URL: /json_proto [17:38:53]Method is POST - this is cgi request [17:38:53]url: /json_proto [17:38:53]query_string will be loaded in cgi processing [17:38:53]execute_cgi json_proto POST (null) [17:38:53]execute_cgi path=json_proto method=POST [17:38:53]POST find Content-Length [17:38:53]Host: 172.17.38.4:8080 [17:38:53]Content-Length: 800 [17:38:53]Content-Type: application/json [17:38:53] [17:38:53]POST finish read [17:38:53]Found Content-Length = 800 [17:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:53]execute_script... [17:38: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)979869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:53]POST & json_proto [17:38:53]process_json_proto [17:38:53]json parsed OK: [17:38:53]protocol is kg_v1.0 [17:38:53]action value=close_receipt [17:38:53]process_action close_receipt [17:38:53]cmd_close_receipt [17:38:53]MH_GetDate [17:38:53]Write to MH i2c: F0 00 00 A7 26 BC [17:38:53]Write i2c OK [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: F0 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: F0 09 00 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: F0 09 00 A7 26 00 2F 51 5F 66 CC 51 87 64 12 [17:38:53]GetLastDocTimeStamp 1717522607 [17:38:53]current date 1717522735 [17:38:53]FM_GetShiftState [17:38:53]SAM_PROTO_GetShiftState [17:38:53]wFMCommunicate request_size=4 [17:38:53]MH_SAM_APDU [17:38:53]CAPDU: 80 13 01 00 [17:38:53]Write to MH i2c: E2 08 00 A8 26 80 13 01 00 00 00 00 00 4B [17:38:53]Write i2c OK [17:38:53]MH_I2C_Read... [17:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:53]Read from MH i2c: E2 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 0E 00 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 0E 00 A8 26 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0E [17:38:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:38:53]wFMCommunicate OK [17:38:53]SAM_PROTO_GetShiftState done [17:38:53]FM_GetShiftState done [17:38:53]opened in 1717460629 [17:38:53]opened+sec_in_day 1717547029 [17:38:53]quantity*price = 50041 [17:38:53]sum+1 = 50042 [17:38:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 277 04.06.2024 17:38 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148938 ФПД: 90506643104791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T173855&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148938&fm=90506643104791&tin=02508201610067®Number=0000000000092720&sum=50041 [17:38:55]StoreToDocumentArchive [17:38:55]shift 368 fd 148938 [17:38:55]save to /storage/0368/doc_00148938 [17:38:55]save last doc name /storage/0368/doc_00148938 to /storage/kkm_last_doc_name [17:38:55]save OK [17:38:55]Clear old archive folders... [17:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:55]tlvbuf is 004B7DB0 [17:38:55]SAM_PROTO_ClearQueue [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 09 00 00 [17:38:55]Write to MH i2c: E2 08 00 B5 26 80 09 00 00 00 00 00 00 4D [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 B5 26 00 90 00 4F [17:38:55]RAPDU: 90 00 [17:38:55]wFMCommunicate OK [17:38:55]SAM_PROTO_ClearQueue done [17:38:55]KKMCreateOFDPacket [17:38:55]OFDProtocolAddRootSTLVToBuf [17:38:55]FM_MakeSignedData [17:38:55]FM_MakeSignedData [17:38:55]SAM_PROTO_SignData [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 0D 01 02 [17:38:55]Write to MH i2c: E2 08 00 B6 26 80 0D 01 02 00 00 00 00 55 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 B6 26 00 90 00 50 [17:38:55]RAPDU: 90 00 [17:38:55]wFMCommunicate OK [17:38:55]wFMCommunicate request_size=255 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 15 01 00 00 F4 03 04 00 2F 51 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CA 45 02 00 35 04 06 00 52 [17:38:55]Write to MH i2c: E2 02 01 B7 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2F 51 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CA 45 02 00 35 04 06 00 52 00 00 60 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 B7 26 00 90 00 51 [17:38:55]RAPDU: 90 00 [17:38:55]wFMCommunicate OK [17:38:55]wFMCommunicate request_size=10 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 0D 02 02 05 50 B8 4F E4 17 [17:38:55]Write to MH i2c: E2 0D 00 B8 26 80 0D 02 02 05 00 50 B8 4F E4 17 00 00 B4 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 B8 26 00 90 00 52 [17:38:55]RAPDU: 90 00 [17:38:55]wFMCommunicate OK [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 0D 03 02 [17:38:55]Write to MH i2c: E2 08 00 B9 26 80 0D 03 02 00 00 00 00 5A [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 0B 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 0B 00 B9 26 00 79 D3 0E 2D 28 94 6E 78 90 00 84 [17:38:55]RAPDU: 79 D3 0E 2D 28 94 6E 78 90 00 [17:38:55]wFMCommunicate OK [17:38:55]SAM_PROTO_SignData done [17:38:55]FM_MakeSignedData done [17:38:55]CreateOFDProtocolMessage [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 11 00 00 [17:38:55]Write to MH i2c: E2 08 00 BA 26 80 11 00 00 00 00 00 00 5A [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 17 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 17 00 BA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AD [17:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:38:55]wFMCommunicate OK [17:38:55]CreateOFDProtocolMessage done [17:38:55]OFDSenderStorePacket 148938 [17:38:55]StoreOFDPacket docnum=148938 [17:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 45 AF 07 01 71 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2F 51 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CA 45 02 00 35 04 06 00 52 50 B8 4F E4 17 79 D3 0E 2D 28 94 6E 78 [17:38:55]CheckFolder [17:38:55]dirname=/storage/ofd_packets [17:38:55]CheckFolder done [17:38:55]ProducePacketName [17:38:55]name=ofd_packets/00148938 [17:38:55]NVStorageSaveData ofd_packets/00148938 [17:38:55]File name is /storage/ofd_packets/00148938 [17:38:55]Write 301 bytes [17:38:55]NVStorageSaveData done [17:38:55]OFDSenderStorePacket done [17:38:55]KKMCreateOFDPacket done [17:38:55]NVStorageSaveData kkm_last_timestamp [17:38:55]File name is /storage/kkm_last_timestamp [17:38:55]Write 4 bytes [17:38:55]NVStorageSaveData done [17:38:55]ExternCall_PrintAddStr [17:38:55]wPrintStart [17:38:55]Write to MH i2c: 01 00 00 BB 26 E1 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 07 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 07 00 BB 26 00 00 00 00 00 FF 0F F6 [17:38:55]RasterBufferAndPrint [17:38:55]line Счет N : (1)979869 [17:38:55]line ИНН: 02508201610067 [17:38:55]line Контрольно-Кассовый Чек [17:38:55]line ПРОДАЖА [17:38:55]line ТРК (МРК, ГНК) : 22 [17:38:55]line Товар: 2710124130 [17:38:55]line Аи-92-К-5 [17:38:55]line 7.480 * 66.90 [17:38:55]line = 500.41 [17:38:55]line НДС 12% НСП 1% [17:38:55]line > о реализуемом товаре [17:38:55]line ИТОГО: 500.41 [17:38:55]line НСП 1% : 4.43 [17:38:55]line НДС 12% : 53.14 [17:38:55]line Наличными: 0.00 [17:38:55]line Безнал.: 500.41 [17:38:55]line Место: АЗС № 68 "Партнер Нефть" [17:38:55]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:38:55]line СНО: Общий режим [17:38:55]line Чек 277 04.06.2024 17:38 [17:38:55]line Смена: 368 ФФД: 1.0 [17:38:55]line ЗНМ: 0300000035 [17:38:55]line РНМ: 0000000000092720 [17:38:55]line Версия ККМ: 001 [17:38:55]line Платежная система: O! деньги [17:38:55]line ФМ: 0000000000875057 [17:38:55]line ФД: 148938 [17:38:55]line ФПД: 90506643104791 [17:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T173855&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148938&fm=90506643104791&tin=02508201610067®Number=0000000000092720&sum=50041 [17:38:55]OFD Sender: Processing packet 148938 [packets to send 100, broken 99] [17:38:55]ProducePacketName [17:38:55]name=ofd_packets/00148938 [17:38:55]OFD Sender: To server: pG, [17:38:55]CommunicateWithHost lk.salyk.kg:30040 [17:38:55]ConnectInit lk.salyk.kg [17:38:55]written 0, free lines is 4095 [17:38:55]Connected sock=10 [17:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 45 AF 07 01 71 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2F 51 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CA 45 02 00 35 04 06 00 52 50 B8 4F E4 17 79 D3 0E 2D 28 94 6E 78 [17:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 FA 9B 47 00 12 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CA 45 02 00 F4 03 04 00 53 F8 5E 66 B6 04 01 00 00 75 B6 1C 73 B7 2B A3 0C [17:38:56]CommunicateWithHost err = 0 [17:38:56]CheckOFDResponse [17:38:56]1017 (14) - 77093643461234 [17:38:56]1041 (16) - 0000000000875057 [17:38:56]1040 (4) - 148938 [17:38:56]1012 (4) - 04.06.2024 11:19 [17:38:56]1206 (1) - 0 [17:38:56]OFD Sender: Remove packet 148938 [17:38:56]ProducePacketName [17:38:56]name=ofd_packets/00148938 [17:38:56]NVStorageDeleteData [17:38:56]Write to MH i2c: 01 00 00 E5 26 0B [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: 01 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: 01 07 00 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: 01 07 00 E5 26 00 00 00 00 00 89 0C A7 [17:38:56]RasterBufferAndPrint [17:38:56]line [17:38:56]line [17:38:56]line [17:38:56]line [17:38:56]line [17:38:56]written 0, free lines is 3213 [17:38:56]MH_Cut [17:38:56]Write to MH i2c: D1 01 00 EC 26 01 E4 [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: D1 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: D1 01 00 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: D1 01 00 EC 26 00 E3 [17:38:56]Write to MH i2c: 01 00 00 ED 26 13 [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:56]OFD Sender: No OFD packet to send [17:38:57]*** Cut start [17:38:57]*** Partial cut [17:38:57]*** CUTSNS_PIN = 1 [17:38:57]*** CUTSNS_PIN = 0 [17:38:57]*** Brake cut motor [17:38:58]Read from MH i2c: 01 [17:38:58]MH_I2C_Read... [17:38:58]*** Stop cut motor [17:38:58]*** Cut end [17:38:58]Read from MH i2c: 01 07 00 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: 01 07 00 ED 26 00 00 00 00 00 FF 0F 28 [17:38:58]process_action close_receipt done [17:38:58]requested_data is exist [17:38:58]produce_requested_data [17:38:58]requested_item fm.sn is exist - process it [17:38:58]wFMCommunicate request_size=4 [17:38:58]MH_SAM_APDU [17:38:58]CAPDU: 80 11 00 00 [17:38:58]Write to MH i2c: E2 08 00 EE 26 80 11 00 00 00 00 00 00 8E [17:38:58]Write i2c OK [17:38:58]MH_I2C_Read... [17:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:58]Read from MH i2c: E2 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 17 00 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 17 00 EE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E1 [17:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:38:58]wFMCommunicate OK [17:38:58]requested_item fd.num is exist - process it [17:38:58]SAM_PROTO_GetFieldsCounters [17:38:58]wFMCommunicate request_size=4 [17:38:58]MH_SAM_APDU [17:38:58]CAPDU: 80 13 00 00 [17:38:58]Write to MH i2c: E2 08 00 EF 26 80 13 00 00 00 00 00 00 91 [17:38:58]Write i2c OK [17:38:58]MH_I2C_Read... [17:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:58]Read from MH i2c: E2 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 62 00 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 62 00 EF 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CA 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [17:38:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CA 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:58]wFMCommunicate OK [17:38:58]SAM_PROTO_GetFieldsCounters done [17:38:58]requested_item shift.num is exist - process it [17:38:58]requested_item shift.opened is exist - process it [17:38:58]req_shift_opened [17:38:58]FM_GetShiftState [17:38:58]SAM_PROTO_GetShiftState [17:38:58]wFMCommunicate request_size=4 [17:38:58]MH_SAM_APDU [17:38:58]CAPDU: 80 13 01 00 [17:38:58]Write to MH i2c: E2 08 00 F0 26 80 13 01 00 00 00 00 00 93 [17:38:58]Write i2c OK [17:38:58]MH_I2C_Read... [17:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:58]Read from MH i2c: E2 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 0E 00 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 0E 00 F0 26 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 56 [17:38:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:38:58]wFMCommunicate OK [17:38:58]SAM_PROTO_GetShiftState done [17:38:58]FM_GetShiftState done [17:38:58]req_shift_opened done [17:38:58]requested_item shift.open_date is exist - process it [17:38:58]req_shift_open_date [17:38:58]req_shift_open_date done [17:38:58]produce_requested_data done [17:38:58]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148938,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:38:58]process_action_free close_receipt [17:38:58]json_value_free [17:38:58]json_value_free done [17:38:58]process_json_proto returns [17:38:58]Send response to host [17:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148938,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:38:58]free response buf [17:38:58]execute_script done [17:38:58]execute_script returns [17:38:58]free content buf [17:38:58]Sock 7.Close socket [17:38:58]Sock 7.Thread stoped [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:10]accept exits with 9 [17:41:10]New connection [17:41:10]New thread 3067407716 created [17:41:10]Thread 3067264356 joined [17:41:10]Waiting for new connection... [17:41:10] Sock 9.Parse request [17:41:10]Sock 9.Check first char [17:41:10]Sock 9.First char is OK [17:41:10]request: POST /json_proto HTTP/1.0 [17:41:10]Method: POST [17:41:10]URL: /json_proto [17:41:10]Method is POST - this is cgi request [17:41:10]url: /json_proto [17:41:10]query_string will be loaded in cgi processing [17:41:10]execute_cgi json_proto POST (null) [17:41:10]execute_cgi path=json_proto method=POST [17:41:10]POST find Content-Length [17:41:10]Host: 172.17.38.4:8080 [17:41:10]Content-Length: 677 [17:41:10]Content-Type: application/json [17:41:10] [17:41:10]POST finish read [17:41:10]Found Content-Length = 677 [17:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 4.060, "sum" : 300.03, "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:41:10]execute_script... [17:41: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)979870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 4.060, "sum" : 300.03, "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:41:10]POST & json_proto [17:41:10]process_json_proto [17:41:10]json parsed OK: [17:41:10]protocol is kg_v1.0 [17:41:10]action value=close_receipt [17:41:10]process_action close_receipt [17:41:10]cmd_close_receipt [17:41:10]MH_GetDate [17:41:10]Write to MH i2c: F0 00 00 F1 26 06 [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: F0 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: F0 09 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: F0 09 00 F1 26 00 B8 51 5F 66 CC 51 87 64 E5 [17:41:10]GetLastDocTimeStamp 1717522735 [17:41:10]current date 1717522872 [17:41:10]FM_GetShiftState [17:41:10]SAM_PROTO_GetShiftState [17:41:10]wFMCommunicate request_size=4 [17:41:10]MH_SAM_APDU [17:41:10]CAPDU: 80 13 01 00 [17:41:10]Write to MH i2c: E2 08 00 F2 26 80 13 01 00 00 00 00 00 95 [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:10]Read from MH i2c: E2 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 0E 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: E2 0E 00 F2 26 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 58 [17:41:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:41:10]wFMCommunicate OK [17:41:10]SAM_PROTO_GetShiftState done [17:41:10]FM_GetShiftState done [17:41:10]opened in 1717460629 [17:41:10]opened+sec_in_day 1717547029 [17:41:10]quantity*price = 30003 [17:41:10]sum+1 = 30004 [17:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 278 04.06.2024 17:41 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148939 ФПД: 104187885026020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T174112&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148939&fm=104187885026020&tin=02508201610067®Number=0000000000092720&sum=30000 [17:41:11]StoreToDocumentArchive [17:41:11]shift 368 fd 148939 [17:41:11]save to /storage/0368/doc_00148939 [17:41:11]save last doc name /storage/0368/doc_00148939 to /storage/kkm_last_doc_name [17:41:11]save OK [17:41:11]Clear old archive folders... [17:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:11]tlvbuf is B6FC7550 [17:41:11]SAM_PROTO_ClearQueue [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 09 00 00 [17:41:11]Write to MH i2c: E2 08 00 FF 26 80 09 00 00 00 00 00 00 97 [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:11]Read from MH i2c: E2 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 03 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 03 00 FF 26 00 90 00 99 [17:41:11]RAPDU: 90 00 [17:41:11]wFMCommunicate OK [17:41:11]SAM_PROTO_ClearQueue done [17:41:11]KKMCreateOFDPacket [17:41:11]OFDProtocolAddRootSTLVToBuf [17:41:11]FM_MakeSignedData [17:41:11]FM_MakeSignedData [17:41:11]SAM_PROTO_SignData [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 0D 01 02 [17:41:11]Write to MH i2c: E2 08 00 00 27 80 0D 01 02 00 00 00 00 A0 [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:12]Read from MH i2c: E2 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 03 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 03 00 00 27 00 90 00 9B [17:41:12]RAPDU: 90 00 [17:41:12]wFMCommunicate OK [17:41:12]wFMCommunicate request_size=255 [17:41:12]MH_SAM_APDU [17:41:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 16 01 00 00 F4 03 04 00 B8 51 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CB 45 02 00 35 04 06 00 5E [17:41:12]Write to MH i2c: E2 02 01 01 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 16 01 00 00 F4 03 04 00 B8 51 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CB 45 02 00 35 04 06 00 5E 00 00 CE [17:41:12]Write i2c OK [17:41:12]MH_I2C_Read... [17:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:12]Read from MH i2c: E2 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 03 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 03 00 01 27 00 90 00 9C [17:41:12]RAPDU: 90 00 [17:41:12]wFMCommunicate OK [17:41:12]wFMCommunicate request_size=10 [17:41:12]MH_SAM_APDU [17:41:12]CAPDU: 80 0D 02 02 05 C2 21 E0 7A E4 [17:41:12]Write to MH i2c: E2 0D 00 02 27 80 0D 02 02 05 00 C2 21 E0 7A E4 00 00 CE [17:41:12]Write i2c OK [17:41:12]MH_I2C_Read... [17:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:12]Read from MH i2c: E2 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 03 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 03 00 02 27 00 90 00 9D [17:41:12]RAPDU: 90 00 [17:41:12]wFMCommunicate OK [17:41:12]wFMCommunicate request_size=4 [17:41:12]MH_SAM_APDU [17:41:12]CAPDU: 80 0D 03 02 [17:41:12]Write to MH i2c: E2 08 00 03 27 80 0D 03 02 00 00 00 00 A5 [17:41:12]Write i2c OK [17:41:12]MH_I2C_Read... [17:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:12]Read from MH i2c: E2 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 0B 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 0B 00 03 27 00 45 7B E8 11 0B DE D5 3B 90 00 58 [17:41:12]RAPDU: 45 7B E8 11 0B DE D5 3B 90 00 [17:41:12]wFMCommunicate OK [17:41:12]SAM_PROTO_SignData done [17:41:12]FM_MakeSignedData done [17:41:12]CreateOFDProtocolMessage [17:41:12]wFMCommunicate request_size=4 [17:41:12]MH_SAM_APDU [17:41:12]CAPDU: 80 11 00 00 [17:41:12]Write to MH i2c: E2 08 00 04 27 80 11 00 00 00 00 00 00 A5 [17:41:12]Write i2c OK [17:41:12]MH_I2C_Read... [17:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:12]Read from MH i2c: E2 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 17 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 17 00 04 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F8 [17:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:41:12]wFMCommunicate OK [17:41:12]CreateOFDProtocolMessage done [17:41:12]OFDSenderStorePacket 148939 [17:41:12]StoreOFDPacket docnum=148939 [17:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 57 99 07 01 4C E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 16 01 00 00 F4 03 04 00 B8 51 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CB 45 02 00 35 04 06 00 5E C2 21 E0 7A E4 45 7B E8 11 0B DE D5 3B [17:41:12]CheckFolder [17:41:12]dirname=/storage/ofd_packets [17:41:12]CheckFolder done [17:41:12]ProducePacketName [17:41:12]name=ofd_packets/00148939 [17:41:12]NVStorageSaveData ofd_packets/00148939 [17:41:12]File name is /storage/ofd_packets/00148939 [17:41:12]Write 301 bytes [17:41:12]NVStorageSaveData done [17:41:12]OFDSenderStorePacket done [17:41:12]KKMCreateOFDPacket done [17:41:12]NVStorageSaveData kkm_last_timestamp [17:41:12]File name is /storage/kkm_last_timestamp [17:41:12]Write 4 bytes [17:41:12]NVStorageSaveData done [17:41:12]ExternCall_PrintAddStr [17:41:12]wPrintStart [17:41:12]Write to MH i2c: 01 00 00 05 27 2C [17:41:12]Write i2c OK [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: 01 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: 01 07 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: 01 07 00 05 27 00 00 00 00 00 FF 0F 41 [17:41:12]RasterBufferAndPrint [17:41:12]line Счет N : (1)979870 [17:41:12]line ИНН: 02508201610067 [17:41:12]line Контрольно-Кассовый Чек [17:41:12]line ПРОДАЖА [17:41:12]line ТРК (МРК, ГНК) : 23 [17:41:12]line Товар: 2710124500 [17:41:12]line Аи-95-К-5 [17:41:12]line 4.060 * 73.90 [17:41:12]line = 300.03 [17:41:12]line НДС 12% НСП 1% [17:41:12]line > о реализуемом товаре [17:41:12]line ОКРУГЛЕНИЕ: -0.03 [17:41:12]line ИТОГО: 300.00 [17:41:12]line Внесено: 300.00 [17:41:12]line СДАЧА: 0.00 [17:41:12]line НСП 1% : 2.65 [17:41:12]line НДС 12% : 31.86 [17:41:12]line Наличными: 300.00 [17:41:12]line Безнал.: 0.00 [17:41:12]line Место: АЗС № 68 "Партнер Нефть" [17:41:12]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:41:12]line СНО: Общий режим [17:41:12]line Чек 278 04.06.2024 17:41 [17:41:12]line Смена: 368 ФФД: 1.0 [17:41:12]line ЗНМ: 0300000035 [17:41:12]line РНМ: 0000000000092720 [17:41:12]line Версия ККМ: 001 [17:41:12]line ФМ: 0000000000875057 [17:41:12]line ФД: 148939 [17:41:12]line ФПД: 104187885026020 [17:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T174112&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148939&fm=104187885026020&tin=02508201610067®Number=0000000000092720&sum=30000 [17:41:12]OFD Sender: Processing packet 148939 [packets to send 100, broken 99] [17:41:12]ProducePacketName [17:41:12]name=ofd_packets/00148939 [17:41:12]OFD Sender: To server: pG, [17:41:12]CommunicateWithHost lk.salyk.kg:30040 [17:41:12]ConnectInit lk.salyk.kg [17:41:12]written 0, free lines is 4095 [17:41:12]Connected sock=10 [17:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 57 99 07 01 4C E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 16 01 00 00 F4 03 04 00 B8 51 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CB 45 02 00 35 04 06 00 5E C2 21 E0 7A E4 45 7B E8 11 0B DE D5 3B [17:41:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 2E D9 47 00 26 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 38 37 35 30 35 37 10 04 04 00 CB 45 02 00 F4 03 04 00 DB F8 5E 66 B6 04 01 00 00 27 F3 95 0B B3 1D 7D 2A [17:41:13]CommunicateWithHost err = 0 [17:41:13]CheckOFDResponse [17:41:13]1017 (14) - 77093643461234 [17:41:13]1041 (16) - 0000000000875057 [17:41:13]1040 (4) - 148939 [17:41:13]1012 (4) - 04.06.2024 11:22 [17:41:13]1206 (1) - 0 [17:41:13]OFD Sender: Remove packet 148939 [17:41:13]ProducePacketName [17:41:13]name=ofd_packets/00148939 [17:41:13]NVStorageDeleteData [17:41:13]Write to MH i2c: 01 00 00 30 27 57 [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: 01 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: 01 07 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: 01 07 00 30 27 00 00 00 00 00 74 0C DE [17:41:13]RasterBufferAndPrint [17:41:13]line [17:41:13]line [17:41:13]line [17:41:13]line [17:41:13]line [17:41:13]written 0, free lines is 3191 [17:41:13]MH_Cut [17:41:13]Write to MH i2c: D1 01 00 37 27 01 30 [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: D1 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: D1 01 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: D1 01 00 37 27 00 2F [17:41:13]Write to MH i2c: 01 00 00 38 27 5F [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]OFD Sender: No OFD packet to send [17:41:14]*** Cut start [17:41:14]*** Partial cut [17:41:14]*** CUTSNS_PIN = 1 [17:41:14]*** CUTSNS_PIN = 0 [17:41:14]*** Brake cut motor [17:41:15]Read from MH i2c: 01 [17:41:15]MH_I2C_Read... [17:41:15]*** Stop cut motor [17:41:15]*** Cut end [17:41:15]Read from MH i2c: 01 07 00 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: 01 07 00 38 27 00 00 00 00 00 FF 0F 74 [17:41:15]process_action close_receipt done [17:41:15]requested_data is exist [17:41:15]produce_requested_data [17:41:15]requested_item fm.sn is exist - process it [17:41:15]wFMCommunicate request_size=4 [17:41:15]MH_SAM_APDU [17:41:15]CAPDU: 80 11 00 00 [17:41:15]Write to MH i2c: E2 08 00 39 27 80 11 00 00 00 00 00 00 DA [17:41:15]Write i2c OK [17:41:15]MH_I2C_Read... [17:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:15]Read from MH i2c: E2 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: E2 17 00 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: E2 17 00 39 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2D [17:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:41:15]wFMCommunicate OK [17:41:15]requested_item fd.num is exist - process it [17:41:15]SAM_PROTO_GetFieldsCounters [17:41:15]wFMCommunicate request_size=4 [17:41:15]MH_SAM_APDU [17:41:15]CAPDU: 80 13 00 00 [17:41:15]Write to MH i2c: E2 08 00 3A 27 80 13 00 00 00 00 00 00 DD [17:41:15]Write i2c OK [17:41:15]MH_I2C_Read... [17:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:15]Read from MH i2c: E2 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: E2 62 00 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: E2 62 00 3A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CB 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [17:41:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CB 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:15]wFMCommunicate OK [17:41:15]SAM_PROTO_GetFieldsCounters done [17:41:15]requested_item shift.num is exist - process it [17:41:15]requested_item shift.opened is exist - process it [17:41:15]req_shift_opened [17:41:15]FM_GetShiftState [17:41:15]SAM_PROTO_GetShiftState [17:41:15]wFMCommunicate request_size=4 [17:41:15]MH_SAM_APDU [17:41:15]CAPDU: 80 13 01 00 [17:41:15]Write to MH i2c: E2 08 00 3B 27 80 13 01 00 00 00 00 00 DF [17:41:15]Write i2c OK [17:41:15]MH_I2C_Read... [17:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:15]Read from MH i2c: E2 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: E2 0E 00 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: E2 0E 00 3B 27 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A2 [17:41:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:41:15]wFMCommunicate OK [17:41:15]SAM_PROTO_GetShiftState done [17:41:15]FM_GetShiftState done [17:41:15]req_shift_opened done [17:41:15]requested_item shift.open_date is exist - process it [17:41:15]req_shift_open_date [17:41:15]req_shift_open_date done [17:41:15]produce_requested_data done [17:41:15]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148939,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:41:15]process_action_free close_receipt [17:41:15]json_value_free [17:41:15]json_value_free done [17:41:15]process_json_proto returns [17:41:15]Send response to host [17:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148939,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:41:15]free response buf [17:41:15]execute_script done [17:41:15]execute_script returns [17:41:15]free content buf [17:41:15]Sock 9.Close socket [17:41:15]Sock 9.Thread stoped [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:06]accept exits with 7 [17:46:06]New connection [17:46:06]New thread 3067264356 created [17:46:06]Thread 3067407716 joined [17:46:06]Waiting for new connection... [17:46:06] Sock 7.Parse request [17:46:06]Sock 7.Check first char [17:46:06]Sock 7.First char is OK [17:46:06]request: POST /json_proto HTTP/1.0 [17:46:06]Method: POST [17:46:06]URL: /json_proto [17:46:06]Method is POST - this is cgi request [17:46:06]url: /json_proto [17:46:06]query_string will be loaded in cgi processing [17:46:06]execute_cgi json_proto POST (null) [17:46:06]execute_cgi path=json_proto method=POST [17:46:06]POST find Content-Length [17:46:06]Host: 172.17.38.4:8080 [17:46:06]Content-Length: 983 [17:46:06]Content-Type: application/json [17:46:06] [17:46:06]POST finish read [17:46:06]Found Content-Length = 983 [17:46:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:06]execute_script... [17: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)979871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:06]POST & json_proto [17:46:06]process_json_proto [17:46:06]json parsed OK: [17:46:06]protocol is kg_v1.0 [17:46:06]action value=close_receipt [17:46:06]process_action close_receipt [17:46:06]cmd_close_receipt [17:46:06]MH_GetDate [17:46:06]Write to MH i2c: F0 00 00 3C 27 52 [17:46:06]Write i2c OK [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: F0 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: F0 09 00 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: F0 09 00 3C 27 00 E0 52 5F 66 CC 51 87 64 5A [17:46:06]GetLastDocTimeStamp 1717522872 [17:46:06]current date 1717523168 [17:46:06]FM_GetShiftState [17:46:06]SAM_PROTO_GetShiftState [17:46:06]wFMCommunicate request_size=4 [17:46:06]MH_SAM_APDU [17:46:06]CAPDU: 80 13 01 00 [17:46:06]Write to MH i2c: E2 08 00 3D 27 80 13 01 00 00 00 00 00 E1 [17:46:06]Write i2c OK [17:46:06]MH_I2C_Read... [17:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:06]Read from MH i2c: E2 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 0E 00 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 0E 00 3D 27 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A4 [17:46:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:46:06]wFMCommunicate OK [17:46:06]SAM_PROTO_GetShiftState done [17:46:06]FM_GetShiftState done [17:46:06]opened in 1717460629 [17:46:06]opened+sec_in_day 1717547029 [17:46:06]quantity*price = 150054 [17:46:06]sum+1 = 150055 [17:46:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 279 04.06.2024 17:46 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа АИ-92 номер 68 сэкономлено 22.77 сом ФМ: 0000000000875057 ФД: 148940 ФПД: 228103143832488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T174608&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148940&fm=228103143832488&tin=02508201610067®Number=0000000000092720&sum=150000 [17:46:07]StoreToDocumentArchive [17:46:07]shift 368 fd 148940 [17:46:07]save to /storage/0368/doc_00148940 [17:46:07]save last doc name /storage/0368/doc_00148940 to /storage/kkm_last_doc_name [17:46:07]save OK [17:46:07]Clear old archive folders... [17:46:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:07]tlvbuf is 0055F1D0 [17:46:07]SAM_PROTO_ClearQueue [17:46:07]wFMCommunicate request_size=4 [17:46:07]MH_SAM_APDU [17:46:07]CAPDU: 80 09 00 00 [17:46:07]Write to MH i2c: E2 08 00 4A 27 80 09 00 00 00 00 00 00 E3 [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:07]Read from MH i2c: E2 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 4A 27 00 90 00 E5 [17:46:07]RAPDU: 90 00 [17:46:07]wFMCommunicate OK [17:46:07]SAM_PROTO_ClearQueue done [17:46:07]KKMCreateOFDPacket [17:46:07]OFDProtocolAddRootSTLVToBuf [17:46:07]FM_MakeSignedData [17:46:07]FM_MakeSignedData [17:46:07]SAM_PROTO_SignData [17:46:07]wFMCommunicate request_size=4 [17:46:07]MH_SAM_APDU [17:46:07]CAPDU: 80 0D 01 02 [17:46:07]Write to MH i2c: E2 08 00 4B 27 80 0D 01 02 00 00 00 00 EB [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:07]Read from MH i2c: E2 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 4B 27 00 90 00 E6 [17:46:07]RAPDU: 90 00 [17:46:07]wFMCommunicate OK [17:46:07]wFMCommunicate request_size=255 [17:46:07]MH_SAM_APDU [17:46:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 17 01 00 00 F4 03 04 00 E0 52 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CC 45 02 00 35 04 06 00 CF [17:46:07]Write to MH i2c: E2 02 01 4C 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 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 17 01 00 00 F4 03 04 00 E0 52 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CC 45 02 00 35 04 06 00 CF 00 00 0D [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:08]Read from MH i2c: E2 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 03 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 03 00 4C 27 00 90 00 E7 [17:46:08]RAPDU: 90 00 [17:46:08]wFMCommunicate OK [17:46:08]wFMCommunicate request_size=10 [17:46:08]MH_SAM_APDU [17:46:08]CAPDU: 80 0D 02 02 05 75 66 DC 3B A8 [17:46:08]Write to MH i2c: E2 0D 00 4D 27 80 0D 02 02 05 00 75 66 DC 3B A8 00 00 92 [17:46:08]Write i2c OK [17:46:08]MH_I2C_Read... [17:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:08]Read from MH i2c: E2 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 03 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 03 00 4D 27 00 90 00 E8 [17:46:08]RAPDU: 90 00 [17:46:08]wFMCommunicate OK [17:46:08]wFMCommunicate request_size=4 [17:46:08]MH_SAM_APDU [17:46:08]CAPDU: 80 0D 03 02 [17:46:08]Write to MH i2c: E2 08 00 4E 27 80 0D 03 02 00 00 00 00 F0 [17:46:08]Write i2c OK [17:46:08]MH_I2C_Read... [17:46:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:08]Read from MH i2c: E2 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 0B 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 0B 00 4E 27 00 A0 45 F7 B7 CD B5 12 05 90 00 1D [17:46:08]RAPDU: A0 45 F7 B7 CD B5 12 05 90 00 [17:46:08]wFMCommunicate OK [17:46:08]SAM_PROTO_SignData done [17:46:08]FM_MakeSignedData done [17:46:08]CreateOFDProtocolMessage [17:46:08]wFMCommunicate request_size=4 [17:46:08]MH_SAM_APDU [17:46:08]CAPDU: 80 11 00 00 [17:46:08]Write to MH i2c: E2 08 00 4F 27 80 11 00 00 00 00 00 00 F0 [17:46:08]Write i2c OK [17:46:08]MH_I2C_Read... [17:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:08]Read from MH i2c: E2 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 17 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: E2 17 00 4F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 43 [17:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:46:08]wFMCommunicate OK [17:46:08]CreateOFDProtocolMessage done [17:46:08]OFDSenderStorePacket 148940 [17:46:08]StoreOFDPacket docnum=148940 [17:46:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 90 7C 07 01 E0 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 17 01 00 00 F4 03 04 00 E0 52 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CC 45 02 00 35 04 06 00 CF 75 66 DC 3B A8 A0 45 F7 B7 CD B5 12 05 [17:46:08]CheckFolder [17:46:08]dirname=/storage/ofd_packets [17:46:08]CheckFolder done [17:46:08]ProducePacketName [17:46:08]name=ofd_packets/00148940 [17:46:08]NVStorageSaveData ofd_packets/00148940 [17:46:08]File name is /storage/ofd_packets/00148940 [17:46:08]Write 301 bytes [17:46:08]NVStorageSaveData done [17:46:08]OFDSenderStorePacket done [17:46:08]KKMCreateOFDPacket done [17:46:08]NVStorageSaveData kkm_last_timestamp [17:46:08]File name is /storage/kkm_last_timestamp [17:46:08]Write 4 bytes [17:46:08]NVStorageSaveData done [17:46:08]ExternCall_PrintAddStr [17:46:08]wPrintStart [17:46:08]Write to MH i2c: 01 00 00 50 27 77 [17:46:08]Write i2c OK [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: 01 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: 01 07 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: 01 07 00 50 27 00 00 00 00 00 FF 0F 8C [17:46:08]RasterBufferAndPrint [17:46:08]line Счет N : (1)979871 [17:46:08]line ИНН: 02508201610067 [17:46:08]line Контрольно-Кассовый Чек [17:46:08]line ПРОДАЖА [17:46:08]line ТРК (МРК, ГНК) : 12 [17:46:08]line Товар: 2710124130 [17:46:08]line Аи-92-К-5 [17:46:08]line 22.770 * 65.90 [17:46:08]line = 1500.54 [17:46:08]line НДС 12% НСП 1% [17:46:08]line > о реализуемом товаре [17:46:08]line ОКРУГЛЕНИЕ: -0.54 [17:46:08]line ИТОГО: 1500.00 [17:46:08]line Внесено: 1500.00 [17:46:08]line СДАЧА: 0.00 [17:46:08]line НСП 1% : 13.28 [17:46:08]line НДС 12% : 159.35 [17:46:08]line Наличными: 1500.00 [17:46:08]line Безнал.: 0.00 [17:46:08]line Место: АЗС № 68 "Партнер Нефть" [17:46:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:46:08]line СНО: Общий режим [17:46:08]line Чек 279 04.06.2024 17:46 [17:46:08]line Смена: 368 ФФД: 1.0 [17:46:08]line ЗНМ: 0300000035 [17:46:08]line РНМ: 0000000000092720 [17:46:08]line Версия ККМ: 001 [17:46:08]line [17:46:08]line Дисконтная программа [17:46:08]line АИ-92 [17:46:08]line номер 68 [17:46:08]line сэкономлено 22.77 сом [17:46:08]line ФМ: 0000000000875057 [17:46:08]line ФД: 148940 [17:46:08]line ФПД: 228103143832488 [17:46:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T174608&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148940&fm=228103143832488&tin=02508201610067®Number=0000000000092720&sum=150000 [17:46:08]OFD Sender: Processing packet 148940 [packets to send 100, broken 99] [17:46:08]ProducePacketName [17:46:08]name=ofd_packets/00148940 [17:46:08]OFD Sender: To server: pG, [17:46:08]CommunicateWithHost lk.salyk.kg:30040 [17:46:08]ConnectInit lk.salyk.kg [17:46:08]written 0, free lines is 4095 [17:46:08]Connected sock=10 [17:46:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 90 7C 07 01 E0 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 17 01 00 00 F4 03 04 00 E0 52 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CC 45 02 00 35 04 06 00 CF 75 66 DC 3B A8 A0 45 F7 B7 CD B5 12 05 [17:46:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A6 E9 47 00 18 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CC 45 02 00 F4 03 04 00 03 FA 5E 66 B6 04 01 00 00 20 57 B7 BF 7F A2 3E 09 [17:46:08]CommunicateWithHost err = 0 [17:46:08]CheckOFDResponse [17:46:08]1017 (14) - 77093643461234 [17:46:08]1041 (16) - 0000000000875057 [17:46:08]1040 (4) - 148940 [17:46:08]1012 (4) - 04.06.2024 11:26 [17:46:08]1206 (1) - 0 [17:46:08]OFD Sender: Remove packet 148940 [17:46:08]ProducePacketName [17:46:08]name=ofd_packets/00148940 [17:46:08]NVStorageDeleteData [17:46:09]Write to MH i2c: 01 00 00 80 27 A7 [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: 01 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: 01 07 00 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: 01 07 00 80 27 00 00 00 00 00 FB 0B B4 [17:46:09]RasterBufferAndPrint [17:46:09]line [17:46:09]line [17:46:09]line [17:46:09]line [17:46:09]line [17:46:09]written 0, free lines is 3070 [17:46:09]MH_Cut [17:46:09]Write to MH i2c: D1 01 00 87 27 01 80 [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: D1 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: D1 01 00 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: D1 01 00 87 27 00 7F [17:46:09]Write to MH i2c: 01 00 00 88 27 AF [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:09]OFD Sender: No OFD packet to send [17:46:10]*** Cut start [17:46:10]*** Partial cut [17:46:10]*** CUTSNS_PIN = 1 [17:46:10]*** CUTSNS_PIN = 0 [17:46:10]*** Brake cut motor [17:46:11]Read from MH i2c: 01 [17:46:11]MH_I2C_Read... [17:46:11]*** Stop cut motor [17:46:11]*** Cut end [17:46:11]Read from MH i2c: 01 07 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 07 00 88 27 00 00 00 00 00 FF 0F C4 [17:46:11]process_action close_receipt done [17:46:11]requested_data is exist [17:46:11]produce_requested_data [17:46:11]requested_item fm.sn is exist - process it [17:46:11]wFMCommunicate request_size=4 [17:46:11]MH_SAM_APDU [17:46:11]CAPDU: 80 11 00 00 [17:46:11]Write to MH i2c: E2 08 00 89 27 80 11 00 00 00 00 00 00 2A [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:11]Read from MH i2c: E2 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 17 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 17 00 89 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7D [17:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:46:11]wFMCommunicate OK [17:46:11]requested_item fd.num is exist - process it [17:46:11]SAM_PROTO_GetFieldsCounters [17:46:11]wFMCommunicate request_size=4 [17:46:11]MH_SAM_APDU [17:46:11]CAPDU: 80 13 00 00 [17:46:11]Write to MH i2c: E2 08 00 8A 27 80 13 00 00 00 00 00 00 2D [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:11]Read from MH i2c: E2 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 62 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 62 00 8A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [17:46:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:11]wFMCommunicate OK [17:46:11]SAM_PROTO_GetFieldsCounters done [17:46:11]requested_item shift.num is exist - process it [17:46:11]requested_item shift.opened is exist - process it [17:46:11]req_shift_opened [17:46:11]FM_GetShiftState [17:46:11]SAM_PROTO_GetShiftState [17:46:11]wFMCommunicate request_size=4 [17:46:11]MH_SAM_APDU [17:46:11]CAPDU: 80 13 01 00 [17:46:11]Write to MH i2c: E2 08 00 8B 27 80 13 01 00 00 00 00 00 2F [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:11]Read from MH i2c: E2 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 0E 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 0E 00 8B 27 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F2 [17:46:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:46:11]wFMCommunicate OK [17:46:11]SAM_PROTO_GetShiftState done [17:46:11]FM_GetShiftState done [17:46:11]req_shift_opened done [17:46:11]requested_item shift.open_date is exist - process it [17:46:11]req_shift_open_date [17:46:11]req_shift_open_date done [17:46:11]produce_requested_data done [17:46:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148940,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:46:11]process_action_free close_receipt [17:46:11]json_value_free [17:46:11]json_value_free done [17:46:11]process_json_proto returns [17:46:11]Send response to host [17:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148940,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:46:11]free response buf [17:46:11]execute_script done [17:46:11]execute_script returns [17:46:11]free content buf [17:46:11]Sock 7.Close socket [17:46:11]Sock 7.Thread stoped [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]accept exits with 9 [17:48:29]New connection [17:48:29]New thread 3067407716 created [17:48:29]Thread 3067264356 joined [17:48:29]Waiting for new connection... [17:48:29] Sock 9.Parse request [17:48:29]Sock 9.Check first char [17:48:29]Sock 9.First char is OK [17:48:29]request: POST /json_proto HTTP/1.0 [17:48:29]Method: POST [17:48:29]URL: /json_proto [17:48:29]Method is POST - this is cgi request [17:48:29]url: /json_proto [17:48:29]query_string will be loaded in cgi processing [17:48:29]execute_cgi json_proto POST (null) [17:48:29]execute_cgi path=json_proto method=POST [17:48:29]POST find Content-Length [17:48:29]Host: 172.17.38.4:8080 [17:48:29]Content-Length: 803 [17:48:29]Content-Type: application/json [17:48:29] [17:48:29]POST finish read [17:48:29]Found Content-Length = 803 [17:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:29]execute_script... [17:48: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)979872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:29]POST & json_proto [17:48:29]process_json_proto [17:48:29]json parsed OK: [17:48:29]protocol is kg_v1.0 [17:48:29]action value=close_receipt [17:48:29]process_action close_receipt [17:48:29]cmd_close_receipt [17:48:29]MH_GetDate [17:48:29]Write to MH i2c: F0 00 00 8C 27 A2 [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: F0 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: F0 09 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: F0 09 00 8C 27 00 6F 53 5F 66 CC 51 87 64 3A [17:48:29]GetLastDocTimeStamp 1717523168 [17:48:29]current date 1717523311 [17:48:29]FM_GetShiftState [17:48:29]SAM_PROTO_GetShiftState [17:48:29]wFMCommunicate request_size=4 [17:48:29]MH_SAM_APDU [17:48:29]CAPDU: 80 13 01 00 [17:48:29]Write to MH i2c: E2 08 00 8D 27 80 13 01 00 00 00 00 00 31 [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:29]Read from MH i2c: E2 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: E2 0E 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: E2 0E 00 8D 27 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F4 [17:48:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:48:29]wFMCommunicate OK [17:48:29]SAM_PROTO_GetShiftState done [17:48:29]FM_GetShiftState done [17:48:29]opened in 1717460629 [17:48:29]opened+sec_in_day 1717547029 [17:48:29]quantity*price = 200031 [17:48:29]sum+1 = 200032 [17:48:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 280 04.06.2024 17:48 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148941 ФПД: 250049785014275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T174831&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148941&fm=250049785014275&tin=02508201610067®Number=0000000000092720&sum=200031 [17:48:30]StoreToDocumentArchive [17:48:30]shift 368 fd 148941 [17:48:30]save to /storage/0368/doc_00148941 [17:48:30]save last doc name /storage/0368/doc_00148941 to /storage/kkm_last_doc_name [17:48:30]save OK [17:48:30]Clear old archive folders... [17:48:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:30]tlvbuf is B6FC4140 [17:48:30]SAM_PROTO_ClearQueue [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 09 00 00 [17:48:30]Write to MH i2c: E2 08 00 9A 27 80 09 00 00 00 00 00 00 33 [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 03 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 03 00 9A 27 00 90 00 35 [17:48:30]RAPDU: 90 00 [17:48:30]wFMCommunicate OK [17:48:30]SAM_PROTO_ClearQueue done [17:48:30]KKMCreateOFDPacket [17:48:30]OFDProtocolAddRootSTLVToBuf [17:48:30]FM_MakeSignedData [17:48:30]FM_MakeSignedData [17:48:30]SAM_PROTO_SignData [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 0D 01 02 [17:48:30]Write to MH i2c: E2 08 00 9B 27 80 0D 01 02 00 00 00 00 3B [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 03 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 03 00 9B 27 00 90 00 36 [17:48:30]RAPDU: 90 00 [17:48:30]wFMCommunicate OK [17:48:30]wFMCommunicate request_size=255 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6F 53 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CD 45 02 00 35 04 06 00 E3 [17:48:30]Write to MH i2c: E2 02 01 9C 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 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6F 53 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CD 45 02 00 35 04 06 00 E3 00 00 4D [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 03 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 03 00 9C 27 00 90 00 37 [17:48:30]RAPDU: 90 00 [17:48:30]wFMCommunicate OK [17:48:30]wFMCommunicate request_size=10 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 0D 02 02 05 6B 40 9C A8 03 [17:48:30]Write to MH i2c: E2 0D 00 9D 27 80 0D 02 02 05 00 6B 40 9C A8 03 00 00 3A [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 03 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 03 00 9D 27 00 90 00 38 [17:48:30]RAPDU: 90 00 [17:48:30]wFMCommunicate OK [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 0D 03 02 [17:48:30]Write to MH i2c: E2 08 00 9E 27 80 0D 03 02 00 00 00 00 40 [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 0B 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 0B 00 9E 27 00 F8 8A B1 E7 43 D2 ED 92 90 00 EF [17:48:30]RAPDU: F8 8A B1 E7 43 D2 ED 92 90 00 [17:48:30]wFMCommunicate OK [17:48:30]SAM_PROTO_SignData done [17:48:30]FM_MakeSignedData done [17:48:30]CreateOFDProtocolMessage [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 11 00 00 [17:48:30]Write to MH i2c: E2 08 00 9F 27 80 11 00 00 00 00 00 00 40 [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 17 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 17 00 9F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 93 [17:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:48:30]wFMCommunicate OK [17:48:30]CreateOFDProtocolMessage done [17:48:30]OFDSenderStorePacket 148941 [17:48:30]StoreOFDPacket docnum=148941 [17:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 00 9D 07 01 C4 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6F 53 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CD 45 02 00 35 04 06 00 E3 6B 40 9C A8 03 F8 8A B1 E7 43 D2 ED 92 [17:48:30]CheckFolder [17:48:30]dirname=/storage/ofd_packets [17:48:30]CheckFolder done [17:48:30]ProducePacketName [17:48:30]name=ofd_packets/00148941 [17:48:30]NVStorageSaveData ofd_packets/00148941 [17:48:30]File name is /storage/ofd_packets/00148941 [17:48:30]Write 301 bytes [17:48:30]NVStorageSaveData done [17:48:30]OFDSenderStorePacket done [17:48:30]KKMCreateOFDPacket done [17:48:30]NVStorageSaveData kkm_last_timestamp [17:48:30]File name is /storage/kkm_last_timestamp [17:48:30]Write 4 bytes [17:48:30]NVStorageSaveData done [17:48:30]ExternCall_PrintAddStr [17:48:30]wPrintStart [17:48:30]Write to MH i2c: 01 00 00 A0 27 C7 [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: 01 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: 01 07 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: 01 07 00 A0 27 00 00 00 00 00 FF 0F DC [17:48:30]RasterBufferAndPrint [17:48:30]line Счет N : (1)979872 [17:48:30]line ИНН: 02508201610067 [17:48:30]line Контрольно-Кассовый Чек [17:48:30]line ПРОДАЖА [17:48:30]line ТРК (МРК, ГНК) : 31 [17:48:30]line Товар: 2710124130 [17:48:30]line Аи-92-К-5 [17:48:30]line 29.900 * 66.90 [17:48:30]line = 2000.31 [17:48:30]line НДС 12% НСП 1% [17:48:30]line > о реализуемом товаре [17:48:30]line ИТОГО: 2000.31 [17:48:30]line НСП 1% : 17.70 [17:48:30]line НДС 12% : 212.42 [17:48:30]line Наличными: 0.00 [17:48:30]line Безнал.: 2000.31 [17:48:30]line Место: АЗС № 68 "Партнер Нефть" [17:48:30]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [17:48:30]line СНО: Общий режим [17:48:30]line Чек 280 04.06.2024 17:48 [17:48:30]line Смена: 368 ФФД: 1.0 [17:48:30]line ЗНМ: 0300000035 [17:48:30]line РНМ: 0000000000092720 [17:48:30]line Версия ККМ: 001 [17:48:30]line Платежная система: O! деньги [17:48:30]line ФМ: 0000000000875057 [17:48:30]line ФД: 148941 [17:48:30]line ФПД: 250049785014275 [17:48:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T174831&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148941&fm=250049785014275&tin=02508201610067®Number=0000000000092720&sum=200031 [17:48:31]OFD Sender: Processing packet 148941 [packets to send 100, broken 99] [17:48:31]ProducePacketName [17:48:31]name=ofd_packets/00148941 [17:48:31]OFD Sender: To server: pG, [17:48:31]CommunicateWithHost lk.salyk.kg:30040 [17:48:31]ConnectInit lk.salyk.kg [17:48:31]written 0, free lines is 4095 [17:48:31]Connected sock=10 [17:48:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 00 9D 07 01 C4 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6F 53 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CD 45 02 00 35 04 06 00 E3 6B 40 9C A8 03 F8 8A B1 E7 43 D2 ED 92 [17:48:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E2 25 47 00 28 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CD 45 02 00 F4 03 04 00 92 FA 5E 66 B6 04 01 00 00 F1 FF A8 C3 84 70 84 91 [17:48:31]CommunicateWithHost err = 0 [17:48:31]CheckOFDResponse [17:48:31]1017 (14) - 77093643461234 [17:48:31]1041 (16) - 0000000000875057 [17:48:31]1040 (4) - 148941 [17:48:31]1012 (4) - 04.06.2024 11:29 [17:48:31]1206 (1) - 0 [17:48:31]OFD Sender: Remove packet 148941 [17:48:31]ProducePacketName [17:48:31]name=ofd_packets/00148941 [17:48:31]NVStorageDeleteData [17:48:31]Write to MH i2c: 01 00 00 CA 27 F1 [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: 01 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: 01 07 00 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: 01 07 00 CA 27 00 00 00 00 00 83 0C 87 [17:48:31]RasterBufferAndPrint [17:48:31]line [17:48:31]line [17:48:31]line [17:48:31]line [17:48:31]line [17:48:31]written 0, free lines is 3207 [17:48:31]MH_Cut [17:48:31]Write to MH i2c: D1 01 00 D1 27 01 CA [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: D1 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: D1 01 00 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: D1 01 00 D1 27 00 C9 [17:48:31]Write to MH i2c: 01 00 00 D2 27 F9 [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:32]OFD Sender: No OFD packet to send [17:48:32]*** Cut start [17:48:32]*** Partial cut [17:48:32]*** CUTSNS_PIN = 1 [17:48:32]*** CUTSNS_PIN = 0 [17:48:33]*** Brake cut motor [17:48:33]Read from MH i2c: 01 [17:48:33]MH_I2C_Read... [17:48:33]*** Stop cut motor [17:48:33]*** Cut end [17:48:33]Read from MH i2c: 01 07 00 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: 01 07 00 D2 27 00 00 00 00 00 FF 0F 0E [17:48:33]process_action close_receipt done [17:48:33]requested_data is exist [17:48:33]produce_requested_data [17:48:33]requested_item fm.sn is exist - process it [17:48:33]wFMCommunicate request_size=4 [17:48:33]MH_SAM_APDU [17:48:33]CAPDU: 80 11 00 00 [17:48:33]Write to MH i2c: E2 08 00 D3 27 80 11 00 00 00 00 00 00 74 [17:48:33]Write i2c OK [17:48:33]MH_I2C_Read... [17:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:33]Read from MH i2c: E2 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: E2 17 00 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: E2 17 00 D3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C7 [17:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [17:48:33]wFMCommunicate OK [17:48:33]requested_item fd.num is exist - process it [17:48:33]SAM_PROTO_GetFieldsCounters [17:48:33]wFMCommunicate request_size=4 [17:48:33]MH_SAM_APDU [17:48:33]CAPDU: 80 13 00 00 [17:48:33]Write to MH i2c: E2 08 00 D4 27 80 13 00 00 00 00 00 00 77 [17:48:33]Write i2c OK [17:48:33]MH_I2C_Read... [17:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:33]Read from MH i2c: E2 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: E2 62 00 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: E2 62 00 D4 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CD 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [17:48:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CD 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:33]wFMCommunicate OK [17:48:33]SAM_PROTO_GetFieldsCounters done [17:48:33]requested_item shift.num is exist - process it [17:48:33]requested_item shift.opened is exist - process it [17:48:33]req_shift_opened [17:48:33]FM_GetShiftState [17:48:33]SAM_PROTO_GetShiftState [17:48:33]wFMCommunicate request_size=4 [17:48:33]MH_SAM_APDU [17:48:33]CAPDU: 80 13 01 00 [17:48:33]Write to MH i2c: E2 08 00 D5 27 80 13 01 00 00 00 00 00 79 [17:48:33]Write i2c OK [17:48:33]MH_I2C_Read... [17:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:33]Read from MH i2c: E2 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: E2 0E 00 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: E2 0E 00 D5 27 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3C [17:48:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [17:48:33]wFMCommunicate OK [17:48:33]SAM_PROTO_GetShiftState done [17:48:33]FM_GetShiftState done [17:48:33]req_shift_opened done [17:48:33]requested_item shift.open_date is exist - process it [17:48:33]req_shift_open_date [17:48:33]req_shift_open_date done [17:48:33]produce_requested_data done [17:48:33]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148941,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [17:48:33]process_action_free close_receipt [17:48:33]json_value_free [17:48:33]json_value_free done [17:48:33]process_json_proto returns [17:48:33]Send response to host [17:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148941,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [17:48:33]free response buf [17:48:33]execute_script done [17:48:33]execute_script returns [17:48:33]free content buf [17:48:33]Sock 9.Close socket [17:48:33]Sock 9.Thread stoped [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:50]accept exits with 7 [18:01:50]New connection [18:01:50]New thread 3067264356 created [18:01:50]Thread 3067407716 joined [18:01:50]Waiting for new connection... [18:01:50] Sock 7.Parse request [18:01:50]Sock 7.Check first char [18:01:50]Sock 7.First char is OK [18:01:50]request: POST /json_proto HTTP/1.0 [18:01:50]Method: POST [18:01:50]URL: /json_proto [18:01:50]Method is POST - this is cgi request [18:01:50]url: /json_proto [18:01:50]query_string will be loaded in cgi processing [18:01:50]execute_cgi json_proto POST (null) [18:01:50]execute_cgi path=json_proto method=POST [18:01:50]POST find Content-Length [18:01:50]Host: 172.17.38.4:8080 [18:01:50]Content-Length: 674 [18:01:50]Content-Type: application/json [18:01:50] [18:01:50]POST finish read [18:01:50]Found Content-Length = 674 [18:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [18:01:50]execute_script... [18:01: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)979873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [18:01:50]POST & json_proto [18:01:50]process_json_proto [18:01:50]json parsed OK: [18:01:50]protocol is kg_v1.0 [18:01:50]action value=close_receipt [18:01:50]process_action close_receipt [18:01:50]cmd_close_receipt [18:01:50]MH_GetDate [18:01:50]Write to MH i2c: F0 00 00 D6 27 EC [18:01:50]Write i2c OK [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: F0 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: F0 09 00 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: F0 09 00 D6 27 00 90 56 5F 66 CC 51 87 64 A8 [18:01:50]GetLastDocTimeStamp 1717523311 [18:01:50]current date 1717524112 [18:01:50]FM_GetShiftState [18:01:50]SAM_PROTO_GetShiftState [18:01:50]wFMCommunicate request_size=4 [18:01:50]MH_SAM_APDU [18:01:50]CAPDU: 80 13 01 00 [18:01:50]Write to MH i2c: E2 08 00 D7 27 80 13 01 00 00 00 00 00 7B [18:01:50]Write i2c OK [18:01:50]MH_I2C_Read... [18:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:50]Read from MH i2c: E2 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: E2 0E 00 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: E2 0E 00 D7 27 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3E [18:01:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:01:50]wFMCommunicate OK [18:01:50]SAM_PROTO_GetShiftState done [18:01:50]FM_GetShiftState done [18:01:50]opened in 1717460629 [18:01:50]opened+sec_in_day 1717547029 [18:01:50]quantity*price = 50009 [18:01:50]sum+1 = 50010 [18:01:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 281 04.06.2024 18:01 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148942 ФПД: 147951835225942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T180152&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148942&fm=147951835225942&tin=02508201610067®Number=0000000000092720&sum=50000 [18:01:51]StoreToDocumentArchive [18:01:51]shift 368 fd 148942 [18:01:51]save to /storage/0368/doc_00148942 [18:01:51]save last doc name /storage/0368/doc_00148942 to /storage/kkm_last_doc_name [18:01:51]save OK [18:01:51]Clear old archive folders... [18:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:01:51]tlvbuf is 00510AA0 [18:01:51]SAM_PROTO_ClearQueue [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 09 00 00 [18:01:51]Write to MH i2c: E2 08 00 E4 27 80 09 00 00 00 00 00 00 7D [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 E4 27 00 90 00 7F [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]SAM_PROTO_ClearQueue done [18:01:51]KKMCreateOFDPacket [18:01:51]OFDProtocolAddRootSTLVToBuf [18:01:51]FM_MakeSignedData [18:01:51]FM_MakeSignedData [18:01:51]SAM_PROTO_SignData [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 0D 01 02 [18:01:51]Write to MH i2c: E2 08 00 E5 27 80 0D 01 02 00 00 00 00 85 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 E5 27 00 90 00 80 [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]wFMCommunicate request_size=255 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 19 01 00 00 F4 03 04 00 90 56 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CE 45 02 00 35 04 06 00 86 8F B8 95 [18:01:51]Write to MH i2c: E2 02 01 E6 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 19 01 00 00 F4 03 04 00 90 56 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CE 45 02 00 35 04 06 00 86 8F B8 95 00 00 D7 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 E6 27 00 90 00 81 [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]wFMCommunicate request_size=7 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 0D 02 02 02 1F 56 [18:01:51]Write to MH i2c: E2 0A 00 E7 27 80 0D 02 02 02 00 1F 56 00 00 01 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 E7 27 00 90 00 82 [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 0D 03 02 [18:01:51]Write to MH i2c: E2 08 00 E8 27 80 0D 03 02 00 00 00 00 8A [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 0B 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 0B 00 E8 27 00 BC F4 A7 36 46 67 9F 52 90 00 B6 [18:01:51]RAPDU: BC F4 A7 36 46 67 9F 52 90 00 [18:01:51]wFMCommunicate OK [18:01:51]SAM_PROTO_SignData done [18:01:51]FM_MakeSignedData done [18:01:51]CreateOFDProtocolMessage [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 11 00 00 [18:01:51]Write to MH i2c: E2 08 00 E9 27 80 11 00 00 00 00 00 00 8A [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 17 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 17 00 E9 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DD [18:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:01:51]wFMCommunicate OK [18:01:51]CreateOFDProtocolMessage done [18:01:51]OFDSenderStorePacket 148942 [18:01:51]StoreOFDPacket docnum=148942 [18:01:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 C3 40 04 01 3A 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 19 01 00 00 F4 03 04 00 90 56 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CE 45 02 00 35 04 06 00 86 8F B8 95 1F 56 BC F4 A7 36 46 67 9F 52 [18:01:51]CheckFolder [18:01:51]dirname=/storage/ofd_packets [18:01:51]CheckFolder done [18:01:51]ProducePacketName [18:01:51]name=ofd_packets/00148942 [18:01:51]NVStorageSaveData ofd_packets/00148942 [18:01:51]File name is /storage/ofd_packets/00148942 [18:01:51]Write 298 bytes [18:01:51]NVStorageSaveData done [18:01:51]OFDSenderStorePacket done [18:01:51]KKMCreateOFDPacket done [18:01:51]NVStorageSaveData kkm_last_timestamp [18:01:51]File name is /storage/kkm_last_timestamp [18:01:51]Write 4 bytes [18:01:51]NVStorageSaveData done [18:01:51]ExternCall_PrintAddStr [18:01:51]wPrintStart [18:01:51]Write to MH i2c: 01 00 00 EA 27 11 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: 01 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: 01 07 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: 01 07 00 EA 27 00 00 00 00 00 FF 0F 26 [18:01:51]RasterBufferAndPrint [18:01:51]line Счет N : (1)979873 [18:01:51]line ИНН: 02508201610067 [18:01:51]line Контрольно-Кассовый Чек [18:01:51]line ПРОДАЖА [18:01:51]line ТРК (МРК, ГНК) : 11 [18:01:51]line Товар: 2710194210 [18:01:51]line ДТ-К-5 [18:01:51]line 6.860 * 72.90 [18:01:51]line = 500.09 [18:01:51]line НДС 12% НСП 1% [18:01:51]line > о реализуемом товаре [18:01:51]line ОКРУГЛЕНИЕ: -0.09 [18:01:51]line ИТОГО: 500.00 [18:01:51]line Внесено: 500.00 [18:01:51]line СДАЧА: 0.00 [18:01:51]line НСП 1% : 4.43 [18:01:51]line НДС 12% : 53.11 [18:01:51]line Наличными: 500.00 [18:01:51]line Безнал.: 0.00 [18:01:51]line Место: АЗС № 68 "Партнер Нефть" [18:01:51]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:01:51]line СНО: Общий режим [18:01:51]line Чек 281 04.06.2024 18:01 [18:01:51]line Смена: 368 ФФД: 1.0 [18:01:51]line ЗНМ: 0300000035 [18:01:51]line РНМ: 0000000000092720 [18:01:51]line Версия ККМ: 001 [18:01:51]line ФМ: 0000000000875057 [18:01:51]line ФД: 148942 [18:01:51]line ФПД: 147951835225942 [18:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T180152&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148942&fm=147951835225942&tin=02508201610067®Number=0000000000092720&sum=50000 [18:01:52]OFD Sender: Processing packet 148942 [packets to send 100, broken 99] [18:01:52]ProducePacketName [18:01:52]name=ofd_packets/00148942 [18:01:52]OFD Sender: To server: pG, [18:01:52]CommunicateWithHost lk.salyk.kg:30040 [18:01:52]ConnectInit lk.salyk.kg [18:01:52]written 0, free lines is 4095 [18:01:52]Connected sock=10 [18:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 C3 40 04 01 3A 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 19 01 00 00 F4 03 04 00 90 56 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CE 45 02 00 35 04 06 00 86 8F B8 95 1F 56 BC F4 A7 36 46 67 9F 52 [18:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 FF A2 47 00 B6 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CE 45 02 00 F4 03 04 00 B3 FD 5E 66 B6 04 01 00 00 33 24 A9 99 34 AF BA EF [18:01:52]CommunicateWithHost err = 0 [18:01:52]CheckOFDResponse [18:01:52]1017 (14) - 77093643461234 [18:01:52]1041 (16) - 0000000000875057 [18:01:52]1040 (4) - 148942 [18:01:52]1012 (4) - 04.06.2024 11:42 [18:01:52]1206 (1) - 0 [18:01:52]OFD Sender: Remove packet 148942 [18:01:52]ProducePacketName [18:01:52]name=ofd_packets/00148942 [18:01:52]NVStorageDeleteData [18:01:52]Write to MH i2c: 01 00 00 15 28 3D [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 07 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 07 00 15 28 00 00 00 00 00 72 0C C2 [18:01:52]RasterBufferAndPrint [18:01:52]line [18:01:52]line [18:01:52]line [18:01:52]line [18:01:52]line [18:01:52]written 0, free lines is 3188 [18:01:52]MH_Cut [18:01:52]Write to MH i2c: D1 01 00 1C 28 01 16 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: D1 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: D1 01 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: D1 01 00 1C 28 00 15 [18:01:52]Write to MH i2c: 01 00 00 1D 28 45 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:53]OFD Sender: No OFD packet to send [18:01:53]*** Cut start [18:01:53]*** Partial cut [18:01:53]*** CUTSNS_PIN = 1 [18:01:53]*** CUTSNS_PIN = 0 [18:01:54]*** Brake cut motor [18:01:54]Read from MH i2c: 01 [18:01:54]MH_I2C_Read... [18:01:54]*** Stop cut motor [18:01:54]*** Cut end [18:01:54]Read from MH i2c: 01 07 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 1D 28 00 00 00 00 00 FF 0F 5A [18:01:54]process_action close_receipt done [18:01:54]requested_data is exist [18:01:54]produce_requested_data [18:01:54]requested_item fm.sn is exist - process it [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 11 00 00 [18:01:54]Write to MH i2c: E2 08 00 1E 28 80 11 00 00 00 00 00 00 C0 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 1E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 13 [18:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:01:54]wFMCommunicate OK [18:01:54]requested_item fd.num is exist - process it [18:01:54]SAM_PROTO_GetFieldsCounters [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 13 00 00 [18:01:54]Write to MH i2c: E2 08 00 1F 28 80 13 00 00 00 00 00 00 C3 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 62 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 62 00 1F 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [18:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_GetFieldsCounters done [18:01:54]requested_item shift.num is exist - process it [18:01:54]requested_item shift.opened is exist - process it [18:01:54]req_shift_opened [18:01:54]FM_GetShiftState [18:01:54]SAM_PROTO_GetShiftState [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 13 01 00 [18:01:54]Write to MH i2c: E2 08 00 20 28 80 13 01 00 00 00 00 00 C5 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0E 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0E 00 20 28 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 88 [18:01:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_GetShiftState done [18:01:54]FM_GetShiftState done [18:01:54]req_shift_opened done [18:01:54]requested_item shift.open_date is exist - process it [18:01:54]req_shift_open_date [18:01:54]req_shift_open_date done [18:01:54]produce_requested_data done [18:01:54]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148942,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:01:54]process_action_free close_receipt [18:01:54]json_value_free [18:01:54]json_value_free done [18:01:54]process_json_proto returns [18:01:54]Send response to host [18:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148942,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:01:54]free response buf [18:01:54]execute_script done [18:01:54]execute_script returns [18:01:54]free content buf [18:01:54]Sock 7.Close socket [18:01:54]Sock 7.Thread stoped [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]accept exits with 9 [18:06:33]New connection [18:06:33]New thread 3067407716 created [18:06:33]Thread 3067264356 joined [18:06:33]Waiting for new connection... [18:06:33] Sock 9.Parse request [18:06:33]Sock 9.Check first char [18:06:33]Sock 9.First char is OK [18:06:33]request: POST /json_proto HTTP/1.0 [18:06:33]Method: POST [18:06:33]URL: /json_proto [18:06:33]Method is POST - this is cgi request [18:06:33]url: /json_proto [18:06:33]query_string will be loaded in cgi processing [18:06:33]execute_cgi json_proto POST (null) [18:06:33]execute_cgi path=json_proto method=POST [18:06:33]POST find Content-Length [18:06:33]Host: 172.17.38.4:8080 [18:06:33]Content-Length: 678 [18:06:33]Content-Type: application/json [18:06:33] [18:06:33]POST finish read [18:06:33]Found Content-Length = 678 [18:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:33]execute_script... [18:06: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)979874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:33]POST & json_proto [18:06:33]process_json_proto [18:06:33]json parsed OK: [18:06:33]protocol is kg_v1.0 [18:06:33]action value=close_receipt [18:06:33]process_action close_receipt [18:06:33]cmd_close_receipt [18:06:33]MH_GetDate [18:06:33]Write to MH i2c: F0 00 00 21 28 38 [18:06:33]Write i2c OK [18:06:33]MH_I2C_Read... [18:06:33]Read from MH i2c: F0 [18:06:33]MH_I2C_Read... [18:06:33]Read from MH i2c: F0 09 00 [18:06:33]MH_I2C_Read... [18:06:33]Read from MH i2c: F0 09 00 21 28 00 AB 57 5F 66 CC 51 87 64 10 [18:06:33]GetLastDocTimeStamp 1717524112 [18:06:33]current date 1717524395 [18:06:33]FM_GetShiftState [18:06:33]SAM_PROTO_GetShiftState [18:06:33]wFMCommunicate request_size=4 [18:06:33]MH_SAM_APDU [18:06:33]CAPDU: 80 13 01 00 [18:06:33]Write to MH i2c: E2 08 00 22 28 80 13 01 00 00 00 00 00 C7 [18:06:33]Write i2c OK [18:06:33]MH_I2C_Read... [18:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:33]Read from MH i2c: E2 [18:06:33]MH_I2C_Read... [18:06:33]Read from MH i2c: E2 0E 00 [18:06:33]MH_I2C_Read... [18:06:33]Read from MH i2c: E2 0E 00 22 28 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8A [18:06:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:06:33]wFMCommunicate OK [18:06:33]SAM_PROTO_GetShiftState done [18:06:33]FM_GetShiftState done [18:06:33]opened in 1717460629 [18:06:33]opened+sec_in_day 1717547029 [18:06:33]quantity*price = 70044 [18:06:33]sum+1 = 70045 [18:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 282 04.06.2024 18:06 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148943 ФПД: 223527511966432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T180635&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148943&fm=223527511966432&tin=02508201610067®Number=0000000000092720&sum=70000 [18:06:34]StoreToDocumentArchive [18:06:34]shift 368 fd 148943 [18:06:34]save to /storage/0368/doc_00148943 [18:06:34]save last doc name /storage/0368/doc_00148943 to /storage/kkm_last_doc_name [18:06:34]save OK [18:06:34]Clear old archive folders... [18:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:34]tlvbuf is 004F0770 [18:06:34]SAM_PROTO_ClearQueue [18:06:34]wFMCommunicate request_size=4 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 09 00 00 [18:06:34]Write to MH i2c: E2 08 00 2F 28 80 09 00 00 00 00 00 00 C9 [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 2F 28 00 90 00 CB [18:06:34]RAPDU: 90 00 [18:06:34]wFMCommunicate OK [18:06:34]SAM_PROTO_ClearQueue done [18:06:34]KKMCreateOFDPacket [18:06:34]OFDProtocolAddRootSTLVToBuf [18:06:34]FM_MakeSignedData [18:06:34]FM_MakeSignedData [18:06:34]SAM_PROTO_SignData [18:06:34]wFMCommunicate request_size=4 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 0D 01 02 [18:06:34]Write to MH i2c: E2 08 00 30 28 80 0D 01 02 00 00 00 00 D1 [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 30 28 00 90 00 CC [18:06:34]RAPDU: 90 00 [18:06:34]wFMCommunicate OK [18:06:34]wFMCommunicate request_size=255 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 01 00 00 F4 03 04 00 AB 57 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CF 45 02 00 35 04 06 00 CB [18:06:34]Write to MH i2c: E2 02 01 31 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 AB 57 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CF 45 02 00 35 04 06 00 CB 00 00 9F [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:34]Read from MH i2c: E2 03 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 31 28 00 90 00 CD [18:06:34]RAPDU: 90 00 [18:06:34]wFMCommunicate OK [18:06:34]wFMCommunicate request_size=10 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 0D 02 02 05 4C 0D F2 C2 E0 [18:06:34]Write to MH i2c: E2 0D 00 32 28 80 0D 02 02 05 00 4C 0D F2 C2 E0 00 00 CB [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 03 00 32 28 00 90 00 CE [18:06:34]RAPDU: 90 00 [18:06:34]wFMCommunicate OK [18:06:34]wFMCommunicate request_size=4 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 0D 03 02 [18:06:34]Write to MH i2c: E2 08 00 33 28 80 0D 03 02 00 00 00 00 D6 [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 0B 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 0B 00 33 28 00 61 1B 80 3D A6 69 CD A7 90 00 93 [18:06:34]RAPDU: 61 1B 80 3D A6 69 CD A7 90 00 [18:06:34]wFMCommunicate OK [18:06:34]SAM_PROTO_SignData done [18:06:34]FM_MakeSignedData done [18:06:34]CreateOFDProtocolMessage [18:06:34]wFMCommunicate request_size=4 [18:06:34]MH_SAM_APDU [18:06:34]CAPDU: 80 11 00 00 [18:06:34]Write to MH i2c: E2 08 00 34 28 80 11 00 00 00 00 00 00 D6 [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:34]Read from MH i2c: E2 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 17 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: E2 17 00 34 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 29 [18:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:06:34]wFMCommunicate OK [18:06:34]CreateOFDProtocolMessage done [18:06:34]OFDSenderStorePacket 148943 [18:06:34]StoreOFDPacket docnum=148943 [18:06:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7D 2C 07 01 3F FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 AB 57 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CF 45 02 00 35 04 06 00 CB 4C 0D F2 C2 E0 61 1B 80 3D A6 69 CD A7 [18:06:34]CheckFolder [18:06:34]dirname=/storage/ofd_packets [18:06:34]CheckFolder done [18:06:34]ProducePacketName [18:06:34]name=ofd_packets/00148943 [18:06:34]NVStorageSaveData ofd_packets/00148943 [18:06:34]File name is /storage/ofd_packets/00148943 [18:06:34]Write 301 bytes [18:06:34]NVStorageSaveData done [18:06:34]OFDSenderStorePacket done [18:06:34]KKMCreateOFDPacket done [18:06:34]NVStorageSaveData kkm_last_timestamp [18:06:34]File name is /storage/kkm_last_timestamp [18:06:34]Write 4 bytes [18:06:34]NVStorageSaveData done [18:06:34]ExternCall_PrintAddStr [18:06:34]wPrintStart [18:06:34]Write to MH i2c: 01 00 00 35 28 5D [18:06:34]Write i2c OK [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: 01 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: 01 07 00 [18:06:34]MH_I2C_Read... [18:06:34]Read from MH i2c: 01 07 00 35 28 00 00 00 00 00 FF 0F 72 [18:06:34]RasterBufferAndPrint [18:06:34]line Счет N : (1)979874 [18:06:34]line ИНН: 02508201610067 [18:06:34]line Контрольно-Кассовый Чек [18:06:34]line ПРОДАЖА [18:06:34]line ТРК (МРК, ГНК) : 12 [18:06:34]line Товар: 2710124130 [18:06:34]line Аи-92-К-5 [18:06:34]line 10.470 * 66.90 [18:06:34]line = 700.44 [18:06:34]line НДС 12% НСП 1% [18:06:34]line > о реализуемом товаре [18:06:34]line ОКРУГЛЕНИЕ: -0.44 [18:06:34]line ИТОГО: 700.00 [18:06:34]line Внесено: 700.00 [18:06:34]line СДАЧА: 0.00 [18:06:34]line НСП 1% : 6.20 [18:06:34]line НДС 12% : 74.38 [18:06:34]line Наличными: 700.00 [18:06:34]line Безнал.: 0.00 [18:06:34]line Место: АЗС № 68 "Партнер Нефть" [18:06:34]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:06:34]line СНО: Общий режим [18:06:34]line Чек 282 04.06.2024 18:06 [18:06:34]line Смена: 368 ФФД: 1.0 [18:06:34]line ЗНМ: 0300000035 [18:06:34]line РНМ: 0000000000092720 [18:06:34]line Версия ККМ: 001 [18:06:34]line ФМ: 0000000000875057 [18:06:34]line ФД: 148943 [18:06:35]line ФПД: 223527511966432 [18:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T180635&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148943&fm=223527511966432&tin=02508201610067®Number=0000000000092720&sum=70000 [18:06:35]OFD Sender: Processing packet 148943 [packets to send 100, broken 99] [18:06:35]ProducePacketName [18:06:35]name=ofd_packets/00148943 [18:06:35]OFD Sender: To server: pG, [18:06:35]CommunicateWithHost lk.salyk.kg:30040 [18:06:35]ConnectInit lk.salyk.kg [18:06:35]written 0, free lines is 4095 [18:06:35]Connected sock=10 [18:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7D 2C 07 01 3F FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 AB 57 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CF 45 02 00 35 04 06 00 CB 4C 0D F2 C2 E0 61 1B 80 3D A6 69 CD A7 [18:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 EF D4 47 00 30 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 CF 45 02 00 F4 03 04 00 CE FE 5E 66 B6 04 01 00 00 07 A8 CD 27 36 83 E9 6A [18:06:35]CommunicateWithHost err = 0 [18:06:35]CheckOFDResponse [18:06:35]1017 (14) - 77093643461234 [18:06:35]1041 (16) - 0000000000875057 [18:06:35]1040 (4) - 148943 [18:06:35]1012 (4) - 04.06.2024 11:47 [18:06:35]1206 (1) - 0 [18:06:35]OFD Sender: Remove packet 148943 [18:06:35]ProducePacketName [18:06:35]name=ofd_packets/00148943 [18:06:35]NVStorageDeleteData [18:06:35]Write to MH i2c: 01 00 00 60 28 88 [18:06:35]Write i2c OK [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: 01 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: 01 07 00 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: 01 07 00 60 28 00 00 00 00 00 73 0C 0E [18:06:35]RasterBufferAndPrint [18:06:35]line [18:06:35]line [18:06:35]line [18:06:35]line [18:06:35]line [18:06:35]written 0, free lines is 3189 [18:06:35]MH_Cut [18:06:35]Write to MH i2c: D1 01 00 67 28 01 61 [18:06:35]Write i2c OK [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: D1 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: D1 01 00 [18:06:35]MH_I2C_Read... [18:06:35]Read from MH i2c: D1 01 00 67 28 00 60 [18:06:35]Write to MH i2c: 01 00 00 68 28 90 [18:06:35]Write i2c OK [18:06:35]MH_I2C_Read... [18:06:36]OFD Sender: No OFD packet to send [18:06:36]*** Cut start [18:06:36]*** Partial cut [18:06:36]*** CUTSNS_PIN = 1 [18:06:36]*** CUTSNS_PIN = 0 [18:06:37]*** Brake cut motor [18:06:37]Read from MH i2c: 01 [18:06:37]MH_I2C_Read... [18:06:37]*** Stop cut motor [18:06:37]*** Cut end [18:06:37]Read from MH i2c: 01 07 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: 01 07 00 68 28 00 00 00 00 00 FF 0F A5 [18:06:37]process_action close_receipt done [18:06:37]requested_data is exist [18:06:37]produce_requested_data [18:06:37]requested_item fm.sn is exist - process it [18:06:37]wFMCommunicate request_size=4 [18:06:37]MH_SAM_APDU [18:06:37]CAPDU: 80 11 00 00 [18:06:37]Write to MH i2c: E2 08 00 69 28 80 11 00 00 00 00 00 00 0B [18:06:37]Write i2c OK [18:06:37]MH_I2C_Read... [18:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:37]Read from MH i2c: E2 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 17 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 17 00 69 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5E [18:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:06:37]wFMCommunicate OK [18:06:37]requested_item fd.num is exist - process it [18:06:37]SAM_PROTO_GetFieldsCounters [18:06:37]wFMCommunicate request_size=4 [18:06:37]MH_SAM_APDU [18:06:37]CAPDU: 80 13 00 00 [18:06:37]Write to MH i2c: E2 08 00 6A 28 80 13 00 00 00 00 00 00 0E [18:06:37]Write i2c OK [18:06:37]MH_I2C_Read... [18:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:37]Read from MH i2c: E2 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 62 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 62 00 6A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [18:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 CF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:37]wFMCommunicate OK [18:06:37]SAM_PROTO_GetFieldsCounters done [18:06:37]requested_item shift.num is exist - process it [18:06:37]requested_item shift.opened is exist - process it [18:06:37]req_shift_opened [18:06:37]FM_GetShiftState [18:06:37]SAM_PROTO_GetShiftState [18:06:37]wFMCommunicate request_size=4 [18:06:37]MH_SAM_APDU [18:06:37]CAPDU: 80 13 01 00 [18:06:37]Write to MH i2c: E2 08 00 6B 28 80 13 01 00 00 00 00 00 10 [18:06:37]Write i2c OK [18:06:37]MH_I2C_Read... [18:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:37]Read from MH i2c: E2 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 0E 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 0E 00 6B 28 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D3 [18:06:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:06:37]wFMCommunicate OK [18:06:37]SAM_PROTO_GetShiftState done [18:06:37]FM_GetShiftState done [18:06:37]req_shift_opened done [18:06:37]requested_item shift.open_date is exist - process it [18:06:37]req_shift_open_date [18:06:37]req_shift_open_date done [18:06:37]produce_requested_data done [18:06:37]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148943,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:06:37]process_action_free close_receipt [18:06:37]json_value_free [18:06:37]json_value_free done [18:06:37]process_json_proto returns [18:06:37]Send response to host [18:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148943,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:06:37]free response buf [18:06:37]execute_script done [18:06:37]execute_script returns [18:06:37]free content buf [18:06:37]Sock 9.Close socket [18:06:37]Sock 9.Thread stoped [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:37]accept exits with 7 [18:08:37]New connection [18:08:37]New thread 3067264356 created [18:08:37]Thread 3067407716 joined [18:08:37]Waiting for new connection... [18:08:37] Sock 7.Parse request [18:08:37]Sock 7.Check first char [18:08:37]Sock 7.First char is OK [18:08:37]request: POST /json_proto HTTP/1.0 [18:08:37]Method: POST [18:08:37]URL: /json_proto [18:08:37]Method is POST - this is cgi request [18:08:37]url: /json_proto [18:08:37]query_string will be loaded in cgi processing [18:08:37]execute_cgi json_proto POST (null) [18:08:37]execute_cgi path=json_proto method=POST [18:08:37]POST find Content-Length [18:08:37]Host: 172.17.38.4:8080 [18:08:37]Content-Length: 677 [18:08:37]Content-Type: application/json [18:08:37] [18:08:37]POST finish read [18:08:37]Found Content-Length = 677 [18:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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:08:37]execute_script... [18:08:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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:08:37]POST & json_proto [18:08:37]process_json_proto [18:08:37]json parsed OK: [18:08:37]protocol is kg_v1.0 [18:08:37]action value=close_receipt [18:08:37]process_action close_receipt [18:08:37]cmd_close_receipt [18:08:37]MH_GetDate [18:08:37]Write to MH i2c: F0 00 00 6C 28 83 [18:08:37]Write i2c OK [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: F0 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: F0 09 00 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: F0 09 00 6C 28 00 27 58 5F 66 CC 51 87 64 D8 [18:08:37]GetLastDocTimeStamp 1717524395 [18:08:37]current date 1717524519 [18:08:37]FM_GetShiftState [18:08:37]SAM_PROTO_GetShiftState [18:08:37]wFMCommunicate request_size=4 [18:08:37]MH_SAM_APDU [18:08:37]CAPDU: 80 13 01 00 [18:08:37]Write to MH i2c: E2 08 00 6D 28 80 13 01 00 00 00 00 00 12 [18:08:37]Write i2c OK [18:08:37]MH_I2C_Read... [18:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:37]Read from MH i2c: E2 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: E2 0E 00 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: E2 0E 00 6D 28 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D5 [18:08:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:08:37]wFMCommunicate OK [18:08:37]SAM_PROTO_GetShiftState done [18:08:37]FM_GetShiftState done [18:08:37]opened in 1717460629 [18:08:37]opened+sec_in_day 1717547029 [18:08:37]quantity*price = 20003 [18:08:37]sum+1 = 20004 [18:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 283 04.06.2024 18:08 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148944 ФПД: 168091057170042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T180839&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148944&fm=168091057170042&tin=02508201610067®Number=0000000000092720&sum=20000 [18:08:38]StoreToDocumentArchive [18:08:38]shift 368 fd 148944 [18:08:38]save to /storage/0368/doc_00148944 [18:08:38]save last doc name /storage/0368/doc_00148944 to /storage/kkm_last_doc_name [18:08:38]save OK [18:08:38]Clear old archive folders... [18:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:38]tlvbuf is 005646C0 [18:08:38]SAM_PROTO_ClearQueue [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 09 00 00 [18:08:38]Write to MH i2c: E2 08 00 7A 28 80 09 00 00 00 00 00 00 14 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:39]Read from MH i2c: E2 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 03 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 03 00 7A 28 00 90 00 16 [18:08:39]RAPDU: 90 00 [18:08:39]wFMCommunicate OK [18:08:39]SAM_PROTO_ClearQueue done [18:08:39]KKMCreateOFDPacket [18:08:39]OFDProtocolAddRootSTLVToBuf [18:08:39]FM_MakeSignedData [18:08:39]FM_MakeSignedData [18:08:39]SAM_PROTO_SignData [18:08:39]wFMCommunicate request_size=4 [18:08:39]MH_SAM_APDU [18:08:39]CAPDU: 80 0D 01 02 [18:08:39]Write to MH i2c: E2 08 00 7B 28 80 0D 01 02 00 00 00 00 1C [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:39]Read from MH i2c: E2 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 03 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 03 00 7B 28 00 90 00 17 [18:08:39]RAPDU: 90 00 [18:08:39]wFMCommunicate OK [18:08:39]wFMCommunicate request_size=255 [18:08:39]MH_SAM_APDU [18:08:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 01 00 00 F4 03 04 00 27 58 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D0 45 02 00 35 04 06 00 98 [18:08:39]Write to MH i2c: E2 02 01 7C 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 27 58 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D0 45 02 00 35 04 06 00 98 00 00 E8 [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:39]Read from MH i2c: E2 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 03 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 03 00 7C 28 00 90 00 18 [18:08:39]RAPDU: 90 00 [18:08:39]wFMCommunicate OK [18:08:39]wFMCommunicate request_size=10 [18:08:39]MH_SAM_APDU [18:08:39]CAPDU: 80 0D 02 02 05 E0 BF C0 A6 7A [18:08:39]Write to MH i2c: E2 0D 00 7D 28 80 0D 02 02 05 00 E0 BF C0 A6 7A 00 00 A8 [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:39]Read from MH i2c: E2 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 03 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 03 00 7D 28 00 90 00 19 [18:08:39]RAPDU: 90 00 [18:08:39]wFMCommunicate OK [18:08:39]wFMCommunicate request_size=4 [18:08:39]MH_SAM_APDU [18:08:39]CAPDU: 80 0D 03 02 [18:08:39]Write to MH i2c: E2 08 00 7E 28 80 0D 03 02 00 00 00 00 21 [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:39]Read from MH i2c: E2 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 0B 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 0B 00 7E 28 00 9F 83 18 8E 66 16 96 18 90 00 14 [18:08:39]RAPDU: 9F 83 18 8E 66 16 96 18 90 00 [18:08:39]wFMCommunicate OK [18:08:39]SAM_PROTO_SignData done [18:08:39]FM_MakeSignedData done [18:08:39]CreateOFDProtocolMessage [18:08:39]wFMCommunicate request_size=4 [18:08:39]MH_SAM_APDU [18:08:39]CAPDU: 80 11 00 00 [18:08:39]Write to MH i2c: E2 08 00 7F 28 80 11 00 00 00 00 00 00 21 [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:39]Read from MH i2c: E2 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 17 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: E2 17 00 7F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 74 [18:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:08:39]wFMCommunicate OK [18:08:39]CreateOFDProtocolMessage done [18:08:39]OFDSenderStorePacket 148944 [18:08:39]StoreOFDPacket docnum=148944 [18:08:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 99 45 07 01 9E 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 01 00 00 F4 03 04 00 27 58 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D0 45 02 00 35 04 06 00 98 E0 BF C0 A6 7A 9F 83 18 8E 66 16 96 18 [18:08:39]CheckFolder [18:08:39]dirname=/storage/ofd_packets [18:08:39]CheckFolder done [18:08:39]ProducePacketName [18:08:39]name=ofd_packets/00148944 [18:08:39]NVStorageSaveData ofd_packets/00148944 [18:08:39]File name is /storage/ofd_packets/00148944 [18:08:39]Write 301 bytes [18:08:39]NVStorageSaveData done [18:08:39]OFDSenderStorePacket done [18:08:39]KKMCreateOFDPacket done [18:08:39]NVStorageSaveData kkm_last_timestamp [18:08:39]File name is /storage/kkm_last_timestamp [18:08:39]Write 4 bytes [18:08:39]NVStorageSaveData done [18:08:39]ExternCall_PrintAddStr [18:08:39]wPrintStart [18:08:39]Write to MH i2c: 01 00 00 80 28 A8 [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: 01 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: 01 07 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: 01 07 00 80 28 00 00 00 00 00 FF 0F BD [18:08:39]RasterBufferAndPrint [18:08:39]line Счет N : (1)979875 [18:08:39]line ИНН: 02508201610067 [18:08:39]line Контрольно-Кассовый Чек [18:08:39]line ПРОДАЖА [18:08:39]line ТРК (МРК, ГНК) : 22 [18:08:39]line Товар: 2710124130 [18:08:39]line Аи-92-К-5 [18:08:39]line 2.990 * 66.90 [18:08:39]line = 200.03 [18:08:39]line НДС 12% НСП 1% [18:08:39]line > о реализуемом товаре [18:08:39]line ОКРУГЛЕНИЕ: -0.03 [18:08:39]line ИТОГО: 200.00 [18:08:39]line Внесено: 200.00 [18:08:39]line СДАЧА: 0.00 [18:08:39]line НСП 1% : 1.77 [18:08:39]line НДС 12% : 21.24 [18:08:39]line Наличными: 200.00 [18:08:39]line Безнал.: 0.00 [18:08:39]line Место: АЗС № 68 "Партнер Нефть" [18:08:39]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:08:39]line СНО: Общий режим [18:08:39]line Чек 283 04.06.2024 18:08 [18:08:39]line Смена: 368 ФФД: 1.0 [18:08:39]line ЗНМ: 0300000035 [18:08:39]line РНМ: 0000000000092720 [18:08:39]line Версия ККМ: 001 [18:08:39]line ФМ: 0000000000875057 [18:08:39]line ФД: 148944 [18:08:39]line ФПД: 168091057170042 [18:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T180839&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148944&fm=168091057170042&tin=02508201610067®Number=0000000000092720&sum=20000 [18:08:39]OFD Sender: Processing packet 148944 [packets to send 100, broken 99] [18:08:39]ProducePacketName [18:08:39]name=ofd_packets/00148944 [18:08:39]OFD Sender: To server: pG, [18:08:39]CommunicateWithHost lk.salyk.kg:30040 [18:08:39]ConnectInit lk.salyk.kg [18:08:39]written 0, free lines is 4095 [18:08:39]Connected sock=10 [18:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 99 45 07 01 9E 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 01 00 00 F4 03 04 00 27 58 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D0 45 02 00 35 04 06 00 98 E0 BF C0 A6 7A 9F 83 18 8E 66 16 96 18 [18:08:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 86 00 47 00 08 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D0 45 02 00 F4 03 04 00 4B FF 5E 66 B6 04 01 00 00 5D 54 2F A8 84 68 F1 88 [18:08:40]CommunicateWithHost err = 0 [18:08:40]CheckOFDResponse [18:08:40]1017 (14) - 77093643461234 [18:08:40]1041 (16) - 0000000000875057 [18:08:40]1040 (4) - 148944 [18:08:40]1012 (4) - 04.06.2024 11:49 [18:08:40]1206 (1) - 0 [18:08:40]OFD Sender: Remove packet 148944 [18:08:40]ProducePacketName [18:08:40]name=ofd_packets/00148944 [18:08:40]NVStorageDeleteData [18:08:40]Write to MH i2c: 01 00 00 AB 28 D3 [18:08:40]Write i2c OK [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: 01 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: 01 07 00 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: 01 07 00 AB 28 00 00 00 00 00 73 0C 59 [18:08:40]RasterBufferAndPrint [18:08:40]line [18:08:40]line [18:08:40]line [18:08:40]line [18:08:40]line [18:08:40]written 0, free lines is 3190 [18:08:40]MH_Cut [18:08:40]Write to MH i2c: D1 01 00 B2 28 01 AC [18:08:40]Write i2c OK [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: D1 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: D1 01 00 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: D1 01 00 B2 28 00 AB [18:08:40]Write to MH i2c: 01 00 00 B3 28 DB [18:08:40]Write i2c OK [18:08:40]MH_I2C_Read... [18:08:40]OFD Sender: No OFD packet to send [18:08:41]*** Cut start [18:08:41]*** Partial cut [18:08:41]*** CUTSNS_PIN = 1 [18:08:41]*** CUTSNS_PIN = 0 [18:08:41]*** Brake cut motor [18:08:42]Read from MH i2c: 01 [18:08:42]MH_I2C_Read... [18:08:42]*** Stop cut motor [18:08:42]*** Cut end [18:08:42]Read from MH i2c: 01 07 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: 01 07 00 B3 28 00 00 00 00 00 FF 0F F0 [18:08:42]process_action close_receipt done [18:08:42]requested_data is exist [18:08:42]produce_requested_data [18:08:42]requested_item fm.sn is exist - process it [18:08:42]wFMCommunicate request_size=4 [18:08:42]MH_SAM_APDU [18:08:42]CAPDU: 80 11 00 00 [18:08:42]Write to MH i2c: E2 08 00 B4 28 80 11 00 00 00 00 00 00 56 [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:42]Read from MH i2c: E2 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 17 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 17 00 B4 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A9 [18:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:08:42]wFMCommunicate OK [18:08:42]requested_item fd.num is exist - process it [18:08:42]SAM_PROTO_GetFieldsCounters [18:08:42]wFMCommunicate request_size=4 [18:08:42]MH_SAM_APDU [18:08:42]CAPDU: 80 13 00 00 [18:08:42]Write to MH i2c: E2 08 00 B5 28 80 13 00 00 00 00 00 00 59 [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:42]Read from MH i2c: E2 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 62 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 62 00 B5 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D0 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [18:08:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D0 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:42]wFMCommunicate OK [18:08:42]SAM_PROTO_GetFieldsCounters done [18:08:42]requested_item shift.num is exist - process it [18:08:42]requested_item shift.opened is exist - process it [18:08:42]req_shift_opened [18:08:42]FM_GetShiftState [18:08:42]SAM_PROTO_GetShiftState [18:08:42]wFMCommunicate request_size=4 [18:08:42]MH_SAM_APDU [18:08:42]CAPDU: 80 13 01 00 [18:08:42]Write to MH i2c: E2 08 00 B6 28 80 13 01 00 00 00 00 00 5B [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:42]Read from MH i2c: E2 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 0E 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 0E 00 B6 28 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1E [18:08:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:08:42]wFMCommunicate OK [18:08:42]SAM_PROTO_GetShiftState done [18:08:42]FM_GetShiftState done [18:08:42]req_shift_opened done [18:08:42]requested_item shift.open_date is exist - process it [18:08:42]req_shift_open_date [18:08:42]req_shift_open_date done [18:08:42]produce_requested_data done [18:08:42]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148944,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:08:42]process_action_free close_receipt [18:08:42]json_value_free [18:08:42]json_value_free done [18:08:42]process_json_proto returns [18:08:42]Send response to host [18:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148944,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:08:42]free response buf [18:08:42]execute_script done [18:08:42]execute_script returns [18:08:42]free content buf [18:08:42]Sock 7.Close socket [18:08:42]Sock 7.Thread stoped [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:21]accept exits with 9 [18:10:21]New connection [18:10:21]New thread 3067407716 created [18:10:21]Thread 3067264356 joined [18:10:21]Waiting for new connection... [18:10:21] Sock 9.Parse request [18:10:21]Sock 9.Check first char [18:10:21]Sock 9.First char is OK [18:10:21]request: POST /json_proto HTTP/1.0 [18:10:21]Method: POST [18:10:21]URL: /json_proto [18:10:21]Method is POST - this is cgi request [18:10:21]url: /json_proto [18:10:21]query_string will be loaded in cgi processing [18:10:21]execute_cgi json_proto POST (null) [18:10:21]execute_cgi path=json_proto method=POST [18:10:21]POST find Content-Length [18:10:21]Host: 172.17.38.4:8080 [18:10:21]Content-Length: 670 [18:10:21]Content-Type: application/json [18:10:21] [18:10:21]POST finish read [18:10:21]Found Content-Length = 670 [18:10:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 3.690, "sum" : 250.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:21]execute_script... [18:10: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)979876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 3.690, "sum" : 250.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:21]POST & json_proto [18:10:21]process_json_proto [18:10:21]json parsed OK: [18:10:21]protocol is kg_v1.0 [18:10:21]action value=close_receipt [18:10:21]process_action close_receipt [18:10:21]cmd_close_receipt [18:10:21]MH_GetDate [18:10:21]Write to MH i2c: F0 00 00 B7 28 CE [18:10:21]Write i2c OK [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: F0 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: F0 09 00 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: F0 09 00 B7 28 00 8F 58 5F 66 CC 51 87 64 8B [18:10:21]GetLastDocTimeStamp 1717524519 [18:10:21]current date 1717524623 [18:10:21]FM_GetShiftState [18:10:21]SAM_PROTO_GetShiftState [18:10:21]wFMCommunicate request_size=4 [18:10:21]MH_SAM_APDU [18:10:21]CAPDU: 80 13 01 00 [18:10:21]Write to MH i2c: E2 08 00 B8 28 80 13 01 00 00 00 00 00 5D [18:10:21]Write i2c OK [18:10:21]MH_I2C_Read... [18:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:21]Read from MH i2c: E2 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: E2 0E 00 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: E2 0E 00 B8 28 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 20 [18:10:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:10:21]wFMCommunicate OK [18:10:21]SAM_PROTO_GetShiftState done [18:10:21]FM_GetShiftState done [18:10:21]opened in 1717460629 [18:10:21]opened+sec_in_day 1717547029 [18:10:21]quantity*price = 25055 [18:10:21]sum+1 = 25056 [18:10:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.61 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 284 04.06.2024 18:10 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148945 ФПД: 271684551449004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181023&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148945&fm=271684551449004&tin=02508201610067®Number=0000000000092720&sum=25000 [18:10:22]StoreToDocumentArchive [18:10:22]shift 368 fd 148945 [18:10:22]save to /storage/0368/doc_00148945 [18:10:22]save last doc name /storage/0368/doc_00148945 to /storage/kkm_last_doc_name [18:10:22]save OK [18:10:22]Clear old archive folders... [18:10:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:10:22]tlvbuf is 0047B0B0 [18:10:22]SAM_PROTO_ClearQueue [18:10:22]wFMCommunicate request_size=4 [18:10:22]MH_SAM_APDU [18:10:22]CAPDU: 80 09 00 00 [18:10:22]Write to MH i2c: E2 08 00 C5 28 80 09 00 00 00 00 00 00 5F [18:10:22]Write i2c OK [18:10:22]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:23]Read from MH i2c: E2 03 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 C5 28 00 90 00 61 [18:10:23]RAPDU: 90 00 [18:10:23]wFMCommunicate OK [18:10:23]SAM_PROTO_ClearQueue done [18:10:23]KKMCreateOFDPacket [18:10:23]OFDProtocolAddRootSTLVToBuf [18:10:23]FM_MakeSignedData [18:10:23]FM_MakeSignedData [18:10:23]SAM_PROTO_SignData [18:10:23]wFMCommunicate request_size=4 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 0D 01 02 [18:10:23]Write to MH i2c: E2 08 00 C6 28 80 0D 01 02 00 00 00 00 67 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 C6 28 00 90 00 62 [18:10:23]RAPDU: 90 00 [18:10:23]wFMCommunicate OK [18:10:23]wFMCommunicate request_size=255 [18:10:23]MH_SAM_APDU [18:10: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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 DF 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 8F 58 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D1 45 02 00 35 04 06 00 [18:10:23]Write to MH i2c: E2 02 01 C7 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 DF 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 8F 58 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D1 45 02 00 35 04 06 00 00 00 12 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 C7 28 00 90 00 63 [18:10:23]RAPDU: 90 00 [18:10:23]wFMCommunicate OK [18:10:23]wFMCommunicate request_size=11 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 0D 02 02 06 F7 18 7D 2E 19 AC [18:10:23]Write to MH i2c: E2 0E 00 C8 28 80 0D 02 02 06 00 F7 18 7D 2E 19 AC 00 00 F5 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 C8 28 00 90 00 64 [18:10:23]RAPDU: 90 00 [18:10:23]wFMCommunicate OK [18:10:23]wFMCommunicate request_size=4 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 0D 03 02 [18:10:23]Write to MH i2c: E2 08 00 C9 28 80 0D 03 02 00 00 00 00 6C [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 0B 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 0B 00 C9 28 00 8A A3 4B 6C 40 66 FF 7A 90 00 70 [18:10:23]RAPDU: 8A A3 4B 6C 40 66 FF 7A 90 00 [18:10:23]wFMCommunicate OK [18:10:23]SAM_PROTO_SignData done [18:10:23]FM_MakeSignedData done [18:10:23]CreateOFDProtocolMessage [18:10:23]wFMCommunicate request_size=4 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 11 00 00 [18:10:23]Write to MH i2c: E2 08 00 CA 28 80 11 00 00 00 00 00 00 6C [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 17 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 17 00 CA 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BF [18:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:10:23]wFMCommunicate OK [18:10:23]CreateOFDProtocolMessage done [18:10:23]OFDSenderStorePacket 148945 [18:10:23]StoreOFDPacket docnum=148945 [18:10:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 3D 9D 08 01 9F 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 DF 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 8F 58 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D1 45 02 00 35 04 06 00 F7 18 7D 2E 19 AC 8A A3 4B 6C 40 66 FF 7A [18:10:23]CheckFolder [18:10:23]dirname=/storage/ofd_packets [18:10:23]CheckFolder done [18:10:23]ProducePacketName [18:10:23]name=ofd_packets/00148945 [18:10:23]NVStorageSaveData ofd_packets/00148945 [18:10:23]File name is /storage/ofd_packets/00148945 [18:10:23]Write 302 bytes [18:10:23]NVStorageSaveData done [18:10:23]OFDSenderStorePacket done [18:10:23]KKMCreateOFDPacket done [18:10:23]NVStorageSaveData kkm_last_timestamp [18:10:23]File name is /storage/kkm_last_timestamp [18:10:23]Write 4 bytes [18:10:23]NVStorageSaveData done [18:10:23]ExternCall_PrintAddStr [18:10:23]wPrintStart [18:10:23]Write to MH i2c: 01 00 00 CB 28 F3 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: 01 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: 01 07 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: 01 07 00 CB 28 00 00 00 00 00 FF 0F 08 [18:10:23]RasterBufferAndPrint [18:10:23]line Счет N : (1)979876 [18:10:23]line ИНН: 02508201610067 [18:10:23]line Контрольно-Кассовый Чек [18:10:23]line ПРОДАЖА [18:10:23]line ТРК (МРК, ГНК) : 43 [18:10:23]line Товар: 2710124130 [18:10:23]line SUPER 92-К-5 [18:10:23]line 3.690 * 67.90 [18:10:23]line = 250.55 [18:10:23]line НДС 12% НСП 1% [18:10:23]line > о реализуемом товаре [18:10:23]line ОКРУГЛЕНИЕ: -0.55 [18:10:23]line ИТОГО: 250.00 [18:10:23]line Внесено: 250.00 [18:10:23]line СДАЧА: 0.00 [18:10:23]line НСП 1% : 2.22 [18:10:23]line НДС 12% : 26.61 [18:10:23]line Наличными: 250.00 [18:10:23]line Безнал.: 0.00 [18:10:23]line Место: АЗС № 68 "Партнер Нефть" [18:10:23]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:10:23]line СНО: Общий режим [18:10:23]line Чек 284 04.06.2024 18:10 [18:10:23]line Смена: 368 ФФД: 1.0 [18:10:23]line ЗНМ: 0300000035 [18:10:23]line РНМ: 0000000000092720 [18:10:23]line Версия ККМ: 001 [18:10:23]line ФМ: 0000000000875057 [18:10:23]line ФД: 148945 [18:10:23]line ФПД: 271684551449004 [18:10:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181023&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148945&fm=271684551449004&tin=02508201610067®Number=0000000000092720&sum=25000 [18:10:23]OFD Sender: Processing packet 148945 [packets to send 100, broken 99] [18:10:23]ProducePacketName [18:10:23]name=ofd_packets/00148945 [18:10:23]OFD Sender: To server: pG, [18:10:23]CommunicateWithHost lk.salyk.kg:30040 [18:10:23]ConnectInit lk.salyk.kg [18:10:23]written 0, free lines is 4095 [18:10:23]Connected sock=7 [18:10:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 3D 9D 08 01 9F 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 DF 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 8F 58 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D1 45 02 00 35 04 06 00 F7 18 7D 2E 19 AC 8A A3 4B 6C 40 66 FF 7A [18:10:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BB 76 47 00 D5 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 38 37 35 30 35 37 10 04 04 00 D1 45 02 00 F4 03 04 00 B3 FF 5E 66 B6 04 01 00 00 1B B5 B0 FF 13 99 AD A6 [18:10:24]CommunicateWithHost err = 0 [18:10:24]CheckOFDResponse [18:10:24]1017 (14) - 77093643461234 [18:10:24]1041 (16) - 0000000000875057 [18:10:24]1040 (4) - 148945 [18:10:24]1012 (4) - 04.06.2024 11:51 [18:10:24]1206 (1) - 0 [18:10:24]OFD Sender: Remove packet 148945 [18:10:24]ProducePacketName [18:10:24]name=ofd_packets/00148945 [18:10:24]NVStorageDeleteData [18:10:24]Write to MH i2c: 01 00 00 F6 28 1E [18:10:24]Write i2c OK [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: 01 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: 01 07 00 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: 01 07 00 F6 28 00 00 00 00 00 7F 0C B0 [18:10:24]RasterBufferAndPrint [18:10:24]line [18:10:24]line [18:10:24]line [18:10:24]line [18:10:24]line [18:10:24]written 0, free lines is 3203 [18:10:24]MH_Cut [18:10:24]Write to MH i2c: D1 01 00 FD 28 01 F7 [18:10:24]Write i2c OK [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: D1 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: D1 01 00 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: D1 01 00 FD 28 00 F6 [18:10:24]Write to MH i2c: 01 00 00 FE 28 26 [18:10:24]Write i2c OK [18:10:24]MH_I2C_Read... [18:10:24]OFD Sender: No OFD packet to send [18:10:25]*** Cut start [18:10:25]*** Partial cut [18:10:25]*** CUTSNS_PIN = 1 [18:10:25]*** CUTSNS_PIN = 0 [18:10:25]*** Brake cut motor [18:10:26]Read from MH i2c: 01 [18:10:26]MH_I2C_Read... [18:10:26]*** Stop cut motor [18:10:26]*** Cut end [18:10:26]Read from MH i2c: 01 07 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: 01 07 00 FE 28 00 00 00 00 00 FF 0F 3B [18:10:26]process_action close_receipt done [18:10:26]requested_data is exist [18:10:26]produce_requested_data [18:10:26]requested_item fm.sn is exist - process it [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 11 00 00 [18:10:26]Write to MH i2c: E2 08 00 FF 28 80 11 00 00 00 00 00 00 A1 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 17 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 17 00 FF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F4 [18:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:10:26]wFMCommunicate OK [18:10:26]requested_item fd.num is exist - process it [18:10:26]SAM_PROTO_GetFieldsCounters [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 13 00 00 [18:10:26]Write to MH i2c: E2 08 00 00 29 80 13 00 00 00 00 00 00 A5 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 62 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 62 00 00 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [18:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:26]wFMCommunicate OK [18:10:26]SAM_PROTO_GetFieldsCounters done [18:10:26]requested_item shift.num is exist - process it [18:10:26]requested_item shift.opened is exist - process it [18:10:26]req_shift_opened [18:10:26]FM_GetShiftState [18:10:26]SAM_PROTO_GetShiftState [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 13 01 00 [18:10:26]Write to MH i2c: E2 08 00 01 29 80 13 01 00 00 00 00 00 A7 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 0E 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 0E 00 01 29 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6A [18:10:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:10:26]wFMCommunicate OK [18:10:26]SAM_PROTO_GetShiftState done [18:10:26]FM_GetShiftState done [18:10:26]req_shift_opened done [18:10:26]requested_item shift.open_date is exist - process it [18:10:26]req_shift_open_date [18:10:26]req_shift_open_date done [18:10:26]produce_requested_data done [18:10:26]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148945,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:10:26]process_action_free close_receipt [18:10:26]json_value_free [18:10:26]json_value_free done [18:10:26]process_json_proto returns [18:10:26]Send response to host [18:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148945,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:10:26]free response buf [18:10:26]execute_script done [18:10:26]execute_script returns [18:10:26]free content buf [18:10:26]Sock 9.Close socket [18:10:26]Sock 9.Thread stoped [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]accept exits with 10 [18:15:34]New connection [18:15:34]New thread 3067264356 created [18:15:34]Thread 3067407716 joined [18:15:34]Waiting for new connection... [18:15:34] Sock 10.Parse request [18:15:34]Sock 10.Check first char [18:15:34]Sock 10.First char is OK [18:15:34]request: POST /json_proto HTTP/1.0 [18:15:34]Method: POST [18:15:34]URL: /json_proto [18:15:34]Method is POST - this is cgi request [18:15:34]url: /json_proto [18:15:34]query_string will be loaded in cgi processing [18:15:34]execute_cgi json_proto POST (null) [18:15:34]execute_cgi path=json_proto method=POST [18:15:34]POST find Content-Length [18:15:34]Host: 172.17.38.4:8080 [18:15:34]Content-Length: 677 [18:15:34]Content-Type: application/json [18:15:34] [18:15:34]POST finish read [18:15:34]Found Content-Length = 677 [18:15:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:34]execute_script... [18:15:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:34]POST & json_proto [18:15:34]process_json_proto [18:15:34]json parsed OK: [18:15:34]protocol is kg_v1.0 [18:15:34]action value=close_receipt [18:15:34]process_action close_receipt [18:15:34]cmd_close_receipt [18:15:34]MH_GetDate [18:15:34]Write to MH i2c: F0 00 00 02 29 1A [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: F0 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: F0 09 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: F0 09 00 02 29 00 C8 59 5F 66 CC 51 87 64 11 [18:15:34]GetLastDocTimeStamp 1717524623 [18:15:34]current date 1717524936 [18:15:34]FM_GetShiftState [18:15:34]SAM_PROTO_GetShiftState [18:15:34]wFMCommunicate request_size=4 [18:15:34]MH_SAM_APDU [18:15:34]CAPDU: 80 13 01 00 [18:15:34]Write to MH i2c: E2 08 00 03 29 80 13 01 00 00 00 00 00 A9 [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:34]Read from MH i2c: E2 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 0E 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 0E 00 03 29 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6C [18:15:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:15:34]wFMCommunicate OK [18:15:34]SAM_PROTO_GetShiftState done [18:15:34]FM_GetShiftState done [18:15:34]opened in 1717460629 [18:15:34]opened+sec_in_day 1717547029 [18:15:34]quantity*price = 20003 [18:15:34]sum+1 = 20004 [18:15:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 285 04.06.2024 18:15 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148946 ФПД: 148015313141037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181536&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148946&fm=148015313141037&tin=02508201610067®Number=0000000000092720&sum=20000 [18:15:35]StoreToDocumentArchive [18:15:35]shift 368 fd 148946 [18:15:35]save to /storage/0368/doc_00148946 [18:15:35]save last doc name /storage/0368/doc_00148946 to /storage/kkm_last_doc_name [18:15:35]save OK [18:15:35]Clear old archive folders... [18:15:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:35]tlvbuf is 004C6400 [18:15:35]SAM_PROTO_ClearQueue [18:15:35]wFMCommunicate request_size=4 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 09 00 00 [18:15:35]Write to MH i2c: E2 08 00 10 29 80 09 00 00 00 00 00 00 AB [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 10 29 00 90 00 AD [18:15:35]RAPDU: 90 00 [18:15:35]wFMCommunicate OK [18:15:35]SAM_PROTO_ClearQueue done [18:15:35]KKMCreateOFDPacket [18:15:35]OFDProtocolAddRootSTLVToBuf [18:15:35]FM_MakeSignedData [18:15:35]FM_MakeSignedData [18:15:35]SAM_PROTO_SignData [18:15:35]wFMCommunicate request_size=4 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 0D 01 02 [18:15:35]Write to MH i2c: E2 08 00 11 29 80 0D 01 02 00 00 00 00 B3 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 11 29 00 90 00 AE [18:15:35]RAPDU: 90 00 [18:15:35]wFMCommunicate OK [18:15:35]wFMCommunicate request_size=255 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 01 00 00 F4 03 04 00 C8 59 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D2 45 02 00 35 04 06 00 86 [18:15:35]Write to MH i2c: E2 02 01 12 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C8 59 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D2 45 02 00 35 04 06 00 86 00 00 13 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 12 29 00 90 00 AF [18:15:35]RAPDU: 90 00 [18:15:35]wFMCommunicate OK [18:15:35]wFMCommunicate request_size=10 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 0D 02 02 05 9E 80 29 3D 2D [18:15:35]Write to MH i2c: E2 0D 00 13 29 80 0D 02 02 05 00 9E 80 29 3D 2D 00 00 71 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:36]Read from MH i2c: E2 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 13 29 00 90 00 B0 [18:15:36]RAPDU: 90 00 [18:15:36]wFMCommunicate OK [18:15:36]wFMCommunicate request_size=4 [18:15:36]MH_SAM_APDU [18:15:36]CAPDU: 80 0D 03 02 [18:15:36]Write to MH i2c: E2 08 00 14 29 80 0D 03 02 00 00 00 00 B8 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:36]Read from MH i2c: E2 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 0B 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 0B 00 14 29 00 42 93 05 53 0F 92 E8 57 90 00 C6 [18:15:36]RAPDU: 42 93 05 53 0F 92 E8 57 90 00 [18:15:36]wFMCommunicate OK [18:15:36]SAM_PROTO_SignData done [18:15:36]FM_MakeSignedData done [18:15:36]CreateOFDProtocolMessage [18:15:36]wFMCommunicate request_size=4 [18:15:36]MH_SAM_APDU [18:15:36]CAPDU: 80 11 00 00 [18:15:36]Write to MH i2c: E2 08 00 15 29 80 11 00 00 00 00 00 00 B8 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:36]Read from MH i2c: E2 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 17 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 17 00 15 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0B [18:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:15:36]wFMCommunicate OK [18:15:36]CreateOFDProtocolMessage done [18:15:36]OFDSenderStorePacket 148946 [18:15:36]StoreOFDPacket docnum=148946 [18:15:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 93 25 07 01 D7 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C8 59 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D2 45 02 00 35 04 06 00 86 9E 80 29 3D 2D 42 93 05 53 0F 92 E8 57 [18:15:36]CheckFolder [18:15:36]dirname=/storage/ofd_packets [18:15:36]CheckFolder done [18:15:36]ProducePacketName [18:15:36]name=ofd_packets/00148946 [18:15:36]NVStorageSaveData ofd_packets/00148946 [18:15:36]File name is /storage/ofd_packets/00148946 [18:15:36]Write 301 bytes [18:15:36]NVStorageSaveData done [18:15:36]OFDSenderStorePacket done [18:15:36]KKMCreateOFDPacket done [18:15:36]NVStorageSaveData kkm_last_timestamp [18:15:36]File name is /storage/kkm_last_timestamp [18:15:36]Write 4 bytes [18:15:36]NVStorageSaveData done [18:15:36]ExternCall_PrintAddStr [18:15:36]wPrintStart [18:15:36]Write to MH i2c: 01 00 00 16 29 3F [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 07 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 07 00 16 29 00 00 00 00 00 FF 0F 54 [18:15:36]RasterBufferAndPrint [18:15:36]line Счет N : (1)979877 [18:15:36]line ИНН: 02508201610067 [18:15:36]line Контрольно-Кассовый Чек [18:15:36]line ПРОДАЖА [18:15:36]line ТРК (МРК, ГНК) : 31 [18:15:36]line Товар: 2710124130 [18:15:36]line Аи-92-К-5 [18:15:36]line 2.990 * 66.90 [18:15:36]line = 200.03 [18:15:36]line НДС 12% НСП 1% [18:15:36]line > о реализуемом товаре [18:15:36]line ОКРУГЛЕНИЕ: -0.03 [18:15:36]line ИТОГО: 200.00 [18:15:36]line Внесено: 200.00 [18:15:36]line СДАЧА: 0.00 [18:15:36]line НСП 1% : 1.77 [18:15:36]line НДС 12% : 21.24 [18:15:36]line Наличными: 200.00 [18:15:36]line Безнал.: 0.00 [18:15:36]line Место: АЗС № 68 "Партнер Нефть" [18:15:36]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:15:36]line СНО: Общий режим [18:15:36]line Чек 285 04.06.2024 18:15 [18:15:36]line Смена: 368 ФФД: 1.0 [18:15:36]line ЗНМ: 0300000035 [18:15:36]line РНМ: 0000000000092720 [18:15:36]line Версия ККМ: 001 [18:15:36]line ФМ: 0000000000875057 [18:15:36]line ФД: 148946 [18:15:36]line ФПД: 148015313141037 [18:15:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181536&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148946&fm=148015313141037&tin=02508201610067®Number=0000000000092720&sum=20000 [18:15:36]OFD Sender: Processing packet 148946 [packets to send 100, broken 99] [18:15:36]ProducePacketName [18:15:36]name=ofd_packets/00148946 [18:15:36]OFD Sender: To server: pG, [18:15:36]CommunicateWithHost lk.salyk.kg:30040 [18:15:36]ConnectInit lk.salyk.kg [18:15:36]written 0, free lines is 4095 [18:15:36]Connected sock=11 [18:15:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 93 25 07 01 D7 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C8 59 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D2 45 02 00 35 04 06 00 86 9E 80 29 3D 2D 42 93 05 53 0F 92 E8 57 [18:15:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C7 D1 47 00 B8 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 38 37 35 30 35 37 10 04 04 00 D2 45 02 00 F4 03 04 00 EB 00 5F 66 B6 04 01 00 00 78 7D DC A9 07 1D 6D 80 [18:15:36]CommunicateWithHost err = 0 [18:15:36]CheckOFDResponse [18:15:36]1017 (14) - 77093643461234 [18:15:36]1041 (16) - 0000000000875057 [18:15:36]1040 (4) - 148946 [18:15:36]1012 (4) - 04.06.2024 11:56 [18:15:36]1206 (1) - 0 [18:15:36]OFD Sender: Remove packet 148946 [18:15:36]ProducePacketName [18:15:36]name=ofd_packets/00148946 [18:15:36]NVStorageDeleteData [18:15:36]Write to MH i2c: 01 00 00 41 29 6A [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 07 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 07 00 41 29 00 00 00 00 00 80 0C FD [18:15:36]RasterBufferAndPrint [18:15:36]line [18:15:36]line [18:15:36]line [18:15:36]line [18:15:36]line [18:15:36]written 0, free lines is 3204 [18:15:36]MH_Cut [18:15:36]Write to MH i2c: D1 01 00 48 29 01 43 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: D1 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: D1 01 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: D1 01 00 48 29 00 42 [18:15:36]Write to MH i2c: 01 00 00 49 29 72 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:37]OFD Sender: No OFD packet to send [18:15:38]*** Cut start [18:15:38]*** Partial cut [18:15:38]*** CUTSNS_PIN = 1 [18:15:38]*** CUTSNS_PIN = 0 [18:15:38]*** Brake cut motor [18:15:38]Read from MH i2c: 01 [18:15:38]MH_I2C_Read... [18:15:38]*** Stop cut motor [18:15:38]*** Cut end [18:15:38]Read from MH i2c: 01 07 00 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: 01 07 00 49 29 00 00 00 00 00 FF 0F 87 [18:15:38]process_action close_receipt done [18:15:38]requested_data is exist [18:15:38]produce_requested_data [18:15:38]requested_item fm.sn is exist - process it [18:15:38]wFMCommunicate request_size=4 [18:15:38]MH_SAM_APDU [18:15:38]CAPDU: 80 11 00 00 [18:15:38]Write to MH i2c: E2 08 00 4A 29 80 11 00 00 00 00 00 00 ED [18:15:38]Write i2c OK [18:15:38]MH_I2C_Read... [18:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:38]Read from MH i2c: E2 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 17 00 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 17 00 4A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 40 [18:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:15:38]wFMCommunicate OK [18:15:38]requested_item fd.num is exist - process it [18:15:38]SAM_PROTO_GetFieldsCounters [18:15:38]wFMCommunicate request_size=4 [18:15:38]MH_SAM_APDU [18:15:38]CAPDU: 80 13 00 00 [18:15:38]Write to MH i2c: E2 08 00 4B 29 80 13 00 00 00 00 00 00 F0 [18:15:38]Write i2c OK [18:15:38]MH_I2C_Read... [18:15:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:38]Read from MH i2c: E2 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 62 00 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 62 00 4B 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [18:15:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:38]wFMCommunicate OK [18:15:38]SAM_PROTO_GetFieldsCounters done [18:15:38]requested_item shift.num is exist - process it [18:15:38]requested_item shift.opened is exist - process it [18:15:38]req_shift_opened [18:15:38]FM_GetShiftState [18:15:38]SAM_PROTO_GetShiftState [18:15:38]wFMCommunicate request_size=4 [18:15:38]MH_SAM_APDU [18:15:38]CAPDU: 80 13 01 00 [18:15:38]Write to MH i2c: E2 08 00 4C 29 80 13 01 00 00 00 00 00 F2 [18:15:38]Write i2c OK [18:15:38]MH_I2C_Read... [18:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:38]Read from MH i2c: E2 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 0E 00 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 0E 00 4C 29 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B5 [18:15:38]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:15:38]wFMCommunicate OK [18:15:38]SAM_PROTO_GetShiftState done [18:15:38]FM_GetShiftState done [18:15:38]req_shift_opened done [18:15:38]requested_item shift.open_date is exist - process it [18:15:38]req_shift_open_date [18:15:38]req_shift_open_date done [18:15:38]produce_requested_data done [18:15:38]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148946,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:15:38]process_action_free close_receipt [18:15:38]json_value_free [18:15:38]json_value_free done [18:15:38]process_json_proto returns [18:15:38]Send response to host [18:15:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148946,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:15:38]free response buf [18:15:38]execute_script done [18:15:38]execute_script returns [18:15:38]free content buf [18:15:38]Sock 10.Close socket [18:15:38]Sock 10.Thread stoped [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:46]accept exits with 9 [18:22:46]New connection [18:22:46]New thread 3067407716 created [18:22:46]Thread 3067264356 joined [18:22:46]Waiting for new connection... [18:22:46] Sock 9.Parse request [18:22:46]Sock 9.Check first char [18:22:46]Sock 9.First char is OK [18:22:46]request: POST /json_proto HTTP/1.0 [18:22:46]Method: POST [18:22:46]URL: /json_proto [18:22:46]Method is POST - this is cgi request [18:22:46]url: /json_proto [18:22:46]query_string will be loaded in cgi processing [18:22:46]execute_cgi json_proto POST (null) [18:22:46]execute_cgi path=json_proto method=POST [18:22:46]POST find Content-Length [18:22:46]Host: 172.17.38.4:8080 [18:22:46]Content-Length: 677 [18:22:46]Content-Type: application/json [18:22:46] [18:22:46]POST finish read [18:22:46]Found Content-Length = 677 [18:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:46]execute_script... [18:22: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)979878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:46]POST & json_proto [18:22:46]process_json_proto [18:22:46]json parsed OK: [18:22:46]protocol is kg_v1.0 [18:22:46]action value=close_receipt [18:22:46]process_action close_receipt [18:22:46]cmd_close_receipt [18:22:46]MH_GetDate [18:22:46]Write to MH i2c: F0 00 00 4D 29 65 [18:22:46]Write i2c OK [18:22:46]MH_I2C_Read... [18:22:46]Read from MH i2c: F0 [18:22:46]MH_I2C_Read... [18:22:46]Read from MH i2c: F0 09 00 [18:22:46]MH_I2C_Read... [18:22:46]Read from MH i2c: F0 09 00 4D 29 00 78 5B 5F 66 CC 51 87 64 0E [18:22:46]GetLastDocTimeStamp 1717524936 [18:22:46]current date 1717525368 [18:22:46]FM_GetShiftState [18:22:46]SAM_PROTO_GetShiftState [18:22:46]wFMCommunicate request_size=4 [18:22:46]MH_SAM_APDU [18:22:46]CAPDU: 80 13 01 00 [18:22:46]Write to MH i2c: E2 08 00 4E 29 80 13 01 00 00 00 00 00 F4 [18:22:46]Write i2c OK [18:22:46]MH_I2C_Read... [18:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:46]Read from MH i2c: E2 [18:22:46]MH_I2C_Read... [18:22:46]Read from MH i2c: E2 0E 00 [18:22:46]MH_I2C_Read... [18:22:46]Read from MH i2c: E2 0E 00 4E 29 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B7 [18:22:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:22:46]wFMCommunicate OK [18:22:46]SAM_PROTO_GetShiftState done [18:22:46]FM_GetShiftState done [18:22:46]opened in 1717460629 [18:22:46]opened+sec_in_day 1717547029 [18:22:46]quantity*price = 27027 [18:22:46]sum+1 = 27029 [18:22:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 286 04.06.2024 18:22 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148947 ФПД: 187078814737497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182248&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148947&fm=187078814737497&tin=02508201610067®Number=0000000000092720&sum=27000 [18:22:47]StoreToDocumentArchive [18:22:47]shift 368 fd 148947 [18:22:47]save to /storage/0368/doc_00148947 [18:22:47]save last doc name /storage/0368/doc_00148947 to /storage/kkm_last_doc_name [18:22:47]save OK [18:22:47]Clear old archive folders... [18:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:47]tlvbuf is 0047B200 [18:22:47]SAM_PROTO_ClearQueue [18:22:47]wFMCommunicate request_size=4 [18:22:47]MH_SAM_APDU [18:22:47]CAPDU: 80 09 00 00 [18:22:47]Write to MH i2c: E2 08 00 5B 29 80 09 00 00 00 00 00 00 F6 [18:22:47]Write i2c OK [18:22:47]MH_I2C_Read... [18:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:47]Read from MH i2c: E2 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 03 00 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 03 00 5B 29 00 90 00 F8 [18:22:47]RAPDU: 90 00 [18:22:47]wFMCommunicate OK [18:22:47]SAM_PROTO_ClearQueue done [18:22:47]KKMCreateOFDPacket [18:22:47]OFDProtocolAddRootSTLVToBuf [18:22:47]FM_MakeSignedData [18:22:47]FM_MakeSignedData [18:22:47]SAM_PROTO_SignData [18:22:47]wFMCommunicate request_size=4 [18:22:47]MH_SAM_APDU [18:22:47]CAPDU: 80 0D 01 02 [18:22:47]Write to MH i2c: E2 08 00 5C 29 80 0D 01 02 00 00 00 00 FE [18:22:47]Write i2c OK [18:22:47]MH_I2C_Read... [18:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:47]Read from MH i2c: E2 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 03 00 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 03 00 5C 29 00 90 00 F9 [18:22:47]RAPDU: 90 00 [18:22:47]wFMCommunicate OK [18:22:47]wFMCommunicate request_size=255 [18:22:47]MH_SAM_APDU [18:22:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 78 5B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D3 45 02 00 35 04 06 00 AA [18:22:47]Write to MH i2c: E2 02 01 5D 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 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 78 5B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D3 45 02 00 35 04 06 00 AA 00 00 F1 [18:22:47]Write i2c OK [18:22:47]MH_I2C_Read... [18:22:47]OFD Sender: No OFD packet to send [18:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:47]Read from MH i2c: E2 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 03 00 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 03 00 5D 29 00 90 00 FA [18:22:47]RAPDU: 90 00 [18:22:47]wFMCommunicate OK [18:22:47]wFMCommunicate request_size=10 [18:22:47]MH_SAM_APDU [18:22:47]CAPDU: 80 0D 02 02 05 25 AE 4C 24 59 [18:22:47]Write to MH i2c: E2 0D 00 5E 29 80 0D 02 02 05 00 25 AE 4C 24 59 00 00 A7 [18:22:47]Write i2c OK [18:22:47]MH_I2C_Read... [18:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:47]Read from MH i2c: E2 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 03 00 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 03 00 5E 29 00 90 00 FB [18:22:47]RAPDU: 90 00 [18:22:47]wFMCommunicate OK [18:22:47]wFMCommunicate request_size=4 [18:22:47]MH_SAM_APDU [18:22:47]CAPDU: 80 0D 03 02 [18:22:47]Write to MH i2c: E2 08 00 5F 29 80 0D 03 02 00 00 00 00 03 [18:22:47]Write i2c OK [18:22:47]MH_I2C_Read... [18:22:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:47]Read from MH i2c: E2 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 0B 00 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 0B 00 5F 29 00 63 70 05 43 FC E9 C1 E7 90 00 AC [18:22:47]RAPDU: 63 70 05 43 FC E9 C1 E7 90 00 [18:22:47]wFMCommunicate OK [18:22:47]SAM_PROTO_SignData done [18:22:47]FM_MakeSignedData done [18:22:47]CreateOFDProtocolMessage [18:22:47]wFMCommunicate request_size=4 [18:22:47]MH_SAM_APDU [18:22:47]CAPDU: 80 11 00 00 [18:22:47]Write to MH i2c: E2 08 00 60 29 80 11 00 00 00 00 00 00 03 [18:22:47]Write i2c OK [18:22:47]MH_I2C_Read... [18:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:48]Read from MH i2c: E2 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: E2 17 00 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: E2 17 00 60 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 56 [18:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:22:48]wFMCommunicate OK [18:22:48]CreateOFDProtocolMessage done [18:22:48]OFDSenderStorePacket 148947 [18:22:48]StoreOFDPacket docnum=148947 [18:22:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7E 91 07 01 B3 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 78 5B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D3 45 02 00 35 04 06 00 AA 25 AE 4C 24 59 63 70 05 43 FC E9 C1 E7 [18:22:48]CheckFolder [18:22:48]dirname=/storage/ofd_packets [18:22:48]CheckFolder done [18:22:48]ProducePacketName [18:22:48]name=ofd_packets/00148947 [18:22:48]NVStorageSaveData ofd_packets/00148947 [18:22:48]File name is /storage/ofd_packets/00148947 [18:22:48]Write 301 bytes [18:22:48]NVStorageSaveData done [18:22:48]OFDSenderStorePacket done [18:22:48]KKMCreateOFDPacket done [18:22:48]NVStorageSaveData kkm_last_timestamp [18:22:48]File name is /storage/kkm_last_timestamp [18:22:48]Write 4 bytes [18:22:48]NVStorageSaveData done [18:22:48]ExternCall_PrintAddStr [18:22:48]wPrintStart [18:22:48]Write to MH i2c: 01 00 00 61 29 8A [18:22:48]Write i2c OK [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: 01 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: 01 07 00 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: 01 07 00 61 29 00 00 00 00 00 FF 0F 9F [18:22:48]RasterBufferAndPrint [18:22:48]line Счет N : (1)979878 [18:22:48]line ИНН: 02508201610067 [18:22:48]line Контрольно-Кассовый Чек [18:22:48]line ПРОДАЖА [18:22:48]line ТРК (МРК, ГНК) : 31 [18:22:48]line Товар: 2710124130 [18:22:48]line Аи-92-К-5 [18:22:48]line 4.040 * 66.90 [18:22:48]line = 270.28 [18:22:48]line НДС 12% НСП 1% [18:22:48]line > о реализуемом товаре [18:22:48]line ОКРУГЛЕНИЕ: -0.28 [18:22:48]line ИТОГО: 270.00 [18:22:48]line Внесено: 270.00 [18:22:48]line СДАЧА: 0.00 [18:22:48]line НСП 1% : 2.39 [18:22:48]line НДС 12% : 28.70 [18:22:48]line Наличными: 270.00 [18:22:48]line Безнал.: 0.00 [18:22:48]line Место: АЗС № 68 "Партнер Нефть" [18:22:48]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:22:48]line СНО: Общий режим [18:22:48]line Чек 286 04.06.2024 18:22 [18:22:48]line Смена: 368 ФФД: 1.0 [18:22:48]line ЗНМ: 0300000035 [18:22:48]line РНМ: 0000000000092720 [18:22:48]line Версия ККМ: 001 [18:22:48]line ФМ: 0000000000875057 [18:22:48]line ФД: 148947 [18:22:48]line ФПД: 187078814737497 [18:22:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182248&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148947&fm=187078814737497&tin=02508201610067®Number=0000000000092720&sum=27000 [18:22:48]OFD Sender: Processing packet 148947 [packets to send 100, broken 99] [18:22:48]ProducePacketName [18:22:48]name=ofd_packets/00148947 [18:22:48]OFD Sender: To server: pG, [18:22:48]CommunicateWithHost lk.salyk.kg:30040 [18:22:48]ConnectInit lk.salyk.kg [18:22:48]written 0, free lines is 4095 [18:22:48]Connected sock=10 [18:22:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7E 91 07 01 B3 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 78 5B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D3 45 02 00 35 04 06 00 AA 25 AE 4C 24 59 63 70 05 43 FC E9 C1 E7 [18:22:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 26 65 47 00 29 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D3 45 02 00 F4 03 04 00 9B 02 5F 66 B6 04 01 00 00 FD 5C 5C 1C 3D 46 44 01 [18:22:48]CommunicateWithHost err = 0 [18:22:48]CheckOFDResponse [18:22:48]1017 (14) - 77093643461234 [18:22:48]1041 (16) - 0000000000875057 [18:22:48]1040 (4) - 148947 [18:22:48]1012 (4) - 04.06.2024 12:03 [18:22:48]1206 (1) - 0 [18:22:48]OFD Sender: Remove packet 148947 [18:22:48]ProducePacketName [18:22:48]name=ofd_packets/00148947 [18:22:48]NVStorageDeleteData [18:22:48]Write to MH i2c: 01 00 00 8C 29 B5 [18:22:48]Write i2c OK [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: 01 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: 01 07 00 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: 01 07 00 8C 29 00 00 00 00 00 8C 0C 54 [18:22:48]RasterBufferAndPrint [18:22:48]line [18:22:48]line [18:22:48]line [18:22:48]line [18:22:48]line [18:22:48]written 0, free lines is 3215 [18:22:48]MH_Cut [18:22:48]Write to MH i2c: D1 01 00 93 29 01 8E [18:22:48]Write i2c OK [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: D1 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: D1 01 00 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: D1 01 00 93 29 00 8D [18:22:48]Write to MH i2c: 01 00 00 94 29 BD [18:22:48]Write i2c OK [18:22:48]MH_I2C_Read... [18:22:49]OFD Sender: No OFD packet to send [18:22:49]*** Cut start [18:22:49]*** Partial cut [18:22:49]*** CUTSNS_PIN = 1 [18:22:49]*** CUTSNS_PIN = 0 [18:22:50]*** Brake cut motor [18:22:50]Read from MH i2c: 01 [18:22:50]MH_I2C_Read... [18:22:50]*** Stop cut motor [18:22:50]*** Cut end [18:22:50]Read from MH i2c: 01 07 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: 01 07 00 94 29 00 00 00 00 00 FF 0F D2 [18:22:50]process_action close_receipt done [18:22:50]requested_data is exist [18:22:50]produce_requested_data [18:22:50]requested_item fm.sn is exist - process it [18:22:50]wFMCommunicate request_size=4 [18:22:50]MH_SAM_APDU [18:22:50]CAPDU: 80 11 00 00 [18:22:50]Write to MH i2c: E2 08 00 95 29 80 11 00 00 00 00 00 00 38 [18:22:50]Write i2c OK [18:22:50]MH_I2C_Read... [18:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:50]Read from MH i2c: E2 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 17 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 17 00 95 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8B [18:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:22:50]wFMCommunicate OK [18:22:50]requested_item fd.num is exist - process it [18:22:50]SAM_PROTO_GetFieldsCounters [18:22:50]wFMCommunicate request_size=4 [18:22:50]MH_SAM_APDU [18:22:50]CAPDU: 80 13 00 00 [18:22:50]Write to MH i2c: E2 08 00 96 29 80 13 00 00 00 00 00 00 3B [18:22:50]Write i2c OK [18:22:50]MH_I2C_Read... [18:22:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:50]Read from MH i2c: E2 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 62 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 62 00 96 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [18:22:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:50]wFMCommunicate OK [18:22:50]SAM_PROTO_GetFieldsCounters done [18:22:50]requested_item shift.num is exist - process it [18:22:50]requested_item shift.opened is exist - process it [18:22:50]req_shift_opened [18:22:50]FM_GetShiftState [18:22:50]SAM_PROTO_GetShiftState [18:22:50]wFMCommunicate request_size=4 [18:22:50]MH_SAM_APDU [18:22:50]CAPDU: 80 13 01 00 [18:22:50]Write to MH i2c: E2 08 00 97 29 80 13 01 00 00 00 00 00 3D [18:22:50]Write i2c OK [18:22:50]MH_I2C_Read... [18:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:50]Read from MH i2c: E2 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 0E 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 0E 00 97 29 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 00 [18:22:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:22:50]wFMCommunicate OK [18:22:50]SAM_PROTO_GetShiftState done [18:22:50]FM_GetShiftState done [18:22:50]req_shift_opened done [18:22:50]requested_item shift.open_date is exist - process it [18:22:50]req_shift_open_date [18:22:50]req_shift_open_date done [18:22:50]produce_requested_data done [18:22:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148947,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:22:50]process_action_free close_receipt [18:22:50]json_value_free [18:22:50]json_value_free done [18:22:50]process_json_proto returns [18:22:50]Send response to host [18:22:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148947,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:22:50]free response buf [18:22:50]execute_script done [18:22:50]execute_script returns [18:22:50]free content buf [18:22:50]Sock 9.Close socket [18:22:50]Sock 9.Thread stoped [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:27]accept exits with 7 [18:24:27]New connection [18:24:27]New thread 3067264356 created [18:24:27]Thread 3067407716 joined [18:24:27]Waiting for new connection... [18:24:27] Sock 7.Parse request [18:24:27]Sock 7.Check first char [18:24:27]Sock 7.First char is OK [18:24:27]request: POST /json_proto HTTP/1.0 [18:24:27]Method: POST [18:24:27]URL: /json_proto [18:24:27]Method is POST - this is cgi request [18:24:27]url: /json_proto [18:24:27]query_string will be loaded in cgi processing [18:24:27]execute_cgi json_proto POST (null) [18:24:27]execute_cgi path=json_proto method=POST [18:24:27]POST find Content-Length [18:24:27]Host: 172.17.38.4:8080 [18:24:27]Content-Length: 1189 [18:24:27]Content-Type: application/json [18:24:27] [18:24:27]POST finish read [18:24:27]Found Content-Length = 1189 [18:24:27]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979879\u000A04.06.2024 18:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68575\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:27]execute_script... [18:24:27]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979879\u000A04.06.2024 18:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68575\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:27]POST & json_proto [18:24:27]process_json_proto [18:24:27]json parsed OK: [18:24:27]protocol is kg_v1.0 [18:24:27]action value=print_text [18:24:27]process_action print_text [18:24:27]cmd_print_text [18:24:27]ExternCall_PrintAddStr [18:24:27]wPrintStart [18:24:27]Write to MH i2c: 01 00 00 98 29 C1 [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: 01 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: 01 07 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: 01 07 00 98 29 00 00 00 00 00 FF 0F D6 [18:24:27]RasterBufferAndPrint [18:24:27]line *****ТОВАРНЫЙ ЧЕК***** [18:24:27]line АЗС 68 [18:24:27]line Партнер нефть [18:24:27]line 02508201610067 [18:24:27]line Кассир : Аскаров Н. [18:24:27]line Счет N : (1)979879 [18:24:27]line 04.06.2024 18:05 [18:24:27]line ПРОДАЖА [18:24:27]line ТРК (МРК, ГНК): 22 [18:24:27]line Вид ГСМ : 2710124130 [18:24:27]line Аи-92-К-5 [18:24:27]line 15.000 x 66.90 [18:24:27]line ИТОГ: 1003.50 [18:24:27]line Тип оплаты: Талоны: Топливная Карта [18:24:27]line 68575 [18:24:27]line ______________________ [18:24:27]line (подпись) [18:24:27]written 0, free lines is 4095 [18:24:28]Write to MH i2c: 01 00 00 AC 29 D5 [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: 01 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: 01 07 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: 01 07 00 AC 29 00 00 00 00 00 11 0E FB [18:24:28]RasterBufferAndPrint [18:24:28]line [18:24:28]line [18:24:28]line [18:24:28]line [18:24:28]line [18:24:28]written 0, free lines is 3602 [18:24:28]MH_Cut [18:24:28]Write to MH i2c: D1 01 00 B3 29 01 AE [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: D1 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: D1 01 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: D1 01 00 B3 29 00 AD [18:24:28]Write to MH i2c: 01 00 00 B4 29 DD [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]*** Cut start [18:24:28]*** Partial cut [18:24:28]*** CUTSNS_PIN = 1 [18:24:28]*** CUTSNS_PIN = 0 [18:24:29]*** Brake cut motor [18:24:29]OFD Sender: No OFD packet to send [18:24:29]Read from MH i2c: 01 [18:24:29]MH_I2C_Read... [18:24:29]*** Stop cut motor [18:24:29]*** Cut end [18:24:29]Read from MH i2c: 01 07 00 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: 01 07 00 B4 29 00 00 00 00 00 FF 0F F2 [18:24:29]process_action print_text done [18:24:29]requested_data is exist [18:24:29]produce_requested_data [18:24:29]requested_item fm.sn is exist - process it [18:24:29]wFMCommunicate request_size=4 [18:24:29]MH_SAM_APDU [18:24:29]CAPDU: 80 11 00 00 [18:24:29]Write to MH i2c: E2 08 00 B5 29 80 11 00 00 00 00 00 00 58 [18:24:29]Write i2c OK [18:24:29]MH_I2C_Read... [18:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:29]Read from MH i2c: E2 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 17 00 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 17 00 B5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AB [18:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:24:29]wFMCommunicate OK [18:24:29]requested_item fd.num is exist - process it [18:24:29]SAM_PROTO_GetFieldsCounters [18:24:29]wFMCommunicate request_size=4 [18:24:29]MH_SAM_APDU [18:24:29]CAPDU: 80 13 00 00 [18:24:29]Write to MH i2c: E2 08 00 B6 29 80 13 00 00 00 00 00 00 5B [18:24:29]Write i2c OK [18:24:29]MH_I2C_Read... [18:24:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:29]Read from MH i2c: E2 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 62 00 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 62 00 B6 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [18:24:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:29]wFMCommunicate OK [18:24:29]SAM_PROTO_GetFieldsCounters done [18:24:29]requested_item shift.num is exist - process it [18:24:29]requested_item shift.opened is exist - process it [18:24:29]req_shift_opened [18:24:29]FM_GetShiftState [18:24:29]SAM_PROTO_GetShiftState [18:24:29]wFMCommunicate request_size=4 [18:24:29]MH_SAM_APDU [18:24:29]CAPDU: 80 13 01 00 [18:24:29]Write to MH i2c: E2 08 00 B7 29 80 13 01 00 00 00 00 00 5D [18:24:29]Write i2c OK [18:24:29]MH_I2C_Read... [18:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:29]Read from MH i2c: E2 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 0E 00 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 0E 00 B7 29 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 20 [18:24:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:24:29]wFMCommunicate OK [18:24:29]SAM_PROTO_GetShiftState done [18:24:29]FM_GetShiftState done [18:24:29]req_shift_opened done [18:24:29]requested_item shift.open_date is exist - process it [18:24:29]req_shift_open_date [18:24:29]req_shift_open_date done [18:24:29]produce_requested_data done [18:24:29]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148947,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:24:29]process_action_free print_text [18:24:29]json_value_free [18:24:29]json_value_free done [18:24:29]process_json_proto returns [18:24:29]Send response to host [18:24:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148947,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:24:29]free response buf [18:24:29]execute_script done [18:24:29]execute_script returns [18:24:29]free content buf [18:24:29]Sock 7.Close socket [18:24:29]Sock 7.Thread stoped [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:43]accept exits with 9 [18:25:43]New connection [18:25:43]New thread 3067407716 created [18:25:43]Thread 3067264356 joined [18:25:43]Waiting for new connection... [18:25:43] Sock 9.Parse request [18:25:43]Sock 9.Check first char [18:25:43]Sock 9.First char is OK [18:25:43]request: POST /json_proto HTTP/1.0 [18:25:43]Method: POST [18:25:43]URL: /json_proto [18:25:43]Method is POST - this is cgi request [18:25:43]url: /json_proto [18:25:43]query_string will be loaded in cgi processing [18:25:43]execute_cgi json_proto POST (null) [18:25:43]execute_cgi path=json_proto method=POST [18:25:43]POST find Content-Length [18:25:43]Host: 172.17.38.4:8080 [18:25:43]Content-Length: 682 [18:25:43]Content-Type: application/json [18:25:43] [18:25:43]POST finish read [18:25:43]Found Content-Length = 682 [18:25:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:43]execute_script... [18:25: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)979881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:43]POST & json_proto [18:25:43]process_json_proto [18:25:43]json parsed OK: [18:25:43]protocol is kg_v1.0 [18:25:43]action value=close_receipt [18:25:43]process_action close_receipt [18:25:43]cmd_close_receipt [18:25:43]MH_GetDate [18:25:43]Write to MH i2c: F0 00 00 B8 29 D0 [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: F0 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: F0 09 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: F0 09 00 B8 29 00 29 5C 5F 66 CC 51 87 64 2B [18:25:43]GetLastDocTimeStamp 1717525368 [18:25:43]current date 1717525545 [18:25:43]FM_GetShiftState [18:25:43]SAM_PROTO_GetShiftState [18:25:43]wFMCommunicate request_size=4 [18:25:43]MH_SAM_APDU [18:25:43]CAPDU: 80 13 01 00 [18:25:43]Write to MH i2c: E2 08 00 B9 29 80 13 01 00 00 00 00 00 5F [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:43]Read from MH i2c: E2 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: E2 0E 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: E2 0E 00 B9 29 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 22 [18:25:43]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:25:43]wFMCommunicate OK [18:25:43]SAM_PROTO_GetShiftState done [18:25:43]FM_GetShiftState done [18:25:43]opened in 1717460629 [18:25:43]opened+sec_in_day 1717547029 [18:25:43]quantity*price = 100015 [18:25:43]sum+1 = 100017 [18:25:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 287 04.06.2024 18:25 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148948 ФПД: 117195804138275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182545&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148948&fm=117195804138275&tin=02508201610067®Number=0000000000092720&sum=100000 [18:25:44]StoreToDocumentArchive [18:25:44]shift 368 fd 148948 [18:25:44]save to /storage/0368/doc_00148948 [18:25:44]save last doc name /storage/0368/doc_00148948 to /storage/kkm_last_doc_name [18:25:44]save OK [18:25:44]Clear old archive folders... [18:25:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:44]tlvbuf is 0055EC70 [18:25:44]SAM_PROTO_ClearQueue [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 09 00 00 [18:25:44]Write to MH i2c: E2 08 00 C6 29 80 09 00 00 00 00 00 00 61 [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 03 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 03 00 C6 29 00 90 00 63 [18:25:44]RAPDU: 90 00 [18:25:44]wFMCommunicate OK [18:25:44]SAM_PROTO_ClearQueue done [18:25:44]KKMCreateOFDPacket [18:25:44]OFDProtocolAddRootSTLVToBuf [18:25:44]FM_MakeSignedData [18:25:44]FM_MakeSignedData [18:25:44]SAM_PROTO_SignData [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 0D 01 02 [18:25:44]Write to MH i2c: E2 08 00 C7 29 80 0D 01 02 00 00 00 00 69 [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 03 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 03 00 C7 29 00 90 00 64 [18:25:44]RAPDU: 90 00 [18:25:44]wFMCommunicate OK [18:25:44]wFMCommunicate request_size=255 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 01 00 00 F4 03 04 00 29 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D4 45 02 00 35 04 06 00 6A [18:25:44]Write to MH i2c: E2 02 01 C8 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 29 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D4 45 02 00 35 04 06 00 6A 00 00 4D [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:45]Read from MH i2c: E2 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 03 00 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 03 00 C8 29 00 90 00 65 [18:25:45]RAPDU: 90 00 [18:25:45]wFMCommunicate OK [18:25:45]wFMCommunicate request_size=10 [18:25:45]MH_SAM_APDU [18:25:45]CAPDU: 80 0D 02 02 05 96 C6 46 5B 23 [18:25:45]Write to MH i2c: E2 0D 00 C9 29 80 0D 02 02 05 00 96 C6 46 5B 23 00 00 96 [18:25:45]Write i2c OK [18:25:45]MH_I2C_Read... [18:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:45]Read from MH i2c: E2 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 03 00 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 03 00 C9 29 00 90 00 66 [18:25:45]RAPDU: 90 00 [18:25:45]wFMCommunicate OK [18:25:45]wFMCommunicate request_size=4 [18:25:45]MH_SAM_APDU [18:25:45]CAPDU: 80 0D 03 02 [18:25:45]Write to MH i2c: E2 08 00 CA 29 80 0D 03 02 00 00 00 00 6E [18:25:45]Write i2c OK [18:25:45]MH_I2C_Read... [18:25:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:45]Read from MH i2c: E2 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 0B 00 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 0B 00 CA 29 00 ED 1E 17 4B 87 47 AB 25 90 00 7A [18:25:45]RAPDU: ED 1E 17 4B 87 47 AB 25 90 00 [18:25:45]wFMCommunicate OK [18:25:45]SAM_PROTO_SignData done [18:25:45]FM_MakeSignedData done [18:25:45]CreateOFDProtocolMessage [18:25:45]wFMCommunicate request_size=4 [18:25:45]MH_SAM_APDU [18:25:45]CAPDU: 80 11 00 00 [18:25:45]Write to MH i2c: E2 08 00 CB 29 80 11 00 00 00 00 00 00 6E [18:25:45]Write i2c OK [18:25:45]MH_I2C_Read... [18:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:45]Read from MH i2c: E2 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 17 00 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: E2 17 00 CB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C1 [18:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:25:45]wFMCommunicate OK [18:25:45]CreateOFDProtocolMessage done [18:25:45]OFDSenderStorePacket 148948 [18:25:45]StoreOFDPacket docnum=148948 [18:25:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 42 BC 07 01 73 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 01 00 00 F4 03 04 00 29 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D4 45 02 00 35 04 06 00 6A 96 C6 46 5B 23 ED 1E 17 4B 87 47 AB 25 [18:25:45]CheckFolder [18:25:45]dirname=/storage/ofd_packets [18:25:45]CheckFolder done [18:25:45]ProducePacketName [18:25:45]name=ofd_packets/00148948 [18:25:45]NVStorageSaveData ofd_packets/00148948 [18:25:45]File name is /storage/ofd_packets/00148948 [18:25:45]Write 301 bytes [18:25:45]NVStorageSaveData done [18:25:45]OFDSenderStorePacket done [18:25:45]KKMCreateOFDPacket done [18:25:45]NVStorageSaveData kkm_last_timestamp [18:25:45]File name is /storage/kkm_last_timestamp [18:25:45]Write 4 bytes [18:25:45]NVStorageSaveData done [18:25:45]OFD Sender: Processing packet 148948 [packets to send 100, broken 99] [18:25:45]ProducePacketName [18:25:45]name=ofd_packets/00148948 [18:25:45]OFD Sender: To server: pG, [18:25:45]CommunicateWithHost lk.salyk.kg:30040 [18:25:45]ConnectInit lk.salyk.kg [18:25:45]ExternCall_PrintAddStr [18:25:45]wPrintStart [18:25:45]Write to MH i2c: 01 00 00 CC 29 F5 [18:25:45]Write i2c OK [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: 01 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: 01 07 00 [18:25:45]MH_I2C_Read... [18:25:45]Read from MH i2c: 01 07 00 CC 29 00 00 00 00 00 FF 0F 0A [18:25:45]RasterBufferAndPrint [18:25:45]line Счет N : (1)979881 [18:25:45]line ИНН: 02508201610067 [18:25:45]line Контрольно-Кассовый Чек [18:25:45]line ПРОДАЖА [18:25:45]line ТРК (МРК, ГНК) : 31 [18:25:45]line Товар: 2710124130 [18:25:45]line Аи-92-К-5 [18:25:45]line 14.950 * 66.90 [18:25:45]line = 1000.16 [18:25:45]line НДС 12% НСП 1% [18:25:45]line > о реализуемом товаре [18:25:45]line ОКРУГЛЕНИЕ: -0.16 [18:25:45]line ИТОГО: 1000.00 [18:25:45]line Внесено: 1000.00 [18:25:45]line СДАЧА: 0.00 [18:25:45]line НСП 1% : 8.85 [18:25:45]line НДС 12% : 106.21 [18:25:45]line Наличными: 1000.00 [18:25:45]line Безнал.: 0.00 [18:25:45]line Место: АЗС № 68 "Партнер Нефть" [18:25:45]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:25:45]line СНО: Общий режим [18:25:45]line Чек 287 04.06.2024 18:25 [18:25:45]line Смена: 368 ФФД: 1.0 [18:25:45]line ЗНМ: 0300000035 [18:25:45]line РНМ: 0000000000092720 [18:25:45]line Версия ККМ: 001 [18:25:45]line ФМ: 0000000000875057 [18:25:45]line ФД: 148948 [18:25:45]line ФПД: 117195804138275 [18:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182545&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148948&fm=117195804138275&tin=02508201610067®Number=0000000000092720&sum=100000 [18:25:45]Connected sock=11 [18:25:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 42 BC 07 01 73 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 01 00 00 F4 03 04 00 29 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D4 45 02 00 35 04 06 00 6A 96 C6 46 5B 23 ED 1E 17 4B 87 47 AB 25 [18:25:45]written 0, free lines is 4095 [18:25:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 35 6B 47 00 C6 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D4 45 02 00 F4 03 04 00 4C 03 5F 66 B6 04 01 00 00 7D D9 DC 06 76 DF 28 65 [18:25:45]CommunicateWithHost err = 0 [18:25:45]CheckOFDResponse [18:25:45]1017 (14) - 77093643461234 [18:25:45]1041 (16) - 0000000000875057 [18:25:45]1040 (4) - 148948 [18:25:45]1012 (4) - 04.06.2024 12:06 [18:25:45]1206 (1) - 0 [18:25:45]OFD Sender: Remove packet 148948 [18:25:45]ProducePacketName [18:25:45]name=ofd_packets/00148948 [18:25:45]NVStorageDeleteData [18:25:46]Write to MH i2c: 01 00 00 F7 29 20 [18:25:46]Write i2c OK [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: 01 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: 01 07 00 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: 01 07 00 F7 29 00 00 00 00 00 88 0C BB [18:25:46]RasterBufferAndPrint [18:25:46]line [18:25:46]line [18:25:46]line [18:25:46]line [18:25:46]line [18:25:46]written 0, free lines is 3212 [18:25:46]MH_Cut [18:25:46]Write to MH i2c: D1 01 00 FE 29 01 F9 [18:25:46]Write i2c OK [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: D1 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: D1 01 00 [18:25:46]MH_I2C_Read... [18:25:46]Read from MH i2c: D1 01 00 FE 29 00 F8 [18:25:46]Write to MH i2c: 01 00 00 FF 29 28 [18:25:46]Write i2c OK [18:25:46]MH_I2C_Read... [18:25:46]OFD Sender: No OFD packet to send [18:25:47]*** Cut start [18:25:47]*** Partial cut [18:25:47]*** CUTSNS_PIN = 1 [18:25:47]*** CUTSNS_PIN = 0 [18:25:47]*** Brake cut motor [18:25:47]Read from MH i2c: 01 [18:25:47]MH_I2C_Read... [18:25:47]*** Stop cut motor [18:25:47]*** Cut end [18:25:47]Read from MH i2c: 01 07 00 [18:25:47]MH_I2C_Read... [18:25:47]Read from MH i2c: 01 07 00 FF 29 00 00 00 00 00 FF 0F 3D [18:25:47]process_action close_receipt done [18:25:47]requested_data is exist [18:25:47]produce_requested_data [18:25:47]requested_item fm.sn is exist - process it [18:25:47]wFMCommunicate request_size=4 [18:25:47]MH_SAM_APDU [18:25:47]CAPDU: 80 11 00 00 [18:25:47]Write to MH i2c: E2 08 00 00 2A 80 11 00 00 00 00 00 00 A4 [18:25:47]Write i2c OK [18:25:47]MH_I2C_Read... [18:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:47]Read from MH i2c: E2 [18:25:47]MH_I2C_Read... [18:25:47]Read from MH i2c: E2 17 00 [18:25:47]MH_I2C_Read... [18:25:47]Read from MH i2c: E2 17 00 00 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F7 [18:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:25:47]wFMCommunicate OK [18:25:47]requested_item fd.num is exist - process it [18:25:47]SAM_PROTO_GetFieldsCounters [18:25:47]wFMCommunicate request_size=4 [18:25:47]MH_SAM_APDU [18:25:47]CAPDU: 80 13 00 00 [18:25:47]Write to MH i2c: E2 08 00 01 2A 80 13 00 00 00 00 00 00 A7 [18:25:47]Write i2c OK [18:25:47]MH_I2C_Read... [18:25:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:47]Read from MH i2c: E2 [18:25:47]MH_I2C_Read... [18:25:47]Read from MH i2c: E2 62 00 [18:25:47]MH_I2C_Read... [18:25:47]Read from MH i2c: E2 62 00 01 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [18:25:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:47]wFMCommunicate OK [18:25:47]SAM_PROTO_GetFieldsCounters done [18:25:47]requested_item shift.num is exist - process it [18:25:47]requested_item shift.opened is exist - process it [18:25:47]req_shift_opened [18:25:47]FM_GetShiftState [18:25:47]SAM_PROTO_GetShiftState [18:25:47]wFMCommunicate request_size=4 [18:25:47]MH_SAM_APDU [18:25:47]CAPDU: 80 13 01 00 [18:25:47]Write to MH i2c: E2 08 00 02 2A 80 13 01 00 00 00 00 00 A9 [18:25:47]Write i2c OK [18:25:47]MH_I2C_Read... [18:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:48]Read from MH i2c: E2 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: E2 0E 00 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: E2 0E 00 02 2A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6C [18:25:48]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:25:48]wFMCommunicate OK [18:25:48]SAM_PROTO_GetShiftState done [18:25:48]FM_GetShiftState done [18:25:48]req_shift_opened done [18:25:48]requested_item shift.open_date is exist - process it [18:25:48]req_shift_open_date [18:25:48]req_shift_open_date done [18:25:48]produce_requested_data done [18:25:48]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148948,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:25:48]process_action_free close_receipt [18:25:48]json_value_free [18:25:48]json_value_free done [18:25:48]process_json_proto returns [18:25:48]Send response to host [18:25:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148948,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:25:48]free response buf [18:25:48]execute_script done [18:25:48]execute_script returns [18:25:48]free content buf [18:25:48]Sock 9.Close socket [18:25:48]Sock 9.Thread stoped [18:25:51]OFD Sender: No OFD packet to send [18:25:54]accept exits with 7 [18:25:54]New connection [18:25:54]New thread 3067264356 created [18:25:54]Thread 3067407716 joined [18:25:54]Waiting for new connection... [18:25:54] Sock 7.Parse request [18:25:54]Sock 7.Check first char [18:25:54]Sock 7.First char is OK [18:25:54]request: POST /json_proto HTTP/1.0 [18:25:54]Method: POST [18:25:54]URL: /json_proto [18:25:54]Method is POST - this is cgi request [18:25:54]url: /json_proto [18:25:54]query_string will be loaded in cgi processing [18:25:54]execute_cgi json_proto POST (null) [18:25:54]execute_cgi path=json_proto method=POST [18:25:54]POST find Content-Length [18:25:54]Host: 172.17.38.4:8080 [18:25:54]Content-Length: 1188 [18:25:54]Content-Type: application/json [18:25:54] [18:25:54]POST finish read [18:25:54]Found Content-Length = 1188 [18:25: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979880\u000A04.06.2024 18:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A68575\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:54]execute_script... [18:25: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979880\u000A04.06.2024 18:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A68575\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:54]POST & json_proto [18:25:54]process_json_proto [18:25:54]json parsed OK: [18:25:54]protocol is kg_v1.0 [18:25:54]action value=print_text [18:25:54]process_action print_text [18:25:54]cmd_print_text [18:25:54]ExternCall_PrintAddStr [18:25:54]wPrintStart [18:25:54]Write to MH i2c: 01 00 00 03 2A 2D [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: 01 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: 01 07 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: 01 07 00 03 2A 00 00 00 00 00 FF 0F 42 [18:25:54]RasterBufferAndPrint [18:25:54]line *****ТОВАРНЫЙ ЧЕК***** [18:25:54]line АЗС 68 [18:25:54]line Партнер нефть [18:25:54]line 02508201610067 [18:25:54]line Кассир : Аскаров Н. [18:25:54]line Счет N : (1)979880 [18:25:54]line 04.06.2024 18:06 [18:25:54]line ПРОДАЖА [18:25:54]line ТРК (МРК, ГНК): 12 [18:25:54]line Вид ГСМ : 2710124130 [18:25:54]line Аи-92-К-5 [18:25:54]line 10.000 x 66.90 [18:25:54]line ИТОГ: 669.00 [18:25:54]line Тип оплаты: Талоны: Топливная Карта [18:25:54]line 68575 [18:25:54]line ______________________ [18:25:54]line (подпись) [18:25:54]written 0, free lines is 4095 [18:25:54]Write to MH i2c: 01 00 00 17 2A 41 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: 01 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: 01 07 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: 01 07 00 17 2A 00 00 00 00 00 11 0E 67 [18:25:54]RasterBufferAndPrint [18:25:54]line [18:25:54]line [18:25:54]line [18:25:54]line [18:25:54]line [18:25:54]written 0, free lines is 3604 [18:25:54]MH_Cut [18:25:54]Write to MH i2c: D1 01 00 1E 2A 01 1A [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: D1 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: D1 01 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: D1 01 00 1E 2A 00 19 [18:25:54]Write to MH i2c: 01 00 00 1F 2A 49 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]*** Cut start [18:25:54]*** Partial cut [18:25:54]*** CUTSNS_PIN = 1 [18:25:54]*** CUTSNS_PIN = 0 [18:25:55]*** Brake cut motor [18:25:55]Read from MH i2c: 01 [18:25:55]MH_I2C_Read... [18:25:55]*** Stop cut motor [18:25:55]*** Cut end [18:25:55]Read from MH i2c: 01 07 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: 01 07 00 1F 2A 00 00 00 00 00 FF 0F 5E [18:25:55]process_action print_text done [18:25:55]requested_data is exist [18:25:55]produce_requested_data [18:25:55]requested_item fm.sn is exist - process it [18:25:55]wFMCommunicate request_size=4 [18:25:55]MH_SAM_APDU [18:25:55]CAPDU: 80 11 00 00 [18:25:55]Write to MH i2c: E2 08 00 20 2A 80 11 00 00 00 00 00 00 C4 [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:55]Read from MH i2c: E2 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 17 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 17 00 20 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 17 [18:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:25:55]wFMCommunicate OK [18:25:55]requested_item fd.num is exist - process it [18:25:55]SAM_PROTO_GetFieldsCounters [18:25:55]wFMCommunicate request_size=4 [18:25:55]MH_SAM_APDU [18:25:55]CAPDU: 80 13 00 00 [18:25:55]Write to MH i2c: E2 08 00 21 2A 80 13 00 00 00 00 00 00 C7 [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:55]Read from MH i2c: E2 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 62 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 62 00 21 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [18:25:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:55]wFMCommunicate OK [18:25:55]SAM_PROTO_GetFieldsCounters done [18:25:55]requested_item shift.num is exist - process it [18:25:55]requested_item shift.opened is exist - process it [18:25:55]req_shift_opened [18:25:55]FM_GetShiftState [18:25:55]SAM_PROTO_GetShiftState [18:25:55]wFMCommunicate request_size=4 [18:25:55]MH_SAM_APDU [18:25:55]CAPDU: 80 13 01 00 [18:25:55]Write to MH i2c: E2 08 00 22 2A 80 13 01 00 00 00 00 00 C9 [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:55]Read from MH i2c: E2 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 0E 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 0E 00 22 2A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8C [18:25:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:25:55]wFMCommunicate OK [18:25:55]SAM_PROTO_GetShiftState done [18:25:55]FM_GetShiftState done [18:25:55]req_shift_opened done [18:25:55]requested_item shift.open_date is exist - process it [18:25:55]req_shift_open_date [18:25:55]req_shift_open_date done [18:25:55]produce_requested_data done [18:25:55]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148948,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:25:55]process_action_free print_text [18:25:55]json_value_free [18:25:55]json_value_free done [18:25:55]process_json_proto returns [18:25:55]Send response to host [18:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148948,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:25:55]free response buf [18:25:55]execute_script done [18:25:55]execute_script returns [18:25:55]free content buf [18:25:55]Sock 7.Close socket [18:25:55]Sock 7.Thread stoped [18:25:56]OFD Sender: No OFD packet to send [18:26:01]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:29]accept exits with 9 [18:27:29]New connection [18:27:29]New thread 3067407716 created [18:27:29]Thread 3067264356 joined [18:27:29]Waiting for new connection... [18:27:29] Sock 9.Parse request [18:27:29]Sock 9.Check first char [18:27:29]Sock 9.First char is OK [18:27:29]request: POST /json_proto HTTP/1.0 [18:27:29]Method: POST [18:27:29]URL: /json_proto [18:27:29]Method is POST - this is cgi request [18:27:29]url: /json_proto [18:27:29]query_string will be loaded in cgi processing [18:27:29]execute_cgi json_proto POST (null) [18:27:29]execute_cgi path=json_proto method=POST [18:27:29]POST find Content-Length [18:27:29]Host: 172.17.38.4:8080 [18:27:29]Content-Length: 677 [18:27:29]Content-Type: application/json [18:27:29] [18:27:29]POST finish read [18:27:29]Found Content-Length = 677 [18:27:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:29]execute_script... [18:27: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)979882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:29]POST & json_proto [18:27:29]process_json_proto [18:27:29]json parsed OK: [18:27:29]protocol is kg_v1.0 [18:27:29]action value=close_receipt [18:27:29]process_action close_receipt [18:27:29]cmd_close_receipt [18:27:29]MH_GetDate [18:27:29]Write to MH i2c: F0 00 00 23 2A 3C [18:27:29]Write i2c OK [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: F0 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: F0 09 00 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: F0 09 00 23 2A 00 93 5C 5F 66 CC 51 87 64 01 [18:27:29]GetLastDocTimeStamp 1717525545 [18:27:29]current date 1717525651 [18:27:29]FM_GetShiftState [18:27:29]SAM_PROTO_GetShiftState [18:27:29]wFMCommunicate request_size=4 [18:27:29]MH_SAM_APDU [18:27:29]CAPDU: 80 13 01 00 [18:27:29]Write to MH i2c: E2 08 00 24 2A 80 13 01 00 00 00 00 00 CB [18:27:29]Write i2c OK [18:27:29]MH_I2C_Read... [18:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:29]Read from MH i2c: E2 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: E2 0E 00 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: E2 0E 00 24 2A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8E [18:27:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:27:29]wFMCommunicate OK [18:27:29]SAM_PROTO_GetShiftState done [18:27:29]FM_GetShiftState done [18:27:29]opened in 1717460629 [18:27:29]opened+sec_in_day 1717547029 [18:27:29]quantity*price = 45023 [18:27:29]sum+1 = 45025 [18:27:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 288 04.06.2024 18:27 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148949 ФПД: 109847223394785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182731&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148949&fm=109847223394785&tin=02508201610067®Number=0000000000092720&sum=45000 [18:27:30]StoreToDocumentArchive [18:27:30]shift 368 fd 148949 [18:27:30]save to /storage/0368/doc_00148949 [18:27:30]save last doc name /storage/0368/doc_00148949 to /storage/kkm_last_doc_name [18:27:30]save OK [18:27:30]Clear old archive folders... [18:27:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:30]tlvbuf is 0047B280 [18:27:30]SAM_PROTO_ClearQueue [18:27:30]wFMCommunicate request_size=4 [18:27:30]MH_SAM_APDU [18:27:30]CAPDU: 80 09 00 00 [18:27:30]Write to MH i2c: E2 08 00 31 2A 80 09 00 00 00 00 00 00 CD [18:27:30]Write i2c OK [18:27:30]MH_I2C_Read... [18:27:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:30]Read from MH i2c: E2 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 03 00 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 03 00 31 2A 00 90 00 CF [18:27:30]RAPDU: 90 00 [18:27:30]wFMCommunicate OK [18:27:30]SAM_PROTO_ClearQueue done [18:27:30]KKMCreateOFDPacket [18:27:30]OFDProtocolAddRootSTLVToBuf [18:27:30]FM_MakeSignedData [18:27:30]FM_MakeSignedData [18:27:30]SAM_PROTO_SignData [18:27:30]wFMCommunicate request_size=4 [18:27:30]MH_SAM_APDU [18:27:30]CAPDU: 80 0D 01 02 [18:27:30]Write to MH i2c: E2 08 00 32 2A 80 0D 01 02 00 00 00 00 D5 [18:27:30]Write i2c OK [18:27:30]MH_I2C_Read... [18:27:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:30]Read from MH i2c: E2 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 03 00 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 03 00 32 2A 00 90 00 D0 [18:27:30]RAPDU: 90 00 [18:27:30]wFMCommunicate OK [18:27:30]wFMCommunicate request_size=255 [18:27:30]MH_SAM_APDU [18:27:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 93 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D5 45 02 00 35 04 06 00 63 [18:27:30]Write to MH i2c: E2 02 01 33 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 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 93 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D5 45 02 00 35 04 06 00 63 00 00 0A [18:27:30]Write i2c OK [18:27:30]MH_I2C_Read... [18:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:30]Read from MH i2c: E2 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 03 00 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 03 00 33 2A 00 90 00 D1 [18:27:30]RAPDU: 90 00 [18:27:30]wFMCommunicate OK [18:27:30]wFMCommunicate request_size=10 [18:27:30]MH_SAM_APDU [18:27:30]CAPDU: 80 0D 02 02 05 E7 CC BA E1 E1 [18:27:30]Write to MH i2c: E2 0D 00 34 2A 80 0D 02 02 05 00 E7 CC BA E1 E1 00 00 11 [18:27:30]Write i2c OK [18:27:30]MH_I2C_Read... [18:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:30]Read from MH i2c: E2 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 03 00 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 03 00 34 2A 00 90 00 D2 [18:27:30]RAPDU: 90 00 [18:27:30]wFMCommunicate OK [18:27:30]wFMCommunicate request_size=4 [18:27:30]MH_SAM_APDU [18:27:30]CAPDU: 80 0D 03 02 [18:27:30]Write to MH i2c: E2 08 00 35 2A 80 0D 03 02 00 00 00 00 DA [18:27:30]Write i2c OK [18:27:30]MH_I2C_Read... [18:27:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:30]Read from MH i2c: E2 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 0B 00 [18:27:30]MH_I2C_Read... [18:27:30]Read from MH i2c: E2 0B 00 35 2A 00 89 46 A9 BE C0 DC 83 AF 90 00 DF [18:27:30]RAPDU: 89 46 A9 BE C0 DC 83 AF 90 00 [18:27:30]wFMCommunicate OK [18:27:30]SAM_PROTO_SignData done [18:27:30]FM_MakeSignedData done [18:27:30]CreateOFDProtocolMessage [18:27:30]wFMCommunicate request_size=4 [18:27:30]MH_SAM_APDU [18:27:30]CAPDU: 80 11 00 00 [18:27:30]Write to MH i2c: E2 08 00 36 2A 80 11 00 00 00 00 00 00 DA [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:31]Read from MH i2c: E2 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: E2 17 00 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: E2 17 00 36 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2D [18:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:27:31]wFMCommunicate OK [18:27:31]CreateOFDProtocolMessage done [18:27:31]OFDSenderStorePacket 148949 [18:27:31]StoreOFDPacket docnum=148949 [18:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 11 EC 07 01 DD 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 93 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D5 45 02 00 35 04 06 00 63 E7 CC BA E1 E1 89 46 A9 BE C0 DC 83 AF [18:27:31]CheckFolder [18:27:31]dirname=/storage/ofd_packets [18:27:31]CheckFolder done [18:27:31]ProducePacketName [18:27:31]name=ofd_packets/00148949 [18:27:31]NVStorageSaveData ofd_packets/00148949 [18:27:31]File name is /storage/ofd_packets/00148949 [18:27:31]Write 301 bytes [18:27:31]NVStorageSaveData done [18:27:31]OFDSenderStorePacket done [18:27:31]KKMCreateOFDPacket done [18:27:31]NVStorageSaveData kkm_last_timestamp [18:27:31]File name is /storage/kkm_last_timestamp [18:27:31]Write 4 bytes [18:27:31]NVStorageSaveData done [18:27:31]ExternCall_PrintAddStr [18:27:31]wPrintStart [18:27:31]Write to MH i2c: 01 00 00 37 2A 61 [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 07 00 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 07 00 37 2A 00 00 00 00 00 FF 0F 76 [18:27:31]RasterBufferAndPrint [18:27:31]line Счет N : (1)979882 [18:27:31]line ИНН: 02508201610067 [18:27:31]line Контрольно-Кассовый Чек [18:27:31]line ПРОДАЖА [18:27:31]line ТРК (МРК, ГНК) : 22 [18:27:31]line Товар: 2710124130 [18:27:31]line Аи-92-К-5 [18:27:31]line 6.730 * 66.90 [18:27:31]line = 450.24 [18:27:31]line НДС 12% НСП 1% [18:27:31]line > о реализуемом товаре [18:27:31]line ОКРУГЛЕНИЕ: -0.24 [18:27:31]line ИТОГО: 450.00 [18:27:31]line Внесено: 450.00 [18:27:31]line СДАЧА: 0.00 [18:27:31]line НСП 1% : 3.98 [18:27:31]line НДС 12% : 47.81 [18:27:31]line Наличными: 450.00 [18:27:31]line Безнал.: 0.00 [18:27:31]line Место: АЗС № 68 "Партнер Нефть" [18:27:31]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:27:31]line СНО: Общий режим [18:27:31]line Чек 288 04.06.2024 18:27 [18:27:31]line Смена: 368 ФФД: 1.0 [18:27:31]line ЗНМ: 0300000035 [18:27:31]line РНМ: 0000000000092720 [18:27:31]line Версия ККМ: 001 [18:27:31]line ФМ: 0000000000875057 [18:27:31]line ФД: 148949 [18:27:31]line ФПД: 109847223394785 [18:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182731&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148949&fm=109847223394785&tin=02508201610067®Number=0000000000092720&sum=45000 [18:27:31]OFD Sender: Processing packet 148949 [packets to send 100, broken 99] [18:27:31]ProducePacketName [18:27:31]name=ofd_packets/00148949 [18:27:31]OFD Sender: To server: pG, [18:27:31]CommunicateWithHost lk.salyk.kg:30040 [18:27:31]ConnectInit lk.salyk.kg [18:27:31]written 0, free lines is 4095 [18:27:31]Connected sock=10 [18:27:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 11 EC 07 01 DD 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 93 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D5 45 02 00 35 04 06 00 63 E7 CC BA E1 E1 89 46 A9 BE C0 DC 83 AF [18:27:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DF 17 47 00 2A 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D5 45 02 00 F4 03 04 00 B6 03 5F 66 B6 04 01 00 00 BF B2 8F A4 FA 28 20 BB [18:27:31]CommunicateWithHost err = 0 [18:27:31]CheckOFDResponse [18:27:31]1017 (14) - 77093643461234 [18:27:31]1041 (16) - 0000000000875057 [18:27:31]1040 (4) - 148949 [18:27:31]1012 (4) - 04.06.2024 12:08 [18:27:31]1206 (1) - 0 [18:27:31]OFD Sender: Remove packet 148949 [18:27:31]ProducePacketName [18:27:31]name=ofd_packets/00148949 [18:27:31]NVStorageDeleteData [18:27:31]Write to MH i2c: 01 00 00 62 2A 8C [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 07 00 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 07 00 62 2A 00 00 00 00 00 92 0C 31 [18:27:31]RasterBufferAndPrint [18:27:31]line [18:27:31]line [18:27:31]line [18:27:31]line [18:27:31]line [18:27:31]written 0, free lines is 3224 [18:27:31]MH_Cut [18:27:31]Write to MH i2c: D1 01 00 69 2A 01 65 [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: D1 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: D1 01 00 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: D1 01 00 69 2A 00 64 [18:27:31]Write to MH i2c: 01 00 00 6A 2A 94 [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:32]OFD Sender: No OFD packet to send [18:27:32]*** Cut start [18:27:32]*** Partial cut [18:27:32]*** CUTSNS_PIN = 1 [18:27:32]*** CUTSNS_PIN = 0 [18:27:33]*** Brake cut motor [18:27:33]Read from MH i2c: 01 [18:27:33]MH_I2C_Read... [18:27:33]*** Stop cut motor [18:27:33]*** Cut end [18:27:33]Read from MH i2c: 01 07 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: 01 07 00 6A 2A 00 00 00 00 00 FF 0F A9 [18:27:33]process_action close_receipt done [18:27:33]requested_data is exist [18:27:33]produce_requested_data [18:27:33]requested_item fm.sn is exist - process it [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 11 00 00 [18:27:33]Write to MH i2c: E2 08 00 6B 2A 80 11 00 00 00 00 00 00 0F [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 17 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 17 00 6B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 62 [18:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:27:33]wFMCommunicate OK [18:27:33]requested_item fd.num is exist - process it [18:27:33]SAM_PROTO_GetFieldsCounters [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 13 00 00 [18:27:33]Write to MH i2c: E2 08 00 6C 2A 80 13 00 00 00 00 00 00 12 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 62 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 62 00 6C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D5 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [18:27:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D5 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:33]wFMCommunicate OK [18:27:33]SAM_PROTO_GetFieldsCounters done [18:27:33]requested_item shift.num is exist - process it [18:27:33]requested_item shift.opened is exist - process it [18:27:33]req_shift_opened [18:27:33]FM_GetShiftState [18:27:33]SAM_PROTO_GetShiftState [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 13 01 00 [18:27:33]Write to MH i2c: E2 08 00 6D 2A 80 13 01 00 00 00 00 00 14 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 0E 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 0E 00 6D 2A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D7 [18:27:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:27:33]wFMCommunicate OK [18:27:33]SAM_PROTO_GetShiftState done [18:27:33]FM_GetShiftState done [18:27:33]req_shift_opened done [18:27:33]requested_item shift.open_date is exist - process it [18:27:33]req_shift_open_date [18:27:33]req_shift_open_date done [18:27:33]produce_requested_data done [18:27:33]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148949,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:27:33]process_action_free close_receipt [18:27:33]json_value_free [18:27:33]json_value_free done [18:27:33]process_json_proto returns [18:27:33]Send response to host [18:27:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148949,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:27:33]free response buf [18:27:33]execute_script done [18:27:33]execute_script returns [18:27:33]free content buf [18:27:33]Sock 9.Close socket [18:27:33]Sock 9.Thread stoped [18:27:34]accept exits with 7 [18:27:34]New connection [18:27:34]New thread 3067264356 created [18:27:34]Thread 3067407716 joined [18:27:34]Waiting for new connection... [18:27:34] Sock 7.Parse request [18:27:34]Sock 7.Check first char [18:27:34]Sock 7.First char is OK [18:27:34]request: POST /json_proto HTTP/1.0 [18:27:34]Method: POST [18:27:34]URL: /json_proto [18:27:34]Method is POST - this is cgi request [18:27:34]url: /json_proto [18:27:34]query_string will be loaded in cgi processing [18:27:34]execute_cgi json_proto POST (null) [18:27:34]execute_cgi path=json_proto method=POST [18:27:34]POST find Content-Length [18:27:34]Host: 172.17.38.4:8080 [18:27:34]Content-Length: 670 [18:27:34]Content-Type: application/json [18:27:34] [18:27:34]POST finish read [18:27:34]Found Content-Length = 670 [18:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [18:27:34]execute_script... [18:27:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [18:27:34]POST & json_proto [18:27:34]process_json_proto [18:27:34]json parsed OK: [18:27:34]protocol is kg_v1.0 [18:27:34]action value=close_receipt [18:27:34]process_action close_receipt [18:27:34]cmd_close_receipt [18:27:34]MH_GetDate [18:27:34]Write to MH i2c: F0 00 00 6E 2A 87 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: F0 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: F0 09 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: F0 09 00 6E 2A 00 98 5C 5F 66 CC 51 87 64 51 [18:27:34]GetLastDocTimeStamp 1717525651 [18:27:34]current date 1717525656 [18:27:34]FM_GetShiftState [18:27:34]SAM_PROTO_GetShiftState [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 13 01 00 [18:27:34]Write to MH i2c: E2 08 00 6F 2A 80 13 01 00 00 00 00 00 16 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 0E 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 0E 00 6F 2A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D9 [18:27:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:27:34]wFMCommunicate OK [18:27:34]SAM_PROTO_GetShiftState done [18:27:34]FM_GetShiftState done [18:27:34]opened in 1717460629 [18:27:34]opened+sec_in_day 1717547029 [18:27:34]quantity*price = 20030 [18:27:34]sum+1 = 20032 [18:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 289 04.06.2024 18:27 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148950 ФПД: 250058643102096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182736&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148950&fm=250058643102096&tin=02508201610067®Number=0000000000092720&sum=20000 [18:27:35]StoreToDocumentArchive [18:27:35]shift 368 fd 148950 [18:27:35]save to /storage/0368/doc_00148950 [18:27:35]save last doc name /storage/0368/doc_00148950 to /storage/kkm_last_doc_name [18:27:35]save OK [18:27:35]Clear old archive folders... [18:27:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:27:35]tlvbuf is 004E9840 [18:27:35]SAM_PROTO_ClearQueue [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 09 00 00 [18:27:35]Write to MH i2c: E2 08 00 7C 2A 80 09 00 00 00 00 00 00 18 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:35]Read from MH i2c: E2 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 03 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 03 00 7C 2A 00 90 00 1A [18:27:35]RAPDU: 90 00 [18:27:35]wFMCommunicate OK [18:27:35]SAM_PROTO_ClearQueue done [18:27:35]KKMCreateOFDPacket [18:27:35]OFDProtocolAddRootSTLVToBuf [18:27:35]FM_MakeSignedData [18:27:35]FM_MakeSignedData [18:27:35]SAM_PROTO_SignData [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 0D 01 02 [18:27:35]Write to MH i2c: E2 08 00 7D 2A 80 0D 01 02 00 00 00 00 20 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:35]Read from MH i2c: E2 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 03 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 03 00 7D 2A 00 90 00 1B [18:27:35]RAPDU: 90 00 [18:27:35]wFMCommunicate OK [18:27:35]wFMCommunicate request_size=255 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 21 01 00 00 F4 03 04 00 98 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D6 45 02 00 35 04 06 00 [18:27:35]Write to MH i2c: E2 02 01 7E 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 55 50 45 52 20 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 21 01 00 00 F4 03 04 00 98 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D6 45 02 00 35 04 06 00 00 00 CD [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 03 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 03 00 7E 2A 00 90 00 1C [18:27:36]RAPDU: 90 00 [18:27:36]wFMCommunicate OK [18:27:36]wFMCommunicate request_size=11 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 0D 02 02 06 E3 6D 50 98 59 90 [18:27:36]Write to MH i2c: E2 0E 00 7F 2A 80 0D 02 02 06 00 E3 6D 50 98 59 90 00 00 50 [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 03 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 03 00 7F 2A 00 90 00 1D [18:27:36]RAPDU: 90 00 [18:27:36]wFMCommunicate OK [18:27:36]wFMCommunicate request_size=4 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 0D 03 02 [18:27:36]Write to MH i2c: E2 08 00 80 2A 80 0D 03 02 00 00 00 00 25 [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0B 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0B 00 80 2A 00 AF C6 28 4C 57 09 A2 D9 90 00 EA [18:27:36]RAPDU: AF C6 28 4C 57 09 A2 D9 90 00 [18:27:36]wFMCommunicate OK [18:27:36]SAM_PROTO_SignData done [18:27:36]FM_MakeSignedData done [18:27:36]CreateOFDProtocolMessage [18:27:36]wFMCommunicate request_size=4 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 11 00 00 [18:27:36]Write to MH i2c: E2 08 00 81 2A 80 11 00 00 00 00 00 00 25 [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 17 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 17 00 81 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 78 [18:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:27:36]wFMCommunicate OK [18:27:36]CreateOFDProtocolMessage done [18:27:36]OFDSenderStorePacket 148950 [18:27:36]StoreOFDPacket docnum=148950 [18:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 0C 8B 08 01 D9 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 21 01 00 00 F4 03 04 00 98 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D6 45 02 00 35 04 06 00 E3 6D 50 98 59 90 AF C6 28 4C 57 09 A2 D9 [18:27:36]CheckFolder [18:27:36]dirname=/storage/ofd_packets [18:27:36]CheckFolder done [18:27:36]ProducePacketName [18:27:36]name=ofd_packets/00148950 [18:27:36]NVStorageSaveData ofd_packets/00148950 [18:27:36]File name is /storage/ofd_packets/00148950 [18:27:36]Write 302 bytes [18:27:36]NVStorageSaveData done [18:27:36]OFDSenderStorePacket done [18:27:36]KKMCreateOFDPacket done [18:27:36]NVStorageSaveData kkm_last_timestamp [18:27:36]File name is /storage/kkm_last_timestamp [18:27:36]Write 4 bytes [18:27:36]NVStorageSaveData done [18:27:36]ExternCall_PrintAddStr [18:27:36]wPrintStart [18:27:36]Write to MH i2c: 01 00 00 82 2A AC [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: 01 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: 01 07 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: 01 07 00 82 2A 00 00 00 00 00 FF 0F C1 [18:27:36]RasterBufferAndPrint [18:27:36]line Счет N : (1)979884 [18:27:36]line ИНН: 02508201610067 [18:27:36]line Контрольно-Кассовый Чек [18:27:36]line ПРОДАЖА [18:27:36]line ТРК (МРК, ГНК) : 33 [18:27:36]line Товар: 2710124130 [18:27:36]line SUPER 92-К-5 [18:27:36]line 2.950 * 67.90 [18:27:36]line = 200.31 [18:27:36]line НДС 12% НСП 1% [18:27:36]line > о реализуемом товаре [18:27:36]line ОКРУГЛЕНИЕ: -0.31 [18:27:36]line ИТОГО: 200.00 [18:27:36]line Внесено: 200.00 [18:27:36]line СДАЧА: 0.00 [18:27:36]line НСП 1% : 1.77 [18:27:36]line НДС 12% : 21.27 [18:27:36]line Наличными: 200.00 [18:27:36]line Безнал.: 0.00 [18:27:36]line Место: АЗС № 68 "Партнер Нефть" [18:27:36]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:27:36]line СНО: Общий режим [18:27:36]line Чек 289 04.06.2024 18:27 [18:27:36]line Смена: 368 ФФД: 1.0 [18:27:36]line ЗНМ: 0300000035 [18:27:36]line РНМ: 0000000000092720 [18:27:36]line Версия ККМ: 001 [18:27:36]line ФМ: 0000000000875057 [18:27:36]line ФД: 148950 [18:27:36]line ФПД: 250058643102096 [18:27:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182736&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148950&fm=250058643102096&tin=02508201610067®Number=0000000000092720&sum=20000 [18:27:36]OFD Sender: Processing packet 148950 [packets to send 100, broken 99] [18:27:36]ProducePacketName [18:27:36]name=ofd_packets/00148950 [18:27:36]OFD Sender: To server: pG, [18:27:36]CommunicateWithHost lk.salyk.kg:30040 [18:27:36]ConnectInit lk.salyk.kg [18:27:36]written 0, free lines is 4095 [18:27:36]Connected sock=10 [18:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 0C 8B 08 01 D9 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 21 01 00 00 F4 03 04 00 98 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D6 45 02 00 35 04 06 00 E3 6D 50 98 59 90 AF C6 28 4C 57 09 A2 D9 [18:27:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B3 A5 47 00 AB 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D6 45 02 00 F4 03 04 00 BB 03 5F 66 B6 04 01 00 00 37 B1 A1 BD 50 75 B9 B9 [18:27:36]CommunicateWithHost err = 0 [18:27:37]CheckOFDResponse [18:27:37]1017 (14) - 77093643461234 [18:27:37]1041 (16) - 0000000000875057 [18:27:37]1040 (4) - 148950 [18:27:37]1012 (4) - 04.06.2024 12:08 [18:27:37]1206 (1) - 0 [18:27:37]OFD Sender: Remove packet 148950 [18:27:37]ProducePacketName [18:27:37]name=ofd_packets/00148950 [18:27:37]NVStorageDeleteData [18:27:37]Write to MH i2c: 01 00 00 AD 2A D7 [18:27:37]Write i2c OK [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: 01 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: 01 07 00 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: 01 07 00 AD 2A 00 00 00 00 00 9D 0C 87 [18:27:37]RasterBufferAndPrint [18:27:37]line [18:27:37]line [18:27:37]line [18:27:37]line [18:27:37]line [18:27:37]written 0, free lines is 3241 [18:27:37]MH_Cut [18:27:37]Write to MH i2c: D1 01 00 B4 2A 01 B0 [18:27:37]Write i2c OK [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: D1 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: D1 01 00 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: D1 01 00 B4 2A 00 AF [18:27:37]Write to MH i2c: 01 00 00 B5 2A DF [18:27:37]Write i2c OK [18:27:37]MH_I2C_Read... [18:27:37]OFD Sender: No OFD packet to send [18:27:38]*** Cut start [18:27:38]*** Partial cut [18:27:38]*** CUTSNS_PIN = 1 [18:27:38]*** CUTSNS_PIN = 0 [18:27:38]*** Brake cut motor [18:27:38]Read from MH i2c: 01 [18:27:38]MH_I2C_Read... [18:27:38]*** Stop cut motor [18:27:38]*** Cut end [18:27:38]Read from MH i2c: 01 07 00 [18:27:38]MH_I2C_Read... [18:27:38]Read from MH i2c: 01 07 00 B5 2A 00 00 00 00 00 FF 0F F4 [18:27:38]process_action close_receipt done [18:27:38]requested_data is exist [18:27:38]produce_requested_data [18:27:38]requested_item fm.sn is exist - process it [18:27:38]wFMCommunicate request_size=4 [18:27:38]MH_SAM_APDU [18:27:38]CAPDU: 80 11 00 00 [18:27:38]Write to MH i2c: E2 08 00 B6 2A 80 11 00 00 00 00 00 00 5A [18:27:38]Write i2c OK [18:27:38]MH_I2C_Read... [18:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:38]Read from MH i2c: E2 [18:27:38]MH_I2C_Read... [18:27:38]Read from MH i2c: E2 17 00 [18:27:38]MH_I2C_Read... [18:27:38]Read from MH i2c: E2 17 00 B6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AD [18:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:27:38]wFMCommunicate OK [18:27:38]requested_item fd.num is exist - process it [18:27:38]SAM_PROTO_GetFieldsCounters [18:27:38]wFMCommunicate request_size=4 [18:27:38]MH_SAM_APDU [18:27:38]CAPDU: 80 13 00 00 [18:27:38]Write to MH i2c: E2 08 00 B7 2A 80 13 00 00 00 00 00 00 5D [18:27:38]Write i2c OK [18:27:38]MH_I2C_Read... [18:27:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:39]Read from MH i2c: E2 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 62 00 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 62 00 B7 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D6 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [18:27:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D6 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:39]wFMCommunicate OK [18:27:39]SAM_PROTO_GetFieldsCounters done [18:27:39]requested_item shift.num is exist - process it [18:27:39]requested_item shift.opened is exist - process it [18:27:39]req_shift_opened [18:27:39]FM_GetShiftState [18:27:39]SAM_PROTO_GetShiftState [18:27:39]wFMCommunicate request_size=4 [18:27:39]MH_SAM_APDU [18:27:39]CAPDU: 80 13 01 00 [18:27:39]Write to MH i2c: E2 08 00 B8 2A 80 13 01 00 00 00 00 00 5F [18:27:39]Write i2c OK [18:27:39]MH_I2C_Read... [18:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:39]Read from MH i2c: E2 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 0E 00 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 0E 00 B8 2A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 22 [18:27:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:27:39]wFMCommunicate OK [18:27:39]SAM_PROTO_GetShiftState done [18:27:39]FM_GetShiftState done [18:27:39]req_shift_opened done [18:27:39]requested_item shift.open_date is exist - process it [18:27:39]req_shift_open_date [18:27:39]req_shift_open_date done [18:27:39]produce_requested_data done [18:27:39]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148950,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:27:39]process_action_free close_receipt [18:27:39]json_value_free [18:27:39]json_value_free done [18:27:39]process_json_proto returns [18:27:39]Send response to host [18:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148950,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:27:39]free response buf [18:27:39]execute_script done [18:27:39]execute_script returns [18:27:39]free content buf [18:27:39]Sock 7.Close socket [18:27:39]Sock 7.Thread stoped [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:14]accept exits with 9 [18:29:14]New connection [18:29:14]New thread 3067407716 created [18:29:14]Thread 3067264356 joined [18:29:14]Waiting for new connection... [18:29:14] Sock 9.Parse request [18:29:14]Sock 9.Check first char [18:29:14]Sock 9.First char is OK [18:29:14]request: POST /json_proto HTTP/1.0 [18:29:14]Method: POST [18:29:14]URL: /json_proto [18:29:14]Method is POST - this is cgi request [18:29:14]url: /json_proto [18:29:14]query_string will be loaded in cgi processing [18:29:14]execute_cgi json_proto POST (null) [18:29:14]execute_cgi path=json_proto method=POST [18:29:14]POST find Content-Length [18:29:14]Host: 172.17.38.4:8080 [18:29:14]Content-Length: 622 [18:29:14]Content-Type: application/json [18:29:14] [18:29:14]POST finish read [18:29:14]Found Content-Length = 622 [18:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11909", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:14]execute_script... [18:29:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11909", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:14]POST & json_proto [18:29:14]process_json_proto [18:29:14]json parsed OK: [18:29:14]protocol is kg_v1.0 [18:29:14]action value=close_receipt [18:29:14]process_action close_receipt [18:29:14]cmd_close_receipt [18:29:14]MH_GetDate [18:29:14]Write to MH i2c: F0 00 00 B9 2A D2 [18:29:14]Write i2c OK [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: F0 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: F0 09 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: F0 09 00 B9 2A 00 FC 5C 5F 66 CC 51 87 64 00 [18:29:14]GetLastDocTimeStamp 1717525656 [18:29:14]current date 1717525756 [18:29:14]FM_GetShiftState [18:29:14]SAM_PROTO_GetShiftState [18:29:14]wFMCommunicate request_size=4 [18:29:14]MH_SAM_APDU [18:29:14]CAPDU: 80 13 01 00 [18:29:14]Write to MH i2c: E2 08 00 BA 2A 80 13 01 00 00 00 00 00 61 [18:29:14]Write i2c OK [18:29:14]MH_I2C_Read... [18:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:14]Read from MH i2c: E2 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 0E 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 0E 00 BA 2A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 24 [18:29:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:29:14]wFMCommunicate OK [18:29:14]SAM_PROTO_GetShiftState done [18:29:14]FM_GetShiftState done [18:29:14]opened in 1717460629 [18:29:14]opened+sec_in_day 1717547029 [18:29:14]quantity*price = 13000 [18:29:14]sum+1 = 13001 [18:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 290 04.06.2024 18:29 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148951 ФПД: 43365440213445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182916&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148951&fm=43365440213445&tin=02508201610067®Number=0000000000092720&sum=13000 0 [18:29:15]StoreToDocumentArchive [18:29:15]shift 368 fd 148951 [18:29:15]save to /storage/0368/doc_00148951 [18:29:15]save last doc name /storage/0368/doc_00148951 to /storage/kkm_last_doc_name [18:29:15]save OK [18:29:15]Clear old archive folders... [18:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:29:15]tlvbuf is B6E17010 [18:29:15]SAM_PROTO_ClearQueue [18:29:15]wFMCommunicate request_size=4 [18:29:15]MH_SAM_APDU [18:29:15]CAPDU: 80 09 00 00 [18:29:15]Write to MH i2c: E2 08 00 C7 2A 80 09 00 00 00 00 00 00 63 [18:29:15]Write i2c OK [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 [18:29:15]MH_I2C_Read... [18:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:15]Read from MH i2c: E2 03 00 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 03 00 C7 2A 00 90 00 65 [18:29:15]RAPDU: 90 00 [18:29:15]wFMCommunicate OK [18:29:15]SAM_PROTO_ClearQueue done [18:29:15]KKMCreateOFDPacket [18:29:15]OFDProtocolAddRootSTLVToBuf [18:29:15]FM_MakeSignedData [18:29:15]FM_MakeSignedData [18:29:15]SAM_PROTO_SignData [18:29:15]wFMCommunicate request_size=4 [18:29:15]MH_SAM_APDU [18:29:15]CAPDU: 80 0D 01 02 [18:29:15]Write to MH i2c: E2 08 00 C8 2A 80 0D 01 02 00 00 00 00 6B [18:29:15]Write i2c OK [18:29:15]MH_I2C_Read... [18:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:15]Read from MH i2c: E2 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 03 00 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 03 00 C8 2A 00 90 00 66 [18:29:15]RAPDU: 90 00 [18:29:15]wFMCommunicate OK [18:29:15]wFMCommunicate request_size=255 [18:29:15]MH_SAM_APDU [18:29:15]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 FC 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 [18:29:15]Write to MH i2c: E2 02 01 C9 2A 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 FC 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 00 00 E1 [18:29:15]Write i2c OK [18:29:15]MH_I2C_Read... [18:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:15]Read from MH i2c: E2 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 03 00 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 03 00 C9 2A 00 90 00 67 [18:29:15]RAPDU: 90 00 [18:29:15]wFMCommunicate OK [18:29:15]wFMCommunicate request_size=34 [18:29:15]MH_SAM_APDU [18:29:15]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D7 45 02 00 35 04 06 00 27 70 CD A8 D1 C5 [18:29:15]Write to MH i2c: E2 25 00 CA 2A 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D7 45 02 00 35 04 06 00 27 70 CD A8 D1 C5 00 00 EF [18:29:15]Write i2c OK [18:29:15]MH_I2C_Read... [18:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:15]Read from MH i2c: E2 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 03 00 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 03 00 CA 2A 00 90 00 68 [18:29:15]RAPDU: 90 00 [18:29:15]wFMCommunicate OK [18:29:15]wFMCommunicate request_size=4 [18:29:15]MH_SAM_APDU [18:29:15]CAPDU: 80 0D 03 02 [18:29:15]Write to MH i2c: E2 08 00 CB 2A 80 0D 03 02 00 00 00 00 70 [18:29:15]Write i2c OK [18:29:15]MH_I2C_Read... [18:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:15]Read from MH i2c: E2 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 0B 00 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 0B 00 CB 2A 00 B9 CD 0A 42 C1 D3 B4 5B 90 00 E6 [18:29:15]RAPDU: B9 CD 0A 42 C1 D3 B4 5B 90 00 [18:29:15]wFMCommunicate OK [18:29:15]SAM_PROTO_SignData done [18:29:15]FM_MakeSignedData done [18:29:15]CreateOFDProtocolMessage [18:29:15]wFMCommunicate request_size=4 [18:29:15]MH_SAM_APDU [18:29:15]CAPDU: 80 11 00 00 [18:29:15]Write to MH i2c: E2 08 00 CC 2A 80 11 00 00 00 00 00 00 70 [18:29:15]Write i2c OK [18:29:15]MH_I2C_Read... [18:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:15]Read from MH i2c: E2 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 17 00 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: E2 17 00 CC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C3 [18:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:29:15]wFMCommunicate OK [18:29:15]CreateOFDProtocolMessage done [18:29:15]OFDSenderStorePacket 148951 [18:29:15]StoreOFDPacket docnum=148951 [18:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 27 01 00 00 5E 2B 1F 01 B6 5A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 FC 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D7 45 02 00 35 04 06 00 27 70 CD A8 D1 C5 B9 CD 0A 42 C1 D3 B4 5B [18:29:15]CheckFolder [18:29:15]dirname=/storage/ofd_packets [18:29:15]CheckFolder done [18:29:15]ProducePacketName [18:29:15]name=ofd_packets/00148951 [18:29:15]NVStorageSaveData ofd_packets/00148951 [18:29:15]File name is /storage/ofd_packets/00148951 [18:29:15]Write 325 bytes [18:29:15]NVStorageSaveData done [18:29:15]OFDSenderStorePacket done [18:29:15]KKMCreateOFDPacket done [18:29:15]NVStorageSaveData kkm_last_timestamp [18:29:15]File name is /storage/kkm_last_timestamp [18:29:15]Write 4 bytes [18:29:15]NVStorageSaveData done [18:29:15]ExternCall_PrintAddStr [18:29:15]wPrintStart [18:29:15]Write to MH i2c: 01 00 00 CD 2A F7 [18:29:15]Write i2c OK [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: 01 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: 01 07 00 [18:29:15]MH_I2C_Read... [18:29:15]Read from MH i2c: 01 07 00 CD 2A 00 00 00 00 00 FF 0F 0C [18:29:15]RasterBufferAndPrint [18:29:15]line Счет N : (3)11909 [18:29:15]line ИНН: 02508201610067 [18:29:15]line Контрольно-Кассовый Чек [18:29:15]line ПРОДАЖА [18:29:15]line Товар: 48741415 [18:29:15]line Сигареты LD Super Slims Violet [18:29:15]line 1.000 * 130.00 [18:29:15]line = 130.00 [18:29:15]line НДС 12% НСП 1% [18:29:15]line > о реализуемом товаре [18:29:15]line ИТОГО: 130.00 [18:29:15]line НСП 1% : 1.15 [18:29:15]line НДС 12% : 13.80 [18:29:15]line Наличными: 130.00 [18:29:15]line Безнал.: 0.00 [18:29:15]line Место: АЗС № 68 "Партнер Нефть" [18:29:15]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:29:15]line СНО: Общий режим [18:29:15]line Чек 290 04.06.2024 18:29 [18:29:15]line Смена: 368 ФФД: 1.0 [18:29:15]line ЗНМ: 0300000035 [18:29:15]line РНМ: 0000000000092720 [18:29:15]line Версия ККМ: 001 [18:29:15]line ФМ: 0000000000875057 [18:29:15]line ФД: 148951 [18:29:15]line ФПД: 43365440213445 [18:29:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182916&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148951&fm=43365440213445&tin=02508201610067®Number=0000000000092720&sum=13000 [18:29:16]line 0 [18:29:16]OFD Sender: Processing packet 148951 [packets to send 100, broken 99] [18:29:16]ProducePacketName [18:29:16]name=ofd_packets/00148951 [18:29:16]OFD Sender: To server: pG, [18:29:16]CommunicateWithHost lk.salyk.kg:30040 [18:29:16]ConnectInit lk.salyk.kg [18:29:16]written 0, free lines is 4095 [18:29:16]Connected sock=10 [18:29:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 27 01 00 00 5E 2B 1F 01 B6 5A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 FC 5C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D7 45 02 00 35 04 06 00 27 70 CD A8 D1 C5 B9 CD 0A 42 C1 D3 B4 5B [18:29:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 4B CD 47 00 3F 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 38 37 35 30 35 37 10 04 04 00 D7 45 02 00 F4 03 04 00 1F 04 5F 66 B6 04 01 00 00 19 82 13 65 D5 A4 9C 55 [18:29:16]CommunicateWithHost err = 0 [18:29:16]CheckOFDResponse [18:29:16]1017 (14) - 77093643461234 [18:29:16]1041 (16) - 0000000000875057 [18:29:16]1040 (4) - 148951 [18:29:16]1012 (4) - 04.06.2024 12:10 [18:29:16]1206 (1) - 0 [18:29:16]OFD Sender: Remove packet 148951 [18:29:16]ProducePacketName [18:29:16]name=ofd_packets/00148951 [18:29:16]NVStorageDeleteData [18:29:16]Write to MH i2c: 01 00 00 F6 2A 20 [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: 01 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: 01 07 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: 01 07 00 F6 2A 00 00 00 00 00 AC 0C DF [18:29:16]RasterBufferAndPrint [18:29:16]line [18:29:16]line [18:29:16]line [18:29:16]line [18:29:16]line [18:29:16]written 0, free lines is 3247 [18:29:16]MH_Cut [18:29:16]Write to MH i2c: D1 01 00 FD 2A 01 F9 [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: D1 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: D1 01 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: D1 01 00 FD 2A 00 F8 [18:29:16]Write to MH i2c: 01 00 00 FE 2A 28 [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:17]OFD Sender: No OFD packet to send [18:29:17]*** Cut start [18:29:17]*** Partial cut [18:29:17]*** CUTSNS_PIN = 1 [18:29:17]*** CUTSNS_PIN = 0 [18:29:17]*** Brake cut motor [18:29:18]Read from MH i2c: 01 [18:29:18]MH_I2C_Read... [18:29:18]*** Stop cut motor [18:29:18]*** Cut end [18:29:18]Read from MH i2c: 01 07 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: 01 07 00 FE 2A 00 00 00 00 00 FF 0F 3D [18:29:18]process_action close_receipt done [18:29:18]requested_data is exist [18:29:18]produce_requested_data [18:29:18]requested_item fm.sn is exist - process it [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 11 00 00 [18:29:18]Write to MH i2c: E2 08 00 FF 2A 80 11 00 00 00 00 00 00 A3 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 17 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 17 00 FF 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F6 [18:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:29:18]wFMCommunicate OK [18:29:18]requested_item fd.num is exist - process it [18:29:18]SAM_PROTO_GetFieldsCounters [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 13 00 00 [18:29:18]Write to MH i2c: E2 08 00 00 2B 80 13 00 00 00 00 00 00 A7 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 62 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 62 00 00 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D7 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [18:29:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D7 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:18]wFMCommunicate OK [18:29:18]SAM_PROTO_GetFieldsCounters done [18:29:18]requested_item shift.num is exist - process it [18:29:18]requested_item shift.opened is exist - process it [18:29:18]req_shift_opened [18:29:18]FM_GetShiftState [18:29:18]SAM_PROTO_GetShiftState [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 13 01 00 [18:29:18]Write to MH i2c: E2 08 00 01 2B 80 13 01 00 00 00 00 00 A9 [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:18]Read from MH i2c: E2 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 0E 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: E2 0E 00 01 2B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6C [18:29:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:29:18]wFMCommunicate OK [18:29:18]SAM_PROTO_GetShiftState done [18:29:18]FM_GetShiftState done [18:29:18]req_shift_opened done [18:29:18]requested_item shift.open_date is exist - process it [18:29:18]req_shift_open_date [18:29:18]req_shift_open_date done [18:29:18]produce_requested_data done [18:29:18]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148951,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:29:18]process_action_free close_receipt [18:29:18]json_value_free [18:29:18]json_value_free done [18:29:18]process_json_proto returns [18:29:18]Send response to host [18:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148951,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:29:18]free response buf [18:29:18]execute_script done [18:29:18]execute_script returns [18:29:18]free content buf [18:29:18]Sock 9.Close socket [18:29:18]Sock 9.Thread stoped [18:29:18]accept exits with 7 [18:29:18]New connection [18:29:18]New thread 3067264356 created [18:29:18]Thread 3067407716 joined [18:29:18]Waiting for new connection... [18:29:18] Sock 7.Parse request [18:29:18]Sock 7.Check first char [18:29:18]Sock 7.First char is OK [18:29:18]request: POST /json_proto HTTP/1.0 [18:29:18]Method: POST [18:29:18]URL: /json_proto [18:29:18]Method is POST - this is cgi request [18:29:18]url: /json_proto [18:29:18]query_string will be loaded in cgi processing [18:29:18]execute_cgi json_proto POST (null) [18:29:18]execute_cgi path=json_proto method=POST [18:29:18]POST find Content-Length [18:29:18]Host: 172.17.38.4:8080 [18:29:18]Content-Length: 677 [18:29:18]Content-Type: application/json [18:29:18] [18:29:18]POST finish read [18:29:18]Found Content-Length = 677 [18:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:18]execute_script... [18:29: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)979885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:18]POST & json_proto [18:29:18]process_json_proto [18:29:18]json parsed OK: [18:29:18]protocol is kg_v1.0 [18:29:18]action value=close_receipt [18:29:18]process_action close_receipt [18:29:18]cmd_close_receipt [18:29:18]MH_GetDate [18:29:18]Write to MH i2c: F0 00 00 02 2B 1C [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: F0 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: F0 09 00 [18:29:18]MH_I2C_Read... [18:29:18]Read from MH i2c: F0 09 00 02 2B 00 01 5D 5F 66 CC 51 87 64 50 [18:29:18]GetLastDocTimeStamp 1717525756 [18:29:18]current date 1717525761 [18:29:18]FM_GetShiftState [18:29:18]SAM_PROTO_GetShiftState [18:29:18]wFMCommunicate request_size=4 [18:29:18]MH_SAM_APDU [18:29:18]CAPDU: 80 13 01 00 [18:29:18]Write to MH i2c: E2 08 00 03 2B 80 13 01 00 00 00 00 00 AB [18:29:18]Write i2c OK [18:29:18]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 0E 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 0E 00 03 2B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6E [18:29:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:29:19]wFMCommunicate OK [18:29:19]SAM_PROTO_GetShiftState done [18:29:19]FM_GetShiftState done [18:29:19]opened in 1717460629 [18:29:19]opened+sec_in_day 1717547029 [18:29:19]quantity*price = 50041 [18:29:19]sum+1 = 50042 [18:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 291 04.06.2024 18:29 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148952 ФПД: 86966943505036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182921&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148952&fm=86966943505036&tin=02508201610067®Number=0000000000092720&sum=50000 [18:29:20]StoreToDocumentArchive [18:29:20]shift 368 fd 148952 [18:29:20]save to /storage/0368/doc_00148952 [18:29:20]save last doc name /storage/0368/doc_00148952 to /storage/kkm_last_doc_name [18:29:20]save OK [18:29:20]Clear old archive folders... [18:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:20]tlvbuf is 004E9330 [18:29:20]SAM_PROTO_ClearQueue [18:29:20]wFMCommunicate request_size=4 [18:29:20]MH_SAM_APDU [18:29:20]CAPDU: 80 09 00 00 [18:29:20]Write to MH i2c: E2 08 00 10 2B 80 09 00 00 00 00 00 00 AD [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:20]Read from MH i2c: E2 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 03 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 03 00 10 2B 00 90 00 AF [18:29:20]RAPDU: 90 00 [18:29:20]wFMCommunicate OK [18:29:20]SAM_PROTO_ClearQueue done [18:29:20]KKMCreateOFDPacket [18:29:20]OFDProtocolAddRootSTLVToBuf [18:29:20]FM_MakeSignedData [18:29:20]FM_MakeSignedData [18:29:20]SAM_PROTO_SignData [18:29:20]wFMCommunicate request_size=4 [18:29:20]MH_SAM_APDU [18:29:20]CAPDU: 80 0D 01 02 [18:29:20]Write to MH i2c: E2 08 00 11 2B 80 0D 01 02 00 00 00 00 B5 [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:20]Read from MH i2c: E2 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 03 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 03 00 11 2B 00 90 00 B0 [18:29:20]RAPDU: 90 00 [18:29:20]wFMCommunicate OK [18:29:20]wFMCommunicate request_size=255 [18:29:20]MH_SAM_APDU [18:29:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 01 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D8 45 02 00 35 04 06 00 4F [18:29:20]Write to MH i2c: E2 02 01 12 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 01 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D8 45 02 00 35 04 06 00 4F 00 00 65 [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:20]Read from MH i2c: E2 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 03 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 03 00 12 2B 00 90 00 B1 [18:29:20]RAPDU: 90 00 [18:29:20]wFMCommunicate OK [18:29:20]wFMCommunicate request_size=10 [18:29:20]MH_SAM_APDU [18:29:20]CAPDU: 80 0D 02 02 05 18 91 C6 5A 8C [18:29:20]Write to MH i2c: E2 0D 00 13 2B 80 0D 02 02 05 00 18 91 C6 5A 8C 00 00 17 [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:20]Read from MH i2c: E2 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 03 00 [18:29:20]MH_I2C_Read... [18:29:20]Read from MH i2c: E2 03 00 13 2B 00 90 00 B2 [18:29:20]RAPDU: 90 00 [18:29:20]wFMCommunicate OK [18:29:20]wFMCommunicate request_size=4 [18:29:20]MH_SAM_APDU [18:29:20]CAPDU: 80 0D 03 02 [18:29:20]Write to MH i2c: E2 08 00 14 2B 80 0D 03 02 00 00 00 00 BA [18:29:20]Write i2c OK [18:29:20]MH_I2C_Read... [18:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:21]Read from MH i2c: E2 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: E2 0B 00 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: E2 0B 00 14 2B 00 9F A2 9A B1 73 B1 12 0D 90 00 8A [18:29:21]RAPDU: 9F A2 9A B1 73 B1 12 0D 90 00 [18:29:21]wFMCommunicate OK [18:29:21]SAM_PROTO_SignData done [18:29:21]FM_MakeSignedData done [18:29:21]CreateOFDProtocolMessage [18:29:21]wFMCommunicate request_size=4 [18:29:21]MH_SAM_APDU [18:29:21]CAPDU: 80 11 00 00 [18:29:21]Write to MH i2c: E2 08 00 15 2B 80 11 00 00 00 00 00 00 BA [18:29:21]Write i2c OK [18:29:21]MH_I2C_Read... [18:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:21]Read from MH i2c: E2 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: E2 17 00 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: E2 17 00 15 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0D [18:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:29:21]wFMCommunicate OK [18:29:21]CreateOFDProtocolMessage done [18:29:21]OFDSenderStorePacket 148952 [18:29:21]StoreOFDPacket docnum=148952 [18:29:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 16 60 07 01 9D 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 01 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D8 45 02 00 35 04 06 00 4F 18 91 C6 5A 8C 9F A2 9A B1 73 B1 12 0D [18:29:21]CheckFolder [18:29:21]dirname=/storage/ofd_packets [18:29:21]CheckFolder done [18:29:21]ProducePacketName [18:29:21]name=ofd_packets/00148952 [18:29:21]NVStorageSaveData ofd_packets/00148952 [18:29:21]File name is /storage/ofd_packets/00148952 [18:29:21]Write 301 bytes [18:29:21]NVStorageSaveData done [18:29:21]OFDSenderStorePacket done [18:29:21]KKMCreateOFDPacket done [18:29:21]NVStorageSaveData kkm_last_timestamp [18:29:21]File name is /storage/kkm_last_timestamp [18:29:21]Write 4 bytes [18:29:21]NVStorageSaveData done [18:29:21]ExternCall_PrintAddStr [18:29:21]wPrintStart [18:29:21]Write to MH i2c: 01 00 00 16 2B 41 [18:29:21]Write i2c OK [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: 01 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: 01 07 00 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: 01 07 00 16 2B 00 00 00 00 00 FF 0F 56 [18:29:21]RasterBufferAndPrint [18:29:21]line Счет N : (1)979885 [18:29:21]line ИНН: 02508201610067 [18:29:21]line Контрольно-Кассовый Чек [18:29:21]line ПРОДАЖА [18:29:21]line ТРК (МРК, ГНК) : 41 [18:29:21]line Товар: 2710124130 [18:29:21]line Аи-92-К-5 [18:29:21]line 7.480 * 66.90 [18:29:21]line = 500.41 [18:29:21]line НДС 12% НСП 1% [18:29:21]line > о реализуемом товаре [18:29:21]line ОКРУГЛЕНИЕ: -0.41 [18:29:21]line ИТОГО: 500.00 [18:29:21]line Внесено: 500.00 [18:29:21]line СДАЧА: 0.00 [18:29:21]line НСП 1% : 4.43 [18:29:21]line НДС 12% : 53.14 [18:29:21]line Наличными: 500.00 [18:29:21]line Безнал.: 0.00 [18:29:21]line Место: АЗС № 68 "Партнер Нефть" [18:29:21]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:29:21]line СНО: Общий режим [18:29:21]line Чек 291 04.06.2024 18:29 [18:29:21]line Смена: 368 ФФД: 1.0 [18:29:21]line ЗНМ: 0300000035 [18:29:21]line РНМ: 0000000000092720 [18:29:21]line Версия ККМ: 001 [18:29:21]line ФМ: 0000000000875057 [18:29:21]line ФД: 148952 [18:29:21]line ФПД: 86966943505036 [18:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182921&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148952&fm=86966943505036&tin=02508201610067®Number=0000000000092720&sum=50000 [18:29:21]written 0, free lines is 4095 [18:29:21]OFD Sender: Processing packet 148952 [packets to send 100, broken 99] [18:29:21]ProducePacketName [18:29:21]name=ofd_packets/00148952 [18:29:21]OFD Sender: To server: pG, [18:29:21]CommunicateWithHost lk.salyk.kg:30040 [18:29:21]ConnectInit lk.salyk.kg [18:29:21]Connected sock=10 [18:29:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 16 60 07 01 9D 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 01 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D8 45 02 00 35 04 06 00 4F 18 91 C6 5A 8C 9F A2 9A B1 73 B1 12 0D [18:29:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CC DC 47 00 0C 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D8 45 02 00 F4 03 04 00 24 04 5F 66 B6 04 01 00 00 77 89 97 1B 6E 97 F8 C9 [18:29:21]CommunicateWithHost err = 0 [18:29:21]CheckOFDResponse [18:29:21]1017 (14) - 77093643461234 [18:29:21]1041 (16) - 0000000000875057 [18:29:21]1040 (4) - 148952 [18:29:21]1012 (4) - 04.06.2024 12:10 [18:29:21]1206 (1) - 0 [18:29:21]OFD Sender: Remove packet 148952 [18:29:21]ProducePacketName [18:29:21]name=ofd_packets/00148952 [18:29:21]NVStorageDeleteData [18:29:21]Write to MH i2c: 01 00 00 41 2B 6C [18:29:21]Write i2c OK [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: 01 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: 01 07 00 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: 01 07 00 41 2B 00 00 00 00 00 B2 0C 31 [18:29:21]RasterBufferAndPrint [18:29:21]line [18:29:21]line [18:29:21]line [18:29:21]line [18:29:21]line [18:29:21]written 0, free lines is 3257 [18:29:21]MH_Cut [18:29:21]Write to MH i2c: D1 01 00 48 2B 01 45 [18:29:21]Write i2c OK [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: D1 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: D1 01 00 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: D1 01 00 48 2B 00 44 [18:29:21]Write to MH i2c: 01 00 00 49 2B 74 [18:29:21]Write i2c OK [18:29:21]MH_I2C_Read... [18:29:22]OFD Sender: No OFD packet to send [18:29:22]*** Cut start [18:29:22]*** Partial cut [18:29:22]*** CUTSNS_PIN = 1 [18:29:22]*** CUTSNS_PIN = 0 [18:29:22]*** Brake cut motor [18:29:23]Read from MH i2c: 01 [18:29:23]MH_I2C_Read... [18:29:23]*** Stop cut motor [18:29:23]*** Cut end [18:29:23]Read from MH i2c: 01 07 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: 01 07 00 49 2B 00 00 00 00 00 FF 0F 89 [18:29:23]process_action close_receipt done [18:29:23]requested_data is exist [18:29:23]produce_requested_data [18:29:23]requested_item fm.sn is exist - process it [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 11 00 00 [18:29:23]Write to MH i2c: E2 08 00 4A 2B 80 11 00 00 00 00 00 00 EF [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 17 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 17 00 4A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 42 [18:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:29:23]wFMCommunicate OK [18:29:23]requested_item fd.num is exist - process it [18:29:23]SAM_PROTO_GetFieldsCounters [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 13 00 00 [18:29:23]Write to MH i2c: E2 08 00 4B 2B 80 13 00 00 00 00 00 00 F2 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 62 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 62 00 4B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [18:29:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:23]wFMCommunicate OK [18:29:23]SAM_PROTO_GetFieldsCounters done [18:29:23]requested_item shift.num is exist - process it [18:29:23]requested_item shift.opened is exist - process it [18:29:23]req_shift_opened [18:29:23]FM_GetShiftState [18:29:23]SAM_PROTO_GetShiftState [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 13 01 00 [18:29:23]Write to MH i2c: E2 08 00 4C 2B 80 13 01 00 00 00 00 00 F4 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 0E 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 0E 00 4C 2B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B7 [18:29:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:29:23]wFMCommunicate OK [18:29:23]SAM_PROTO_GetShiftState done [18:29:23]FM_GetShiftState done [18:29:23]req_shift_opened done [18:29:23]requested_item shift.open_date is exist - process it [18:29:23]req_shift_open_date [18:29:23]req_shift_open_date done [18:29:23]produce_requested_data done [18:29:23]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148952,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:29:23]process_action_free close_receipt [18:29:23]json_value_free [18:29:23]json_value_free done [18:29:23]process_json_proto returns [18:29:23]Send response to host [18:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148952,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:29:23]free response buf [18:29:23]execute_script done [18:29:23]execute_script returns [18:29:23]free content buf [18:29:23]Sock 7.Close socket [18:29:23]Sock 7.Thread stoped [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:38]accept exits with 9 [18:29:38]New connection [18:29:38]New thread 3067407716 created [18:29:38]Thread 3067264356 joined [18:29:38]Waiting for new connection... [18:29:38] Sock 9.Parse request [18:29:38]Sock 9.Check first char [18:29:38]Sock 9.First char is OK [18:29:38]request: POST /json_proto HTTP/1.0 [18:29:38]Method: POST [18:29:38]URL: /json_proto [18:29:38]Method is POST - this is cgi request [18:29:38]url: /json_proto [18:29:38]query_string will be loaded in cgi processing [18:29:38]execute_cgi json_proto POST (null) [18:29:38]execute_cgi path=json_proto method=POST [18:29:38]POST find Content-Length [18:29:38]Host: 172.17.38.4:8080 [18:29:38]Content-Length: 977 [18:29:38]Content-Type: application/json [18:29:38] [18:29:38]POST finish read [18:29:38]Found Content-Length = 977 [18:29:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.55 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:38]execute_script... [18:29: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)979883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.55 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:38]POST & json_proto [18:29:38]process_json_proto [18:29:38]json parsed OK: [18:29:38]protocol is kg_v1.0 [18:29:38]action value=close_receipt [18:29:38]process_action close_receipt [18:29:38]cmd_close_receipt [18:29:38]MH_GetDate [18:29:38]Write to MH i2c: F0 00 00 4D 2B 67 [18:29:38]Write i2c OK [18:29:38]MH_I2C_Read... [18:29:38]Read from MH i2c: F0 [18:29:38]MH_I2C_Read... [18:29:38]Read from MH i2c: F0 09 00 [18:29:38]MH_I2C_Read... [18:29:38]Read from MH i2c: F0 09 00 4D 2B 00 14 5D 5F 66 CC 51 87 64 AE [18:29:38]GetLastDocTimeStamp 1717525761 [18:29:38]current date 1717525780 [18:29:38]FM_GetShiftState [18:29:38]SAM_PROTO_GetShiftState [18:29:38]wFMCommunicate request_size=4 [18:29:38]MH_SAM_APDU [18:29:38]CAPDU: 80 13 01 00 [18:29:38]Write to MH i2c: E2 08 00 4E 2B 80 13 01 00 00 00 00 00 F6 [18:29:38]Write i2c OK [18:29:38]MH_I2C_Read... [18:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:38]Read from MH i2c: E2 [18:29:38]MH_I2C_Read... [18:29:38]Read from MH i2c: E2 0E 00 [18:29:38]MH_I2C_Read... [18:29:38]Read from MH i2c: E2 0E 00 4E 2B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B9 [18:29:38]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:29:38]wFMCommunicate OK [18:29:38]SAM_PROTO_GetShiftState done [18:29:38]FM_GetShiftState done [18:29:38]opened in 1717460629 [18:29:38]opened+sec_in_day 1717547029 [18:29:38]quantity*price = 500064 [18:29:38]sum+1 = 500066 [18:29:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 292 04.06.2024 18:29 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа ДТ номер 68 сэкономлено 69.55 сом ФМ: 0000000000875057 ФД: 148953 ФПД: 115088365118805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182940&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148953&fm=115088365118805&tin=02508201610067®Number=0000000000092720&sum=500000 [18:29:39]StoreToDocumentArchive [18:29:39]shift 368 fd 148953 [18:29:39]save to /storage/0368/doc_00148953 [18:29:39]save last doc name /storage/0368/doc_00148953 to /storage/kkm_last_doc_name [18:29:39]save OK [18:29:39]Clear old archive folders... [18:29:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:29:39]tlvbuf is 004669F0 [18:29:39]SAM_PROTO_ClearQueue [18:29:39]wFMCommunicate request_size=4 [18:29:39]MH_SAM_APDU [18:29:39]CAPDU: 80 09 00 00 [18:29:39]Write to MH i2c: E2 08 00 5B 2B 80 09 00 00 00 00 00 00 F8 [18:29:39]Write i2c OK [18:29:39]MH_I2C_Read... [18:29:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:39]Read from MH i2c: E2 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 03 00 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 03 00 5B 2B 00 90 00 FA [18:29:39]RAPDU: 90 00 [18:29:39]wFMCommunicate OK [18:29:39]SAM_PROTO_ClearQueue done [18:29:39]KKMCreateOFDPacket [18:29:39]OFDProtocolAddRootSTLVToBuf [18:29:39]FM_MakeSignedData [18:29:39]FM_MakeSignedData [18:29:39]SAM_PROTO_SignData [18:29:39]wFMCommunicate request_size=4 [18:29:39]MH_SAM_APDU [18:29:39]CAPDU: 80 0D 01 02 [18:29:39]Write to MH i2c: E2 08 00 5C 2B 80 0D 01 02 00 00 00 00 00 [18:29:39]Write i2c OK [18:29:39]MH_I2C_Read... [18:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:39]Read from MH i2c: E2 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 03 00 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 03 00 5C 2B 00 90 00 FB [18:29:39]RAPDU: 90 00 [18:29:39]wFMCommunicate OK [18:29:39]wFMCommunicate request_size=255 [18:29:39]MH_SAM_APDU [18:29:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 14 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D9 45 02 00 35 04 06 00 68 AC 19 1E [18:29:39]Write to MH i2c: E2 02 01 5D 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 14 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D9 45 02 00 35 04 06 00 68 AC 19 1E 00 00 B1 [18:29:39]Write i2c OK [18:29:39]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 5D 2B 00 90 00 FC [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=7 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 02 02 02 E5 55 [18:29:40]Write to MH i2c: E2 0A 00 5E 2B 80 0D 02 02 02 00 E5 55 00 00 41 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 5E 2B 00 90 00 FD [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 03 02 [18:29:40]Write to MH i2c: E2 08 00 5F 2B 80 0D 03 02 00 00 00 00 05 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 0B 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 0B 00 5F 2B 00 B7 AE 2A D5 4D 02 E8 53 90 00 F4 [18:29:40]RAPDU: B7 AE 2A D5 4D 02 E8 53 90 00 [18:29:40]wFMCommunicate OK [18:29:40]SAM_PROTO_SignData done [18:29:40]FM_MakeSignedData done [18:29:40]CreateOFDProtocolMessage [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 11 00 00 [18:29:40]Write to MH i2c: E2 08 00 60 2B 80 11 00 00 00 00 00 00 05 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 17 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 17 00 60 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 58 [18:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:29:40]wFMCommunicate OK [18:29:40]CreateOFDProtocolMessage done [18:29:40]OFDSenderStorePacket 148953 [18:29:40]StoreOFDPacket docnum=148953 [18:29:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 9E 03 04 01 0F 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 14 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D9 45 02 00 35 04 06 00 68 AC 19 1E E5 55 B7 AE 2A D5 4D 02 E8 53 [18:29:40]CheckFolder [18:29:40]dirname=/storage/ofd_packets [18:29:40]CheckFolder done [18:29:40]ProducePacketName [18:29:40]name=ofd_packets/00148953 [18:29:40]NVStorageSaveData ofd_packets/00148953 [18:29:40]File name is /storage/ofd_packets/00148953 [18:29:40]Write 298 bytes [18:29:40]NVStorageSaveData done [18:29:40]OFDSenderStorePacket done [18:29:40]KKMCreateOFDPacket done [18:29:40]NVStorageSaveData kkm_last_timestamp [18:29:40]File name is /storage/kkm_last_timestamp [18:29:40]Write 4 bytes [18:29:40]NVStorageSaveData done [18:29:40]ExternCall_PrintAddStr [18:29:40]wPrintStart [18:29:40]Write to MH i2c: 01 00 00 61 2B 8C [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 07 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 07 00 61 2B 00 00 00 00 00 FF 0F A1 [18:29:40]RasterBufferAndPrint [18:29:40]line Счет N : (1)979883 [18:29:40]line ИНН: 02508201610067 [18:29:40]line Контрольно-Кассовый Чек [18:29:40]line ПРОДАЖА [18:29:40]line ТРК (МРК, ГНК) : 51 [18:29:40]line Товар: 2710194210 [18:29:40]line ДТ-К-5 [18:29:40]line 69.550 * 71.90 [18:29:40]line = 5000.65 [18:29:40]line НДС 12% НСП 1% [18:29:40]line > о реализуемом товаре [18:29:40]line ОКРУГЛЕНИЕ: -0.65 [18:29:40]line ИТОГО: 5000.00 [18:29:40]line Внесено: 5000.00 [18:29:40]line СДАЧА: 0.00 [18:29:40]line НСП 1% : 44.25 [18:29:40]line НДС 12% : 531.04 [18:29:40]line Наличными: 5000.00 [18:29:40]line Безнал.: 0.00 [18:29:40]line Место: АЗС № 68 "Партнер Нефть" [18:29:40]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:29:40]line СНО: Общий режим [18:29:40]line Чек 292 04.06.2024 18:29 [18:29:40]line Смена: 368 ФФД: 1.0 [18:29:40]line ЗНМ: 0300000035 [18:29:40]line РНМ: 0000000000092720 [18:29:40]line Версия ККМ: 001 [18:29:40]line [18:29:40]line Дисконтная программа [18:29:40]line ДТ [18:29:40]line номер 68 [18:29:40]line сэкономлено 69.55 сом [18:29:40]line ФМ: 0000000000875057 [18:29:40]line ФД: 148953 [18:29:40]line ФПД: 115088365118805 [18:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182940&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148953&fm=115088365118805&tin=02508201610067®Number=0000000000092720&sum=500000 [18:29:40]written 0, free lines is 4095 [18:29:40]OFD Sender: Processing packet 148953 [packets to send 100, broken 99] [18:29:40]ProducePacketName [18:29:40]name=ofd_packets/00148953 [18:29:40]OFD Sender: To server: pG, [18:29:40]CommunicateWithHost lk.salyk.kg:30040 [18:29:40]ConnectInit lk.salyk.kg [18:29:40]Connected sock=10 [18:29:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 9E 03 04 01 0F 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 14 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 D9 45 02 00 35 04 06 00 68 AC 19 1E E5 55 B7 AE 2A D5 4D 02 E8 53 [18:29:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 81 6B 47 00 78 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 38 37 35 30 35 37 10 04 04 00 D9 45 02 00 F4 03 04 00 37 04 5F 66 B6 04 01 00 00 4E D7 66 E1 B0 DD AC A8 [18:29:40]CommunicateWithHost err = 0 [18:29:40]CheckOFDResponse [18:29:40]1017 (14) - 77093643461234 [18:29:40]1041 (16) - 0000000000875057 [18:29:40]1040 (4) - 148953 [18:29:40]1012 (4) - 04.06.2024 12:10 [18:29:40]1206 (1) - 0 [18:29:40]OFD Sender: Remove packet 148953 [18:29:40]ProducePacketName [18:29:40]name=ofd_packets/00148953 [18:29:40]NVStorageDeleteData [18:29:40]Write to MH i2c: 01 00 00 91 2B BC [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 07 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 07 00 91 2B 00 00 00 00 00 32 0C 01 [18:29:40]RasterBufferAndPrint [18:29:40]line [18:29:40]line [18:29:40]line [18:29:40]line [18:29:40]line [18:29:40]written 0, free lines is 3131 [18:29:40]MH_Cut [18:29:40]Write to MH i2c: D1 01 00 98 2B 01 95 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: D1 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: D1 01 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: D1 01 00 98 2B 00 94 [18:29:40]Write to MH i2c: 01 00 00 99 2B C4 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:41]OFD Sender: No OFD packet to send [18:29:41]*** Cut start [18:29:41]*** Partial cut [18:29:41]*** CUTSNS_PIN = 1 [18:29:41]*** CUTSNS_PIN = 0 [18:29:42]*** Brake cut motor [18:29:42]Read from MH i2c: 01 [18:29:42]MH_I2C_Read... [18:29:42]*** Stop cut motor [18:29:42]*** Cut end [18:29:42]Read from MH i2c: 01 07 00 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: 01 07 00 99 2B 00 00 00 00 00 FF 0F D9 [18:29:42]process_action close_receipt done [18:29:42]requested_data is exist [18:29:42]produce_requested_data [18:29:42]requested_item fm.sn is exist - process it [18:29:42]wFMCommunicate request_size=4 [18:29:42]MH_SAM_APDU [18:29:42]CAPDU: 80 11 00 00 [18:29:42]Write to MH i2c: E2 08 00 9A 2B 80 11 00 00 00 00 00 00 3F [18:29:42]Write i2c OK [18:29:42]MH_I2C_Read... [18:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:42]Read from MH i2c: E2 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 17 00 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 17 00 9A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 92 [18:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:29:42]wFMCommunicate OK [18:29:42]requested_item fd.num is exist - process it [18:29:42]SAM_PROTO_GetFieldsCounters [18:29:42]wFMCommunicate request_size=4 [18:29:42]MH_SAM_APDU [18:29:42]CAPDU: 80 13 00 00 [18:29:42]Write to MH i2c: E2 08 00 9B 2B 80 13 00 00 00 00 00 00 42 [18:29:42]Write i2c OK [18:29:42]MH_I2C_Read... [18:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:42]Read from MH i2c: E2 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 62 00 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 62 00 9B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D9 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [18:29:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 D9 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:42]wFMCommunicate OK [18:29:42]SAM_PROTO_GetFieldsCounters done [18:29:42]requested_item shift.num is exist - process it [18:29:42]requested_item shift.opened is exist - process it [18:29:42]req_shift_opened [18:29:42]FM_GetShiftState [18:29:42]SAM_PROTO_GetShiftState [18:29:42]wFMCommunicate request_size=4 [18:29:42]MH_SAM_APDU [18:29:42]CAPDU: 80 13 01 00 [18:29:42]Write to MH i2c: E2 08 00 9C 2B 80 13 01 00 00 00 00 00 44 [18:29:42]Write i2c OK [18:29:42]MH_I2C_Read... [18:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:42]Read from MH i2c: E2 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 0E 00 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 0E 00 9C 2B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 07 [18:29:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:29:42]wFMCommunicate OK [18:29:42]SAM_PROTO_GetShiftState done [18:29:42]FM_GetShiftState done [18:29:42]req_shift_opened done [18:29:42]requested_item shift.open_date is exist - process it [18:29:42]req_shift_open_date [18:29:42]req_shift_open_date done [18:29:42]produce_requested_data done [18:29:42]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148953,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:29:42]process_action_free close_receipt [18:29:42]json_value_free [18:29:42]json_value_free done [18:29:42]process_json_proto returns [18:29:42]Send response to host [18:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148953,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:29:42]free response buf [18:29:42]execute_script done [18:29:42]execute_script returns [18:29:42]free content buf [18:29:42]Sock 9.Close socket [18:29:42]Sock 9.Thread stoped [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:07]accept exits with 7 [18:31:07]New connection [18:31:07]New thread 3067264356 created [18:31:07]Thread 3067407716 joined [18:31:07]Waiting for new connection... [18:31:07] Sock 7.Parse request [18:31:07]Sock 7.Check first char [18:31:07]Sock 7.First char is OK [18:31:07]request: POST /json_proto HTTP/1.0 [18:31:07]Method: POST [18:31:07]URL: /json_proto [18:31:07]Method is POST - this is cgi request [18:31:07]url: /json_proto [18:31:07]query_string will be loaded in cgi processing [18:31:07]execute_cgi json_proto POST (null) [18:31:07]execute_cgi path=json_proto method=POST [18:31:07]POST find Content-Length [18:31:07]Host: 172.17.38.4:8080 [18:31:07]Content-Length: 677 [18:31:07]Content-Type: application/json [18:31:07] [18:31:07]POST finish read [18:31:07]Found Content-Length = 677 [18:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:07]execute_script... [18:31: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)979886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:07]POST & json_proto [18:31:07]process_json_proto [18:31:07]json parsed OK: [18:31:07]protocol is kg_v1.0 [18:31:07]action value=close_receipt [18:31:07]process_action close_receipt [18:31:07]cmd_close_receipt [18:31:07]MH_GetDate [18:31:07]Write to MH i2c: F0 00 00 9D 2B B7 [18:31:07]Write i2c OK [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: F0 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: F0 09 00 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: F0 09 00 9D 2B 00 6D 5D 5F 66 CC 51 87 64 57 [18:31:07]GetLastDocTimeStamp 1717525780 [18:31:07]current date 1717525869 [18:31:07]FM_GetShiftState [18:31:07]SAM_PROTO_GetShiftState [18:31:07]wFMCommunicate request_size=4 [18:31:07]MH_SAM_APDU [18:31:07]CAPDU: 80 13 01 00 [18:31:07]Write to MH i2c: E2 08 00 9E 2B 80 13 01 00 00 00 00 00 46 [18:31:07]Write i2c OK [18:31:07]MH_I2C_Read... [18:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:07]Read from MH i2c: E2 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 0E 00 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 0E 00 9E 2B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 09 [18:31:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:31:07]wFMCommunicate OK [18:31:07]SAM_PROTO_GetShiftState done [18:31:07]FM_GetShiftState done [18:31:07]opened in 1717460629 [18:31:07]opened+sec_in_day 1717547029 [18:31:07]quantity*price = 50030 [18:31:07]sum+1 = 50031 [18:31:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 293 04.06.2024 18:31 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148954 ФПД: 229503268466315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183109&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148954&fm=229503268466315&tin=02508201610067®Number=0000000000092720&sum=50000 [18:31:08]StoreToDocumentArchive [18:31:08]shift 368 fd 148954 [18:31:08]save to /storage/0368/doc_00148954 [18:31:08]save last doc name /storage/0368/doc_00148954 to /storage/kkm_last_doc_name [18:31:08]save OK [18:31:08]Clear old archive folders... [18:31:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:08]tlvbuf is 004B8400 [18:31:08]SAM_PROTO_ClearQueue [18:31:08]wFMCommunicate request_size=4 [18:31:08]MH_SAM_APDU [18:31:08]CAPDU: 80 09 00 00 [18:31:08]Write to MH i2c: E2 08 00 AB 2B 80 09 00 00 00 00 00 00 48 [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:08]Read from MH i2c: E2 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 03 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 03 00 AB 2B 00 90 00 4A [18:31:08]RAPDU: 90 00 [18:31:08]wFMCommunicate OK [18:31:08]SAM_PROTO_ClearQueue done [18:31:08]KKMCreateOFDPacket [18:31:08]OFDProtocolAddRootSTLVToBuf [18:31:08]FM_MakeSignedData [18:31:08]FM_MakeSignedData [18:31:08]SAM_PROTO_SignData [18:31:08]wFMCommunicate request_size=4 [18:31:08]MH_SAM_APDU [18:31:08]CAPDU: 80 0D 01 02 [18:31:08]Write to MH i2c: E2 08 00 AC 2B 80 0D 01 02 00 00 00 00 50 [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:08]Read from MH i2c: E2 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 03 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 03 00 AC 2B 00 90 00 4B [18:31:08]RAPDU: 90 00 [18:31:08]wFMCommunicate OK [18:31:08]wFMCommunicate request_size=255 [18:31:08]MH_SAM_APDU [18:31:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 6D 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DA 45 02 00 35 04 06 00 D0 [18:31:08]Write to MH i2c: E2 02 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 6D 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DA 45 02 00 35 04 06 00 D0 00 00 DE [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:08]Read from MH i2c: E2 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 03 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 03 00 AD 2B 00 90 00 4C [18:31:08]RAPDU: 90 00 [18:31:08]wFMCommunicate OK [18:31:08]wFMCommunicate request_size=10 [18:31:08]MH_SAM_APDU [18:31:08]CAPDU: 80 0D 02 02 05 BB 64 CA AE 8B [18:31:08]Write to MH i2c: E2 0D 00 AE 2B 80 0D 02 02 05 00 BB 64 CA AE 8B 00 00 7F [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:08]Read from MH i2c: E2 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 03 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: E2 03 00 AE 2B 00 90 00 4D [18:31:08]RAPDU: 90 00 [18:31:08]wFMCommunicate OK [18:31:08]wFMCommunicate request_size=4 [18:31:08]MH_SAM_APDU [18:31:08]CAPDU: 80 0D 03 02 [18:31:08]Write to MH i2c: E2 08 00 AF 2B 80 0D 03 02 00 00 00 00 55 [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 0B 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 0B 00 AF 2B 00 EE 86 2D F6 35 4B 83 FA 90 00 EA [18:31:09]RAPDU: EE 86 2D F6 35 4B 83 FA 90 00 [18:31:09]wFMCommunicate OK [18:31:09]SAM_PROTO_SignData done [18:31:09]FM_MakeSignedData done [18:31:09]CreateOFDProtocolMessage [18:31:09]wFMCommunicate request_size=4 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 11 00 00 [18:31:09]Write to MH i2c: E2 08 00 B0 2B 80 11 00 00 00 00 00 00 55 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 17 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 17 00 B0 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A8 [18:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:31:09]wFMCommunicate OK [18:31:09]CreateOFDProtocolMessage done [18:31:09]OFDSenderStorePacket 148954 [18:31:09]StoreOFDPacket docnum=148954 [18:31:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FB 7D 07 01 F5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 6D 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DA 45 02 00 35 04 06 00 D0 BB 64 CA AE 8B EE 86 2D F6 35 4B 83 FA [18:31:09]CheckFolder [18:31:09]dirname=/storage/ofd_packets [18:31:09]CheckFolder done [18:31:09]ProducePacketName [18:31:09]name=ofd_packets/00148954 [18:31:09]NVStorageSaveData ofd_packets/00148954 [18:31:09]File name is /storage/ofd_packets/00148954 [18:31:09]Write 301 bytes [18:31:09]NVStorageSaveData done [18:31:09]OFDSenderStorePacket done [18:31:09]KKMCreateOFDPacket done [18:31:09]NVStorageSaveData kkm_last_timestamp [18:31:09]File name is /storage/kkm_last_timestamp [18:31:09]Write 4 bytes [18:31:09]NVStorageSaveData done [18:31:09]ExternCall_PrintAddStr [18:31:09]wPrintStart [18:31:09]Write to MH i2c: 01 00 00 B1 2B DC [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: 01 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: 01 07 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: 01 07 00 B1 2B 00 00 00 00 00 FF 0F F1 [18:31:09]RasterBufferAndPrint [18:31:09]line Счет N : (1)979886 [18:31:09]line ИНН: 02508201610067 [18:31:09]line Контрольно-Кассовый Чек [18:31:09]line ПРОДАЖА [18:31:09]line ТРК (МРК, ГНК) : 13 [18:31:09]line Товар: 2710124500 [18:31:09]line Аи-95-К-5 [18:31:09]line 6.770 * 73.90 [18:31:09]line = 500.30 [18:31:09]line НДС 12% НСП 1% [18:31:09]line > о реализуемом товаре [18:31:09]line ОКРУГЛЕНИЕ: -0.30 [18:31:09]line ИТОГО: 500.00 [18:31:09]line Внесено: 500.00 [18:31:09]line СДАЧА: 0.00 [18:31:09]line НСП 1% : 4.43 [18:31:09]line НДС 12% : 53.13 [18:31:09]line Наличными: 500.00 [18:31:09]line Безнал.: 0.00 [18:31:09]line Место: АЗС № 68 "Партнер Нефть" [18:31:09]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:31:09]line СНО: Общий режим [18:31:09]line Чек 293 04.06.2024 18:31 [18:31:09]line Смена: 368 ФФД: 1.0 [18:31:09]line ЗНМ: 0300000035 [18:31:09]line РНМ: 0000000000092720 [18:31:09]line Версия ККМ: 001 [18:31:09]line ФМ: 0000000000875057 [18:31:09]line ФД: 148954 [18:31:09]line ФПД: 229503268466315 [18:31:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183109&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148954&fm=229503268466315&tin=02508201610067®Number=0000000000092720&sum=50000 [18:31:09]OFD Sender: Processing packet 148954 [packets to send 100, broken 99] [18:31:09]ProducePacketName [18:31:09]name=ofd_packets/00148954 [18:31:09]OFD Sender: To server: pG, [18:31:09]CommunicateWithHost lk.salyk.kg:30040 [18:31:09]ConnectInit lk.salyk.kg [18:31:09]written 0, free lines is 4095 [18:31:09]Connected sock=10 [18:31:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FB 7D 07 01 F5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 6D 5D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DA 45 02 00 35 04 06 00 D0 BB 64 CA AE 8B EE 86 2D F6 35 4B 83 FA [18:31:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 53 EA 47 00 06 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DA 45 02 00 F4 03 04 00 90 04 5F 66 B6 04 01 00 00 1C C9 B9 19 C4 E3 4C E5 [18:31:09]CommunicateWithHost err = 0 [18:31:09]CheckOFDResponse [18:31:09]1017 (14) - 77093643461234 [18:31:09]1041 (16) - 0000000000875057 [18:31:09]1040 (4) - 148954 [18:31:09]1012 (4) - 04.06.2024 12:12 [18:31:09]1206 (1) - 0 [18:31:09]OFD Sender: Remove packet 148954 [18:31:09]ProducePacketName [18:31:09]name=ofd_packets/00148954 [18:31:09]NVStorageDeleteData [18:31:09]Write to MH i2c: 01 00 00 DC 2B 07 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: 01 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: 01 07 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: 01 07 00 DC 2B 00 00 00 00 00 A0 0C BA [18:31:09]RasterBufferAndPrint [18:31:09]line [18:31:09]line [18:31:09]line [18:31:09]line [18:31:09]line [18:31:09]written 0, free lines is 3238 [18:31:09]MH_Cut [18:31:09]Write to MH i2c: D1 01 00 E3 2B 01 E0 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: D1 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: D1 01 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: D1 01 00 E3 2B 00 DF [18:31:09]Write to MH i2c: 01 00 00 E4 2B 0F [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:10]OFD Sender: No OFD packet to send [18:31:10]*** Cut start [18:31:10]*** Partial cut [18:31:10]*** CUTSNS_PIN = 1 [18:31:10]*** CUTSNS_PIN = 0 [18:31:11]*** Brake cut motor [18:31:11]Read from MH i2c: 01 [18:31:11]MH_I2C_Read... [18:31:11]*** Stop cut motor [18:31:11]*** Cut end [18:31:11]Read from MH i2c: 01 07 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: 01 07 00 E4 2B 00 00 00 00 00 FF 0F 24 [18:31:11]process_action close_receipt done [18:31:11]requested_data is exist [18:31:11]produce_requested_data [18:31:11]requested_item fm.sn is exist - process it [18:31:11]wFMCommunicate request_size=4 [18:31:11]MH_SAM_APDU [18:31:11]CAPDU: 80 11 00 00 [18:31:11]Write to MH i2c: E2 08 00 E5 2B 80 11 00 00 00 00 00 00 8A [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:11]Read from MH i2c: E2 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 17 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 17 00 E5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DD [18:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:31:11]wFMCommunicate OK [18:31:11]requested_item fd.num is exist - process it [18:31:11]SAM_PROTO_GetFieldsCounters [18:31:11]wFMCommunicate request_size=4 [18:31:11]MH_SAM_APDU [18:31:11]CAPDU: 80 13 00 00 [18:31:11]Write to MH i2c: E2 08 00 E6 2B 80 13 00 00 00 00 00 00 8D [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:11]Read from MH i2c: E2 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 62 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 62 00 E6 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DA 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [18:31:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DA 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:11]wFMCommunicate OK [18:31:11]SAM_PROTO_GetFieldsCounters done [18:31:11]requested_item shift.num is exist - process it [18:31:11]requested_item shift.opened is exist - process it [18:31:11]req_shift_opened [18:31:11]FM_GetShiftState [18:31:11]SAM_PROTO_GetShiftState [18:31:11]wFMCommunicate request_size=4 [18:31:11]MH_SAM_APDU [18:31:11]CAPDU: 80 13 01 00 [18:31:11]Write to MH i2c: E2 08 00 E7 2B 80 13 01 00 00 00 00 00 8F [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:11]Read from MH i2c: E2 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 0E 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 0E 00 E7 2B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 52 [18:31:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:31:11]wFMCommunicate OK [18:31:11]SAM_PROTO_GetShiftState done [18:31:11]FM_GetShiftState done [18:31:11]req_shift_opened done [18:31:11]requested_item shift.open_date is exist - process it [18:31:11]req_shift_open_date [18:31:11]req_shift_open_date done [18:31:11]produce_requested_data done [18:31:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148954,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:31:11]process_action_free close_receipt [18:31:11]json_value_free [18:31:11]json_value_free done [18:31:11]process_json_proto returns [18:31:11]Send response to host [18:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148954,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:31:11]free response buf [18:31:11]execute_script done [18:31:11]execute_script returns [18:31:11]free content buf [18:31:11]Sock 7.Close socket [18:31:11]Sock 7.Thread stoped [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:41]accept exits with 9 [18:39:41]New connection [18:39:41]New thread 3067407716 created [18:39:41]Thread 3067264356 joined [18:39:41]Waiting for new connection... [18:39:41] Sock 9.Parse request [18:39:41]Sock 9.Check first char [18:39:41]Sock 9.First char is OK [18:39:41]request: POST /json_proto HTTP/1.0 [18:39:41]Method: POST [18:39:41]URL: /json_proto [18:39:41]Method is POST - this is cgi request [18:39:41]url: /json_proto [18:39:41]query_string will be loaded in cgi processing [18:39:41]execute_cgi json_proto POST (null) [18:39:41]execute_cgi path=json_proto method=POST [18:39:41]POST find Content-Length [18:39:41]Host: 172.17.38.4:8080 [18:39:41]Content-Length: 682 [18:39:41]Content-Type: application/json [18:39:41] [18:39:41]POST finish read [18:39:41]Found Content-Length = 682 [18:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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" ] } } [18:39:41]execute_script... [18:39: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)979887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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" ] } } [18:39:41]POST & json_proto [18:39:41]process_json_proto [18:39:41]json parsed OK: [18:39:41]protocol is kg_v1.0 [18:39:41]action value=close_receipt [18:39:41]process_action close_receipt [18:39:41]cmd_close_receipt [18:39:41]MH_GetDate [18:39:41]Write to MH i2c: F0 00 00 E8 2B 02 [18:39:41]Write i2c OK [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: F0 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: F0 09 00 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: F0 09 00 E8 2B 00 6F 5F 5F 66 CC 51 87 64 A6 [18:39:41]GetLastDocTimeStamp 1717525869 [18:39:41]current date 1717526383 [18:39:41]FM_GetShiftState [18:39:41]SAM_PROTO_GetShiftState [18:39:41]wFMCommunicate request_size=4 [18:39:41]MH_SAM_APDU [18:39:41]CAPDU: 80 13 01 00 [18:39:41]Write to MH i2c: E2 08 00 E9 2B 80 13 01 00 00 00 00 00 91 [18:39:41]Write i2c OK [18:39:41]MH_I2C_Read... [18:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:41]Read from MH i2c: E2 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: E2 0E 00 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: E2 0E 00 E9 2B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 54 [18:39:41]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:39:41]wFMCommunicate OK [18:39:41]SAM_PROTO_GetShiftState done [18:39:41]FM_GetShiftState done [18:39:41]opened in 1717460629 [18:39:41]opened+sec_in_day 1717547029 [18:39:41]quantity*price = 100060 [18:39:41]sum+1 = 100062 [18:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 294 04.06.2024 18:39 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148955 ФПД: 126428036124040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183943&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148955&fm=126428036124040&tin=02508201610067®Number=0000000000092720&sum=100000 [18:39:42]StoreToDocumentArchive [18:39:42]shift 368 fd 148955 [18:39:42]save to /storage/0368/doc_00148955 [18:39:42]save last doc name /storage/0368/doc_00148955 to /storage/kkm_last_doc_name [18:39:42]save OK [18:39:42]Clear old archive folders... [18:39:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:42]tlvbuf is 0046B5F0 [18:39:42]SAM_PROTO_ClearQueue [18:39:42]wFMCommunicate request_size=4 [18:39:42]MH_SAM_APDU [18:39:42]CAPDU: 80 09 00 00 [18:39:42]Write to MH i2c: E2 08 00 F6 2B 80 09 00 00 00 00 00 00 93 [18:39:42]Write i2c OK [18:39:42]MH_I2C_Read... [18:39:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:42]Read from MH i2c: E2 [18:39:42]MH_I2C_Read... [18:39:42]Read from MH i2c: E2 03 00 [18:39:42]MH_I2C_Read... [18:39:42]Read from MH i2c: E2 03 00 F6 2B 00 90 00 95 [18:39:42]RAPDU: 90 00 [18:39:42]wFMCommunicate OK [18:39:42]SAM_PROTO_ClearQueue done [18:39:42]KKMCreateOFDPacket [18:39:42]OFDProtocolAddRootSTLVToBuf [18:39:42]FM_MakeSignedData [18:39:42]FM_MakeSignedData [18:39:42]SAM_PROTO_SignData [18:39:42]wFMCommunicate request_size=4 [18:39:42]MH_SAM_APDU [18:39:42]CAPDU: 80 0D 01 02 [18:39:42]Write to MH i2c: E2 08 00 F7 2B 80 0D 01 02 00 00 00 00 9B [18:39:42]Write i2c OK [18:39:42]MH_I2C_Read... [18:39:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:42]Read from MH i2c: E2 [18:39:42]MH_I2C_Read... [18:39:42]Read from MH i2c: E2 03 00 [18:39:42]MH_I2C_Read... [18:39:42]Read from MH i2c: E2 03 00 F7 2B 00 90 00 96 [18:39:42]RAPDU: 90 00 [18:39:42]wFMCommunicate OK [18:39:42]wFMCommunicate request_size=255 [18:39:42]MH_SAM_APDU [18:39:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 26 01 00 00 F4 03 04 00 6F 5F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DB 45 02 00 35 04 06 00 72 [18:39:42]Write to MH i2c: E2 02 01 F8 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 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 26 01 00 00 F4 03 04 00 6F 5F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DB 45 02 00 35 04 06 00 72 00 00 4A [18:39:42]Write i2c OK [18:39:42]MH_I2C_Read... [18:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:43]Read from MH i2c: E2 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 03 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 03 00 F8 2B 00 90 00 97 [18:39:43]RAPDU: 90 00 [18:39:43]wFMCommunicate OK [18:39:43]wFMCommunicate request_size=10 [18:39:43]MH_SAM_APDU [18:39:43]CAPDU: 80 0D 02 02 05 FC 52 2E CD 88 [18:39:43]Write to MH i2c: E2 0D 00 F9 2B 80 0D 02 02 05 00 FC 52 2E CD 88 00 00 79 [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:43]Read from MH i2c: E2 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 03 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 03 00 F9 2B 00 90 00 98 [18:39:43]RAPDU: 90 00 [18:39:43]wFMCommunicate OK [18:39:43]wFMCommunicate request_size=4 [18:39:43]MH_SAM_APDU [18:39:43]CAPDU: 80 0D 03 02 [18:39:43]Write to MH i2c: E2 08 00 FA 2B 80 0D 03 02 00 00 00 00 A0 [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:43]Read from MH i2c: E2 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 0B 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 0B 00 FA 2B 00 58 21 FA 62 45 1B 6B 40 90 00 81 [18:39:43]RAPDU: 58 21 FA 62 45 1B 6B 40 90 00 [18:39:43]wFMCommunicate OK [18:39:43]SAM_PROTO_SignData done [18:39:43]FM_MakeSignedData done [18:39:43]CreateOFDProtocolMessage [18:39:43]wFMCommunicate request_size=4 [18:39:43]MH_SAM_APDU [18:39:43]CAPDU: 80 11 00 00 [18:39:43]Write to MH i2c: E2 08 00 FB 2B 80 11 00 00 00 00 00 00 A0 [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:43]Read from MH i2c: E2 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 17 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 17 00 FB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F3 [18:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:39:43]wFMCommunicate OK [18:39:43]CreateOFDProtocolMessage done [18:39:43]OFDSenderStorePacket 148955 [18:39:43]StoreOFDPacket docnum=148955 [18:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AA 7C 07 01 20 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 26 01 00 00 F4 03 04 00 6F 5F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DB 45 02 00 35 04 06 00 72 FC 52 2E CD 88 58 21 FA 62 45 1B 6B 40 [18:39:43]CheckFolder [18:39:43]dirname=/storage/ofd_packets [18:39:43]CheckFolder done [18:39:43]ProducePacketName [18:39:43]name=ofd_packets/00148955 [18:39:43]NVStorageSaveData ofd_packets/00148955 [18:39:43]File name is /storage/ofd_packets/00148955 [18:39:43]Write 301 bytes [18:39:43]NVStorageSaveData done [18:39:43]OFDSenderStorePacket done [18:39:43]KKMCreateOFDPacket done [18:39:43]NVStorageSaveData kkm_last_timestamp [18:39:43]File name is /storage/kkm_last_timestamp [18:39:43]Write 4 bytes [18:39:43]NVStorageSaveData done [18:39:43]ExternCall_PrintAddStr [18:39:43]wPrintStart [18:39:43]Write to MH i2c: 01 00 00 FC 2B 27 [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: 01 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: 01 07 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: 01 07 00 FC 2B 00 00 00 00 00 FF 0F 3C [18:39:43]RasterBufferAndPrint [18:39:43]line Счет N : (1)979887 [18:39:43]line ИНН: 02508201610067 [18:39:43]line Контрольно-Кассовый Чек [18:39:43]line ПРОДАЖА [18:39:43]line ТРК (МРК, ГНК) : 23 [18:39:43]line Товар: 2710124500 [18:39:43]line Аи-95-К-5 [18:39:43]line 13.540 * 73.90 [18:39:43]line = 1000.61 [18:39:43]line НДС 12% НСП 1% [18:39:43]line > о реализуемом товаре [18:39:43]line ОКРУГЛЕНИЕ: -0.61 [18:39:43]line ИТОГО: 1000.00 [18:39:43]line Внесено: 1000.00 [18:39:43]line СДАЧА: 0.00 [18:39:43]line НСП 1% : 8.85 [18:39:43]line НДС 12% : 106.26 [18:39:43]line Наличными: 1000.00 [18:39:43]line Безнал.: 0.00 [18:39:43]line Место: АЗС № 68 "Партнер Нефть" [18:39:43]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:39:43]line СНО: Общий режим [18:39:43]line Чек 294 04.06.2024 18:39 [18:39:43]line Смена: 368 ФФД: 1.0 [18:39:43]line ЗНМ: 0300000035 [18:39:43]line РНМ: 0000000000092720 [18:39:43]line Версия ККМ: 001 [18:39:43]line ФМ: 0000000000875057 [18:39:43]line ФД: 148955 [18:39:43]line ФПД: 126428036124040 [18:39:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183943&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148955&fm=126428036124040&tin=02508201610067®Number=0000000000092720&sum=100000 [18:39:43]OFD Sender: Processing packet 148955 [packets to send 100, broken 99] [18:39:43]ProducePacketName [18:39:43]name=ofd_packets/00148955 [18:39:43]OFD Sender: To server: pG, [18:39:43]CommunicateWithHost lk.salyk.kg:30040 [18:39:43]ConnectInit lk.salyk.kg [18:39:43]written 0, free lines is 4095 [18:39:43]Connected sock=10 [18:39:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AA 7C 07 01 20 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 26 01 00 00 F4 03 04 00 6F 5F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DB 45 02 00 35 04 06 00 72 FC 52 2E CD 88 58 21 FA 62 45 1B 6B 40 [18:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 26 0A 47 00 1E 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 38 37 35 30 35 37 10 04 04 00 DB 45 02 00 F4 03 04 00 93 06 5F 66 B6 04 01 00 00 18 16 4B AB 47 E7 71 E0 [18:39:44]CommunicateWithHost err = 0 [18:39:44]CheckOFDResponse [18:39:44]1017 (14) - 77093643461234 [18:39:44]1041 (16) - 0000000000875057 [18:39:44]1040 (4) - 148955 [18:39:44]1012 (4) - 04.06.2024 12:20 [18:39:44]1206 (1) - 0 [18:39:44]OFD Sender: Remove packet 148955 [18:39:44]ProducePacketName [18:39:44]name=ofd_packets/00148955 [18:39:44]NVStorageDeleteData [18:39:44]Write to MH i2c: 01 00 00 27 2C 53 [18:39:44]Write i2c OK [18:39:44]MH_I2C_Read... [18:39:44]Read from MH i2c: 01 [18:39:44]MH_I2C_Read... [18:39:44]Read from MH i2c: 01 07 00 [18:39:44]MH_I2C_Read... [18:39:44]Read from MH i2c: 01 07 00 27 2C 00 00 00 00 00 A0 0C 06 [18:39:44]RasterBufferAndPrint [18:39:44]line [18:39:44]line [18:39:44]line [18:39:44]line [18:39:44]line [18:39:44]written 0, free lines is 3238 [18:39:44]MH_Cut [18:39:44]Write to MH i2c: D1 01 00 2E 2C 01 2C [18:39:44]Write i2c OK [18:39:44]MH_I2C_Read... [18:39:44]Read from MH i2c: D1 [18:39:44]MH_I2C_Read... [18:39:44]Read from MH i2c: D1 01 00 [18:39:44]MH_I2C_Read... [18:39:44]Read from MH i2c: D1 01 00 2E 2C 00 2B [18:39:44]Write to MH i2c: 01 00 00 2F 2C 5B [18:39:44]Write i2c OK [18:39:44]MH_I2C_Read... [18:39:44]OFD Sender: No OFD packet to send [18:39:45]*** Cut start [18:39:45]*** Partial cut [18:39:45]*** CUTSNS_PIN = 1 [18:39:45]*** CUTSNS_PIN = 0 [18:39:45]*** Brake cut motor [18:39:45]Read from MH i2c: 01 [18:39:45]MH_I2C_Read... [18:39:45]*** Stop cut motor [18:39:45]*** Cut end [18:39:45]Read from MH i2c: 01 07 00 [18:39:45]MH_I2C_Read... [18:39:45]Read from MH i2c: 01 07 00 2F 2C 00 00 00 00 00 FF 0F 70 [18:39:45]process_action close_receipt done [18:39:45]requested_data is exist [18:39:45]produce_requested_data [18:39:45]requested_item fm.sn is exist - process it [18:39:45]wFMCommunicate request_size=4 [18:39:45]MH_SAM_APDU [18:39:45]CAPDU: 80 11 00 00 [18:39:45]Write to MH i2c: E2 08 00 30 2C 80 11 00 00 00 00 00 00 D6 [18:39:45]Write i2c OK [18:39:45]MH_I2C_Read... [18:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:45]Read from MH i2c: E2 [18:39:45]MH_I2C_Read... [18:39:45]Read from MH i2c: E2 17 00 [18:39:45]MH_I2C_Read... [18:39:45]Read from MH i2c: E2 17 00 30 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 29 [18:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:39:45]wFMCommunicate OK [18:39:45]requested_item fd.num is exist - process it [18:39:45]SAM_PROTO_GetFieldsCounters [18:39:45]wFMCommunicate request_size=4 [18:39:45]MH_SAM_APDU [18:39:45]CAPDU: 80 13 00 00 [18:39:45]Write to MH i2c: E2 08 00 31 2C 80 13 00 00 00 00 00 00 D9 [18:39:45]Write i2c OK [18:39:45]MH_I2C_Read... [18:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:46]Read from MH i2c: E2 [18:39:46]MH_I2C_Read... [18:39:46]Read from MH i2c: E2 62 00 [18:39:46]MH_I2C_Read... [18:39:46]Read from MH i2c: E2 62 00 31 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DB 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [18:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DB 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:46]wFMCommunicate OK [18:39:46]SAM_PROTO_GetFieldsCounters done [18:39:46]requested_item shift.num is exist - process it [18:39:46]requested_item shift.opened is exist - process it [18:39:46]req_shift_opened [18:39:46]FM_GetShiftState [18:39:46]SAM_PROTO_GetShiftState [18:39:46]wFMCommunicate request_size=4 [18:39:46]MH_SAM_APDU [18:39:46]CAPDU: 80 13 01 00 [18:39:46]Write to MH i2c: E2 08 00 32 2C 80 13 01 00 00 00 00 00 DB [18:39:46]Write i2c OK [18:39:46]MH_I2C_Read... [18:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:46]Read from MH i2c: E2 [18:39:46]MH_I2C_Read... [18:39:46]Read from MH i2c: E2 0E 00 [18:39:46]MH_I2C_Read... [18:39:46]Read from MH i2c: E2 0E 00 32 2C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9E [18:39:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:39:46]wFMCommunicate OK [18:39:46]SAM_PROTO_GetShiftState done [18:39:46]FM_GetShiftState done [18:39:46]req_shift_opened done [18:39:46]requested_item shift.open_date is exist - process it [18:39:46]req_shift_open_date [18:39:46]req_shift_open_date done [18:39:46]produce_requested_data done [18:39:46]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148955,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:39:46]process_action_free close_receipt [18:39:46]json_value_free [18:39:46]json_value_free done [18:39:46]process_json_proto returns [18:39:46]Send response to host [18:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148955,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:39:46]free response buf [18:39:46]execute_script done [18:39:46]execute_script returns [18:39:46]free content buf [18:39:46]Sock 9.Close socket [18:39:46]Sock 9.Thread stoped [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:54]accept exits with 7 [18:42:54]New connection [18:42:54]New thread 3067264356 created [18:42:54]Thread 3067407716 joined [18:42:54]Waiting for new connection... [18:42:54] Sock 7.Parse request [18:42:54]Sock 7.Check first char [18:42:54]Sock 7.First char is OK [18:42:54]request: POST /json_proto HTTP/1.0 [18:42:54]Method: POST [18:42:54]URL: /json_proto [18:42:54]Method is POST - this is cgi request [18:42:54]url: /json_proto [18:42:54]query_string will be loaded in cgi processing [18:42:54]execute_cgi json_proto POST (null) [18:42:54]execute_cgi path=json_proto method=POST [18:42:54]POST find Content-Length [18:42:54]Host: 172.17.38.4:8080 [18:42:54]Content-Length: 678 [18:42:54]Content-Type: application/json [18:42:54] [18:42:54]POST finish read [18:42:54]Found Content-Length = 678 [18:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:54]execute_script... [18:42: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)979888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:54]POST & json_proto [18:42:54]process_json_proto [18:42:54]json parsed OK: [18:42:54]protocol is kg_v1.0 [18:42:54]action value=close_receipt [18:42:54]process_action close_receipt [18:42:54]cmd_close_receipt [18:42:54]MH_GetDate [18:42:54]Write to MH i2c: F0 00 00 33 2C 4E [18:42:54]Write i2c OK [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: F0 [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: F0 09 00 [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: F0 09 00 33 2C 00 31 60 5F 66 CC 51 87 64 B5 [18:42:54]GetLastDocTimeStamp 1717526383 [18:42:54]current date 1717526577 [18:42:54]FM_GetShiftState [18:42:54]SAM_PROTO_GetShiftState [18:42:54]wFMCommunicate request_size=4 [18:42:54]MH_SAM_APDU [18:42:54]CAPDU: 80 13 01 00 [18:42:54]Write to MH i2c: E2 08 00 34 2C 80 13 01 00 00 00 00 00 DD [18:42:54]Write i2c OK [18:42:54]MH_I2C_Read... [18:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:54]Read from MH i2c: E2 [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: E2 0E 00 [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: E2 0E 00 34 2C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A0 [18:42:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:42:54]wFMCommunicate OK [18:42:54]SAM_PROTO_GetShiftState done [18:42:54]FM_GetShiftState done [18:42:54]opened in 1717460629 [18:42:54]opened+sec_in_day 1717547029 [18:42:54]quantity*price = 80012 [18:42:54]sum+1 = 80013 [18:42:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 295 04.06.2024 18:42 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148956 ФПД: 83455951330255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T184257&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148956&fm=83455951330255&tin=02508201610067®Number=0000000000092720&sum=80000 [18:42:56]StoreToDocumentArchive [18:42:56]shift 368 fd 148956 [18:42:56]save to /storage/0368/doc_00148956 [18:42:56]save last doc name /storage/0368/doc_00148956 to /storage/kkm_last_doc_name [18:42:56]save OK [18:42:56]Clear old archive folders... [18:42:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:56]tlvbuf is B6FC41C0 [18:42:56]SAM_PROTO_ClearQueue [18:42:56]wFMCommunicate request_size=4 [18:42:56]MH_SAM_APDU [18:42:56]CAPDU: 80 09 00 00 [18:42:56]Write to MH i2c: E2 08 00 41 2C 80 09 00 00 00 00 00 00 DF [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:56]Read from MH i2c: E2 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 41 2C 00 90 00 E1 [18:42:56]RAPDU: 90 00 [18:42:56]wFMCommunicate OK [18:42:56]SAM_PROTO_ClearQueue done [18:42:56]KKMCreateOFDPacket [18:42:56]OFDProtocolAddRootSTLVToBuf [18:42:56]FM_MakeSignedData [18:42:56]FM_MakeSignedData [18:42:56]SAM_PROTO_SignData [18:42:56]wFMCommunicate request_size=4 [18:42:56]MH_SAM_APDU [18:42:56]CAPDU: 80 0D 01 02 [18:42:56]Write to MH i2c: E2 08 00 42 2C 80 0D 01 02 00 00 00 00 E7 [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:56]Read from MH i2c: E2 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 42 2C 00 90 00 E2 [18:42:56]RAPDU: 90 00 [18:42:56]wFMCommunicate OK [18:42:56]wFMCommunicate request_size=255 [18:42:56]MH_SAM_APDU [18:42:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 01 00 00 F4 03 04 00 31 60 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DC 45 02 00 35 04 06 00 4B [18:42:56]Write to MH i2c: E2 02 01 43 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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 31 60 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DC 45 02 00 35 04 06 00 4B 00 00 BA [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:56]Read from MH i2c: E2 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 43 2C 00 90 00 E3 [18:42:56]RAPDU: 90 00 [18:42:56]wFMCommunicate OK [18:42:56]wFMCommunicate request_size=10 [18:42:56]MH_SAM_APDU [18:42:56]CAPDU: 80 0D 02 02 05 E7 1A 55 5B CF [18:42:56]Write to MH i2c: E2 0D 00 44 2C 80 0D 02 02 05 00 E7 1A 55 5B CF 00 00 74 [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:56]Read from MH i2c: E2 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 44 2C 00 90 00 E4 [18:42:56]RAPDU: 90 00 [18:42:56]wFMCommunicate OK [18:42:56]wFMCommunicate request_size=4 [18:42:56]MH_SAM_APDU [18:42:56]CAPDU: 80 0D 03 02 [18:42:56]Write to MH i2c: E2 08 00 45 2C 80 0D 03 02 00 00 00 00 EC [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:56]Read from MH i2c: E2 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 0B 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 0B 00 45 2C 00 D4 B9 7E B4 65 AD A9 BC 90 00 23 [18:42:56]RAPDU: D4 B9 7E B4 65 AD A9 BC 90 00 [18:42:56]wFMCommunicate OK [18:42:56]SAM_PROTO_SignData done [18:42:56]FM_MakeSignedData done [18:42:56]CreateOFDProtocolMessage [18:42:56]wFMCommunicate request_size=4 [18:42:56]MH_SAM_APDU [18:42:56]CAPDU: 80 11 00 00 [18:42:56]Write to MH i2c: E2 08 00 46 2C 80 11 00 00 00 00 00 00 EC [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:56]Read from MH i2c: E2 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 17 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 17 00 46 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3F [18:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:42:56]wFMCommunicate OK [18:42:56]CreateOFDProtocolMessage done [18:42:56]OFDSenderStorePacket 148956 [18:42:56]StoreOFDPacket docnum=148956 [18:42:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 52 9F 07 01 F4 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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 31 60 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DC 45 02 00 35 04 06 00 4B E7 1A 55 5B CF D4 B9 7E B4 65 AD A9 BC [18:42:56]CheckFolder [18:42:56]dirname=/storage/ofd_packets [18:42:56]CheckFolder done [18:42:56]ProducePacketName [18:42:56]name=ofd_packets/00148956 [18:42:56]NVStorageSaveData ofd_packets/00148956 [18:42:56]File name is /storage/ofd_packets/00148956 [18:42:56]Write 301 bytes [18:42:56]NVStorageSaveData done [18:42:56]OFDSenderStorePacket done [18:42:56]KKMCreateOFDPacket done [18:42:56]NVStorageSaveData kkm_last_timestamp [18:42:56]File name is /storage/kkm_last_timestamp [18:42:56]Write 4 bytes [18:42:56]NVStorageSaveData done [18:42:56]ExternCall_PrintAddStr [18:42:56]wPrintStart [18:42:56]Write to MH i2c: 01 00 00 47 2C 73 [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: 01 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: 01 07 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: 01 07 00 47 2C 00 00 00 00 00 FF 0F 88 [18:42:56]RasterBufferAndPrint [18:42:56]line Счет N : (1)979888 [18:42:56]line ИНН: 02508201610067 [18:42:56]line Контрольно-Кассовый Чек [18:42:56]line ПРОДАЖА [18:42:56]line ТРК (МРК, ГНК) : 41 [18:42:56]line Товар: 2710124130 [18:42:56]line Аи-92-К-5 [18:42:56]line 11.960 * 66.90 [18:42:56]line = 800.12 [18:42:56]line НДС 12% НСП 1% [18:42:56]line > о реализуемом товаре [18:42:56]line ОКРУГЛЕНИЕ: -0.12 [18:42:56]line ИТОГО: 800.00 [18:42:56]line Внесено: 800.00 [18:42:56]line СДАЧА: 0.00 [18:42:56]line НСП 1% : 7.08 [18:42:56]line НДС 12% : 84.97 [18:42:56]line Наличными: 800.00 [18:42:56]line Безнал.: 0.00 [18:42:56]line Место: АЗС № 68 "Партнер Нефть" [18:42:56]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:42:56]line СНО: Общий режим [18:42:56]line Чек 295 04.06.2024 18:42 [18:42:56]line Смена: 368 ФФД: 1.0 [18:42:56]line ЗНМ: 0300000035 [18:42:56]line РНМ: 0000000000092720 [18:42:56]line Версия ККМ: 001 [18:42:56]line ФМ: 0000000000875057 [18:42:56]line ФД: 148956 [18:42:56]line ФПД: 83455951330255 [18:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T184257&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148956&fm=83455951330255&tin=02508201610067®Number=0000000000092720&sum=80000 [18:42:56]OFD Sender: Processing packet 148956 [packets to send 100, broken 99] [18:42:56]ProducePacketName [18:42:56]name=ofd_packets/00148956 [18:42:56]OFD Sender: To server: pG, [18:42:56]CommunicateWithHost lk.salyk.kg:30040 [18:42:56]ConnectInit lk.salyk.kg [18:42:56]written 0, free lines is 4095 [18:42:57]Connected sock=10 [18:42:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 52 9F 07 01 F4 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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 31 60 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DC 45 02 00 35 04 06 00 4B E7 1A 55 5B CF D4 B9 7E B4 65 AD A9 BC [18:42:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A1 F6 47 00 BE 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DC 45 02 00 F4 03 04 00 54 07 5F 66 B6 04 01 00 00 2C D2 75 F5 47 4C 11 14 [18:42:57]CommunicateWithHost err = 0 [18:42:57]CheckOFDResponse [18:42:57]1017 (14) - 77093643461234 [18:42:57]1041 (16) - 0000000000875057 [18:42:57]1040 (4) - 148956 [18:42:57]1012 (4) - 04.06.2024 12:23 [18:42:57]1206 (1) - 0 [18:42:57]OFD Sender: Remove packet 148956 [18:42:57]ProducePacketName [18:42:57]name=ofd_packets/00148956 [18:42:57]NVStorageDeleteData [18:42:57]Write to MH i2c: 01 00 00 72 2C 9E [18:42:57]Write i2c OK [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: 01 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: 01 07 00 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: 01 07 00 72 2C 00 00 00 00 00 A5 0C 56 [18:42:57]RasterBufferAndPrint [18:42:57]line [18:42:57]line [18:42:57]line [18:42:57]line [18:42:57]line [18:42:57]written 0, free lines is 3241 [18:42:57]MH_Cut [18:42:57]Write to MH i2c: D1 01 00 79 2C 01 77 [18:42:57]Write i2c OK [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: D1 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: D1 01 00 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: D1 01 00 79 2C 00 76 [18:42:57]Write to MH i2c: 01 00 00 7A 2C A6 [18:42:57]Write i2c OK [18:42:57]MH_I2C_Read... [18:42:57]OFD Sender: No OFD packet to send [18:42:58]*** Cut start [18:42:58]*** Partial cut [18:42:58]*** CUTSNS_PIN = 1 [18:42:58]*** CUTSNS_PIN = 0 [18:42:58]*** Brake cut motor [18:42:59]Read from MH i2c: 01 [18:42:59]MH_I2C_Read... [18:42:59]*** Stop cut motor [18:42:59]*** Cut end [18:42:59]Read from MH i2c: 01 07 00 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: 01 07 00 7A 2C 00 00 00 00 00 FF 0F BB [18:42:59]process_action close_receipt done [18:42:59]requested_data is exist [18:42:59]produce_requested_data [18:42:59]requested_item fm.sn is exist - process it [18:42:59]wFMCommunicate request_size=4 [18:42:59]MH_SAM_APDU [18:42:59]CAPDU: 80 11 00 00 [18:42:59]Write to MH i2c: E2 08 00 7B 2C 80 11 00 00 00 00 00 00 21 [18:42:59]Write i2c OK [18:42:59]MH_I2C_Read... [18:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:59]Read from MH i2c: E2 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 17 00 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 17 00 7B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 74 [18:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:42:59]wFMCommunicate OK [18:42:59]requested_item fd.num is exist - process it [18:42:59]SAM_PROTO_GetFieldsCounters [18:42:59]wFMCommunicate request_size=4 [18:42:59]MH_SAM_APDU [18:42:59]CAPDU: 80 13 00 00 [18:42:59]Write to MH i2c: E2 08 00 7C 2C 80 13 00 00 00 00 00 00 24 [18:42:59]Write i2c OK [18:42:59]MH_I2C_Read... [18:42:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:59]Read from MH i2c: E2 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 62 00 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 62 00 7C 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [18:42:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:59]wFMCommunicate OK [18:42:59]SAM_PROTO_GetFieldsCounters done [18:42:59]requested_item shift.num is exist - process it [18:42:59]requested_item shift.opened is exist - process it [18:42:59]req_shift_opened [18:42:59]FM_GetShiftState [18:42:59]SAM_PROTO_GetShiftState [18:42:59]wFMCommunicate request_size=4 [18:42:59]MH_SAM_APDU [18:42:59]CAPDU: 80 13 01 00 [18:42:59]Write to MH i2c: E2 08 00 7D 2C 80 13 01 00 00 00 00 00 26 [18:42:59]Write i2c OK [18:42:59]MH_I2C_Read... [18:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:59]Read from MH i2c: E2 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 0E 00 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 0E 00 7D 2C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E9 [18:42:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:42:59]wFMCommunicate OK [18:42:59]SAM_PROTO_GetShiftState done [18:42:59]FM_GetShiftState done [18:42:59]req_shift_opened done [18:42:59]requested_item shift.open_date is exist - process it [18:42:59]req_shift_open_date [18:42:59]req_shift_open_date done [18:42:59]produce_requested_data done [18:42:59]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148956,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:42:59]process_action_free close_receipt [18:42:59]json_value_free [18:42:59]json_value_free done [18:42:59]process_json_proto returns [18:42:59]Send response to host [18:42:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148956,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:42:59]free response buf [18:42:59]execute_script done [18:42:59]execute_script returns [18:42:59]free content buf [18:42:59]Sock 7.Close socket [18:42:59]Sock 7.Thread stoped [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:06]accept exits with 9 [18:48:06]New connection [18:48:06]New thread 3067407716 created [18:48:06]Thread 3067264356 joined [18:48:06]Waiting for new connection... [18:48:06] Sock 9.Parse request [18:48:06]Sock 9.Check first char [18:48:06]Sock 9.First char is OK [18:48:06]request: POST /json_proto HTTP/1.0 [18:48:06]Method: POST [18:48:06]URL: /json_proto [18:48:06]Method is POST - this is cgi request [18:48:06]url: /json_proto [18:48:06]query_string will be loaded in cgi processing [18:48:06]execute_cgi json_proto POST (null) [18:48:06]execute_cgi path=json_proto method=POST [18:48:06]POST find Content-Length [18:48:06]Host: 172.17.38.4:8080 [18:48:06]Content-Length: 791 [18:48:06]Content-Type: application/json [18:48:06] [18:48:06]POST finish read [18:48:06]Found Content-Length = 791 [18:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 750.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:06]execute_script... [18:48: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)979889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 750.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:06]POST & json_proto [18:48:06]process_json_proto [18:48:06]json parsed OK: [18:48:06]protocol is kg_v1.0 [18:48:06]action value=close_receipt [18:48:06]process_action close_receipt [18:48:06]cmd_close_receipt [18:48:06]MH_GetDate [18:48:06]Write to MH i2c: F0 00 00 7E 2C 99 [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: F0 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: F0 09 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: F0 09 00 7E 2C 00 68 61 5F 66 CC 51 87 64 38 [18:48:06]GetLastDocTimeStamp 1717526577 [18:48:06]current date 1717526888 [18:48:06]FM_GetShiftState [18:48:06]SAM_PROTO_GetShiftState [18:48:06]wFMCommunicate request_size=4 [18:48:06]MH_SAM_APDU [18:48:06]CAPDU: 80 13 01 00 [18:48:06]Write to MH i2c: E2 08 00 7F 2C 80 13 01 00 00 00 00 00 28 [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:06]Read from MH i2c: E2 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 0E 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 0E 00 7F 2C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EB [18:48:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:48:06]wFMCommunicate OK [18:48:06]SAM_PROTO_GetShiftState done [18:48:06]FM_GetShiftState done [18:48:06]opened in 1717460629 [18:48:06]opened+sec_in_day 1717547029 [18:48:06]quantity*price = 75061 [18:48:06]sum+1 = 75063 [18:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.62 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 0.00 Безнал.: 750.62 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 296 04.06.2024 18:48 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148957 ФПД: 175257299386641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T184808&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148957&fm=175257299386641&tin=02508201610067®Number=0000000000092720&sum=75062 [18:48:07]StoreToDocumentArchive [18:48:07]shift 368 fd 148957 [18:48:07]save to /storage/0368/doc_00148957 [18:48:07]save last doc name /storage/0368/doc_00148957 to /storage/kkm_last_doc_name [18:48:07]save OK [18:48:07]Clear old archive folders... [18:48:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:07]tlvbuf is 004B7960 [18:48:07]SAM_PROTO_ClearQueue [18:48:07]wFMCommunicate request_size=4 [18:48:07]MH_SAM_APDU [18:48:07]CAPDU: 80 09 00 00 [18:48:07]Write to MH i2c: E2 08 00 8C 2C 80 09 00 00 00 00 00 00 2A [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:07]Read from MH i2c: E2 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 03 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 03 00 8C 2C 00 90 00 2C [18:48:07]RAPDU: 90 00 [18:48:07]wFMCommunicate OK [18:48:07]SAM_PROTO_ClearQueue done [18:48:07]KKMCreateOFDPacket [18:48:07]OFDProtocolAddRootSTLVToBuf [18:48:07]FM_MakeSignedData [18:48:07]FM_MakeSignedData [18:48:07]SAM_PROTO_SignData [18:48:07]wFMCommunicate request_size=4 [18:48:07]MH_SAM_APDU [18:48:07]CAPDU: 80 0D 01 02 [18:48:07]Write to MH i2c: E2 08 00 8D 2C 80 0D 01 02 00 00 00 00 32 [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:07]Read from MH i2c: E2 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 03 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 03 00 8D 2C 00 90 00 2D [18:48:07]RAPDU: 90 00 [18:48:07]wFMCommunicate OK [18:48:07]wFMCommunicate request_size=255 [18:48:07]MH_SAM_APDU [18:48:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 36 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 36 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 68 61 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DD 45 02 00 35 04 06 00 9F [18:48:07]Write to MH i2c: E2 02 01 8E 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 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 36 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 36 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 68 61 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DD 45 02 00 35 04 06 00 9F 00 00 4D [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:07]Read from MH i2c: E2 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 03 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 03 00 8E 2C 00 90 00 2E [18:48:07]RAPDU: 90 00 [18:48:07]wFMCommunicate OK [18:48:07]wFMCommunicate request_size=10 [18:48:07]MH_SAM_APDU [18:48:07]CAPDU: 80 0D 02 02 05 65 45 13 01 11 [18:48:07]Write to MH i2c: E2 0D 00 8F 2C 80 0D 02 02 05 00 65 45 13 01 11 00 00 0E [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:07]Read from MH i2c: E2 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 03 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 03 00 8F 2C 00 90 00 2F [18:48:07]RAPDU: 90 00 [18:48:07]wFMCommunicate OK [18:48:07]wFMCommunicate request_size=4 [18:48:07]MH_SAM_APDU [18:48:07]CAPDU: 80 0D 03 02 [18:48:07]Write to MH i2c: E2 08 00 90 2C 80 0D 03 02 00 00 00 00 37 [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:07]Read from MH i2c: E2 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 0B 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 0B 00 90 2C 00 44 CA A2 AA 23 0E FC 5A 90 00 19 [18:48:07]RAPDU: 44 CA A2 AA 23 0E FC 5A 90 00 [18:48:07]wFMCommunicate OK [18:48:07]SAM_PROTO_SignData done [18:48:07]FM_MakeSignedData done [18:48:07]CreateOFDProtocolMessage [18:48:07]wFMCommunicate request_size=4 [18:48:07]MH_SAM_APDU [18:48:07]CAPDU: 80 11 00 00 [18:48:07]Write to MH i2c: E2 08 00 91 2C 80 11 00 00 00 00 00 00 37 [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:07]Read from MH i2c: E2 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 17 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 17 00 91 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8A [18:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:48:07]wFMCommunicate OK [18:48:07]CreateOFDProtocolMessage done [18:48:07]OFDSenderStorePacket 148957 [18:48:07]StoreOFDPacket docnum=148957 [18:48:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AA C2 07 01 CE DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 36 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 36 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 68 61 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DD 45 02 00 35 04 06 00 9F 65 45 13 01 11 44 CA A2 AA 23 0E FC 5A [18:48:07]CheckFolder [18:48:07]dirname=/storage/ofd_packets [18:48:07]CheckFolder done [18:48:07]ProducePacketName [18:48:07]name=ofd_packets/00148957 [18:48:07]NVStorageSaveData ofd_packets/00148957 [18:48:07]File name is /storage/ofd_packets/00148957 [18:48:07]Write 301 bytes [18:48:07]NVStorageSaveData done [18:48:07]OFDSenderStorePacket done [18:48:07]KKMCreateOFDPacket done [18:48:07]NVStorageSaveData kkm_last_timestamp [18:48:07]File name is /storage/kkm_last_timestamp [18:48:07]Write 4 bytes [18:48:07]NVStorageSaveData done [18:48:07]ExternCall_PrintAddStr [18:48:07]wPrintStart [18:48:07]Write to MH i2c: 01 00 00 92 2C BE [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: 01 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: 01 07 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: 01 07 00 92 2C 00 00 00 00 00 FF 0F D3 [18:48:07]RasterBufferAndPrint [18:48:07]line Счет N : (1)979889 [18:48:07]line ИНН: 02508201610067 [18:48:07]line Контрольно-Кассовый Чек [18:48:07]line ПРОДАЖА [18:48:07]line ТРК (МРК, ГНК) : 41 [18:48:07]line Товар: 2710124130 [18:48:07]line Аи-92-К-5 [18:48:07]line 11.220 * 66.90 [18:48:07]line = 750.62 [18:48:07]line НДС 12% НСП 1% [18:48:07]line > о реализуемом товаре [18:48:07]line ИТОГО: 750.62 [18:48:07]line НСП 1% : 6.64 [18:48:07]line НДС 12% : 79.71 [18:48:07]line Наличными: 0.00 [18:48:07]line Безнал.: 750.62 [18:48:07]line Место: АЗС № 68 "Партнер Нефть" [18:48:07]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:48:07]line СНО: Общий режим [18:48:07]line Чек 296 04.06.2024 18:48 [18:48:07]line Смена: 368 ФФД: 1.0 [18:48:07]line ЗНМ: 0300000035 [18:48:07]line РНМ: 0000000000092720 [18:48:07]line Версия ККМ: 001 [18:48:07]line Платежная система: KICB Банк [18:48:07]line ФМ: 0000000000875057 [18:48:07]line ФД: 148957 [18:48:07]line ФПД: 175257299386641 [18:48:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T184808&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148957&fm=175257299386641&tin=02508201610067®Number=0000000000092720&sum=75062 [18:48:08]OFD Sender: Processing packet 148957 [packets to send 100, broken 99] [18:48:08]ProducePacketName [18:48:08]name=ofd_packets/00148957 [18:48:08]OFD Sender: To server: pG, [18:48:08]CommunicateWithHost lk.salyk.kg:30040 [18:48:08]ConnectInit lk.salyk.kg [18:48:08]written 0, free lines is 4095 [18:48:08]Connected sock=10 [18:48:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AA C2 07 01 CE DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 36 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 36 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 68 61 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DD 45 02 00 35 04 06 00 9F 65 45 13 01 11 44 CA A2 AA 23 0E FC 5A [18:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9B 39 47 00 20 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 38 37 35 30 35 37 10 04 04 00 DD 45 02 00 F4 03 04 00 8B 08 5F 66 B6 04 01 00 00 27 97 48 F0 7C 0B FE A7 [18:48:08]CommunicateWithHost err = 0 [18:48:08]CheckOFDResponse [18:48:08]1017 (14) - 77093643461234 [18:48:08]1041 (16) - 0000000000875057 [18:48:08]1040 (4) - 148957 [18:48:08]1012 (4) - 04.06.2024 12:28 [18:48:08]1206 (1) - 0 [18:48:08]OFD Sender: Remove packet 148957 [18:48:08]ProducePacketName [18:48:08]name=ofd_packets/00148957 [18:48:08]NVStorageDeleteData [18:48:08]Write to MH i2c: 01 00 00 BC 2C E8 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: 01 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: 01 07 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: 01 07 00 BC 2C 00 00 00 00 00 B6 0C B1 [18:48:08]RasterBufferAndPrint [18:48:08]line [18:48:08]line [18:48:08]line [18:48:08]line [18:48:08]line [18:48:08]written 0, free lines is 3258 [18:48:08]MH_Cut [18:48:08]Write to MH i2c: D1 01 00 C3 2C 01 C1 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: D1 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: D1 01 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: D1 01 00 C3 2C 00 C0 [18:48:08]Write to MH i2c: 01 00 00 C4 2C F0 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]OFD Sender: No OFD packet to send [18:48:09]*** Cut start [18:48:09]*** Partial cut [18:48:09]*** CUTSNS_PIN = 1 [18:48:09]*** CUTSNS_PIN = 0 [18:48:09]*** Brake cut motor [18:48:10]Read from MH i2c: 01 [18:48:10]MH_I2C_Read... [18:48:10]*** Stop cut motor [18:48:10]*** Cut end [18:48:10]Read from MH i2c: 01 07 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: 01 07 00 C4 2C 00 00 00 00 00 FF 0F 05 [18:48:10]process_action close_receipt done [18:48:10]requested_data is exist [18:48:10]produce_requested_data [18:48:10]requested_item fm.sn is exist - process it [18:48:10]wFMCommunicate request_size=4 [18:48:10]MH_SAM_APDU [18:48:10]CAPDU: 80 11 00 00 [18:48:10]Write to MH i2c: E2 08 00 C5 2C 80 11 00 00 00 00 00 00 6B [18:48:10]Write i2c OK [18:48:10]MH_I2C_Read... [18:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:10]Read from MH i2c: E2 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 17 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 17 00 C5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BE [18:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:48:10]wFMCommunicate OK [18:48:10]requested_item fd.num is exist - process it [18:48:10]SAM_PROTO_GetFieldsCounters [18:48:10]wFMCommunicate request_size=4 [18:48:10]MH_SAM_APDU [18:48:10]CAPDU: 80 13 00 00 [18:48:10]Write to MH i2c: E2 08 00 C6 2C 80 13 00 00 00 00 00 00 6E [18:48:10]Write i2c OK [18:48:10]MH_I2C_Read... [18:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:10]Read from MH i2c: E2 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 62 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 62 00 C6 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DD 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [18:48:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DD 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:10]wFMCommunicate OK [18:48:10]SAM_PROTO_GetFieldsCounters done [18:48:10]requested_item shift.num is exist - process it [18:48:10]requested_item shift.opened is exist - process it [18:48:10]req_shift_opened [18:48:10]FM_GetShiftState [18:48:10]SAM_PROTO_GetShiftState [18:48:10]wFMCommunicate request_size=4 [18:48:10]MH_SAM_APDU [18:48:10]CAPDU: 80 13 01 00 [18:48:10]Write to MH i2c: E2 08 00 C7 2C 80 13 01 00 00 00 00 00 70 [18:48:10]Write i2c OK [18:48:10]MH_I2C_Read... [18:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:10]Read from MH i2c: E2 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 0E 00 [18:48:10]MH_I2C_Read... [18:48:10]Read from MH i2c: E2 0E 00 C7 2C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 33 [18:48:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:48:10]wFMCommunicate OK [18:48:10]SAM_PROTO_GetShiftState done [18:48:10]FM_GetShiftState done [18:48:10]req_shift_opened done [18:48:10]requested_item shift.open_date is exist - process it [18:48:10]req_shift_open_date [18:48:10]req_shift_open_date done [18:48:10]produce_requested_data done [18:48:10]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148957,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:48:10]process_action_free close_receipt [18:48:10]json_value_free [18:48:10]json_value_free done [18:48:10]process_json_proto returns [18:48:10]Send response to host [18:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148957,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:48:10]free response buf [18:48:10]execute_script done [18:48:10]execute_script returns [18:48:10]free content buf [18:48:10]Sock 9.Close socket [18:48:10]Sock 9.Thread stoped [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:22]accept exits with 7 [18:49:22]New connection [18:49:22]New thread 3067264356 created [18:49:22]Thread 3067407716 joined [18:49:22]Waiting for new connection... [18:49:22] Sock 7.Parse request [18:49:22]Sock 7.Check first char [18:49:22]Sock 7.First char is OK [18:49:22]request: POST /json_proto HTTP/1.0 [18:49:22]Method: POST [18:49:22]URL: /json_proto [18:49:22]Method is POST - this is cgi request [18:49:22]url: /json_proto [18:49:22]query_string will be loaded in cgi processing [18:49:22]execute_cgi json_proto POST (null) [18:49:22]execute_cgi path=json_proto method=POST [18:49:22]POST find Content-Length [18:49:22]Host: 172.17.38.4:8080 [18:49:22]Content-Length: 677 [18:49:22]Content-Type: application/json [18:49:22] [18:49:22]POST finish read [18:49:22]Found Content-Length = 677 [18:49:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:22]execute_script... [18:49: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)979890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:22]POST & json_proto [18:49:22]process_json_proto [18:49:22]json parsed OK: [18:49:22]protocol is kg_v1.0 [18:49:22]action value=close_receipt [18:49:22]process_action close_receipt [18:49:22]cmd_close_receipt [18:49:22]MH_GetDate [18:49:22]Write to MH i2c: F0 00 00 C8 2C E3 [18:49:22]Write i2c OK [18:49:22]MH_I2C_Read... [18:49:22]Read from MH i2c: F0 [18:49:22]MH_I2C_Read... [18:49:22]Read from MH i2c: F0 09 00 [18:49:22]MH_I2C_Read... [18:49:22]Read from MH i2c: F0 09 00 C8 2C 00 B4 61 5F 66 CC 51 87 64 CE [18:49:22]GetLastDocTimeStamp 1717526888 [18:49:22]current date 1717526964 [18:49:22]FM_GetShiftState [18:49:22]SAM_PROTO_GetShiftState [18:49:22]wFMCommunicate request_size=4 [18:49:22]MH_SAM_APDU [18:49:22]CAPDU: 80 13 01 00 [18:49:22]Write to MH i2c: E2 08 00 C9 2C 80 13 01 00 00 00 00 00 72 [18:49:22]Write i2c OK [18:49:22]MH_I2C_Read... [18:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:22]Read from MH i2c: E2 [18:49:22]MH_I2C_Read... [18:49:22]Read from MH i2c: E2 0E 00 [18:49:22]MH_I2C_Read... [18:49:22]Read from MH i2c: E2 0E 00 C9 2C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 35 [18:49:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:49:22]wFMCommunicate OK [18:49:22]SAM_PROTO_GetShiftState done [18:49:22]FM_GetShiftState done [18:49:22]opened in 1717460629 [18:49:22]opened+sec_in_day 1717547029 [18:49:22]quantity*price = 40006 [18:49:22]sum+1 = 40007 [18:49:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 297 04.06.2024 18:49 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148958 ФПД: 178160744040886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T184924&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148958&fm=178160744040886&tin=02508201610067®Number=0000000000092720&sum=40000 [18:49:23]StoreToDocumentArchive [18:49:23]shift 368 fd 148958 [18:49:23]save to /storage/0368/doc_00148958 [18:49:23]save last doc name /storage/0368/doc_00148958 to /storage/kkm_last_doc_name [18:49:23]save OK [18:49:23]Clear old archive folders... [18:49:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:23]tlvbuf is 0052EA10 [18:49:23]SAM_PROTO_ClearQueue [18:49:23]wFMCommunicate request_size=4 [18:49:23]MH_SAM_APDU [18:49:23]CAPDU: 80 09 00 00 [18:49:23]Write to MH i2c: E2 08 00 D6 2C 80 09 00 00 00 00 00 00 74 [18:49:23]Write i2c OK [18:49:23]MH_I2C_Read... [18:49:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:23]Read from MH i2c: E2 [18:49:23]MH_I2C_Read... [18:49:23]Read from MH i2c: E2 03 00 [18:49:23]MH_I2C_Read... [18:49:23]Read from MH i2c: E2 03 00 D6 2C 00 90 00 76 [18:49:23]RAPDU: 90 00 [18:49:23]wFMCommunicate OK [18:49:23]SAM_PROTO_ClearQueue done [18:49:23]KKMCreateOFDPacket [18:49:23]OFDProtocolAddRootSTLVToBuf [18:49:23]FM_MakeSignedData [18:49:23]FM_MakeSignedData [18:49:23]SAM_PROTO_SignData [18:49:23]wFMCommunicate request_size=4 [18:49:23]MH_SAM_APDU [18:49:23]CAPDU: 80 0D 01 02 [18:49:23]Write to MH i2c: E2 08 00 D7 2C 80 0D 01 02 00 00 00 00 7C [18:49:23]Write i2c OK [18:49:23]MH_I2C_Read... [18:49:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:23]Read from MH i2c: E2 [18:49:23]MH_I2C_Read... [18:49:23]Read from MH i2c: E2 03 00 [18:49:23]MH_I2C_Read... [18:49:23]Read from MH i2c: E2 03 00 D7 2C 00 90 00 77 [18:49:23]RAPDU: 90 00 [18:49:23]wFMCommunicate OK [18:49:23]wFMCommunicate request_size=255 [18:49:23]MH_SAM_APDU [18:49:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 01 00 00 F4 03 04 00 B4 61 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DE 45 02 00 35 04 06 00 A2 [18:49:23]Write to MH i2c: E2 02 01 D8 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 B4 61 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DE 45 02 00 35 04 06 00 A2 00 00 11 [18:49:23]Write i2c OK [18:49:23]MH_I2C_Read... [18:49:24]OFD Sender: No OFD packet to send [18:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:24]Read from MH i2c: E2 [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: E2 03 00 [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: E2 03 00 D8 2C 00 90 00 78 [18:49:24]RAPDU: 90 00 [18:49:24]wFMCommunicate OK [18:49:24]wFMCommunicate request_size=10 [18:49:24]MH_SAM_APDU [18:49:24]CAPDU: 80 0D 02 02 05 09 47 DC 89 B6 [18:49:24]Write to MH i2c: E2 0D 00 D9 2C 80 0D 02 02 05 00 09 47 DC 89 B6 00 00 F4 [18:49:24]Write i2c OK [18:49:24]MH_I2C_Read... [18:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:24]Read from MH i2c: E2 [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: E2 03 00 [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: E2 03 00 D9 2C 00 90 00 79 [18:49:24]RAPDU: 90 00 [18:49:24]wFMCommunicate OK [18:49:24]wFMCommunicate request_size=4 [18:49:24]MH_SAM_APDU [18:49:24]CAPDU: 80 0D 03 02 [18:49:24]Write to MH i2c: E2 08 00 DA 2C 80 0D 03 02 00 00 00 00 81 [18:49:24]Write i2c OK [18:49:24]MH_I2C_Read... [18:49:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:24]Read from MH i2c: E2 [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: E2 0B 00 [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: E2 0B 00 DA 2C 00 AB 69 90 9D D3 C0 19 C3 90 00 32 [18:49:24]RAPDU: AB 69 90 9D D3 C0 19 C3 90 00 [18:49:24]wFMCommunicate OK [18:49:24]SAM_PROTO_SignData done [18:49:24]FM_MakeSignedData done [18:49:24]CreateOFDProtocolMessage [18:49:24]wFMCommunicate request_size=4 [18:49:24]MH_SAM_APDU [18:49:24]CAPDU: 80 11 00 00 [18:49:24]Write to MH i2c: E2 08 00 DB 2C 80 11 00 00 00 00 00 00 81 [18:49:24]Write i2c OK [18:49:24]MH_I2C_Read... [18:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:24]Read from MH i2c: E2 [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: E2 17 00 [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: E2 17 00 DB 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D4 [18:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:49:24]wFMCommunicate OK [18:49:24]CreateOFDProtocolMessage done [18:49:24]OFDSenderStorePacket 148958 [18:49:24]StoreOFDPacket docnum=148958 [18:49:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 12 34 07 01 BB 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 01 00 00 F4 03 04 00 B4 61 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DE 45 02 00 35 04 06 00 A2 09 47 DC 89 B6 AB 69 90 9D D3 C0 19 C3 [18:49:24]CheckFolder [18:49:24]dirname=/storage/ofd_packets [18:49:24]CheckFolder done [18:49:24]ProducePacketName [18:49:24]name=ofd_packets/00148958 [18:49:24]NVStorageSaveData ofd_packets/00148958 [18:49:24]File name is /storage/ofd_packets/00148958 [18:49:24]Write 301 bytes [18:49:24]NVStorageSaveData done [18:49:24]OFDSenderStorePacket done [18:49:24]KKMCreateOFDPacket done [18:49:24]NVStorageSaveData kkm_last_timestamp [18:49:24]File name is /storage/kkm_last_timestamp [18:49:24]Write 4 bytes [18:49:24]NVStorageSaveData done [18:49:24]ExternCall_PrintAddStr [18:49:24]wPrintStart [18:49:24]Write to MH i2c: 01 00 00 DC 2C 08 [18:49:24]Write i2c OK [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: 01 [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: 01 07 00 [18:49:24]MH_I2C_Read... [18:49:24]Read from MH i2c: 01 07 00 DC 2C 00 00 00 00 00 FF 0F 1D [18:49:24]RasterBufferAndPrint [18:49:24]line Счет N : (1)979890 [18:49:24]line ИНН: 02508201610067 [18:49:24]line Контрольно-Кассовый Чек [18:49:24]line ПРОДАЖА [18:49:24]line ТРК (МРК, ГНК) : 41 [18:49:24]line Товар: 2710124130 [18:49:24]line Аи-92-К-5 [18:49:24]line 5.980 * 66.90 [18:49:24]line = 400.06 [18:49:24]line НДС 12% НСП 1% [18:49:24]line > о реализуемом товаре [18:49:24]line ОКРУГЛЕНИЕ: -0.06 [18:49:24]line ИТОГО: 400.00 [18:49:24]line Внесено: 400.00 [18:49:24]line СДАЧА: 0.00 [18:49:24]line НСП 1% : 3.54 [18:49:24]line НДС 12% : 42.48 [18:49:24]line Наличными: 400.00 [18:49:24]line Безнал.: 0.00 [18:49:24]line Место: АЗС № 68 "Партнер Нефть" [18:49:24]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:49:24]line СНО: Общий режим [18:49:24]line Чек 297 04.06.2024 18:49 [18:49:24]line Смена: 368 ФФД: 1.0 [18:49:24]line ЗНМ: 0300000035 [18:49:24]line РНМ: 0000000000092720 [18:49:24]line Версия ККМ: 001 [18:49:24]line ФМ: 0000000000875057 [18:49:24]line ФД: 148958 [18:49:24]line ФПД: 178160744040886 [18:49:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T184924&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148958&fm=178160744040886&tin=02508201610067®Number=0000000000092720&sum=40000 [18:49:24]OFD Sender: Processing packet 148958 [packets to send 100, broken 99] [18:49:24]ProducePacketName [18:49:24]name=ofd_packets/00148958 [18:49:24]OFD Sender: To server: pG, [18:49:24]CommunicateWithHost lk.salyk.kg:30040 [18:49:24]ConnectInit lk.salyk.kg [18:49:24]written 0, free lines is 4095 [18:49:24]Connected sock=10 [18:49:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 12 34 07 01 BB 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 01 00 00 F4 03 04 00 B4 61 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DE 45 02 00 35 04 06 00 A2 09 47 DC 89 B6 AB 69 90 9D D3 C0 19 C3 [18:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D1 0B 47 00 26 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 38 37 35 30 35 37 10 04 04 00 DE 45 02 00 F4 03 04 00 D8 08 5F 66 B6 04 01 00 00 42 EB 8B 32 D2 01 C1 FA [18:49:25]CommunicateWithHost err = 0 [18:49:25]CheckOFDResponse [18:49:25]1017 (14) - 77093643461234 [18:49:25]1041 (16) - 0000000000875057 [18:49:25]1040 (4) - 148958 [18:49:25]1012 (4) - 04.06.2024 12:30 [18:49:25]1206 (1) - 0 [18:49:25]OFD Sender: Remove packet 148958 [18:49:25]ProducePacketName [18:49:25]name=ofd_packets/00148958 [18:49:25]NVStorageDeleteData [18:49:25]Write to MH i2c: 01 00 00 07 2D 34 [18:49:25]Write i2c OK [18:49:25]MH_I2C_Read... [18:49:25]Read from MH i2c: 01 [18:49:25]MH_I2C_Read... [18:49:25]Read from MH i2c: 01 07 00 [18:49:25]MH_I2C_Read... [18:49:25]Read from MH i2c: 01 07 00 07 2D 00 00 00 00 00 A5 0C EC [18:49:25]RasterBufferAndPrint [18:49:25]line [18:49:25]line [18:49:25]line [18:49:25]line [18:49:25]line [18:49:25]written 0, free lines is 3242 [18:49:25]MH_Cut [18:49:25]Write to MH i2c: D1 01 00 0E 2D 01 0D [18:49:25]Write i2c OK [18:49:25]MH_I2C_Read... [18:49:25]Read from MH i2c: D1 [18:49:25]MH_I2C_Read... [18:49:25]Read from MH i2c: D1 01 00 [18:49:25]MH_I2C_Read... [18:49:25]Read from MH i2c: D1 01 00 0E 2D 00 0C [18:49:25]Write to MH i2c: 01 00 00 0F 2D 3C [18:49:25]Write i2c OK [18:49:25]MH_I2C_Read... [18:49:25]OFD Sender: No OFD packet to send [18:49:26]*** Cut start [18:49:26]*** Partial cut [18:49:26]*** CUTSNS_PIN = 1 [18:49:26]*** CUTSNS_PIN = 0 [18:49:26]*** Brake cut motor [18:49:26]Read from MH i2c: 01 [18:49:26]MH_I2C_Read... [18:49:26]Read from MH i2c: 01 07 00 [18:49:26]MH_I2C_Read... [18:49:26]*** Stop cut motor [18:49:26]*** Cut end [18:49:26]Read from MH i2c: 01 07 00 0F 2D 00 00 00 00 00 FF 0F 51 [18:49:26]process_action close_receipt done [18:49:26]requested_data is exist [18:49:26]produce_requested_data [18:49:26]requested_item fm.sn is exist - process it [18:49:26]wFMCommunicate request_size=4 [18:49:26]MH_SAM_APDU [18:49:26]CAPDU: 80 11 00 00 [18:49:26]Write to MH i2c: E2 08 00 10 2D 80 11 00 00 00 00 00 00 B7 [18:49:26]Write i2c OK [18:49:26]MH_I2C_Read... [18:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:26]Read from MH i2c: E2 [18:49:26]MH_I2C_Read... [18:49:26]Read from MH i2c: E2 17 00 [18:49:26]MH_I2C_Read... [18:49:26]Read from MH i2c: E2 17 00 10 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0A [18:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:49:26]wFMCommunicate OK [18:49:26]requested_item fd.num is exist - process it [18:49:26]SAM_PROTO_GetFieldsCounters [18:49:26]wFMCommunicate request_size=4 [18:49:26]MH_SAM_APDU [18:49:26]CAPDU: 80 13 00 00 [18:49:26]Write to MH i2c: E2 08 00 11 2D 80 13 00 00 00 00 00 00 BA [18:49:26]Write i2c OK [18:49:26]MH_I2C_Read... [18:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:27]Read from MH i2c: E2 [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: E2 62 00 [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: E2 62 00 11 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [18:49:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:27]wFMCommunicate OK [18:49:27]SAM_PROTO_GetFieldsCounters done [18:49:27]requested_item shift.num is exist - process it [18:49:27]requested_item shift.opened is exist - process it [18:49:27]req_shift_opened [18:49:27]FM_GetShiftState [18:49:27]SAM_PROTO_GetShiftState [18:49:27]wFMCommunicate request_size=4 [18:49:27]MH_SAM_APDU [18:49:27]CAPDU: 80 13 01 00 [18:49:27]Write to MH i2c: E2 08 00 12 2D 80 13 01 00 00 00 00 00 BC [18:49:27]Write i2c OK [18:49:27]MH_I2C_Read... [18:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:27]Read from MH i2c: E2 [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: E2 0E 00 [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: E2 0E 00 12 2D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7F [18:49:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:49:27]wFMCommunicate OK [18:49:27]SAM_PROTO_GetShiftState done [18:49:27]FM_GetShiftState done [18:49:27]req_shift_opened done [18:49:27]requested_item shift.open_date is exist - process it [18:49:27]req_shift_open_date [18:49:27]req_shift_open_date done [18:49:27]produce_requested_data done [18:49:27]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148958,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:49:27]process_action_free close_receipt [18:49:27]json_value_free [18:49:27]json_value_free done [18:49:27]process_json_proto returns [18:49:27]Send response to host [18:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148958,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:49:27]free response buf [18:49:27]execute_script done [18:49:27]execute_script returns [18:49:27]free content buf [18:49:27]Sock 7.Close socket [18:49:27]Sock 7.Thread stoped [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:54]accept exits with 9 [18:50:54]New connection [18:50:54]New thread 3067407716 created [18:50:54]Thread 3067264356 joined [18:50:54]Waiting for new connection... [18:50:54] Sock 9.Parse request [18:50:54]Sock 9.Check first char [18:50:54]Sock 9.First char is OK [18:50:54]request: POST /json_proto HTTP/1.0 [18:50:54]Method: POST [18:50:54]URL: /json_proto [18:50:54]Method is POST - this is cgi request [18:50:54]url: /json_proto [18:50:54]query_string will be loaded in cgi processing [18:50:54]execute_cgi json_proto POST (null) [18:50:54]execute_cgi path=json_proto method=POST [18:50:54]POST find Content-Length [18:50:54]Host: 172.17.38.4:8080 [18:50:54]Content-Length: 677 [18:50:54]Content-Type: application/json [18:50:54] [18:50:54]POST finish read [18:50:54]Found Content-Length = 677 [18:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:54]execute_script... [18:50: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)979891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:54]POST & json_proto [18:50:54]process_json_proto [18:50:54]json parsed OK: [18:50:54]protocol is kg_v1.0 [18:50:54]action value=close_receipt [18:50:54]process_action close_receipt [18:50:54]cmd_close_receipt [18:50:54]MH_GetDate [18:50:54]Write to MH i2c: F0 00 00 13 2D 2F [18:50:54]Write i2c OK [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: F0 [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: F0 09 00 [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: F0 09 00 13 2D 00 11 62 5F 66 CC 51 87 64 78 [18:50:54]GetLastDocTimeStamp 1717526964 [18:50:54]current date 1717527057 [18:50:54]FM_GetShiftState [18:50:54]SAM_PROTO_GetShiftState [18:50:54]wFMCommunicate request_size=4 [18:50:54]MH_SAM_APDU [18:50:54]CAPDU: 80 13 01 00 [18:50:54]Write to MH i2c: E2 08 00 14 2D 80 13 01 00 00 00 00 00 BE [18:50:54]Write i2c OK [18:50:54]MH_I2C_Read... [18:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:54]Read from MH i2c: E2 [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: E2 0E 00 [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: E2 0E 00 14 2D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 81 [18:50:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:50:54]wFMCommunicate OK [18:50:54]SAM_PROTO_GetShiftState done [18:50:54]FM_GetShiftState done [18:50:54]opened in 1717460629 [18:50:54]opened+sec_in_day 1717547029 [18:50:54]quantity*price = 50041 [18:50:54]sum+1 = 50042 [18:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 298 04.06.2024 18:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148959 ФПД: 11491558481478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185057&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148959&fm=11491558481478&tin=02508201610067®Number=0000000000092720&sum=50000 [18:50:56]StoreToDocumentArchive [18:50:56]shift 368 fd 148959 [18:50:56]save to /storage/0368/doc_00148959 [18:50:56]save last doc name /storage/0368/doc_00148959 to /storage/kkm_last_doc_name [18:50:56]save OK [18:50:56]Clear old archive folders... [18:50:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:56]tlvbuf is 004F0940 [18:50:56]SAM_PROTO_ClearQueue [18:50:56]wFMCommunicate request_size=4 [18:50:56]MH_SAM_APDU [18:50:56]CAPDU: 80 09 00 00 [18:50:56]Write to MH i2c: E2 08 00 21 2D 80 09 00 00 00 00 00 00 C0 [18:50:56]Write i2c OK [18:50:56]MH_I2C_Read... [18:50:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:56]Read from MH i2c: E2 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 03 00 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 03 00 21 2D 00 90 00 C2 [18:50:56]RAPDU: 90 00 [18:50:56]wFMCommunicate OK [18:50:56]SAM_PROTO_ClearQueue done [18:50:56]KKMCreateOFDPacket [18:50:56]OFDProtocolAddRootSTLVToBuf [18:50:56]FM_MakeSignedData [18:50:56]FM_MakeSignedData [18:50:56]SAM_PROTO_SignData [18:50:56]wFMCommunicate request_size=4 [18:50:56]MH_SAM_APDU [18:50:56]CAPDU: 80 0D 01 02 [18:50:56]Write to MH i2c: E2 08 00 22 2D 80 0D 01 02 00 00 00 00 C8 [18:50:56]Write i2c OK [18:50:56]MH_I2C_Read... [18:50:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:56]Read from MH i2c: E2 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 03 00 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 03 00 22 2D 00 90 00 C3 [18:50:56]RAPDU: 90 00 [18:50:56]wFMCommunicate OK [18:50:56]wFMCommunicate request_size=255 [18:50:56]MH_SAM_APDU [18:50:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 11 62 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DF 45 02 00 35 04 06 00 0A [18:50:56]Write to MH i2c: E2 02 01 23 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 11 62 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DF 45 02 00 35 04 06 00 0A 00 00 56 [18:50:56]Write i2c OK [18:50:56]MH_I2C_Read... [18:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:56]Read from MH i2c: E2 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 03 00 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 03 00 23 2D 00 90 00 C4 [18:50:56]RAPDU: 90 00 [18:50:56]wFMCommunicate OK [18:50:56]wFMCommunicate request_size=10 [18:50:56]MH_SAM_APDU [18:50:56]CAPDU: 80 0D 02 02 05 73 96 42 DE 46 [18:50:56]Write to MH i2c: E2 0D 00 24 2D 80 0D 02 02 05 00 73 96 42 DE 46 00 00 44 [18:50:56]Write i2c OK [18:50:56]MH_I2C_Read... [18:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:56]Read from MH i2c: E2 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 03 00 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 03 00 24 2D 00 90 00 C5 [18:50:56]RAPDU: 90 00 [18:50:56]wFMCommunicate OK [18:50:56]wFMCommunicate request_size=4 [18:50:56]MH_SAM_APDU [18:50:56]CAPDU: 80 0D 03 02 [18:50:56]Write to MH i2c: E2 08 00 25 2D 80 0D 03 02 00 00 00 00 CD [18:50:56]Write i2c OK [18:50:56]MH_I2C_Read... [18:50:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:56]Read from MH i2c: E2 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 0B 00 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 0B 00 25 2D 00 5C 20 A4 3D F1 50 5C BC 90 00 84 [18:50:56]RAPDU: 5C 20 A4 3D F1 50 5C BC 90 00 [18:50:56]wFMCommunicate OK [18:50:56]SAM_PROTO_SignData done [18:50:56]FM_MakeSignedData done [18:50:56]CreateOFDProtocolMessage [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 26 2D 80 11 00 00 00 00 00 00 CD [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 26 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 20 [18:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:50:56]wFMCommunicate OK [18:50:56]CreateOFDProtocolMessage done [18:50:56]OFDSenderStorePacket 148959 [18:50:56]StoreOFDPacket docnum=148959 [18:50:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AC 0B 07 01 75 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 11 62 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DF 45 02 00 35 04 06 00 0A 73 96 42 DE 46 5C 20 A4 3D F1 50 5C BC [18:50:56]CheckFolder [18:50:56]dirname=/storage/ofd_packets [18:50:56]CheckFolder done [18:50:56]ProducePacketName [18:50:56]name=ofd_packets/00148959 [18:50:56]NVStorageSaveData ofd_packets/00148959 [18:50:56]File name is /storage/ofd_packets/00148959 [18:50:56]Write 301 bytes [18:50:56]NVStorageSaveData done [18:50:56]OFDSenderStorePacket done [18:50:56]KKMCreateOFDPacket done [18:50:56]NVStorageSaveData kkm_last_timestamp [18:50:56]File name is /storage/kkm_last_timestamp [18:50:56]Write 4 bytes [18:50:56]NVStorageSaveData done [18:50:56]ExternCall_PrintAddStr [18:50:56]wPrintStart [18:50:56]Write to MH i2c: 01 00 00 27 2D 54 [18:50:56]Write i2c OK [18:50:56]MH_I2C_Read... [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]Read from MH i2c: 01 07 00 27 2D 00 00 00 00 00 FF 0F 69 [18:50:56]RasterBufferAndPrint [18:50:56]line Счет N : (1)979891 [18:50:56]line ИНН: 02508201610067 [18:50:56]line Контрольно-Кассовый Чек [18:50:56]line ПРОДАЖА [18:50:56]line ТРК (МРК, ГНК) : 22 [18:50:56]line Товар: 2710124130 [18:50:56]line Аи-92-К-5 [18:50:56]line 7.480 * 66.90 [18:50:56]line = 500.41 [18:50:56]line НДС 12% НСП 1% [18:50:56]line > о реализуемом товаре [18:50:56]line ОКРУГЛЕНИЕ: -0.41 [18:50:56]line ИТОГО: 500.00 [18:50:56]line Внесено: 500.00 [18:50:56]line СДАЧА: 0.00 [18:50:56]line НСП 1% : 4.43 [18:50:56]line НДС 12% : 53.14 [18:50:56]line Наличными: 500.00 [18:50:56]line Безнал.: 0.00 [18:50:56]line Место: АЗС № 68 "Партнер Нефть" [18:50:56]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:50:56]line СНО: Общий режим [18:50:56]line Чек 298 04.06.2024 18:50 [18:50:56]line Смена: 368 ФФД: 1.0 [18:50:56]line ЗНМ: 0300000035 [18:50:56]line РНМ: 0000000000092720 [18:50:56]line Версия ККМ: 001 [18:50:56]line ФМ: 0000000000875057 [18:50:56]line ФД: 148959 [18:50:56]line ФПД: 11491558481478 [18:50:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185057&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148959&fm=11491558481478&tin=02508201610067®Number=0000000000092720&sum=50000 [18:50:56]OFD Sender: Processing packet 148959 [packets to send 100, broken 99] [18:50:56]ProducePacketName [18:50:56]name=ofd_packets/00148959 [18:50:56]OFD Sender: To server: pG, [18:50:56]CommunicateWithHost lk.salyk.kg:30040 [18:50:56]ConnectInit lk.salyk.kg [18:50:56]written 0, free lines is 4095 [18:50:57]Connected sock=10 [18:50:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AC 0B 07 01 75 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 11 62 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DF 45 02 00 35 04 06 00 0A 73 96 42 DE 46 5C 20 A4 3D F1 50 5C BC [18:50:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E3 ED 47 00 8C B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 DF 45 02 00 F4 03 04 00 34 09 5F 66 B6 04 01 00 00 59 50 CE C8 88 10 46 1D [18:50:57]CommunicateWithHost err = 0 [18:50:57]CheckOFDResponse [18:50:57]1017 (14) - 77093643461234 [18:50:57]1041 (16) - 0000000000875057 [18:50:57]1040 (4) - 148959 [18:50:57]1012 (4) - 04.06.2024 12:31 [18:50:57]1206 (1) - 0 [18:50:57]OFD Sender: Remove packet 148959 [18:50:57]ProducePacketName [18:50:57]name=ofd_packets/00148959 [18:50:57]NVStorageDeleteData [18:50:57]Write to MH i2c: 01 00 00 52 2D 7F [18:50:57]Write i2c OK [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: 01 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: 01 07 00 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: 01 07 00 52 2D 00 00 00 00 00 AA 0C 3C [18:50:57]RasterBufferAndPrint [18:50:57]line [18:50:57]line [18:50:57]line [18:50:57]line [18:50:57]line [18:50:57]written 0, free lines is 3246 [18:50:57]MH_Cut [18:50:57]Write to MH i2c: D1 01 00 59 2D 01 58 [18:50:57]Write i2c OK [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: D1 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: D1 01 00 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: D1 01 00 59 2D 00 57 [18:50:57]Write to MH i2c: 01 00 00 5A 2D 87 [18:50:57]Write i2c OK [18:50:57]MH_I2C_Read... [18:50:57]OFD Sender: No OFD packet to send [18:50:58]*** Cut start [18:50:58]*** Partial cut [18:50:58]*** CUTSNS_PIN = 1 [18:50:58]*** CUTSNS_PIN = 0 [18:50:58]*** Brake cut motor [18:50:59]Read from MH i2c: 01 [18:50:59]MH_I2C_Read... [18:50:59]*** Stop cut motor [18:50:59]*** Cut end [18:50:59]Read from MH i2c: 01 07 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 07 00 5A 2D 00 00 00 00 00 FF 0F 9C [18:50:59]process_action close_receipt done [18:50:59]requested_data is exist [18:50:59]produce_requested_data [18:50:59]requested_item fm.sn is exist - process it [18:50:59]wFMCommunicate request_size=4 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 11 00 00 [18:50:59]Write to MH i2c: E2 08 00 5B 2D 80 11 00 00 00 00 00 00 02 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 17 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 17 00 5B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 55 [18:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:50:59]wFMCommunicate OK [18:50:59]requested_item fd.num is exist - process it [18:50:59]SAM_PROTO_GetFieldsCounters [18:50:59]wFMCommunicate request_size=4 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 13 00 00 [18:50:59]Write to MH i2c: E2 08 00 5C 2D 80 13 00 00 00 00 00 00 05 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 62 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 62 00 5C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [18:50:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 DF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:59]wFMCommunicate OK [18:50:59]SAM_PROTO_GetFieldsCounters done [18:50:59]requested_item shift.num is exist - process it [18:50:59]requested_item shift.opened is exist - process it [18:50:59]req_shift_opened [18:50:59]FM_GetShiftState [18:50:59]SAM_PROTO_GetShiftState [18:50:59]wFMCommunicate request_size=4 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 13 01 00 [18:50:59]Write to MH i2c: E2 08 00 5D 2D 80 13 01 00 00 00 00 00 07 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 0E 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 0E 00 5D 2D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CA [18:50:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:50:59]wFMCommunicate OK [18:50:59]SAM_PROTO_GetShiftState done [18:50:59]FM_GetShiftState done [18:50:59]req_shift_opened done [18:50:59]requested_item shift.open_date is exist - process it [18:50:59]req_shift_open_date [18:50:59]req_shift_open_date done [18:50:59]produce_requested_data done [18:50:59]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148959,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:50:59]process_action_free close_receipt [18:50:59]json_value_free [18:50:59]json_value_free done [18:50:59]process_json_proto returns [18:50:59]Send response to host [18:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148959,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:50:59]free response buf [18:50:59]execute_script done [18:50:59]execute_script returns [18:50:59]free content buf [18:50:59]Sock 9.Close socket [18:50:59]Sock 9.Thread stoped [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:30]accept exits with 7 [18:53:30]New connection [18:53:30]New thread 3067264356 created [18:53:30]Thread 3067407716 joined [18:53:30]Waiting for new connection... [18:53:30] Sock 7.Parse request [18:53:30]Sock 7.Check first char [18:53:30]Sock 7.First char is OK [18:53:30]request: POST /json_proto HTTP/1.0 [18:53:30]Method: POST [18:53:30]URL: /json_proto [18:53:30]Method is POST - this is cgi request [18:53:30]url: /json_proto [18:53:30]query_string will be loaded in cgi processing [18:53:30]execute_cgi json_proto POST (null) [18:53:30]execute_cgi path=json_proto method=POST [18:53:30]POST find Content-Length [18:53:30]Host: 172.17.38.4:8080 [18:53:30]Content-Length: 674 [18:53:30]Content-Type: application/json [18:53:30] [18:53:30]POST finish read [18:53:30]Found Content-Length = 674 [18:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [18:53:30]execute_script... [18:53: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)979892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [18:53:30]POST & json_proto [18:53:30]process_json_proto [18:53:30]json parsed OK: [18:53:30]protocol is kg_v1.0 [18:53:30]action value=close_receipt [18:53:30]process_action close_receipt [18:53:30]cmd_close_receipt [18:53:30]MH_GetDate [18:53:30]Write to MH i2c: F0 00 00 5E 2D 7A [18:53:30]Write i2c OK [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: F0 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: F0 09 00 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: F0 09 00 5E 2D 00 AC 62 5F 66 CC 51 87 64 5E [18:53:30]GetLastDocTimeStamp 1717527057 [18:53:30]current date 1717527212 [18:53:30]FM_GetShiftState [18:53:30]SAM_PROTO_GetShiftState [18:53:30]wFMCommunicate request_size=4 [18:53:30]MH_SAM_APDU [18:53:30]CAPDU: 80 13 01 00 [18:53:30]Write to MH i2c: E2 08 00 5F 2D 80 13 01 00 00 00 00 00 09 [18:53:30]Write i2c OK [18:53:30]MH_I2C_Read... [18:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:30]Read from MH i2c: E2 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: E2 0E 00 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: E2 0E 00 5F 2D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CC [18:53:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:53:30]wFMCommunicate OK [18:53:30]SAM_PROTO_GetShiftState done [18:53:30]FM_GetShiftState done [18:53:30]opened in 1717460629 [18:53:30]opened+sec_in_day 1717547029 [18:53:30]quantity*price = 30034 [18:53:30]sum+1 = 30036 [18:53:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 299 04.06.2024 18:53 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148960 ФПД: 258100848806893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185332&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148960&fm=258100848806893&tin=02508201610067®Number=0000000000092720&sum=30000 [18:53:31]StoreToDocumentArchive [18:53:31]shift 368 fd 148960 [18:53:31]save to /storage/0368/doc_00148960 [18:53:31]save last doc name /storage/0368/doc_00148960 to /storage/kkm_last_doc_name [18:53:31]save OK [18:53:31]Clear old archive folders... [18:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:53:31]tlvbuf is 00486700 [18:53:31]SAM_PROTO_ClearQueue [18:53:31]wFMCommunicate request_size=4 [18:53:31]MH_SAM_APDU [18:53:31]CAPDU: 80 09 00 00 [18:53:31]Write to MH i2c: E2 08 00 6C 2D 80 09 00 00 00 00 00 00 0B [18:53:31]Write i2c OK [18:53:31]MH_I2C_Read... [18:53:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:31]Read from MH i2c: E2 [18:53:31]MH_I2C_Read... [18:53:31]Read from MH i2c: E2 03 00 [18:53:31]MH_I2C_Read... [18:53:31]Read from MH i2c: E2 03 00 6C 2D 00 90 00 0D [18:53:31]RAPDU: 90 00 [18:53:31]wFMCommunicate OK [18:53:31]SAM_PROTO_ClearQueue done [18:53:31]KKMCreateOFDPacket [18:53:31]OFDProtocolAddRootSTLVToBuf [18:53:31]FM_MakeSignedData [18:53:31]FM_MakeSignedData [18:53:31]SAM_PROTO_SignData [18:53:31]wFMCommunicate request_size=4 [18:53:31]MH_SAM_APDU [18:53:31]CAPDU: 80 0D 01 02 [18:53:31]Write to MH i2c: E2 08 00 6D 2D 80 0D 01 02 00 00 00 00 13 [18:53:31]Write i2c OK [18:53:31]MH_I2C_Read... [18:53:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:31]Read from MH i2c: E2 [18:53:31]MH_I2C_Read... [18:53:31]Read from MH i2c: E2 03 00 [18:53:31]MH_I2C_Read... [18:53:31]Read from MH i2c: E2 03 00 6D 2D 00 90 00 0E [18:53:31]RAPDU: 90 00 [18:53:31]wFMCommunicate OK [18:53:31]wFMCommunicate request_size=255 [18:53:31]MH_SAM_APDU [18:53:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 01 00 00 F4 03 04 00 AC 62 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E0 45 02 00 35 04 06 00 EA BD C9 68 [18:53:31]Write to MH i2c: E2 02 01 6E 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 01 00 00 F4 03 04 00 AC 62 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E0 45 02 00 35 04 06 00 EA BD C9 68 00 00 37 [18:53:31]Write i2c OK [18:53:31]MH_I2C_Read... [18:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:32]Read from MH i2c: E2 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 03 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 03 00 6E 2D 00 90 00 0F [18:53:32]RAPDU: 90 00 [18:53:32]wFMCommunicate OK [18:53:32]wFMCommunicate request_size=7 [18:53:32]MH_SAM_APDU [18:53:32]CAPDU: 80 0D 02 02 02 CB ED [18:53:32]Write to MH i2c: E2 0A 00 6F 2D 80 0D 02 02 02 00 CB ED 00 00 D2 [18:53:32]Write i2c OK [18:53:32]MH_I2C_Read... [18:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:32]Read from MH i2c: E2 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 03 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 03 00 6F 2D 00 90 00 10 [18:53:32]RAPDU: 90 00 [18:53:32]wFMCommunicate OK [18:53:32]wFMCommunicate request_size=4 [18:53:32]MH_SAM_APDU [18:53:32]CAPDU: 80 0D 03 02 [18:53:32]Write to MH i2c: E2 08 00 70 2D 80 0D 03 02 00 00 00 00 18 [18:53:32]Write i2c OK [18:53:32]MH_I2C_Read... [18:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:32]Read from MH i2c: E2 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 0B 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 0B 00 70 2D 00 EF CA 7E DD 56 D6 0F 3F 90 00 A7 [18:53:32]RAPDU: EF CA 7E DD 56 D6 0F 3F 90 00 [18:53:32]wFMCommunicate OK [18:53:32]SAM_PROTO_SignData done [18:53:32]FM_MakeSignedData done [18:53:32]CreateOFDProtocolMessage [18:53:32]wFMCommunicate request_size=4 [18:53:32]MH_SAM_APDU [18:53:32]CAPDU: 80 11 00 00 [18:53:32]Write to MH i2c: E2 08 00 71 2D 80 11 00 00 00 00 00 00 18 [18:53:32]Write i2c OK [18:53:32]MH_I2C_Read... [18:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:32]Read from MH i2c: E2 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 17 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 17 00 71 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6B [18:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:53:32]wFMCommunicate OK [18:53:32]CreateOFDProtocolMessage done [18:53:32]OFDSenderStorePacket 148960 [18:53:32]StoreOFDPacket docnum=148960 [18:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 46 09 04 01 04 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 01 00 00 F4 03 04 00 AC 62 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E0 45 02 00 35 04 06 00 EA BD C9 68 CB ED EF CA 7E DD 56 D6 0F 3F [18:53:32]CheckFolder [18:53:32]dirname=/storage/ofd_packets [18:53:32]CheckFolder done [18:53:32]ProducePacketName [18:53:32]name=ofd_packets/00148960 [18:53:32]NVStorageSaveData ofd_packets/00148960 [18:53:32]File name is /storage/ofd_packets/00148960 [18:53:32]Write 298 bytes [18:53:32]NVStorageSaveData done [18:53:32]OFDSenderStorePacket done [18:53:32]KKMCreateOFDPacket done [18:53:32]NVStorageSaveData kkm_last_timestamp [18:53:32]File name is /storage/kkm_last_timestamp [18:53:32]Write 4 bytes [18:53:32]NVStorageSaveData done [18:53:32]ExternCall_PrintAddStr [18:53:32]wPrintStart [18:53:32]Write to MH i2c: 01 00 00 72 2D 9F [18:53:32]Write i2c OK [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: 01 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: 01 07 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: 01 07 00 72 2D 00 00 00 00 00 FF 0F B4 [18:53:32]RasterBufferAndPrint [18:53:32]line Счет N : (1)979892 [18:53:32]line ИНН: 02508201610067 [18:53:32]line Контрольно-Кассовый Чек [18:53:32]line ПРОДАЖА [18:53:32]line ТРК (МРК, ГНК) : 11 [18:53:32]line Товар: 2710194210 [18:53:32]line ДТ-К-5 [18:53:32]line 4.120 * 72.90 [18:53:32]line = 300.35 [18:53:32]line НДС 12% НСП 1% [18:53:32]line > о реализуемом товаре [18:53:32]line ОКРУГЛЕНИЕ: -0.35 [18:53:32]line ИТОГО: 300.00 [18:53:32]line Внесено: 300.00 [18:53:32]line СДАЧА: 0.00 [18:53:32]line НСП 1% : 2.66 [18:53:32]line НДС 12% : 31.90 [18:53:32]line Наличными: 300.00 [18:53:32]line Безнал.: 0.00 [18:53:32]line Место: АЗС № 68 "Партнер Нефть" [18:53:32]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:53:32]line СНО: Общий режим [18:53:32]line Чек 299 04.06.2024 18:53 [18:53:32]line Смена: 368 ФФД: 1.0 [18:53:32]line ЗНМ: 0300000035 [18:53:32]line РНМ: 0000000000092720 [18:53:32]line Версия ККМ: 001 [18:53:32]line ФМ: 0000000000875057 [18:53:32]line ФД: 148960 [18:53:32]line ФПД: 258100848806893 [18:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185332&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148960&fm=258100848806893&tin=02508201610067®Number=0000000000092720&sum=30000 [18:53:32]OFD Sender: Processing packet 148960 [packets to send 100, broken 99] [18:53:32]ProducePacketName [18:53:32]name=ofd_packets/00148960 [18:53:32]OFD Sender: To server: pG, [18:53:32]CommunicateWithHost lk.salyk.kg:30040 [18:53:32]ConnectInit lk.salyk.kg [18:53:32]written 0, free lines is 4095 [18:53:32]Connected sock=10 [18:53:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 46 09 04 01 04 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 01 00 00 F4 03 04 00 AC 62 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E0 45 02 00 35 04 06 00 EA BD C9 68 CB ED EF CA 7E DD 56 D6 0F 3F [18:53:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B1 1A 47 00 AA 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E0 45 02 00 F4 03 04 00 CF 09 5F 66 B6 04 01 00 00 96 8F 6C 20 80 C9 22 D8 [18:53:32]CommunicateWithHost err = 0 [18:53:32]CheckOFDResponse [18:53:32]1017 (14) - 77093643461234 [18:53:32]1041 (16) - 0000000000875057 [18:53:32]1040 (4) - 148960 [18:53:32]1012 (4) - 04.06.2024 12:34 [18:53:32]1206 (1) - 0 [18:53:32]OFD Sender: Remove packet 148960 [18:53:32]ProducePacketName [18:53:32]name=ofd_packets/00148960 [18:53:32]NVStorageDeleteData [18:53:32]Write to MH i2c: 01 00 00 9D 2D CA [18:53:32]Write i2c OK [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: 01 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: 01 07 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: 01 07 00 9D 2D 00 00 00 00 00 A6 0C 83 [18:53:32]RasterBufferAndPrint [18:53:32]line [18:53:32]line [18:53:32]line [18:53:32]line [18:53:32]line [18:53:32]written 0, free lines is 3243 [18:53:33]MH_Cut [18:53:33]Write to MH i2c: D1 01 00 A4 2D 01 A3 [18:53:33]Write i2c OK [18:53:33]MH_I2C_Read... [18:53:33]Read from MH i2c: D1 [18:53:33]MH_I2C_Read... [18:53:33]Read from MH i2c: D1 01 00 [18:53:33]MH_I2C_Read... [18:53:33]Read from MH i2c: D1 01 00 A4 2D 00 A2 [18:53:33]Write to MH i2c: 01 00 00 A5 2D D2 [18:53:33]Write i2c OK [18:53:33]MH_I2C_Read... [18:53:33]OFD Sender: No OFD packet to send [18:53:33]*** Cut start [18:53:33]*** Partial cut [18:53:33]*** CUTSNS_PIN = 1 [18:53:33]*** CUTSNS_PIN = 0 [18:53:34]*** Brake cut motor [18:53:34]Read from MH i2c: 01 [18:53:34]MH_I2C_Read... [18:53:34]*** Stop cut motor [18:53:34]*** Cut end [18:53:34]Read from MH i2c: 01 07 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: 01 07 00 A5 2D 00 00 00 00 00 FF 0F E7 [18:53:34]process_action close_receipt done [18:53:34]requested_data is exist [18:53:34]produce_requested_data [18:53:34]requested_item fm.sn is exist - process it [18:53:34]wFMCommunicate request_size=4 [18:53:34]MH_SAM_APDU [18:53:34]CAPDU: 80 11 00 00 [18:53:34]Write to MH i2c: E2 08 00 A6 2D 80 11 00 00 00 00 00 00 4D [18:53:34]Write i2c OK [18:53:34]MH_I2C_Read... [18:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:34]Read from MH i2c: E2 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 17 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 17 00 A6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A0 [18:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:53:34]wFMCommunicate OK [18:53:34]requested_item fd.num is exist - process it [18:53:34]SAM_PROTO_GetFieldsCounters [18:53:34]wFMCommunicate request_size=4 [18:53:34]MH_SAM_APDU [18:53:34]CAPDU: 80 13 00 00 [18:53:34]Write to MH i2c: E2 08 00 A7 2D 80 13 00 00 00 00 00 00 50 [18:53:34]Write i2c OK [18:53:34]MH_I2C_Read... [18:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:34]Read from MH i2c: E2 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 62 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 62 00 A7 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E0 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [18:53:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E0 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:34]wFMCommunicate OK [18:53:34]SAM_PROTO_GetFieldsCounters done [18:53:34]requested_item shift.num is exist - process it [18:53:34]requested_item shift.opened is exist - process it [18:53:34]req_shift_opened [18:53:34]FM_GetShiftState [18:53:34]SAM_PROTO_GetShiftState [18:53:34]wFMCommunicate request_size=4 [18:53:34]MH_SAM_APDU [18:53:34]CAPDU: 80 13 01 00 [18:53:34]Write to MH i2c: E2 08 00 A8 2D 80 13 01 00 00 00 00 00 52 [18:53:34]Write i2c OK [18:53:34]MH_I2C_Read... [18:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:34]Read from MH i2c: E2 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 0E 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 0E 00 A8 2D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 15 [18:53:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:53:34]wFMCommunicate OK [18:53:34]SAM_PROTO_GetShiftState done [18:53:34]FM_GetShiftState done [18:53:34]req_shift_opened done [18:53:34]requested_item shift.open_date is exist - process it [18:53:34]req_shift_open_date [18:53:34]req_shift_open_date done [18:53:34]produce_requested_data done [18:53:34]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148960,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:53:34]process_action_free close_receipt [18:53:34]json_value_free [18:53:34]json_value_free done [18:53:34]process_json_proto returns [18:53:34]Send response to host [18:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148960,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:53:34]free response buf [18:53:34]execute_script done [18:53:34]execute_script returns [18:53:34]free content buf [18:53:34]Sock 7.Close socket [18:53:34]Sock 7.Thread stoped [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:13]accept exits with 9 [18:55:13]New connection [18:55:13]New thread 3067407716 created [18:55:13]Thread 3067264356 joined [18:55:13]Waiting for new connection... [18:55:13] Sock 9.Parse request [18:55:13]Sock 9.Check first char [18:55:13]Sock 9.First char is OK [18:55:13]request: POST /json_proto HTTP/1.0 [18:55:13]Method: POST [18:55:13]URL: /json_proto [18:55:13]Method is POST - this is cgi request [18:55:13]url: /json_proto [18:55:13]query_string will be loaded in cgi processing [18:55:13]execute_cgi json_proto POST (null) [18:55:13]execute_cgi path=json_proto method=POST [18:55:13]POST find Content-Length [18:55:13]Host: 172.17.38.4:8080 [18:55:13]Content-Length: 677 [18:55:13]Content-Type: application/json [18:55:13] [18:55:13]POST finish read [18:55:13]Found Content-Length = 677 [18:55:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:13]execute_script... [18:55: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)979893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:13]POST & json_proto [18:55:13]process_json_proto [18:55:13]json parsed OK: [18:55:13]protocol is kg_v1.0 [18:55:13]action value=close_receipt [18:55:13]process_action close_receipt [18:55:13]cmd_close_receipt [18:55:13]MH_GetDate [18:55:13]Write to MH i2c: F0 00 00 A9 2D C5 [18:55:13]Write i2c OK [18:55:13]MH_I2C_Read... [18:55:13]Read from MH i2c: F0 [18:55:13]MH_I2C_Read... [18:55:13]Read from MH i2c: F0 09 00 [18:55:13]MH_I2C_Read... [18:55:13]Read from MH i2c: F0 09 00 A9 2D 00 13 63 5F 66 CC 51 87 64 11 [18:55:13]GetLastDocTimeStamp 1717527212 [18:55:13]current date 1717527315 [18:55:13]FM_GetShiftState [18:55:13]SAM_PROTO_GetShiftState [18:55:13]wFMCommunicate request_size=4 [18:55:13]MH_SAM_APDU [18:55:13]CAPDU: 80 13 01 00 [18:55:13]Write to MH i2c: E2 08 00 AA 2D 80 13 01 00 00 00 00 00 54 [18:55:13]Write i2c OK [18:55:13]MH_I2C_Read... [18:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:13]Read from MH i2c: E2 [18:55:13]MH_I2C_Read... [18:55:13]Read from MH i2c: E2 0E 00 [18:55:13]MH_I2C_Read... [18:55:13]Read from MH i2c: E2 0E 00 AA 2D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 17 [18:55:13]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:55:13]wFMCommunicate OK [18:55:13]SAM_PROTO_GetShiftState done [18:55:13]FM_GetShiftState done [18:55:13]opened in 1717460629 [18:55:13]opened+sec_in_day 1717547029 [18:55:13]quantity*price = 30038 [18:55:13]sum+1 = 30039 [18:55:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 300 04.06.2024 18:55 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148961 ФПД: 2295845147448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185515&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148961&fm=2295845147448&tin=02508201610067®Number=0000000000092720&sum=30000 [18:55:14]StoreToDocumentArchive [18:55:14]shift 368 fd 148961 [18:55:14]save to /storage/0368/doc_00148961 [18:55:14]save last doc name /storage/0368/doc_00148961 to /storage/kkm_last_doc_name [18:55:14]save OK [18:55:14]Clear old archive folders... [18:55:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:14]tlvbuf is 004B7C20 [18:55:14]SAM_PROTO_ClearQueue [18:55:14]wFMCommunicate request_size=4 [18:55:14]MH_SAM_APDU [18:55:14]CAPDU: 80 09 00 00 [18:55:14]Write to MH i2c: E2 08 00 B7 2D 80 09 00 00 00 00 00 00 56 [18:55:14]Write i2c OK [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: E2 [18:55:14]MH_I2C_Read... [18:55:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:14]Read from MH i2c: E2 03 00 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: E2 03 00 B7 2D 00 90 00 58 [18:55:14]RAPDU: 90 00 [18:55:14]wFMCommunicate OK [18:55:14]SAM_PROTO_ClearQueue done [18:55:14]KKMCreateOFDPacket [18:55:14]OFDProtocolAddRootSTLVToBuf [18:55:14]FM_MakeSignedData [18:55:14]FM_MakeSignedData [18:55:14]SAM_PROTO_SignData [18:55:14]wFMCommunicate request_size=4 [18:55:14]MH_SAM_APDU [18:55:14]CAPDU: 80 0D 01 02 [18:55:14]Write to MH i2c: E2 08 00 B8 2D 80 0D 01 02 00 00 00 00 5E [18:55:14]Write i2c OK [18:55:14]MH_I2C_Read... [18:55:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:14]Read from MH i2c: E2 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: E2 03 00 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: E2 03 00 B8 2D 00 90 00 59 [18:55:14]RAPDU: 90 00 [18:55:14]wFMCommunicate OK [18:55:14]wFMCommunicate request_size=255 [18:55:14]MH_SAM_APDU [18:55:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 13 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E1 45 02 00 35 04 06 00 02 [18:55:14]Write to MH i2c: E2 02 01 B9 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 13 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E1 45 02 00 35 04 06 00 02 00 00 DF [18:55:14]Write i2c OK [18:55:14]MH_I2C_Read... [18:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:15]Read from MH i2c: E2 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 03 00 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 03 00 B9 2D 00 90 00 5A [18:55:15]RAPDU: 90 00 [18:55:15]wFMCommunicate OK [18:55:15]wFMCommunicate request_size=10 [18:55:15]MH_SAM_APDU [18:55:15]CAPDU: 80 0D 02 02 05 16 8B 08 D3 38 [18:55:15]Write to MH i2c: E2 0D 00 BA 2D 80 0D 02 02 05 00 16 8B 08 D3 38 00 00 1F [18:55:15]Write i2c OK [18:55:15]MH_I2C_Read... [18:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:15]Read from MH i2c: E2 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 03 00 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 03 00 BA 2D 00 90 00 5B [18:55:15]RAPDU: 90 00 [18:55:15]wFMCommunicate OK [18:55:15]wFMCommunicate request_size=4 [18:55:15]MH_SAM_APDU [18:55:15]CAPDU: 80 0D 03 02 [18:55:15]Write to MH i2c: E2 08 00 BB 2D 80 0D 03 02 00 00 00 00 63 [18:55:15]Write i2c OK [18:55:15]MH_I2C_Read... [18:55:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:15]Read from MH i2c: E2 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 0B 00 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 0B 00 BB 2D 00 0B 2B F4 20 1B 79 0C DB 90 00 29 [18:55:15]RAPDU: 0B 2B F4 20 1B 79 0C DB 90 00 [18:55:15]wFMCommunicate OK [18:55:15]SAM_PROTO_SignData done [18:55:15]FM_MakeSignedData done [18:55:15]CreateOFDProtocolMessage [18:55:15]wFMCommunicate request_size=4 [18:55:15]MH_SAM_APDU [18:55:15]CAPDU: 80 11 00 00 [18:55:15]Write to MH i2c: E2 08 00 BC 2D 80 11 00 00 00 00 00 00 63 [18:55:15]Write i2c OK [18:55:15]MH_I2C_Read... [18:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:15]Read from MH i2c: E2 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 17 00 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: E2 17 00 BC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B6 [18:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:55:15]wFMCommunicate OK [18:55:15]CreateOFDProtocolMessage done [18:55:15]OFDSenderStorePacket 148961 [18:55:15]StoreOFDPacket docnum=148961 [18:55:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C2 03 07 01 15 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 13 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E1 45 02 00 35 04 06 00 02 16 8B 08 D3 38 0B 2B F4 20 1B 79 0C DB [18:55:15]CheckFolder [18:55:15]dirname=/storage/ofd_packets [18:55:15]CheckFolder done [18:55:15]ProducePacketName [18:55:15]name=ofd_packets/00148961 [18:55:15]NVStorageSaveData ofd_packets/00148961 [18:55:15]File name is /storage/ofd_packets/00148961 [18:55:15]Write 301 bytes [18:55:15]NVStorageSaveData done [18:55:15]OFDSenderStorePacket done [18:55:15]KKMCreateOFDPacket done [18:55:15]NVStorageSaveData kkm_last_timestamp [18:55:15]File name is /storage/kkm_last_timestamp [18:55:15]Write 4 bytes [18:55:15]NVStorageSaveData done [18:55:15]ExternCall_PrintAddStr [18:55:15]wPrintStart [18:55:15]Write to MH i2c: 01 00 00 BD 2D EA [18:55:15]Write i2c OK [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: 01 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: 01 07 00 [18:55:15]MH_I2C_Read... [18:55:15]Read from MH i2c: 01 07 00 BD 2D 00 00 00 00 00 FF 0F FF [18:55:15]RasterBufferAndPrint [18:55:15]line Счет N : (1)979893 [18:55:15]line ИНН: 02508201610067 [18:55:15]line Контрольно-Кассовый Чек [18:55:15]line ПРОДАЖА [18:55:15]line ТРК (МРК, ГНК) : 12 [18:55:15]line Товар: 2710124130 [18:55:15]line Аи-92-К-5 [18:55:15]line 4.490 * 66.90 [18:55:15]line = 300.38 [18:55:15]line НДС 12% НСП 1% [18:55:15]line > о реализуемом товаре [18:55:15]line ОКРУГЛЕНИЕ: -0.38 [18:55:15]line ИТОГО: 300.00 [18:55:15]line Внесено: 300.00 [18:55:15]line СДАЧА: 0.00 [18:55:15]line НСП 1% : 2.66 [18:55:15]line НДС 12% : 31.90 [18:55:15]line Наличными: 300.00 [18:55:15]line Безнал.: 0.00 [18:55:15]line Место: АЗС № 68 "Партнер Нефть" [18:55:15]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:55:15]line СНО: Общий режим [18:55:15]line Чек 300 04.06.2024 18:55 [18:55:15]line Смена: 368 ФФД: 1.0 [18:55:15]line ЗНМ: 0300000035 [18:55:15]line РНМ: 0000000000092720 [18:55:15]line Версия ККМ: 001 [18:55:15]line ФМ: 0000000000875057 [18:55:15]line ФД: 148961 [18:55:15]line ФПД: 2295845147448 [18:55:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185515&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148961&fm=2295845147448&tin=02508201610067®Number=0000000000092720&sum=30000 [18:55:15]OFD Sender: Processing packet 148961 [packets to send 100, broken 99] [18:55:15]ProducePacketName [18:55:15]name=ofd_packets/00148961 [18:55:15]OFD Sender: To server: pG, [18:55:15]CommunicateWithHost lk.salyk.kg:30040 [18:55:15]ConnectInit lk.salyk.kg [18:55:15]written 0, free lines is 4095 [18:55:15]Connected sock=10 [18:55:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C2 03 07 01 15 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 13 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E1 45 02 00 35 04 06 00 02 16 8B 08 D3 38 0B 2B F4 20 1B 79 0C DB [18:55:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 81 2F 47 00 A7 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 38 37 35 30 35 37 10 04 04 00 E1 45 02 00 F4 03 04 00 36 0A 5F 66 B6 04 01 00 00 FB B2 E6 84 C8 50 1C 4E [18:55:15]CommunicateWithHost err = 0 [18:55:15]CheckOFDResponse [18:55:15]1017 (14) - 77093643461234 [18:55:15]1041 (16) - 0000000000875057 [18:55:15]1040 (4) - 148961 [18:55:15]1012 (4) - 04.06.2024 12:36 [18:55:15]1206 (1) - 0 [18:55:15]OFD Sender: Remove packet 148961 [18:55:15]ProducePacketName [18:55:15]name=ofd_packets/00148961 [18:55:15]NVStorageDeleteData [18:55:16]Write to MH i2c: 01 00 00 E8 2D 15 [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: 01 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: 01 07 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: 01 07 00 E8 2D 00 00 00 00 00 A0 0C C8 [18:55:16]RasterBufferAndPrint [18:55:16]line [18:55:16]line [18:55:16]line [18:55:16]line [18:55:16]line [18:55:16]written 0, free lines is 3239 [18:55:16]MH_Cut [18:55:16]Write to MH i2c: D1 01 00 EF 2D 01 EE [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: D1 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: D1 01 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: D1 01 00 EF 2D 00 ED [18:55:16]Write to MH i2c: 01 00 00 F0 2D 1D [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]OFD Sender: No OFD packet to send [18:55:17]*** Cut start [18:55:17]*** Partial cut [18:55:17]*** CUTSNS_PIN = 1 [18:55:17]*** CUTSNS_PIN = 0 [18:55:17]*** Brake cut motor [18:55:17]Read from MH i2c: 01 [18:55:17]MH_I2C_Read... [18:55:17]*** Stop cut motor [18:55:17]*** Cut end [18:55:17]Read from MH i2c: 01 07 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: 01 07 00 F0 2D 00 00 00 00 00 FF 0F 32 [18:55:17]process_action close_receipt done [18:55:17]requested_data is exist [18:55:17]produce_requested_data [18:55:17]requested_item fm.sn is exist - process it [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 11 00 00 [18:55:17]Write to MH i2c: E2 08 00 F1 2D 80 11 00 00 00 00 00 00 98 [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 17 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 17 00 F1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EB [18:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:55:17]wFMCommunicate OK [18:55:17]requested_item fd.num is exist - process it [18:55:17]SAM_PROTO_GetFieldsCounters [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 13 00 00 [18:55:17]Write to MH i2c: E2 08 00 F2 2D 80 13 00 00 00 00 00 00 9B [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 62 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 62 00 F2 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [18:55:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:17]wFMCommunicate OK [18:55:17]SAM_PROTO_GetFieldsCounters done [18:55:17]requested_item shift.num is exist - process it [18:55:17]requested_item shift.opened is exist - process it [18:55:17]req_shift_opened [18:55:17]FM_GetShiftState [18:55:17]SAM_PROTO_GetShiftState [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 13 01 00 [18:55:17]Write to MH i2c: E2 08 00 F3 2D 80 13 01 00 00 00 00 00 9D [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 0E 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 0E 00 F3 2D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 60 [18:55:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:55:17]wFMCommunicate OK [18:55:17]SAM_PROTO_GetShiftState done [18:55:17]FM_GetShiftState done [18:55:17]req_shift_opened done [18:55:17]requested_item shift.open_date is exist - process it [18:55:17]req_shift_open_date [18:55:17]req_shift_open_date done [18:55:17]produce_requested_data done [18:55:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148961,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:55:17]process_action_free close_receipt [18:55:17]json_value_free [18:55:17]json_value_free done [18:55:17]process_json_proto returns [18:55:17]Send response to host [18:55:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148961,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:55:17]free response buf [18:55:17]execute_script done [18:55:17]execute_script returns [18:55:17]free content buf [18:55:17]Sock 9.Close socket [18:55:17]Sock 9.Thread stoped [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:42]accept exits with 7 [18:55:42]New connection [18:55:42]New thread 3067264356 created [18:55:42]Thread 3067407716 joined [18:55:42]Waiting for new connection... [18:55:42] Sock 7.Parse request [18:55:42]Sock 7.Check first char [18:55:42]Sock 7.First char is OK [18:55:42]request: POST /json_proto HTTP/1.0 [18:55:42]Method: POST [18:55:42]URL: /json_proto [18:55:42]Method is POST - this is cgi request [18:55:42]url: /json_proto [18:55:42]query_string will be loaded in cgi processing [18:55:42]execute_cgi json_proto POST (null) [18:55:42]execute_cgi path=json_proto method=POST [18:55:42]POST find Content-Length [18:55:42]Host: 172.17.38.4:8080 [18:55:42]Content-Length: 677 [18:55:42]Content-Type: application/json [18:55:42] [18:55:42]POST finish read [18:55:42]Found Content-Length = 677 [18:55:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:42]execute_script... [18:55: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)979894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:42]POST & json_proto [18:55:42]process_json_proto [18:55:42]json parsed OK: [18:55:42]protocol is kg_v1.0 [18:55:42]action value=close_receipt [18:55:42]process_action close_receipt [18:55:42]cmd_close_receipt [18:55:42]MH_GetDate [18:55:42]Write to MH i2c: F0 00 00 F4 2D 10 [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: F0 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: F0 09 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: F0 09 00 F4 2D 00 30 63 5F 66 CC 51 87 64 79 [18:55:42]GetLastDocTimeStamp 1717527315 [18:55:42]current date 1717527344 [18:55:42]FM_GetShiftState [18:55:42]SAM_PROTO_GetShiftState [18:55:42]wFMCommunicate request_size=4 [18:55:42]MH_SAM_APDU [18:55:42]CAPDU: 80 13 01 00 [18:55:42]Write to MH i2c: E2 08 00 F5 2D 80 13 01 00 00 00 00 00 9F [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:42]Read from MH i2c: E2 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 0E 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 0E 00 F5 2D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 62 [18:55:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:55:42]wFMCommunicate OK [18:55:42]SAM_PROTO_GetShiftState done [18:55:42]FM_GetShiftState done [18:55:42]opened in 1717460629 [18:55:42]opened+sec_in_day 1717547029 [18:55:42]quantity*price = 40006 [18:55:42]sum+1 = 40007 [18:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 301 04.06.2024 18:55 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148962 ФПД: 262256937704122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185544&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148962&fm=262256937704122&tin=02508201610067®Number=0000000000092720&sum=40000 [18:55:43]StoreToDocumentArchive [18:55:43]shift 368 fd 148962 [18:55:43]save to /storage/0368/doc_00148962 [18:55:43]save last doc name /storage/0368/doc_00148962 to /storage/kkm_last_doc_name [18:55:43]save OK [18:55:43]Clear old archive folders... [18:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:43]tlvbuf is B6FC4A40 [18:55:43]SAM_PROTO_ClearQueue [18:55:43]wFMCommunicate request_size=4 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 09 00 00 [18:55:43]Write to MH i2c: E2 08 00 02 2E 80 09 00 00 00 00 00 00 A2 [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:43]Read from MH i2c: E2 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 03 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 03 00 02 2E 00 90 00 A4 [18:55:43]RAPDU: 90 00 [18:55:43]wFMCommunicate OK [18:55:43]SAM_PROTO_ClearQueue done [18:55:43]KKMCreateOFDPacket [18:55:43]OFDProtocolAddRootSTLVToBuf [18:55:43]FM_MakeSignedData [18:55:43]FM_MakeSignedData [18:55:43]SAM_PROTO_SignData [18:55:43]wFMCommunicate request_size=4 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 0D 01 02 [18:55:43]Write to MH i2c: E2 08 00 03 2E 80 0D 01 02 00 00 00 00 AA [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 03 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 03 00 03 2E 00 90 00 A5 [18:55:44]RAPDU: 90 00 [18:55:44]wFMCommunicate OK [18:55:44]wFMCommunicate request_size=255 [18:55:44]MH_SAM_APDU [18:55:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2D 01 00 00 F4 03 04 00 30 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E2 45 02 00 35 04 06 00 EE [18:55:44]Write to MH i2c: E2 02 01 04 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 30 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E2 45 02 00 35 04 06 00 EE 00 00 11 [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 03 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 03 00 04 2E 00 90 00 A6 [18:55:44]RAPDU: 90 00 [18:55:44]wFMCommunicate OK [18:55:44]wFMCommunicate request_size=10 [18:55:44]MH_SAM_APDU [18:55:44]CAPDU: 80 0D 02 02 05 85 73 9C 9A BA [18:55:44]Write to MH i2c: E2 0D 00 05 2E 80 0D 02 02 05 00 85 73 9C 9A BA 00 00 9F [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 03 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 03 00 05 2E 00 90 00 A7 [18:55:44]RAPDU: 90 00 [18:55:44]wFMCommunicate OK [18:55:44]wFMCommunicate request_size=4 [18:55:44]MH_SAM_APDU [18:55:44]CAPDU: 80 0D 03 02 [18:55:44]Write to MH i2c: E2 08 00 06 2E 80 0D 03 02 00 00 00 00 AF [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 0B 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 0B 00 06 2E 00 75 79 91 CF CE 4F 17 9C 90 00 CE [18:55:44]RAPDU: 75 79 91 CF CE 4F 17 9C 90 00 [18:55:44]wFMCommunicate OK [18:55:44]SAM_PROTO_SignData done [18:55:44]FM_MakeSignedData done [18:55:44]CreateOFDProtocolMessage [18:55:44]wFMCommunicate request_size=4 [18:55:44]MH_SAM_APDU [18:55:44]CAPDU: 80 11 00 00 [18:55:44]Write to MH i2c: E2 08 00 07 2E 80 11 00 00 00 00 00 00 AF [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 17 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 17 00 07 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 02 [18:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:55:44]wFMCommunicate OK [18:55:44]CreateOFDProtocolMessage done [18:55:44]OFDSenderStorePacket 148962 [18:55:44]StoreOFDPacket docnum=148962 [18:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 83 A3 07 01 08 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 30 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E2 45 02 00 35 04 06 00 EE 85 73 9C 9A BA 75 79 91 CF CE 4F 17 9C [18:55:44]CheckFolder [18:55:44]dirname=/storage/ofd_packets [18:55:44]CheckFolder done [18:55:44]ProducePacketName [18:55:44]name=ofd_packets/00148962 [18:55:44]NVStorageSaveData ofd_packets/00148962 [18:55:44]File name is /storage/ofd_packets/00148962 [18:55:44]Write 301 bytes [18:55:44]NVStorageSaveData done [18:55:44]OFDSenderStorePacket done [18:55:44]KKMCreateOFDPacket done [18:55:44]NVStorageSaveData kkm_last_timestamp [18:55:44]File name is /storage/kkm_last_timestamp [18:55:44]Write 4 bytes [18:55:44]NVStorageSaveData done [18:55:44]ExternCall_PrintAddStr [18:55:44]wPrintStart [18:55:44]Write to MH i2c: 01 00 00 08 2E 36 [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: 01 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: 01 07 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: 01 07 00 08 2E 00 00 00 00 00 FF 0F 4B [18:55:44]RasterBufferAndPrint [18:55:44]line Счет N : (1)979894 [18:55:44]line ИНН: 02508201610067 [18:55:44]line Контрольно-Кассовый Чек [18:55:44]line ПРОДАЖА [18:55:44]line ТРК (МРК, ГНК) : 12 [18:55:44]line Товар: 2710124130 [18:55:44]line Аи-92-К-5 [18:55:44]line 5.980 * 66.90 [18:55:44]line = 400.06 [18:55:44]line НДС 12% НСП 1% [18:55:44]line > о реализуемом товаре [18:55:44]line ОКРУГЛЕНИЕ: -0.06 [18:55:44]line ИТОГО: 400.00 [18:55:44]line Внесено: 400.00 [18:55:44]line СДАЧА: 0.00 [18:55:44]line НСП 1% : 3.54 [18:55:44]line НДС 12% : 42.48 [18:55:44]line Наличными: 400.00 [18:55:44]line Безнал.: 0.00 [18:55:44]line Место: АЗС № 68 "Партнер Нефть" [18:55:44]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:55:44]line СНО: Общий режим [18:55:44]line Чек 301 04.06.2024 18:55 [18:55:44]line Смена: 368 ФФД: 1.0 [18:55:44]line ЗНМ: 0300000035 [18:55:44]line РНМ: 0000000000092720 [18:55:44]line Версия ККМ: 001 [18:55:44]line ФМ: 0000000000875057 [18:55:44]line ФД: 148962 [18:55:44]line ФПД: 262256937704122 [18:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185544&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148962&fm=262256937704122&tin=02508201610067®Number=0000000000092720&sum=40000 [18:55:44]OFD Sender: Processing packet 148962 [packets to send 100, broken 99] [18:55:44]ProducePacketName [18:55:44]name=ofd_packets/00148962 [18:55:44]OFD Sender: To server: pG, [18:55:44]CommunicateWithHost lk.salyk.kg:30040 [18:55:44]ConnectInit lk.salyk.kg [18:55:44]written 0, free lines is 4095 [18:55:44]Connected sock=10 [18:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 83 A3 07 01 08 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 30 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E2 45 02 00 35 04 06 00 EE 85 73 9C 9A BA 75 79 91 CF CE 4F 17 9C [18:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F3 FB 47 00 F1 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E2 45 02 00 F4 03 04 00 54 0A 5F 66 B6 04 01 00 00 2A 82 6C 11 A2 D2 73 76 [18:55:45]CommunicateWithHost err = 0 [18:55:45]CheckOFDResponse [18:55:45]1017 (14) - 77093643461234 [18:55:45]1041 (16) - 0000000000875057 [18:55:45]1040 (4) - 148962 [18:55:45]1012 (4) - 04.06.2024 12:36 [18:55:45]1206 (1) - 0 [18:55:45]OFD Sender: Remove packet 148962 [18:55:45]ProducePacketName [18:55:45]name=ofd_packets/00148962 [18:55:45]NVStorageDeleteData [18:55:45]Write to MH i2c: 01 00 00 33 2E 61 [18:55:45]Write i2c OK [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: 01 [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: 01 07 00 [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: 01 07 00 33 2E 00 00 00 00 00 9A 0C 0E [18:55:45]RasterBufferAndPrint [18:55:45]line [18:55:45]line [18:55:45]line [18:55:45]line [18:55:45]line [18:55:45]written 0, free lines is 3233 [18:55:45]MH_Cut [18:55:45]Write to MH i2c: D1 01 00 3A 2E 01 3A [18:55:45]Write i2c OK [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: D1 [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: D1 01 00 [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: D1 01 00 3A 2E 00 39 [18:55:45]Write to MH i2c: 01 00 00 3B 2E 69 [18:55:45]Write i2c OK [18:55:45]MH_I2C_Read... [18:55:45]OFD Sender: No OFD packet to send [18:55:46]*** Cut start [18:55:46]*** Partial cut [18:55:46]*** CUTSNS_PIN = 1 [18:55:46]*** CUTSNS_PIN = 0 [18:55:46]*** Brake cut motor [18:55:46]Read from MH i2c: 01 [18:55:46]MH_I2C_Read... [18:55:46]*** Stop cut motor [18:55:46]*** Cut end [18:55:46]Read from MH i2c: 01 07 00 [18:55:46]MH_I2C_Read... [18:55:46]Read from MH i2c: 01 07 00 3B 2E 00 00 00 00 00 FF 0F 7E [18:55:46]process_action close_receipt done [18:55:46]requested_data is exist [18:55:46]produce_requested_data [18:55:46]requested_item fm.sn is exist - process it [18:55:46]wFMCommunicate request_size=4 [18:55:46]MH_SAM_APDU [18:55:46]CAPDU: 80 11 00 00 [18:55:46]Write to MH i2c: E2 08 00 3C 2E 80 11 00 00 00 00 00 00 E4 [18:55:46]Write i2c OK [18:55:46]MH_I2C_Read... [18:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:46]Read from MH i2c: E2 [18:55:46]MH_I2C_Read... [18:55:46]Read from MH i2c: E2 17 00 [18:55:46]MH_I2C_Read... [18:55:46]Read from MH i2c: E2 17 00 3C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 37 [18:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:55:46]wFMCommunicate OK [18:55:46]requested_item fd.num is exist - process it [18:55:46]SAM_PROTO_GetFieldsCounters [18:55:46]wFMCommunicate request_size=4 [18:55:46]MH_SAM_APDU [18:55:46]CAPDU: 80 13 00 00 [18:55:46]Write to MH i2c: E2 08 00 3D 2E 80 13 00 00 00 00 00 00 E7 [18:55:46]Write i2c OK [18:55:46]MH_I2C_Read... [18:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:47]Read from MH i2c: E2 [18:55:47]MH_I2C_Read... [18:55:47]Read from MH i2c: E2 62 00 [18:55:47]MH_I2C_Read... [18:55:47]Read from MH i2c: E2 62 00 3D 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [18:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:47]wFMCommunicate OK [18:55:47]SAM_PROTO_GetFieldsCounters done [18:55:47]requested_item shift.num is exist - process it [18:55:47]requested_item shift.opened is exist - process it [18:55:47]req_shift_opened [18:55:47]FM_GetShiftState [18:55:47]SAM_PROTO_GetShiftState [18:55:47]wFMCommunicate request_size=4 [18:55:47]MH_SAM_APDU [18:55:47]CAPDU: 80 13 01 00 [18:55:47]Write to MH i2c: E2 08 00 3E 2E 80 13 01 00 00 00 00 00 E9 [18:55:47]Write i2c OK [18:55:47]MH_I2C_Read... [18:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:47]Read from MH i2c: E2 [18:55:47]MH_I2C_Read... [18:55:47]Read from MH i2c: E2 0E 00 [18:55:47]MH_I2C_Read... [18:55:47]Read from MH i2c: E2 0E 00 3E 2E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AC [18:55:47]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:55:47]wFMCommunicate OK [18:55:47]SAM_PROTO_GetShiftState done [18:55:47]FM_GetShiftState done [18:55:47]req_shift_opened done [18:55:47]requested_item shift.open_date is exist - process it [18:55:47]req_shift_open_date [18:55:47]req_shift_open_date done [18:55:47]produce_requested_data done [18:55:47]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148962,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:55:47]process_action_free close_receipt [18:55:47]json_value_free [18:55:47]json_value_free done [18:55:47]process_json_proto returns [18:55:47]Send response to host [18:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148962,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:55:47]free response buf [18:55:47]execute_script done [18:55:47]execute_script returns [18:55:47]free content buf [18:55:47]Sock 7.Close socket [18:55:47]Sock 7.Thread stoped [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:53]accept exits with 9 [18:57:53]New connection [18:57:53]New thread 3067407716 created [18:57:53]Thread 3067264356 joined [18:57:53]Waiting for new connection... [18:57:53] Sock 9.Parse request [18:57:53]Sock 9.Check first char [18:57:53]Sock 9.First char is OK [18:57:53]request: POST /json_proto HTTP/1.0 [18:57:53]Method: POST [18:57:53]URL: /json_proto [18:57:53]Method is POST - this is cgi request [18:57:53]url: /json_proto [18:57:53]query_string will be loaded in cgi processing [18:57:53]execute_cgi json_proto POST (null) [18:57:53]execute_cgi path=json_proto method=POST [18:57:53]POST find Content-Length [18:57:53]Host: 172.17.38.4:8080 [18:57:53]Content-Length: 677 [18:57:53]Content-Type: application/json [18:57:53] [18:57:53]POST finish read [18:57:53]Found Content-Length = 677 [18:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:53]execute_script... [18:57: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)979895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:53]POST & json_proto [18:57:53]process_json_proto [18:57:53]json parsed OK: [18:57:53]protocol is kg_v1.0 [18:57:53]action value=close_receipt [18:57:53]process_action close_receipt [18:57:53]cmd_close_receipt [18:57:53]MH_GetDate [18:57:53]Write to MH i2c: F0 00 00 3F 2E 5C [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: F0 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: F0 09 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: F0 09 00 3F 2E 00 B3 63 5F 66 CC 51 87 64 48 [18:57:53]GetLastDocTimeStamp 1717527344 [18:57:53]current date 1717527475 [18:57:53]FM_GetShiftState [18:57:53]SAM_PROTO_GetShiftState [18:57:53]wFMCommunicate request_size=4 [18:57:53]MH_SAM_APDU [18:57:53]CAPDU: 80 13 01 00 [18:57:53]Write to MH i2c: E2 08 00 40 2E 80 13 01 00 00 00 00 00 EB [18:57:53]Write i2c OK [18:57:53]MH_I2C_Read... [18:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:53]Read from MH i2c: E2 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 0E 00 [18:57:53]MH_I2C_Read... [18:57:53]Read from MH i2c: E2 0E 00 40 2E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AE [18:57:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:57:53]wFMCommunicate OK [18:57:53]SAM_PROTO_GetShiftState done [18:57:53]FM_GetShiftState done [18:57:53]opened in 1717460629 [18:57:53]opened+sec_in_day 1717547029 [18:57:53]quantity*price = 50041 [18:57:53]sum+1 = 50042 [18:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 302 04.06.2024 18:57 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148963 ФПД: 15276162369303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185755&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148963&fm=15276162369303&tin=02508201610067®Number=0000000000092720&sum=50000 [18:57:54]StoreToDocumentArchive [18:57:54]shift 368 fd 148963 [18:57:54]save to /storage/0368/doc_00148963 [18:57:54]save last doc name /storage/0368/doc_00148963 to /storage/kkm_last_doc_name [18:57:54]save OK [18:57:54]Clear old archive folders... [18:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:54]tlvbuf is 0049FE10 [18:57:54]SAM_PROTO_ClearQueue [18:57:54]wFMCommunicate request_size=4 [18:57:54]MH_SAM_APDU [18:57:54]CAPDU: 80 09 00 00 [18:57:54]Write to MH i2c: E2 08 00 4D 2E 80 09 00 00 00 00 00 00 ED [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:54]Read from MH i2c: E2 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 4D 2E 00 90 00 EF [18:57:54]RAPDU: 90 00 [18:57:54]wFMCommunicate OK [18:57:54]SAM_PROTO_ClearQueue done [18:57:54]KKMCreateOFDPacket [18:57:54]OFDProtocolAddRootSTLVToBuf [18:57:54]FM_MakeSignedData [18:57:54]FM_MakeSignedData [18:57:54]SAM_PROTO_SignData [18:57:54]wFMCommunicate request_size=4 [18:57:54]MH_SAM_APDU [18:57:54]CAPDU: 80 0D 01 02 [18:57:54]Write to MH i2c: E2 08 00 4E 2E 80 0D 01 02 00 00 00 00 F5 [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:54]Read from MH i2c: E2 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 [18:57:54]MH_I2C_Read... [18:57:54]Read from MH i2c: E2 03 00 4E 2E 00 90 00 F0 [18:57:54]RAPDU: 90 00 [18:57:54]wFMCommunicate OK [18:57:54]wFMCommunicate request_size=255 [18:57:54]MH_SAM_APDU [18:57:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 B3 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E3 45 02 00 35 04 06 00 0D [18:57:54]Write to MH i2c: E2 02 01 4F 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 B3 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E3 45 02 00 35 04 06 00 0D 00 00 31 [18:57:54]Write i2c OK [18:57:54]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 4F 2E 00 90 00 F1 [18:57:55]RAPDU: 90 00 [18:57:55]wFMCommunicate OK [18:57:55]wFMCommunicate request_size=10 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 0D 02 02 05 E4 C2 3B 47 17 [18:57:55]Write to MH i2c: E2 0D 00 50 2E 80 0D 02 02 05 00 E4 C2 3B 47 17 00 00 41 [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 03 00 50 2E 00 90 00 F2 [18:57:55]RAPDU: 90 00 [18:57:55]wFMCommunicate OK [18:57:55]wFMCommunicate request_size=4 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 0D 03 02 [18:57:55]Write to MH i2c: E2 08 00 51 2E 80 0D 03 02 00 00 00 00 FA [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 0B 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 0B 00 51 2E 00 B9 71 0E 3C 2F A9 E5 B1 90 00 DD [18:57:55]RAPDU: B9 71 0E 3C 2F A9 E5 B1 90 00 [18:57:55]wFMCommunicate OK [18:57:55]SAM_PROTO_SignData done [18:57:55]FM_MakeSignedData done [18:57:55]CreateOFDProtocolMessage [18:57:55]wFMCommunicate request_size=4 [18:57:55]MH_SAM_APDU [18:57:55]CAPDU: 80 11 00 00 [18:57:55]Write to MH i2c: E2 08 00 52 2E 80 11 00 00 00 00 00 00 FA [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:55]Read from MH i2c: E2 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 17 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: E2 17 00 52 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4D [18:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:57:55]wFMCommunicate OK [18:57:55]CreateOFDProtocolMessage done [18:57:55]OFDSenderStorePacket 148963 [18:57:55]StoreOFDPacket docnum=148963 [18:57:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 06 29 07 01 3D B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 B3 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E3 45 02 00 35 04 06 00 0D E4 C2 3B 47 17 B9 71 0E 3C 2F A9 E5 B1 [18:57:55]CheckFolder [18:57:55]dirname=/storage/ofd_packets [18:57:55]CheckFolder done [18:57:55]ProducePacketName [18:57:55]name=ofd_packets/00148963 [18:57:55]NVStorageSaveData ofd_packets/00148963 [18:57:55]File name is /storage/ofd_packets/00148963 [18:57:55]Write 301 bytes [18:57:55]NVStorageSaveData done [18:57:55]OFDSenderStorePacket done [18:57:55]KKMCreateOFDPacket done [18:57:55]NVStorageSaveData kkm_last_timestamp [18:57:55]File name is /storage/kkm_last_timestamp [18:57:55]Write 4 bytes [18:57:55]NVStorageSaveData done [18:57:55]ExternCall_PrintAddStr [18:57:55]wPrintStart [18:57:55]Write to MH i2c: 01 00 00 53 2E 81 [18:57:55]Write i2c OK [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: 01 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: 01 07 00 [18:57:55]MH_I2C_Read... [18:57:55]Read from MH i2c: 01 07 00 53 2E 00 00 00 00 00 FF 0F 96 [18:57:55]RasterBufferAndPrint [18:57:55]line Счет N : (1)979895 [18:57:55]line ИНН: 02508201610067 [18:57:55]line Контрольно-Кассовый Чек [18:57:55]line ПРОДАЖА [18:57:55]line ТРК (МРК, ГНК) : 22 [18:57:55]line Товар: 2710124130 [18:57:55]line Аи-92-К-5 [18:57:55]line 7.480 * 66.90 [18:57:55]line = 500.41 [18:57:55]line НДС 12% НСП 1% [18:57:55]line > о реализуемом товаре [18:57:55]line ОКРУГЛЕНИЕ: -0.41 [18:57:55]line ИТОГО: 500.00 [18:57:55]line Внесено: 500.00 [18:57:55]line СДАЧА: 0.00 [18:57:55]line НСП 1% : 4.43 [18:57:55]line НДС 12% : 53.14 [18:57:55]line Наличными: 500.00 [18:57:55]line Безнал.: 0.00 [18:57:55]line Место: АЗС № 68 "Партнер Нефть" [18:57:55]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:57:55]line СНО: Общий режим [18:57:55]line Чек 302 04.06.2024 18:57 [18:57:55]line Смена: 368 ФФД: 1.0 [18:57:55]line ЗНМ: 0300000035 [18:57:55]line РНМ: 0000000000092720 [18:57:55]line Версия ККМ: 001 [18:57:55]line ФМ: 0000000000875057 [18:57:55]line ФД: 148963 [18:57:55]line ФПД: 15276162369303 [18:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185755&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148963&fm=15276162369303&tin=02508201610067®Number=0000000000092720&sum=50000 [18:57:55]OFD Sender: Processing packet 148963 [packets to send 100, broken 99] [18:57:55]ProducePacketName [18:57:55]name=ofd_packets/00148963 [18:57:55]OFD Sender: To server: pG, [18:57:55]CommunicateWithHost lk.salyk.kg:30040 [18:57:55]ConnectInit lk.salyk.kg [18:57:55]written 0, free lines is 4095 [18:57:55]Connected sock=10 [18:57:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 06 29 07 01 3D B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 B3 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E3 45 02 00 35 04 06 00 0D E4 C2 3B 47 17 B9 71 0E 3C 2F A9 E5 B1 [18:57:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B1 5E 47 00 10 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E3 45 02 00 F4 03 04 00 D6 0A 5F 66 B6 04 01 00 00 7B C8 D5 AD 24 E0 1E 15 [18:57:55]CommunicateWithHost err = 0 [18:57:55]CheckOFDResponse [18:57:55]1017 (14) - 77093643461234 [18:57:55]1041 (16) - 0000000000875057 [18:57:55]1040 (4) - 148963 [18:57:55]1012 (4) - 04.06.2024 12:38 [18:57:55]1206 (1) - 0 [18:57:55]OFD Sender: Remove packet 148963 [18:57:55]ProducePacketName [18:57:55]name=ofd_packets/00148963 [18:57:55]NVStorageDeleteData [18:57:56]Write to MH i2c: 01 00 00 7E 2E AC [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: 01 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: 01 07 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: 01 07 00 7E 2E 00 00 00 00 00 9C 0C 5B [18:57:56]RasterBufferAndPrint [18:57:56]line [18:57:56]line [18:57:56]line [18:57:56]line [18:57:56]line [18:57:56]written 0, free lines is 3234 [18:57:56]MH_Cut [18:57:56]Write to MH i2c: D1 01 00 85 2E 01 85 [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: D1 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: D1 01 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: D1 01 00 85 2E 00 84 [18:57:56]Write to MH i2c: 01 00 00 86 2E B4 [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]OFD Sender: No OFD packet to send [18:57:57]*** Cut start [18:57:57]*** Partial cut [18:57:57]*** CUTSNS_PIN = 1 [18:57:57]*** CUTSNS_PIN = 0 [18:57:57]*** Brake cut motor [18:57:57]Read from MH i2c: 01 [18:57:57]MH_I2C_Read... [18:57:57]*** Stop cut motor [18:57:57]*** Cut end [18:57:57]Read from MH i2c: 01 07 00 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: 01 07 00 86 2E 00 00 00 00 00 FF 0F C9 [18:57:57]process_action close_receipt done [18:57:57]requested_data is exist [18:57:57]produce_requested_data [18:57:57]requested_item fm.sn is exist - process it [18:57:57]wFMCommunicate request_size=4 [18:57:57]MH_SAM_APDU [18:57:57]CAPDU: 80 11 00 00 [18:57:57]Write to MH i2c: E2 08 00 87 2E 80 11 00 00 00 00 00 00 2F [18:57:57]Write i2c OK [18:57:57]MH_I2C_Read... [18:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:57]Read from MH i2c: E2 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 17 00 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 17 00 87 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 82 [18:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:57:57]wFMCommunicate OK [18:57:57]requested_item fd.num is exist - process it [18:57:57]SAM_PROTO_GetFieldsCounters [18:57:57]wFMCommunicate request_size=4 [18:57:57]MH_SAM_APDU [18:57:57]CAPDU: 80 13 00 00 [18:57:57]Write to MH i2c: E2 08 00 88 2E 80 13 00 00 00 00 00 00 32 [18:57:57]Write i2c OK [18:57:57]MH_I2C_Read... [18:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:57]Read from MH i2c: E2 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 62 00 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 62 00 88 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [18:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:57]wFMCommunicate OK [18:57:57]SAM_PROTO_GetFieldsCounters done [18:57:57]requested_item shift.num is exist - process it [18:57:57]requested_item shift.opened is exist - process it [18:57:57]req_shift_opened [18:57:57]FM_GetShiftState [18:57:57]SAM_PROTO_GetShiftState [18:57:57]wFMCommunicate request_size=4 [18:57:57]MH_SAM_APDU [18:57:57]CAPDU: 80 13 01 00 [18:57:57]Write to MH i2c: E2 08 00 89 2E 80 13 01 00 00 00 00 00 34 [18:57:57]Write i2c OK [18:57:57]MH_I2C_Read... [18:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:57]Read from MH i2c: E2 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 0E 00 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 0E 00 89 2E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F7 [18:57:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:57:57]wFMCommunicate OK [18:57:57]SAM_PROTO_GetShiftState done [18:57:57]FM_GetShiftState done [18:57:57]req_shift_opened done [18:57:57]requested_item shift.open_date is exist - process it [18:57:57]req_shift_open_date [18:57:57]req_shift_open_date done [18:57:57]produce_requested_data done [18:57:57]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148963,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:57:57]process_action_free close_receipt [18:57:57]json_value_free [18:57:57]json_value_free done [18:57:57]process_json_proto returns [18:57:57]Send response to host [18:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148963,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:57:57]free response buf [18:57:57]execute_script done [18:57:57]execute_script returns [18:57:57]free content buf [18:57:57]Sock 9.Close socket [18:57:57]Sock 9.Thread stoped [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:48]accept exits with 7 [18:58:48]New connection [18:58:48]New thread 3067264356 created [18:58:48]Thread 3067407716 joined [18:58:48]Waiting for new connection... [18:58:48] Sock 7.Parse request [18:58:48]Sock 7.Check first char [18:58:48]Sock 7.First char is OK [18:58:48]request: POST /json_proto HTTP/1.0 [18:58:48]Method: POST [18:58:48]URL: /json_proto [18:58:48]Method is POST - this is cgi request [18:58:48]url: /json_proto [18:58:48]query_string will be loaded in cgi processing [18:58:48]execute_cgi json_proto POST (null) [18:58:48]execute_cgi path=json_proto method=POST [18:58:48]POST find Content-Length [18:58:48]Host: 172.17.38.4:8080 [18:58:48]Content-Length: 793 [18:58:48]Content-Type: application/json [18:58:48] [18:58:48]POST finish read [18:58:48]Found Content-Length = 793 [18:58:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:48]execute_script... [18:58: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)979896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:48]POST & json_proto [18:58:48]process_json_proto [18:58:48]json parsed OK: [18:58:48]protocol is kg_v1.0 [18:58:48]action value=close_receipt [18:58:48]process_action close_receipt [18:58:48]cmd_close_receipt [18:58:48]MH_GetDate [18:58:48]Write to MH i2c: F0 00 00 8A 2E A7 [18:58:48]Write i2c OK [18:58:48]MH_I2C_Read... [18:58:48]Read from MH i2c: F0 [18:58:48]MH_I2C_Read... [18:58:48]Read from MH i2c: F0 09 00 [18:58:48]MH_I2C_Read... [18:58:48]Read from MH i2c: F0 09 00 8A 2E 00 EA 63 5F 66 CC 51 87 64 CA [18:58:48]GetLastDocTimeStamp 1717527475 [18:58:48]current date 1717527530 [18:58:48]FM_GetShiftState [18:58:48]SAM_PROTO_GetShiftState [18:58:48]wFMCommunicate request_size=4 [18:58:48]MH_SAM_APDU [18:58:48]CAPDU: 80 13 01 00 [18:58:48]Write to MH i2c: E2 08 00 8B 2E 80 13 01 00 00 00 00 00 36 [18:58:48]Write i2c OK [18:58:48]MH_I2C_Read... [18:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:48]Read from MH i2c: E2 [18:58:48]MH_I2C_Read... [18:58:48]Read from MH i2c: E2 0E 00 [18:58:48]MH_I2C_Read... [18:58:48]Read from MH i2c: E2 0E 00 8B 2E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F9 [18:58:48]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:58:48]wFMCommunicate OK [18:58:48]SAM_PROTO_GetShiftState done [18:58:48]FM_GetShiftState done [18:58:48]opened in 1717460629 [18:58:48]opened+sec_in_day 1717547029 [18:58:48]quantity*price = 100015 [18:58:48]sum+1 = 100017 [18:58:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 303 04.06.2024 18:58 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148964 ФПД: 119372720235247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185850&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148964&fm=119372720235247&tin=02508201610067®Number=0000000000092720&sum=100016 [18:58:49]StoreToDocumentArchive [18:58:49]shift 368 fd 148964 [18:58:49]save to /storage/0368/doc_00148964 [18:58:49]save last doc name /storage/0368/doc_00148964 to /storage/kkm_last_doc_name [18:58:49]save OK [18:58:49]Clear old archive folders... [18:58:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:49]tlvbuf is 004763F0 [18:58:49]SAM_PROTO_ClearQueue [18:58:49]wFMCommunicate request_size=4 [18:58:49]MH_SAM_APDU [18:58:49]CAPDU: 80 09 00 00 [18:58:49]Write to MH i2c: E2 08 00 98 2E 80 09 00 00 00 00 00 00 38 [18:58:49]Write i2c OK [18:58:49]MH_I2C_Read... [18:58:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:49]Read from MH i2c: E2 [18:58:49]MH_I2C_Read... [18:58:49]Read from MH i2c: E2 03 00 [18:58:49]MH_I2C_Read... [18:58:49]Read from MH i2c: E2 03 00 98 2E 00 90 00 3A [18:58:49]RAPDU: 90 00 [18:58:49]wFMCommunicate OK [18:58:49]SAM_PROTO_ClearQueue done [18:58:49]KKMCreateOFDPacket [18:58:49]OFDProtocolAddRootSTLVToBuf [18:58:49]FM_MakeSignedData [18:58:49]FM_MakeSignedData [18:58:49]SAM_PROTO_SignData [18:58:49]wFMCommunicate request_size=4 [18:58:49]MH_SAM_APDU [18:58:49]CAPDU: 80 0D 01 02 [18:58:49]Write to MH i2c: E2 08 00 99 2E 80 0D 01 02 00 00 00 00 40 [18:58:49]Write i2c OK [18:58:49]MH_I2C_Read... [18:58:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:49]Read from MH i2c: E2 [18:58:49]MH_I2C_Read... [18:58:49]Read from MH i2c: E2 03 00 [18:58:49]MH_I2C_Read... [18:58:49]Read from MH i2c: E2 03 00 99 2E 00 90 00 3B [18:58:49]RAPDU: 90 00 [18:58:49]wFMCommunicate OK [18:58:49]wFMCommunicate request_size=255 [18:58:49]MH_SAM_APDU [18:58:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 EA 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E4 45 02 00 35 04 06 00 6C [18:58:49]Write to MH i2c: E2 02 01 9A 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 EA 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E4 45 02 00 35 04 06 00 6C 00 00 2E [18:58:49]Write i2c OK [18:58:49]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 9A 2E 00 90 00 3C [18:58:50]RAPDU: 90 00 [18:58:50]wFMCommunicate OK [18:58:50]wFMCommunicate request_size=10 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 0D 02 02 05 91 A0 95 E2 EF [18:58:50]Write to MH i2c: E2 0D 00 9B 2E 80 0D 02 02 05 00 91 A0 95 E2 EF 00 00 E4 [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 9B 2E 00 90 00 3D [18:58:50]RAPDU: 90 00 [18:58:50]wFMCommunicate OK [18:58:50]wFMCommunicate request_size=4 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 0D 03 02 [18:58:50]Write to MH i2c: E2 08 00 9C 2E 80 0D 03 02 00 00 00 00 45 [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 0B 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 0B 00 9C 2E 00 C7 A0 E2 1B 73 4E 48 AB 90 00 5E [18:58:50]RAPDU: C7 A0 E2 1B 73 4E 48 AB 90 00 [18:58:50]wFMCommunicate OK [18:58:50]SAM_PROTO_SignData done [18:58:50]FM_MakeSignedData done [18:58:50]CreateOFDProtocolMessage [18:58:50]wFMCommunicate request_size=4 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 11 00 00 [18:58:50]Write to MH i2c: E2 08 00 9D 2E 80 11 00 00 00 00 00 00 45 [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 17 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 17 00 9D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 98 [18:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:58:50]wFMCommunicate OK [18:58:50]CreateOFDProtocolMessage done [18:58:50]OFDSenderStorePacket 148964 [18:58:50]StoreOFDPacket docnum=148964 [18:58:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D2 F4 07 01 5B 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 EA 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E4 45 02 00 35 04 06 00 6C 91 A0 95 E2 EF C7 A0 E2 1B 73 4E 48 AB [18:58:50]CheckFolder [18:58:50]dirname=/storage/ofd_packets [18:58:50]CheckFolder done [18:58:50]ProducePacketName [18:58:50]name=ofd_packets/00148964 [18:58:50]NVStorageSaveData ofd_packets/00148964 [18:58:50]File name is /storage/ofd_packets/00148964 [18:58:50]Write 301 bytes [18:58:50]NVStorageSaveData done [18:58:50]OFDSenderStorePacket done [18:58:50]KKMCreateOFDPacket done [18:58:50]NVStorageSaveData kkm_last_timestamp [18:58:50]File name is /storage/kkm_last_timestamp [18:58:50]Write 4 bytes [18:58:50]NVStorageSaveData done [18:58:50]ExternCall_PrintAddStr [18:58:50]wPrintStart [18:58:50]Write to MH i2c: 01 00 00 9E 2E CC [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: 01 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: 01 07 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: 01 07 00 9E 2E 00 00 00 00 00 FF 0F E1 [18:58:50]RasterBufferAndPrint [18:58:50]line Счет N : (1)979896 [18:58:50]line ИНН: 02508201610067 [18:58:50]line Контрольно-Кассовый Чек [18:58:50]line ПРОДАЖА [18:58:50]line ТРК (МРК, ГНК) : 41 [18:58:50]line Товар: 2710124130 [18:58:50]line Аи-92-К-5 [18:58:50]line 14.950 * 66.90 [18:58:50]line = 1000.16 [18:58:50]line НДС 12% НСП 1% [18:58:50]line > о реализуемом товаре [18:58:50]line ИТОГО: 1000.16 [18:58:50]line НСП 1% : 8.85 [18:58:50]line НДС 12% : 106.21 [18:58:50]line Наличными: 0.00 [18:58:50]line Безнал.: 1000.16 [18:58:50]line Место: АЗС № 68 "Партнер Нефть" [18:58:50]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:58:50]line СНО: Общий режим [18:58:50]line Чек 303 04.06.2024 18:58 [18:58:50]line Смена: 368 ФФД: 1.0 [18:58:50]line ЗНМ: 0300000035 [18:58:50]line РНМ: 0000000000092720 [18:58:50]line Версия ККМ: 001 [18:58:50]line Платежная система: KICB Банк [18:58:50]line ФМ: 0000000000875057 [18:58:50]line ФД: 148964 [18:58:50]line ФПД: 119372720235247 [18:58:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185850&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148964&fm=119372720235247&tin=02508201610067®Number=0000000000092720&sum=100016 [18:58:50]OFD Sender: Processing packet 148964 [packets to send 100, broken 99] [18:58:50]ProducePacketName [18:58:50]name=ofd_packets/00148964 [18:58:50]OFD Sender: To server: pG, [18:58:50]CommunicateWithHost lk.salyk.kg:30040 [18:58:50]ConnectInit lk.salyk.kg [18:58:50]written 0, free lines is 4095 [18:58:50]Connected sock=10 [18:58:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D2 F4 07 01 5B 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 EA 63 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E4 45 02 00 35 04 06 00 6C 91 A0 95 E2 EF C7 A0 E2 1B 73 4E 48 AB [18:58:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 46 C5 47 00 BA 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E4 45 02 00 F4 03 04 00 0D 0B 5F 66 B6 04 01 00 00 C6 5F 5C 42 E9 C5 E5 83 [18:58:50]CommunicateWithHost err = 0 [18:58:50]CheckOFDResponse [18:58:50]1017 (14) - 77093643461234 [18:58:50]1041 (16) - 0000000000875057 [18:58:50]1040 (4) - 148964 [18:58:50]1012 (4) - 04.06.2024 12:39 [18:58:50]1206 (1) - 0 [18:58:50]OFD Sender: Remove packet 148964 [18:58:50]ProducePacketName [18:58:50]name=ofd_packets/00148964 [18:58:50]NVStorageDeleteData [18:58:51]Write to MH i2c: 01 00 00 C8 2E F6 [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: 01 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: 01 07 00 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: 01 07 00 C8 2E 00 00 00 00 00 AA 0C B3 [18:58:51]RasterBufferAndPrint [18:58:51]line [18:58:51]line [18:58:51]line [18:58:51]line [18:58:51]line [18:58:51]written 0, free lines is 3247 [18:58:51]MH_Cut [18:58:51]Write to MH i2c: D1 01 00 CF 2E 01 CF [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: D1 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: D1 01 00 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: D1 01 00 CF 2E 00 CE [18:58:51]Write to MH i2c: 01 00 00 D0 2E FE [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:51]OFD Sender: No OFD packet to send [18:58:52]*** Cut start [18:58:52]*** Partial cut [18:58:52]*** CUTSNS_PIN = 1 [18:58:52]*** CUTSNS_PIN = 0 [18:58:52]*** Brake cut motor [18:58:52]Read from MH i2c: 01 [18:58:52]MH_I2C_Read... [18:58:52]*** Stop cut motor [18:58:52]*** Cut end [18:58:52]Read from MH i2c: 01 07 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: 01 07 00 D0 2E 00 00 00 00 00 FF 0F 13 [18:58:52]process_action close_receipt done [18:58:52]requested_data is exist [18:58:52]produce_requested_data [18:58:52]requested_item fm.sn is exist - process it [18:58:52]wFMCommunicate request_size=4 [18:58:52]MH_SAM_APDU [18:58:52]CAPDU: 80 11 00 00 [18:58:52]Write to MH i2c: E2 08 00 D1 2E 80 11 00 00 00 00 00 00 79 [18:58:52]Write i2c OK [18:58:52]MH_I2C_Read... [18:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:52]Read from MH i2c: E2 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 17 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 17 00 D1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CC [18:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:58:52]wFMCommunicate OK [18:58:52]requested_item fd.num is exist - process it [18:58:52]SAM_PROTO_GetFieldsCounters [18:58:52]wFMCommunicate request_size=4 [18:58:52]MH_SAM_APDU [18:58:52]CAPDU: 80 13 00 00 [18:58:52]Write to MH i2c: E2 08 00 D2 2E 80 13 00 00 00 00 00 00 7C [18:58:52]Write i2c OK [18:58:52]MH_I2C_Read... [18:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:52]Read from MH i2c: E2 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 62 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 62 00 D2 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [18:58:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:52]wFMCommunicate OK [18:58:52]SAM_PROTO_GetFieldsCounters done [18:58:52]requested_item shift.num is exist - process it [18:58:52]requested_item shift.opened is exist - process it [18:58:52]req_shift_opened [18:58:52]FM_GetShiftState [18:58:52]SAM_PROTO_GetShiftState [18:58:52]wFMCommunicate request_size=4 [18:58:52]MH_SAM_APDU [18:58:52]CAPDU: 80 13 01 00 [18:58:52]Write to MH i2c: E2 08 00 D3 2E 80 13 01 00 00 00 00 00 7E [18:58:52]Write i2c OK [18:58:52]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 0E 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 0E 00 D3 2E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 41 [18:58:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:58:53]wFMCommunicate OK [18:58:53]SAM_PROTO_GetShiftState done [18:58:53]FM_GetShiftState done [18:58:53]req_shift_opened done [18:58:53]requested_item shift.open_date is exist - process it [18:58:53]req_shift_open_date [18:58:53]req_shift_open_date done [18:58:53]produce_requested_data done [18:58:53]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148964,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:58:53]process_action_free close_receipt [18:58:53]json_value_free [18:58:53]json_value_free done [18:58:53]process_json_proto returns [18:58:53]Send response to host [18:58:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148964,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:58:53]free response buf [18:58:53]execute_script done [18:58:53]execute_script returns [18:58:53]free content buf [18:58:53]Sock 7.Close socket [18:58:53]Sock 7.Thread stoped [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:38]accept exits with 9 [18:59:38]New connection [18:59:38]New thread 3067407716 created [18:59:38]Thread 3067264356 joined [18:59:38]Waiting for new connection... [18:59:38] Sock 9.Parse request [18:59:38]Sock 9.Check first char [18:59:38]Sock 9.First char is OK [18:59:38]request: POST /json_proto HTTP/1.0 [18:59:38]Method: POST [18:59:38]URL: /json_proto [18:59:38]Method is POST - this is cgi request [18:59:38]url: /json_proto [18:59:38]query_string will be loaded in cgi processing [18:59:38]execute_cgi json_proto POST (null) [18:59:38]execute_cgi path=json_proto method=POST [18:59:38]POST find Content-Length [18:59:38]Host: 172.17.38.4:8080 [18:59:38]Content-Length: 674 [18:59:38]Content-Type: application/json [18:59:38] [18:59:38]POST finish read [18:59:38]Found Content-Length = 674 [18:59:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [18:59:38]execute_script... [18:59: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)979897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [18:59:38]POST & json_proto [18:59:38]process_json_proto [18:59:38]json parsed OK: [18:59:38]protocol is kg_v1.0 [18:59:38]action value=close_receipt [18:59:38]process_action close_receipt [18:59:38]cmd_close_receipt [18:59:38]MH_GetDate [18:59:38]Write to MH i2c: F0 00 00 D4 2E F1 [18:59:38]Write i2c OK [18:59:38]MH_I2C_Read... [18:59:38]Read from MH i2c: F0 [18:59:38]MH_I2C_Read... [18:59:38]Read from MH i2c: F0 09 00 [18:59:38]MH_I2C_Read... [18:59:38]Read from MH i2c: F0 09 00 D4 2E 00 1D 64 5F 66 CC 51 87 64 48 [18:59:38]GetLastDocTimeStamp 1717527530 [18:59:38]current date 1717527581 [18:59:38]FM_GetShiftState [18:59:38]SAM_PROTO_GetShiftState [18:59:38]wFMCommunicate request_size=4 [18:59:38]MH_SAM_APDU [18:59:38]CAPDU: 80 13 01 00 [18:59:38]Write to MH i2c: E2 08 00 D5 2E 80 13 01 00 00 00 00 00 80 [18:59:38]Write i2c OK [18:59:38]MH_I2C_Read... [18:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:39]Read from MH i2c: E2 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 0E 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 0E 00 D5 2E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 43 [18:59:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:59:39]wFMCommunicate OK [18:59:39]SAM_PROTO_GetShiftState done [18:59:39]FM_GetShiftState done [18:59:39]opened in 1717460629 [18:59:39]opened+sec_in_day 1717547029 [18:59:39]quantity*price = 30034 [18:59:39]sum+1 = 30036 [18:59:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 304 04.06.2024 18:59 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148965 ФПД: 178810618748390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185941&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148965&fm=178810618748390&tin=02508201610067®Number=0000000000092720&sum=30000 [18:59:40]StoreToDocumentArchive [18:59:40]shift 368 fd 148965 [18:59:40]save to /storage/0368/doc_00148965 [18:59:40]save last doc name /storage/0368/doc_00148965 to /storage/kkm_last_doc_name [18:59:40]save OK [18:59:40]Clear old archive folders... [18:59:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:59:40]tlvbuf is 004CA9E0 [18:59:40]SAM_PROTO_ClearQueue [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 09 00 00 [18:59:40]Write to MH i2c: E2 08 00 E2 2E 80 09 00 00 00 00 00 00 82 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 E2 2E 00 90 00 84 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]SAM_PROTO_ClearQueue done [18:59:40]KKMCreateOFDPacket [18:59:40]OFDProtocolAddRootSTLVToBuf [18:59:40]FM_MakeSignedData [18:59:40]FM_MakeSignedData [18:59:40]SAM_PROTO_SignData [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 01 02 [18:59:40]Write to MH i2c: E2 08 00 E3 2E 80 0D 01 02 00 00 00 00 8A [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 E3 2E 00 90 00 85 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]wFMCommunicate request_size=255 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 30 01 00 00 F4 03 04 00 1D 64 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E5 45 02 00 35 04 06 00 A2 A0 97 69 [18:59:40]Write to MH i2c: E2 02 01 E4 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 30 01 00 00 F4 03 04 00 1D 64 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E5 45 02 00 35 04 06 00 A2 A0 97 69 00 00 95 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 E4 2E 00 90 00 86 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]wFMCommunicate request_size=7 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 02 02 02 9D E6 [18:59:40]Write to MH i2c: E2 0A 00 E5 2E 80 0D 02 02 02 00 9D E6 00 00 14 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 E5 2E 00 90 00 87 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 03 02 [18:59:40]Write to MH i2c: E2 08 00 E6 2E 80 0D 03 02 00 00 00 00 8F [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 0B 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 0B 00 E6 2E 00 6F 78 63 76 F7 BE C7 44 90 00 10 [18:59:40]RAPDU: 6F 78 63 76 F7 BE C7 44 90 00 [18:59:40]wFMCommunicate OK [18:59:40]SAM_PROTO_SignData done [18:59:40]FM_MakeSignedData done [18:59:40]CreateOFDProtocolMessage [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 11 00 00 [18:59:40]Write to MH i2c: E2 08 00 E7 2E 80 11 00 00 00 00 00 00 8F [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 17 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 17 00 E7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E2 [18:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:59:40]wFMCommunicate OK [18:59:40]CreateOFDProtocolMessage done [18:59:40]OFDSenderStorePacket 148965 [18:59:40]StoreOFDPacket docnum=148965 [18:59:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 58 7B 04 01 00 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 30 01 00 00 F4 03 04 00 1D 64 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E5 45 02 00 35 04 06 00 A2 A0 97 69 9D E6 6F 78 63 76 F7 BE C7 44 [18:59:40]CheckFolder [18:59:40]dirname=/storage/ofd_packets [18:59:40]CheckFolder done [18:59:40]ProducePacketName [18:59:40]name=ofd_packets/00148965 [18:59:40]NVStorageSaveData ofd_packets/00148965 [18:59:40]File name is /storage/ofd_packets/00148965 [18:59:40]Write 298 bytes [18:59:40]NVStorageSaveData done [18:59:40]OFDSenderStorePacket done [18:59:40]KKMCreateOFDPacket done [18:59:40]NVStorageSaveData kkm_last_timestamp [18:59:40]File name is /storage/kkm_last_timestamp [18:59:40]Write 4 bytes [18:59:40]NVStorageSaveData done [18:59:40]ExternCall_PrintAddStr [18:59:40]wPrintStart [18:59:40]Write to MH i2c: 01 00 00 E8 2E 16 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: 01 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: 01 07 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: 01 07 00 E8 2E 00 00 00 00 00 FF 0F 2B [18:59:40]RasterBufferAndPrint [18:59:40]line Счет N : (1)979897 [18:59:40]line ИНН: 02508201610067 [18:59:40]line Контрольно-Кассовый Чек [18:59:40]line ПРОДАЖА [18:59:40]line ТРК (МРК, ГНК) : 51 [18:59:40]line Товар: 2710194210 [18:59:40]line ДТ-К-5 [18:59:40]line 4.120 * 72.90 [18:59:40]line = 300.35 [18:59:40]line НДС 12% НСП 1% [18:59:40]line > о реализуемом товаре [18:59:40]line ОКРУГЛЕНИЕ: -0.35 [18:59:40]line ИТОГО: 300.00 [18:59:40]line Внесено: 300.00 [18:59:40]line СДАЧА: 0.00 [18:59:40]line НСП 1% : 2.66 [18:59:40]line НДС 12% : 31.90 [18:59:40]line Наличными: 300.00 [18:59:40]line Безнал.: 0.00 [18:59:40]line Место: АЗС № 68 "Партнер Нефть" [18:59:40]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [18:59:40]line СНО: Общий режим [18:59:40]line Чек 304 04.06.2024 18:59 [18:59:40]line Смена: 368 ФФД: 1.0 [18:59:40]line ЗНМ: 0300000035 [18:59:40]line РНМ: 0000000000092720 [18:59:40]line Версия ККМ: 001 [18:59:40]line ФМ: 0000000000875057 [18:59:40]line ФД: 148965 [18:59:40]line ФПД: 178810618748390 [18:59:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T185941&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148965&fm=178810618748390&tin=02508201610067®Number=0000000000092720&sum=30000 [18:59:40]OFD Sender: Processing packet 148965 [packets to send 100, broken 99] [18:59:40]ProducePacketName [18:59:40]name=ofd_packets/00148965 [18:59:40]OFD Sender: To server: pG, [18:59:40]CommunicateWithHost lk.salyk.kg:30040 [18:59:40]ConnectInit lk.salyk.kg [18:59:40]written 0, free lines is 4095 [18:59:41]Connected sock=10 [18:59:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 58 7B 04 01 00 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 30 01 00 00 F4 03 04 00 1D 64 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E5 45 02 00 35 04 06 00 A2 A0 97 69 9D E6 6F 78 63 76 F7 BE C7 44 [18:59:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 16 96 47 00 19 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 38 37 35 30 35 37 10 04 04 00 E5 45 02 00 F4 03 04 00 40 0B 5F 66 B6 04 01 00 00 F4 CA 1B 0F 53 A4 4D 6E [18:59:41]CommunicateWithHost err = 0 [18:59:41]CheckOFDResponse [18:59:41]1017 (14) - 77093643461234 [18:59:41]1041 (16) - 0000000000875057 [18:59:41]1040 (4) - 148965 [18:59:41]1012 (4) - 04.06.2024 12:40 [18:59:41]1206 (1) - 0 [18:59:41]OFD Sender: Remove packet 148965 [18:59:41]ProducePacketName [18:59:41]name=ofd_packets/00148965 [18:59:41]NVStorageDeleteData [18:59:41]Write to MH i2c: 01 00 00 13 2F 42 [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 07 00 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 07 00 13 2F 00 00 00 00 00 96 0C EB [18:59:41]RasterBufferAndPrint [18:59:41]line [18:59:41]line [18:59:41]line [18:59:41]line [18:59:41]line [18:59:41]written 0, free lines is 3227 [18:59:41]MH_Cut [18:59:41]Write to MH i2c: D1 01 00 1A 2F 01 1B [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: D1 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: D1 01 00 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: D1 01 00 1A 2F 00 1A [18:59:41]Write to MH i2c: 01 00 00 1B 2F 4A [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:41]OFD Sender: No OFD packet to send [18:59:42]*** Cut start [18:59:42]*** Partial cut [18:59:42]*** CUTSNS_PIN = 1 [18:59:42]*** CUTSNS_PIN = 0 [18:59:42]*** Brake cut motor [18:59:43]Read from MH i2c: 01 [18:59:43]MH_I2C_Read... [18:59:43]*** Stop cut motor [18:59:43]*** Cut end [18:59:43]Read from MH i2c: 01 07 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: 01 07 00 1B 2F 00 00 00 00 00 FF 0F 5F [18:59:43]process_action close_receipt done [18:59:43]requested_data is exist [18:59:43]produce_requested_data [18:59:43]requested_item fm.sn is exist - process it [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 11 00 00 [18:59:43]Write to MH i2c: E2 08 00 1C 2F 80 11 00 00 00 00 00 00 C5 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 17 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 17 00 1C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 18 [18:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [18:59:43]wFMCommunicate OK [18:59:43]requested_item fd.num is exist - process it [18:59:43]SAM_PROTO_GetFieldsCounters [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 13 00 00 [18:59:43]Write to MH i2c: E2 08 00 1D 2F 80 13 00 00 00 00 00 00 C8 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 62 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 62 00 1D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E5 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [18:59:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E5 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:43]wFMCommunicate OK [18:59:43]SAM_PROTO_GetFieldsCounters done [18:59:43]requested_item shift.num is exist - process it [18:59:43]requested_item shift.opened is exist - process it [18:59:43]req_shift_opened [18:59:43]FM_GetShiftState [18:59:43]SAM_PROTO_GetShiftState [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 13 01 00 [18:59:43]Write to MH i2c: E2 08 00 1E 2F 80 13 01 00 00 00 00 00 CA [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 0E 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 0E 00 1E 2F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8D [18:59:43]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [18:59:43]wFMCommunicate OK [18:59:43]SAM_PROTO_GetShiftState done [18:59:43]FM_GetShiftState done [18:59:43]req_shift_opened done [18:59:43]requested_item shift.open_date is exist - process it [18:59:43]req_shift_open_date [18:59:43]req_shift_open_date done [18:59:43]produce_requested_data done [18:59:43]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148965,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [18:59:43]process_action_free close_receipt [18:59:43]json_value_free [18:59:43]json_value_free done [18:59:43]process_json_proto returns [18:59:43]Send response to host [18:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148965,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [18:59:43]free response buf [18:59:43]execute_script done [18:59:43]execute_script returns [18:59:43]free content buf [18:59:43]Sock 9.Close socket [18:59:43]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:07]accept exits with 7 [19:04:07]New connection [19:04:07]New thread 3067264356 created [19:04:07]Thread 3067407716 joined [19:04:07]Waiting for new connection... [19:04:07] Sock 7.Parse request [19:04:07]Sock 7.Check first char [19:04:07]Sock 7.First char is OK [19:04:07]request: POST /json_proto HTTP/1.0 [19:04:07]Method: POST [19:04:07]URL: /json_proto [19:04:07]Method is POST - this is cgi request [19:04:07]url: /json_proto [19:04:07]query_string will be loaded in cgi processing [19:04:07]execute_cgi json_proto POST (null) [19:04:07]execute_cgi path=json_proto method=POST [19:04:07]POST find Content-Length [19:04:07]Host: 172.17.38.4:8080 [19:04:07]Content-Length: 682 [19:04:07]Content-Type: application/json [19:04:07] [19:04:07]POST finish read [19:04:07]Found Content-Length = 682 [19:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:07]execute_script... [19:04: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)979898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:07]POST & json_proto [19:04:07]process_json_proto [19:04:07]json parsed OK: [19:04:07]protocol is kg_v1.0 [19:04:07]action value=close_receipt [19:04:07]process_action close_receipt [19:04:07]cmd_close_receipt [19:04:07]MH_GetDate [19:04:07]Write to MH i2c: F0 00 00 1F 2F 3D [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: F0 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: F0 09 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: F0 09 00 1F 2F 00 29 65 5F 66 CC 51 87 64 A1 [19:04:07]GetLastDocTimeStamp 1717527581 [19:04:07]current date 1717527849 [19:04:07]FM_GetShiftState [19:04:07]SAM_PROTO_GetShiftState [19:04:07]wFMCommunicate request_size=4 [19:04:07]MH_SAM_APDU [19:04:07]CAPDU: 80 13 01 00 [19:04:07]Write to MH i2c: E2 08 00 20 2F 80 13 01 00 00 00 00 00 CC [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:07]Read from MH i2c: E2 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 0E 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 0E 00 20 2F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8F [19:04:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:04:07]wFMCommunicate OK [19:04:07]SAM_PROTO_GetShiftState done [19:04:07]FM_GetShiftState done [19:04:07]opened in 1717460629 [19:04:07]opened+sec_in_day 1717547029 [19:04:07]quantity*price = 100015 [19:04:07]sum+1 = 100017 [19:04:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 305 04.06.2024 19:04 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148966 ФПД: 179367713428605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T190409&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148966&fm=179367713428605&tin=02508201610067®Number=0000000000092720&sum=100000 [19:04:08]StoreToDocumentArchive [19:04:08]shift 368 fd 148966 [19:04:08]save to /storage/0368/doc_00148966 [19:04:08]save last doc name /storage/0368/doc_00148966 to /storage/kkm_last_doc_name [19:04:08]save OK [19:04:08]Clear old archive folders... [19:04:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:04:08]tlvbuf is 004E93E0 [19:04:08]SAM_PROTO_ClearQueue [19:04:08]wFMCommunicate request_size=4 [19:04:08]MH_SAM_APDU [19:04:08]CAPDU: 80 09 00 00 [19:04:08]Write to MH i2c: E2 08 00 2D 2F 80 09 00 00 00 00 00 00 CE [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:08]Read from MH i2c: E2 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 03 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 03 00 2D 2F 00 90 00 D0 [19:04:08]RAPDU: 90 00 [19:04:08]wFMCommunicate OK [19:04:08]SAM_PROTO_ClearQueue done [19:04:08]KKMCreateOFDPacket [19:04:08]OFDProtocolAddRootSTLVToBuf [19:04:08]FM_MakeSignedData [19:04:08]FM_MakeSignedData [19:04:08]SAM_PROTO_SignData [19:04:08]wFMCommunicate request_size=4 [19:04:08]MH_SAM_APDU [19:04:08]CAPDU: 80 0D 01 02 [19:04:08]Write to MH i2c: E2 08 00 2E 2F 80 0D 01 02 00 00 00 00 D6 [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:08]Read from MH i2c: E2 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 03 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 03 00 2E 2F 00 90 00 D1 [19:04:08]RAPDU: 90 00 [19:04:08]wFMCommunicate OK [19:04:08]wFMCommunicate request_size=255 [19:04:08]MH_SAM_APDU [19:04:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 01 00 00 F4 03 04 00 29 65 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E6 45 02 00 35 04 06 00 A3 [19:04:08]Write to MH i2c: E2 02 01 2F 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 29 65 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E6 45 02 00 35 04 06 00 A3 00 00 20 [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:08]Read from MH i2c: E2 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 03 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 03 00 2F 2F 00 90 00 D2 [19:04:08]RAPDU: 90 00 [19:04:08]wFMCommunicate OK [19:04:08]wFMCommunicate request_size=10 [19:04:08]MH_SAM_APDU [19:04:08]CAPDU: 80 0D 02 02 05 22 4C D7 D4 7D [19:04:08]Write to MH i2c: E2 0D 00 30 2F 80 0D 02 02 05 00 22 4C D7 D4 7D 00 00 79 [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:08]Read from MH i2c: E2 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 03 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 03 00 30 2F 00 90 00 D3 [19:04:08]RAPDU: 90 00 [19:04:08]wFMCommunicate OK [19:04:08]wFMCommunicate request_size=4 [19:04:08]MH_SAM_APDU [19:04:08]CAPDU: 80 0D 03 02 [19:04:08]Write to MH i2c: E2 08 00 31 2F 80 0D 03 02 00 00 00 00 DB [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:08]Read from MH i2c: E2 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 0B 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 0B 00 31 2F 00 D9 57 55 D9 64 13 70 44 90 00 65 [19:04:08]RAPDU: D9 57 55 D9 64 13 70 44 90 00 [19:04:08]wFMCommunicate OK [19:04:08]SAM_PROTO_SignData done [19:04:08]FM_MakeSignedData done [19:04:08]CreateOFDProtocolMessage [19:04:08]wFMCommunicate request_size=4 [19:04:08]MH_SAM_APDU [19:04:08]CAPDU: 80 11 00 00 [19:04:08]Write to MH i2c: E2 08 00 32 2F 80 11 00 00 00 00 00 00 DB [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:08]Read from MH i2c: E2 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 17 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 17 00 32 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2E [19:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:04:08]wFMCommunicate OK [19:04:08]CreateOFDProtocolMessage done [19:04:08]OFDSenderStorePacket 148966 [19:04:08]StoreOFDPacket docnum=148966 [19:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7B DF 07 01 19 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 29 65 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E6 45 02 00 35 04 06 00 A3 22 4C D7 D4 7D D9 57 55 D9 64 13 70 44 [19:04:08]CheckFolder [19:04:08]dirname=/storage/ofd_packets [19:04:08]CheckFolder done [19:04:08]ProducePacketName [19:04:08]name=ofd_packets/00148966 [19:04:08]NVStorageSaveData ofd_packets/00148966 [19:04:08]File name is /storage/ofd_packets/00148966 [19:04:08]Write 301 bytes [19:04:08]NVStorageSaveData done [19:04:08]OFDSenderStorePacket done [19:04:08]KKMCreateOFDPacket done [19:04:08]NVStorageSaveData kkm_last_timestamp [19:04:08]File name is /storage/kkm_last_timestamp [19:04:08]Write 4 bytes [19:04:08]NVStorageSaveData done [19:04:08]OFD Sender: Processing packet 148966 [packets to send 100, broken 99] [19:04:08]ProducePacketName [19:04:08]name=ofd_packets/00148966 [19:04:08]OFD Sender: To server: pG, [19:04:08]CommunicateWithHost lk.salyk.kg:30040 [19:04:08]ConnectInit lk.salyk.kg [19:04:08]ExternCall_PrintAddStr [19:04:08]wPrintStart [19:04:08]Write to MH i2c: 01 00 00 33 2F 62 [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 07 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 07 00 33 2F 00 00 00 00 00 FF 0F 77 [19:04:08]RasterBufferAndPrint [19:04:08]line Счет N : (1)979898 [19:04:08]line ИНН: 02508201610067 [19:04:08]line Контрольно-Кассовый Чек [19:04:08]line ПРОДАЖА [19:04:08]line ТРК (МРК, ГНК) : 41 [19:04:08]line Товар: 2710124130 [19:04:08]line Аи-92-К-5 [19:04:08]line 14.950 * 66.90 [19:04:08]line = 1000.16 [19:04:08]line НДС 12% НСП 1% [19:04:08]line > о реализуемом товаре [19:04:08]line ОКРУГЛЕНИЕ: -0.16 [19:04:08]line ИТОГО: 1000.00 [19:04:08]line Внесено: 1000.00 [19:04:08]line СДАЧА: 0.00 [19:04:08]line НСП 1% : 8.85 [19:04:08]line НДС 12% : 106.21 [19:04:08]line Наличными: 1000.00 [19:04:08]line Безнал.: 0.00 [19:04:08]line Место: АЗС № 68 "Партнер Нефть" [19:04:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:04:08]line СНО: Общий режим [19:04:08]line Чек 305 04.06.2024 19:04 [19:04:08]line Смена: 368 ФФД: 1.0 [19:04:08]line ЗНМ: 0300000035 [19:04:08]line РНМ: 0000000000092720 [19:04:08]line Версия ККМ: 001 [19:04:08]line ФМ: 0000000000875057 [19:04:08]line ФД: 148966 [19:04:09]line ФПД: 179367713428605 [19:04:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T190409&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148966&fm=179367713428605&tin=02508201610067®Number=0000000000092720&sum=100000 [19:04:09]Connected sock=11 [19:04:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7B DF 07 01 19 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 29 65 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E6 45 02 00 35 04 06 00 A3 22 4C D7 D4 7D D9 57 55 D9 64 13 70 44 [19:04:09]written 0, free lines is 4095 [19:04:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 7E 9D 47 00 1A 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 38 37 35 30 35 37 10 04 04 00 E6 45 02 00 F4 03 04 00 4C 0C 5F 66 B6 04 01 00 00 73 2E D7 AE AD 5D 4B 91 [19:04:09]CommunicateWithHost err = 0 [19:04:09]CheckOFDResponse [19:04:09]1017 (14) - 77093643461234 [19:04:09]1041 (16) - 0000000000875057 [19:04:09]1040 (4) - 148966 [19:04:09]1012 (4) - 04.06.2024 12:45 [19:04:09]1206 (1) - 0 [19:04:09]OFD Sender: Remove packet 148966 [19:04:09]ProducePacketName [19:04:09]name=ofd_packets/00148966 [19:04:09]NVStorageDeleteData [19:04:09]Write to MH i2c: 01 00 00 5E 2F 8D [19:04:09]Write i2c OK [19:04:09]MH_I2C_Read... [19:04:09]Read from MH i2c: 01 [19:04:09]MH_I2C_Read... [19:04:09]Read from MH i2c: 01 07 00 [19:04:09]MH_I2C_Read... [19:04:09]Read from MH i2c: 01 07 00 5E 2F 00 00 00 00 00 96 0C 36 [19:04:09]RasterBufferAndPrint [19:04:09]line [19:04:09]line [19:04:09]line [19:04:09]line [19:04:09]line [19:04:09]written 0, free lines is 3226 [19:04:09]MH_Cut [19:04:09]Write to MH i2c: D1 01 00 65 2F 01 66 [19:04:09]Write i2c OK [19:04:09]MH_I2C_Read... [19:04:09]Read from MH i2c: D1 [19:04:09]MH_I2C_Read... [19:04:09]Read from MH i2c: D1 01 00 [19:04:09]MH_I2C_Read... [19:04:09]Read from MH i2c: D1 01 00 65 2F 00 65 [19:04:09]Write to MH i2c: 01 00 00 66 2F 95 [19:04:09]Write i2c OK [19:04:09]MH_I2C_Read... [19:04:09]OFD Sender: No OFD packet to send [19:04:10]*** Cut start [19:04:10]*** Partial cut [19:04:10]*** CUTSNS_PIN = 1 [19:04:10]*** CUTSNS_PIN = 0 [19:04:10]*** Brake cut motor [19:04:11]Read from MH i2c: 01 [19:04:11]MH_I2C_Read... [19:04:11]*** Stop cut motor [19:04:11]*** Cut end [19:04:11]Read from MH i2c: 01 07 00 [19:04:11]MH_I2C_Read... [19:04:11]Read from MH i2c: 01 07 00 66 2F 00 00 00 00 00 FF 0F AA [19:04:11]process_action close_receipt done [19:04:11]requested_data is exist [19:04:11]produce_requested_data [19:04:11]requested_item fm.sn is exist - process it [19:04:11]wFMCommunicate request_size=4 [19:04:11]MH_SAM_APDU [19:04:11]CAPDU: 80 11 00 00 [19:04:11]Write to MH i2c: E2 08 00 67 2F 80 11 00 00 00 00 00 00 10 [19:04:11]Write i2c OK [19:04:11]MH_I2C_Read... [19:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:11]Read from MH i2c: E2 [19:04:11]MH_I2C_Read... [19:04:11]Read from MH i2c: E2 17 00 [19:04:11]MH_I2C_Read... [19:04:11]Read from MH i2c: E2 17 00 67 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 63 [19:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:04:11]wFMCommunicate OK [19:04:11]requested_item fd.num is exist - process it [19:04:11]SAM_PROTO_GetFieldsCounters [19:04:11]wFMCommunicate request_size=4 [19:04:11]MH_SAM_APDU [19:04:11]CAPDU: 80 13 00 00 [19:04:11]Write to MH i2c: E2 08 00 68 2F 80 13 00 00 00 00 00 00 13 [19:04:11]Write i2c OK [19:04:11]MH_I2C_Read... [19:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:11]Read from MH i2c: E2 [19:04:11]MH_I2C_Read... [19:04:11]Read from MH i2c: E2 62 00 [19:04:11]MH_I2C_Read... [19:04:11]Read from MH i2c: E2 62 00 68 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E6 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [19:04:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E6 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:11]wFMCommunicate OK [19:04:11]SAM_PROTO_GetFieldsCounters done [19:04:11]requested_item shift.num is exist - process it [19:04:11]requested_item shift.opened is exist - process it [19:04:11]req_shift_opened [19:04:11]FM_GetShiftState [19:04:11]SAM_PROTO_GetShiftState [19:04:11]wFMCommunicate request_size=4 [19:04:11]MH_SAM_APDU [19:04:11]CAPDU: 80 13 01 00 [19:04:11]Write to MH i2c: E2 08 00 69 2F 80 13 01 00 00 00 00 00 15 [19:04:11]Write i2c OK [19:04:11]MH_I2C_Read... [19:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:11]Read from MH i2c: E2 [19:04:11]MH_I2C_Read... [19:04:11]Read from MH i2c: E2 0E 00 [19:04:11]MH_I2C_Read... [19:04:11]Read from MH i2c: E2 0E 00 69 2F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D8 [19:04:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:04:11]wFMCommunicate OK [19:04:11]SAM_PROTO_GetShiftState done [19:04:11]FM_GetShiftState done [19:04:11]req_shift_opened done [19:04:11]requested_item shift.open_date is exist - process it [19:04:11]req_shift_open_date [19:04:11]req_shift_open_date done [19:04:11]produce_requested_data done [19:04:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148966,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:04:11]process_action_free close_receipt [19:04:11]json_value_free [19:04:11]json_value_free done [19:04:11]process_json_proto returns [19:04:11]Send response to host [19:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148966,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:04:11]free response buf [19:04:11]execute_script done [19:04:11]execute_script returns [19:04:11]free content buf [19:04:11]Sock 7.Close socket [19:04:11]Sock 7.Thread stoped [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:39]accept exits with 9 [19:08:39]New connection [19:08:39]New thread 3067407716 created [19:08:39]Thread 3067264356 joined [19:08:39]Waiting for new connection... [19:08:39] Sock 9.Parse request [19:08:39]Sock 9.Check first char [19:08:39]Sock 9.First char is OK [19:08:39]request: POST /json_proto HTTP/1.0 [19:08:39]Method: POST [19:08:39]URL: /json_proto [19:08:39]Method is POST - this is cgi request [19:08:39]url: /json_proto [19:08:39]query_string will be loaded in cgi processing [19:08:39]execute_cgi json_proto POST (null) [19:08:39]execute_cgi path=json_proto method=POST [19:08:39]POST find Content-Length [19:08:39]Host: 172.17.38.4:8080 [19:08:39]Content-Length: 793 [19:08:39]Content-Type: application/json [19:08:39] [19:08:39]POST finish read [19:08:39]Found Content-Length = 793 [19:08:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:39]execute_script... [19:08: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)979899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:39]POST & json_proto [19:08:39]process_json_proto [19:08:39]json parsed OK: [19:08:39]protocol is kg_v1.0 [19:08:39]action value=close_receipt [19:08:39]process_action close_receipt [19:08:39]cmd_close_receipt [19:08:39]MH_GetDate [19:08:39]Write to MH i2c: F0 00 00 6A 2F 88 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: F0 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: F0 09 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: F0 09 00 6A 2F 00 39 66 5F 66 CC 51 87 64 FD [19:08:39]GetLastDocTimeStamp 1717527849 [19:08:39]current date 1717528121 [19:08:39]FM_GetShiftState [19:08:39]SAM_PROTO_GetShiftState [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 13 01 00 [19:08:39]Write to MH i2c: E2 08 00 6B 2F 80 13 01 00 00 00 00 00 17 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 0E 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 0E 00 6B 2F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DA [19:08:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:08:39]wFMCommunicate OK [19:08:39]SAM_PROTO_GetShiftState done [19:08:39]FM_GetShiftState done [19:08:39]opened in 1717460629 [19:08:39]opened+sec_in_day 1717547029 [19:08:39]quantity*price = 100015 [19:08:39]sum+1 = 100017 [19:08:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 306 04.06.2024 19:08 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148967 ФПД: 137746798561220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T190841&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148967&fm=137746798561220&tin=02508201610067®Number=0000000000092720&sum=100016 [19:08:40]StoreToDocumentArchive [19:08:40]shift 368 fd 148967 [19:08:40]save to /storage/0368/doc_00148967 [19:08:40]save last doc name /storage/0368/doc_00148967 to /storage/kkm_last_doc_name [19:08:40]save OK [19:08:40]Clear old archive folders... [19:08:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:40]tlvbuf is 004B8170 [19:08:40]SAM_PROTO_ClearQueue [19:08:40]wFMCommunicate request_size=4 [19:08:40]MH_SAM_APDU [19:08:40]CAPDU: 80 09 00 00 [19:08:40]Write to MH i2c: E2 08 00 78 2F 80 09 00 00 00 00 00 00 19 [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: E2 [19:08:40]MH_I2C_Read... [19:08:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:40]Read from MH i2c: E2 03 00 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: E2 03 00 78 2F 00 90 00 1B [19:08:40]RAPDU: 90 00 [19:08:40]wFMCommunicate OK [19:08:40]SAM_PROTO_ClearQueue done [19:08:40]KKMCreateOFDPacket [19:08:40]OFDProtocolAddRootSTLVToBuf [19:08:40]FM_MakeSignedData [19:08:40]FM_MakeSignedData [19:08:40]SAM_PROTO_SignData [19:08:40]wFMCommunicate request_size=4 [19:08:40]MH_SAM_APDU [19:08:40]CAPDU: 80 0D 01 02 [19:08:40]Write to MH i2c: E2 08 00 79 2F 80 0D 01 02 00 00 00 00 21 [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: E2 [19:08:40]MH_I2C_Read... [19:08:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:40]Read from MH i2c: E2 03 00 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: E2 03 00 79 2F 00 90 00 1C [19:08:40]RAPDU: 90 00 [19:08:40]wFMCommunicate OK [19:08:40]wFMCommunicate request_size=255 [19:08:40]MH_SAM_APDU [19:08:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 01 00 00 F4 03 04 00 39 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E7 45 02 00 35 04 06 00 7D [19:08:40]Write to MH i2c: E2 02 01 7A 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 39 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E7 45 02 00 35 04 06 00 7D 00 00 78 [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:41]Read from MH i2c: E2 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 03 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 03 00 7A 2F 00 90 00 1D [19:08:41]RAPDU: 90 00 [19:08:41]wFMCommunicate OK [19:08:41]wFMCommunicate request_size=10 [19:08:41]MH_SAM_APDU [19:08:41]CAPDU: 80 0D 02 02 05 47 AC FF 47 C4 [19:08:41]Write to MH i2c: E2 0D 00 7B 2F 80 0D 02 02 05 00 47 AC FF 47 C4 00 00 2B [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:41]Read from MH i2c: E2 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 03 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 03 00 7B 2F 00 90 00 1E [19:08:41]RAPDU: 90 00 [19:08:41]wFMCommunicate OK [19:08:41]wFMCommunicate request_size=4 [19:08:41]MH_SAM_APDU [19:08:41]CAPDU: 80 0D 03 02 [19:08:41]Write to MH i2c: E2 08 00 7C 2F 80 0D 03 02 00 00 00 00 26 [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:41]Read from MH i2c: E2 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 0B 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 0B 00 7C 2F 00 6F 7D 52 EC 12 6E 48 FD 90 00 16 [19:08:41]RAPDU: 6F 7D 52 EC 12 6E 48 FD 90 00 [19:08:41]wFMCommunicate OK [19:08:41]SAM_PROTO_SignData done [19:08:41]FM_MakeSignedData done [19:08:41]CreateOFDProtocolMessage [19:08:41]wFMCommunicate request_size=4 [19:08:41]MH_SAM_APDU [19:08:41]CAPDU: 80 11 00 00 [19:08:41]Write to MH i2c: E2 08 00 7D 2F 80 11 00 00 00 00 00 00 26 [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:41]Read from MH i2c: E2 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 17 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: E2 17 00 7D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 79 [19:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:08:41]wFMCommunicate OK [19:08:41]CreateOFDProtocolMessage done [19:08:41]OFDSenderStorePacket 148967 [19:08:41]StoreOFDPacket docnum=148967 [19:08:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B2 DF 07 01 31 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 01 00 00 F4 03 04 00 39 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E7 45 02 00 35 04 06 00 7D 47 AC FF 47 C4 6F 7D 52 EC 12 6E 48 FD [19:08:41]CheckFolder [19:08:41]dirname=/storage/ofd_packets [19:08:41]CheckFolder done [19:08:41]ProducePacketName [19:08:41]name=ofd_packets/00148967 [19:08:41]NVStorageSaveData ofd_packets/00148967 [19:08:41]File name is /storage/ofd_packets/00148967 [19:08:41]Write 301 bytes [19:08:41]NVStorageSaveData done [19:08:41]OFDSenderStorePacket done [19:08:41]KKMCreateOFDPacket done [19:08:41]NVStorageSaveData kkm_last_timestamp [19:08:41]File name is /storage/kkm_last_timestamp [19:08:41]Write 4 bytes [19:08:41]NVStorageSaveData done [19:08:41]ExternCall_PrintAddStr [19:08:41]wPrintStart [19:08:41]Write to MH i2c: 01 00 00 7E 2F AD [19:08:41]Write i2c OK [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: 01 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: 01 07 00 [19:08:41]MH_I2C_Read... [19:08:41]Read from MH i2c: 01 07 00 7E 2F 00 00 00 00 00 FF 0F C2 [19:08:41]RasterBufferAndPrint [19:08:41]line Счет N : (1)979899 [19:08:41]line ИНН: 02508201610067 [19:08:41]line Контрольно-Кассовый Чек [19:08:41]line ПРОДАЖА [19:08:41]line ТРК (МРК, ГНК) : 41 [19:08:41]line Товар: 2710124130 [19:08:41]line Аи-92-К-5 [19:08:41]line 14.950 * 66.90 [19:08:41]line = 1000.16 [19:08:41]line НДС 12% НСП 1% [19:08:41]line > о реализуемом товаре [19:08:41]line ИТОГО: 1000.16 [19:08:41]line НСП 1% : 8.85 [19:08:41]line НДС 12% : 106.21 [19:08:41]line Наличными: 0.00 [19:08:41]line Безнал.: 1000.16 [19:08:41]line Место: АЗС № 68 "Партнер Нефть" [19:08:41]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:08:41]line СНО: Общий режим [19:08:41]line Чек 306 04.06.2024 19:08 [19:08:41]line Смена: 368 ФФД: 1.0 [19:08:41]line ЗНМ: 0300000035 [19:08:41]line РНМ: 0000000000092720 [19:08:41]line Версия ККМ: 001 [19:08:41]line Платежная система: KICB Банк [19:08:41]line ФМ: 0000000000875057 [19:08:41]line ФД: 148967 [19:08:41]line ФПД: 137746798561220 [19:08:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T190841&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148967&fm=137746798561220&tin=02508201610067®Number=0000000000092720&sum=100016 [19:08:41]OFD Sender: Processing packet 148967 [packets to send 100, broken 99] [19:08:41]ProducePacketName [19:08:41]name=ofd_packets/00148967 [19:08:41]OFD Sender: To server: pG, [19:08:41]CommunicateWithHost lk.salyk.kg:30040 [19:08:41]ConnectInit lk.salyk.kg [19:08:41]written 0, free lines is 4095 [19:08:41]Connected sock=10 [19:08:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B2 DF 07 01 31 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 01 00 00 F4 03 04 00 39 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E7 45 02 00 35 04 06 00 7D 47 AC FF 47 C4 6F 7D 52 EC 12 6E 48 FD [19:08:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 53 07 47 00 95 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E7 45 02 00 F4 03 04 00 5D 0D 5F 66 B6 04 01 00 00 9B 28 B7 BE 2F F0 E9 45 [19:08:41]CommunicateWithHost err = 0 [19:08:41]CheckOFDResponse [19:08:41]1017 (14) - 77093643461234 [19:08:41]1041 (16) - 0000000000875057 [19:08:41]1040 (4) - 148967 [19:08:41]1012 (4) - 04.06.2024 12:49 [19:08:41]1206 (1) - 0 [19:08:41]OFD Sender: Remove packet 148967 [19:08:41]ProducePacketName [19:08:41]name=ofd_packets/00148967 [19:08:41]NVStorageDeleteData [19:08:42]Write to MH i2c: 01 00 00 A8 2F D7 [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: 01 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: 01 07 00 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: 01 07 00 A8 2F 00 00 00 00 00 AC 0C 96 [19:08:42]RasterBufferAndPrint [19:08:42]line [19:08:42]line [19:08:42]line [19:08:42]line [19:08:42]line [19:08:42]written 0, free lines is 3249 [19:08:42]MH_Cut [19:08:42]Write to MH i2c: D1 01 00 AF 2F 01 B0 [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: D1 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: D1 01 00 [19:08:42]MH_I2C_Read... [19:08:42]Read from MH i2c: D1 01 00 AF 2F 00 AF [19:08:42]Write to MH i2c: 01 00 00 B0 2F DF [19:08:42]Write i2c OK [19:08:42]MH_I2C_Read... [19:08:42]OFD Sender: No OFD packet to send [19:08:43]*** Cut start [19:08:43]*** Partial cut [19:08:43]*** CUTSNS_PIN = 1 [19:08:43]*** CUTSNS_PIN = 0 [19:08:43]*** Brake cut motor [19:08:43]Read from MH i2c: 01 [19:08:43]MH_I2C_Read... [19:08:43]*** Stop cut motor [19:08:43]*** Cut end [19:08:43]Read from MH i2c: 01 07 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: 01 07 00 B0 2F 00 00 00 00 00 FF 0F F4 [19:08:43]process_action close_receipt done [19:08:43]requested_data is exist [19:08:43]produce_requested_data [19:08:43]requested_item fm.sn is exist - process it [19:08:43]wFMCommunicate request_size=4 [19:08:43]MH_SAM_APDU [19:08:43]CAPDU: 80 11 00 00 [19:08:43]Write to MH i2c: E2 08 00 B1 2F 80 11 00 00 00 00 00 00 5A [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:43]Read from MH i2c: E2 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 17 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 17 00 B1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AD [19:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:08:43]wFMCommunicate OK [19:08:43]requested_item fd.num is exist - process it [19:08:43]SAM_PROTO_GetFieldsCounters [19:08:43]wFMCommunicate request_size=4 [19:08:43]MH_SAM_APDU [19:08:43]CAPDU: 80 13 00 00 [19:08:43]Write to MH i2c: E2 08 00 B2 2F 80 13 00 00 00 00 00 00 5D [19:08:43]Write i2c OK [19:08:43]MH_I2C_Read... [19:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:43]Read from MH i2c: E2 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 62 00 [19:08:43]MH_I2C_Read... [19:08:43]Read from MH i2c: E2 62 00 B2 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E7 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [19:08:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E7 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:44]wFMCommunicate OK [19:08:44]SAM_PROTO_GetFieldsCounters done [19:08:44]requested_item shift.num is exist - process it [19:08:44]requested_item shift.opened is exist - process it [19:08:44]req_shift_opened [19:08:44]FM_GetShiftState [19:08:44]SAM_PROTO_GetShiftState [19:08:44]wFMCommunicate request_size=4 [19:08:44]MH_SAM_APDU [19:08:44]CAPDU: 80 13 01 00 [19:08:44]Write to MH i2c: E2 08 00 B3 2F 80 13 01 00 00 00 00 00 5F [19:08:44]Write i2c OK [19:08:44]MH_I2C_Read... [19:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:44]Read from MH i2c: E2 [19:08:44]MH_I2C_Read... [19:08:44]Read from MH i2c: E2 0E 00 [19:08:44]MH_I2C_Read... [19:08:44]Read from MH i2c: E2 0E 00 B3 2F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 22 [19:08:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:08:44]wFMCommunicate OK [19:08:44]SAM_PROTO_GetShiftState done [19:08:44]FM_GetShiftState done [19:08:44]req_shift_opened done [19:08:44]requested_item shift.open_date is exist - process it [19:08:44]req_shift_open_date [19:08:44]req_shift_open_date done [19:08:44]produce_requested_data done [19:08:44]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148967,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:08:44]process_action_free close_receipt [19:08:44]json_value_free [19:08:44]json_value_free done [19:08:44]process_json_proto returns [19:08:44]Send response to host [19:08:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148967,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:08:44]free response buf [19:08:44]execute_script done [19:08:44]execute_script returns [19:08:44]free content buf [19:08:44]Sock 9.Close socket [19:08:44]Sock 9.Thread stoped [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:54]accept exits with 7 [19:09:54]New connection [19:09:54]New thread 3067264356 created [19:09:54]Thread 3067407716 joined [19:09:54]Waiting for new connection... [19:09:54] Sock 7.Parse request [19:09:54]Sock 7.Check first char [19:09:54]Sock 7.First char is OK [19:09:54]request: POST /json_proto HTTP/1.0 [19:09:54]Method: POST [19:09:54]URL: /json_proto [19:09:54]Method is POST - this is cgi request [19:09:54]url: /json_proto [19:09:54]query_string will be loaded in cgi processing [19:09:54]execute_cgi json_proto POST (null) [19:09:54]execute_cgi path=json_proto method=POST [19:09:54]POST find Content-Length [19:09:54]Host: 172.17.38.4:8080 [19:09:54]Content-Length: 677 [19:09:54]Content-Type: application/json [19:09:54] [19:09:54]POST finish read [19:09:54]Found Content-Length = 677 [19:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:54]execute_script... [19:09: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)979900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:54]POST & json_proto [19:09:54]process_json_proto [19:09:54]json parsed OK: [19:09:54]protocol is kg_v1.0 [19:09:54]action value=close_receipt [19:09:54]process_action close_receipt [19:09:54]cmd_close_receipt [19:09:54]MH_GetDate [19:09:54]Write to MH i2c: F0 00 00 B4 2F D2 [19:09:54]Write i2c OK [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: F0 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: F0 09 00 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: F0 09 00 B4 2F 00 84 66 5F 66 CC 51 87 64 92 [19:09:54]GetLastDocTimeStamp 1717528121 [19:09:54]current date 1717528196 [19:09:54]FM_GetShiftState [19:09:54]SAM_PROTO_GetShiftState [19:09:54]wFMCommunicate request_size=4 [19:09:54]MH_SAM_APDU [19:09:54]CAPDU: 80 13 01 00 [19:09:54]Write to MH i2c: E2 08 00 B5 2F 80 13 01 00 00 00 00 00 61 [19:09:54]Write i2c OK [19:09:54]MH_I2C_Read... [19:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:54]Read from MH i2c: E2 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 0E 00 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 0E 00 B5 2F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 24 [19:09:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:09:54]wFMCommunicate OK [19:09:54]SAM_PROTO_GetShiftState done [19:09:54]FM_GetShiftState done [19:09:54]opened in 1717460629 [19:09:54]opened+sec_in_day 1717547029 [19:09:54]quantity*price = 50041 [19:09:54]sum+1 = 50042 [19:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 307 04.06.2024 19:09 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148968 ФПД: 262670464671991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T190956&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148968&fm=262670464671991&tin=02508201610067®Number=0000000000092720&sum=50000 [19:09:55]StoreToDocumentArchive [19:09:55]shift 368 fd 148968 [19:09:55]save to /storage/0368/doc_00148968 [19:09:55]save last doc name /storage/0368/doc_00148968 to /storage/kkm_last_doc_name [19:09:55]save OK [19:09:55]Clear old archive folders... [19:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:55]tlvbuf is 0046B600 [19:09:55]SAM_PROTO_ClearQueue [19:09:55]wFMCommunicate request_size=4 [19:09:55]MH_SAM_APDU [19:09:55]CAPDU: 80 09 00 00 [19:09:55]Write to MH i2c: E2 08 00 C2 2F 80 09 00 00 00 00 00 00 63 [19:09:55]Write i2c OK [19:09:55]MH_I2C_Read... [19:09:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:55]Read from MH i2c: E2 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 03 00 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 03 00 C2 2F 00 90 00 65 [19:09:55]RAPDU: 90 00 [19:09:55]wFMCommunicate OK [19:09:55]SAM_PROTO_ClearQueue done [19:09:55]KKMCreateOFDPacket [19:09:55]OFDProtocolAddRootSTLVToBuf [19:09:55]FM_MakeSignedData [19:09:55]FM_MakeSignedData [19:09:55]SAM_PROTO_SignData [19:09:55]wFMCommunicate request_size=4 [19:09:55]MH_SAM_APDU [19:09:55]CAPDU: 80 0D 01 02 [19:09:55]Write to MH i2c: E2 08 00 C3 2F 80 0D 01 02 00 00 00 00 6B [19:09:55]Write i2c OK [19:09:55]MH_I2C_Read... [19:09:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:55]Read from MH i2c: E2 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 03 00 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 03 00 C3 2F 00 90 00 66 [19:09:55]RAPDU: 90 00 [19:09:55]wFMCommunicate OK [19:09:55]wFMCommunicate request_size=255 [19:09:55]MH_SAM_APDU [19:09:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 84 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E8 45 02 00 35 04 06 00 EE [19:09:55]Write to MH i2c: E2 02 01 C4 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 84 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E8 45 02 00 35 04 06 00 EE 00 00 66 [19:09:55]Write i2c OK [19:09:55]MH_I2C_Read... [19:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:56]Read from MH i2c: E2 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 C4 2F 00 90 00 67 [19:09:56]RAPDU: 90 00 [19:09:56]wFMCommunicate OK [19:09:56]wFMCommunicate request_size=10 [19:09:56]MH_SAM_APDU [19:09:56]CAPDU: 80 0D 02 02 05 E5 BB BD 60 F7 [19:09:56]Write to MH i2c: E2 0D 00 C5 2F 80 0D 02 02 05 00 E5 BB BD 60 F7 00 00 2C [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:56]Read from MH i2c: E2 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 C5 2F 00 90 00 68 [19:09:56]RAPDU: 90 00 [19:09:56]wFMCommunicate OK [19:09:56]wFMCommunicate request_size=4 [19:09:56]MH_SAM_APDU [19:09:56]CAPDU: 80 0D 03 02 [19:09:56]Write to MH i2c: E2 08 00 C6 2F 80 0D 03 02 00 00 00 00 70 [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:56]Read from MH i2c: E2 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 0B 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 0B 00 C6 2F 00 5F C8 2A E8 56 53 01 54 90 00 A8 [19:09:56]RAPDU: 5F C8 2A E8 56 53 01 54 90 00 [19:09:56]wFMCommunicate OK [19:09:56]SAM_PROTO_SignData done [19:09:56]FM_MakeSignedData done [19:09:56]CreateOFDProtocolMessage [19:09:56]wFMCommunicate request_size=4 [19:09:56]MH_SAM_APDU [19:09:56]CAPDU: 80 11 00 00 [19:09:56]Write to MH i2c: E2 08 00 C7 2F 80 11 00 00 00 00 00 00 70 [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:56]Read from MH i2c: E2 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 17 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 17 00 C7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C3 [19:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:09:56]wFMCommunicate OK [19:09:56]CreateOFDProtocolMessage done [19:09:56]OFDSenderStorePacket 148968 [19:09:56]StoreOFDPacket docnum=148968 [19:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 33 AE 07 01 12 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 84 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E8 45 02 00 35 04 06 00 EE E5 BB BD 60 F7 5F C8 2A E8 56 53 01 54 [19:09:56]CheckFolder [19:09:56]dirname=/storage/ofd_packets [19:09:56]CheckFolder done [19:09:56]ProducePacketName [19:09:56]name=ofd_packets/00148968 [19:09:56]NVStorageSaveData ofd_packets/00148968 [19:09:56]File name is /storage/ofd_packets/00148968 [19:09:56]Write 301 bytes [19:09:56]NVStorageSaveData done [19:09:56]OFDSenderStorePacket done [19:09:56]KKMCreateOFDPacket done [19:09:56]NVStorageSaveData kkm_last_timestamp [19:09:56]File name is /storage/kkm_last_timestamp [19:09:56]Write 4 bytes [19:09:56]NVStorageSaveData done [19:09:56]ExternCall_PrintAddStr [19:09:56]wPrintStart [19:09:56]Write to MH i2c: 01 00 00 C8 2F F7 [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: 01 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: 01 07 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: 01 07 00 C8 2F 00 00 00 00 00 FF 0F 0C [19:09:56]RasterBufferAndPrint [19:09:56]line Счет N : (1)979900 [19:09:56]line ИНН: 02508201610067 [19:09:56]line Контрольно-Кассовый Чек [19:09:56]line ПРОДАЖА [19:09:56]line ТРК (МРК, ГНК) : 41 [19:09:56]line Товар: 2710124130 [19:09:56]line Аи-92-К-5 [19:09:56]line 7.480 * 66.90 [19:09:56]line = 500.41 [19:09:56]line НДС 12% НСП 1% [19:09:56]line > о реализуемом товаре [19:09:56]line ОКРУГЛЕНИЕ: -0.41 [19:09:56]line ИТОГО: 500.00 [19:09:56]line Внесено: 500.00 [19:09:56]line СДАЧА: 0.00 [19:09:56]line НСП 1% : 4.43 [19:09:56]line НДС 12% : 53.14 [19:09:56]line Наличными: 500.00 [19:09:56]line Безнал.: 0.00 [19:09:56]line Место: АЗС № 68 "Партнер Нефть" [19:09:56]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:09:56]line СНО: Общий режим [19:09:56]line Чек 307 04.06.2024 19:09 [19:09:56]line Смена: 368 ФФД: 1.0 [19:09:56]line ЗНМ: 0300000035 [19:09:56]line РНМ: 0000000000092720 [19:09:56]line Версия ККМ: 001 [19:09:56]line ФМ: 0000000000875057 [19:09:56]line ФД: 148968 [19:09:56]line ФПД: 262670464671991 [19:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T190956&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148968&fm=262670464671991&tin=02508201610067®Number=0000000000092720&sum=50000 [19:09:56]OFD Sender: Processing packet 148968 [packets to send 100, broken 99] [19:09:56]ProducePacketName [19:09:56]name=ofd_packets/00148968 [19:09:56]OFD Sender: To server: pG, [19:09:56]CommunicateWithHost lk.salyk.kg:30040 [19:09:56]ConnectInit lk.salyk.kg [19:09:56]written 0, free lines is 4095 [19:09:56]Connected sock=10 [19:09:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 33 AE 07 01 12 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 84 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E8 45 02 00 35 04 06 00 EE E5 BB BD 60 F7 5F C8 2A E8 56 53 01 54 [19:09:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 52 C0 47 00 98 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E8 45 02 00 F4 03 04 00 A7 0D 5F 66 B6 04 01 00 00 D1 10 7C 38 AF E5 EF F1 [19:09:56]CommunicateWithHost err = 0 [19:09:56]CheckOFDResponse [19:09:56]1017 (14) - 77093643461234 [19:09:56]1041 (16) - 0000000000875057 [19:09:56]1040 (4) - 148968 [19:09:56]1012 (4) - 04.06.2024 12:50 [19:09:56]1206 (1) - 0 [19:09:56]OFD Sender: Remove packet 148968 [19:09:56]ProducePacketName [19:09:56]name=ofd_packets/00148968 [19:09:56]NVStorageDeleteData [19:09:57]Write to MH i2c: 01 00 00 F3 2F 22 [19:09:57]Write i2c OK [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: 01 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: 01 07 00 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: 01 07 00 F3 2F 00 00 00 00 00 9D 0C D2 [19:09:57]RasterBufferAndPrint [19:09:57]line [19:09:57]line [19:09:57]line [19:09:57]line [19:09:57]line [19:09:57]written 0, free lines is 3237 [19:09:57]MH_Cut [19:09:57]Write to MH i2c: D1 01 00 FA 2F 01 FB [19:09:57]Write i2c OK [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: D1 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: D1 01 00 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: D1 01 00 FA 2F 00 FA [19:09:57]Write to MH i2c: 01 00 00 FB 2F 2A [19:09:57]Write i2c OK [19:09:57]MH_I2C_Read... [19:09:57]OFD Sender: No OFD packet to send [19:09:58]*** Cut start [19:09:58]*** Partial cut [19:09:58]*** CUTSNS_PIN = 1 [19:09:58]*** CUTSNS_PIN = 0 [19:09:58]*** Brake cut motor [19:09:58]Read from MH i2c: 01 [19:09:58]MH_I2C_Read... [19:09:58]*** Stop cut motor [19:09:58]*** Cut end [19:09:58]Read from MH i2c: 01 07 00 [19:09:58]MH_I2C_Read... [19:09:58]Read from MH i2c: 01 07 00 FB 2F 00 00 00 00 00 FF 0F 3F [19:09:58]process_action close_receipt done [19:09:58]requested_data is exist [19:09:58]produce_requested_data [19:09:58]requested_item fm.sn is exist - process it [19:09:58]wFMCommunicate request_size=4 [19:09:58]MH_SAM_APDU [19:09:58]CAPDU: 80 11 00 00 [19:09:58]Write to MH i2c: E2 08 00 FC 2F 80 11 00 00 00 00 00 00 A5 [19:09:58]Write i2c OK [19:09:58]MH_I2C_Read... [19:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:58]Read from MH i2c: E2 [19:09:58]MH_I2C_Read... [19:09:58]Read from MH i2c: E2 17 00 [19:09:58]MH_I2C_Read... [19:09:58]Read from MH i2c: E2 17 00 FC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F8 [19:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:09:58]wFMCommunicate OK [19:09:58]requested_item fd.num is exist - process it [19:09:58]SAM_PROTO_GetFieldsCounters [19:09:58]wFMCommunicate request_size=4 [19:09:58]MH_SAM_APDU [19:09:58]CAPDU: 80 13 00 00 [19:09:58]Write to MH i2c: E2 08 00 FD 2F 80 13 00 00 00 00 00 00 A8 [19:09:58]Write i2c OK [19:09:58]MH_I2C_Read... [19:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:58]Read from MH i2c: E2 [19:09:58]MH_I2C_Read... [19:09:58]Read from MH i2c: E2 62 00 [19:09:58]MH_I2C_Read... [19:09:58]Read from MH i2c: E2 62 00 FD 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [19:09:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:58]wFMCommunicate OK [19:09:58]SAM_PROTO_GetFieldsCounters done [19:09:58]requested_item shift.num is exist - process it [19:09:58]requested_item shift.opened is exist - process it [19:09:58]req_shift_opened [19:09:58]FM_GetShiftState [19:09:58]SAM_PROTO_GetShiftState [19:09:58]wFMCommunicate request_size=4 [19:09:58]MH_SAM_APDU [19:09:58]CAPDU: 80 13 01 00 [19:09:58]Write to MH i2c: E2 08 00 FE 2F 80 13 01 00 00 00 00 00 AA [19:09:58]Write i2c OK [19:09:58]MH_I2C_Read... [19:09:58]Read from MH i2c: E2 [19:09:58]MH_I2C_Read... [19:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:58]Read from MH i2c: E2 0E 00 [19:09:58]MH_I2C_Read... [19:09:58]Read from MH i2c: E2 0E 00 FE 2F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6D [19:09:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:09:58]wFMCommunicate OK [19:09:58]SAM_PROTO_GetShiftState done [19:09:58]FM_GetShiftState done [19:09:58]req_shift_opened done [19:09:58]requested_item shift.open_date is exist - process it [19:09:58]req_shift_open_date [19:09:58]req_shift_open_date done [19:09:58]produce_requested_data done [19:09:58]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148968,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:09:58]process_action_free close_receipt [19:09:58]json_value_free [19:09:58]json_value_free done [19:09:58]process_json_proto returns [19:09:58]Send response to host [19:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148968,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:09:58]free response buf [19:09:58]execute_script done [19:09:58]execute_script returns [19:09:58]free content buf [19:09:58]Sock 7.Close socket [19:09:58]Sock 7.Thread stoped [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]accept exits with 9 [19:10:52]New connection [19:10:52]New thread 3067407716 created [19:10:52]Thread 3067264356 joined [19:10:52]Waiting for new connection... [19:10:52] Sock 9.Parse request [19:10:52]Sock 9.Check first char [19:10:52]Sock 9.First char is OK [19:10:52]request: POST /json_proto HTTP/1.0 [19:10:52]Method: POST [19:10:52]URL: /json_proto [19:10:52]Method is POST - this is cgi request [19:10:52]url: /json_proto [19:10:52]query_string will be loaded in cgi processing [19:10:52]execute_cgi json_proto POST (null) [19:10:52]execute_cgi path=json_proto method=POST [19:10:52]POST find Content-Length [19:10:52]Host: 172.17.38.4:8080 [19:10:52]Content-Length: 790 [19:10:52]Content-Type: application/json [19:10:52] [19:10:52]POST finish read [19:10:52]Found Content-Length = 790 [19:10:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:52]execute_script... [19: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)979901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:52]POST & json_proto [19:10:52]process_json_proto [19:10:52]json parsed OK: [19:10:52]protocol is kg_v1.0 [19:10:52]action value=close_receipt [19:10:52]process_action close_receipt [19:10:52]cmd_close_receipt [19:10:52]MH_GetDate [19:10:52]Write to MH i2c: F0 00 00 FF 2F 1D [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: F0 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: F0 09 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: F0 09 00 FF 2F 00 BE 66 5F 66 CC 51 87 64 17 [19:10:52]GetLastDocTimeStamp 1717528196 [19:10:52]current date 1717528254 [19:10:52]FM_GetShiftState [19:10:52]SAM_PROTO_GetShiftState [19:10:52]wFMCommunicate request_size=4 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 13 01 00 [19:10:52]Write to MH i2c: E2 08 00 00 30 80 13 01 00 00 00 00 00 AD [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 0E 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 0E 00 00 30 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 70 [19:10:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:10:52]wFMCommunicate OK [19:10:52]SAM_PROTO_GetShiftState done [19:10:52]FM_GetShiftState done [19:10:52]opened in 1717460629 [19:10:52]opened+sec_in_day 1717547029 [19:10:52]quantity*price = 20003 [19:10:52]sum+1 = 20004 [19:10:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 308 04.06.2024 19:10 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148969 ФПД: 95648767848676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T191054&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148969&fm=95648767848676&tin=02508201610067®Number=0000000000092720&sum=20003 [19:10:53]StoreToDocumentArchive [19:10:53]shift 368 fd 148969 [19:10:53]save to /storage/0368/doc_00148969 [19:10:53]save last doc name /storage/0368/doc_00148969 to /storage/kkm_last_doc_name [19:10:53]save OK [19:10:53]Clear old archive folders... [19:10:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:53]tlvbuf is 0047B0A0 [19:10:53]SAM_PROTO_ClearQueue [19:10:53]wFMCommunicate request_size=4 [19:10:53]MH_SAM_APDU [19:10:53]CAPDU: 80 09 00 00 [19:10:53]Write to MH i2c: E2 08 00 0D 30 80 09 00 00 00 00 00 00 AF [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:53]Read from MH i2c: E2 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 0D 30 00 90 00 B1 [19:10:53]RAPDU: 90 00 [19:10:53]wFMCommunicate OK [19:10:53]SAM_PROTO_ClearQueue done [19:10:53]KKMCreateOFDPacket [19:10:53]OFDProtocolAddRootSTLVToBuf [19:10:53]FM_MakeSignedData [19:10:53]FM_MakeSignedData [19:10:53]SAM_PROTO_SignData [19:10:53]wFMCommunicate request_size=4 [19:10:53]MH_SAM_APDU [19:10:53]CAPDU: 80 0D 01 02 [19:10:53]Write to MH i2c: E2 08 00 0E 30 80 0D 01 02 00 00 00 00 B7 [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:53]Read from MH i2c: E2 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 0E 30 00 90 00 B2 [19:10:53]RAPDU: 90 00 [19:10:53]wFMCommunicate OK [19:10:53]wFMCommunicate request_size=255 [19:10:53]MH_SAM_APDU [19: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 BE 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E9 45 02 00 35 04 06 00 56 [19:10:53]Write to MH i2c: E2 02 01 0F 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 BE 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E9 45 02 00 35 04 06 00 56 00 00 1E [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:53]Read from MH i2c: E2 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 0F 30 00 90 00 B3 [19:10:53]RAPDU: 90 00 [19:10:53]wFMCommunicate OK [19:10:53]wFMCommunicate request_size=10 [19:10:53]MH_SAM_APDU [19:10:53]CAPDU: 80 0D 02 02 05 FD F6 D4 B0 E4 [19:10:53]Write to MH i2c: E2 0D 00 10 30 80 0D 02 02 05 00 FD F6 D4 B0 E4 00 00 1F [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:53]Read from MH i2c: E2 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 03 00 10 30 00 90 00 B4 [19:10:53]RAPDU: 90 00 [19:10:53]wFMCommunicate OK [19:10:53]wFMCommunicate request_size=4 [19:10:53]MH_SAM_APDU [19:10:53]CAPDU: 80 0D 03 02 [19:10:53]Write to MH i2c: E2 08 00 11 30 80 0D 03 02 00 00 00 00 BC [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:53]Read from MH i2c: E2 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 0B 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 0B 00 11 30 00 D0 85 CC 42 22 39 BE 81 90 00 BA [19:10:53]RAPDU: D0 85 CC 42 22 39 BE 81 90 00 [19:10:53]wFMCommunicate OK [19:10:53]SAM_PROTO_SignData done [19:10:53]FM_MakeSignedData done [19:10:53]CreateOFDProtocolMessage [19:10:53]wFMCommunicate request_size=4 [19:10:53]MH_SAM_APDU [19:10:53]CAPDU: 80 11 00 00 [19:10:53]Write to MH i2c: E2 08 00 12 30 80 11 00 00 00 00 00 00 BC [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:53]Read from MH i2c: E2 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 17 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 17 00 12 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0F [19:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:10:53]wFMCommunicate OK [19:10:53]CreateOFDProtocolMessage done [19:10:53]OFDSenderStorePacket 148969 [19:10:53]StoreOFDPacket docnum=148969 [19:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 49 56 07 01 BE BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 BE 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E9 45 02 00 35 04 06 00 56 FD F6 D4 B0 E4 D0 85 CC 42 22 39 BE 81 [19:10:53]CheckFolder [19:10:53]dirname=/storage/ofd_packets [19:10:53]CheckFolder done [19:10:53]ProducePacketName [19:10:53]name=ofd_packets/00148969 [19:10:53]NVStorageSaveData ofd_packets/00148969 [19:10:53]File name is /storage/ofd_packets/00148969 [19:10:53]Write 301 bytes [19:10:53]NVStorageSaveData done [19:10:53]OFDSenderStorePacket done [19:10:53]KKMCreateOFDPacket done [19:10:53]NVStorageSaveData kkm_last_timestamp [19:10:53]File name is /storage/kkm_last_timestamp [19:10:53]Write 4 bytes [19:10:53]NVStorageSaveData done [19:10:53]ExternCall_PrintAddStr [19:10:53]wPrintStart [19:10:53]Write to MH i2c: 01 00 00 13 30 43 [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: 01 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: 01 07 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: 01 07 00 13 30 00 00 00 00 00 FF 0F 58 [19:10:53]RasterBufferAndPrint [19:10:53]line Счет N : (1)979901 [19:10:53]line ИНН: 02508201610067 [19:10:53]line Контрольно-Кассовый Чек [19:10:53]line ПРОДАЖА [19:10:53]line ТРК (МРК, ГНК) : 12 [19:10:53]line Товар: 2710124130 [19:10:53]line Аи-92-К-5 [19:10:53]line 2.990 * 66.90 [19:10:53]line = 200.03 [19:10:53]line НДС 12% НСП 1% [19:10:53]line > о реализуемом товаре [19:10:53]line ИТОГО: 200.03 [19:10:53]line НСП 1% : 1.77 [19:10:53]line НДС 12% : 21.24 [19:10:53]line Наличными: 0.00 [19:10:53]line Безнал.: 200.03 [19:10:53]line Место: АЗС № 68 "Партнер Нефть" [19:10:53]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:10:53]line СНО: Общий режим [19:10:53]line Чек 308 04.06.2024 19:10 [19:10:53]line Смена: 368 ФФД: 1.0 [19:10:53]line ЗНМ: 0300000035 [19:10:53]line РНМ: 0000000000092720 [19:10:53]line Версия ККМ: 001 [19:10:53]line Платежная система: KICB Банк [19:10:53]line ФМ: 0000000000875057 [19:10:53]line ФД: 148969 [19:10:53]line ФПД: 95648767848676 [19:10:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T191054&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148969&fm=95648767848676&tin=02508201610067®Number=0000000000092720&sum=20003 [19:10:54]written 0, free lines is 4095 [19:10:54]OFD Sender: Processing packet 148969 [packets to send 100, broken 99] [19:10:54]ProducePacketName [19:10:54]name=ofd_packets/00148969 [19:10:54]OFD Sender: To server: pG, [19:10:54]CommunicateWithHost lk.salyk.kg:30040 [19:10:54]ConnectInit lk.salyk.kg [19:10:54]Connected sock=10 [19:10:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 49 56 07 01 BE BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 BE 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 E9 45 02 00 35 04 06 00 56 FD F6 D4 B0 E4 D0 85 CC 42 22 39 BE 81 [19:10:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 84 2A 47 00 74 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 38 37 35 30 35 37 10 04 04 00 E9 45 02 00 F4 03 04 00 E1 0D 5F 66 B6 04 01 00 00 E0 58 44 DC E4 9D 9E 24 [19:10:54]CommunicateWithHost err = 0 [19:10:54]CheckOFDResponse [19:10:54]1017 (14) - 77093643461234 [19:10:54]1041 (16) - 0000000000875057 [19:10:54]1040 (4) - 148969 [19:10:54]1012 (4) - 04.06.2024 12:51 [19:10:54]1206 (1) - 0 [19:10:54]OFD Sender: Remove packet 148969 [19:10:54]ProducePacketName [19:10:54]name=ofd_packets/00148969 [19:10:54]NVStorageDeleteData [19:10:54]Write to MH i2c: 01 00 00 3D 30 6D [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: 01 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: 01 07 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: 01 07 00 3D 30 00 00 00 00 00 A5 0C 25 [19:10:54]RasterBufferAndPrint [19:10:54]line [19:10:54]line [19:10:54]line [19:10:54]line [19:10:54]line [19:10:54]written 0, free lines is 3242 [19:10:54]MH_Cut [19:10:54]Write to MH i2c: D1 01 00 44 30 01 46 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: D1 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: D1 01 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: D1 01 00 44 30 00 45 [19:10:54]Write to MH i2c: 01 00 00 45 30 75 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:55]OFD Sender: No OFD packet to send [19:10:55]*** Cut start [19:10:55]*** Partial cut [19:10:55]*** CUTSNS_PIN = 1 [19:10:55]*** CUTSNS_PIN = 0 [19:10:56]*** Brake cut motor [19:10:56]Read from MH i2c: 01 [19:10:56]MH_I2C_Read... [19:10:56]*** Stop cut motor [19:10:56]*** Cut end [19:10:56]Read from MH i2c: 01 07 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 07 00 45 30 00 00 00 00 00 FF 0F 8A [19:10:56]process_action close_receipt done [19:10:56]requested_data is exist [19:10:56]produce_requested_data [19:10:56]requested_item fm.sn is exist - process it [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 11 00 00 [19:10:56]Write to MH i2c: E2 08 00 46 30 80 11 00 00 00 00 00 00 F0 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:56]Read from MH i2c: E2 17 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 17 00 46 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 43 [19:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:10:56]wFMCommunicate OK [19:10:56]requested_item fd.num is exist - process it [19:10:56]SAM_PROTO_GetFieldsCounters [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 13 00 00 [19:10:56]Write to MH i2c: E2 08 00 47 30 80 13 00 00 00 00 00 00 F3 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 62 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 62 00 47 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E9 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [19:10:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 E9 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:56]wFMCommunicate OK [19:10:56]SAM_PROTO_GetFieldsCounters done [19:10:56]requested_item shift.num is exist - process it [19:10:56]requested_item shift.opened is exist - process it [19:10:56]req_shift_opened [19:10:56]FM_GetShiftState [19:10:56]SAM_PROTO_GetShiftState [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 13 01 00 [19:10:56]Write to MH i2c: E2 08 00 48 30 80 13 01 00 00 00 00 00 F5 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 0E 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 0E 00 48 30 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B8 [19:10:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:10:56]wFMCommunicate OK [19:10:56]SAM_PROTO_GetShiftState done [19:10:56]FM_GetShiftState done [19:10:56]req_shift_opened done [19:10:56]requested_item shift.open_date is exist - process it [19:10:56]req_shift_open_date [19:10:56]req_shift_open_date done [19:10:56]produce_requested_data done [19:10:56]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148969,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:10:56]process_action_free close_receipt [19:10:56]json_value_free [19:10:56]json_value_free done [19:10:56]process_json_proto returns [19:10:56]Send response to host [19:10:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148969,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:10:56]free response buf [19:10:56]execute_script done [19:10:56]execute_script returns [19:10:56]free content buf [19:10:56]Sock 9.Close socket [19:10:56]Sock 9.Thread stoped [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:33]accept exits with 7 [19:11:33]New connection [19:11:33]New thread 3067264356 created [19:11:33]Thread 3067407716 joined [19:11:33]Waiting for new connection... [19:11:33] Sock 7.Parse request [19:11:33]Sock 7.Check first char [19:11:33]Sock 7.First char is OK [19:11:33]request: POST /json_proto HTTP/1.0 [19:11:33]Method: POST [19:11:33]URL: /json_proto [19:11:33]Method is POST - this is cgi request [19:11:33]url: /json_proto [19:11:33]query_string will be loaded in cgi processing [19:11:33]execute_cgi json_proto POST (null) [19:11:33]execute_cgi path=json_proto method=POST [19:11:33]POST find Content-Length [19:11:33]Host: 172.17.38.4:8080 [19:11:33]Content-Length: 677 [19:11:33]Content-Type: application/json [19:11:33] [19:11:33]POST finish read [19:11:33]Found Content-Length = 677 [19:11:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:33]execute_script... [19:11: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)979902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:33]POST & json_proto [19:11:33]process_json_proto [19:11:33]json parsed OK: [19:11:33]protocol is kg_v1.0 [19:11:33]action value=close_receipt [19:11:33]process_action close_receipt [19:11:33]cmd_close_receipt [19:11:33]MH_GetDate [19:11:33]Write to MH i2c: F0 00 00 49 30 68 [19:11:33]Write i2c OK [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: F0 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: F0 09 00 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: F0 09 00 49 30 00 E7 66 5F 66 CC 51 87 64 8B [19:11:33]GetLastDocTimeStamp 1717528254 [19:11:33]current date 1717528295 [19:11:33]FM_GetShiftState [19:11:33]SAM_PROTO_GetShiftState [19:11:33]wFMCommunicate request_size=4 [19:11:33]MH_SAM_APDU [19:11:33]CAPDU: 80 13 01 00 [19:11:33]Write to MH i2c: E2 08 00 4A 30 80 13 01 00 00 00 00 00 F7 [19:11:33]Write i2c OK [19:11:33]MH_I2C_Read... [19:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:33]Read from MH i2c: E2 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: E2 0E 00 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: E2 0E 00 4A 30 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BA [19:11:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:11:33]wFMCommunicate OK [19:11:33]SAM_PROTO_GetShiftState done [19:11:33]FM_GetShiftState done [19:11:33]opened in 1717460629 [19:11:33]opened+sec_in_day 1717547029 [19:11:33]quantity*price = 50041 [19:11:33]sum+1 = 50042 [19:11:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 309 04.06.2024 19:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148970 ФПД: 113461139726827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T191135&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148970&fm=113461139726827&tin=02508201610067®Number=0000000000092720&sum=50000 [19:11:34]StoreToDocumentArchive [19:11:34]shift 368 fd 148970 [19:11:34]save to /storage/0368/doc_00148970 [19:11:34]save last doc name /storage/0368/doc_00148970 to /storage/kkm_last_doc_name [19:11:34]save OK [19:11:34]Clear old archive folders... [19:11:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:34]tlvbuf is 0055CC80 [19:11:34]SAM_PROTO_ClearQueue [19:11:34]wFMCommunicate request_size=4 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 09 00 00 [19:11:34]Write to MH i2c: E2 08 00 57 30 80 09 00 00 00 00 00 00 F9 [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 03 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 03 00 57 30 00 90 00 FB [19:11:34]RAPDU: 90 00 [19:11:34]wFMCommunicate OK [19:11:34]SAM_PROTO_ClearQueue done [19:11:34]KKMCreateOFDPacket [19:11:34]OFDProtocolAddRootSTLVToBuf [19:11:34]FM_MakeSignedData [19:11:34]FM_MakeSignedData [19:11:34]SAM_PROTO_SignData [19:11:34]wFMCommunicate request_size=4 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 0D 01 02 [19:11:34]Write to MH i2c: E2 08 00 58 30 80 0D 01 02 00 00 00 00 01 [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 03 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 03 00 58 30 00 90 00 FC [19:11:34]RAPDU: 90 00 [19:11:34]wFMCommunicate OK [19:11:34]wFMCommunicate request_size=255 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 E7 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EA 45 02 00 35 04 06 00 67 [19:11:34]Write to MH i2c: E2 02 01 59 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 E7 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EA 45 02 00 35 04 06 00 67 00 00 DC [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 03 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 03 00 59 30 00 90 00 FD [19:11:34]RAPDU: 90 00 [19:11:34]wFMCommunicate OK [19:11:34]wFMCommunicate request_size=10 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 0D 02 02 05 31 3A ED E1 EB [19:11:34]Write to MH i2c: E2 0D 00 5A 30 80 0D 02 02 05 00 31 3A ED E1 EB 00 00 32 [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 03 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 03 00 5A 30 00 90 00 FE [19:11:34]RAPDU: 90 00 [19:11:34]wFMCommunicate OK [19:11:34]wFMCommunicate request_size=4 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 0D 03 02 [19:11:34]Write to MH i2c: E2 08 00 5B 30 80 0D 03 02 00 00 00 00 06 [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 0B 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 0B 00 5B 30 00 69 BE CD 6A 4E 9C 18 A2 90 00 09 [19:11:34]RAPDU: 69 BE CD 6A 4E 9C 18 A2 90 00 [19:11:34]wFMCommunicate OK [19:11:34]SAM_PROTO_SignData done [19:11:34]FM_MakeSignedData done [19:11:34]CreateOFDProtocolMessage [19:11:34]wFMCommunicate request_size=4 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 11 00 00 [19:11:34]Write to MH i2c: E2 08 00 5C 30 80 11 00 00 00 00 00 00 06 [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 17 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 17 00 5C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 59 [19:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:11:34]wFMCommunicate OK [19:11:34]CreateOFDProtocolMessage done [19:11:34]OFDSenderStorePacket 148970 [19:11:34]StoreOFDPacket docnum=148970 [19:11:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A5 D0 07 01 0B 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 E7 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EA 45 02 00 35 04 06 00 67 31 3A ED E1 EB 69 BE CD 6A 4E 9C 18 A2 [19:11:34]CheckFolder [19:11:34]dirname=/storage/ofd_packets [19:11:34]CheckFolder done [19:11:34]ProducePacketName [19:11:34]name=ofd_packets/00148970 [19:11:34]NVStorageSaveData ofd_packets/00148970 [19:11:34]File name is /storage/ofd_packets/00148970 [19:11:34]Write 301 bytes [19:11:34]NVStorageSaveData done [19:11:34]OFDSenderStorePacket done [19:11:34]KKMCreateOFDPacket done [19:11:34]NVStorageSaveData kkm_last_timestamp [19:11:34]File name is /storage/kkm_last_timestamp [19:11:34]Write 4 bytes [19:11:34]NVStorageSaveData done [19:11:34]ExternCall_PrintAddStr [19:11:34]wPrintStart [19:11:34]Write to MH i2c: 01 00 00 5D 30 8D [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: 01 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: 01 07 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: 01 07 00 5D 30 00 00 00 00 00 FF 0F A2 [19:11:34]RasterBufferAndPrint [19:11:34]line Счет N : (1)979902 [19:11:34]line ИНН: 02508201610067 [19:11:34]line Контрольно-Кассовый Чек [19:11:34]line ПРОДАЖА [19:11:34]line ТРК (МРК, ГНК) : 22 [19:11:34]line Товар: 2710124130 [19:11:34]line Аи-92-К-5 [19:11:34]line 7.480 * 66.90 [19:11:34]line = 500.41 [19:11:34]line НДС 12% НСП 1% [19:11:34]line > о реализуемом товаре [19:11:34]line ОКРУГЛЕНИЕ: -0.41 [19:11:34]line ИТОГО: 500.00 [19:11:34]line Внесено: 500.00 [19:11:34]line СДАЧА: 0.00 [19:11:34]line НСП 1% : 4.43 [19:11:34]line НДС 12% : 53.14 [19:11:34]line Наличными: 500.00 [19:11:34]line Безнал.: 0.00 [19:11:34]line Место: АЗС № 68 "Партнер Нефть" [19:11:34]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:11:34]line СНО: Общий режим [19:11:34]line Чек 309 04.06.2024 19:11 [19:11:34]line Смена: 368 ФФД: 1.0 [19:11:34]line ЗНМ: 0300000035 [19:11:34]line РНМ: 0000000000092720 [19:11:34]line Версия ККМ: 001 [19:11:34]line ФМ: 0000000000875057 [19:11:34]line ФД: 148970 [19:11:34]line ФПД: 113461139726827 [19:11:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T191135&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148970&fm=113461139726827&tin=02508201610067®Number=0000000000092720&sum=50000 [19:11:35]OFD Sender: Processing packet 148970 [packets to send 100, broken 99] [19:11:35]ProducePacketName [19:11:35]name=ofd_packets/00148970 [19:11:35]OFD Sender: To server: pG, [19:11:35]CommunicateWithHost lk.salyk.kg:30040 [19:11:35]ConnectInit lk.salyk.kg [19:11:35]written 0, free lines is 4095 [19:11:35]Connected sock=10 [19:11:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A5 D0 07 01 0B 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 E7 66 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EA 45 02 00 35 04 06 00 67 31 3A ED E1 EB 69 BE CD 6A 4E 9C 18 A2 [19:11:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C1 D4 47 00 89 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EA 45 02 00 F4 03 04 00 0A 0E 5F 66 B6 04 01 00 00 67 17 3B 4A D4 5F 69 53 [19:11:35]CommunicateWithHost err = 0 [19:11:35]CheckOFDResponse [19:11:35]1017 (14) - 77093643461234 [19:11:35]1041 (16) - 0000000000875057 [19:11:35]1040 (4) - 148970 [19:11:35]1012 (4) - 04.06.2024 12:52 [19:11:35]1206 (1) - 0 [19:11:35]OFD Sender: Remove packet 148970 [19:11:35]ProducePacketName [19:11:35]name=ofd_packets/00148970 [19:11:35]NVStorageDeleteData [19:11:35]Write to MH i2c: 01 00 00 88 30 B8 [19:11:35]Write i2c OK [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: 01 [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: 01 07 00 [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: 01 07 00 88 30 00 00 00 00 00 92 0C 5D [19:11:35]RasterBufferAndPrint [19:11:35]line [19:11:35]line [19:11:35]line [19:11:35]line [19:11:35]line [19:11:35]written 0, free lines is 3222 [19:11:35]MH_Cut [19:11:35]Write to MH i2c: D1 01 00 8F 30 01 91 [19:11:35]Write i2c OK [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: D1 [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: D1 01 00 [19:11:35]MH_I2C_Read... [19:11:35]Read from MH i2c: D1 01 00 8F 30 00 90 [19:11:35]Write to MH i2c: 01 00 00 90 30 C0 [19:11:35]Write i2c OK [19:11:35]MH_I2C_Read... [19:11:36]OFD Sender: No OFD packet to send [19:11:36]*** Cut start [19:11:36]*** Partial cut [19:11:36]*** CUTSNS_PIN = 1 [19:11:36]*** CUTSNS_PIN = 0 [19:11:37]*** Brake cut motor [19:11:37]Read from MH i2c: 01 [19:11:37]MH_I2C_Read... [19:11:37]*** Stop cut motor [19:11:37]*** Cut end [19:11:37]Read from MH i2c: 01 07 00 [19:11:37]MH_I2C_Read... [19:11:37]Read from MH i2c: 01 07 00 90 30 00 00 00 00 00 FF 0F D5 [19:11:37]process_action close_receipt done [19:11:37]requested_data is exist [19:11:37]produce_requested_data [19:11:37]requested_item fm.sn is exist - process it [19:11:37]wFMCommunicate request_size=4 [19:11:37]MH_SAM_APDU [19:11:37]CAPDU: 80 11 00 00 [19:11:37]Write to MH i2c: E2 08 00 91 30 80 11 00 00 00 00 00 00 3B [19:11:37]Write i2c OK [19:11:37]MH_I2C_Read... [19:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:37]Read from MH i2c: E2 [19:11:37]MH_I2C_Read... [19:11:37]Read from MH i2c: E2 17 00 [19:11:37]MH_I2C_Read... [19:11:37]Read from MH i2c: E2 17 00 91 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8E [19:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:11:37]wFMCommunicate OK [19:11:37]requested_item fd.num is exist - process it [19:11:37]SAM_PROTO_GetFieldsCounters [19:11:37]wFMCommunicate request_size=4 [19:11:37]MH_SAM_APDU [19:11:37]CAPDU: 80 13 00 00 [19:11:37]Write to MH i2c: E2 08 00 92 30 80 13 00 00 00 00 00 00 3E [19:11:37]Write i2c OK [19:11:37]MH_I2C_Read... [19:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:37]Read from MH i2c: E2 [19:11:37]MH_I2C_Read... [19:11:37]Read from MH i2c: E2 62 00 [19:11:37]MH_I2C_Read... [19:11:37]Read from MH i2c: E2 62 00 92 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EA 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [19:11:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EA 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:37]wFMCommunicate OK [19:11:37]SAM_PROTO_GetFieldsCounters done [19:11:37]requested_item shift.num is exist - process it [19:11:37]requested_item shift.opened is exist - process it [19:11:37]req_shift_opened [19:11:37]FM_GetShiftState [19:11:37]SAM_PROTO_GetShiftState [19:11:37]wFMCommunicate request_size=4 [19:11:37]MH_SAM_APDU [19:11:37]CAPDU: 80 13 01 00 [19:11:37]Write to MH i2c: E2 08 00 93 30 80 13 01 00 00 00 00 00 40 [19:11:37]Write i2c OK [19:11:37]MH_I2C_Read... [19:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:37]Read from MH i2c: E2 [19:11:37]MH_I2C_Read... [19:11:37]Read from MH i2c: E2 0E 00 [19:11:37]MH_I2C_Read... [19:11:37]Read from MH i2c: E2 0E 00 93 30 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 03 [19:11:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:11:37]wFMCommunicate OK [19:11:37]SAM_PROTO_GetShiftState done [19:11:37]FM_GetShiftState done [19:11:37]req_shift_opened done [19:11:37]requested_item shift.open_date is exist - process it [19:11:37]req_shift_open_date [19:11:37]req_shift_open_date done [19:11:37]produce_requested_data done [19:11:37]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148970,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:11:37]process_action_free close_receipt [19:11:37]json_value_free [19:11:37]json_value_free done [19:11:37]process_json_proto returns [19:11:37]Send response to host [19:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148970,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:11:37]free response buf [19:11:37]execute_script done [19:11:37]execute_script returns [19:11:37]free content buf [19:11:37]Sock 7.Close socket [19:11:37]Sock 7.Thread stoped [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:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:10]accept exits with 9 [19:18:10]New connection [19:18:10]New thread 3067407716 created [19:18:10]Thread 3067264356 joined [19:18:10]Waiting for new connection... [19:18:10] Sock 9.Parse request [19:18:10]Sock 9.Check first char [19:18:10]Sock 9.First char is OK [19:18:10]request: POST /json_proto HTTP/1.0 [19:18:10]Method: POST [19:18:10]URL: /json_proto [19:18:10]Method is POST - this is cgi request [19:18:10]url: /json_proto [19:18:10]query_string will be loaded in cgi processing [19:18:10]execute_cgi json_proto POST (null) [19:18:10]execute_cgi path=json_proto method=POST [19:18:10]POST find Content-Length [19:18:10]Host: 172.17.38.4:8080 [19:18:10]Content-Length: 677 [19:18:10]Content-Type: application/json [19:18:10] [19:18:10]POST finish read [19:18:10]Found Content-Length = 677 [19:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:10]execute_script... [19:18: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)979903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:10]POST & json_proto [19:18:10]process_json_proto [19:18:10]json parsed OK: [19:18:10]protocol is kg_v1.0 [19:18:10]action value=close_receipt [19:18:10]process_action close_receipt [19:18:10]cmd_close_receipt [19:18:10]MH_GetDate [19:18:10]Write to MH i2c: F0 00 00 94 30 B3 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: F0 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: F0 09 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: F0 09 00 94 30 00 74 68 5F 66 CC 51 87 64 65 [19:18:10]GetLastDocTimeStamp 1717528295 [19:18:10]current date 1717528692 [19:18:10]FM_GetShiftState [19:18:10]SAM_PROTO_GetShiftState [19:18:10]wFMCommunicate request_size=4 [19:18:10]MH_SAM_APDU [19:18:10]CAPDU: 80 13 01 00 [19:18:10]Write to MH i2c: E2 08 00 95 30 80 13 01 00 00 00 00 00 42 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 0E 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 0E 00 95 30 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 05 [19:18:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:18:10]wFMCommunicate OK [19:18:10]SAM_PROTO_GetShiftState done [19:18:10]FM_GetShiftState done [19:18:10]opened in 1717460629 [19:18:10]opened+sec_in_day 1717547029 [19:18:10]quantity*price = 20003 [19:18:10]sum+1 = 20004 [19:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 310 04.06.2024 19:18 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148971 ФПД: 228347304136424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T191813&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148971&fm=228347304136424&tin=02508201610067®Number=0000000000092720&sum=20000 [19:18:11]StoreToDocumentArchive [19:18:11]shift 368 fd 148971 [19:18:11]save to /storage/0368/doc_00148971 [19:18:11]save last doc name /storage/0368/doc_00148971 to /storage/kkm_last_doc_name [19:18:11]save OK [19:18:11]Clear old archive folders... [19:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:11]tlvbuf is 00494A10 [19:18:11]SAM_PROTO_ClearQueue [19:18:11]wFMCommunicate request_size=4 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 09 00 00 [19:18:11]Write to MH i2c: E2 08 00 A2 30 80 09 00 00 00 00 00 00 44 [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 A2 30 00 90 00 46 [19:18:11]RAPDU: 90 00 [19:18:11]wFMCommunicate OK [19:18:11]SAM_PROTO_ClearQueue done [19:18:11]KKMCreateOFDPacket [19:18:11]OFDProtocolAddRootSTLVToBuf [19:18:11]FM_MakeSignedData [19:18:11]FM_MakeSignedData [19:18:11]SAM_PROTO_SignData [19:18:11]wFMCommunicate request_size=4 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 0D 01 02 [19:18:11]Write to MH i2c: E2 08 00 A3 30 80 0D 01 02 00 00 00 00 4C [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 A3 30 00 90 00 47 [19:18:11]RAPDU: 90 00 [19:18:11]wFMCommunicate OK [19:18:11]wFMCommunicate request_size=255 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 36 01 00 00 F4 03 04 00 75 68 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EB 45 02 00 35 04 06 00 CF [19:18:11]Write to MH i2c: E2 02 01 A4 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 75 68 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EB 45 02 00 35 04 06 00 CF 00 00 E3 [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:12]Read from MH i2c: E2 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 03 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 03 00 A4 30 00 90 00 48 [19:18:12]RAPDU: 90 00 [19:18:12]wFMCommunicate OK [19:18:12]wFMCommunicate request_size=10 [19:18:12]MH_SAM_APDU [19:18:12]CAPDU: 80 0D 02 02 05 AE 3F F2 CE E8 [19:18:12]Write to MH i2c: E2 0D 00 A5 30 80 0D 02 02 05 00 AE 3F F2 CE E8 00 00 EE [19:18:12]Write i2c OK [19:18:12]MH_I2C_Read... [19:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:12]Read from MH i2c: E2 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 03 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 03 00 A5 30 00 90 00 49 [19:18:12]RAPDU: 90 00 [19:18:12]wFMCommunicate OK [19:18:12]wFMCommunicate request_size=4 [19:18:12]MH_SAM_APDU [19:18:12]CAPDU: 80 0D 03 02 [19:18:12]Write to MH i2c: E2 08 00 A6 30 80 0D 03 02 00 00 00 00 51 [19:18:12]Write i2c OK [19:18:12]MH_I2C_Read... [19:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:12]Read from MH i2c: E2 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 0B 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 0B 00 A6 30 00 D5 80 E2 CD F5 A5 ED 4E 90 00 2B [19:18:12]RAPDU: D5 80 E2 CD F5 A5 ED 4E 90 00 [19:18:12]wFMCommunicate OK [19:18:12]SAM_PROTO_SignData done [19:18:12]FM_MakeSignedData done [19:18:12]CreateOFDProtocolMessage [19:18:12]wFMCommunicate request_size=4 [19:18:12]MH_SAM_APDU [19:18:12]CAPDU: 80 11 00 00 [19:18:12]Write to MH i2c: E2 08 00 A7 30 80 11 00 00 00 00 00 00 51 [19:18:12]Write i2c OK [19:18:12]MH_I2C_Read... [19:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:12]Read from MH i2c: E2 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 17 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 17 00 A7 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A4 [19:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:18:12]wFMCommunicate OK [19:18:12]CreateOFDProtocolMessage done [19:18:12]OFDSenderStorePacket 148971 [19:18:12]StoreOFDPacket docnum=148971 [19:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AD 00 07 01 A0 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 36 01 00 00 F4 03 04 00 75 68 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EB 45 02 00 35 04 06 00 CF AE 3F F2 CE E8 D5 80 E2 CD F5 A5 ED 4E [19:18:12]CheckFolder [19:18:12]dirname=/storage/ofd_packets [19:18:12]CheckFolder done [19:18:12]ProducePacketName [19:18:12]name=ofd_packets/00148971 [19:18:12]NVStorageSaveData ofd_packets/00148971 [19:18:12]File name is /storage/ofd_packets/00148971 [19:18:12]Write 301 bytes [19:18:12]NVStorageSaveData done [19:18:12]OFDSenderStorePacket done [19:18:12]KKMCreateOFDPacket done [19:18:12]NVStorageSaveData kkm_last_timestamp [19:18:12]File name is /storage/kkm_last_timestamp [19:18:12]Write 4 bytes [19:18:12]NVStorageSaveData done [19:18:12]OFD Sender: Processing packet 148971 [packets to send 100, broken 99] [19:18:12]ProducePacketName [19:18:12]name=ofd_packets/00148971 [19:18:12]OFD Sender: To server: pG, [19:18:12]CommunicateWithHost lk.salyk.kg:30040 [19:18:12]ConnectInit lk.salyk.kg [19:18:12]ExternCall_PrintAddStr [19:18:12]wPrintStart [19:18:12]Write to MH i2c: 01 00 00 A8 30 D8 [19:18:12]Write i2c OK [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: 01 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: 01 07 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: 01 07 00 A8 30 00 00 00 00 00 FF 0F ED [19:18:12]RasterBufferAndPrint [19:18:12]line Счет N : (1)979903 [19:18:12]line ИНН: 02508201610067 [19:18:12]line Контрольно-Кассовый Чек [19:18:12]line ПРОДАЖА [19:18:12]line ТРК (МРК, ГНК) : 31 [19:18:12]line Товар: 2710124130 [19:18:12]line Аи-92-К-5 [19:18:12]line 2.990 * 66.90 [19:18:12]line = 200.03 [19:18:12]line НДС 12% НСП 1% [19:18:12]line > о реализуемом товаре [19:18:12]line ОКРУГЛЕНИЕ: -0.03 [19:18:12]line ИТОГО: 200.00 [19:18:12]line Внесено: 200.00 [19:18:12]line СДАЧА: 0.00 [19:18:12]line НСП 1% : 1.77 [19:18:12]line НДС 12% : 21.24 [19:18:12]line Наличными: 200.00 [19:18:12]line Безнал.: 0.00 [19:18:12]line Место: АЗС № 68 "Партнер Нефть" [19:18:12]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:18:12]line СНО: Общий режим [19:18:12]line Чек 310 04.06.2024 19:18 [19:18:12]line Смена: 368 ФФД: 1.0 [19:18:12]line ЗНМ: 0300000035 [19:18:12]line РНМ: 0000000000092720 [19:18:12]line Версия ККМ: 001 [19:18:12]line ФМ: 0000000000875057 [19:18:12]line ФД: 148971 [19:18:12]line ФПД: 228347304136424 [19:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T191813&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148971&fm=228347304136424&tin=02508201610067®Number=0000000000092720&sum=20000 [19:18:12]Connected sock=11 [19:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AD 00 07 01 A0 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 36 01 00 00 F4 03 04 00 75 68 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EB 45 02 00 35 04 06 00 CF AE 3F F2 CE E8 D5 80 E2 CD F5 A5 ED 4E [19:18:12]written 0, free lines is 4095 [19:18:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 54 14 47 00 4D C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EB 45 02 00 F4 03 04 00 97 0F 5F 66 B6 04 01 00 00 8E 07 7B BB 68 A6 6E 1B [19:18:12]CommunicateWithHost err = 0 [19:18:12]CheckOFDResponse [19:18:12]1017 (14) - 77093643461234 [19:18:12]1041 (16) - 0000000000875057 [19:18:12]1040 (4) - 148971 [19:18:12]1012 (4) - 04.06.2024 12:59 [19:18:12]1206 (1) - 0 [19:18:12]OFD Sender: Remove packet 148971 [19:18:12]ProducePacketName [19:18:12]name=ofd_packets/00148971 [19:18:12]NVStorageDeleteData [19:18:13]Write to MH i2c: 01 00 00 D3 30 03 [19:18:13]Write i2c OK [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: 01 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: 01 07 00 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: 01 07 00 D3 30 00 00 00 00 00 87 0C 9D [19:18:13]RasterBufferAndPrint [19:18:13]line [19:18:13]line [19:18:13]line [19:18:13]line [19:18:13]line [19:18:13]written 0, free lines is 3211 [19:18:13]MH_Cut [19:18:13]Write to MH i2c: D1 01 00 DA 30 01 DC [19:18:13]Write i2c OK [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: D1 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: D1 01 00 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: D1 01 00 DA 30 00 DB [19:18:13]Write to MH i2c: 01 00 00 DB 30 0B [19:18:13]Write i2c OK [19:18:13]MH_I2C_Read... [19:18:13]OFD Sender: No OFD packet to send [19:18:14]*** Cut start [19:18:14]*** Partial cut [19:18:14]*** CUTSNS_PIN = 1 [19:18:14]*** CUTSNS_PIN = 0 [19:18:14]*** Brake cut motor [19:18:14]Read from MH i2c: 01 [19:18:14]MH_I2C_Read... [19:18:14]*** Stop cut motor [19:18:14]*** Cut end [19:18:14]Read from MH i2c: 01 07 00 [19:18:14]MH_I2C_Read... [19:18:14]Read from MH i2c: 01 07 00 DB 30 00 00 00 00 00 FF 0F 20 [19:18:14]process_action close_receipt done [19:18:14]requested_data is exist [19:18:14]produce_requested_data [19:18:14]requested_item fm.sn is exist - process it [19:18:14]wFMCommunicate request_size=4 [19:18:14]MH_SAM_APDU [19:18:14]CAPDU: 80 11 00 00 [19:18:14]Write to MH i2c: E2 08 00 DC 30 80 11 00 00 00 00 00 00 86 [19:18:14]Write i2c OK [19:18:14]MH_I2C_Read... [19:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:14]Read from MH i2c: E2 [19:18:14]MH_I2C_Read... [19:18:14]Read from MH i2c: E2 17 00 [19:18:14]MH_I2C_Read... [19:18:14]Read from MH i2c: E2 17 00 DC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D9 [19:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:18:14]wFMCommunicate OK [19:18:14]requested_item fd.num is exist - process it [19:18:14]SAM_PROTO_GetFieldsCounters [19:18:14]wFMCommunicate request_size=4 [19:18:14]MH_SAM_APDU [19:18:14]CAPDU: 80 13 00 00 [19:18:14]Write to MH i2c: E2 08 00 DD 30 80 13 00 00 00 00 00 00 89 [19:18:14]Write i2c OK [19:18:14]MH_I2C_Read... [19:18:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:15]Read from MH i2c: E2 [19:18:15]MH_I2C_Read... [19:18:15]Read from MH i2c: E2 62 00 [19:18:15]MH_I2C_Read... [19:18:15]Read from MH i2c: E2 62 00 DD 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EB 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [19:18:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EB 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:15]wFMCommunicate OK [19:18:15]SAM_PROTO_GetFieldsCounters done [19:18:15]requested_item shift.num is exist - process it [19:18:15]requested_item shift.opened is exist - process it [19:18:15]req_shift_opened [19:18:15]FM_GetShiftState [19:18:15]SAM_PROTO_GetShiftState [19:18:15]wFMCommunicate request_size=4 [19:18:15]MH_SAM_APDU [19:18:15]CAPDU: 80 13 01 00 [19:18:15]Write to MH i2c: E2 08 00 DE 30 80 13 01 00 00 00 00 00 8B [19:18:15]Write i2c OK [19:18:15]MH_I2C_Read... [19:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:15]Read from MH i2c: E2 [19:18:15]MH_I2C_Read... [19:18:15]Read from MH i2c: E2 0E 00 [19:18:15]MH_I2C_Read... [19:18:15]Read from MH i2c: E2 0E 00 DE 30 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4E [19:18:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:18:15]wFMCommunicate OK [19:18:15]SAM_PROTO_GetShiftState done [19:18:15]FM_GetShiftState done [19:18:15]req_shift_opened done [19:18:15]requested_item shift.open_date is exist - process it [19:18:15]req_shift_open_date [19:18:15]req_shift_open_date done [19:18:15]produce_requested_data done [19:18:15]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148971,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:18:15]process_action_free close_receipt [19:18:15]json_value_free [19:18:15]json_value_free done [19:18:15]process_json_proto returns [19:18:15]Send response to host [19:18:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148971,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:18:15]free response buf [19:18:15]execute_script done [19:18:15]execute_script returns [19:18:15]free content buf [19:18:15]Sock 9.Close socket [19:18:15]Sock 9.Thread stoped [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:35]accept exits with 7 [19:20:35]New connection [19:20:35]New thread 3067264356 created [19:20:35]Thread 3067407716 joined [19:20:35]Waiting for new connection... [19:20:35] Sock 7.Parse request [19:20:35]Sock 7.Check first char [19:20:35]Sock 7.First char is OK [19:20:35]request: POST /json_proto HTTP/1.0 [19:20:35]Method: POST [19:20:35]URL: /json_proto [19:20:35]Method is POST - this is cgi request [19:20:35]url: /json_proto [19:20:35]query_string will be loaded in cgi processing [19:20:35]execute_cgi json_proto POST (null) [19:20:35]execute_cgi path=json_proto method=POST [19:20:35]POST find Content-Length [19:20:35]Host: 172.17.38.4:8080 [19:20:35]Content-Length: 677 [19:20:35]Content-Type: application/json [19:20:35] [19:20:35]POST finish read [19:20:35]Found Content-Length = 677 [19:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:35]execute_script... [19:20: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)979904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:35]POST & json_proto [19:20:35]process_json_proto [19:20:35]json parsed OK: [19:20:35]protocol is kg_v1.0 [19:20:35]action value=close_receipt [19:20:35]process_action close_receipt [19:20:35]cmd_close_receipt [19:20:35]MH_GetDate [19:20:35]Write to MH i2c: F0 00 00 DF 30 FE [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: F0 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: F0 09 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: F0 09 00 DF 30 00 05 69 5F 66 CC 51 87 64 42 [19:20:35]GetLastDocTimeStamp 1717528693 [19:20:35]current date 1717528837 [19:20:35]FM_GetShiftState [19:20:35]SAM_PROTO_GetShiftState [19:20:35]wFMCommunicate request_size=4 [19:20:35]MH_SAM_APDU [19:20:35]CAPDU: 80 13 01 00 [19:20:35]Write to MH i2c: E2 08 00 E0 30 80 13 01 00 00 00 00 00 8D [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:35]Read from MH i2c: E2 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 0E 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 0E 00 E0 30 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 50 [19:20:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:20:35]wFMCommunicate OK [19:20:35]SAM_PROTO_GetShiftState done [19:20:35]FM_GetShiftState done [19:20:35]opened in 1717460629 [19:20:35]opened+sec_in_day 1717547029 [19:20:35]quantity*price = 50041 [19:20:35]sum+1 = 50042 [19:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 311 04.06.2024 19:20 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148972 ФПД: 273476019627385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192037&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148972&fm=273476019627385&tin=02508201610067®Number=0000000000092720&sum=50000 [19:20:36]StoreToDocumentArchive [19:20:36]shift 368 fd 148972 [19:20:36]save to /storage/0368/doc_00148972 [19:20:36]save last doc name /storage/0368/doc_00148972 to /storage/kkm_last_doc_name [19:20:36]save OK [19:20:36]Clear old archive folders... [19:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:36]tlvbuf is B6FC73C0 [19:20:36]SAM_PROTO_ClearQueue [19:20:36]wFMCommunicate request_size=4 [19:20:36]MH_SAM_APDU [19:20:36]CAPDU: 80 09 00 00 [19:20:36]Write to MH i2c: E2 08 00 ED 30 80 09 00 00 00 00 00 00 8F [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:36]Read from MH i2c: E2 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 ED 30 00 90 00 91 [19:20:36]RAPDU: 90 00 [19:20:36]wFMCommunicate OK [19:20:36]SAM_PROTO_ClearQueue done [19:20:36]KKMCreateOFDPacket [19:20:36]OFDProtocolAddRootSTLVToBuf [19:20:36]FM_MakeSignedData [19:20:36]FM_MakeSignedData [19:20:36]SAM_PROTO_SignData [19:20:36]wFMCommunicate request_size=4 [19:20:36]MH_SAM_APDU [19:20:36]CAPDU: 80 0D 01 02 [19:20:36]Write to MH i2c: E2 08 00 EE 30 80 0D 01 02 00 00 00 00 97 [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:36]Read from MH i2c: E2 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: E2 03 00 EE 30 00 90 00 92 [19:20:36]RAPDU: 90 00 [19:20:36]wFMCommunicate OK [19:20:36]wFMCommunicate request_size=255 [19:20:36]MH_SAM_APDU [19:20:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 05 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EC 45 02 00 35 04 06 00 F8 [19:20:36]Write to MH i2c: E2 02 01 EF 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 05 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EC 45 02 00 35 04 06 00 F8 00 00 28 [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:37]Read from MH i2c: E2 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: E2 03 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: E2 03 00 EF 30 00 90 00 93 [19:20:37]RAPDU: 90 00 [19:20:37]wFMCommunicate OK [19:20:37]wFMCommunicate request_size=10 [19:20:37]MH_SAM_APDU [19:20:37]CAPDU: 80 0D 02 02 05 B9 99 01 25 79 [19:20:37]Write to MH i2c: E2 0D 00 F0 30 80 0D 02 02 05 00 B9 99 01 25 79 00 00 95 [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:37]Read from MH i2c: E2 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: E2 03 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: E2 03 00 F0 30 00 90 00 94 [19:20:37]RAPDU: 90 00 [19:20:37]wFMCommunicate OK [19:20:37]wFMCommunicate request_size=4 [19:20:37]MH_SAM_APDU [19:20:37]CAPDU: 80 0D 03 02 [19:20:37]Write to MH i2c: E2 08 00 F1 30 80 0D 03 02 00 00 00 00 9C [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:37]Read from MH i2c: E2 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: E2 0B 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: E2 0B 00 F1 30 00 0A 51 92 F4 4B A0 79 EB 90 00 CD [19:20:37]RAPDU: 0A 51 92 F4 4B A0 79 EB 90 00 [19:20:37]wFMCommunicate OK [19:20:37]SAM_PROTO_SignData done [19:20:37]FM_MakeSignedData done [19:20:37]CreateOFDProtocolMessage [19:20:37]wFMCommunicate request_size=4 [19:20:37]MH_SAM_APDU [19:20:37]CAPDU: 80 11 00 00 [19:20:37]Write to MH i2c: E2 08 00 F2 30 80 11 00 00 00 00 00 00 9C [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:37]Read from MH i2c: E2 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: E2 17 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: E2 17 00 F2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EF [19:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:20:37]wFMCommunicate OK [19:20:37]CreateOFDProtocolMessage done [19:20:37]OFDSenderStorePacket 148972 [19:20:37]StoreOFDPacket docnum=148972 [19:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B3 D2 07 01 D8 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 05 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EC 45 02 00 35 04 06 00 F8 B9 99 01 25 79 0A 51 92 F4 4B A0 79 EB [19:20:37]CheckFolder [19:20:37]dirname=/storage/ofd_packets [19:20:37]CheckFolder done [19:20:37]ProducePacketName [19:20:37]name=ofd_packets/00148972 [19:20:37]NVStorageSaveData ofd_packets/00148972 [19:20:37]File name is /storage/ofd_packets/00148972 [19:20:37]Write 301 bytes [19:20:37]NVStorageSaveData done [19:20:37]OFDSenderStorePacket done [19:20:37]KKMCreateOFDPacket done [19:20:37]NVStorageSaveData kkm_last_timestamp [19:20:37]File name is /storage/kkm_last_timestamp [19:20:37]Write 4 bytes [19:20:37]NVStorageSaveData done [19:20:37]ExternCall_PrintAddStr [19:20:37]wPrintStart [19:20:37]Write to MH i2c: 01 00 00 F3 30 23 [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: 01 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: 01 07 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: 01 07 00 F3 30 00 00 00 00 00 FF 0F 38 [19:20:37]RasterBufferAndPrint [19:20:37]line Счет N : (1)979904 [19:20:37]line ИНН: 02508201610067 [19:20:37]line Контрольно-Кассовый Чек [19:20:37]line ПРОДАЖА [19:20:37]line ТРК (МРК, ГНК) : 12 [19:20:37]line Товар: 2710124130 [19:20:37]line Аи-92-К-5 [19:20:37]line 7.480 * 66.90 [19:20:37]line = 500.41 [19:20:37]line НДС 12% НСП 1% [19:20:37]line > о реализуемом товаре [19:20:37]line ОКРУГЛЕНИЕ: -0.41 [19:20:37]line ИТОГО: 500.00 [19:20:37]line Внесено: 500.00 [19:20:37]line СДАЧА: 0.00 [19:20:37]line НСП 1% : 4.43 [19:20:37]line НДС 12% : 53.14 [19:20:37]line Наличными: 500.00 [19:20:37]line Безнал.: 0.00 [19:20:37]line Место: АЗС № 68 "Партнер Нефть" [19:20:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:20:37]line СНО: Общий режим [19:20:37]line Чек 311 04.06.2024 19:20 [19:20:37]line Смена: 368 ФФД: 1.0 [19:20:37]line ЗНМ: 0300000035 [19:20:37]line РНМ: 0000000000092720 [19:20:37]line Версия ККМ: 001 [19:20:37]line ФМ: 0000000000875057 [19:20:37]line ФД: 148972 [19:20:37]line ФПД: 273476019627385 [19:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192037&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148972&fm=273476019627385&tin=02508201610067®Number=0000000000092720&sum=50000 [19:20:37]written 0, free lines is 4095 [19:20:37]OFD Sender: Processing packet 148972 [packets to send 100, broken 99] [19:20:37]ProducePacketName [19:20:37]name=ofd_packets/00148972 [19:20:37]OFD Sender: To server: pG, [19:20:37]CommunicateWithHost lk.salyk.kg:30040 [19:20:37]ConnectInit lk.salyk.kg [19:20:37]Connected sock=10 [19:20:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B3 D2 07 01 D8 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 05 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EC 45 02 00 35 04 06 00 F8 B9 99 01 25 79 0A 51 92 F4 4B A0 79 EB [19:20:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 17 CB 47 00 A5 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 38 37 35 30 35 37 10 04 04 00 EC 45 02 00 F4 03 04 00 28 10 5F 66 B6 04 01 00 00 7E 14 BA 61 C5 80 63 5D [19:20:37]CommunicateWithHost err = 0 [19:20:37]CheckOFDResponse [19:20:37]1017 (14) - 77093643461234 [19:20:37]1041 (16) - 0000000000875057 [19:20:37]1040 (4) - 148972 [19:20:37]1012 (4) - 04.06.2024 13:01 [19:20:37]1206 (1) - 0 [19:20:37]OFD Sender: Remove packet 148972 [19:20:37]ProducePacketName [19:20:37]name=ofd_packets/00148972 [19:20:37]NVStorageDeleteData [19:20:37]Write to MH i2c: 01 00 00 1E 31 4F [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: 01 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: 01 07 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: 01 07 00 1E 31 00 00 00 00 00 96 0C F8 [19:20:37]RasterBufferAndPrint [19:20:37]line [19:20:37]line [19:20:37]line [19:20:37]line [19:20:37]line [19:20:37]written 0, free lines is 3226 [19:20:37]MH_Cut [19:20:37]Write to MH i2c: D1 01 00 25 31 01 28 [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: D1 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: D1 01 00 [19:20:37]MH_I2C_Read... [19:20:37]Read from MH i2c: D1 01 00 25 31 00 27 [19:20:37]Write to MH i2c: 01 00 00 26 31 57 [19:20:37]Write i2c OK [19:20:37]MH_I2C_Read... [19:20:38]OFD Sender: No OFD packet to send [19:20:38]*** Cut start [19:20:38]*** Partial cut [19:20:38]*** CUTSNS_PIN = 1 [19:20:38]*** CUTSNS_PIN = 0 [19:20:39]*** Brake cut motor [19:20:39]Read from MH i2c: 01 [19:20:39]MH_I2C_Read... [19:20:39]*** Stop cut motor [19:20:39]*** Cut end [19:20:39]Read from MH i2c: 01 07 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: 01 07 00 26 31 00 00 00 00 00 FF 0F 6C [19:20:39]process_action close_receipt done [19:20:39]requested_data is exist [19:20:39]produce_requested_data [19:20:39]requested_item fm.sn is exist - process it [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 11 00 00 [19:20:39]Write to MH i2c: E2 08 00 27 31 80 11 00 00 00 00 00 00 D2 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 17 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 17 00 27 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 25 [19:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:20:39]wFMCommunicate OK [19:20:39]requested_item fd.num is exist - process it [19:20:39]SAM_PROTO_GetFieldsCounters [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 13 00 00 [19:20:39]Write to MH i2c: E2 08 00 28 31 80 13 00 00 00 00 00 00 D5 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 62 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 62 00 28 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [19:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:39]wFMCommunicate OK [19:20:39]SAM_PROTO_GetFieldsCounters done [19:20:39]requested_item shift.num is exist - process it [19:20:39]requested_item shift.opened is exist - process it [19:20:39]req_shift_opened [19:20:39]FM_GetShiftState [19:20:39]SAM_PROTO_GetShiftState [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 13 01 00 [19:20:39]Write to MH i2c: E2 08 00 29 31 80 13 01 00 00 00 00 00 D7 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 0E 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 0E 00 29 31 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9A [19:20:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:20:39]wFMCommunicate OK [19:20:39]SAM_PROTO_GetShiftState done [19:20:39]FM_GetShiftState done [19:20:39]req_shift_opened done [19:20:39]requested_item shift.open_date is exist - process it [19:20:39]req_shift_open_date [19:20:39]req_shift_open_date done [19:20:39]produce_requested_data done [19:20:39]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148972,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:20:39]process_action_free close_receipt [19:20:39]json_value_free [19:20:39]json_value_free done [19:20:39]process_json_proto returns [19:20:39]Send response to host [19:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148972,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:20:39]free response buf [19:20:39]execute_script done [19:20:39]execute_script returns [19:20:39]free content buf [19:20:39]Sock 7.Close socket [19:20:39]Sock 7.Thread stoped [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:14]accept exits with 9 [19:21:14]New connection [19:21:14]New thread 3067407716 created [19:21:14]Thread 3067264356 joined [19:21:14]Waiting for new connection... [19:21:14] Sock 9.Parse request [19:21:14]Sock 9.Check first char [19:21:14]Sock 9.First char is OK [19:21:14]request: POST /json_proto HTTP/1.0 [19:21:14]Method: POST [19:21:14]URL: /json_proto [19:21:14]Method is POST - this is cgi request [19:21:14]url: /json_proto [19:21:14]query_string will be loaded in cgi processing [19:21:14]execute_cgi json_proto POST (null) [19:21:14]execute_cgi path=json_proto method=POST [19:21:14]POST find Content-Length [19:21:14]Host: 172.17.38.4:8080 [19:21:14]Content-Length: 677 [19:21:14]Content-Type: application/json [19:21:14] [19:21:14]POST finish read [19:21:14]Found Content-Length = 677 [19:21:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:14]execute_script... [19:21: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)979907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:14]POST & json_proto [19:21:14]process_json_proto [19:21:14]json parsed OK: [19:21:14]protocol is kg_v1.0 [19:21:14]action value=close_receipt [19:21:14]process_action close_receipt [19:21:14]cmd_close_receipt [19:21:14]MH_GetDate [19:21:14]Write to MH i2c: F0 00 00 2A 31 4A [19:21:14]Write i2c OK [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: F0 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: F0 09 00 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: F0 09 00 2A 31 00 2C 69 5F 66 CC 51 87 64 B5 [19:21:14]GetLastDocTimeStamp 1717528837 [19:21:14]current date 1717528876 [19:21:14]FM_GetShiftState [19:21:14]SAM_PROTO_GetShiftState [19:21:14]wFMCommunicate request_size=4 [19:21:14]MH_SAM_APDU [19:21:14]CAPDU: 80 13 01 00 [19:21:14]Write to MH i2c: E2 08 00 2B 31 80 13 01 00 00 00 00 00 D9 [19:21:14]Write i2c OK [19:21:14]MH_I2C_Read... [19:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:14]Read from MH i2c: E2 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: E2 0E 00 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: E2 0E 00 2B 31 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9C [19:21:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:21:14]wFMCommunicate OK [19:21:14]SAM_PROTO_GetShiftState done [19:21:14]FM_GetShiftState done [19:21:14]opened in 1717460629 [19:21:14]opened+sec_in_day 1717547029 [19:21:14]quantity*price = 30038 [19:21:14]sum+1 = 30039 [19:21:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 312 04.06.2024 19:21 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148973 ФПД: 157839291474747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192116&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148973&fm=157839291474747&tin=02508201610067®Number=0000000000092720&sum=30000 [19:21:15]StoreToDocumentArchive [19:21:15]shift 368 fd 148973 [19:21:15]save to /storage/0368/doc_00148973 [19:21:15]save last doc name /storage/0368/doc_00148973 to /storage/kkm_last_doc_name [19:21:15]save OK [19:21:15]Clear old archive folders... [19:21:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:15]tlvbuf is 004B8220 [19:21:15]SAM_PROTO_ClearQueue [19:21:15]wFMCommunicate request_size=4 [19:21:15]MH_SAM_APDU [19:21:15]CAPDU: 80 09 00 00 [19:21:15]Write to MH i2c: E2 08 00 38 31 80 09 00 00 00 00 00 00 DB [19:21:15]Write i2c OK [19:21:15]MH_I2C_Read... [19:21:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:15]Read from MH i2c: E2 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 03 00 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 03 00 38 31 00 90 00 DD [19:21:15]RAPDU: 90 00 [19:21:15]wFMCommunicate OK [19:21:15]SAM_PROTO_ClearQueue done [19:21:15]KKMCreateOFDPacket [19:21:15]OFDProtocolAddRootSTLVToBuf [19:21:15]FM_MakeSignedData [19:21:15]FM_MakeSignedData [19:21:15]SAM_PROTO_SignData [19:21:15]wFMCommunicate request_size=4 [19:21:15]MH_SAM_APDU [19:21:15]CAPDU: 80 0D 01 02 [19:21:15]Write to MH i2c: E2 08 00 39 31 80 0D 01 02 00 00 00 00 E3 [19:21:15]Write i2c OK [19:21:15]MH_I2C_Read... [19:21:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:15]Read from MH i2c: E2 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 03 00 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 03 00 39 31 00 90 00 DE [19:21:15]RAPDU: 90 00 [19:21:15]wFMCommunicate OK [19:21:15]wFMCommunicate request_size=255 [19:21:15]MH_SAM_APDU [19:21:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 38 01 00 00 F4 03 04 00 2C 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 ED 45 02 00 35 04 06 00 8F [19:21:15]Write to MH i2c: E2 02 01 3A 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 2C 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 ED 45 02 00 35 04 06 00 8F 00 00 28 [19:21:15]Write i2c OK [19:21:15]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 3A 31 00 90 00 DF [19:21:16]RAPDU: 90 00 [19:21:16]wFMCommunicate OK [19:21:16]wFMCommunicate request_size=10 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 0D 02 02 05 8D D2 E6 63 3B [19:21:16]Write to MH i2c: E2 0D 00 3B 31 80 0D 02 02 05 00 8D D2 E6 63 3B 00 00 D3 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 3B 31 00 90 00 E0 [19:21:16]RAPDU: 90 00 [19:21:16]wFMCommunicate OK [19:21:16]wFMCommunicate request_size=4 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 0D 03 02 [19:21:16]Write to MH i2c: E2 08 00 3C 31 80 0D 03 02 00 00 00 00 E8 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 0B 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 0B 00 3C 31 00 7F A2 B5 A7 3D 6C 86 76 90 00 0B [19:21:16]RAPDU: 7F A2 B5 A7 3D 6C 86 76 90 00 [19:21:16]wFMCommunicate OK [19:21:16]SAM_PROTO_SignData done [19:21:16]FM_MakeSignedData done [19:21:16]CreateOFDProtocolMessage [19:21:16]wFMCommunicate request_size=4 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 11 00 00 [19:21:16]Write to MH i2c: E2 08 00 3D 31 80 11 00 00 00 00 00 00 E8 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 17 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 17 00 3D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3B [19:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:21:16]wFMCommunicate OK [19:21:16]CreateOFDProtocolMessage done [19:21:16]OFDSenderStorePacket 148973 [19:21:16]StoreOFDPacket docnum=148973 [19:21:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 BC D8 07 01 32 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 38 01 00 00 F4 03 04 00 2C 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 ED 45 02 00 35 04 06 00 8F 8D D2 E6 63 3B 7F A2 B5 A7 3D 6C 86 76 [19:21:16]CheckFolder [19:21:16]dirname=/storage/ofd_packets [19:21:16]CheckFolder done [19:21:16]ProducePacketName [19:21:16]name=ofd_packets/00148973 [19:21:16]NVStorageSaveData ofd_packets/00148973 [19:21:16]File name is /storage/ofd_packets/00148973 [19:21:16]Write 301 bytes [19:21:16]NVStorageSaveData done [19:21:16]OFDSenderStorePacket done [19:21:16]KKMCreateOFDPacket done [19:21:16]NVStorageSaveData kkm_last_timestamp [19:21:16]File name is /storage/kkm_last_timestamp [19:21:16]Write 4 bytes [19:21:16]NVStorageSaveData done [19:21:16]ExternCall_PrintAddStr [19:21:16]wPrintStart [19:21:16]Write to MH i2c: 01 00 00 3E 31 6F [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 07 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 07 00 3E 31 00 00 00 00 00 FF 0F 84 [19:21:16]RasterBufferAndPrint [19:21:16]line Счет N : (1)979907 [19:21:16]line ИНН: 02508201610067 [19:21:16]line Контрольно-Кассовый Чек [19:21:16]line ПРОДАЖА [19:21:16]line ТРК (МРК, ГНК) : 31 [19:21:16]line Товар: 2710124130 [19:21:16]line Аи-92-К-5 [19:21:16]line 4.490 * 66.90 [19:21:16]line = 300.38 [19:21:16]line НДС 12% НСП 1% [19:21:16]line > о реализуемом товаре [19:21:16]line ОКРУГЛЕНИЕ: -0.38 [19:21:16]line ИТОГО: 300.00 [19:21:16]line Внесено: 300.00 [19:21:16]line СДАЧА: 0.00 [19:21:16]line НСП 1% : 2.66 [19:21:16]line НДС 12% : 31.90 [19:21:16]line Наличными: 300.00 [19:21:16]line Безнал.: 0.00 [19:21:16]line Место: АЗС № 68 "Партнер Нефть" [19:21:16]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:21:16]line СНО: Общий режим [19:21:16]line Чек 312 04.06.2024 19:21 [19:21:16]line Смена: 368 ФФД: 1.0 [19:21:16]line ЗНМ: 0300000035 [19:21:16]line РНМ: 0000000000092720 [19:21:16]line Версия ККМ: 001 [19:21:16]line ФМ: 0000000000875057 [19:21:16]line ФД: 148973 [19:21:16]line ФПД: 157839291474747 [19:21:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192116&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148973&fm=157839291474747&tin=02508201610067®Number=0000000000092720&sum=30000 [19:21:16]OFD Sender: Processing packet 148973 [packets to send 100, broken 99] [19:21:16]ProducePacketName [19:21:16]name=ofd_packets/00148973 [19:21:16]OFD Sender: To server: pG, [19:21:16]CommunicateWithHost lk.salyk.kg:30040 [19:21:16]ConnectInit lk.salyk.kg [19:21:16]written 0, free lines is 4095 [19:21:16]Connected sock=10 [19:21:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 BC D8 07 01 32 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 38 01 00 00 F4 03 04 00 2C 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 ED 45 02 00 35 04 06 00 8F 8D D2 E6 63 3B 7F A2 B5 A7 3D 6C 86 76 [19:21:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1C DE 47 00 04 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 38 37 35 30 35 37 10 04 04 00 ED 45 02 00 F4 03 04 00 4F 10 5F 66 B6 04 01 00 00 3E 01 65 66 30 4D 6C 5F [19:21:16]CommunicateWithHost err = 0 [19:21:16]CheckOFDResponse [19:21:16]1017 (14) - 77093643461234 [19:21:16]1041 (16) - 0000000000875057 [19:21:16]1040 (4) - 148973 [19:21:16]1012 (4) - 04.06.2024 13:02 [19:21:16]1206 (1) - 0 [19:21:16]OFD Sender: Remove packet 148973 [19:21:16]ProducePacketName [19:21:16]name=ofd_packets/00148973 [19:21:16]NVStorageDeleteData [19:21:16]Write to MH i2c: 01 00 00 69 31 9A [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 07 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 07 00 69 31 00 00 00 00 00 8C 0C 39 [19:21:16]RasterBufferAndPrint [19:21:16]line [19:21:16]line [19:21:16]line [19:21:16]line [19:21:16]line [19:21:16]written 0, free lines is 3216 [19:21:16]MH_Cut [19:21:16]Write to MH i2c: D1 01 00 70 31 01 73 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: D1 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: D1 01 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: D1 01 00 70 31 00 72 [19:21:16]Write to MH i2c: 01 00 00 71 31 A2 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:17]OFD Sender: No OFD packet to send [19:21:17]*** Cut start [19:21:17]*** Partial cut [19:21:17]*** CUTSNS_PIN = 1 [19:21:18]*** CUTSNS_PIN = 0 [19:21:18]*** Brake cut motor [19:21:18]Read from MH i2c: 01 [19:21:18]MH_I2C_Read... [19:21:18]*** Stop cut motor [19:21:18]*** Cut end [19:21:18]Read from MH i2c: 01 07 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 71 31 00 00 00 00 00 FF 0F B7 [19:21:18]process_action close_receipt done [19:21:18]requested_data is exist [19:21:18]produce_requested_data [19:21:18]requested_item fm.sn is exist - process it [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 11 00 00 [19:21:18]Write to MH i2c: E2 08 00 72 31 80 11 00 00 00 00 00 00 1D [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 17 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 17 00 72 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 70 [19:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:21:18]wFMCommunicate OK [19:21:18]requested_item fd.num is exist - process it [19:21:18]SAM_PROTO_GetFieldsCounters [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 13 00 00 [19:21:18]Write to MH i2c: E2 08 00 73 31 80 13 00 00 00 00 00 00 20 [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 62 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 62 00 73 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 ED 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [19:21:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 ED 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:18]wFMCommunicate OK [19:21:18]SAM_PROTO_GetFieldsCounters done [19:21:18]requested_item shift.num is exist - process it [19:21:18]requested_item shift.opened is exist - process it [19:21:18]req_shift_opened [19:21:18]FM_GetShiftState [19:21:18]SAM_PROTO_GetShiftState [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 13 01 00 [19:21:18]Write to MH i2c: E2 08 00 74 31 80 13 01 00 00 00 00 00 22 [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 0E 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 0E 00 74 31 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E5 [19:21:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:21:18]wFMCommunicate OK [19:21:18]SAM_PROTO_GetShiftState done [19:21:18]FM_GetShiftState done [19:21:18]req_shift_opened done [19:21:18]requested_item shift.open_date is exist - process it [19:21:18]req_shift_open_date [19:21:18]req_shift_open_date done [19:21:18]produce_requested_data done [19:21:18]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148973,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:21:18]process_action_free close_receipt [19:21:18]json_value_free [19:21:18]json_value_free done [19:21:18]process_json_proto returns [19:21:18]Send response to host [19:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148973,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:21:18]free response buf [19:21:18]execute_script done [19:21:18]execute_script returns [19:21:18]free content buf [19:21:18]Sock 9.Close socket [19:21:18]Sock 9.Thread stoped [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:46]accept exits with 7 [19:21:46]New connection [19:21:46]New thread 3067264356 created [19:21:46]Thread 3067407716 joined [19:21:46]Waiting for new connection... [19:21:46] Sock 7.Parse request [19:21:46]Sock 7.Check first char [19:21:46]Sock 7.First char is OK [19:21:46]request: POST /json_proto HTTP/1.0 [19:21:46]Method: POST [19:21:46]URL: /json_proto [19:21:46]Method is POST - this is cgi request [19:21:46]url: /json_proto [19:21:46]query_string will be loaded in cgi processing [19:21:46]execute_cgi json_proto POST (null) [19:21:46]execute_cgi path=json_proto method=POST [19:21:46]POST find Content-Length [19:21:46]Host: 172.17.38.4:8080 [19:21:46]Content-Length: 801 [19:21:46]Content-Type: application/json [19:21:46] [19:21:46]POST finish read [19:21:46]Found Content-Length = 801 [19:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:46]execute_script... [19:21: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)979905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:46]POST & json_proto [19:21:46]process_json_proto [19:21:46]json parsed OK: [19:21:46]protocol is kg_v1.0 [19:21:46]action value=close_receipt [19:21:46]process_action close_receipt [19:21:46]cmd_close_receipt [19:21:46]MH_GetDate [19:21:46]Write to MH i2c: F0 00 00 75 31 95 [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: F0 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: F0 09 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: F0 09 00 75 31 00 4C 69 5F 66 CC 51 87 64 20 [19:21:46]GetLastDocTimeStamp 1717528876 [19:21:46]current date 1717528908 [19:21:46]FM_GetShiftState [19:21:46]SAM_PROTO_GetShiftState [19:21:46]wFMCommunicate request_size=4 [19:21:46]MH_SAM_APDU [19:21:46]CAPDU: 80 13 01 00 [19:21:46]Write to MH i2c: E2 08 00 76 31 80 13 01 00 00 00 00 00 24 [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:46]Read from MH i2c: E2 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 0E 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 0E 00 76 31 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E7 [19:21:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:21:46]wFMCommunicate OK [19:21:46]SAM_PROTO_GetShiftState done [19:21:46]FM_GetShiftState done [19:21:46]opened in 1717460629 [19:21:46]opened+sec_in_day 1717547029 [19:21:46]quantity*price = 70044 [19:21:46]sum+1 = 70045 [19:21:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 313 04.06.2024 19:21 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148974 ФПД: 41127268636410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192148&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148974&fm=41127268636410&tin=02508201610067®Number=0000000000092720&sum=70044 [19:21:47]StoreToDocumentArchive [19:21:47]shift 368 fd 148974 [19:21:47]save to /storage/0368/doc_00148974 [19:21:47]save last doc name /storage/0368/doc_00148974 to /storage/kkm_last_doc_name [19:21:47]save OK [19:21:47]Clear old archive folders... [19:21:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:47]tlvbuf is 00500460 [19:21:47]SAM_PROTO_ClearQueue [19:21:47]wFMCommunicate request_size=4 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 09 00 00 [19:21:47]Write to MH i2c: E2 08 00 83 31 80 09 00 00 00 00 00 00 26 [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 83 31 00 90 00 28 [19:21:47]RAPDU: 90 00 [19:21:47]wFMCommunicate OK [19:21:47]SAM_PROTO_ClearQueue done [19:21:47]KKMCreateOFDPacket [19:21:47]OFDProtocolAddRootSTLVToBuf [19:21:47]FM_MakeSignedData [19:21:47]FM_MakeSignedData [19:21:47]SAM_PROTO_SignData [19:21:47]wFMCommunicate request_size=4 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 0D 01 02 [19:21:47]Write to MH i2c: E2 08 00 84 31 80 0D 01 02 00 00 00 00 2E [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 84 31 00 90 00 29 [19:21:47]RAPDU: 90 00 [19:21:47]wFMCommunicate OK [19:21:47]wFMCommunicate request_size=255 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 4C 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EE 45 02 00 35 04 06 00 25 [19:21:47]Write to MH i2c: E2 02 01 85 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 4C 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EE 45 02 00 35 04 06 00 25 00 00 9F [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 85 31 00 90 00 2A [19:21:47]RAPDU: 90 00 [19:21:47]wFMCommunicate OK [19:21:47]wFMCommunicate request_size=10 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 0D 02 02 05 67 B0 3C D6 FA [19:21:47]Write to MH i2c: E2 0D 00 86 31 80 0D 02 02 05 00 67 B0 3C D6 FA 00 00 5E [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 86 31 00 90 00 2B [19:21:47]RAPDU: 90 00 [19:21:47]wFMCommunicate OK [19:21:47]wFMCommunicate request_size=4 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 0D 03 02 [19:21:47]Write to MH i2c: E2 08 00 87 31 80 0D 03 02 00 00 00 00 33 [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 0B 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 0B 00 87 31 00 08 4C 13 BF F1 EE FF 58 90 00 90 [19:21:48]RAPDU: 08 4C 13 BF F1 EE FF 58 90 00 [19:21:48]wFMCommunicate OK [19:21:48]SAM_PROTO_SignData done [19:21:48]FM_MakeSignedData done [19:21:48]CreateOFDProtocolMessage [19:21:48]wFMCommunicate request_size=4 [19:21:48]MH_SAM_APDU [19:21:48]CAPDU: 80 11 00 00 [19:21:48]Write to MH i2c: E2 08 00 88 31 80 11 00 00 00 00 00 00 33 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 17 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 17 00 88 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 86 [19:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:21:48]wFMCommunicate OK [19:21:48]CreateOFDProtocolMessage done [19:21:48]OFDSenderStorePacket 148974 [19:21:48]StoreOFDPacket docnum=148974 [19:21:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E9 6A 07 01 64 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 4C 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EE 45 02 00 35 04 06 00 25 67 B0 3C D6 FA 08 4C 13 BF F1 EE FF 58 [19:21:48]CheckFolder [19:21:48]dirname=/storage/ofd_packets [19:21:48]CheckFolder done [19:21:48]ProducePacketName [19:21:48]name=ofd_packets/00148974 [19:21:48]NVStorageSaveData ofd_packets/00148974 [19:21:48]File name is /storage/ofd_packets/00148974 [19:21:48]Write 301 bytes [19:21:48]NVStorageSaveData done [19:21:48]OFDSenderStorePacket done [19:21:48]KKMCreateOFDPacket done [19:21:48]NVStorageSaveData kkm_last_timestamp [19:21:48]File name is /storage/kkm_last_timestamp [19:21:48]Write 4 bytes [19:21:48]NVStorageSaveData done [19:21:48]ExternCall_PrintAddStr [19:21:48]wPrintStart [19:21:48]Write to MH i2c: 01 00 00 89 31 BA [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 89 31 00 00 00 00 00 FF 0F CF [19:21:48]RasterBufferAndPrint [19:21:48]line Счет N : (1)979905 [19:21:48]line ИНН: 02508201610067 [19:21:48]line Контрольно-Кассовый Чек [19:21:48]line ПРОДАЖА [19:21:48]line ТРК (МРК, ГНК) : 41 [19:21:48]line Товар: 2710124130 [19:21:48]line Аи-92-К-5 [19:21:48]line 10.470 * 66.90 [19:21:48]line = 700.44 [19:21:48]line НДС 12% НСП 1% [19:21:48]line > о реализуемом товаре [19:21:48]line ИТОГО: 700.44 [19:21:48]line НСП 1% : 6.20 [19:21:48]line НДС 12% : 74.38 [19:21:48]line Наличными: 0.00 [19:21:48]line Безнал.: 700.44 [19:21:48]line Место: АЗС № 68 "Партнер Нефть" [19:21:48]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:21:48]line СНО: Общий режим [19:21:48]line Чек 313 04.06.2024 19:21 [19:21:48]line Смена: 368 ФФД: 1.0 [19:21:48]line ЗНМ: 0300000035 [19:21:48]line РНМ: 0000000000092720 [19:21:48]line Версия ККМ: 001 [19:21:48]line Платежная система: O! деньги [19:21:48]line ФМ: 0000000000875057 [19:21:48]line ФД: 148974 [19:21:48]line ФПД: 41127268636410 [19:21:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192148&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148974&fm=41127268636410&tin=02508201610067®Number=0000000000092720&sum=70044 [19:21:48]OFD Sender: Processing packet 148974 [packets to send 100, broken 99] [19:21:48]ProducePacketName [19:21:48]name=ofd_packets/00148974 [19:21:48]OFD Sender: To server: pG, [19:21:48]CommunicateWithHost lk.salyk.kg:30040 [19:21:48]ConnectInit lk.salyk.kg [19:21:48]written 0, free lines is 4095 [19:21:48]Connected sock=10 [19:21:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E9 6A 07 01 64 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 4C 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EE 45 02 00 35 04 06 00 25 67 B0 3C D6 FA 08 4C 13 BF F1 EE FF 58 [19:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 31 EE 47 00 10 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EE 45 02 00 F4 03 04 00 6F 10 5F 66 B6 04 01 00 00 97 E7 FB 7C EE 58 17 E2 [19:21:48]CommunicateWithHost err = 0 [19:21:48]CheckOFDResponse [19:21:48]1017 (14) - 77093643461234 [19:21:48]1041 (16) - 0000000000875057 [19:21:48]1040 (4) - 148974 [19:21:48]1012 (4) - 04.06.2024 13:02 [19:21:48]1206 (1) - 0 [19:21:48]OFD Sender: Remove packet 148974 [19:21:48]ProducePacketName [19:21:48]name=ofd_packets/00148974 [19:21:48]NVStorageDeleteData [19:21:48]Write to MH i2c: 01 00 00 B3 31 E4 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 B3 31 00 00 00 00 00 A3 0C 9A [19:21:48]RasterBufferAndPrint [19:21:48]line [19:21:48]line [19:21:48]line [19:21:48]line [19:21:48]line [19:21:48]written 0, free lines is 3239 [19:21:48]MH_Cut [19:21:48]Write to MH i2c: D1 01 00 BA 31 01 BD [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: D1 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: D1 01 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: D1 01 00 BA 31 00 BC [19:21:48]Write to MH i2c: 01 00 00 BB 31 EC [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:49]OFD Sender: No OFD packet to send [19:21:49]*** Cut start [19:21:49]*** Partial cut [19:21:49]*** CUTSNS_PIN = 1 [19:21:49]*** CUTSNS_PIN = 0 [19:21:50]*** Brake cut motor [19:21:50]Read from MH i2c: 01 [19:21:50]MH_I2C_Read... [19:21:50]*** Stop cut motor [19:21:50]*** Cut end [19:21:50]Read from MH i2c: 01 07 00 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: 01 07 00 BB 31 00 00 00 00 00 FF 0F 01 [19:21:50]process_action close_receipt done [19:21:50]requested_data is exist [19:21:50]produce_requested_data [19:21:50]requested_item fm.sn is exist - process it [19:21:50]wFMCommunicate request_size=4 [19:21:50]MH_SAM_APDU [19:21:50]CAPDU: 80 11 00 00 [19:21:50]Write to MH i2c: E2 08 00 BC 31 80 11 00 00 00 00 00 00 67 [19:21:50]Write i2c OK [19:21:50]MH_I2C_Read... [19:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:50]Read from MH i2c: E2 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 17 00 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 17 00 BC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BA [19:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:21:50]wFMCommunicate OK [19:21:50]requested_item fd.num is exist - process it [19:21:50]SAM_PROTO_GetFieldsCounters [19:21:50]wFMCommunicate request_size=4 [19:21:50]MH_SAM_APDU [19:21:50]CAPDU: 80 13 00 00 [19:21:50]Write to MH i2c: E2 08 00 BD 31 80 13 00 00 00 00 00 00 6A [19:21:50]Write i2c OK [19:21:50]MH_I2C_Read... [19:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:50]Read from MH i2c: E2 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 62 00 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 62 00 BD 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [19:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:50]wFMCommunicate OK [19:21:50]SAM_PROTO_GetFieldsCounters done [19:21:50]requested_item shift.num is exist - process it [19:21:50]requested_item shift.opened is exist - process it [19:21:50]req_shift_opened [19:21:50]FM_GetShiftState [19:21:50]SAM_PROTO_GetShiftState [19:21:50]wFMCommunicate request_size=4 [19:21:50]MH_SAM_APDU [19:21:50]CAPDU: 80 13 01 00 [19:21:50]Write to MH i2c: E2 08 00 BE 31 80 13 01 00 00 00 00 00 6C [19:21:50]Write i2c OK [19:21:50]MH_I2C_Read... [19:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:50]Read from MH i2c: E2 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 0E 00 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 0E 00 BE 31 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2F [19:21:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:21:50]wFMCommunicate OK [19:21:50]SAM_PROTO_GetShiftState done [19:21:50]FM_GetShiftState done [19:21:50]req_shift_opened done [19:21:50]requested_item shift.open_date is exist - process it [19:21:50]req_shift_open_date [19:21:50]req_shift_open_date done [19:21:50]produce_requested_data done [19:21:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148974,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:21:50]process_action_free close_receipt [19:21:50]json_value_free [19:21:50]json_value_free done [19:21:50]process_json_proto returns [19:21:50]Send response to host [19:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148974,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:21:50]free response buf [19:21:50]execute_script done [19:21:50]execute_script returns [19:21:50]free content buf [19:21:50]Sock 7.Close socket [19:21:50]Sock 7.Thread stoped [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:12]accept exits with 9 [19:22:12]New connection [19:22:12]New thread 3067407716 created [19:22:12]Thread 3067264356 joined [19:22:12]Waiting for new connection... [19:22:12] Sock 9.Parse request [19:22:12]Sock 9.Check first char [19:22:12]Sock 9.First char is OK [19:22:12]request: POST /json_proto HTTP/1.0 [19:22:12]Method: POST [19:22:12]URL: /json_proto [19:22:12]Method is POST - this is cgi request [19:22:12]url: /json_proto [19:22:12]query_string will be loaded in cgi processing [19:22:12]execute_cgi json_proto POST (null) [19:22:12]execute_cgi path=json_proto method=POST [19:22:12]POST find Content-Length [19:22:12]Host: 172.17.38.4:8080 [19:22:12]Content-Length: 679 [19:22:12]Content-Type: application/json [19:22:12] [19:22:12]POST finish read [19:22:12]Found Content-Length = 679 [19:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 30.180, "sum" : 2200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:12]execute_script... [19:22: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)979906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 30.180, "sum" : 2200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:12]POST & json_proto [19:22:12]process_json_proto [19:22:12]json parsed OK: [19:22:12]protocol is kg_v1.0 [19:22:12]action value=close_receipt [19:22:12]process_action close_receipt [19:22:12]cmd_close_receipt [19:22:12]MH_GetDate [19:22:12]Write to MH i2c: F0 00 00 BF 31 DF [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: F0 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: F0 09 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: F0 09 00 BF 31 00 66 69 5F 66 CC 51 87 64 84 [19:22:12]GetLastDocTimeStamp 1717528908 [19:22:12]current date 1717528934 [19:22:12]FM_GetShiftState [19:22:12]SAM_PROTO_GetShiftState [19:22:12]wFMCommunicate request_size=4 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 13 01 00 [19:22:12]Write to MH i2c: E2 08 00 C0 31 80 13 01 00 00 00 00 00 6E [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 0E 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 0E 00 C0 31 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 31 [19:22:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:22:12]wFMCommunicate OK [19:22:12]SAM_PROTO_GetShiftState done [19:22:12]FM_GetShiftState done [19:22:12]opened in 1717460629 [19:22:12]opened+sec_in_day 1717547029 [19:22:12]quantity*price = 220012 [19:22:12]sum+1 = 220013 [19:22:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 314 04.06.2024 19:22 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148975 ФПД: 87017841618598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192214&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148975&fm=87017841618598&tin=02508201610067®Number=0000000000092720&sum=220000 [19:22:13]StoreToDocumentArchive [19:22:13]shift 368 fd 148975 [19:22:13]save to /storage/0368/doc_00148975 [19:22:13]save last doc name /storage/0368/doc_00148975 to /storage/kkm_last_doc_name [19:22:13]save OK [19:22:13]Clear old archive folders... [19:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:22:13]tlvbuf is 00476C60 [19:22:13]SAM_PROTO_ClearQueue [19:22:13]wFMCommunicate request_size=4 [19:22:13]MH_SAM_APDU [19:22:13]CAPDU: 80 09 00 00 [19:22:13]Write to MH i2c: E2 08 00 CD 31 80 09 00 00 00 00 00 00 70 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:13]Read from MH i2c: E2 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 03 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 03 00 CD 31 00 90 00 72 [19:22:13]RAPDU: 90 00 [19:22:13]wFMCommunicate OK [19:22:13]SAM_PROTO_ClearQueue done [19:22:13]KKMCreateOFDPacket [19:22:13]OFDProtocolAddRootSTLVToBuf [19:22:13]FM_MakeSignedData [19:22:13]FM_MakeSignedData [19:22:13]SAM_PROTO_SignData [19:22:13]wFMCommunicate request_size=4 [19:22:13]MH_SAM_APDU [19:22:13]CAPDU: 80 0D 01 02 [19:22:13]Write to MH i2c: E2 08 00 CE 31 80 0D 01 02 00 00 00 00 78 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:13]Read from MH i2c: E2 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 03 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 03 00 CE 31 00 90 00 73 [19:22:13]RAPDU: 90 00 [19:22:13]wFMCommunicate OK [19:22:13]wFMCommunicate request_size=255 [19:22:13]MH_SAM_APDU [19:22:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 66 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EF 45 02 00 35 04 06 00 4F 24 6B 89 [19:22:13]Write to MH i2c: E2 02 01 CF 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 66 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EF 45 02 00 35 04 06 00 4F 24 6B 89 00 00 23 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:13]Read from MH i2c: E2 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 03 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 03 00 CF 31 00 90 00 74 [19:22:13]RAPDU: 90 00 [19:22:13]wFMCommunicate OK [19:22:13]wFMCommunicate request_size=7 [19:22:13]MH_SAM_APDU [19:22:13]CAPDU: 80 0D 02 02 02 EE A6 [19:22:13]Write to MH i2c: E2 0A 00 D0 31 80 0D 02 02 02 00 EE A6 00 00 13 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:13]Read from MH i2c: E2 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 03 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 03 00 D0 31 00 90 00 75 [19:22:13]RAPDU: 90 00 [19:22:13]wFMCommunicate OK [19:22:13]wFMCommunicate request_size=4 [19:22:13]MH_SAM_APDU [19:22:13]CAPDU: 80 0D 03 02 [19:22:13]Write to MH i2c: E2 08 00 D1 31 80 0D 03 02 00 00 00 00 7D [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:13]Read from MH i2c: E2 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 0B 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 0B 00 D1 31 00 3A E6 FD CE 38 55 8E 84 90 00 08 [19:22:13]RAPDU: 3A E6 FD CE 38 55 8E 84 90 00 [19:22:13]wFMCommunicate OK [19:22:13]SAM_PROTO_SignData done [19:22:13]FM_MakeSignedData done [19:22:13]CreateOFDProtocolMessage [19:22:13]wFMCommunicate request_size=4 [19:22:13]MH_SAM_APDU [19:22:13]CAPDU: 80 11 00 00 [19:22:13]Write to MH i2c: E2 08 00 D2 31 80 11 00 00 00 00 00 00 7D [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:13]Read from MH i2c: E2 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 17 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: E2 17 00 D2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D0 [19:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:22:13]wFMCommunicate OK [19:22:13]CreateOFDProtocolMessage done [19:22:13]OFDSenderStorePacket 148975 [19:22:13]StoreOFDPacket docnum=148975 [19:22:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 87 76 04 01 FE F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 66 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EF 45 02 00 35 04 06 00 4F 24 6B 89 EE A6 3A E6 FD CE 38 55 8E 84 [19:22:13]CheckFolder [19:22:13]dirname=/storage/ofd_packets [19:22:13]CheckFolder done [19:22:13]ProducePacketName [19:22:13]name=ofd_packets/00148975 [19:22:13]NVStorageSaveData ofd_packets/00148975 [19:22:13]File name is /storage/ofd_packets/00148975 [19:22:13]Write 298 bytes [19:22:13]NVStorageSaveData done [19:22:13]OFDSenderStorePacket done [19:22:13]KKMCreateOFDPacket done [19:22:13]NVStorageSaveData kkm_last_timestamp [19:22:13]File name is /storage/kkm_last_timestamp [19:22:13]Write 4 bytes [19:22:13]NVStorageSaveData done [19:22:13]ExternCall_PrintAddStr [19:22:13]wPrintStart [19:22:13]Write to MH i2c: 01 00 00 D3 31 04 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 07 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 07 00 D3 31 00 00 00 00 00 FF 0F 19 [19:22:13]RasterBufferAndPrint [19:22:13]line Счет N : (1)979906 [19:22:13]line ИНН: 02508201610067 [19:22:13]line Контрольно-Кассовый Чек [19:22:13]line ПРОДАЖА [19:22:13]line ТРК (МРК, ГНК) : 51 [19:22:13]line Товар: 2710194210 [19:22:13]line ДТ-К-5 [19:22:13]line 30.180 * 72.90 [19:22:13]line = 2200.12 [19:22:13]line НДС 12% НСП 1% [19:22:13]line > о реализуемом товаре [19:22:13]line ОКРУГЛЕНИЕ: -0.12 [19:22:13]line ИТОГО: 2200.00 [19:22:13]line Внесено: 2200.00 [19:22:13]line СДАЧА: 0.00 [19:22:13]line НСП 1% : 19.47 [19:22:13]line НДС 12% : 233.64 [19:22:13]line Наличными: 2200.00 [19:22:13]line Безнал.: 0.00 [19:22:13]line Место: АЗС № 68 "Партнер Нефть" [19:22:13]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:22:13]line СНО: Общий режим [19:22:13]line Чек 314 04.06.2024 19:22 [19:22:13]line Смена: 368 ФФД: 1.0 [19:22:13]line ЗНМ: 0300000035 [19:22:13]line РНМ: 0000000000092720 [19:22:13]line Версия ККМ: 001 [19:22:13]line ФМ: 0000000000875057 [19:22:13]line ФД: 148975 [19:22:13]line ФПД: 87017841618598 [19:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192214&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148975&fm=87017841618598&tin=02508201610067®Number=0000000000092720&sum=220000 [19:22:14]OFD Sender: Processing packet 148975 [packets to send 100, broken 99] [19:22:14]ProducePacketName [19:22:14]name=ofd_packets/00148975 [19:22:14]OFD Sender: To server: pG, [19:22:14]CommunicateWithHost lk.salyk.kg:30040 [19:22:14]ConnectInit lk.salyk.kg [19:22:14]written 0, free lines is 4095 [19:22:14]Connected sock=10 [19:22:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 87 76 04 01 FE F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 66 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 EF 45 02 00 35 04 06 00 4F 24 6B 89 EE A6 3A E6 FD CE 38 55 8E 84 [19:22:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BC A3 47 00 76 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 38 37 35 30 35 37 10 04 04 00 EF 45 02 00 F4 03 04 00 89 10 5F 66 B6 04 01 00 00 95 D3 89 43 D9 1D EF 4F [19:22:14]CommunicateWithHost err = 0 [19:22:14]CheckOFDResponse [19:22:14]1017 (14) - 77093643461234 [19:22:14]1041 (16) - 0000000000875057 [19:22:14]1040 (4) - 148975 [19:22:14]1012 (4) - 04.06.2024 13:03 [19:22:14]1206 (1) - 0 [19:22:14]OFD Sender: Remove packet 148975 [19:22:14]ProducePacketName [19:22:14]name=ofd_packets/00148975 [19:22:14]NVStorageDeleteData [19:22:14]Write to MH i2c: 01 00 00 FE 31 2F [19:22:14]Write i2c OK [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: 01 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: 01 07 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: 01 07 00 FE 31 00 00 00 00 00 94 0C D6 [19:22:14]RasterBufferAndPrint [19:22:14]line [19:22:14]line [19:22:14]line [19:22:14]line [19:22:14]line [19:22:14]written 0, free lines is 3224 [19:22:14]MH_Cut [19:22:14]Write to MH i2c: D1 01 00 05 32 01 09 [19:22:14]Write i2c OK [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: D1 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: D1 01 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: D1 01 00 05 32 00 08 [19:22:14]Write to MH i2c: 01 00 00 06 32 38 [19:22:14]Write i2c OK [19:22:14]MH_I2C_Read... [19:22:15]OFD Sender: No OFD packet to send [19:22:15]*** Cut start [19:22:15]*** Partial cut [19:22:15]*** CUTSNS_PIN = 1 [19:22:15]*** CUTSNS_PIN = 0 [19:22:15]*** Brake cut motor [19:22:16]Read from MH i2c: 01 [19:22:16]MH_I2C_Read... [19:22:16]*** Stop cut motor [19:22:16]*** Cut end [19:22:16]Read from MH i2c: 01 07 00 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: 01 07 00 06 32 00 00 00 00 00 FF 0F 4D [19:22:16]process_action close_receipt done [19:22:16]requested_data is exist [19:22:16]produce_requested_data [19:22:16]requested_item fm.sn is exist - process it [19:22:16]wFMCommunicate request_size=4 [19:22:16]MH_SAM_APDU [19:22:16]CAPDU: 80 11 00 00 [19:22:16]Write to MH i2c: E2 08 00 07 32 80 11 00 00 00 00 00 00 B3 [19:22:16]Write i2c OK [19:22:16]MH_I2C_Read... [19:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:16]Read from MH i2c: E2 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: E2 17 00 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: E2 17 00 07 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 06 [19:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:22:16]wFMCommunicate OK [19:22:16]requested_item fd.num is exist - process it [19:22:16]SAM_PROTO_GetFieldsCounters [19:22:16]wFMCommunicate request_size=4 [19:22:16]MH_SAM_APDU [19:22:16]CAPDU: 80 13 00 00 [19:22:16]Write to MH i2c: E2 08 00 08 32 80 13 00 00 00 00 00 00 B6 [19:22:16]Write i2c OK [19:22:16]MH_I2C_Read... [19:22:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:16]Read from MH i2c: E2 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: E2 62 00 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: E2 62 00 08 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [19:22:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 EF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:16]wFMCommunicate OK [19:22:16]SAM_PROTO_GetFieldsCounters done [19:22:16]requested_item shift.num is exist - process it [19:22:16]requested_item shift.opened is exist - process it [19:22:16]req_shift_opened [19:22:16]FM_GetShiftState [19:22:16]SAM_PROTO_GetShiftState [19:22:16]wFMCommunicate request_size=4 [19:22:16]MH_SAM_APDU [19:22:16]CAPDU: 80 13 01 00 [19:22:16]Write to MH i2c: E2 08 00 09 32 80 13 01 00 00 00 00 00 B8 [19:22:16]Write i2c OK [19:22:16]MH_I2C_Read... [19:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:16]Read from MH i2c: E2 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: E2 0E 00 [19:22:16]MH_I2C_Read... [19:22:16]Read from MH i2c: E2 0E 00 09 32 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7B [19:22:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:22:16]wFMCommunicate OK [19:22:16]SAM_PROTO_GetShiftState done [19:22:16]FM_GetShiftState done [19:22:16]req_shift_opened done [19:22:16]requested_item shift.open_date is exist - process it [19:22:16]req_shift_open_date [19:22:16]req_shift_open_date done [19:22:16]produce_requested_data done [19:22:16]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148975,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:22:16]process_action_free close_receipt [19:22:16]json_value_free [19:22:16]json_value_free done [19:22:16]process_json_proto returns [19:22:16]Send response to host [19:22:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148975,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:22:16]free response buf [19:22:16]execute_script done [19:22:16]execute_script returns [19:22:16]free content buf [19:22:16]Sock 9.Close socket [19:22:16]Sock 9.Thread stoped [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:07]accept exits with 7 [19:23:07]New connection [19:23:07]New thread 3067264356 created [19:23:07]Thread 3067407716 joined [19:23:07]Waiting for new connection... [19:23:07] Sock 7.Parse request [19:23:07]Sock 7.Check first char [19:23:07]Sock 7.First char is OK [19:23:07]request: POST /json_proto HTTP/1.0 [19:23:07]Method: POST [19:23:07]URL: /json_proto [19:23:07]Method is POST - this is cgi request [19:23:07]url: /json_proto [19:23:07]query_string will be loaded in cgi processing [19:23:07]execute_cgi json_proto POST (null) [19:23:07]execute_cgi path=json_proto method=POST [19:23:07]POST find Content-Length [19:23:07]Host: 172.17.38.4:8080 [19:23:07]Content-Length: 677 [19:23:07]Content-Type: application/json [19:23:07] [19:23:07]POST finish read [19:23:07]Found Content-Length = 677 [19:23:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:07]execute_script... [19:23: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)979908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:07]POST & json_proto [19:23:07]process_json_proto [19:23:07]json parsed OK: [19:23:07]protocol is kg_v1.0 [19:23:07]action value=close_receipt [19:23:07]process_action close_receipt [19:23:07]cmd_close_receipt [19:23:07]MH_GetDate [19:23:07]Write to MH i2c: F0 00 00 0A 32 2B [19:23:07]Write i2c OK [19:23:07]MH_I2C_Read... [19:23:07]Read from MH i2c: F0 [19:23:07]MH_I2C_Read... [19:23:07]Read from MH i2c: F0 09 00 [19:23:07]MH_I2C_Read... [19:23:07]Read from MH i2c: F0 09 00 0A 32 00 9D 69 5F 66 CC 51 87 64 07 [19:23:07]GetLastDocTimeStamp 1717528934 [19:23:07]current date 1717528989 [19:23:07]FM_GetShiftState [19:23:07]SAM_PROTO_GetShiftState [19:23:07]wFMCommunicate request_size=4 [19:23:07]MH_SAM_APDU [19:23:07]CAPDU: 80 13 01 00 [19:23:07]Write to MH i2c: E2 08 00 0B 32 80 13 01 00 00 00 00 00 BA [19:23:07]Write i2c OK [19:23:07]MH_I2C_Read... [19:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:07]Read from MH i2c: E2 [19:23:07]MH_I2C_Read... [19:23:07]Read from MH i2c: E2 0E 00 [19:23:07]MH_I2C_Read... [19:23:07]Read from MH i2c: E2 0E 00 0B 32 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7D [19:23:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:23:07]wFMCommunicate OK [19:23:07]SAM_PROTO_GetShiftState done [19:23:07]FM_GetShiftState done [19:23:07]opened in 1717460629 [19:23:07]opened+sec_in_day 1717547029 [19:23:07]quantity*price = 20003 [19:23:07]sum+1 = 20004 [19:23:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 315 04.06.2024 19:23 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148976 ФПД: 114160458090299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192309&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148976&fm=114160458090299&tin=02508201610067®Number=0000000000092720&sum=20000 [19:23:08]StoreToDocumentArchive [19:23:08]shift 368 fd 148976 [19:23:08]save to /storage/0368/doc_00148976 [19:23:08]save last doc name /storage/0368/doc_00148976 to /storage/kkm_last_doc_name [19:23:08]save OK [19:23:08]Clear old archive folders... [19:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:08]tlvbuf is 004C68F0 [19:23:08]SAM_PROTO_ClearQueue [19:23:08]wFMCommunicate request_size=4 [19:23:08]MH_SAM_APDU [19:23:08]CAPDU: 80 09 00 00 [19:23:08]Write to MH i2c: E2 08 00 18 32 80 09 00 00 00 00 00 00 BC [19:23:08]Write i2c OK [19:23:08]MH_I2C_Read... [19:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:08]Read from MH i2c: E2 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 18 32 00 90 00 BE [19:23:08]RAPDU: 90 00 [19:23:08]wFMCommunicate OK [19:23:08]SAM_PROTO_ClearQueue done [19:23:08]KKMCreateOFDPacket [19:23:08]OFDProtocolAddRootSTLVToBuf [19:23:08]FM_MakeSignedData [19:23:08]FM_MakeSignedData [19:23:08]SAM_PROTO_SignData [19:23:08]wFMCommunicate request_size=4 [19:23:08]MH_SAM_APDU [19:23:08]CAPDU: 80 0D 01 02 [19:23:08]Write to MH i2c: E2 08 00 19 32 80 0D 01 02 00 00 00 00 C4 [19:23:08]Write i2c OK [19:23:08]MH_I2C_Read... [19:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:08]Read from MH i2c: E2 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 19 32 00 90 00 BF [19:23:08]RAPDU: 90 00 [19:23:08]wFMCommunicate OK [19:23:08]wFMCommunicate request_size=255 [19:23:08]MH_SAM_APDU [19:23:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3B 01 00 00 F4 03 04 00 9D 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 45 02 00 35 04 06 00 67 [19:23:08]Write to MH i2c: E2 02 01 1A 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 9D 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 45 02 00 35 04 06 00 67 00 00 26 [19:23:08]Write i2c OK [19:23:08]MH_I2C_Read... [19:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:09]Read from MH i2c: E2 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 03 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 03 00 1A 32 00 90 00 C0 [19:23:09]RAPDU: 90 00 [19:23:09]wFMCommunicate OK [19:23:09]wFMCommunicate request_size=10 [19:23:09]MH_SAM_APDU [19:23:09]CAPDU: 80 0D 02 02 05 D4 0D 8D 47 3B [19:23:09]Write to MH i2c: E2 0D 00 1B 32 80 0D 02 02 05 00 D4 0D 8D 47 3B 00 00 C1 [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:09]Read from MH i2c: E2 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 03 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 03 00 1B 32 00 90 00 C1 [19:23:09]RAPDU: 90 00 [19:23:09]wFMCommunicate OK [19:23:09]wFMCommunicate request_size=4 [19:23:09]MH_SAM_APDU [19:23:09]CAPDU: 80 0D 03 02 [19:23:09]Write to MH i2c: E2 08 00 1C 32 80 0D 03 02 00 00 00 00 C9 [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:09]Read from MH i2c: E2 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 0B 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 0B 00 1C 32 00 95 68 12 75 75 71 39 4E 90 00 BB [19:23:09]RAPDU: 95 68 12 75 75 71 39 4E 90 00 [19:23:09]wFMCommunicate OK [19:23:09]SAM_PROTO_SignData done [19:23:09]FM_MakeSignedData done [19:23:09]CreateOFDProtocolMessage [19:23:09]wFMCommunicate request_size=4 [19:23:09]MH_SAM_APDU [19:23:09]CAPDU: 80 11 00 00 [19:23:09]Write to MH i2c: E2 08 00 1D 32 80 11 00 00 00 00 00 00 C9 [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:09]Read from MH i2c: E2 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 17 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: E2 17 00 1D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1C [19:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:23:09]wFMCommunicate OK [19:23:09]CreateOFDProtocolMessage done [19:23:09]OFDSenderStorePacket 148976 [19:23:09]StoreOFDPacket docnum=148976 [19:23:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 75 53 07 01 A4 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 9D 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 45 02 00 35 04 06 00 67 D4 0D 8D 47 3B 95 68 12 75 75 71 39 4E [19:23:09]CheckFolder [19:23:09]dirname=/storage/ofd_packets [19:23:09]CheckFolder done [19:23:09]ProducePacketName [19:23:09]name=ofd_packets/00148976 [19:23:09]NVStorageSaveData ofd_packets/00148976 [19:23:09]File name is /storage/ofd_packets/00148976 [19:23:09]Write 301 bytes [19:23:09]NVStorageSaveData done [19:23:09]OFDSenderStorePacket done [19:23:09]KKMCreateOFDPacket done [19:23:09]NVStorageSaveData kkm_last_timestamp [19:23:09]File name is /storage/kkm_last_timestamp [19:23:09]Write 4 bytes [19:23:09]NVStorageSaveData done [19:23:09]ExternCall_PrintAddStr [19:23:09]wPrintStart [19:23:09]Write to MH i2c: 01 00 00 1E 32 50 [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: 01 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: 01 07 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: 01 07 00 1E 32 00 00 00 00 00 FF 0F 65 [19:23:09]RasterBufferAndPrint [19:23:09]line Счет N : (1)979908 [19:23:09]line ИНН: 02508201610067 [19:23:09]line Контрольно-Кассовый Чек [19:23:09]line ПРОДАЖА [19:23:09]line ТРК (МРК, ГНК) : 31 [19:23:09]line Товар: 2710124130 [19:23:09]line Аи-92-К-5 [19:23:09]line 2.990 * 66.90 [19:23:09]line = 200.03 [19:23:09]line НДС 12% НСП 1% [19:23:09]line > о реализуемом товаре [19:23:09]line ОКРУГЛЕНИЕ: -0.03 [19:23:09]line ИТОГО: 200.00 [19:23:09]line Внесено: 200.00 [19:23:09]line СДАЧА: 0.00 [19:23:09]line НСП 1% : 1.77 [19:23:09]line НДС 12% : 21.24 [19:23:09]line Наличными: 200.00 [19:23:09]line Безнал.: 0.00 [19:23:09]line Место: АЗС № 68 "Партнер Нефть" [19:23:09]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:23:09]line СНО: Общий режим [19:23:09]line Чек 315 04.06.2024 19:23 [19:23:09]line Смена: 368 ФФД: 1.0 [19:23:09]line ЗНМ: 0300000035 [19:23:09]line РНМ: 0000000000092720 [19:23:09]line Версия ККМ: 001 [19:23:09]line ФМ: 0000000000875057 [19:23:09]line ФД: 148976 [19:23:09]line ФПД: 114160458090299 [19:23:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192309&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148976&fm=114160458090299&tin=02508201610067®Number=0000000000092720&sum=20000 [19:23:09]OFD Sender: Processing packet 148976 [packets to send 100, broken 99] [19:23:09]ProducePacketName [19:23:09]name=ofd_packets/00148976 [19:23:09]OFD Sender: To server: pG, [19:23:09]CommunicateWithHost lk.salyk.kg:30040 [19:23:09]ConnectInit lk.salyk.kg [19:23:09]written 0, free lines is 4095 [19:23:09]Connected sock=10 [19:23:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 75 53 07 01 A4 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 9D 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 45 02 00 35 04 06 00 67 D4 0D 8D 47 3B 95 68 12 75 75 71 39 4E [19:23:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 6F 3B 47 00 48 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 45 02 00 F4 03 04 00 C1 10 5F 66 B6 04 01 00 00 DA 07 6B 09 1A 14 CA 73 [19:23:09]CommunicateWithHost err = 0 [19:23:09]CheckOFDResponse [19:23:09]1017 (14) - 77093643461234 [19:23:09]1041 (16) - 0000000000875057 [19:23:09]1040 (4) - 148976 [19:23:09]1012 (4) - 04.06.2024 13:04 [19:23:09]1206 (1) - 0 [19:23:09]OFD Sender: Remove packet 148976 [19:23:09]ProducePacketName [19:23:09]name=ofd_packets/00148976 [19:23:09]NVStorageDeleteData [19:23:10]Write to MH i2c: 01 00 00 49 32 7B [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: 01 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: 01 07 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: 01 07 00 49 32 00 00 00 00 00 8C 0C 1A [19:23:10]RasterBufferAndPrint [19:23:10]line [19:23:10]line [19:23:10]line [19:23:10]line [19:23:10]line [19:23:10]written 0, free lines is 3216 [19:23:10]MH_Cut [19:23:10]Write to MH i2c: D1 01 00 50 32 01 54 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: D1 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: D1 01 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: D1 01 00 50 32 00 53 [19:23:10]Write to MH i2c: 01 00 00 51 32 83 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]OFD Sender: No OFD packet to send [19:23:11]*** Cut start [19:23:11]*** Partial cut [19:23:11]*** CUTSNS_PIN = 1 [19:23:11]*** CUTSNS_PIN = 0 [19:23:11]*** Brake cut motor [19:23:11]Read from MH i2c: 01 [19:23:11]MH_I2C_Read... [19:23:11]*** Stop cut motor [19:23:11]*** Cut end [19:23:11]Read from MH i2c: 01 07 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: 01 07 00 51 32 00 00 00 00 00 FF 0F 98 [19:23:11]process_action close_receipt done [19:23:11]requested_data is exist [19:23:11]produce_requested_data [19:23:11]requested_item fm.sn is exist - process it [19:23:11]wFMCommunicate request_size=4 [19:23:11]MH_SAM_APDU [19:23:11]CAPDU: 80 11 00 00 [19:23:11]Write to MH i2c: E2 08 00 52 32 80 11 00 00 00 00 00 00 FE [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:11]Read from MH i2c: E2 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 17 00 [19:23:11]MH_I2C_Read... [19:23:11]Read from MH i2c: E2 17 00 52 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 51 [19:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:23:11]wFMCommunicate OK [19:23:11]requested_item fd.num is exist - process it [19:23:11]SAM_PROTO_GetFieldsCounters [19:23:11]wFMCommunicate request_size=4 [19:23:11]MH_SAM_APDU [19:23:11]CAPDU: 80 13 00 00 [19:23:11]Write to MH i2c: E2 08 00 53 32 80 13 00 00 00 00 00 00 01 [19:23:11]Write i2c OK [19:23:11]MH_I2C_Read... [19:23:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:12]Read from MH i2c: E2 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: E2 62 00 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: E2 62 00 53 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F0 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [19:23:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F0 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:12]wFMCommunicate OK [19:23:12]SAM_PROTO_GetFieldsCounters done [19:23:12]requested_item shift.num is exist - process it [19:23:12]requested_item shift.opened is exist - process it [19:23:12]req_shift_opened [19:23:12]FM_GetShiftState [19:23:12]SAM_PROTO_GetShiftState [19:23:12]wFMCommunicate request_size=4 [19:23:12]MH_SAM_APDU [19:23:12]CAPDU: 80 13 01 00 [19:23:12]Write to MH i2c: E2 08 00 54 32 80 13 01 00 00 00 00 00 03 [19:23:12]Write i2c OK [19:23:12]MH_I2C_Read... [19:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:12]Read from MH i2c: E2 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: E2 0E 00 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: E2 0E 00 54 32 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C6 [19:23:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:23:12]wFMCommunicate OK [19:23:12]SAM_PROTO_GetShiftState done [19:23:12]FM_GetShiftState done [19:23:12]req_shift_opened done [19:23:12]requested_item shift.open_date is exist - process it [19:23:12]req_shift_open_date [19:23:12]req_shift_open_date done [19:23:12]produce_requested_data done [19:23:12]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148976,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:23:12]process_action_free close_receipt [19:23:12]json_value_free [19:23:12]json_value_free done [19:23:12]process_json_proto returns [19:23:12]Send response to host [19:23:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148976,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:23:12]free response buf [19:23:12]execute_script done [19:23:12]execute_script returns [19:23:12]free content buf [19:23:12]Sock 7.Close socket [19:23:12]Sock 7.Thread stoped [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:12]accept exits with 9 [19:24:12]New connection [19:24:12]New thread 3067407716 created [19:24:12]Thread 3067264356 joined [19:24:12]Waiting for new connection... [19:24:12] Sock 9.Parse request [19:24:12]Sock 9.Check first char [19:24:12]Sock 9.First char is OK [19:24:12]request: POST /json_proto HTTP/1.0 [19:24:12]Method: POST [19:24:12]URL: /json_proto [19:24:12]Method is POST - this is cgi request [19:24:12]url: /json_proto [19:24:12]query_string will be loaded in cgi processing [19:24:12]execute_cgi json_proto POST (null) [19:24:12]execute_cgi path=json_proto method=POST [19:24:12]POST find Content-Length [19:24:12]Host: 172.17.38.4:8080 [19:24:12]Content-Length: 677 [19:24:12]Content-Type: application/json [19:24:12] [19:24:12]POST finish read [19:24:12]Found Content-Length = 677 [19:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:12]execute_script... [19:24:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:12]POST & json_proto [19:24:12]process_json_proto [19:24:12]json parsed OK: [19:24:12]protocol is kg_v1.0 [19:24:12]action value=close_receipt [19:24:12]process_action close_receipt [19:24:12]cmd_close_receipt [19:24:12]MH_GetDate [19:24:12]Write to MH i2c: F0 00 00 55 32 76 [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: F0 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: F0 09 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: F0 09 00 55 32 00 DE 69 5F 66 CC 51 87 64 93 [19:24:12]GetLastDocTimeStamp 1717528989 [19:24:12]current date 1717529054 [19:24:12]FM_GetShiftState [19:24:12]SAM_PROTO_GetShiftState [19:24:12]wFMCommunicate request_size=4 [19:24:12]MH_SAM_APDU [19:24:12]CAPDU: 80 13 01 00 [19:24:12]Write to MH i2c: E2 08 00 56 32 80 13 01 00 00 00 00 00 05 [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 0E 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 0E 00 56 32 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C8 [19:24:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:24:12]wFMCommunicate OK [19:24:12]SAM_PROTO_GetShiftState done [19:24:12]FM_GetShiftState done [19:24:12]opened in 1717460629 [19:24:12]opened+sec_in_day 1717547029 [19:24:12]quantity*price = 20003 [19:24:12]sum+1 = 20004 [19:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 316 04.06.2024 19:24 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148977 ФПД: 259853148732603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192414&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148977&fm=259853148732603&tin=02508201610067®Number=0000000000092720&sum=20000 [19:24:13]StoreToDocumentArchive [19:24:13]shift 368 fd 148977 [19:24:13]save to /storage/0368/doc_00148977 [19:24:13]save last doc name /storage/0368/doc_00148977 to /storage/kkm_last_doc_name [19:24:13]save OK [19:24:13]Clear old archive folders... [19:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:13]tlvbuf is 0052E760 [19:24:13]SAM_PROTO_ClearQueue [19:24:13]wFMCommunicate request_size=4 [19:24:13]MH_SAM_APDU [19:24:13]CAPDU: 80 09 00 00 [19:24:13]Write to MH i2c: E2 08 00 63 32 80 09 00 00 00 00 00 00 07 [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:13]Read from MH i2c: E2 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 03 00 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 03 00 63 32 00 90 00 09 [19:24:13]RAPDU: 90 00 [19:24:13]wFMCommunicate OK [19:24:13]SAM_PROTO_ClearQueue done [19:24:13]KKMCreateOFDPacket [19:24:13]OFDProtocolAddRootSTLVToBuf [19:24:13]FM_MakeSignedData [19:24:13]FM_MakeSignedData [19:24:13]SAM_PROTO_SignData [19:24:13]wFMCommunicate request_size=4 [19:24:13]MH_SAM_APDU [19:24:13]CAPDU: 80 0D 01 02 [19:24:13]Write to MH i2c: E2 08 00 64 32 80 0D 01 02 00 00 00 00 0F [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:13]Read from MH i2c: E2 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 03 00 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 03 00 64 32 00 90 00 0A [19:24:13]RAPDU: 90 00 [19:24:13]wFMCommunicate OK [19:24:13]wFMCommunicate request_size=255 [19:24:13]MH_SAM_APDU [19:24:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 DE 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 45 02 00 35 04 06 00 EC [19:24:13]Write to MH i2c: E2 02 01 65 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 DE 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 45 02 00 35 04 06 00 EC 00 00 39 [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:13]Read from MH i2c: E2 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 03 00 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 03 00 65 32 00 90 00 0B [19:24:13]RAPDU: 90 00 [19:24:13]wFMCommunicate OK [19:24:13]wFMCommunicate request_size=10 [19:24:13]MH_SAM_APDU [19:24:13]CAPDU: 80 0D 02 02 05 55 C6 9F BC BB [19:24:13]Write to MH i2c: E2 0D 00 66 32 80 0D 02 02 05 00 55 C6 9F BC BB 00 00 4D [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:13]Read from MH i2c: E2 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 03 00 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 03 00 66 32 00 90 00 0C [19:24:13]RAPDU: 90 00 [19:24:13]wFMCommunicate OK [19:24:13]wFMCommunicate request_size=4 [19:24:13]MH_SAM_APDU [19:24:13]CAPDU: 80 0D 03 02 [19:24:13]Write to MH i2c: E2 08 00 67 32 80 0D 03 02 00 00 00 00 14 [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:13]Read from MH i2c: E2 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 0B 00 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 0B 00 67 32 00 0E B3 00 7F B7 49 A3 41 90 00 39 [19:24:13]RAPDU: 0E B3 00 7F B7 49 A3 41 90 00 [19:24:13]wFMCommunicate OK [19:24:13]SAM_PROTO_SignData done [19:24:13]FM_MakeSignedData done [19:24:13]CreateOFDProtocolMessage [19:24:13]wFMCommunicate request_size=4 [19:24:13]MH_SAM_APDU [19:24:13]CAPDU: 80 11 00 00 [19:24:13]Write to MH i2c: E2 08 00 68 32 80 11 00 00 00 00 00 00 14 [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:14]Read from MH i2c: E2 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: E2 17 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: E2 17 00 68 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 67 [19:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:24:14]wFMCommunicate OK [19:24:14]CreateOFDProtocolMessage done [19:24:14]OFDSenderStorePacket 148977 [19:24:14]StoreOFDPacket docnum=148977 [19:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 60 94 07 01 1C FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 DE 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 45 02 00 35 04 06 00 EC 55 C6 9F BC BB 0E B3 00 7F B7 49 A3 41 [19:24:14]CheckFolder [19:24:14]dirname=/storage/ofd_packets [19:24:14]CheckFolder done [19:24:14]ProducePacketName [19:24:14]name=ofd_packets/00148977 [19:24:14]NVStorageSaveData ofd_packets/00148977 [19:24:14]File name is /storage/ofd_packets/00148977 [19:24:14]Write 301 bytes [19:24:14]NVStorageSaveData done [19:24:14]OFDSenderStorePacket done [19:24:14]KKMCreateOFDPacket done [19:24:14]NVStorageSaveData kkm_last_timestamp [19:24:14]File name is /storage/kkm_last_timestamp [19:24:14]Write 4 bytes [19:24:14]NVStorageSaveData done [19:24:14]ExternCall_PrintAddStr [19:24:14]wPrintStart [19:24:14]Write to MH i2c: 01 00 00 69 32 9B [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 07 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 07 00 69 32 00 00 00 00 00 FF 0F B0 [19:24:14]RasterBufferAndPrint [19:24:14]line Счет N : (1)979909 [19:24:14]line ИНН: 02508201610067 [19:24:14]line Контрольно-Кассовый Чек [19:24:14]line ПРОДАЖА [19:24:14]line ТРК (МРК, ГНК) : 41 [19:24:14]line Товар: 2710124130 [19:24:14]line Аи-92-К-5 [19:24:14]line 2.990 * 66.90 [19:24:14]line = 200.03 [19:24:14]line НДС 12% НСП 1% [19:24:14]line > о реализуемом товаре [19:24:14]line ОКРУГЛЕНИЕ: -0.03 [19:24:14]line ИТОГО: 200.00 [19:24:14]line Внесено: 200.00 [19:24:14]line СДАЧА: 0.00 [19:24:14]line НСП 1% : 1.77 [19:24:14]line НДС 12% : 21.24 [19:24:14]line Наличными: 200.00 [19:24:14]line Безнал.: 0.00 [19:24:14]line Место: АЗС № 68 "Партнер Нефть" [19:24:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:24:14]line СНО: Общий режим [19:24:14]line Чек 316 04.06.2024 19:24 [19:24:14]line Смена: 368 ФФД: 1.0 [19:24:14]line ЗНМ: 0300000035 [19:24:14]line РНМ: 0000000000092720 [19:24:14]line Версия ККМ: 001 [19:24:14]line ФМ: 0000000000875057 [19:24:14]line ФД: 148977 [19:24:14]line ФПД: 259853148732603 [19:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192414&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148977&fm=259853148732603&tin=02508201610067®Number=0000000000092720&sum=20000 [19:24:14]OFD Sender: Processing packet 148977 [packets to send 100, broken 99] [19:24:14]ProducePacketName [19:24:14]name=ofd_packets/00148977 [19:24:14]OFD Sender: To server: pG, [19:24:14]CommunicateWithHost lk.salyk.kg:30040 [19:24:14]ConnectInit lk.salyk.kg [19:24:14]written 0, free lines is 4095 [19:24:14]Connected sock=10 [19:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 60 94 07 01 1C FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 DE 69 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 45 02 00 35 04 06 00 EC 55 C6 9F BC BB 0E B3 00 7F B7 49 A3 41 [19:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 2F CF 47 00 AA 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 38 37 35 30 35 37 10 04 04 00 F1 45 02 00 F4 03 04 00 01 11 5F 66 B6 04 01 00 00 AD AC 34 DD 65 DD A2 DE [19:24:14]CommunicateWithHost err = 0 [19:24:14]CheckOFDResponse [19:24:14]1017 (14) - 77093643461234 [19:24:14]1041 (16) - 0000000000875057 [19:24:14]1040 (4) - 148977 [19:24:14]1012 (4) - 04.06.2024 13:05 [19:24:14]1206 (1) - 0 [19:24:14]OFD Sender: Remove packet 148977 [19:24:14]ProducePacketName [19:24:14]name=ofd_packets/00148977 [19:24:14]NVStorageDeleteData [19:24:14]Write to MH i2c: 01 00 00 94 32 C6 [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 07 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 07 00 94 32 00 00 00 00 00 90 0C 69 [19:24:14]RasterBufferAndPrint [19:24:14]line [19:24:14]line [19:24:14]line [19:24:14]line [19:24:14]line [19:24:14]written 0, free lines is 3222 [19:24:14]MH_Cut [19:24:14]Write to MH i2c: D1 01 00 9B 32 01 9F [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: D1 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: D1 01 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: D1 01 00 9B 32 00 9E [19:24:14]Write to MH i2c: 01 00 00 9C 32 CE [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:15]OFD Sender: No OFD packet to send [19:24:15]*** Cut start [19:24:15]*** Partial cut [19:24:15]*** CUTSNS_PIN = 1 [19:24:15]*** CUTSNS_PIN = 0 [19:24:16]*** Brake cut motor [19:24:16]Read from MH i2c: 01 [19:24:16]MH_I2C_Read... [19:24:16]*** Stop cut motor [19:24:16]*** Cut end [19:24:16]Read from MH i2c: 01 07 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 9C 32 00 00 00 00 00 FF 0F E3 [19:24:16]process_action close_receipt done [19:24:16]requested_data is exist [19:24:16]produce_requested_data [19:24:16]requested_item fm.sn is exist - process it [19:24:16]wFMCommunicate request_size=4 [19:24:16]MH_SAM_APDU [19:24:16]CAPDU: 80 11 00 00 [19:24:16]Write to MH i2c: E2 08 00 9D 32 80 11 00 00 00 00 00 00 49 [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:16]Read from MH i2c: E2 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 17 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 17 00 9D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9C [19:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:24:16]wFMCommunicate OK [19:24:16]requested_item fd.num is exist - process it [19:24:16]SAM_PROTO_GetFieldsCounters [19:24:16]wFMCommunicate request_size=4 [19:24:16]MH_SAM_APDU [19:24:16]CAPDU: 80 13 00 00 [19:24:16]Write to MH i2c: E2 08 00 9E 32 80 13 00 00 00 00 00 00 4C [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:16]Read from MH i2c: E2 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 62 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 62 00 9E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [19:24:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:16]wFMCommunicate OK [19:24:16]SAM_PROTO_GetFieldsCounters done [19:24:16]requested_item shift.num is exist - process it [19:24:16]requested_item shift.opened is exist - process it [19:24:16]req_shift_opened [19:24:16]FM_GetShiftState [19:24:16]SAM_PROTO_GetShiftState [19:24:16]wFMCommunicate request_size=4 [19:24:16]MH_SAM_APDU [19:24:16]CAPDU: 80 13 01 00 [19:24:16]Write to MH i2c: E2 08 00 9F 32 80 13 01 00 00 00 00 00 4E [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:16]Read from MH i2c: E2 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 0E 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: E2 0E 00 9F 32 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 11 [19:24:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:24:16]wFMCommunicate OK [19:24:16]SAM_PROTO_GetShiftState done [19:24:16]FM_GetShiftState done [19:24:16]req_shift_opened done [19:24:16]requested_item shift.open_date is exist - process it [19:24:16]req_shift_open_date [19:24:16]req_shift_open_date done [19:24:16]produce_requested_data done [19:24:16]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148977,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:24:16]process_action_free close_receipt [19:24:16]json_value_free [19:24:16]json_value_free done [19:24:16]process_json_proto returns [19:24:16]Send response to host [19:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148977,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:24:16]free response buf [19:24:16]execute_script done [19:24:16]execute_script returns [19:24:16]free content buf [19:24:16]Sock 9.Close socket [19:24:16]Sock 9.Thread stoped [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:25:57]accept exits with 7 [19:25:57]New connection [19:25:57]New thread 3067264356 created [19:25:57]Thread 3067407716 joined [19:25:57]Waiting for new connection... [19:25:57] Sock 7.Parse request [19:25:57]Sock 7.Check first char [19:25:57]Sock 7.First char is OK [19:25:57]request: POST /json_proto HTTP/1.0 [19:25:57]Method: POST [19:25:57]URL: /json_proto [19:25:57]Method is POST - this is cgi request [19:25:57]url: /json_proto [19:25:57]query_string will be loaded in cgi processing [19:25:57]execute_cgi json_proto POST (null) [19:25:57]execute_cgi path=json_proto method=POST [19:25:57]POST find Content-Length [19:25:57]Host: 172.17.38.4:8080 [19:25:57]Content-Length: 1179 [19:25:57]Content-Type: application/json [19:25:57] [19:25:57]POST finish read [19:25:57]Found Content-Length = 1179 [19:25:57]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979910\u000A04.06.2024 19:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3592678\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:57]execute_script... [19:25:57]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979910\u000A04.06.2024 19:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3592678\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:57]POST & json_proto [19:25:57]process_json_proto [19:25:57]json parsed OK: [19:25:57]protocol is kg_v1.0 [19:25:57]action value=print_text [19:25:57]process_action print_text [19:25:57]cmd_print_text [19:25:57]ExternCall_PrintAddStr [19:25:57]wPrintStart [19:25:57]Write to MH i2c: 01 00 00 A0 32 D2 [19:25:57]Write i2c OK [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: 01 [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: 01 07 00 [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: 01 07 00 A0 32 00 00 00 00 00 FF 0F E7 [19:25:57]RasterBufferAndPrint [19:25:57]line *****ТОВАРНЫЙ ЧЕК***** [19:25:57]line АЗС 68 [19:25:57]line Партнер нефть [19:25:57]line 02508201610067 [19:25:57]line Кассир : Аскаров Н. [19:25:57]line Счет N : (1)979910 [19:25:57]line 04.06.2024 19:06 [19:25:57]line ПРОДАЖА [19:25:57]line ТРК (МРК, ГНК): 12 [19:25:57]line Вид ГСМ : 2710124130 [19:25:57]line Аи-92-К-5 [19:25:57]line 20.000 x 66.90 [19:25:57]line ИТОГ: 1338.00 [19:25:57]line Тип оплаты: Талоны: Партнер нефть [19:25:57]line 3592678 [19:25:57]line ______________________ [19:25:57]line (подпись) [19:25:57]written 0, free lines is 4095 [19:25:57]Write to MH i2c: 01 00 00 B4 32 E6 [19:25:57]Write i2c OK [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: 01 [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: 01 07 00 [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: 01 07 00 B4 32 00 00 00 00 00 11 0E 0C [19:25:57]RasterBufferAndPrint [19:25:57]line [19:25:57]line [19:25:57]line [19:25:57]line [19:25:57]line [19:25:57]written 0, free lines is 3602 [19:25:57]MH_Cut [19:25:57]Write to MH i2c: D1 01 00 BB 32 01 BF [19:25:57]Write i2c OK [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: D1 [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: D1 01 00 [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: D1 01 00 BB 32 00 BE [19:25:57]Write to MH i2c: 01 00 00 BC 32 EE [19:25:57]Write i2c OK [19:25:57]MH_I2C_Read... [19:25:57]*** Cut start [19:25:57]*** Partial cut [19:25:57]*** CUTSNS_PIN = 1 [19:25:57]*** CUTSNS_PIN = 0 [19:25:58]*** Brake cut motor [19:25:58]Read from MH i2c: 01 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: 01 07 00 [19:25:58]MH_I2C_Read... [19:25:58]*** Stop cut motor [19:25:58]*** Cut end [19:25:58]Read from MH i2c: 01 07 00 BC 32 00 00 00 00 00 FF 0F 03 [19:25:58]process_action print_text done [19:25:58]requested_data is exist [19:25:58]produce_requested_data [19:25:58]requested_item fm.sn is exist - process it [19:25:58]wFMCommunicate request_size=4 [19:25:58]MH_SAM_APDU [19:25:58]CAPDU: 80 11 00 00 [19:25:58]Write to MH i2c: E2 08 00 BD 32 80 11 00 00 00 00 00 00 69 [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:58]Read from MH i2c: E2 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 17 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 17 00 BD 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BC [19:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:25:58]wFMCommunicate OK [19:25:58]requested_item fd.num is exist - process it [19:25:58]SAM_PROTO_GetFieldsCounters [19:25:58]wFMCommunicate request_size=4 [19:25:58]MH_SAM_APDU [19:25:58]CAPDU: 80 13 00 00 [19:25:58]Write to MH i2c: E2 08 00 BE 32 80 13 00 00 00 00 00 00 6C [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 [19:25:58]MH_I2C_Read... [19:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:58]Read from MH i2c: E2 62 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 62 00 BE 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [19:25:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F1 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:58]wFMCommunicate OK [19:25:58]SAM_PROTO_GetFieldsCounters done [19:25:58]requested_item shift.num is exist - process it [19:25:58]requested_item shift.opened is exist - process it [19:25:58]req_shift_opened [19:25:58]FM_GetShiftState [19:25:58]SAM_PROTO_GetShiftState [19:25:58]wFMCommunicate request_size=4 [19:25:58]MH_SAM_APDU [19:25:58]CAPDU: 80 13 01 00 [19:25:58]Write to MH i2c: E2 08 00 BF 32 80 13 01 00 00 00 00 00 6E [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:58]Read from MH i2c: E2 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 0E 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 0E 00 BF 32 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 31 [19:25:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:25:58]wFMCommunicate OK [19:25:58]SAM_PROTO_GetShiftState done [19:25:58]FM_GetShiftState done [19:25:58]req_shift_opened done [19:25:58]requested_item shift.open_date is exist - process it [19:25:58]req_shift_open_date [19:25:58]req_shift_open_date done [19:25:58]produce_requested_data done [19:25:58]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148977,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:25:58]process_action_free print_text [19:25:58]json_value_free [19:25:58]json_value_free done [19:25:58]process_json_proto returns [19:25:58]Send response to host [19:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148977,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:25:58]free response buf [19:25:58]execute_script done [19:25:58]execute_script returns [19:25:58]free content buf [19:25:58]Sock 7.Close socket [19:25:58]Sock 7.Thread stoped [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:10]accept exits with 9 [19:27:10]New connection [19:27:10]New thread 3067407716 created [19:27:10]Thread 3067264356 joined [19:27:10]Waiting for new connection... [19:27:10] Sock 9.Parse request [19:27:10]Sock 9.Check first char [19:27:10]Sock 9.First char is OK [19:27:10]request: POST /json_proto HTTP/1.0 [19:27:10]Method: POST [19:27:10]URL: /json_proto [19:27:10]Method is POST - this is cgi request [19:27:10]url: /json_proto [19:27:10]query_string will be loaded in cgi processing [19:27:10]execute_cgi json_proto POST (null) [19:27:10]execute_cgi path=json_proto method=POST [19:27:10]POST find Content-Length [19:27:10]Host: 172.17.38.4:8080 [19:27:10]Content-Length: 677 [19:27:10]Content-Type: application/json [19:27:10] [19:27:10]POST finish read [19:27:10]Found Content-Length = 677 [19:27:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:10]execute_script... [19:27: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)979911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:10]POST & json_proto [19:27:10]process_json_proto [19:27:10]json parsed OK: [19:27:10]protocol is kg_v1.0 [19:27:10]action value=close_receipt [19:27:10]process_action close_receipt [19:27:10]cmd_close_receipt [19:27:10]MH_GetDate [19:27:10]Write to MH i2c: F0 00 00 C0 32 E1 [19:27:10]Write i2c OK [19:27:10]MH_I2C_Read... [19:27:10]Read from MH i2c: F0 [19:27:10]MH_I2C_Read... [19:27:10]Read from MH i2c: F0 09 00 [19:27:10]MH_I2C_Read... [19:27:10]Read from MH i2c: F0 09 00 C0 32 00 90 6A 5F 66 CC 51 87 64 B1 [19:27:10]GetLastDocTimeStamp 1717529054 [19:27:10]current date 1717529232 [19:27:10]FM_GetShiftState [19:27:10]SAM_PROTO_GetShiftState [19:27:10]wFMCommunicate request_size=4 [19:27:10]MH_SAM_APDU [19:27:10]CAPDU: 80 13 01 00 [19:27:10]Write to MH i2c: E2 08 00 C1 32 80 13 01 00 00 00 00 00 70 [19:27:10]Write i2c OK [19:27:10]MH_I2C_Read... [19:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:10]Read from MH i2c: E2 [19:27:10]MH_I2C_Read... [19:27:10]Read from MH i2c: E2 0E 00 [19:27:10]MH_I2C_Read... [19:27:10]Read from MH i2c: E2 0E 00 C1 32 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 33 [19:27:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:27:10]wFMCommunicate OK [19:27:10]SAM_PROTO_GetShiftState done [19:27:10]FM_GetShiftState done [19:27:10]opened in 1717460629 [19:27:10]opened+sec_in_day 1717547029 [19:27:10]quantity*price = 20003 [19:27:10]sum+1 = 20004 [19:27:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 317 04.06.2024 19:27 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148978 ФПД: 490749455158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192712&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148978&fm=490749455158&tin=02508201610067®Number=0000000000092720&sum=20000 [19:27:11]StoreToDocumentArchive [19:27:11]shift 368 fd 148978 [19:27:11]save to /storage/0368/doc_00148978 [19:27:11]save last doc name /storage/0368/doc_00148978 to /storage/kkm_last_doc_name [19:27:11]save OK [19:27:11]Clear old archive folders... [19:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:11]tlvbuf is 00478F80 [19:27:11]SAM_PROTO_ClearQueue [19:27:11]wFMCommunicate request_size=4 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 09 00 00 [19:27:11]Write to MH i2c: E2 08 00 CE 32 80 09 00 00 00 00 00 00 72 [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 CE 32 00 90 00 74 [19:27:11]RAPDU: 90 00 [19:27:11]wFMCommunicate OK [19:27:11]SAM_PROTO_ClearQueue done [19:27:11]KKMCreateOFDPacket [19:27:11]OFDProtocolAddRootSTLVToBuf [19:27:11]FM_MakeSignedData [19:27:11]FM_MakeSignedData [19:27:11]SAM_PROTO_SignData [19:27:11]wFMCommunicate request_size=4 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 0D 01 02 [19:27:11]Write to MH i2c: E2 08 00 CF 32 80 0D 01 02 00 00 00 00 7A [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 CF 32 00 90 00 75 [19:27:11]RAPDU: 90 00 [19:27:11]wFMCommunicate OK [19:27:11]wFMCommunicate request_size=255 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 01 00 00 F4 03 04 00 90 6A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 45 02 00 35 04 06 00 00 [19:27:11]Write to MH i2c: E2 02 01 D0 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 90 6A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 45 02 00 35 04 06 00 00 00 00 6D [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 D0 32 00 90 00 76 [19:27:11]RAPDU: 90 00 [19:27:11]wFMCommunicate OK [19:27:11]wFMCommunicate request_size=10 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 0D 02 02 05 72 42 F2 6B 36 [19:27:11]Write to MH i2c: E2 0D 00 D1 32 80 0D 02 02 05 00 72 42 F2 6B 36 00 00 CE [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 D1 32 00 90 00 77 [19:27:11]RAPDU: 90 00 [19:27:11]wFMCommunicate OK [19:27:11]wFMCommunicate request_size=4 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 0D 03 02 [19:27:11]Write to MH i2c: E2 08 00 D2 32 80 0D 03 02 00 00 00 00 7F [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:12]Read from MH i2c: E2 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: E2 0B 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: E2 0B 00 D2 32 00 10 AB 7D C3 CA B5 6C D8 90 00 3E [19:27:12]RAPDU: 10 AB 7D C3 CA B5 6C D8 90 00 [19:27:12]wFMCommunicate OK [19:27:12]SAM_PROTO_SignData done [19:27:12]FM_MakeSignedData done [19:27:12]CreateOFDProtocolMessage [19:27:12]wFMCommunicate request_size=4 [19:27:12]MH_SAM_APDU [19:27:12]CAPDU: 80 11 00 00 [19:27:12]Write to MH i2c: E2 08 00 D3 32 80 11 00 00 00 00 00 00 7F [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:12]Read from MH i2c: E2 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: E2 17 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: E2 17 00 D3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D2 [19:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:27:12]wFMCommunicate OK [19:27:12]CreateOFDProtocolMessage done [19:27:12]OFDSenderStorePacket 148978 [19:27:12]StoreOFDPacket docnum=148978 [19:27:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FE B1 07 01 10 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 01 00 00 F4 03 04 00 90 6A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 45 02 00 35 04 06 00 00 72 42 F2 6B 36 10 AB 7D C3 CA B5 6C D8 [19:27:12]CheckFolder [19:27:12]dirname=/storage/ofd_packets [19:27:12]CheckFolder done [19:27:12]ProducePacketName [19:27:12]name=ofd_packets/00148978 [19:27:12]NVStorageSaveData ofd_packets/00148978 [19:27:12]File name is /storage/ofd_packets/00148978 [19:27:12]Write 301 bytes [19:27:12]NVStorageSaveData done [19:27:12]OFDSenderStorePacket done [19:27:12]KKMCreateOFDPacket done [19:27:12]NVStorageSaveData kkm_last_timestamp [19:27:12]File name is /storage/kkm_last_timestamp [19:27:12]Write 4 bytes [19:27:12]NVStorageSaveData done [19:27:12]ExternCall_PrintAddStr [19:27:12]wPrintStart [19:27:12]Write to MH i2c: 01 00 00 D4 32 06 [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: 01 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: 01 07 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: 01 07 00 D4 32 00 00 00 00 00 FF 0F 1B [19:27:12]RasterBufferAndPrint [19:27:12]line Счет N : (1)979911 [19:27:12]line ИНН: 02508201610067 [19:27:12]line Контрольно-Кассовый Чек [19:27:12]line ПРОДАЖА [19:27:12]line ТРК (МРК, ГНК) : 31 [19:27:12]line Товар: 2710124130 [19:27:12]line Аи-92-К-5 [19:27:12]line 2.990 * 66.90 [19:27:12]line = 200.03 [19:27:12]line НДС 12% НСП 1% [19:27:12]line > о реализуемом товаре [19:27:12]line ОКРУГЛЕНИЕ: -0.03 [19:27:12]line ИТОГО: 200.00 [19:27:12]line Внесено: 200.00 [19:27:12]line СДАЧА: 0.00 [19:27:12]line НСП 1% : 1.77 [19:27:12]line НДС 12% : 21.24 [19:27:12]line Наличными: 200.00 [19:27:12]line Безнал.: 0.00 [19:27:12]line Место: АЗС № 68 "Партнер Нефть" [19:27:12]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:27:12]line СНО: Общий режим [19:27:12]line Чек 317 04.06.2024 19:27 [19:27:12]line Смена: 368 ФФД: 1.0 [19:27:12]line ЗНМ: 0300000035 [19:27:12]line РНМ: 0000000000092720 [19:27:12]line Версия ККМ: 001 [19:27:12]line ФМ: 0000000000875057 [19:27:12]line ФД: 148978 [19:27:12]line ФПД: 490749455158 [19:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T192712&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148978&fm=490749455158&tin=02508201610067®Number=0000000000092720&sum=20000 [19:27:12]OFD Sender: Processing packet 148978 [packets to send 100, broken 99] [19:27:12]ProducePacketName [19:27:12]name=ofd_packets/00148978 [19:27:12]OFD Sender: To server: pG, [19:27:12]CommunicateWithHost lk.salyk.kg:30040 [19:27:12]ConnectInit lk.salyk.kg [19:27:12]written 0, free lines is 4095 [19:27:12]Connected sock=10 [19:27:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FE B1 07 01 10 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 01 00 00 F4 03 04 00 90 6A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 45 02 00 35 04 06 00 00 72 42 F2 6B 36 10 AB 7D C3 CA B5 6C D8 [19:27:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F3 76 47 00 DF EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 45 02 00 F4 03 04 00 B3 11 5F 66 B6 04 01 00 00 EE DD 6A F1 5D 23 93 AF [19:27:12]CommunicateWithHost err = 0 [19:27:12]CheckOFDResponse [19:27:12]1017 (14) - 77093643461234 [19:27:12]1041 (16) - 0000000000875057 [19:27:12]1040 (4) - 148978 [19:27:12]1012 (4) - 04.06.2024 13:08 [19:27:12]1206 (1) - 0 [19:27:12]OFD Sender: Remove packet 148978 [19:27:12]ProducePacketName [19:27:12]name=ofd_packets/00148978 [19:27:12]NVStorageDeleteData [19:27:12]Write to MH i2c: 01 00 00 FF 32 31 [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: 01 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: 01 07 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: 01 07 00 FF 32 00 00 00 00 00 90 0C D4 [19:27:12]RasterBufferAndPrint [19:27:12]line [19:27:12]line [19:27:12]line [19:27:12]line [19:27:12]line [19:27:12]written 0, free lines is 3220 [19:27:12]MH_Cut [19:27:12]Write to MH i2c: D1 01 00 06 33 01 0B [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: D1 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: D1 01 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: D1 01 00 06 33 00 0A [19:27:12]Write to MH i2c: 01 00 00 07 33 3A [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:13]OFD Sender: No OFD packet to send [19:27:13]*** Cut start [19:27:13]*** Partial cut [19:27:13]*** CUTSNS_PIN = 1 [19:27:13]*** CUTSNS_PIN = 0 [19:27:14]*** Brake cut motor [19:27:14]Read from MH i2c: 01 [19:27:14]MH_I2C_Read... [19:27:14]*** Stop cut motor [19:27:14]*** Cut end [19:27:14]Read from MH i2c: 01 07 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: 01 07 00 07 33 00 00 00 00 00 FF 0F 4F [19:27:14]process_action close_receipt done [19:27:14]requested_data is exist [19:27:14]produce_requested_data [19:27:14]requested_item fm.sn is exist - process it [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 11 00 00 [19:27:14]Write to MH i2c: E2 08 00 08 33 80 11 00 00 00 00 00 00 B5 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 17 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 17 00 08 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 08 [19:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:27:14]wFMCommunicate OK [19:27:14]requested_item fd.num is exist - process it [19:27:14]SAM_PROTO_GetFieldsCounters [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 13 00 00 [19:27:14]Write to MH i2c: E2 08 00 09 33 80 13 00 00 00 00 00 00 B8 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 62 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 62 00 09 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [19:27:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:14]wFMCommunicate OK [19:27:14]SAM_PROTO_GetFieldsCounters done [19:27:14]requested_item shift.num is exist - process it [19:27:14]requested_item shift.opened is exist - process it [19:27:14]req_shift_opened [19:27:14]FM_GetShiftState [19:27:14]SAM_PROTO_GetShiftState [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 13 01 00 [19:27:14]Write to MH i2c: E2 08 00 0A 33 80 13 01 00 00 00 00 00 BA [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 0E 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 0E 00 0A 33 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7D [19:27:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:27:14]wFMCommunicate OK [19:27:14]SAM_PROTO_GetShiftState done [19:27:14]FM_GetShiftState done [19:27:14]req_shift_opened done [19:27:14]requested_item shift.open_date is exist - process it [19:27:14]req_shift_open_date [19:27:14]req_shift_open_date done [19:27:14]produce_requested_data done [19:27:14]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148978,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:27:14]process_action_free close_receipt [19:27:14]json_value_free [19:27:14]json_value_free done [19:27:14]process_json_proto returns [19:27:14]Send response to host [19:27:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148978,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:27:14]free response buf [19:27:14]execute_script done [19:27:14]execute_script returns [19:27:14]free content buf [19:27:14]Sock 9.Close socket [19:27:14]Sock 9.Thread stoped [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:51]accept exits with 7 [19:34:51]New connection [19:34:51]New thread 3067264356 created [19:34:51]Thread 3067407716 joined [19:34:51]Waiting for new connection... [19:34:51] Sock 7.Parse request [19:34:51]Sock 7.Check first char [19:34:51]Sock 7.First char is OK [19:34:51]request: POST /json_proto HTTP/1.0 [19:34:51]Method: POST [19:34:51]URL: /json_proto [19:34:51]Method is POST - this is cgi request [19:34:51]url: /json_proto [19:34:51]query_string will be loaded in cgi processing [19:34:51]execute_cgi json_proto POST (null) [19:34:51]execute_cgi path=json_proto method=POST [19:34:51]POST find Content-Length [19:34:51]Host: 172.17.38.4:8080 [19:34:51]Content-Length: 1188 [19:34:51]Content-Type: application/json [19:34:51] [19:34:51]POST finish read [19:34:51]Found Content-Length = 1188 [19:34: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979912\u000A04.06.2024 19:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A68578\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:51]execute_script... [19:34: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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979912\u000A04.06.2024 19:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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\u000A68578\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:51]POST & json_proto [19:34:51]process_json_proto [19:34:51]json parsed OK: [19:34:51]protocol is kg_v1.0 [19:34:51]action value=print_text [19:34:51]process_action print_text [19:34:51]cmd_print_text [19:34:51]ExternCall_PrintAddStr [19:34:51]wPrintStart [19:34:51]Write to MH i2c: 01 00 00 0B 33 3E [19:34:51]Write i2c OK [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: 01 [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: 01 07 00 [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: 01 07 00 0B 33 00 00 00 00 00 FF 0F 53 [19:34:51]RasterBufferAndPrint [19:34:51]line *****ТОВАРНЫЙ ЧЕК***** [19:34:51]line АЗС 68 [19:34:51]line Партнер нефть [19:34:51]line 02508201610067 [19:34:51]line Кассир : Аскаров Н. [19:34:51]line Счет N : (1)979912 [19:34:51]line 04.06.2024 19:15 [19:34:51]line ПРОДАЖА [19:34:51]line ТРК (МРК, ГНК): 31 [19:34:51]line Вид ГСМ : 2710124130 [19:34:51]line Аи-92-К-5 [19:34:51]line 10.000 x 66.90 [19:34:51]line ИТОГ: 669.00 [19:34:51]line Тип оплаты: Талоны: Топливная Карта [19:34:51]line 68578 [19:34:51]line ______________________ [19:34:51]line (подпись) [19:34:51]written 0, free lines is 4095 [19:34:51]Write to MH i2c: 01 00 00 1F 33 52 [19:34:51]Write i2c OK [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: 01 [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: 01 07 00 [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: 01 07 00 1F 33 00 00 00 00 00 0F 0E 76 [19:34:51]RasterBufferAndPrint [19:34:51]line [19:34:51]line [19:34:51]line [19:34:51]line [19:34:51]line [19:34:51]written 0, free lines is 3600 [19:34:51]MH_Cut [19:34:51]Write to MH i2c: D1 01 00 26 33 01 2B [19:34:51]Write i2c OK [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: D1 [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: D1 01 00 [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: D1 01 00 26 33 00 2A [19:34:51]Write to MH i2c: 01 00 00 27 33 5A [19:34:51]Write i2c OK [19:34:51]MH_I2C_Read... [19:34:52]*** Cut start [19:34:52]*** Partial cut [19:34:52]*** CUTSNS_PIN = 1 [19:34:52]*** CUTSNS_PIN = 0 [19:34:52]*** Brake cut motor [19:34:52]Read from MH i2c: 01 [19:34:52]MH_I2C_Read... [19:34:52]*** Stop cut motor [19:34:52]*** Cut end [19:34:52]Read from MH i2c: 01 07 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: 01 07 00 27 33 00 00 00 00 00 FF 0F 6F [19:34:52]process_action print_text done [19:34:52]requested_data is exist [19:34:52]produce_requested_data [19:34:52]requested_item fm.sn is exist - process it [19:34:52]wFMCommunicate request_size=4 [19:34:52]MH_SAM_APDU [19:34:52]CAPDU: 80 11 00 00 [19:34:52]Write to MH i2c: E2 08 00 28 33 80 11 00 00 00 00 00 00 D5 [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:52]Read from MH i2c: E2 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 17 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 17 00 28 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 28 [19:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:34:52]wFMCommunicate OK [19:34:52]requested_item fd.num is exist - process it [19:34:52]SAM_PROTO_GetFieldsCounters [19:34:52]wFMCommunicate request_size=4 [19:34:52]MH_SAM_APDU [19:34:52]CAPDU: 80 13 00 00 [19:34:52]Write to MH i2c: E2 08 00 29 33 80 13 00 00 00 00 00 00 D8 [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:53]Read from MH i2c: E2 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 62 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 62 00 29 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [19:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F2 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:53]wFMCommunicate OK [19:34:53]SAM_PROTO_GetFieldsCounters done [19:34:53]requested_item shift.num is exist - process it [19:34:53]requested_item shift.opened is exist - process it [19:34:53]req_shift_opened [19:34:53]FM_GetShiftState [19:34:53]SAM_PROTO_GetShiftState [19:34:53]wFMCommunicate request_size=4 [19:34:53]MH_SAM_APDU [19:34:53]CAPDU: 80 13 01 00 [19:34:53]Write to MH i2c: E2 08 00 2A 33 80 13 01 00 00 00 00 00 DA [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:53]Read from MH i2c: E2 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 0E 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 0E 00 2A 33 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9D [19:34:53]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:34:53]wFMCommunicate OK [19:34:53]SAM_PROTO_GetShiftState done [19:34:53]FM_GetShiftState done [19:34:53]req_shift_opened done [19:34:53]requested_item shift.open_date is exist - process it [19:34:53]req_shift_open_date [19:34:53]req_shift_open_date done [19:34:53]produce_requested_data done [19:34:53]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148978,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:34:53]process_action_free print_text [19:34:53]json_value_free [19:34:53]json_value_free done [19:34:53]process_json_proto returns [19:34:53]Send response to host [19:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148978,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:34:53]free response buf [19:34:53]execute_script done [19:34:53]execute_script returns [19:34:53]free content buf [19:34:53]Sock 7.Close socket [19:34:53]Sock 7.Thread stoped [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:54]accept exits with 9 [19:35:54]New connection [19:35:54]New thread 3067407716 created [19:35:54]Thread 3067264356 joined [19:35:54]Waiting for new connection... [19:35:54] Sock 9.Parse request [19:35:54]Sock 9.Check first char [19:35:54]Sock 9.First char is OK [19:35:54]request: POST /json_proto HTTP/1.0 [19:35:54]Method: POST [19:35:54]URL: /json_proto [19:35:54]Method is POST - this is cgi request [19:35:54]url: /json_proto [19:35:54]query_string will be loaded in cgi processing [19:35:54]execute_cgi json_proto POST (null) [19:35:54]execute_cgi path=json_proto method=POST [19:35:54]POST find Content-Length [19:35:54]Host: 172.17.38.4:8080 [19:35:54]Content-Length: 677 [19:35:54]Content-Type: application/json [19:35:54] [19:35:54]POST finish read [19:35:54]Found Content-Length = 677 [19:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:54]execute_script... [19:35:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:54]POST & json_proto [19:35:54]process_json_proto [19:35:54]json parsed OK: [19:35:54]protocol is kg_v1.0 [19:35:54]action value=close_receipt [19:35:54]process_action close_receipt [19:35:54]cmd_close_receipt [19:35:54]MH_GetDate [19:35:54]Write to MH i2c: F0 00 00 2B 33 4D [19:35:54]Write i2c OK [19:35:54]MH_I2C_Read... [19:35:54]Read from MH i2c: F0 [19:35:54]MH_I2C_Read... [19:35:54]Read from MH i2c: F0 09 00 [19:35:54]MH_I2C_Read... [19:35:54]Read from MH i2c: F0 09 00 2B 33 00 9C 6C 5F 66 CC 51 87 64 2B [19:35:54]GetLastDocTimeStamp 1717529232 [19:35:54]current date 1717529756 [19:35:54]FM_GetShiftState [19:35:54]SAM_PROTO_GetShiftState [19:35:54]wFMCommunicate request_size=4 [19:35:54]MH_SAM_APDU [19:35:54]CAPDU: 80 13 01 00 [19:35:54]Write to MH i2c: E2 08 00 2C 33 80 13 01 00 00 00 00 00 DC [19:35:54]Write i2c OK [19:35:54]MH_I2C_Read... [19:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:54]Read from MH i2c: E2 [19:35:54]MH_I2C_Read... [19:35:54]Read from MH i2c: E2 0E 00 [19:35:54]MH_I2C_Read... [19:35:54]Read from MH i2c: E2 0E 00 2C 33 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9F [19:35:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:35:54]wFMCommunicate OK [19:35:54]SAM_PROTO_GetShiftState done [19:35:54]FM_GetShiftState done [19:35:54]opened in 1717460629 [19:35:54]opened+sec_in_day 1717547029 [19:35:54]quantity*price = 15052 [19:35:54]sum+1 = 15054 [19:35:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 318 04.06.2024 19:35 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148979 ФПД: 105588086663277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T193556&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148979&fm=105588086663277&tin=02508201610067®Number=0000000000092720&sum=15000 [19:35:55]StoreToDocumentArchive [19:35:55]shift 368 fd 148979 [19:35:55]save to /storage/0368/doc_00148979 [19:35:55]save last doc name /storage/0368/doc_00148979 to /storage/kkm_last_doc_name [19:35:55]save OK [19:35:55]Clear old archive folders... [19:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:55]tlvbuf is 004B8000 [19:35:55]SAM_PROTO_ClearQueue [19:35:55]wFMCommunicate request_size=4 [19:35:55]MH_SAM_APDU [19:35:55]CAPDU: 80 09 00 00 [19:35:55]Write to MH i2c: E2 08 00 39 33 80 09 00 00 00 00 00 00 DE [19:35:55]Write i2c OK [19:35:55]MH_I2C_Read... [19:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:55]Read from MH i2c: E2 [19:35:55]MH_I2C_Read... [19:35:55]Read from MH i2c: E2 03 00 [19:35:55]MH_I2C_Read... [19:35:55]Read from MH i2c: E2 03 00 39 33 00 90 00 E0 [19:35:55]RAPDU: 90 00 [19:35:55]wFMCommunicate OK [19:35:55]SAM_PROTO_ClearQueue done [19:35:55]KKMCreateOFDPacket [19:35:55]OFDProtocolAddRootSTLVToBuf [19:35:55]FM_MakeSignedData [19:35:55]FM_MakeSignedData [19:35:55]SAM_PROTO_SignData [19:35:55]wFMCommunicate request_size=4 [19:35:55]MH_SAM_APDU [19:35:55]CAPDU: 80 0D 01 02 [19:35:55]Write to MH i2c: E2 08 00 3A 33 80 0D 01 02 00 00 00 00 E6 [19:35:55]Write i2c OK [19:35:55]MH_I2C_Read... [19:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:55]Read from MH i2c: E2 [19:35:55]MH_I2C_Read... [19:35:55]Read from MH i2c: E2 03 00 [19:35:55]MH_I2C_Read... [19:35:55]Read from MH i2c: E2 03 00 3A 33 00 90 00 E1 [19:35:55]RAPDU: 90 00 [19:35:55]wFMCommunicate OK [19:35:55]wFMCommunicate request_size=255 [19:35:55]MH_SAM_APDU [19:35:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 9C 6C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 45 02 00 35 04 06 00 60 [19:35:55]Write to MH i2c: E2 02 01 3B 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 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 9C 6C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 45 02 00 35 04 06 00 60 00 00 84 [19:35:55]Write i2c OK [19:35:55]MH_I2C_Read... [19:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:56]Read from MH i2c: E2 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 3B 33 00 90 00 E2 [19:35:56]RAPDU: 90 00 [19:35:56]wFMCommunicate OK [19:35:56]wFMCommunicate request_size=10 [19:35:56]MH_SAM_APDU [19:35:56]CAPDU: 80 0D 02 02 05 08 24 65 E8 6D [19:35:56]Write to MH i2c: E2 0D 00 3C 33 80 0D 02 02 05 00 08 24 65 E8 6D 00 00 D9 [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:56]Read from MH i2c: E2 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 3C 33 00 90 00 E3 [19:35:56]RAPDU: 90 00 [19:35:56]wFMCommunicate OK [19:35:56]wFMCommunicate request_size=4 [19:35:56]MH_SAM_APDU [19:35:56]CAPDU: 80 0D 03 02 [19:35:56]Write to MH i2c: E2 08 00 3D 33 80 0D 03 02 00 00 00 00 EB [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:56]Read from MH i2c: E2 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 0B 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 0B 00 3D 33 00 E0 5E CB 6D 37 07 7E 95 90 00 B3 [19:35:56]RAPDU: E0 5E CB 6D 37 07 7E 95 90 00 [19:35:56]wFMCommunicate OK [19:35:56]SAM_PROTO_SignData done [19:35:56]FM_MakeSignedData done [19:35:56]CreateOFDProtocolMessage [19:35:56]wFMCommunicate request_size=4 [19:35:56]MH_SAM_APDU [19:35:56]CAPDU: 80 11 00 00 [19:35:56]Write to MH i2c: E2 08 00 3E 33 80 11 00 00 00 00 00 00 EB [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:56]Read from MH i2c: E2 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 17 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 17 00 3E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3E [19:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:35:56]wFMCommunicate OK [19:35:56]CreateOFDProtocolMessage done [19:35:56]OFDSenderStorePacket 148979 [19:35:56]StoreOFDPacket docnum=148979 [19:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1F D2 07 01 5D 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 9C 6C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 45 02 00 35 04 06 00 60 08 24 65 E8 6D E0 5E CB 6D 37 07 7E 95 [19:35:56]CheckFolder [19:35:56]dirname=/storage/ofd_packets [19:35:56]CheckFolder done [19:35:56]ProducePacketName [19:35:56]name=ofd_packets/00148979 [19:35:56]NVStorageSaveData ofd_packets/00148979 [19:35:56]File name is /storage/ofd_packets/00148979 [19:35:56]Write 301 bytes [19:35:56]NVStorageSaveData done [19:35:56]OFDSenderStorePacket done [19:35:56]KKMCreateOFDPacket done [19:35:56]NVStorageSaveData kkm_last_timestamp [19:35:56]File name is /storage/kkm_last_timestamp [19:35:56]Write 4 bytes [19:35:56]NVStorageSaveData done [19:35:56]ExternCall_PrintAddStr [19:35:56]wPrintStart [19:35:56]Write to MH i2c: 01 00 00 3F 33 72 [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: 01 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: 01 07 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: 01 07 00 3F 33 00 00 00 00 00 FF 0F 87 [19:35:56]RasterBufferAndPrint [19:35:56]line Счет N : (1)979914 [19:35:56]line ИНН: 02508201610067 [19:35:56]line Контрольно-Кассовый Чек [19:35:56]line ПРОДАЖА [19:35:56]line ТРК (МРК, ГНК) : 22 [19:35:56]line Товар: 2710124130 [19:35:56]line Аи-92-К-5 [19:35:56]line 2.250 * 66.90 [19:35:56]line = 150.53 [19:35:56]line НДС 12% НСП 1% [19:35:56]line > о реализуемом товаре [19:35:56]line ОКРУГЛЕНИЕ: -0.53 [19:35:56]line ИТОГО: 150.00 [19:35:56]line Внесено: 150.00 [19:35:56]line СДАЧА: 0.00 [19:35:56]line НСП 1% : 1.33 [19:35:56]line НДС 12% : 15.98 [19:35:56]line Наличными: 150.00 [19:35:56]line Безнал.: 0.00 [19:35:56]line Место: АЗС № 68 "Партнер Нефть" [19:35:56]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:35:56]line СНО: Общий режим [19:35:56]line Чек 318 04.06.2024 19:35 [19:35:56]line Смена: 368 ФФД: 1.0 [19:35:56]line ЗНМ: 0300000035 [19:35:56]line РНМ: 0000000000092720 [19:35:56]line Версия ККМ: 001 [19:35:56]line ФМ: 0000000000875057 [19:35:56]line ФД: 148979 [19:35:56]line ФПД: 105588086663277 [19:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T193556&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148979&fm=105588086663277&tin=02508201610067®Number=0000000000092720&sum=15000 [19:35:56]OFD Sender: Processing packet 148979 [packets to send 100, broken 99] [19:35:56]ProducePacketName [19:35:56]name=ofd_packets/00148979 [19:35:56]OFD Sender: To server: pG, [19:35:56]CommunicateWithHost lk.salyk.kg:30040 [19:35:56]ConnectInit lk.salyk.kg [19:35:56]written 0, free lines is 4095 [19:35:56]Connected sock=10 [19:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1F D2 07 01 5D 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 9C 6C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 45 02 00 35 04 06 00 60 08 24 65 E8 6D E0 5E CB 6D 37 07 7E 95 [19:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 09 1F 47 00 FC 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 45 02 00 F4 03 04 00 BF 13 5F 66 B6 04 01 00 00 AD 56 80 6D 95 A2 E7 7C [19:35:56]CommunicateWithHost err = 0 [19:35:56]CheckOFDResponse [19:35:56]1017 (14) - 77093643461234 [19:35:56]1041 (16) - 0000000000875057 [19:35:56]1040 (4) - 148979 [19:35:56]1012 (4) - 04.06.2024 13:16 [19:35:56]1206 (1) - 0 [19:35:56]OFD Sender: Remove packet 148979 [19:35:56]ProducePacketName [19:35:56]name=ofd_packets/00148979 [19:35:56]NVStorageDeleteData [19:35:56]Write to MH i2c: 01 00 00 6A 33 9D [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: 01 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: 01 07 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: 01 07 00 6A 33 00 00 00 00 00 87 0C 37 [19:35:56]RasterBufferAndPrint [19:35:56]line [19:35:56]line [19:35:56]line [19:35:56]line [19:35:56]line [19:35:56]written 0, free lines is 3211 [19:35:56]MH_Cut [19:35:56]Write to MH i2c: D1 01 00 71 33 01 76 [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: D1 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: D1 01 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: D1 01 00 71 33 00 75 [19:35:56]Write to MH i2c: 01 00 00 72 33 A5 [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:57]OFD Sender: No OFD packet to send [19:35:57]*** Cut start [19:35:57]*** Partial cut [19:35:57]*** CUTSNS_PIN = 1 [19:35:58]*** CUTSNS_PIN = 0 [19:35:58]*** Brake cut motor [19:35:58]Read from MH i2c: 01 [19:35:58]MH_I2C_Read... [19:35:58]*** Stop cut motor [19:35:58]*** Cut end [19:35:58]Read from MH i2c: 01 07 00 [19:35:58]MH_I2C_Read... [19:35:58]Read from MH i2c: 01 07 00 72 33 00 00 00 00 00 FF 0F BA [19:35:58]process_action close_receipt done [19:35:58]requested_data is exist [19:35:58]produce_requested_data [19:35:58]requested_item fm.sn is exist - process it [19:35:58]wFMCommunicate request_size=4 [19:35:58]MH_SAM_APDU [19:35:58]CAPDU: 80 11 00 00 [19:35:58]Write to MH i2c: E2 08 00 73 33 80 11 00 00 00 00 00 00 20 [19:35:58]Write i2c OK [19:35:58]MH_I2C_Read... [19:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:58]Read from MH i2c: E2 [19:35:58]MH_I2C_Read... [19:35:58]Read from MH i2c: E2 17 00 [19:35:58]MH_I2C_Read... [19:35:58]Read from MH i2c: E2 17 00 73 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 73 [19:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:35:58]wFMCommunicate OK [19:35:58]requested_item fd.num is exist - process it [19:35:58]SAM_PROTO_GetFieldsCounters [19:35:58]wFMCommunicate request_size=4 [19:35:58]MH_SAM_APDU [19:35:58]CAPDU: 80 13 00 00 [19:35:58]Write to MH i2c: E2 08 00 74 33 80 13 00 00 00 00 00 00 23 [19:35:58]Write i2c OK [19:35:58]MH_I2C_Read... [19:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:58]Read from MH i2c: E2 [19:35:58]MH_I2C_Read... [19:35:58]Read from MH i2c: E2 62 00 [19:35:58]MH_I2C_Read... [19:35:58]Read from MH i2c: E2 62 00 74 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [19:35:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F3 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:58]wFMCommunicate OK [19:35:58]SAM_PROTO_GetFieldsCounters done [19:35:58]requested_item shift.num is exist - process it [19:35:58]requested_item shift.opened is exist - process it [19:35:58]req_shift_opened [19:35:58]FM_GetShiftState [19:35:58]SAM_PROTO_GetShiftState [19:35:58]wFMCommunicate request_size=4 [19:35:58]MH_SAM_APDU [19:35:58]CAPDU: 80 13 01 00 [19:35:58]Write to MH i2c: E2 08 00 75 33 80 13 01 00 00 00 00 00 25 [19:35:58]Write i2c OK [19:35:58]MH_I2C_Read... [19:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:58]Read from MH i2c: E2 [19:35:58]MH_I2C_Read... [19:35:58]Read from MH i2c: E2 0E 00 [19:35:58]MH_I2C_Read... [19:35:58]Read from MH i2c: E2 0E 00 75 33 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E8 [19:35:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:35:58]wFMCommunicate OK [19:35:58]SAM_PROTO_GetShiftState done [19:35:58]FM_GetShiftState done [19:35:58]req_shift_opened done [19:35:58]requested_item shift.open_date is exist - process it [19:35:58]req_shift_open_date [19:35:58]req_shift_open_date done [19:35:58]produce_requested_data done [19:35:58]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148979,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:35:58]process_action_free close_receipt [19:35:58]json_value_free [19:35:58]json_value_free done [19:35:58]process_json_proto returns [19:35:58]Send response to host [19:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148979,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:35:58]free response buf [19:35:58]execute_script done [19:35:58]execute_script returns [19:35:58]free content buf [19:35:58]Sock 9.Close socket [19:35:58]Sock 9.Thread stoped [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:21]accept exits with 7 [19:36:21]New connection [19:36:21]New thread 3067264356 created [19:36:21]Thread 3067407716 joined [19:36:21]Waiting for new connection... [19:36:21] Sock 7.Parse request [19:36:21]Sock 7.Check first char [19:36:21]Sock 7.First char is OK [19:36:21]request: POST /json_proto HTTP/1.0 [19:36:21]Method: POST [19:36:21]URL: /json_proto [19:36:21]Method is POST - this is cgi request [19:36:21]url: /json_proto [19:36:21]query_string will be loaded in cgi processing [19:36:21]execute_cgi json_proto POST (null) [19:36:21]execute_cgi path=json_proto method=POST [19:36:21]POST find Content-Length [19:36:21]Host: 172.17.38.4:8080 [19:36:21]Content-Length: 679 [19:36:21]Content-Type: application/json [19:36:21] [19:36:21]POST finish read [19:36:21]Found Content-Length = 679 [19:36:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 24.700, "sum" : 1800.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:21]execute_script... [19:36:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 24.700, "sum" : 1800.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:21]POST & json_proto [19:36:21]process_json_proto [19:36:21]json parsed OK: [19:36:21]protocol is kg_v1.0 [19:36:21]action value=close_receipt [19:36:21]process_action close_receipt [19:36:21]cmd_close_receipt [19:36:21]MH_GetDate [19:36:21]Write to MH i2c: F0 00 00 76 33 98 [19:36:21]Write i2c OK [19:36:21]MH_I2C_Read... [19:36:21]Read from MH i2c: F0 [19:36:21]MH_I2C_Read... [19:36:21]Read from MH i2c: F0 09 00 [19:36:21]MH_I2C_Read... [19:36:21]Read from MH i2c: F0 09 00 76 33 00 B8 6C 5F 66 CC 51 87 64 92 [19:36:21]GetLastDocTimeStamp 1717529756 [19:36:21]current date 1717529784 [19:36:21]FM_GetShiftState [19:36:21]SAM_PROTO_GetShiftState [19:36:21]wFMCommunicate request_size=4 [19:36:21]MH_SAM_APDU [19:36:21]CAPDU: 80 13 01 00 [19:36:21]Write to MH i2c: E2 08 00 77 33 80 13 01 00 00 00 00 00 27 [19:36:21]Write i2c OK [19:36:21]MH_I2C_Read... [19:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:21]Read from MH i2c: E2 [19:36:21]MH_I2C_Read... [19:36:21]Read from MH i2c: E2 0E 00 [19:36:21]MH_I2C_Read... [19:36:21]Read from MH i2c: E2 0E 00 77 33 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EA [19:36:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:36:21]wFMCommunicate OK [19:36:21]SAM_PROTO_GetShiftState done [19:36:21]FM_GetShiftState done [19:36:21]opened in 1717460629 [19:36:21]opened+sec_in_day 1717547029 [19:36:21]quantity*price = 180063 [19:36:21]sum+1 = 180064 [19:36:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.22 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 319 04.06.2024 19:36 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148980 ФПД: 131834088342612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T193624&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148980&fm=131834088342612&tin=02508201610067®Number=0000000000092720&sum=180000 [19:36:22]StoreToDocumentArchive [19:36:22]shift 368 fd 148980 [19:36:22]save to /storage/0368/doc_00148980 [19:36:22]save last doc name /storage/0368/doc_00148980 to /storage/kkm_last_doc_name [19:36:22]save OK [19:36:22]Clear old archive folders... [19:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:36:22]tlvbuf is B6F49BB0 [19:36:22]SAM_PROTO_ClearQueue [19:36:22]wFMCommunicate request_size=4 [19:36:22]MH_SAM_APDU [19:36:22]CAPDU: 80 09 00 00 [19:36:22]Write to MH i2c: E2 08 00 84 33 80 09 00 00 00 00 00 00 29 [19:36:22]Write i2c OK [19:36:22]MH_I2C_Read... [19:36:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:22]Read from MH i2c: E2 [19:36:22]MH_I2C_Read... [19:36:22]Read from MH i2c: E2 03 00 [19:36:22]MH_I2C_Read... [19:36:22]Read from MH i2c: E2 03 00 84 33 00 90 00 2B [19:36:22]RAPDU: 90 00 [19:36:22]wFMCommunicate OK [19:36:22]SAM_PROTO_ClearQueue done [19:36:22]KKMCreateOFDPacket [19:36:22]OFDProtocolAddRootSTLVToBuf [19:36:22]FM_MakeSignedData [19:36:22]FM_MakeSignedData [19:36:22]SAM_PROTO_SignData [19:36:22]wFMCommunicate request_size=4 [19:36:22]MH_SAM_APDU [19:36:22]CAPDU: 80 0D 01 02 [19:36:22]Write to MH i2c: E2 08 00 85 33 80 0D 01 02 00 00 00 00 31 [19:36:22]Write i2c OK [19:36:22]MH_I2C_Read... [19:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:23]Read from MH i2c: E2 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 03 00 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 03 00 85 33 00 90 00 2C [19:36:23]RAPDU: 90 00 [19:36:23]wFMCommunicate OK [19:36:23]wFMCommunicate request_size=255 [19:36:23]MH_SAM_APDU [19:36:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 B8 6C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 45 02 00 35 04 06 00 77 E7 04 01 [19:36:23]Write to MH i2c: E2 02 01 86 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 B8 6C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 45 02 00 35 04 06 00 77 E7 04 01 00 00 50 [19:36:23]Write i2c OK [19:36:23]MH_I2C_Read... [19:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:23]Read from MH i2c: E2 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 03 00 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 03 00 86 33 00 90 00 2D [19:36:23]RAPDU: 90 00 [19:36:23]wFMCommunicate OK [19:36:23]wFMCommunicate request_size=7 [19:36:23]MH_SAM_APDU [19:36:23]CAPDU: 80 0D 02 02 02 44 54 [19:36:23]Write to MH i2c: E2 0A 00 87 33 80 0D 02 02 02 00 44 54 00 00 D0 [19:36:23]Write i2c OK [19:36:23]MH_I2C_Read... [19:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:23]Read from MH i2c: E2 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 03 00 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 03 00 87 33 00 90 00 2E [19:36:23]RAPDU: 90 00 [19:36:23]wFMCommunicate OK [19:36:23]wFMCommunicate request_size=4 [19:36:23]MH_SAM_APDU [19:36:23]CAPDU: 80 0D 03 02 [19:36:23]Write to MH i2c: E2 08 00 88 33 80 0D 03 02 00 00 00 00 36 [19:36:23]Write i2c OK [19:36:23]MH_I2C_Read... [19:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:23]Read from MH i2c: E2 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 0B 00 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 0B 00 88 33 00 B5 77 58 77 83 84 F8 5D 90 00 8E [19:36:23]RAPDU: B5 77 58 77 83 84 F8 5D 90 00 [19:36:23]wFMCommunicate OK [19:36:23]SAM_PROTO_SignData done [19:36:23]FM_MakeSignedData done [19:36:23]CreateOFDProtocolMessage [19:36:23]wFMCommunicate request_size=4 [19:36:23]MH_SAM_APDU [19:36:23]CAPDU: 80 11 00 00 [19:36:23]Write to MH i2c: E2 08 00 89 33 80 11 00 00 00 00 00 00 36 [19:36:23]Write i2c OK [19:36:23]MH_I2C_Read... [19:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:23]Read from MH i2c: E2 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 17 00 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 17 00 89 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 89 [19:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:36:23]wFMCommunicate OK [19:36:23]CreateOFDProtocolMessage done [19:36:23]OFDSenderStorePacket 148980 [19:36:23]StoreOFDPacket docnum=148980 [19:36:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 26 11 04 01 31 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 B8 6C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 45 02 00 35 04 06 00 77 E7 04 01 44 54 B5 77 58 77 83 84 F8 5D [19:36:23]CheckFolder [19:36:23]dirname=/storage/ofd_packets [19:36:23]CheckFolder done [19:36:23]ProducePacketName [19:36:23]name=ofd_packets/00148980 [19:36:23]NVStorageSaveData ofd_packets/00148980 [19:36:23]File name is /storage/ofd_packets/00148980 [19:36:23]Write 298 bytes [19:36:23]NVStorageSaveData done [19:36:23]OFDSenderStorePacket done [19:36:23]KKMCreateOFDPacket done [19:36:23]NVStorageSaveData kkm_last_timestamp [19:36:23]File name is /storage/kkm_last_timestamp [19:36:23]Write 4 bytes [19:36:23]NVStorageSaveData done [19:36:23]ExternCall_PrintAddStr [19:36:23]wPrintStart [19:36:23]Write to MH i2c: 01 00 00 8A 33 BD [19:36:23]Write i2c OK [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: 01 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: 01 07 00 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: 01 07 00 8A 33 00 00 00 00 00 FF 0F D2 [19:36:23]RasterBufferAndPrint [19:36:23]line Счет N : (1)979913 [19:36:23]line ИНН: 02508201610067 [19:36:23]line Контрольно-Кассовый Чек [19:36:23]line ПРОДАЖА [19:36:23]line ТРК (МРК, ГНК) : 11 [19:36:23]line Товар: 2710194210 [19:36:23]line ДТ-К-5 [19:36:23]line 24.700 * 72.90 [19:36:23]line = 1800.63 [19:36:23]line НДС 12% НСП 1% [19:36:23]line > о реализуемом товаре [19:36:23]line ОКРУГЛЕНИЕ: -0.63 [19:36:23]line ИТОГО: 1800.00 [19:36:23]line Внесено: 1800.00 [19:36:23]line СДАЧА: 0.00 [19:36:23]line НСП 1% : 15.93 [19:36:23]line НДС 12% : 191.22 [19:36:23]line Наличными: 1800.00 [19:36:23]line Безнал.: 0.00 [19:36:23]line Место: АЗС № 68 "Партнер Нефть" [19:36:23]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:36:23]line СНО: Общий режим [19:36:23]line Чек 319 04.06.2024 19:36 [19:36:23]line Смена: 368 ФФД: 1.0 [19:36:23]line ЗНМ: 0300000035 [19:36:23]line РНМ: 0000000000092720 [19:36:23]line Версия ККМ: 001 [19:36:23]line ФМ: 0000000000875057 [19:36:23]line ФД: 148980 [19:36:23]line ФПД: 131834088342612 [19:36:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T193624&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148980&fm=131834088342612&tin=02508201610067®Number=0000000000092720&sum=180000 [19:36:23]OFD Sender: Processing packet 148980 [packets to send 100, broken 99] [19:36:23]ProducePacketName [19:36:23]name=ofd_packets/00148980 [19:36:23]OFD Sender: To server: pG, [19:36:23]CommunicateWithHost lk.salyk.kg:30040 [19:36:23]ConnectInit lk.salyk.kg [19:36:23]written 0, free lines is 4095 [19:36:23]Connected sock=10 [19:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 26 11 04 01 31 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 B8 6C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 45 02 00 35 04 06 00 77 E7 04 01 44 54 B5 77 58 77 83 84 F8 5D [19:36:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DB 91 47 00 2B A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 45 02 00 F4 03 04 00 DB 13 5F 66 B6 04 01 00 00 47 DC 91 F5 6D B6 B7 0C [19:36:24]CommunicateWithHost err = 0 [19:36:24]CheckOFDResponse [19:36:24]1017 (14) - 77093643461234 [19:36:24]1041 (16) - 0000000000875057 [19:36:24]1040 (4) - 148980 [19:36:24]1012 (4) - 04.06.2024 13:17 [19:36:24]1206 (1) - 0 [19:36:24]OFD Sender: Remove packet 148980 [19:36:24]ProducePacketName [19:36:24]name=ofd_packets/00148980 [19:36:24]NVStorageDeleteData [19:36:24]Write to MH i2c: 01 00 00 B5 33 E8 [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: 01 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: 01 07 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: 01 07 00 B5 33 00 00 00 00 00 92 0C 8D [19:36:24]RasterBufferAndPrint [19:36:24]line [19:36:24]line [19:36:24]line [19:36:24]line [19:36:24]line [19:36:24]written 0, free lines is 3224 [19:36:24]MH_Cut [19:36:24]Write to MH i2c: D1 01 00 BC 33 01 C1 [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: D1 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: D1 01 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: D1 01 00 BC 33 00 C0 [19:36:24]Write to MH i2c: 01 00 00 BD 33 F0 [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]OFD Sender: No OFD packet to send [19:36:25]*** Cut start [19:36:25]*** Partial cut [19:36:25]*** CUTSNS_PIN = 1 [19:36:25]*** CUTSNS_PIN = 0 [19:36:25]*** Brake cut motor [19:36:25]Read from MH i2c: 01 [19:36:25]MH_I2C_Read... [19:36:25]*** Stop cut motor [19:36:25]*** Cut end [19:36:25]Read from MH i2c: 01 07 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: 01 07 00 BD 33 00 00 00 00 00 FF 0F 05 [19:36:25]process_action close_receipt done [19:36:25]requested_data is exist [19:36:25]produce_requested_data [19:36:25]requested_item fm.sn is exist - process it [19:36:25]wFMCommunicate request_size=4 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 11 00 00 [19:36:25]Write to MH i2c: E2 08 00 BE 33 80 11 00 00 00 00 00 00 6B [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:25]Read from MH i2c: E2 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 17 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 17 00 BE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BE [19:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:36:25]wFMCommunicate OK [19:36:25]requested_item fd.num is exist - process it [19:36:25]SAM_PROTO_GetFieldsCounters [19:36:25]wFMCommunicate request_size=4 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 13 00 00 [19:36:25]Write to MH i2c: E2 08 00 BF 33 80 13 00 00 00 00 00 00 6E [19:36:26]Write i2c OK [19:36:26]MH_I2C_Read... [19:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:26]Read from MH i2c: E2 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 62 00 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 62 00 BF 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [19:36:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F4 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:26]wFMCommunicate OK [19:36:26]SAM_PROTO_GetFieldsCounters done [19:36:26]requested_item shift.num is exist - process it [19:36:26]requested_item shift.opened is exist - process it [19:36:26]req_shift_opened [19:36:26]FM_GetShiftState [19:36:26]SAM_PROTO_GetShiftState [19:36:26]wFMCommunicate request_size=4 [19:36:26]MH_SAM_APDU [19:36:26]CAPDU: 80 13 01 00 [19:36:26]Write to MH i2c: E2 08 00 C0 33 80 13 01 00 00 00 00 00 70 [19:36:26]Write i2c OK [19:36:26]MH_I2C_Read... [19:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:26]Read from MH i2c: E2 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 0E 00 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 0E 00 C0 33 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 33 [19:36:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:36:26]wFMCommunicate OK [19:36:26]SAM_PROTO_GetShiftState done [19:36:26]FM_GetShiftState done [19:36:26]req_shift_opened done [19:36:26]requested_item shift.open_date is exist - process it [19:36:26]req_shift_open_date [19:36:26]req_shift_open_date done [19:36:26]produce_requested_data done [19:36:26]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148980,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:36:26]process_action_free close_receipt [19:36:26]json_value_free [19:36:26]json_value_free done [19:36:26]process_json_proto returns [19:36:26]Send response to host [19:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148980,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:36:26]free response buf [19:36:26]execute_script done [19:36:26]execute_script returns [19:36:26]free content buf [19:36:26]Sock 7.Close socket [19:36:26]Sock 7.Thread stoped [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:18]accept exits with 9 [19:38:18]New connection [19:38:18]New thread 3067407716 created [19:38:18]Thread 3067264356 joined [19:38:18]Waiting for new connection... [19:38:18] Sock 9.Parse request [19:38:18]Sock 9.Check first char [19:38:18]Sock 9.First char is OK [19:38:18]request: POST /json_proto HTTP/1.0 [19:38:18]Method: POST [19:38:18]URL: /json_proto [19:38:18]Method is POST - this is cgi request [19:38:18]url: /json_proto [19:38:18]query_string will be loaded in cgi processing [19:38:18]execute_cgi json_proto POST (null) [19:38:18]execute_cgi path=json_proto method=POST [19:38:18]POST find Content-Length [19:38:18]Host: 172.17.38.4:8080 [19:38:18]Content-Length: 677 [19:38:18]Content-Type: application/json [19:38:18] [19:38:18]POST finish read [19:38:18]Found Content-Length = 677 [19:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:18]execute_script... [19:38:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:18]POST & json_proto [19:38:18]process_json_proto [19:38:18]json parsed OK: [19:38:18]protocol is kg_v1.0 [19:38:18]action value=close_receipt [19:38:18]process_action close_receipt [19:38:18]cmd_close_receipt [19:38:18]MH_GetDate [19:38:18]Write to MH i2c: F0 00 00 C1 33 E3 [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: F0 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: F0 09 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: F0 09 00 C1 33 00 2C 6D 5F 66 CC 51 87 64 52 [19:38:18]GetLastDocTimeStamp 1717529784 [19:38:18]current date 1717529900 [19:38:18]FM_GetShiftState [19:38:18]SAM_PROTO_GetShiftState [19:38:18]wFMCommunicate request_size=4 [19:38:18]MH_SAM_APDU [19:38:18]CAPDU: 80 13 01 00 [19:38:18]Write to MH i2c: E2 08 00 C2 33 80 13 01 00 00 00 00 00 72 [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:18]Read from MH i2c: E2 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 0E 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 0E 00 C2 33 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 35 [19:38:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:38:18]wFMCommunicate OK [19:38:18]SAM_PROTO_GetShiftState done [19:38:18]FM_GetShiftState done [19:38:18]opened in 1717460629 [19:38:18]opened+sec_in_day 1717547029 [19:38:18]quantity*price = 30038 [19:38:18]sum+1 = 30039 [19:38:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 320 04.06.2024 19:38 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148981 ФПД: 162071522567227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T193820&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148981&fm=162071522567227&tin=02508201610067®Number=0000000000092720&sum=30000 [19:38:19]StoreToDocumentArchive [19:38:19]shift 368 fd 148981 [19:38:19]save to /storage/0368/doc_00148981 [19:38:19]save last doc name /storage/0368/doc_00148981 to /storage/kkm_last_doc_name [19:38:19]save OK [19:38:19]Clear old archive folders... [19:38:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:19]tlvbuf is 004C0D30 [19:38:19]SAM_PROTO_ClearQueue [19:38:19]wFMCommunicate request_size=4 [19:38:19]MH_SAM_APDU [19:38:19]CAPDU: 80 09 00 00 [19:38:19]Write to MH i2c: E2 08 00 CF 33 80 09 00 00 00 00 00 00 74 [19:38:19]Write i2c OK [19:38:19]MH_I2C_Read... [19:38:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:19]OFD Sender: No OFD packet to send [19:38:19]Read from MH i2c: E2 [19:38:19]MH_I2C_Read... [19:38:19]Read from MH i2c: E2 03 00 [19:38:19]MH_I2C_Read... [19:38:19]Read from MH i2c: E2 03 00 CF 33 00 90 00 76 [19:38:19]RAPDU: 90 00 [19:38:19]wFMCommunicate OK [19:38:19]SAM_PROTO_ClearQueue done [19:38:19]KKMCreateOFDPacket [19:38:19]OFDProtocolAddRootSTLVToBuf [19:38:19]FM_MakeSignedData [19:38:19]FM_MakeSignedData [19:38:19]SAM_PROTO_SignData [19:38:19]wFMCommunicate request_size=4 [19:38:19]MH_SAM_APDU [19:38:19]CAPDU: 80 0D 01 02 [19:38:19]Write to MH i2c: E2 08 00 D0 33 80 0D 01 02 00 00 00 00 7C [19:38:19]Write i2c OK [19:38:19]MH_I2C_Read... [19:38:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:19]Read from MH i2c: E2 [19:38:19]MH_I2C_Read... [19:38:19]Read from MH i2c: E2 03 00 [19:38:19]MH_I2C_Read... [19:38:19]Read from MH i2c: E2 03 00 D0 33 00 90 00 77 [19:38:19]RAPDU: 90 00 [19:38:19]wFMCommunicate OK [19:38:19]wFMCommunicate request_size=255 [19:38:19]MH_SAM_APDU [19:38:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 40 01 00 00 F4 03 04 00 2C 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 45 02 00 35 04 06 00 93 [19:38:19]Write to MH i2c: E2 02 01 D1 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 2C 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 45 02 00 35 04 06 00 93 00 00 D9 [19:38:19]Write i2c OK [19:38:19]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 03 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 03 00 D1 33 00 90 00 78 [19:38:20]RAPDU: 90 00 [19:38:20]wFMCommunicate OK [19:38:20]wFMCommunicate request_size=10 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 0D 02 02 05 67 37 87 E4 3B [19:38:20]Write to MH i2c: E2 0D 00 D2 33 80 0D 02 02 05 00 67 37 87 E4 3B 00 00 CD [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 03 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 03 00 D2 33 00 90 00 79 [19:38:20]RAPDU: 90 00 [19:38:20]wFMCommunicate OK [19:38:20]wFMCommunicate request_size=4 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 0D 03 02 [19:38:20]Write to MH i2c: E2 08 00 D3 33 80 0D 03 02 00 00 00 00 81 [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 0B 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 0B 00 D3 33 00 2B 7E 79 B4 62 F7 E5 D7 90 00 6D [19:38:20]RAPDU: 2B 7E 79 B4 62 F7 E5 D7 90 00 [19:38:20]wFMCommunicate OK [19:38:20]SAM_PROTO_SignData done [19:38:20]FM_MakeSignedData done [19:38:20]CreateOFDProtocolMessage [19:38:20]wFMCommunicate request_size=4 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 11 00 00 [19:38:20]Write to MH i2c: E2 08 00 D4 33 80 11 00 00 00 00 00 00 81 [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 17 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 17 00 D4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D4 [19:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:38:20]wFMCommunicate OK [19:38:20]CreateOFDProtocolMessage done [19:38:20]OFDSenderStorePacket 148981 [19:38:20]StoreOFDPacket docnum=148981 [19:38:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 2F 42 07 01 93 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 2C 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 45 02 00 35 04 06 00 93 67 37 87 E4 3B 2B 7E 79 B4 62 F7 E5 D7 [19:38:20]CheckFolder [19:38:20]dirname=/storage/ofd_packets [19:38:20]CheckFolder done [19:38:20]ProducePacketName [19:38:20]name=ofd_packets/00148981 [19:38:20]NVStorageSaveData ofd_packets/00148981 [19:38:20]File name is /storage/ofd_packets/00148981 [19:38:20]Write 301 bytes [19:38:20]NVStorageSaveData done [19:38:20]OFDSenderStorePacket done [19:38:20]KKMCreateOFDPacket done [19:38:20]NVStorageSaveData kkm_last_timestamp [19:38:20]File name is /storage/kkm_last_timestamp [19:38:20]Write 4 bytes [19:38:20]NVStorageSaveData done [19:38:20]ExternCall_PrintAddStr [19:38:20]wPrintStart [19:38:20]Write to MH i2c: 01 00 00 D5 33 08 [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: 01 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: 01 07 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: 01 07 00 D5 33 00 00 00 00 00 FF 0F 1D [19:38:20]RasterBufferAndPrint [19:38:20]line Счет N : (1)979916 [19:38:20]line ИНН: 02508201610067 [19:38:20]line Контрольно-Кассовый Чек [19:38:20]line ПРОДАЖА [19:38:20]line ТРК (МРК, ГНК) : 22 [19:38:20]line Товар: 2710124130 [19:38:20]line Аи-92-К-5 [19:38:20]line 4.490 * 66.90 [19:38:20]line = 300.38 [19:38:20]line НДС 12% НСП 1% [19:38:20]line > о реализуемом товаре [19:38:20]line ОКРУГЛЕНИЕ: -0.38 [19:38:20]line ИТОГО: 300.00 [19:38:20]line Внесено: 300.00 [19:38:20]line СДАЧА: 0.00 [19:38:20]line НСП 1% : 2.66 [19:38:20]line НДС 12% : 31.90 [19:38:20]line Наличными: 300.00 [19:38:20]line Безнал.: 0.00 [19:38:20]line Место: АЗС № 68 "Партнер Нефть" [19:38:20]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:38:20]line СНО: Общий режим [19:38:20]line Чек 320 04.06.2024 19:38 [19:38:20]line Смена: 368 ФФД: 1.0 [19:38:20]line ЗНМ: 0300000035 [19:38:20]line РНМ: 0000000000092720 [19:38:20]line Версия ККМ: 001 [19:38:20]line ФМ: 0000000000875057 [19:38:20]line ФД: 148981 [19:38:20]line ФПД: 162071522567227 [19:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T193820&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148981&fm=162071522567227&tin=02508201610067®Number=0000000000092720&sum=30000 [19:38:20]OFD Sender: Processing packet 148981 [packets to send 100, broken 99] [19:38:20]ProducePacketName [19:38:20]name=ofd_packets/00148981 [19:38:20]OFD Sender: To server: pG, [19:38:20]CommunicateWithHost lk.salyk.kg:30040 [19:38:20]ConnectInit lk.salyk.kg [19:38:20]written 0, free lines is 4095 [19:38:20]Connected sock=10 [19:38:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 2F 42 07 01 93 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 2C 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 45 02 00 35 04 06 00 93 67 37 87 E4 3B 2B 7E 79 B4 62 F7 E5 D7 [19:38:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 2D 20 47 00 7A C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 45 02 00 F4 03 04 00 4F 14 5F 66 B6 04 01 00 00 16 15 68 0B 68 31 53 44 [19:38:20]CommunicateWithHost err = 0 [19:38:20]CheckOFDResponse [19:38:20]1017 (14) - 77093643461234 [19:38:20]1041 (16) - 0000000000875057 [19:38:20]1040 (4) - 148981 [19:38:20]1012 (4) - 04.06.2024 13:19 [19:38:20]1206 (1) - 0 [19:38:20]OFD Sender: Remove packet 148981 [19:38:20]ProducePacketName [19:38:20]name=ofd_packets/00148981 [19:38:20]NVStorageDeleteData [19:38:21]Write to MH i2c: 01 00 00 00 34 34 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: 01 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: 01 07 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: 01 07 00 00 34 00 00 00 00 00 8A 0C D1 [19:38:21]RasterBufferAndPrint [19:38:21]line [19:38:21]line [19:38:21]line [19:38:21]line [19:38:21]line [19:38:21]written 0, free lines is 3214 [19:38:21]MH_Cut [19:38:21]Write to MH i2c: D1 01 00 07 34 01 0D [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: D1 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: D1 01 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: D1 01 00 07 34 00 0C [19:38:21]Write to MH i2c: 01 00 00 08 34 3C [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]OFD Sender: No OFD packet to send [19:38:22]*** Cut start [19:38:22]*** Partial cut [19:38:22]*** CUTSNS_PIN = 1 [19:38:22]*** CUTSNS_PIN = 0 [19:38:22]*** Brake cut motor [19:38:22]Read from MH i2c: 01 [19:38:22]MH_I2C_Read... [19:38:22]*** Stop cut motor [19:38:22]*** Cut end [19:38:22]Read from MH i2c: 01 07 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 07 00 08 34 00 00 00 00 00 FF 0F 51 [19:38:22]process_action close_receipt done [19:38:22]requested_data is exist [19:38:22]produce_requested_data [19:38:22]requested_item fm.sn is exist - process it [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 11 00 00 [19:38:22]Write to MH i2c: E2 08 00 09 34 80 11 00 00 00 00 00 00 B7 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:22]Read from MH i2c: E2 17 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 17 00 09 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0A [19:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:38:22]wFMCommunicate OK [19:38:22]requested_item fd.num is exist - process it [19:38:22]SAM_PROTO_GetFieldsCounters [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 13 00 00 [19:38:22]Write to MH i2c: E2 08 00 0A 34 80 13 00 00 00 00 00 00 BA [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:22]Read from MH i2c: E2 62 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 62 00 0A 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F5 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [19:38:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F5 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:22]wFMCommunicate OK [19:38:22]SAM_PROTO_GetFieldsCounters done [19:38:22]requested_item shift.num is exist - process it [19:38:22]requested_item shift.opened is exist - process it [19:38:22]req_shift_opened [19:38:22]FM_GetShiftState [19:38:22]SAM_PROTO_GetShiftState [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 13 01 00 [19:38:22]Write to MH i2c: E2 08 00 0B 34 80 13 01 00 00 00 00 00 BC [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 0E 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 0E 00 0B 34 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7F [19:38:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:38:22]wFMCommunicate OK [19:38:22]SAM_PROTO_GetShiftState done [19:38:22]FM_GetShiftState done [19:38:22]req_shift_opened done [19:38:22]requested_item shift.open_date is exist - process it [19:38:22]req_shift_open_date [19:38:22]req_shift_open_date done [19:38:22]produce_requested_data done [19:38:22]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148981,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:38:22]process_action_free close_receipt [19:38:22]json_value_free [19:38:22]json_value_free done [19:38:22]process_json_proto returns [19:38:22]Send response to host [19:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148981,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:38:22]free response buf [19:38:22]execute_script done [19:38:22]execute_script returns [19:38:22]free content buf [19:38:22]Sock 9.Close socket [19:38:22]Sock 9.Thread stoped [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:33]accept exits with 7 [19:38:33]New connection [19:38:33]New thread 3067264356 created [19:38:33]Thread 3067407716 joined [19:38:33]Waiting for new connection... [19:38:33] Sock 7.Parse request [19:38:33]Sock 7.Check first char [19:38:33]Sock 7.First char is OK [19:38:33]request: POST /json_proto HTTP/1.0 [19:38:33]Method: POST [19:38:33]URL: /json_proto [19:38:33]Method is POST - this is cgi request [19:38:33]url: /json_proto [19:38:33]query_string will be loaded in cgi processing [19:38:33]execute_cgi json_proto POST (null) [19:38:33]execute_cgi path=json_proto method=POST [19:38:33]POST find Content-Length [19:38:33]Host: 172.17.38.4:8080 [19:38:33]Content-Length: 682 [19:38:33]Content-Type: application/json [19:38:33] [19:38:33]POST finish read [19:38:33]Found Content-Length = 682 [19:38:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:33]execute_script... [19:38: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)979915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:33]POST & json_proto [19:38:33]process_json_proto [19:38:33]json parsed OK: [19:38:33]protocol is kg_v1.0 [19:38:33]action value=close_receipt [19:38:33]process_action close_receipt [19:38:33]cmd_close_receipt [19:38:33]MH_GetDate [19:38:33]Write to MH i2c: F0 00 00 0C 34 2F [19:38:33]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: F0 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: F0 09 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: F0 09 00 0C 34 00 3B 6D 5F 66 CC 51 87 64 AD [19:38:33]GetLastDocTimeStamp 1717529900 [19:38:33]current date 1717529915 [19:38:33]FM_GetShiftState [19:38:33]SAM_PROTO_GetShiftState [19:38:33]wFMCommunicate request_size=4 [19:38:33]MH_SAM_APDU [19:38:33]CAPDU: 80 13 01 00 [19:38:33]Write to MH i2c: E2 08 00 0D 34 80 13 01 00 00 00 00 00 BE [19:38:33]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:33]Read from MH i2c: E2 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 0E 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 0E 00 0D 34 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 81 [19:38:33]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:38:33]wFMCommunicate OK [19:38:33]SAM_PROTO_GetShiftState done [19:38:33]FM_GetShiftState done [19:38:33]opened in 1717460629 [19:38:33]opened+sec_in_day 1717547029 [19:38:33]quantity*price = 100015 [19:38:33]sum+1 = 100017 [19:38:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 321 04.06.2024 19:38 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148982 ФПД: 16188537553856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T193835&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148982&fm=16188537553856&tin=02508201610067®Number=0000000000092720&sum=100000 [19:38:34]StoreToDocumentArchive [19:38:34]shift 368 fd 148982 [19:38:34]save to /storage/0368/doc_00148982 [19:38:34]save last doc name /storage/0368/doc_00148982 to /storage/kkm_last_doc_name [19:38:34]save OK [19:38:34]Clear old archive folders... [19:38:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:34]tlvbuf is 0046B8C0 [19:38:34]SAM_PROTO_ClearQueue [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 09 00 00 [19:38:34]Write to MH i2c: E2 08 00 1A 34 80 09 00 00 00 00 00 00 C0 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 1A 34 00 90 00 C2 [19:38:34]RAPDU: 90 00 [19:38:34]wFMCommunicate OK [19:38:34]SAM_PROTO_ClearQueue done [19:38:34]KKMCreateOFDPacket [19:38:34]OFDProtocolAddRootSTLVToBuf [19:38:34]FM_MakeSignedData [19:38:34]FM_MakeSignedData [19:38:34]SAM_PROTO_SignData [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 0D 01 02 [19:38:34]Write to MH i2c: E2 08 00 1B 34 80 0D 01 02 00 00 00 00 C8 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 1B 34 00 90 00 C3 [19:38:34]RAPDU: 90 00 [19:38:34]wFMCommunicate OK [19:38:34]wFMCommunicate request_size=255 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 41 01 00 00 F4 03 04 00 3B 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 45 02 00 35 04 06 00 0E [19:38:34]Write to MH i2c: E2 02 01 1C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3B 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 45 02 00 35 04 06 00 0E 00 00 B7 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 1C 34 00 90 00 C4 [19:38:34]RAPDU: 90 00 [19:38:34]wFMCommunicate OK [19:38:34]wFMCommunicate request_size=10 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 0D 02 02 05 B9 30 07 C3 C0 [19:38:34]Write to MH i2c: E2 0D 00 1D 34 80 0D 02 02 05 00 B9 30 07 C3 C0 00 00 48 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 03 00 1D 34 00 90 00 C5 [19:38:34]RAPDU: 90 00 [19:38:34]wFMCommunicate OK [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 0D 03 02 [19:38:34]Write to MH i2c: E2 08 00 1E 34 80 0D 03 02 00 00 00 00 CD [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 0B 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 0B 00 1E 34 00 4C FB 01 72 AC A8 8E A8 90 00 12 [19:38:34]RAPDU: 4C FB 01 72 AC A8 8E A8 90 00 [19:38:34]wFMCommunicate OK [19:38:34]SAM_PROTO_SignData done [19:38:34]FM_MakeSignedData done [19:38:34]CreateOFDProtocolMessage [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 11 00 00 [19:38:34]Write to MH i2c: E2 08 00 1F 34 80 11 00 00 00 00 00 00 CD [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 17 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 17 00 1F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 20 [19:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:38:34]wFMCommunicate OK [19:38:34]CreateOFDProtocolMessage done [19:38:34]OFDSenderStorePacket 148982 [19:38:34]StoreOFDPacket docnum=148982 [19:38:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D1 19 07 01 6D 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3B 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 45 02 00 35 04 06 00 0E B9 30 07 C3 C0 4C FB 01 72 AC A8 8E A8 [19:38:34]CheckFolder [19:38:34]dirname=/storage/ofd_packets [19:38:34]CheckFolder done [19:38:34]ProducePacketName [19:38:34]name=ofd_packets/00148982 [19:38:34]NVStorageSaveData ofd_packets/00148982 [19:38:34]File name is /storage/ofd_packets/00148982 [19:38:34]Write 301 bytes [19:38:34]NVStorageSaveData done [19:38:34]OFDSenderStorePacket done [19:38:34]KKMCreateOFDPacket done [19:38:34]NVStorageSaveData kkm_last_timestamp [19:38:34]File name is /storage/kkm_last_timestamp [19:38:34]Write 4 bytes [19:38:34]NVStorageSaveData done [19:38:34]OFD Sender: Processing packet 148982 [packets to send 100, broken 99] [19:38:34]ProducePacketName [19:38:34]name=ofd_packets/00148982 [19:38:34]OFD Sender: To server: pG, [19:38:34]CommunicateWithHost lk.salyk.kg:30040 [19:38:34]ConnectInit lk.salyk.kg [19:38:34]ExternCall_PrintAddStr [19:38:34]wPrintStart [19:38:34]Write to MH i2c: 01 00 00 20 34 54 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: 01 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: 01 07 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: 01 07 00 20 34 00 00 00 00 00 FF 0F 69 [19:38:34]RasterBufferAndPrint [19:38:34]line Счет N : (1)979915 [19:38:34]line ИНН: 02508201610067 [19:38:34]line Контрольно-Кассовый Чек [19:38:34]line ПРОДАЖА [19:38:34]line ТРК (МРК, ГНК) : 12 [19:38:34]line Товар: 2710124130 [19:38:34]line Аи-92-К-5 [19:38:34]line 14.950 * 66.90 [19:38:34]line = 1000.16 [19:38:34]line НДС 12% НСП 1% [19:38:34]line > о реализуемом товаре [19:38:34]line ОКРУГЛЕНИЕ: -0.16 [19:38:34]line ИТОГО: 1000.00 [19:38:34]line Внесено: 1000.00 [19:38:34]line СДАЧА: 0.00 [19:38:34]line НСП 1% : 8.85 [19:38:34]line НДС 12% : 106.21 [19:38:34]line Наличными: 1000.00 [19:38:34]line Безнал.: 0.00 [19:38:34]line Место: АЗС № 68 "Партнер Нефть" [19:38:34]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:38:34]line СНО: Общий режим [19:38:34]line Чек 321 04.06.2024 19:38 [19:38:34]line Смена: 368 ФФД: 1.0 [19:38:34]line ЗНМ: 0300000035 [19:38:34]line РНМ: 0000000000092720 [19:38:34]line Версия ККМ: 001 [19:38:34]line ФМ: 0000000000875057 [19:38:34]line ФД: 148982 [19:38:35]line ФПД: 16188537553856 [19:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T193835&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148982&fm=16188537553856&tin=02508201610067®Number=0000000000092720&sum=100000 [19:38:35]Connected sock=11 [19:38:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D1 19 07 01 6D 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3B 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 45 02 00 35 04 06 00 0E B9 30 07 C3 C0 4C FB 01 72 AC A8 8E A8 [19:38:35]written 0, free lines is 4095 [19:38:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A1 95 47 00 92 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 38 37 35 30 35 37 10 04 04 00 F6 45 02 00 F4 03 04 00 5E 14 5F 66 B6 04 01 00 00 36 9B 5C FC A3 79 17 5B [19:38:35]CommunicateWithHost err = 0 [19:38:35]CheckOFDResponse [19:38:35]1017 (14) - 77093643461234 [19:38:35]1041 (16) - 0000000000875057 [19:38:35]1040 (4) - 148982 [19:38:35]1012 (4) - 04.06.2024 13:19 [19:38:35]1206 (1) - 0 [19:38:35]OFD Sender: Remove packet 148982 [19:38:35]ProducePacketName [19:38:35]name=ofd_packets/00148982 [19:38:35]NVStorageDeleteData [19:38:35]Write to MH i2c: 01 00 00 4B 34 7F [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 07 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 07 00 4B 34 00 00 00 00 00 8A 0C 1C [19:38:35]RasterBufferAndPrint [19:38:35]line [19:38:35]line [19:38:35]line [19:38:35]line [19:38:35]line [19:38:35]written 0, free lines is 3213 [19:38:35]MH_Cut [19:38:35]Write to MH i2c: D1 01 00 52 34 01 58 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: D1 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: D1 01 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: D1 01 00 52 34 00 57 [19:38:35]Write to MH i2c: 01 00 00 53 34 87 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]OFD Sender: No OFD packet to send [19:38:36]*** Cut start [19:38:36]*** Partial cut [19:38:36]*** CUTSNS_PIN = 1 [19:38:36]*** CUTSNS_PIN = 0 [19:38:37]*** Brake cut motor [19:38:37]Read from MH i2c: 01 [19:38:37]MH_I2C_Read... [19:38:37]*** Stop cut motor [19:38:37]*** Cut end [19:38:37]Read from MH i2c: 01 07 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: 01 07 00 53 34 00 00 00 00 00 FF 0F 9C [19:38:37]process_action close_receipt done [19:38:37]requested_data is exist [19:38:37]produce_requested_data [19:38:37]requested_item fm.sn is exist - process it [19:38:37]wFMCommunicate request_size=4 [19:38:37]MH_SAM_APDU [19:38:37]CAPDU: 80 11 00 00 [19:38:37]Write to MH i2c: E2 08 00 54 34 80 11 00 00 00 00 00 00 02 [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:37]Read from MH i2c: E2 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 17 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 17 00 54 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 55 [19:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:38:37]wFMCommunicate OK [19:38:37]requested_item fd.num is exist - process it [19:38:37]SAM_PROTO_GetFieldsCounters [19:38:37]wFMCommunicate request_size=4 [19:38:37]MH_SAM_APDU [19:38:37]CAPDU: 80 13 00 00 [19:38:37]Write to MH i2c: E2 08 00 55 34 80 13 00 00 00 00 00 00 05 [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:37]Read from MH i2c: E2 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 62 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 62 00 55 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F6 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [19:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F6 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:37]wFMCommunicate OK [19:38:37]SAM_PROTO_GetFieldsCounters done [19:38:37]requested_item shift.num is exist - process it [19:38:37]requested_item shift.opened is exist - process it [19:38:37]req_shift_opened [19:38:37]FM_GetShiftState [19:38:37]SAM_PROTO_GetShiftState [19:38:37]wFMCommunicate request_size=4 [19:38:37]MH_SAM_APDU [19:38:37]CAPDU: 80 13 01 00 [19:38:37]Write to MH i2c: E2 08 00 56 34 80 13 01 00 00 00 00 00 07 [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:37]Read from MH i2c: E2 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 0E 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 0E 00 56 34 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CA [19:38:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:38:37]wFMCommunicate OK [19:38:37]SAM_PROTO_GetShiftState done [19:38:37]FM_GetShiftState done [19:38:37]req_shift_opened done [19:38:37]requested_item shift.open_date is exist - process it [19:38:37]req_shift_open_date [19:38:37]req_shift_open_date done [19:38:37]produce_requested_data done [19:38:37]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148982,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:38:37]process_action_free close_receipt [19:38:37]json_value_free [19:38:37]json_value_free done [19:38:37]process_json_proto returns [19:38:37]Send response to host [19:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148982,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:38:37]free response buf [19:38:37]execute_script done [19:38:37]execute_script returns [19:38:37]free content buf [19:38:37]Sock 7.Close socket [19:38:37]Sock 7.Thread stoped [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:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:12]accept exits with 9 [19:40:12]New connection [19:40:12]New thread 3067407716 created [19:40:12]Thread 3067264356 joined [19:40:12]Waiting for new connection... [19:40:12] Sock 9.Parse request [19:40:12]Sock 9.Check first char [19:40:12]Sock 9.First char is OK [19:40:12]request: POST /json_proto HTTP/1.0 [19:40:12]Method: POST [19:40:12]URL: /json_proto [19:40:12]Method is POST - this is cgi request [19:40:12]url: /json_proto [19:40:12]query_string will be loaded in cgi processing [19:40:12]execute_cgi json_proto POST (null) [19:40:12]execute_cgi path=json_proto method=POST [19:40:12]POST find Content-Length [19:40:12]Host: 172.17.38.4:8080 [19:40:12]Content-Length: 677 [19:40:12]Content-Type: application/json [19:40:12] [19:40:12]POST finish read [19:40:12]Found Content-Length = 677 [19:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:12]execute_script... [19:40:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:12]POST & json_proto [19:40:12]process_json_proto [19:40:12]json parsed OK: [19:40:12]protocol is kg_v1.0 [19:40:12]action value=close_receipt [19:40:12]process_action close_receipt [19:40:12]cmd_close_receipt [19:40:12]MH_GetDate [19:40:12]Write to MH i2c: F0 00 00 57 34 7A [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: F0 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: F0 09 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: F0 09 00 57 34 00 9E 6D 5F 66 CC 51 87 64 5B [19:40:12]GetLastDocTimeStamp 1717529915 [19:40:12]current date 1717530014 [19:40:12]FM_GetShiftState [19:40:12]SAM_PROTO_GetShiftState [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 13 01 00 [19:40:12]Write to MH i2c: E2 08 00 58 34 80 13 01 00 00 00 00 00 09 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 0E 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 0E 00 58 34 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CC [19:40:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:40:12]wFMCommunicate OK [19:40:12]SAM_PROTO_GetShiftState done [19:40:12]FM_GetShiftState done [19:40:12]opened in 1717460629 [19:40:12]opened+sec_in_day 1717547029 [19:40:12]quantity*price = 30038 [19:40:12]sum+1 = 30039 [19:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 322 04.06.2024 19:40 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148983 ФПД: 178261017872866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T194014&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148983&fm=178261017872866&tin=02508201610067®Number=0000000000092720&sum=30000 [19:40:13]StoreToDocumentArchive [19:40:13]shift 368 fd 148983 [19:40:13]save to /storage/0368/doc_00148983 [19:40:13]save last doc name /storage/0368/doc_00148983 to /storage/kkm_last_doc_name [19:40:13]save OK [19:40:13]Clear old archive folders... [19:40:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:13]tlvbuf is 00517DF0 [19:40:13]SAM_PROTO_ClearQueue [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 09 00 00 [19:40:13]Write to MH i2c: E2 08 00 65 34 80 09 00 00 00 00 00 00 0B [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 65 34 00 90 00 0D [19:40:13]RAPDU: 90 00 [19:40:13]wFMCommunicate OK [19:40:13]SAM_PROTO_ClearQueue done [19:40:13]KKMCreateOFDPacket [19:40:13]OFDProtocolAddRootSTLVToBuf [19:40:13]FM_MakeSignedData [19:40:13]FM_MakeSignedData [19:40:13]SAM_PROTO_SignData [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 0D 01 02 [19:40:13]Write to MH i2c: E2 08 00 66 34 80 0D 01 02 00 00 00 00 13 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 66 34 00 90 00 0E [19:40:13]RAPDU: 90 00 [19:40:13]wFMCommunicate OK [19:40:13]wFMCommunicate request_size=255 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 9E 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 45 02 00 35 04 06 00 A2 [19:40:13]Write to MH i2c: E2 02 01 67 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 9E 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 45 02 00 35 04 06 00 A2 00 00 F5 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:14]Read from MH i2c: E2 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 03 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 03 00 67 34 00 90 00 0F [19:40:14]RAPDU: 90 00 [19:40:14]wFMCommunicate OK [19:40:14]wFMCommunicate request_size=10 [19:40:14]MH_SAM_APDU [19:40:14]CAPDU: 80 0D 02 02 05 20 A0 A5 C9 E2 [19:40:14]Write to MH i2c: E2 0D 00 68 34 80 0D 02 02 05 00 20 A0 A5 C9 E2 00 00 30 [19:40:14]Write i2c OK [19:40:14]MH_I2C_Read... [19:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:14]Read from MH i2c: E2 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 03 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 03 00 68 34 00 90 00 10 [19:40:14]RAPDU: 90 00 [19:40:14]wFMCommunicate OK [19:40:14]wFMCommunicate request_size=4 [19:40:14]MH_SAM_APDU [19:40:14]CAPDU: 80 0D 03 02 [19:40:14]Write to MH i2c: E2 08 00 69 34 80 0D 03 02 00 00 00 00 18 [19:40:14]Write i2c OK [19:40:14]MH_I2C_Read... [19:40:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:14]Read from MH i2c: E2 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 0B 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 0B 00 69 34 00 DE 81 71 E2 93 D4 8D 5E 90 00 1D [19:40:14]RAPDU: DE 81 71 E2 93 D4 8D 5E 90 00 [19:40:14]wFMCommunicate OK [19:40:14]SAM_PROTO_SignData done [19:40:14]FM_MakeSignedData done [19:40:14]CreateOFDProtocolMessage [19:40:14]wFMCommunicate request_size=4 [19:40:14]MH_SAM_APDU [19:40:14]CAPDU: 80 11 00 00 [19:40:14]Write to MH i2c: E2 08 00 6A 34 80 11 00 00 00 00 00 00 18 [19:40:14]Write i2c OK [19:40:14]MH_I2C_Read... [19:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:14]Read from MH i2c: E2 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 17 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 17 00 6A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6B [19:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:40:14]wFMCommunicate OK [19:40:14]CreateOFDProtocolMessage done [19:40:14]OFDSenderStorePacket 148983 [19:40:14]StoreOFDPacket docnum=148983 [19:40:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E8 D6 07 01 29 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 01 00 00 F4 03 04 00 9E 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 45 02 00 35 04 06 00 A2 20 A0 A5 C9 E2 DE 81 71 E2 93 D4 8D 5E [19:40:14]CheckFolder [19:40:14]dirname=/storage/ofd_packets [19:40:14]CheckFolder done [19:40:14]ProducePacketName [19:40:14]name=ofd_packets/00148983 [19:40:14]NVStorageSaveData ofd_packets/00148983 [19:40:14]File name is /storage/ofd_packets/00148983 [19:40:14]Write 301 bytes [19:40:14]NVStorageSaveData done [19:40:14]OFDSenderStorePacket done [19:40:14]KKMCreateOFDPacket done [19:40:14]NVStorageSaveData kkm_last_timestamp [19:40:14]File name is /storage/kkm_last_timestamp [19:40:14]Write 4 bytes [19:40:14]NVStorageSaveData done [19:40:14]ExternCall_PrintAddStr [19:40:14]wPrintStart [19:40:14]Write to MH i2c: 01 00 00 6B 34 9F [19:40:14]Write i2c OK [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: 01 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: 01 07 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: 01 07 00 6B 34 00 00 00 00 00 FF 0F B4 [19:40:14]RasterBufferAndPrint [19:40:14]line Счет N : (1)979917 [19:40:14]line ИНН: 02508201610067 [19:40:14]line Контрольно-Кассовый Чек [19:40:14]line ПРОДАЖА [19:40:14]line ТРК (МРК, ГНК) : 12 [19:40:14]line Товар: 2710124130 [19:40:14]line Аи-92-К-5 [19:40:14]line 4.490 * 66.90 [19:40:14]line = 300.38 [19:40:14]line НДС 12% НСП 1% [19:40:14]line > о реализуемом товаре [19:40:14]line ОКРУГЛЕНИЕ: -0.38 [19:40:14]line ИТОГО: 300.00 [19:40:14]line Внесено: 300.00 [19:40:14]line СДАЧА: 0.00 [19:40:14]line НСП 1% : 2.66 [19:40:14]line НДС 12% : 31.90 [19:40:14]line Наличными: 300.00 [19:40:14]line Безнал.: 0.00 [19:40:14]line Место: АЗС № 68 "Партнер Нефть" [19:40:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:40:14]line СНО: Общий режим [19:40:14]line Чек 322 04.06.2024 19:40 [19:40:14]line Смена: 368 ФФД: 1.0 [19:40:14]line ЗНМ: 0300000035 [19:40:14]line РНМ: 0000000000092720 [19:40:14]line Версия ККМ: 001 [19:40:14]line ФМ: 0000000000875057 [19:40:14]line ФД: 148983 [19:40:14]line ФПД: 178261017872866 [19:40:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T194014&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148983&fm=178261017872866&tin=02508201610067®Number=0000000000092720&sum=30000 [19:40:14]OFD Sender: Processing packet 148983 [packets to send 100, broken 99] [19:40:14]ProducePacketName [19:40:14]name=ofd_packets/00148983 [19:40:14]OFD Sender: To server: pG, [19:40:14]CommunicateWithHost lk.salyk.kg:30040 [19:40:14]ConnectInit lk.salyk.kg [19:40:14]written 0, free lines is 4095 [19:40:14]Connected sock=10 [19:40:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E8 D6 07 01 29 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 01 00 00 F4 03 04 00 9E 6D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 45 02 00 35 04 06 00 A2 20 A0 A5 C9 E2 DE 81 71 E2 93 D4 8D 5E [19:40:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 10 1E 47 00 63 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 45 02 00 F4 03 04 00 C2 14 5F 66 B6 04 01 00 00 08 C8 4E BC 16 21 60 6D [19:40:14]CommunicateWithHost err = 0 [19:40:14]CheckOFDResponse [19:40:14]1017 (14) - 77093643461234 [19:40:14]1041 (16) - 0000000000875057 [19:40:14]1040 (4) - 148983 [19:40:14]1012 (4) - 04.06.2024 13:21 [19:40:14]1206 (1) - 0 [19:40:14]OFD Sender: Remove packet 148983 [19:40:14]ProducePacketName [19:40:14]name=ofd_packets/00148983 [19:40:14]NVStorageDeleteData [19:40:15]Write to MH i2c: 01 00 00 96 34 CA [19:40:15]Write i2c OK [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: 01 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: 01 07 00 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: 01 07 00 96 34 00 00 00 00 00 8C 0C 69 [19:40:15]RasterBufferAndPrint [19:40:15]line [19:40:15]line [19:40:15]line [19:40:15]line [19:40:15]line [19:40:15]written 0, free lines is 3215 [19:40:15]MH_Cut [19:40:15]Write to MH i2c: D1 01 00 9D 34 01 A3 [19:40:15]Write i2c OK [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: D1 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: D1 01 00 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: D1 01 00 9D 34 00 A2 [19:40:15]Write to MH i2c: 01 00 00 9E 34 D2 [19:40:15]Write i2c OK [19:40:15]MH_I2C_Read... [19:40:15]OFD Sender: No OFD packet to send [19:40:16]*** Cut start [19:40:16]*** Partial cut [19:40:16]*** CUTSNS_PIN = 1 [19:40:16]*** CUTSNS_PIN = 0 [19:40:16]*** Brake cut motor [19:40:16]Read from MH i2c: 01 [19:40:16]MH_I2C_Read... [19:40:16]*** Stop cut motor [19:40:16]*** Cut end [19:40:16]Read from MH i2c: 01 07 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 9E 34 00 00 00 00 00 FF 0F E7 [19:40:16]process_action close_receipt done [19:40:16]requested_data is exist [19:40:16]produce_requested_data [19:40:16]requested_item fm.sn is exist - process it [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 11 00 00 [19:40:16]Write to MH i2c: E2 08 00 9F 34 80 11 00 00 00 00 00 00 4D [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 17 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 17 00 9F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A0 [19:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:40:16]wFMCommunicate OK [19:40:16]requested_item fd.num is exist - process it [19:40:16]SAM_PROTO_GetFieldsCounters [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 13 00 00 [19:40:16]Write to MH i2c: E2 08 00 A0 34 80 13 00 00 00 00 00 00 50 [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 62 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 62 00 A0 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F7 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [19:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F7 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:16]wFMCommunicate OK [19:40:16]SAM_PROTO_GetFieldsCounters done [19:40:16]requested_item shift.num is exist - process it [19:40:16]requested_item shift.opened is exist - process it [19:40:16]req_shift_opened [19:40:16]FM_GetShiftState [19:40:16]SAM_PROTO_GetShiftState [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 13 01 00 [19:40:16]Write to MH i2c: E2 08 00 A1 34 80 13 01 00 00 00 00 00 52 [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 0E 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 0E 00 A1 34 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 15 [19:40:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:40:17]wFMCommunicate OK [19:40:17]SAM_PROTO_GetShiftState done [19:40:17]FM_GetShiftState done [19:40:17]req_shift_opened done [19:40:17]requested_item shift.open_date is exist - process it [19:40:17]req_shift_open_date [19:40:17]req_shift_open_date done [19:40:17]produce_requested_data done [19:40:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148983,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:40:17]process_action_free close_receipt [19:40:17]json_value_free [19:40:17]json_value_free done [19:40:17]process_json_proto returns [19:40:17]Send response to host [19:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148983,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:40:17]free response buf [19:40:17]execute_script done [19:40:17]execute_script returns [19:40:17]free content buf [19:40:17]Sock 9.Close socket [19:40:17]Sock 9.Thread stoped [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:22]accept exits with 7 [19:42:22]New connection [19:42:22]New thread 3067264356 created [19:42:22]Thread 3067407716 joined [19:42:22]Waiting for new connection... [19:42:22] Sock 7.Parse request [19:42:22]Sock 7.Check first char [19:42:22]Sock 7.First char is OK [19:42:22]request: POST /json_proto HTTP/1.0 [19:42:22]Method: POST [19:42:22]URL: /json_proto [19:42:22]Method is POST - this is cgi request [19:42:22]url: /json_proto [19:42:22]query_string will be loaded in cgi processing [19:42:22]execute_cgi json_proto POST (null) [19:42:22]execute_cgi path=json_proto method=POST [19:42:22]POST find Content-Length [19:42:22]Host: 172.17.38.4:8080 [19:42:22]Content-Length: 679 [19:42:22]Content-Type: application/json [19:42:22] [19:42:22]POST finish read [19:42:22]Found Content-Length = 679 [19:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [19:42:22]execute_script... [19:42: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)979918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [19:42:22]POST & json_proto [19:42:22]process_json_proto [19:42:22]json parsed OK: [19:42:22]protocol is kg_v1.0 [19:42:22]action value=close_receipt [19:42:22]process_action close_receipt [19:42:22]cmd_close_receipt [19:42:22]MH_GetDate [19:42:22]Write to MH i2c: F0 00 00 A2 34 C5 [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: F0 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: F0 09 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: F0 09 00 A2 34 00 21 6E 5F 66 CC 51 87 64 2A [19:42:22]GetLastDocTimeStamp 1717530014 [19:42:22]current date 1717530145 [19:42:22]FM_GetShiftState [19:42:22]SAM_PROTO_GetShiftState [19:42:22]wFMCommunicate request_size=4 [19:42:22]MH_SAM_APDU [19:42:22]CAPDU: 80 13 01 00 [19:42:22]Write to MH i2c: E2 08 00 A3 34 80 13 01 00 00 00 00 00 54 [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 0E 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 0E 00 A3 34 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 17 [19:42:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:42:22]wFMCommunicate OK [19:42:22]SAM_PROTO_GetShiftState done [19:42:22]FM_GetShiftState done [19:42:22]opened in 1717460629 [19:42:22]opened+sec_in_day 1717547029 [19:42:22]quantity*price = 100018 [19:42:22]sum+1 = 100020 [19:42:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 323 04.06.2024 19:42 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148984 ФПД: 150332404475779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T194225&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148984&fm=150332404475779&tin=02508201610067®Number=0000000000092720&sum=100000 [19:42:23]StoreToDocumentArchive [19:42:23]shift 368 fd 148984 [19:42:23]save to /storage/0368/doc_00148984 [19:42:23]save last doc name /storage/0368/doc_00148984 to /storage/kkm_last_doc_name [19:42:23]save OK [19:42:23]Clear old archive folders... [19:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:42:23]tlvbuf is 0047B610 [19:42:23]SAM_PROTO_ClearQueue [19:42:23]wFMCommunicate request_size=4 [19:42:23]MH_SAM_APDU [19:42:23]CAPDU: 80 09 00 00 [19:42:23]Write to MH i2c: E2 08 00 B0 34 80 09 00 00 00 00 00 00 56 [19:42:23]Write i2c OK [19:42:23]MH_I2C_Read... [19:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 B0 34 00 90 00 58 [19:42:24]RAPDU: 90 00 [19:42:24]wFMCommunicate OK [19:42:24]SAM_PROTO_ClearQueue done [19:42:24]KKMCreateOFDPacket [19:42:24]OFDProtocolAddRootSTLVToBuf [19:42:24]FM_MakeSignedData [19:42:24]FM_MakeSignedData [19:42:24]SAM_PROTO_SignData [19:42:24]wFMCommunicate request_size=4 [19:42:24]MH_SAM_APDU [19:42:24]CAPDU: 80 0D 01 02 [19:42:24]Write to MH i2c: E2 08 00 B1 34 80 0D 01 02 00 00 00 00 5E [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 B1 34 00 90 00 59 [19:42:24]RAPDU: 90 00 [19:42:24]wFMCommunicate OK [19:42:24]wFMCommunicate request_size=255 [19:42:24]MH_SAM_APDU [19:42:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 43 01 00 00 F4 03 04 00 21 6E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 45 02 00 35 04 06 00 88 B9 FD 91 [19:42:24]Write to MH i2c: E2 02 01 B2 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 43 01 00 00 F4 03 04 00 21 6E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 45 02 00 35 04 06 00 88 B9 FD 91 00 00 D6 [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 B2 34 00 90 00 5A [19:42:24]RAPDU: 90 00 [19:42:24]wFMCommunicate OK [19:42:24]wFMCommunicate request_size=7 [19:42:24]MH_SAM_APDU [19:42:24]CAPDU: 80 0D 02 02 02 27 83 [19:42:24]Write to MH i2c: E2 0A 00 B3 34 80 0D 02 02 02 00 27 83 00 00 0F [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 B3 34 00 90 00 5B [19:42:24]RAPDU: 90 00 [19:42:24]wFMCommunicate OK [19:42:24]wFMCommunicate request_size=4 [19:42:24]MH_SAM_APDU [19:42:24]CAPDU: 80 0D 03 02 [19:42:24]Write to MH i2c: E2 08 00 B4 34 80 0D 03 02 00 00 00 00 63 [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 0B 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 0B 00 B4 34 00 19 4D 8E DA C3 52 10 71 90 00 C8 [19:42:24]RAPDU: 19 4D 8E DA C3 52 10 71 90 00 [19:42:24]wFMCommunicate OK [19:42:24]SAM_PROTO_SignData done [19:42:24]FM_MakeSignedData done [19:42:24]CreateOFDProtocolMessage [19:42:24]wFMCommunicate request_size=4 [19:42:24]MH_SAM_APDU [19:42:24]CAPDU: 80 11 00 00 [19:42:24]Write to MH i2c: E2 08 00 B5 34 80 11 00 00 00 00 00 00 63 [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 17 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 17 00 B5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B6 [19:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:42:24]wFMCommunicate OK [19:42:24]CreateOFDProtocolMessage done [19:42:24]OFDSenderStorePacket 148984 [19:42:24]StoreOFDPacket docnum=148984 [19:42:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 60 02 04 01 92 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 43 01 00 00 F4 03 04 00 21 6E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 45 02 00 35 04 06 00 88 B9 FD 91 27 83 19 4D 8E DA C3 52 10 71 [19:42:24]CheckFolder [19:42:24]dirname=/storage/ofd_packets [19:42:24]CheckFolder done [19:42:24]ProducePacketName [19:42:24]name=ofd_packets/00148984 [19:42:24]NVStorageSaveData ofd_packets/00148984 [19:42:24]File name is /storage/ofd_packets/00148984 [19:42:24]Write 298 bytes [19:42:24]NVStorageSaveData done [19:42:24]OFDSenderStorePacket done [19:42:24]KKMCreateOFDPacket done [19:42:24]NVStorageSaveData kkm_last_timestamp [19:42:24]File name is /storage/kkm_last_timestamp [19:42:24]Write 4 bytes [19:42:24]NVStorageSaveData done [19:42:24]ExternCall_PrintAddStr [19:42:24]wPrintStart [19:42:24]Write to MH i2c: 01 00 00 B6 34 EA [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: 01 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: 01 07 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: 01 07 00 B6 34 00 00 00 00 00 FF 0F FF [19:42:24]RasterBufferAndPrint [19:42:24]line Счет N : (1)979918 [19:42:24]line ИНН: 02508201610067 [19:42:24]line Контрольно-Кассовый Чек [19:42:24]line ПРОДАЖА [19:42:24]line ТРК (МРК, ГНК) : 52 [19:42:24]line Товар: 2710194210 [19:42:24]line ДТ-К-5 [19:42:24]line 13.720 * 72.90 [19:42:24]line = 1000.19 [19:42:24]line НДС 12% НСП 1% [19:42:24]line > о реализуемом товаре [19:42:24]line ОКРУГЛЕНИЕ: -0.19 [19:42:24]line ИТОГО: 1000.00 [19:42:24]line Внесено: 1000.00 [19:42:24]line СДАЧА: 0.00 [19:42:24]line НСП 1% : 8.85 [19:42:24]line НДС 12% : 106.21 [19:42:24]line Наличными: 1000.00 [19:42:24]line Безнал.: 0.00 [19:42:24]line Место: АЗС № 68 "Партнер Нефть" [19:42:24]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:42:24]line СНО: Общий режим [19:42:24]line Чек 323 04.06.2024 19:42 [19:42:24]line Смена: 368 ФФД: 1.0 [19:42:24]line ЗНМ: 0300000035 [19:42:24]line РНМ: 0000000000092720 [19:42:24]line Версия ККМ: 001 [19:42:24]line ФМ: 0000000000875057 [19:42:24]line ФД: 148984 [19:42:24]line ФПД: 150332404475779 [19:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T194225&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148984&fm=150332404475779&tin=02508201610067®Number=0000000000092720&sum=100000 [19:42:24]OFD Sender: Processing packet 148984 [packets to send 100, broken 99] [19:42:24]ProducePacketName [19:42:24]name=ofd_packets/00148984 [19:42:24]OFD Sender: To server: pG, [19:42:24]CommunicateWithHost lk.salyk.kg:30040 [19:42:24]ConnectInit lk.salyk.kg [19:42:24]written 0, free lines is 4095 [19:42:24]Connected sock=10 [19:42:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 60 02 04 01 92 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 43 01 00 00 F4 03 04 00 21 6E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 45 02 00 35 04 06 00 88 B9 FD 91 27 83 19 4D 8E DA C3 52 10 71 [19:42:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 AE 22 47 00 73 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 45 02 00 F4 03 04 00 44 15 5F 66 B6 04 01 00 00 3D 30 D5 D5 65 35 87 28 [19:42:25]CommunicateWithHost err = 0 [19:42:25]CheckOFDResponse [19:42:25]1017 (14) - 77093643461234 [19:42:25]1041 (16) - 0000000000875057 [19:42:25]1040 (4) - 148984 [19:42:25]1012 (4) - 04.06.2024 13:23 [19:42:25]1206 (1) - 0 [19:42:25]OFD Sender: Remove packet 148984 [19:42:25]ProducePacketName [19:42:25]name=ofd_packets/00148984 [19:42:25]NVStorageDeleteData [19:42:25]Write to MH i2c: 01 00 00 E1 34 15 [19:42:25]Write i2c OK [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: 01 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: 01 07 00 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: 01 07 00 E1 34 00 00 00 00 00 8C 0C B4 [19:42:25]RasterBufferAndPrint [19:42:25]line [19:42:25]line [19:42:25]line [19:42:25]line [19:42:25]line [19:42:25]written 0, free lines is 3224 [19:42:25]MH_Cut [19:42:25]Write to MH i2c: D1 01 00 E8 34 01 EE [19:42:25]Write i2c OK [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: D1 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: D1 01 00 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: D1 01 00 E8 34 00 ED [19:42:25]Write to MH i2c: 01 00 00 E9 34 1D [19:42:25]Write i2c OK [19:42:25]MH_I2C_Read... [19:42:25]OFD Sender: No OFD packet to send [19:42:26]*** Cut start [19:42:26]*** Partial cut [19:42:26]*** CUTSNS_PIN = 1 [19:42:26]*** CUTSNS_PIN = 0 [19:42:26]*** Brake cut motor [19:42:26]Read from MH i2c: 01 [19:42:26]MH_I2C_Read... [19:42:26]*** Stop cut motor [19:42:26]*** Cut end [19:42:26]Read from MH i2c: 01 07 00 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: 01 07 00 E9 34 00 00 00 00 00 FF 0F 32 [19:42:26]process_action close_receipt done [19:42:26]requested_data is exist [19:42:26]produce_requested_data [19:42:26]requested_item fm.sn is exist - process it [19:42:26]wFMCommunicate request_size=4 [19:42:26]MH_SAM_APDU [19:42:26]CAPDU: 80 11 00 00 [19:42:26]Write to MH i2c: E2 08 00 EA 34 80 11 00 00 00 00 00 00 98 [19:42:26]Write i2c OK [19:42:26]MH_I2C_Read... [19:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:27]Read from MH i2c: E2 [19:42:27]MH_I2C_Read... [19:42:27]Read from MH i2c: E2 17 00 [19:42:27]MH_I2C_Read... [19:42:27]Read from MH i2c: E2 17 00 EA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EB [19:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:42:27]wFMCommunicate OK [19:42:27]requested_item fd.num is exist - process it [19:42:27]SAM_PROTO_GetFieldsCounters [19:42:27]wFMCommunicate request_size=4 [19:42:27]MH_SAM_APDU [19:42:27]CAPDU: 80 13 00 00 [19:42:27]Write to MH i2c: E2 08 00 EB 34 80 13 00 00 00 00 00 00 9B [19:42:27]Write i2c OK [19:42:27]MH_I2C_Read... [19:42:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:27]Read from MH i2c: E2 [19:42:27]MH_I2C_Read... [19:42:27]Read from MH i2c: E2 62 00 [19:42:27]MH_I2C_Read... [19:42:27]Read from MH i2c: E2 62 00 EB 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [19:42:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:27]wFMCommunicate OK [19:42:27]SAM_PROTO_GetFieldsCounters done [19:42:27]requested_item shift.num is exist - process it [19:42:27]requested_item shift.opened is exist - process it [19:42:27]req_shift_opened [19:42:27]FM_GetShiftState [19:42:27]SAM_PROTO_GetShiftState [19:42:27]wFMCommunicate request_size=4 [19:42:27]MH_SAM_APDU [19:42:27]CAPDU: 80 13 01 00 [19:42:27]Write to MH i2c: E2 08 00 EC 34 80 13 01 00 00 00 00 00 9D [19:42:27]Write i2c OK [19:42:27]MH_I2C_Read... [19:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:27]Read from MH i2c: E2 [19:42:27]MH_I2C_Read... [19:42:27]Read from MH i2c: E2 0E 00 [19:42:27]MH_I2C_Read... [19:42:27]Read from MH i2c: E2 0E 00 EC 34 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 60 [19:42:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:42:27]wFMCommunicate OK [19:42:27]SAM_PROTO_GetShiftState done [19:42:27]FM_GetShiftState done [19:42:27]req_shift_opened done [19:42:27]requested_item shift.open_date is exist - process it [19:42:27]req_shift_open_date [19:42:27]req_shift_open_date done [19:42:27]produce_requested_data done [19:42:27]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148984,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:42:27]process_action_free close_receipt [19:42:27]json_value_free [19:42:27]json_value_free done [19:42:27]process_json_proto returns [19:42:27]Send response to host [19:42:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148984,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:42:27]free response buf [19:42:27]execute_script done [19:42:27]execute_script returns [19:42:27]free content buf [19:42:27]Sock 7.Close socket [19:42:27]Sock 7.Thread stoped [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F4 [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:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057254F (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 30940327+1686589900=1717530227 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 40 00 FF FF 96 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 74 6E 5F 66 CC 51 87 64 AE [19:43:48]Current date/time: 04.06.2024 19:43 [19:43:48]FM_Init [19:43:48]wFMConnect [19:43:48]MH_SAM_On [19:43:48]Write to MH i2c: E0 00 00 08 00 E7 [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]*** iso7816_init finished! [19:43:48]*** atr: [19:43:48]*** 0F 3B D5 18 FF 81 91 FE [19:43:48]*** 1F C3 80 73 C8 21 10 0A [19:43:48]*** 00 00 00 00 00 00 00 00 [19:43:48]*** 00 00 00 00 00 00 00 00 [19:43:48]*** 00 00 00 00 00 00 00 00 [19:43:48]*** 00 00 00 00 00 00 00 00 [19:43:48]*** 00 00 00 00 00 00 00 00 [19:43:48]*** 00 00 00 00 00 00 00 00 [19:43:48]Read from MH i2c: E0 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E0 10 00 [19:43:48]MH_I2C_Read... [19:43:48]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:43:48]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:43:48]wFMCommunicate request_size=10 [19:43:48]MH_SAM_APDU [19:43:48]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:43:48]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:43:48]Read from MH i2c: E2 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 03 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:43:48]RAPDU: 90 00 [19:43:48]wFMCommunicate OK [19:43:48]wFMCommunicate request_size=4 [19:43:48]MH_SAM_APDU [19:43:48]CAPDU: 80 11 00 00 [19:43:48]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:48]Read from MH i2c: E2 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 17 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D7 [19:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:43:48]wFMCommunicate OK [19:43:48]Detected FM SN is 0000000000875057 [19:43:48]Stored FM SN is 0000000000875057 [19:43:48]wFMCommunicate request_size=9 [19:43:48]MH_SAM_APDU [19:43:48]CAPDU: 80 16 00 00 04 C9 4A 01 00 [19:43:48]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C9 4A 01 00 00 00 A6 [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:43:48]Read from MH i2c: E2 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 03 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:43:48]RAPDU: 90 00 [19:43:48]wFMCommunicate OK [19:43:48]FM PIN OK [19:43:48]wFMCommunicate request_size=8 [19:43:48]MH_SAM_APDU [19:43:48]CAPDU: 80 14 04 00 03 02 00 01 [19:43:48]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:43:48]Read from MH i2c: E2 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 03 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:43:48]RAPDU: 90 00 [19:43:48]wFMCommunicate OK [19:43:48]wFMCommunicate request_size=13 [19:43:48]MH_SAM_APDU [19:43:48]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:43:48]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:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:43:48]Read from MH i2c: E2 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 03 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:43:48]RAPDU: 90 00 [19:43:48]wFMCommunicate OK [19:43:48]wFMCommunicate request_size=4 [19:43:48]MH_SAM_APDU [19:43:48]CAPDU: 80 11 00 00 [19:43:48]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:48]Read from MH i2c: E2 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 17 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DB [19:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:43:48]wFMCommunicate OK [19:43:48]DocumentArchiveInit [19:43:48]Start Httpd... [19:43:48]Httpd thread 3067506020 created [19:43:48]Write to MH i2c: 01 00 00 0F 00 0F [19:43:48]Write i2c OK [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: 01 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: 01 07 00 [19:43:48]MH_I2C_Read... [19:43:48]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:43:48]Allocated Socket 5 [19:43:48]Bind OK [19:43:48]Listen OK [19:43:48]httpd running on port 8080 [19:43:48]Waiting for new connection... [19:43:48]MH Int Process started [19:43:48]OFD Sender: No OFD packet to send [19:43:49]accept exits with 6 [19:43:49]New connection [19:43:49]New thread 3067219300 created [19:43:49]Waiting for new connection... [19:43:49] Sock 6.Parse request [19:43:49]Sock 6.Check first char [19:43:49]Sock 6.First char is OK [19:43:49]request: POST /json_proto HTTP/1.0 [19:43:49]Method: POST [19:43:49]URL: /json_proto [19:43:49]Method is POST - this is cgi request [19:43:49]url: /json_proto [19:43:49]query_string will be loaded in cgi processing [19:43:49]execute_cgi json_proto POST (null) [19:43:49]execute_cgi path=json_proto method=POST [19:43:49]POST find Content-Length [19:43:49]Host: 172.17.38.4:8080 [19:43:49]Content-Length: 215 [19:43:49]Content-Type: application/json [19:43:49] [19:43:49]POST finish read [19:43:49]Found Content-Length = 215 [19:43:49]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:43:49]execute_script... [19:43:49]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:43:49]POST & json_proto [19:43:49]process_json_proto [19:43:49]json parsed OK: [19:43:49]protocol is kg_v1.0 [19:43:49]action value=get_value [19:43:49]process_action get_value [19:43:49]cmd_get_value [19:43:49]process_action get_value done [19:43:49]requested_data is exist [19:43:49]produce_requested_data [19:43:49]requested_item kkm.sn is exist - process it [19:43:49]requested_item kkm.ver is exist - process it [19:43:49]requested_item fm.sn is exist - process it [19:43:49]wFMCommunicate request_size=4 [19:43:49]MH_SAM_APDU [19:43:49]CAPDU: 80 11 00 00 [19:43:49]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:43:49]Write i2c OK [19:43:49]MH_I2C_Read... [19:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:49]Read from MH i2c: E2 [19:43:49]MH_I2C_Read... [19:43:49]Read from MH i2c: E2 17 00 [19:43:49]MH_I2C_Read... [19:43:49]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DD [19:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:43:49]wFMCommunicate OK [19:43:49]requested_item fd.num is exist - process it [19:43:49]SAM_PROTO_GetFieldsCounters [19:43:49]wFMCommunicate request_size=4 [19:43:49]MH_SAM_APDU [19:43:49]CAPDU: 80 13 00 00 [19:43:49]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:43:49]Write i2c OK [19:43:49]MH_I2C_Read... [19:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:49]Read from MH i2c: E2 [19:43:49]MH_I2C_Read... [19:43:49]Read from MH i2c: E2 62 00 [19:43:49]MH_I2C_Read... [19:43:49]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 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [19:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F8 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:49]wFMCommunicate OK [19:43:49]SAM_PROTO_GetFieldsCounters done [19:43:49]requested_item shift.num is exist - process it [19:43:49]requested_item shift.opened is exist - process it [19:43:49]req_shift_opened [19:43:49]FM_GetShiftState [19:43:49]SAM_PROTO_GetShiftState [19:43:49]wFMCommunicate request_size=4 [19:43:49]MH_SAM_APDU [19:43:49]CAPDU: 80 13 01 00 [19:43:49]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:43:49]Write i2c OK [19:43:49]MH_I2C_Read... [19:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:49]Read from MH i2c: E2 [19:43:49]MH_I2C_Read... [19:43:49]Read from MH i2c: E2 0E 00 [19:43:49]MH_I2C_Read... [19:43:49]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 52 [19:43:49]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:43:49]wFMCommunicate OK [19:43:49]SAM_PROTO_GetShiftState done [19:43:49]FM_GetShiftState done [19:43:49]req_shift_opened done [19:43:49]requested_item shift.open_date is exist - process it [19:43:49]req_shift_open_date [19:43:49]req_shift_open_date done [19:43:49]produce_requested_data done [19:43:49]produce_requested_data return {"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":148984,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:43:49]process_action_free get_value [19:43:49]json_value_free [19:43:49]json_value_free done [19:43:49]process_json_proto returns [19:43:49]Send response to host [19:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":148984,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:43:49]free response buf [19:43:49]execute_script done [19:43:49]execute_script returns [19:43:49]free content buf [19:43:49]Sock 6.Close socket [19:43:49]Sock 6.Thread stoped [19:43:49]accept exits with 7 [19:43:49]New connection [19:43:49]New thread 3067075940 created [19:43:49]Thread 3067219300 joined [19:43:49]Waiting for new connection... [19:43:49] Sock 7.Parse request [19:43:49]Sock 7.Check first char [19:43:49]Sock 7.First char is OK [19:43:49]request: POST /json_proto HTTP/1.0 [19:43:49]Method: POST [19:43:49]URL: /json_proto [19:43:49]Method is POST - this is cgi request [19:43:49]url: /json_proto [19:43:49]query_string will be loaded in cgi processing [19:43:49]execute_cgi json_proto POST (null) [19:43:49]execute_cgi path=json_proto method=POST [19:43:49]POST find Content-Length [19:43:49]Host: 172.17.38.4:8080 [19:43:49]Content-Length: 331 [19:43:49]Content-Type: application/json [19:43:49] [19:43:49]POST finish read [19:43:49]Found Content-Length = 331 [19:43: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" ] } } [19:43:49]execute_script... [19:43: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" ] } } [19:43:49]POST & json_proto [19:43:49]process_json_proto [19:43:49]json parsed OK: [19:43:49]protocol is kg_v1.0 [19:43:49]action value=get_value [19:43:49]process_action get_value [19:43:49]cmd_get_value [19:43:49]process_action get_value done [19:43:49]requested_data is exist [19:43:49]produce_requested_data [19:43:49]requested_item fm.sale.total is exist - process it [19:43:49]SAM_PROTO_GetFMData [19:43:49]wFMCommunicate request_size=4 [19:43:49]MH_SAM_APDU [19:43:49]CAPDU: 80 13 03 00 [19:43:49]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:43:49]Write i2c OK [19:43:49]MH_I2C_Read... [19:43:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:43:50]Read from MH i2c: E2 [19:43:50]MH_I2C_Read... [19:43:50]Read from MH i2c: E2 FD 00 [19:43:50]MH_I2C_Read... [19:43:50]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 18 43 02 00 69 04 A3 00 6F 04 04 00 71 40 02 00 B1 04 05 00 D5 32 E9 D4 01 70 04 05 00 14 2D 33 B7 01 72 04 04 00 C1 05 B6 1D 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 FD A0 D1 31 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 D0 99 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A7 02 00 00 B1 04 04 00 F8 BB 06 04 70 04 04 00 C0 13 05 04 72 04 03 00 38 A8 01 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 BA 7E 6D EF 90 00 44 [19:43:50]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 18 43 02 00 69 04 A3 00 6F 04 04 00 71 40 02 00 B1 04 05 00 D5 32 E9 D4 01 70 04 05 00 14 2D 33 B7 01 72 04 04 00 C1 05 B6 1D 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 FD A0 D1 31 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 D0 99 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A7 02 00 00 B1 04 04 00 F8 BB 06 04 70 04 04 00 C0 13 05 04 72 04 03 00 38 A8 01 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 BA 7E 6D EF 90 00 [19:43:50]wFMCommunicate OK [19:43:50]wFMCommunicate request_size=4 [19:43:50]MH_SAM_APDU [19:43:50]CAPDU: 80 17 00 00 [19:43:50]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:43:50]Write i2c OK [19:43:50]MH_I2C_Read... [19:43:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:43:50]Read from MH i2c: E2 [19:43:50]MH_I2C_Read... [19:43:50]Read from MH i2c: E2 FD 00 [19:43:50]MH_I2C_Read... [19:43:50]Read from MH i2c: E2 FD 00 14 00 00 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 AF 1F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 78 [19:43:50]RAPDU: 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 AF 1F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:43:50]wFMCommunicate OK [19:43:50]wFMCommunicate request_size=4 [19:43:50]MH_SAM_APDU [19:43:50]CAPDU: 80 17 00 00 [19:43:50]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:43:50]Write i2c OK [19:43:50]MH_I2C_Read... [19:43:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:43:50]Read from MH i2c: E2 [19:43:50]MH_I2C_Read... [19:43:50]Read from MH i2c: E2 FD 00 [19:43:50]MH_I2C_Read... [19:43:50]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [19:43:50]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:43:50]wFMCommunicate OK [19:43:50]wFMCommunicate request_size=4 [19:43:50]MH_SAM_APDU [19:43:50]CAPDU: 80 17 00 00 [19:43:50]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:43:50]Write i2c OK [19:43:50]MH_I2C_Read... [19:43:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:43:51]Read from MH i2c: E2 [19:43:51]MH_I2C_Read... [19:43:51]Read from MH i2c: E2 FD 00 [19:43:51]MH_I2C_Read... [19:43:51]Read from MH i2c: E2 FD 00 16 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 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 90 00 11 [19:43:51]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:43:51]wFMCommunicate OK [19:43:51]wFMCommunicate request_size=4 [19:43:51]MH_SAM_APDU [19:43:51]CAPDU: 80 17 00 00 [19:43:51]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:43:51]Write i2c OK [19:43:51]MH_I2C_Read... [19:43:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [19:43:51]Read from MH i2c: E2 [19:43:51]MH_I2C_Read... [19:43:51]Read from MH i2c: E2 E4 00 [19:43:51]MH_I2C_Read... [19:43:51]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [19:43:51]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:43:51]wFMCommunicate OK [19:43:51]SAM_PROTO_GetFMData done [19:43:51]requested_item fm.sale_refund.total is exist - process it [19:43:51]requested_item fm.buy.total is exist - process it [19:43:51]requested_item shift.sale.total is exist - process it [19:43:51]SAM_PROTO_GetShiftData [19:43:51]wFMCommunicate request_size=4 [19:43:51]MH_SAM_APDU [19:43:51]CAPDU: 80 13 02 00 [19:43:51]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:43:51]Write i2c OK [19:43:51]MH_I2C_Read... [19:43:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:43:51]Read from MH i2c: E2 [19:43:51]MH_I2C_Read... [19:43:51]Read from MH i2c: E2 FD 00 [19:43:51]MH_I2C_Read... [19:43:51]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 42 01 00 00 B1 04 04 00 69 10 3A 01 70 04 04 00 8C 53 0B 01 72 04 03 00 DD BC 2E 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 06 5D 21 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 C5 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 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 4C 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 B7 [19:43:51]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 42 01 00 00 B1 04 04 00 69 10 3A 01 70 04 04 00 8C 53 0B 01 72 04 03 00 DD BC 2E 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 06 5D 21 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 C5 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 20 4E 70 04 02 00 20 4E 72 04 00 00 00 04 78 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 4C 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [19:43:51]wFMCommunicate OK [19:43:51]wFMCommunicate request_size=4 [19:43:51]MH_SAM_APDU [19:43:51]CAPDU: 80 17 00 00 [19:43:51]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:43:52]Write i2c OK [19:43:52]MH_I2C_Read... [19:43:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:43:52]Read from MH i2c: E2 [19:43:52]MH_I2C_Read... [19:43:52]Read from MH i2c: E2 FD 00 [19:43:52]MH_I2C_Read... [19:43:52]Read from MH i2c: E2 FD 00 19 00 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 B1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7C [19:43:52]RAPDU: 03 0A 00 F6 03 01 00 01 F7 03 01 00 B1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:43:52]wFMCommunicate OK [19:43:52]wFMCommunicate request_size=4 [19:43:52]MH_SAM_APDU [19:43:52]CAPDU: 80 17 00 00 [19:43:52]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:43:52]Write i2c OK [19:43:52]MH_I2C_Read... [19:43:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:43:52]Read from MH i2c: E2 [19:43:52]MH_I2C_Read... [19:43:52]Read from MH i2c: E2 FD 00 [19:43:52]MH_I2C_Read... [19:43:52]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3C [19:43:52]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 [19:43:52]wFMCommunicate OK [19:43:52]wFMCommunicate request_size=4 [19:43:52]MH_SAM_APDU [19:43:52]CAPDU: 80 17 00 00 [19:43:52]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:43:52]Write i2c OK [19:43:52]MH_I2C_Read... [19:43:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:43:52]Read from MH i2c: E2 [19:43:52]MH_I2C_Read... [19:43:52]Read from MH i2c: E2 FD 00 [19:43:52]MH_I2C_Read... [19:43:52]Read from MH i2c: E2 FD 00 1B 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 24 [19:43:52]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 [19:43:52]wFMCommunicate OK [19:43:52]wFMCommunicate request_size=4 [19:43:52]MH_SAM_APDU [19:43:52]CAPDU: 80 17 00 00 [19:43:52]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:43:52]Write i2c OK [19:43:52]MH_I2C_Read... [19:43:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [19:43:53]Read from MH i2c: E2 [19:43:53]MH_I2C_Read... [19:43:53]Read from MH i2c: E2 D5 00 [19:43:53]MH_I2C_Read... [19:43:53]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [19:43:53]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 [19:43:53]wFMCommunicate OK [19:43:53]SAM_PROTO_GetShiftData done [19:43:53]requested_item shift.sale.total_cash is exist - process it [19:43:53]requested_item shift.sale_refund.total is exist - process it [19:43:53]requested_item shift.sale_refund.total_cash is exist - process it [19:43:53]requested_item shift.buy.total is exist - process it [19:43:53]requested_item shift.buy.total_cash is exist - process it [19:43:53]produce_requested_data done [19:43:53]produce_requested_data return {"fm.sale.total":78670199.89,"fm.sale_refund.total":675502.00,"fm.buy.total":0.00,"shift.sale.total":205825.05,"shift.sale.total_cash":175195.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:43:53]process_action_free get_value [19:43:53]json_value_free [19:43:53]json_value_free done [19:43:53]process_json_proto returns [19:43:53]Send response to host [19:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78670199.89,"fm.sale_refund.total":675502.00,"fm.buy.total":0.00,"shift.sale.total":205825.05,"shift.sale.total_cash":175195.00,"shift.sale_refund.total":200.00,"shift.sale_refund.total_cash":200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:43:53]free response buf [19:43:53]execute_script done [19:43:53]execute_script returns [19:43:53]free content buf [19:43:53]Sock 7.Close socket [19:43:53]Sock 7.Thread stoped [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]accept exits with 6 [19:47:28]New connection [19:47:28]New thread 3067219300 created [19:47:28]Thread 3067075940 joined [19:47:28]Waiting for new connection... [19:47:28] Sock 6.Parse request [19:47:28]Sock 6.Check first char [19:47:28]Sock 6.First char is OK [19:47:28]request: POST /json_proto HTTP/1.0 [19:47:28]Method: POST [19:47:28]URL: /json_proto [19:47:28]Method is POST - this is cgi request [19:47:28]url: /json_proto [19:47:28]query_string will be loaded in cgi processing [19:47:28]execute_cgi json_proto POST (null) [19:47:28]execute_cgi path=json_proto method=POST [19:47:28]POST find Content-Length [19:47:28]Host: 172.17.38.4:8080 [19:47:28]Content-Length: 677 [19:47:28]Content-Type: application/json [19:47:28] [19:47:28]POST finish read [19:47:28]Found Content-Length = 677 [19:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:28]execute_script... [19:47: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)979919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:28]POST & json_proto [19:47:28]process_json_proto [19:47:28]json parsed OK: [19:47:28]protocol is kg_v1.0 [19:47:28]action value=close_receipt [19:47:28]process_action close_receipt [19:47:28]cmd_close_receipt [19:47:28]MH_GetDate [19:47:28]Write to MH i2c: F0 00 00 1D 00 0C [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: F0 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: F0 09 00 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: F0 09 00 1D 00 00 50 6F 5F 66 CC 51 87 64 A1 [19:47:28]GetLastDocTimeStamp 1717530145 [19:47:28]current date 1717530448 [19:47:28]FM_GetShiftState [19:47:28]SAM_PROTO_GetShiftState [19:47:28]wFMCommunicate request_size=4 [19:47:28]MH_SAM_APDU [19:47:28]CAPDU: 80 13 01 00 [19:47:28]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:28]Read from MH i2c: E2 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: E2 0E 00 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5E [19:47:28]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:47:28]wFMCommunicate OK [19:47:28]SAM_PROTO_GetShiftState done [19:47:28]FM_GetShiftState done [19:47:28]opened in 1717460629 [19:47:28]opened+sec_in_day 1717547029 [19:47:28]quantity*price = 30038 [19:47:28]sum+1 = 30039 [19:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 324 04.06.2024 19:47 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148985 ФПД: 66048020230241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T194728&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148985&fm=66048020230241&tin=02508201610067®Number=0000000000092720&sum=30000 [19:47:29]StoreToDocumentArchive [19:47:29]shift 368 fd 148985 [19:47:29]save to /storage/0368/doc_00148985 [19:47:29]save last doc name /storage/0368/doc_00148985 to /storage/kkm_last_doc_name [19:47:29]save OK [19:47:29]Clear old archive folders... [19:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:29]tlvbuf is 0093CEB0 [19:47:29]SAM_PROTO_ClearQueue [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 09 00 00 [19:47:29]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:47:29]RAPDU: 90 00 [19:47:29]wFMCommunicate OK [19:47:29]SAM_PROTO_ClearQueue done [19:47:29]KKMCreateOFDPacket [19:47:29]OFDProtocolAddRootSTLVToBuf [19:47:29]FM_MakeSignedData [19:47:29]FM_MakeSignedData [19:47:29]SAM_PROTO_SignData [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 0D 01 02 [19:47:29]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:47:29]RAPDU: 90 00 [19:47:29]wFMCommunicate OK [19:47:29]wFMCommunicate request_size=255 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 01 00 00 F4 03 04 00 50 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 45 02 00 35 04 06 00 3C [19:47:29]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 01 00 00 F4 03 04 00 50 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 45 02 00 35 04 06 00 3C 00 00 D9 [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:47:29]RAPDU: 90 00 [19:47:29]wFMCommunicate OK [19:47:29]wFMCommunicate request_size=10 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 0D 02 02 05 12 00 C8 B0 61 [19:47:29]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 12 00 C8 B0 61 00 00 9D [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:47:29]RAPDU: 90 00 [19:47:29]wFMCommunicate OK [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 0D 03 02 [19:47:29]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 0B 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 0B 00 2F 00 00 AD 51 CF AA A9 E6 65 CB 90 00 E1 [19:47:29]RAPDU: AD 51 CF AA A9 E6 65 CB 90 00 [19:47:29]wFMCommunicate OK [19:47:29]SAM_PROTO_SignData done [19:47:29]FM_MakeSignedData done [19:47:29]CreateOFDProtocolMessage [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 11 00 00 [19:47:29]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 17 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FD [19:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:47:29]wFMCommunicate OK [19:47:29]CreateOFDProtocolMessage done [19:47:29]OFDSenderStorePacket 148985 [19:47:29]StoreOFDPacket docnum=148985 [19:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 49 07 01 53 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 50 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 45 02 00 35 04 06 00 3C 12 00 C8 B0 61 AD 51 CF AA A9 E6 65 CB [19:47:29]CheckFolder [19:47:29]dirname=/storage/ofd_packets [19:47:29]CheckFolder done [19:47:29]ProducePacketName [19:47:29]name=ofd_packets/00148985 [19:47:29]NVStorageSaveData ofd_packets/00148985 [19:47:29]File name is /storage/ofd_packets/00148985 [19:47:29]Write 301 bytes [19:47:29]NVStorageSaveData done [19:47:29]OFDSenderStorePacket done [19:47:29]KKMCreateOFDPacket done [19:47:29]NVStorageSaveData kkm_last_timestamp [19:47:29]File name is /storage/kkm_last_timestamp [19:47:29]Write 4 bytes [19:47:29]NVStorageSaveData done [19:47:29]ExternCall_PrintAddStr [19:47:29]wPrintStart [19:47:29]Write to MH i2c: 01 00 00 31 00 31 [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: 01 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: 01 07 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:47:29]RasterBufferAndPrint [19:47:29]line Счет N : (1)979919 [19:47:29]line ИНН: 02508201610067 [19:47:29]line Контрольно-Кассовый Чек [19:47:29]line ПРОДАЖА [19:47:29]line ТРК (МРК, ГНК) : 22 [19:47:29]line Товар: 2710124130 [19:47:29]line Аи-92-К-5 [19:47:29]line 4.490 * 66.90 [19:47:29]line = 300.38 [19:47:29]line НДС 12% НСП 1% [19:47:29]line > о реализуемом товаре [19:47:29]line ОКРУГЛЕНИЕ: -0.38 [19:47:29]line ИТОГО: 300.00 [19:47:29]line Внесено: 300.00 [19:47:29]line СДАЧА: 0.00 [19:47:29]line НСП 1% : 2.66 [19:47:29]line НДС 12% : 31.90 [19:47:29]line Наличными: 300.00 [19:47:29]line Безнал.: 0.00 [19:47:29]line Место: АЗС № 68 "Партнер Нефть" [19:47:29]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:47:29]line СНО: Общий режим [19:47:29]line Чек 324 04.06.2024 19:47 [19:47:29]line Смена: 368 ФФД: 1.0 [19:47:29]line ЗНМ: 0300000035 [19:47:29]line РНМ: 0000000000092720 [19:47:29]line Версия ККМ: 001 [19:47:29]line ФМ: 0000000000875057 [19:47:29]line ФД: 148985 [19:47:29]line ФПД: 66048020230241 [19:47:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T194728&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148985&fm=66048020230241&tin=02508201610067®Number=0000000000092720&sum=30000 [19:47:30]OFD Sender: Processing packet 148985 [packets to send 100, broken 99] [19:47:30]ProducePacketName [19:47:30]name=ofd_packets/00148985 [19:47:30]OFD Sender: To server: pG, [19:47:30]CommunicateWithHost lk.salyk.kg:30040 [19:47:30]ConnectInit lk.salyk.kg [19:47:30]written 0, free lines is 4095 [19:47:30]Connected sock=10 [19:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 49 07 01 53 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 50 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 45 02 00 35 04 06 00 3C 12 00 C8 B0 61 AD 51 CF AA A9 E6 65 CB [19:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DD BC 47 00 25 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 38 37 35 30 35 37 10 04 04 00 F9 45 02 00 F4 03 04 00 73 16 5F 66 B6 04 01 00 00 C8 5B 24 E6 12 C9 53 06 [19:47:30]CommunicateWithHost err = 0 [19:47:30]CheckOFDResponse [19:47:30]1017 (14) - 77093643461234 [19:47:30]1041 (16) - 0000000000875057 [19:47:30]1040 (4) - 148985 [19:47:30]1012 (4) - 04.06.2024 13:28 [19:47:30]1206 (1) - 0 [19:47:30]OFD Sender: Remove packet 148985 [19:47:30]ProducePacketName [19:47:30]name=ofd_packets/00148985 [19:47:30]NVStorageDeleteData [19:47:30]Write to MH i2c: 01 00 00 5C 00 5C [19:47:30]Write i2c OK [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: 01 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: 01 07 00 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 94 0C 03 [19:47:30]RasterBufferAndPrint [19:47:30]line [19:47:30]line [19:47:30]line [19:47:30]line [19:47:30]line [19:47:30]written 0, free lines is 3224 [19:47:30]MH_Cut [19:47:30]Write to MH i2c: D1 01 00 63 00 01 35 [19:47:30]Write i2c OK [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: D1 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: D1 01 00 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: D1 01 00 63 00 00 34 [19:47:30]Write to MH i2c: 01 00 00 64 00 64 [19:47:30]Write i2c OK [19:47:30]MH_I2C_Read... [19:47:30]OFD Sender: No OFD packet to send [19:47:31]*** Cut start [19:47:31]*** Partial cut [19:47:31]*** CUTSNS_PIN = 1 [19:47:31]*** CUTSNS_PIN = 0 [19:47:32]*** Brake cut motor [19:47:32]Read from MH i2c: 01 [19:47:32]MH_I2C_Read... [19:47:32]*** Stop cut motor [19:47:32]*** Cut end [19:47:32]Read from MH i2c: 01 07 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [19:47:32]process_action close_receipt done [19:47:32]requested_data is exist [19:47:32]produce_requested_data [19:47:32]requested_item fm.sn is exist - process it [19:47:32]wFMCommunicate request_size=4 [19:47:32]MH_SAM_APDU [19:47:32]CAPDU: 80 11 00 00 [19:47:32]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [19:47:32]Write i2c OK [19:47:32]MH_I2C_Read... [19:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:32]Read from MH i2c: E2 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 17 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 32 [19:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:47:32]wFMCommunicate OK [19:47:32]requested_item fd.num is exist - process it [19:47:32]SAM_PROTO_GetFieldsCounters [19:47:32]wFMCommunicate request_size=4 [19:47:32]MH_SAM_APDU [19:47:32]CAPDU: 80 13 00 00 [19:47:32]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [19:47:32]Write i2c OK [19:47:32]MH_I2C_Read... [19:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:32]Read from MH i2c: E2 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 62 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F9 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [19:47:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F9 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:32]wFMCommunicate OK [19:47:32]SAM_PROTO_GetFieldsCounters done [19:47:32]requested_item shift.num is exist - process it [19:47:32]requested_item shift.opened is exist - process it [19:47:32]req_shift_opened [19:47:32]FM_GetShiftState [19:47:32]SAM_PROTO_GetShiftState [19:47:32]wFMCommunicate request_size=4 [19:47:32]MH_SAM_APDU [19:47:32]CAPDU: 80 13 01 00 [19:47:32]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [19:47:32]Write i2c OK [19:47:32]MH_I2C_Read... [19:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:32]Read from MH i2c: E2 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 0E 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A7 [19:47:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:47:32]wFMCommunicate OK [19:47:32]SAM_PROTO_GetShiftState done [19:47:32]FM_GetShiftState done [19:47:32]req_shift_opened done [19:47:32]requested_item shift.open_date is exist - process it [19:47:32]req_shift_open_date [19:47:32]req_shift_open_date done [19:47:32]produce_requested_data done [19:47:32]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148985,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:47:32]process_action_free close_receipt [19:47:32]json_value_free [19:47:32]json_value_free done [19:47:32]process_json_proto returns [19:47:32]Send response to host [19:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148985,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:47:32]free response buf [19:47:32]execute_script done [19:47:32]execute_script returns [19:47:32]free content buf [19:47:32]Sock 6.Close socket [19:47:32]Sock 6.Thread stoped [19:47:35]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:26]accept exits with 9 [19:49:26]New connection [19:49:26]New thread 3067075940 created [19:49:26]Thread 3067219300 joined [19:49:26]Waiting for new connection... [19:49:26] Sock 9.Parse request [19:49:26]Sock 9.Check first char [19:49:26]Sock 9.First char is OK [19:49:26]request: POST /json_proto HTTP/1.0 [19:49:26]Method: POST [19:49:26]URL: /json_proto [19:49:26]Method is POST - this is cgi request [19:49:26]url: /json_proto [19:49:26]query_string will be loaded in cgi processing [19:49:26]execute_cgi json_proto POST (null) [19:49:26]execute_cgi path=json_proto method=POST [19:49:26]POST find Content-Length [19:49:26]Host: 172.17.38.4:8080 [19:49:26]Content-Length: 679 [19:49:26]Content-Type: application/json [19:49:26] [19:49:26]POST finish read [19:49:26]Found Content-Length = 679 [19:49:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 24.700, "sum" : 1800.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:26]execute_script... [19:49: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)979920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 24.700, "sum" : 1800.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:26]POST & json_proto [19:49:26]process_json_proto [19:49:26]json parsed OK: [19:49:26]protocol is kg_v1.0 [19:49:26]action value=close_receipt [19:49:26]process_action close_receipt [19:49:26]cmd_close_receipt [19:49:26]MH_GetDate [19:49:26]Write to MH i2c: F0 00 00 68 00 57 [19:49:26]Write i2c OK [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: F0 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: F0 09 00 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: F0 09 00 68 00 00 C6 6F 5F 66 CC 51 87 64 62 [19:49:26]GetLastDocTimeStamp 1717530448 [19:49:26]current date 1717530566 [19:49:26]FM_GetShiftState [19:49:26]SAM_PROTO_GetShiftState [19:49:26]wFMCommunicate request_size=4 [19:49:26]MH_SAM_APDU [19:49:26]CAPDU: 80 13 01 00 [19:49:26]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [19:49:26]Write i2c OK [19:49:26]MH_I2C_Read... [19:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:26]Read from MH i2c: E2 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 0E 00 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A9 [19:49:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:49:26]wFMCommunicate OK [19:49:26]SAM_PROTO_GetShiftState done [19:49:26]FM_GetShiftState done [19:49:26]opened in 1717460629 [19:49:26]opened+sec_in_day 1717547029 [19:49:26]quantity*price = 180063 [19:49:26]sum+1 = 180064 [19:49:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.22 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 325 04.06.2024 19:49 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148986 ФПД: 205124834064000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T194926&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148986&fm=205124834064000&tin=02508201610067®Number=0000000000092720&sum=180000 [19:49:27]StoreToDocumentArchive [19:49:27]shift 368 fd 148986 [19:49:27]save to /storage/0368/doc_00148986 [19:49:27]save last doc name /storage/0368/doc_00148986 to /storage/kkm_last_doc_name [19:49:27]save OK [19:49:27]Clear old archive folders... [19:49:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:49:27]tlvbuf is 0096ABC0 [19:49:27]SAM_PROTO_ClearQueue [19:49:27]wFMCommunicate request_size=4 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 09 00 00 [19:49:27]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:27]Read from MH i2c: E2 03 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [19:49:27]RAPDU: 90 00 [19:49:27]wFMCommunicate OK [19:49:27]SAM_PROTO_ClearQueue done [19:49:27]KKMCreateOFDPacket [19:49:27]OFDProtocolAddRootSTLVToBuf [19:49:27]FM_MakeSignedData [19:49:27]FM_MakeSignedData [19:49:27]SAM_PROTO_SignData [19:49:27]wFMCommunicate request_size=4 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 0D 01 02 [19:49:27]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [19:49:27]RAPDU: 90 00 [19:49:27]wFMCommunicate OK [19:49:27]wFMCommunicate request_size=255 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 C6 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 45 02 00 35 04 06 00 BA 8F 58 DE [19:49:27]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 C6 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 45 02 00 35 04 06 00 BA 8F 58 DE 00 00 48 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [19:49:27]RAPDU: 90 00 [19:49:27]wFMCommunicate OK [19:49:27]wFMCommunicate request_size=7 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 0D 02 02 02 76 80 [19:49:27]Write to MH i2c: E2 0A 00 79 00 80 0D 02 02 02 00 76 80 00 00 ED [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [19:49:27]RAPDU: 90 00 [19:49:27]wFMCommunicate OK [19:49:27]wFMCommunicate request_size=4 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 0D 03 02 [19:49:27]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 0B 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 0B 00 7A 00 00 22 BB 1A 3F 31 D2 CD 3F 90 00 3B [19:49:27]RAPDU: 22 BB 1A 3F 31 D2 CD 3F 90 00 [19:49:27]wFMCommunicate OK [19:49:27]SAM_PROTO_SignData done [19:49:27]FM_MakeSignedData done [19:49:27]CreateOFDProtocolMessage [19:49:27]wFMCommunicate request_size=4 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 11 00 00 [19:49:27]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 17 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 48 [19:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:49:27]wFMCommunicate OK [19:49:27]CreateOFDProtocolMessage done [19:49:27]OFDSenderStorePacket 148986 [19:49:27]StoreOFDPacket docnum=148986 [19:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 C8 AC 04 01 82 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 C6 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 45 02 00 35 04 06 00 BA 8F 58 DE 76 80 22 BB 1A 3F 31 D2 CD 3F [19:49:27]CheckFolder [19:49:27]dirname=/storage/ofd_packets [19:49:27]CheckFolder done [19:49:27]ProducePacketName [19:49:27]name=ofd_packets/00148986 [19:49:27]NVStorageSaveData ofd_packets/00148986 [19:49:27]File name is /storage/ofd_packets/00148986 [19:49:27]Write 298 bytes [19:49:27]NVStorageSaveData done [19:49:27]OFDSenderStorePacket done [19:49:27]KKMCreateOFDPacket done [19:49:27]NVStorageSaveData kkm_last_timestamp [19:49:27]File name is /storage/kkm_last_timestamp [19:49:27]Write 4 bytes [19:49:27]NVStorageSaveData done [19:49:27]ExternCall_PrintAddStr [19:49:27]wPrintStart [19:49:27]Write to MH i2c: 01 00 00 7C 00 7C [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: 01 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: 01 07 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [19:49:27]RasterBufferAndPrint [19:49:27]line Счет N : (1)979920 [19:49:27]line ИНН: 02508201610067 [19:49:27]line Контрольно-Кассовый Чек [19:49:27]line ПРОДАЖА [19:49:27]line ТРК (МРК, ГНК) : 11 [19:49:27]line Товар: 2710194210 [19:49:27]line ДТ-К-5 [19:49:27]line 24.700 * 72.90 [19:49:27]line = 1800.63 [19:49:27]line НДС 12% НСП 1% [19:49:27]line > о реализуемом товаре [19:49:27]line ОКРУГЛЕНИЕ: -0.63 [19:49:27]line ИТОГО: 1800.00 [19:49:27]line Внесено: 1800.00 [19:49:27]line СДАЧА: 0.00 [19:49:27]line НСП 1% : 15.93 [19:49:27]line НДС 12% : 191.22 [19:49:27]line Наличными: 1800.00 [19:49:27]line Безнал.: 0.00 [19:49:27]line Место: АЗС № 68 "Партнер Нефть" [19:49:27]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:49:27]line СНО: Общий режим [19:49:27]line Чек 325 04.06.2024 19:49 [19:49:27]line Смена: 368 ФФД: 1.0 [19:49:27]line ЗНМ: 0300000035 [19:49:27]line РНМ: 0000000000092720 [19:49:27]line Версия ККМ: 001 [19:49:27]line ФМ: 0000000000875057 [19:49:27]line ФД: 148986 [19:49:27]line ФПД: 205124834064000 [19:49:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T194926&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148986&fm=205124834064000&tin=02508201610067®Number=0000000000092720&sum=180000 [19:49:28]OFD Sender: Processing packet 148986 [packets to send 100, broken 99] [19:49:28]ProducePacketName [19:49:28]name=ofd_packets/00148986 [19:49:28]OFD Sender: To server: pG, [19:49:28]CommunicateWithHost lk.salyk.kg:30040 [19:49:28]ConnectInit lk.salyk.kg [19:49:28]written 0, free lines is 4095 [19:49:28]Connected sock=10 [19:49:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 C8 AC 04 01 82 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 C6 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 45 02 00 35 04 06 00 BA 8F 58 DE 76 80 22 BB 1A 3F 31 D2 CD 3F [19:49:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 10 A3 47 00 02 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 45 02 00 F4 03 04 00 E9 16 5F 66 B6 04 01 00 00 44 08 20 46 60 D6 0B B4 [19:49:28]CommunicateWithHost err = 0 [19:49:28]CheckOFDResponse [19:49:28]1017 (14) - 77093643461234 [19:49:28]1041 (16) - 0000000000875057 [19:49:28]1040 (4) - 148986 [19:49:28]1012 (4) - 04.06.2024 13:30 [19:49:28]1206 (1) - 0 [19:49:28]OFD Sender: Remove packet 148986 [19:49:28]ProducePacketName [19:49:28]name=ofd_packets/00148986 [19:49:28]NVStorageDeleteData [19:49:28]Write to MH i2c: 01 00 00 A7 00 A7 [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 8E 0C 48 [19:49:28]RasterBufferAndPrint [19:49:28]line [19:49:28]line [19:49:28]line [19:49:28]line [19:49:28]line [19:49:28]written 0, free lines is 3220 [19:49:28]MH_Cut [19:49:28]Write to MH i2c: D1 01 00 AE 00 01 80 [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: D1 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: D1 01 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: D1 01 00 AE 00 00 7F [19:49:28]Write to MH i2c: 01 00 00 AF 00 AF [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:29]OFD Sender: No OFD packet to send [19:49:29]*** Cut start [19:49:29]*** Partial cut [19:49:29]*** CUTSNS_PIN = 1 [19:49:29]*** CUTSNS_PIN = 0 [19:49:30]*** Brake cut motor [19:49:30]Read from MH i2c: 01 [19:49:30]MH_I2C_Read... [19:49:30]*** Stop cut motor [19:49:30]*** Cut end [19:49:30]Read from MH i2c: 01 07 00 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [19:49:30]process_action close_receipt done [19:49:30]requested_data is exist [19:49:30]produce_requested_data [19:49:30]requested_item fm.sn is exist - process it [19:49:30]wFMCommunicate request_size=4 [19:49:30]MH_SAM_APDU [19:49:30]CAPDU: 80 11 00 00 [19:49:30]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [19:49:30]Write i2c OK [19:49:30]MH_I2C_Read... [19:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:30]Read from MH i2c: E2 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 17 00 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7D [19:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:49:30]wFMCommunicate OK [19:49:30]requested_item fd.num is exist - process it [19:49:30]SAM_PROTO_GetFieldsCounters [19:49:30]wFMCommunicate request_size=4 [19:49:30]MH_SAM_APDU [19:49:30]CAPDU: 80 13 00 00 [19:49:30]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [19:49:30]Write i2c OK [19:49:30]MH_I2C_Read... [19:49:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:30]Read from MH i2c: E2 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 62 00 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FA 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [19:49:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FA 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:30]wFMCommunicate OK [19:49:30]SAM_PROTO_GetFieldsCounters done [19:49:30]requested_item shift.num is exist - process it [19:49:30]requested_item shift.opened is exist - process it [19:49:30]req_shift_opened [19:49:30]FM_GetShiftState [19:49:30]SAM_PROTO_GetShiftState [19:49:30]wFMCommunicate request_size=4 [19:49:30]MH_SAM_APDU [19:49:30]CAPDU: 80 13 01 00 [19:49:30]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [19:49:30]Write i2c OK [19:49:30]MH_I2C_Read... [19:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:30]Read from MH i2c: E2 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 0E 00 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F2 [19:49:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:49:30]wFMCommunicate OK [19:49:30]SAM_PROTO_GetShiftState done [19:49:30]FM_GetShiftState done [19:49:30]req_shift_opened done [19:49:30]requested_item shift.open_date is exist - process it [19:49:30]req_shift_open_date [19:49:30]req_shift_open_date done [19:49:30]produce_requested_data done [19:49:30]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148986,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:49:30]process_action_free close_receipt [19:49:30]json_value_free [19:49:30]json_value_free done [19:49:30]process_json_proto returns [19:49:30]Send response to host [19:49:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148986,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:49:30]free response buf [19:49:30]execute_script done [19:49:30]execute_script returns [19:49:30]free content buf [19:49:30]Sock 9.Close socket [19:49:30]Sock 9.Thread stoped [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:16]accept exits with 7 [19:50:16]New connection [19:50:16]New thread 3067219300 created [19:50:16]Thread 3067075940 joined [19:50:16]Waiting for new connection... [19:50:16] Sock 7.Parse request [19:50:16]Sock 7.Check first char [19:50:16]Sock 7.First char is OK [19:50:16]request: POST /json_proto HTTP/1.0 [19:50:16]Method: POST [19:50:16]URL: /json_proto [19:50:16]Method is POST - this is cgi request [19:50:16]url: /json_proto [19:50:16]query_string will be loaded in cgi processing [19:50:16]execute_cgi json_proto POST (null) [19:50:16]execute_cgi path=json_proto method=POST [19:50:16]POST find Content-Length [19:50:16]Host: 172.17.38.4:8080 [19:50:16]Content-Length: 790 [19:50:16]Content-Type: application/json [19:50:16] [19:50:16]POST finish read [19:50:16]Found Content-Length = 790 [19:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:16]execute_script... [19:50:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:16]POST & json_proto [19:50:16]process_json_proto [19:50:16]json parsed OK: [19:50:16]protocol is kg_v1.0 [19:50:16]action value=close_receipt [19:50:16]process_action close_receipt [19:50:16]cmd_close_receipt [19:50:16]MH_GetDate [19:50:16]Write to MH i2c: F0 00 00 B3 00 A2 [19:50:16]Write i2c OK [19:50:16]MH_I2C_Read... [19:50:16]Read from MH i2c: F0 [19:50:16]MH_I2C_Read... [19:50:16]Read from MH i2c: F0 09 00 [19:50:16]MH_I2C_Read... [19:50:16]Read from MH i2c: F0 09 00 B3 00 00 F9 6F 5F 66 CC 51 87 64 E0 [19:50:16]GetLastDocTimeStamp 1717530566 [19:50:16]current date 1717530617 [19:50:16]FM_GetShiftState [19:50:16]SAM_PROTO_GetShiftState [19:50:16]wFMCommunicate request_size=4 [19:50:16]MH_SAM_APDU [19:50:16]CAPDU: 80 13 01 00 [19:50:16]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [19:50:16]Write i2c OK [19:50:16]MH_I2C_Read... [19:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:16]Read from MH i2c: E2 [19:50:16]MH_I2C_Read... [19:50:16]Read from MH i2c: E2 0E 00 [19:50:16]MH_I2C_Read... [19:50:16]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F4 [19:50:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:50:16]wFMCommunicate OK [19:50:16]SAM_PROTO_GetShiftState done [19:50:16]FM_GetShiftState done [19:50:16]opened in 1717460629 [19:50:16]opened+sec_in_day 1717547029 [19:50:16]quantity*price = 25020 [19:50:16]sum+1 = 25022 [19:50:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 326 04.06.2024 19:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148987 ФПД: 261529016476077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195017&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148987&fm=261529016476077&tin=02508201610067®Number=0000000000092720&sum=25021 [19:50:18]StoreToDocumentArchive [19:50:18]shift 368 fd 148987 [19:50:18]save to /storage/0368/doc_00148987 [19:50:18]save last doc name /storage/0368/doc_00148987 to /storage/kkm_last_doc_name [19:50:18]save OK [19:50:18]Clear old archive folders... [19:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:18]tlvbuf is B6F1BBE0 [19:50:18]SAM_PROTO_ClearQueue [19:50:18]wFMCommunicate request_size=4 [19:50:18]MH_SAM_APDU [19:50:18]CAPDU: 80 09 00 00 [19:50:18]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [19:50:18]Write i2c OK [19:50:18]MH_I2C_Read... [19:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:18]Read from MH i2c: E2 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 03 00 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [19:50:18]RAPDU: 90 00 [19:50:18]wFMCommunicate OK [19:50:18]SAM_PROTO_ClearQueue done [19:50:18]KKMCreateOFDPacket [19:50:18]OFDProtocolAddRootSTLVToBuf [19:50:18]FM_MakeSignedData [19:50:18]FM_MakeSignedData [19:50:18]SAM_PROTO_SignData [19:50:18]wFMCommunicate request_size=4 [19:50:18]MH_SAM_APDU [19:50:18]CAPDU: 80 0D 01 02 [19:50:18]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [19:50:18]Write i2c OK [19:50:18]MH_I2C_Read... [19:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:18]Read from MH i2c: E2 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 03 00 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [19:50:18]RAPDU: 90 00 [19:50:18]wFMCommunicate OK [19:50:18]wFMCommunicate request_size=255 [19:50:18]MH_SAM_APDU [19:50:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 F9 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 45 02 00 35 04 06 00 ED [19:50:18]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 F9 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 45 02 00 35 04 06 00 ED 00 00 DC [19:50:18]Write i2c OK [19:50:18]MH_I2C_Read... [19:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:18]Read from MH i2c: E2 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 03 00 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [19:50:18]RAPDU: 90 00 [19:50:18]wFMCommunicate OK [19:50:18]wFMCommunicate request_size=10 [19:50:18]MH_SAM_APDU [19:50:18]CAPDU: 80 0D 02 02 05 DB F8 20 21 AD [19:50:18]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 DB F8 20 21 AD 00 00 09 [19:50:18]Write i2c OK [19:50:18]MH_I2C_Read... [19:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:18]Read from MH i2c: E2 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 03 00 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [19:50:18]RAPDU: 90 00 [19:50:18]wFMCommunicate OK [19:50:18]wFMCommunicate request_size=4 [19:50:18]MH_SAM_APDU [19:50:18]CAPDU: 80 0D 03 02 [19:50:18]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [19:50:18]Write i2c OK [19:50:18]MH_I2C_Read... [19:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:18]Read from MH i2c: E2 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 0B 00 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 0B 00 C5 00 00 64 C5 2E 60 DF 8C 2A 3F 90 00 CC [19:50:18]RAPDU: 64 C5 2E 60 DF 8C 2A 3F 90 00 [19:50:18]wFMCommunicate OK [19:50:18]SAM_PROTO_SignData done [19:50:18]FM_MakeSignedData done [19:50:18]CreateOFDProtocolMessage [19:50:18]wFMCommunicate request_size=4 [19:50:18]MH_SAM_APDU [19:50:18]CAPDU: 80 11 00 00 [19:50:18]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [19:50:18]Write i2c OK [19:50:18]MH_I2C_Read... [19:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:18]Read from MH i2c: E2 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 17 00 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 93 [19:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:50:18]wFMCommunicate OK [19:50:18]CreateOFDProtocolMessage done [19:50:18]OFDSenderStorePacket 148987 [19:50:18]StoreOFDPacket docnum=148987 [19:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4E 2F 07 01 9B 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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 F9 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 45 02 00 35 04 06 00 ED DB F8 20 21 AD 64 C5 2E 60 DF 8C 2A 3F [19:50:18]CheckFolder [19:50:18]dirname=/storage/ofd_packets [19:50:18]CheckFolder done [19:50:18]ProducePacketName [19:50:18]name=ofd_packets/00148987 [19:50:18]NVStorageSaveData ofd_packets/00148987 [19:50:18]File name is /storage/ofd_packets/00148987 [19:50:18]Write 301 bytes [19:50:18]NVStorageSaveData done [19:50:18]OFDSenderStorePacket done [19:50:18]KKMCreateOFDPacket done [19:50:18]NVStorageSaveData kkm_last_timestamp [19:50:18]File name is /storage/kkm_last_timestamp [19:50:18]Write 4 bytes [19:50:18]NVStorageSaveData done [19:50:18]ExternCall_PrintAddStr [19:50:18]wPrintStart [19:50:18]Write to MH i2c: 01 00 00 C7 00 C7 [19:50:18]Write i2c OK [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: 01 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: 01 07 00 [19:50:18]MH_I2C_Read... [19:50:18]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [19:50:18]RasterBufferAndPrint [19:50:18]line Счет N : (1)979921 [19:50:18]line ИНН: 02508201610067 [19:50:18]line Контрольно-Кассовый Чек [19:50:18]line ПРОДАЖА [19:50:18]line ТРК (МРК, ГНК) : 31 [19:50:18]line Товар: 2710124130 [19:50:18]line Аи-92-К-5 [19:50:18]line 3.740 * 66.90 [19:50:18]line = 250.21 [19:50:18]line НДС 12% НСП 1% [19:50:18]line > о реализуемом товаре [19:50:18]line ИТОГО: 250.21 [19:50:18]line НСП 1% : 2.21 [19:50:18]line НДС 12% : 26.57 [19:50:18]line Наличными: 0.00 [19:50:18]line Безнал.: 250.21 [19:50:18]line Место: АЗС № 68 "Партнер Нефть" [19:50:18]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:50:18]line СНО: Общий режим [19:50:18]line Чек 326 04.06.2024 19:50 [19:50:18]line Смена: 368 ФФД: 1.0 [19:50:18]line ЗНМ: 0300000035 [19:50:18]line РНМ: 0000000000092720 [19:50:18]line Версия ККМ: 001 [19:50:18]line Платежная система: KICB Банк [19:50:18]line ФМ: 0000000000875057 [19:50:18]line ФД: 148987 [19:50:18]line ФПД: 261529016476077 [19:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195017&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148987&fm=261529016476077&tin=02508201610067®Number=0000000000092720&sum=25021 [19:50:18]OFD Sender: Processing packet 148987 [packets to send 100, broken 99] [19:50:18]ProducePacketName [19:50:18]name=ofd_packets/00148987 [19:50:18]OFD Sender: To server: pG, [19:50:18]CommunicateWithHost lk.salyk.kg:30040 [19:50:18]ConnectInit lk.salyk.kg [19:50:18]written 0, free lines is 4095 [19:50:19]Connected sock=10 [19:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 4E 2F 07 01 9B 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 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 F9 6F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 45 02 00 35 04 06 00 ED DB F8 20 21 AD 64 C5 2E 60 DF 8C 2A 3F [19:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 41 7F 47 00 0D 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 38 37 35 30 35 37 10 04 04 00 FB 45 02 00 F4 03 04 00 1C 17 5F 66 B6 04 01 00 00 28 23 8E 85 D1 04 26 90 [19:50:19]CommunicateWithHost err = 0 [19:50:19]CheckOFDResponse [19:50:19]1017 (14) - 77093643461234 [19:50:19]1041 (16) - 0000000000875057 [19:50:19]1040 (4) - 148987 [19:50:19]1012 (4) - 04.06.2024 13:31 [19:50:19]1206 (1) - 0 [19:50:19]OFD Sender: Remove packet 148987 [19:50:19]ProducePacketName [19:50:19]name=ofd_packets/00148987 [19:50:19]NVStorageDeleteData [19:50:19]Write to MH i2c: 01 00 00 F1 00 F1 [19:50:19]Write i2c OK [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: 01 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: 01 07 00 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 A4 0C A8 [19:50:19]RasterBufferAndPrint [19:50:19]line [19:50:19]line [19:50:19]line [19:50:19]line [19:50:19]line [19:50:19]written 0, free lines is 3240 [19:50:19]MH_Cut [19:50:19]Write to MH i2c: D1 01 00 F8 00 01 CA [19:50:19]Write i2c OK [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: D1 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: D1 01 00 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: D1 01 00 F8 00 00 C9 [19:50:19]Write to MH i2c: 01 00 00 F9 00 F9 [19:50:19]Write i2c OK [19:50:19]MH_I2C_Read... [19:50:19]OFD Sender: No OFD packet to send [19:50:20]*** Cut start [19:50:20]*** Partial cut [19:50:20]*** CUTSNS_PIN = 1 [19:50:20]*** CUTSNS_PIN = 0 [19:50:20]*** Brake cut motor [19:50:21]Read from MH i2c: 01 [19:50:21]MH_I2C_Read... [19:50:21]*** Stop cut motor [19:50:21]*** Cut end [19:50:21]Read from MH i2c: 01 07 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [19:50:21]process_action close_receipt done [19:50:21]requested_data is exist [19:50:21]produce_requested_data [19:50:21]requested_item fm.sn is exist - process it [19:50:21]wFMCommunicate request_size=4 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 11 00 00 [19:50:21]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 17 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C7 [19:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:50:21]wFMCommunicate OK [19:50:21]requested_item fd.num is exist - process it [19:50:21]SAM_PROTO_GetFieldsCounters [19:50:21]wFMCommunicate request_size=4 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 13 00 00 [19:50:21]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 62 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FB 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [19:50:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FB 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:21]wFMCommunicate OK [19:50:21]SAM_PROTO_GetFieldsCounters done [19:50:21]requested_item shift.num is exist - process it [19:50:21]requested_item shift.opened is exist - process it [19:50:21]req_shift_opened [19:50:21]FM_GetShiftState [19:50:21]SAM_PROTO_GetShiftState [19:50:21]wFMCommunicate request_size=4 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 13 01 00 [19:50:21]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 0E 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3C [19:50:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:50:21]wFMCommunicate OK [19:50:21]SAM_PROTO_GetShiftState done [19:50:21]FM_GetShiftState done [19:50:21]req_shift_opened done [19:50:21]requested_item shift.open_date is exist - process it [19:50:21]req_shift_open_date [19:50:21]req_shift_open_date done [19:50:21]produce_requested_data done [19:50:21]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148987,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:50:21]process_action_free close_receipt [19:50:21]json_value_free [19:50:21]json_value_free done [19:50:21]process_json_proto returns [19:50:21]Send response to host [19:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148987,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:50:21]free response buf [19:50:21]execute_script done [19:50:21]execute_script returns [19:50:21]free content buf [19:50:21]Sock 7.Close socket [19:50:21]Sock 7.Thread stoped [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:17]accept exits with 9 [19:52:17]New connection [19:52:17]New thread 3067075940 created [19:52:17]Thread 3067219300 joined [19:52:17]Waiting for new connection... [19:52:17] Sock 9.Parse request [19:52:17]Sock 9.Check first char [19:52:17]Sock 9.First char is OK [19:52:17]request: POST /json_proto HTTP/1.0 [19:52:17]Method: POST [19:52:17]URL: /json_proto [19:52:17]Method is POST - this is cgi request [19:52:17]url: /json_proto [19:52:17]query_string will be loaded in cgi processing [19:52:17]execute_cgi json_proto POST (null) [19:52:17]execute_cgi path=json_proto method=POST [19:52:17]POST find Content-Length [19:52:17]Host: 172.17.38.4:8080 [19:52:17]Content-Length: 800 [19:52:17]Content-Type: application/json [19:52:17] [19:52:17]POST finish read [19:52:17]Found Content-Length = 800 [19:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:17]execute_script... [19:52: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)979922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:17]POST & json_proto [19:52:17]process_json_proto [19:52:17]json parsed OK: [19:52:17]protocol is kg_v1.0 [19:52:17]action value=close_receipt [19:52:17]process_action close_receipt [19:52:17]cmd_close_receipt [19:52:17]MH_GetDate [19:52:17]Write to MH i2c: F0 00 00 FD 00 EC [19:52:17]Write i2c OK [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: F0 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: F0 09 00 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: F0 09 00 FD 00 00 72 70 5F 66 CC 51 87 64 A4 [19:52:17]GetLastDocTimeStamp 1717530617 [19:52:17]current date 1717530738 [19:52:17]FM_GetShiftState [19:52:17]SAM_PROTO_GetShiftState [19:52:17]wFMCommunicate request_size=4 [19:52:17]MH_SAM_APDU [19:52:17]CAPDU: 80 13 01 00 [19:52:17]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [19:52:17]Write i2c OK [19:52:17]MH_I2C_Read... [19:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:17]Read from MH i2c: E2 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: E2 0E 00 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3E [19:52:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:52:17]wFMCommunicate OK [19:52:17]SAM_PROTO_GetShiftState done [19:52:17]FM_GetShiftState done [19:52:17]opened in 1717460629 [19:52:17]opened+sec_in_day 1717547029 [19:52:17]quantity*price = 50041 [19:52:17]sum+1 = 50042 [19:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 327 04.06.2024 19:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 148988 ФПД: 264379310149114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195218&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148988&fm=264379310149114&tin=02508201610067®Number=0000000000092720&sum=50041 [19:52:19]StoreToDocumentArchive [19:52:19]shift 368 fd 148988 [19:52:19]save to /storage/0368/doc_00148988 [19:52:19]save last doc name /storage/0368/doc_00148988 to /storage/kkm_last_doc_name [19:52:19]save OK [19:52:19]Clear old archive folders... [19:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:19]tlvbuf is 009775B0 [19:52:19]SAM_PROTO_ClearQueue [19:52:19]wFMCommunicate request_size=4 [19:52:19]MH_SAM_APDU [19:52:19]CAPDU: 80 09 00 00 [19:52:19]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [19:52:19]Write i2c OK [19:52:19]MH_I2C_Read... [19:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:19]Read from MH i2c: E2 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 03 00 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [19:52:19]RAPDU: 90 00 [19:52:19]wFMCommunicate OK [19:52:19]SAM_PROTO_ClearQueue done [19:52:19]KKMCreateOFDPacket [19:52:19]OFDProtocolAddRootSTLVToBuf [19:52:19]FM_MakeSignedData [19:52:19]FM_MakeSignedData [19:52:19]SAM_PROTO_SignData [19:52:19]wFMCommunicate request_size=4 [19:52:19]MH_SAM_APDU [19:52:19]CAPDU: 80 0D 01 02 [19:52:19]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [19:52:19]Write i2c OK [19:52:19]MH_I2C_Read... [19:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:19]Read from MH i2c: E2 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 03 00 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [19:52:19]RAPDU: 90 00 [19:52:19]wFMCommunicate OK [19:52:19]wFMCommunicate request_size=255 [19:52:19]MH_SAM_APDU [19:52:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 47 01 00 00 F4 03 04 00 72 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 45 02 00 35 04 06 00 F0 [19:52:19]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 72 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 45 02 00 35 04 06 00 F0 00 00 F5 [19:52:19]Write i2c OK [19:52:19]MH_I2C_Read... [19:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:19]Read from MH i2c: E2 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 03 00 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [19:52:19]RAPDU: 90 00 [19:52:19]wFMCommunicate OK [19:52:19]wFMCommunicate request_size=10 [19:52:19]MH_SAM_APDU [19:52:19]CAPDU: 80 0D 02 02 05 73 9A DE 0D FA [19:52:19]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 73 9A DE 0D FA 00 00 85 [19:52:19]Write i2c OK [19:52:19]MH_I2C_Read... [19:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:19]Read from MH i2c: E2 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 03 00 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [19:52:19]RAPDU: 90 00 [19:52:19]wFMCommunicate OK [19:52:19]wFMCommunicate request_size=4 [19:52:19]MH_SAM_APDU [19:52:19]CAPDU: 80 0D 03 02 [19:52:19]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [19:52:19]Write i2c OK [19:52:19]MH_I2C_Read... [19:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:19]Read from MH i2c: E2 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 0B 00 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 0B 00 0F 01 00 CE AF BC 0F 1D F6 B7 F3 90 00 91 [19:52:19]RAPDU: CE AF BC 0F 1D F6 B7 F3 90 00 [19:52:19]wFMCommunicate OK [19:52:19]SAM_PROTO_SignData done [19:52:19]FM_MakeSignedData done [19:52:19]CreateOFDProtocolMessage [19:52:19]wFMCommunicate request_size=4 [19:52:19]MH_SAM_APDU [19:52:19]CAPDU: 80 11 00 00 [19:52:19]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [19:52:19]Write i2c OK [19:52:19]MH_I2C_Read... [19:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:19]Read from MH i2c: E2 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 17 00 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DE [19:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:52:19]wFMCommunicate OK [19:52:19]CreateOFDProtocolMessage done [19:52:19]OFDSenderStorePacket 148988 [19:52:19]StoreOFDPacket docnum=148988 [19:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1A 77 07 01 06 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 72 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 45 02 00 35 04 06 00 F0 73 9A DE 0D FA CE AF BC 0F 1D F6 B7 F3 [19:52:19]CheckFolder [19:52:19]dirname=/storage/ofd_packets [19:52:19]CheckFolder done [19:52:19]ProducePacketName [19:52:19]name=ofd_packets/00148988 [19:52:19]NVStorageSaveData ofd_packets/00148988 [19:52:19]File name is /storage/ofd_packets/00148988 [19:52:19]Write 301 bytes [19:52:19]NVStorageSaveData done [19:52:19]OFDSenderStorePacket done [19:52:19]KKMCreateOFDPacket done [19:52:19]NVStorageSaveData kkm_last_timestamp [19:52:19]File name is /storage/kkm_last_timestamp [19:52:19]Write 4 bytes [19:52:19]NVStorageSaveData done [19:52:19]OFD Sender: Processing packet 148988 [packets to send 100, broken 99] [19:52:19]ProducePacketName [19:52:19]name=ofd_packets/00148988 [19:52:19]OFD Sender: To server: pG, [19:52:19]CommunicateWithHost lk.salyk.kg:30040 [19:52:19]ConnectInit lk.salyk.kg [19:52:19]ExternCall_PrintAddStr [19:52:19]wPrintStart [19:52:19]Write to MH i2c: 01 00 00 11 01 12 [19:52:19]Write i2c OK [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: 01 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: 01 07 00 [19:52:19]MH_I2C_Read... [19:52:19]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [19:52:19]RasterBufferAndPrint [19:52:19]line Счет N : (1)979922 [19:52:19]line ИНН: 02508201610067 [19:52:19]line Контрольно-Кассовый Чек [19:52:19]line ПРОДАЖА [19:52:19]line ТРК (МРК, ГНК) : 22 [19:52:19]line Товар: 2710124130 [19:52:19]line Аи-92-К-5 [19:52:19]line 7.480 * 66.90 [19:52:19]line = 500.41 [19:52:19]line НДС 12% НСП 1% [19:52:19]line > о реализуемом товаре [19:52:19]line ИТОГО: 500.41 [19:52:19]line НСП 1% : 4.43 [19:52:19]line НДС 12% : 53.14 [19:52:19]line Наличными: 0.00 [19:52:19]line Безнал.: 500.41 [19:52:19]line Место: АЗС № 68 "Партнер Нефть" [19:52:19]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:52:19]line СНО: Общий режим [19:52:19]line Чек 327 04.06.2024 19:52 [19:52:19]line Смена: 368 ФФД: 1.0 [19:52:19]line ЗНМ: 0300000035 [19:52:19]line РНМ: 0000000000092720 [19:52:19]line Версия ККМ: 001 [19:52:19]line Платежная система: O! деньги [19:52:19]line ФМ: 0000000000875057 [19:52:19]line ФД: 148988 [19:52:19]line ФПД: 264379310149114 [19:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195218&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148988&fm=264379310149114&tin=02508201610067®Number=0000000000092720&sum=50041 [19:52:19]written 0, free lines is 4095 [19:52:20]Write to MH i2c: 01 00 00 3B 01 3C [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: 01 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: 01 07 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 9F 0C EE [19:52:20]RasterBufferAndPrint [19:52:20]line [19:52:20]line [19:52:20]line [19:52:20]line [19:52:20]line [19:52:20]written 0, free lines is 3234 [19:52:20]MH_Cut [19:52:20]Write to MH i2c: D1 01 00 42 01 01 15 [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: D1 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: D1 01 00 [19:52:20]MH_I2C_Read... [19:52:20]Read from MH i2c: D1 01 00 42 01 00 14 [19:52:20]Write to MH i2c: 01 00 00 43 01 44 [19:52:20]Write i2c OK [19:52:20]MH_I2C_Read... [19:52:21]*** Cut start [19:52:21]*** Partial cut [19:52:21]*** CUTSNS_PIN = 1 [19:52:21]*** CUTSNS_PIN = 0 [19:52:21]*** Brake cut motor [19:52:22]Read from MH i2c: 01 [19:52:22]MH_I2C_Read... [19:52:22]*** Stop cut motor [19:52:22]*** Cut end [19:52:22]Read from MH i2c: 01 07 00 [19:52:22]MH_I2C_Read... [19:52:22]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [19:52:22]process_action close_receipt done [19:52:22]requested_data is exist [19:52:22]produce_requested_data [19:52:22]requested_item fm.sn is exist - process it [19:52:22]wFMCommunicate request_size=4 [19:52:22]MH_SAM_APDU [19:52:22]CAPDU: 80 11 00 00 [19:52:22]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [19:52:22]Write i2c OK [19:52:22]MH_I2C_Read... [19:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:22]Read from MH i2c: E2 [19:52:22]MH_I2C_Read... [19:52:22]Read from MH i2c: E2 17 00 [19:52:22]MH_I2C_Read... [19:52:22]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 12 [19:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:52:22]wFMCommunicate OK [19:52:22]requested_item fd.num is exist - process it [19:52:22]SAM_PROTO_GetFieldsCounters [19:52:22]wFMCommunicate request_size=4 [19:52:22]MH_SAM_APDU [19:52:22]CAPDU: 80 13 00 00 [19:52:22]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [19:52:22]Write i2c OK [19:52:22]MH_I2C_Read... [19:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:22]Read from MH i2c: E2 [19:52:22]MH_I2C_Read... [19:52:22]Read from MH i2c: E2 62 00 [19:52:22]MH_I2C_Read... [19:52:22]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [19:52:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FC 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:22]wFMCommunicate OK [19:52:22]SAM_PROTO_GetFieldsCounters done [19:52:22]requested_item shift.num is exist - process it [19:52:22]requested_item shift.opened is exist - process it [19:52:22]req_shift_opened [19:52:22]FM_GetShiftState [19:52:22]SAM_PROTO_GetShiftState [19:52:22]wFMCommunicate request_size=4 [19:52:22]MH_SAM_APDU [19:52:22]CAPDU: 80 13 01 00 [19:52:22]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [19:52:22]Write i2c OK [19:52:22]MH_I2C_Read... [19:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:22]Read from MH i2c: E2 [19:52:22]MH_I2C_Read... [19:52:22]Read from MH i2c: E2 0E 00 [19:52:22]MH_I2C_Read... [19:52:22]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 87 [19:52:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:52:22]wFMCommunicate OK [19:52:22]SAM_PROTO_GetShiftState done [19:52:22]FM_GetShiftState done [19:52:22]req_shift_opened done [19:52:22]requested_item shift.open_date is exist - process it [19:52:22]req_shift_open_date [19:52:22]req_shift_open_date done [19:52:22]produce_requested_data done [19:52:22]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148988,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:52:22]process_action_free close_receipt [19:52:22]json_value_free [19:52:22]json_value_free done [19:52:22]process_json_proto returns [19:52:22]Send response to host [19:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148988,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:52:22]free response buf [19:52:22]execute_script done [19:52:22]execute_script returns [19:52:22]free content buf [19:52:22]Sock 9.Close socket [19:52:22]Sock 9.Thread stoped [19:52:43]accept exits with 7 [19:52:43]New connection [19:52:43]New thread 3067219300 created [19:52:43]Thread 3067075940 joined [19:52:43]Waiting for new connection... [19:52:43] Sock 7.Parse request [19:52:43]Sock 7.Check first char [19:52:43]Sock 7.First char is OK [19:52:43]request: POST /json_proto HTTP/1.0 [19:52:43]Method: POST [19:52:43]URL: /json_proto [19:52:43]Method is POST - this is cgi request [19:52:43]url: /json_proto [19:52:43]query_string will be loaded in cgi processing [19:52:43]execute_cgi json_proto POST (null) [19:52:43]execute_cgi path=json_proto method=POST [19:52:43]POST find Content-Length [19:52:43]Host: 172.17.38.4:8080 [19:52:43]Content-Length: 677 [19:52:43]Content-Type: application/json [19:52:43] [19:52:43]POST finish read [19:52:43]Found Content-Length = 677 [19:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:43]execute_script... [19:52: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)979923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:43]POST & json_proto [19:52:43]process_json_proto [19:52:43]json parsed OK: [19:52:43]protocol is kg_v1.0 [19:52:43]action value=close_receipt [19:52:43]process_action close_receipt [19:52:43]cmd_close_receipt [19:52:43]MH_GetDate [19:52:43]Write to MH i2c: F0 00 00 47 01 37 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: F0 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: F0 09 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: F0 09 00 47 01 00 8B 70 5F 66 CC 51 87 64 08 [19:52:43]GetLastDocTimeStamp 1717530738 [19:52:43]current date 1717530763 [19:52:43]FM_GetShiftState [19:52:43]SAM_PROTO_GetShiftState [19:52:43]wFMCommunicate request_size=4 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 13 01 00 [19:52:43]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 0E 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 89 [19:52:43]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:52:43]wFMCommunicate OK [19:52:43]SAM_PROTO_GetShiftState done [19:52:43]FM_GetShiftState done [19:52:43]opened in 1717460629 [19:52:43]opened+sec_in_day 1717547029 [19:52:43]quantity*price = 20003 [19:52:43]sum+1 = 20004 [19:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 328 04.06.2024 19:52 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148989 ФПД: 112855090724817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195243&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148989&fm=112855090724817&tin=02508201610067®Number=0000000000092720&sum=20000 [19:52:44]StoreToDocumentArchive [19:52:44]shift 368 fd 148989 [19:52:44]save to /storage/0368/doc_00148989 [19:52:44]save last doc name /storage/0368/doc_00148989 to /storage/kkm_last_doc_name [19:52:44]save OK [19:52:44]Clear old archive folders... [19:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:44]tlvbuf is 0096AC50 [19:52:44]SAM_PROTO_ClearQueue [19:52:44]wFMCommunicate request_size=4 [19:52:44]MH_SAM_APDU [19:52:44]CAPDU: 80 09 00 00 [19:52:44]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 [19:52:44]MH_I2C_Read... [19:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:44]Read from MH i2c: E2 03 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [19:52:44]RAPDU: 90 00 [19:52:44]wFMCommunicate OK [19:52:44]SAM_PROTO_ClearQueue done [19:52:44]KKMCreateOFDPacket [19:52:44]OFDProtocolAddRootSTLVToBuf [19:52:44]FM_MakeSignedData [19:52:44]FM_MakeSignedData [19:52:44]SAM_PROTO_SignData [19:52:44]wFMCommunicate request_size=4 [19:52:44]MH_SAM_APDU [19:52:44]CAPDU: 80 0D 01 02 [19:52:44]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:44]Read from MH i2c: E2 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 03 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [19:52:44]RAPDU: 90 00 [19:52:44]wFMCommunicate OK [19:52:44]wFMCommunicate request_size=255 [19:52:44]MH_SAM_APDU [19:52:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 01 00 00 F4 03 04 00 8B 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 45 02 00 35 04 06 00 66 [19:52:44]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 8B 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 45 02 00 35 04 06 00 66 00 00 40 [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 03 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [19:52:45]RAPDU: 90 00 [19:52:45]wFMCommunicate OK [19:52:45]wFMCommunicate request_size=10 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 0D 02 02 05 A4 1F 97 FF D1 [19:52:45]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 A4 1F 97 FF D1 00 00 07 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 03 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [19:52:45]RAPDU: 90 00 [19:52:45]wFMCommunicate OK [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 0D 03 02 [19:52:45]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 0B 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 0B 00 59 01 00 E2 44 83 79 F3 40 81 6E 90 00 1A [19:52:45]RAPDU: E2 44 83 79 F3 40 81 6E 90 00 [19:52:45]wFMCommunicate OK [19:52:45]SAM_PROTO_SignData done [19:52:45]FM_MakeSignedData done [19:52:45]CreateOFDProtocolMessage [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 11 00 00 [19:52:45]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 17 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 28 [19:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:52:45]wFMCommunicate OK [19:52:45]CreateOFDProtocolMessage done [19:52:45]OFDSenderStorePacket 148989 [19:52:45]StoreOFDPacket docnum=148989 [19:52:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 2B 29 07 01 8D 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 01 00 00 F4 03 04 00 8B 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 45 02 00 35 04 06 00 66 A4 1F 97 FF D1 E2 44 83 79 F3 40 81 6E [19:52:45]CheckFolder [19:52:45]dirname=/storage/ofd_packets [19:52:45]CheckFolder done [19:52:45]ProducePacketName [19:52:45]name=ofd_packets/00148989 [19:52:45]NVStorageSaveData ofd_packets/00148989 [19:52:45]File name is /storage/ofd_packets/00148989 [19:52:45]Write 301 bytes [19:52:45]NVStorageSaveData done [19:52:45]OFDSenderStorePacket done [19:52:45]KKMCreateOFDPacket done [19:52:45]NVStorageSaveData kkm_last_timestamp [19:52:45]File name is /storage/kkm_last_timestamp [19:52:45]Write 4 bytes [19:52:45]NVStorageSaveData done [19:52:45]ExternCall_PrintAddStr [19:52:45]wPrintStart [19:52:45]Write to MH i2c: 01 00 00 5B 01 5C [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 07 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [19:52:45]RasterBufferAndPrint [19:52:45]line Счет N : (1)979923 [19:52:45]line ИНН: 02508201610067 [19:52:45]line Контрольно-Кассовый Чек [19:52:45]line ПРОДАЖА [19:52:45]line ТРК (МРК, ГНК) : 12 [19:52:45]line Товар: 2710124130 [19:52:45]line Аи-92-К-5 [19:52:45]line 2.990 * 66.90 [19:52:45]line = 200.03 [19:52:45]line НДС 12% НСП 1% [19:52:45]line > о реализуемом товаре [19:52:45]line ОКРУГЛЕНИЕ: -0.03 [19:52:45]line ИТОГО: 200.00 [19:52:45]line Внесено: 200.00 [19:52:45]line СДАЧА: 0.00 [19:52:45]line НСП 1% : 1.77 [19:52:45]line НДС 12% : 21.24 [19:52:45]line Наличными: 200.00 [19:52:45]line Безнал.: 0.00 [19:52:45]line Место: АЗС № 68 "Партнер Нефть" [19:52:45]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:52:45]line СНО: Общий режим [19:52:45]line Чек 328 04.06.2024 19:52 [19:52:45]line Смена: 368 ФФД: 1.0 [19:52:45]line ЗНМ: 0300000035 [19:52:45]line РНМ: 0000000000092720 [19:52:45]line Версия ККМ: 001 [19:52:45]line ФМ: 0000000000875057 [19:52:45]line ФД: 148989 [19:52:45]line ФПД: 112855090724817 [19:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195243&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148989&fm=112855090724817&tin=02508201610067®Number=0000000000092720&sum=20000 [19:52:45]written 0, free lines is 4095 [19:52:45]Write to MH i2c: 01 00 00 86 01 87 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 07 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 8C 0C 26 [19:52:45]RasterBufferAndPrint [19:52:45]line [19:52:45]line [19:52:45]line [19:52:45]line [19:52:45]line [19:52:45]written 0, free lines is 3214 [19:52:46]MH_Cut [19:52:46]Write to MH i2c: D1 01 00 8D 01 01 60 [19:52:46]Write i2c OK [19:52:46]MH_I2C_Read... [19:52:46]Read from MH i2c: D1 [19:52:46]MH_I2C_Read... [19:52:46]Read from MH i2c: D1 01 00 [19:52:46]MH_I2C_Read... [19:52:46]Read from MH i2c: D1 01 00 8D 01 00 5F [19:52:46]Write to MH i2c: 01 00 00 8E 01 8F [19:52:46]Write i2c OK [19:52:46]MH_I2C_Read... [19:52:47]*** Cut start [19:52:47]*** Partial cut [19:52:47]*** CUTSNS_PIN = 1 [19:52:47]*** CUTSNS_PIN = 0 [19:52:47]*** Brake cut motor [19:52:47]Read from MH i2c: 01 [19:52:47]MH_I2C_Read... [19:52:47]*** Stop cut motor [19:52:47]*** Cut end [19:52:47]Read from MH i2c: 01 07 00 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [19:52:47]process_action close_receipt done [19:52:47]requested_data is exist [19:52:47]produce_requested_data [19:52:47]requested_item fm.sn is exist - process it [19:52:47]wFMCommunicate request_size=4 [19:52:47]MH_SAM_APDU [19:52:47]CAPDU: 80 11 00 00 [19:52:47]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [19:52:47]Write i2c OK [19:52:47]MH_I2C_Read... [19:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:47]Read from MH i2c: E2 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: E2 17 00 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5D [19:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:52:47]wFMCommunicate OK [19:52:47]requested_item fd.num is exist - process it [19:52:47]SAM_PROTO_GetFieldsCounters [19:52:47]wFMCommunicate request_size=4 [19:52:47]MH_SAM_APDU [19:52:47]CAPDU: 80 13 00 00 [19:52:47]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [19:52:47]Write i2c OK [19:52:47]MH_I2C_Read... [19:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:47]Read from MH i2c: E2 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: E2 62 00 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FD 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [19:52:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FD 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:47]wFMCommunicate OK [19:52:47]SAM_PROTO_GetFieldsCounters done [19:52:47]requested_item shift.num is exist - process it [19:52:47]requested_item shift.opened is exist - process it [19:52:47]req_shift_opened [19:52:47]FM_GetShiftState [19:52:47]SAM_PROTO_GetShiftState [19:52:47]wFMCommunicate request_size=4 [19:52:47]MH_SAM_APDU [19:52:47]CAPDU: 80 13 01 00 [19:52:47]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [19:52:47]Write i2c OK [19:52:47]MH_I2C_Read... [19:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:47]Read from MH i2c: E2 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: E2 0E 00 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D2 [19:52:47]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:52:47]wFMCommunicate OK [19:52:47]SAM_PROTO_GetShiftState done [19:52:47]FM_GetShiftState done [19:52:47]req_shift_opened done [19:52:47]requested_item shift.open_date is exist - process it [19:52:47]req_shift_open_date [19:52:47]req_shift_open_date done [19:52:47]produce_requested_data done [19:52:47]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148989,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:52:47]process_action_free close_receipt [19:52:47]json_value_free [19:52:47]json_value_free done [19:52:47]process_json_proto returns [19:52:47]Send response to host [19:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148989,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:52:47]free response buf [19:52:47]execute_script done [19:52:47]execute_script returns [19:52:47]free content buf [19:52:47]Sock 7.Close socket [19:52:47]Sock 7.Thread stoped [19:54:10]accept exits with 9 [19:54:10]New connection [19:54:10]New thread 3067075940 created [19:54:10]Thread 3067219300 joined [19:54:10]Waiting for new connection... [19:54:10] Sock 9.Parse request [19:54:10]Sock 9.Check first char [19:54:10]Sock 9.First char is OK [19:54:10]request: POST /json_proto HTTP/1.0 [19:54:10]Method: POST [19:54:10]URL: /json_proto [19:54:10]Method is POST - this is cgi request [19:54:10]url: /json_proto [19:54:10]query_string will be loaded in cgi processing [19:54:10]execute_cgi json_proto POST (null) [19:54:10]execute_cgi path=json_proto method=POST [19:54:10]POST find Content-Length [19:54:10]Host: 172.17.38.4:8080 [19:54:10]Content-Length: 682 [19:54:10]Content-Type: application/json [19:54:10] [19:54:10]POST finish read [19:54:10]Found Content-Length = 682 [19:54:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:10]execute_script... [19:54: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)979924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:10]POST & json_proto [19:54:10]process_json_proto [19:54:10]json parsed OK: [19:54:10]protocol is kg_v1.0 [19:54:10]action value=close_receipt [19:54:10]process_action close_receipt [19:54:10]cmd_close_receipt [19:54:10]MH_GetDate [19:54:10]Write to MH i2c: F0 00 00 92 01 82 [19:54:10]Write i2c OK [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: F0 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: F0 09 00 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: F0 09 00 92 01 00 E3 70 5F 66 CC 51 87 64 AB [19:54:10]GetLastDocTimeStamp 1717530763 [19:54:10]current date 1717530851 [19:54:10]FM_GetShiftState [19:54:10]SAM_PROTO_GetShiftState [19:54:10]wFMCommunicate request_size=4 [19:54:10]MH_SAM_APDU [19:54:10]CAPDU: 80 13 01 00 [19:54:10]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [19:54:10]Write i2c OK [19:54:10]MH_I2C_Read... [19:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:10]Read from MH i2c: E2 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: E2 0E 00 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D4 [19:54:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:54:10]wFMCommunicate OK [19:54:10]SAM_PROTO_GetShiftState done [19:54:10]FM_GetShiftState done [19:54:10]opened in 1717460629 [19:54:10]opened+sec_in_day 1717547029 [19:54:10]quantity*price = 100015 [19:54:10]sum+1 = 100017 [19:54:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 329 04.06.2024 19:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148990 ФПД: 226141942982940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195411&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148990&fm=226141942982940&tin=02508201610067®Number=0000000000092720&sum=100000 [19:54:12]StoreToDocumentArchive [19:54:12]shift 368 fd 148990 [19:54:12]save to /storage/0368/doc_00148990 [19:54:12]save last doc name /storage/0368/doc_00148990 to /storage/kkm_last_doc_name [19:54:12]save OK [19:54:12]Clear old archive folders... [19:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:12]tlvbuf is 009668C0 [19:54:12]SAM_PROTO_ClearQueue [19:54:12]wFMCommunicate request_size=4 [19:54:12]MH_SAM_APDU [19:54:12]CAPDU: 80 09 00 00 [19:54:12]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [19:54:12]Write i2c OK [19:54:12]MH_I2C_Read... [19:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:12]Read from MH i2c: E2 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 03 00 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [19:54:12]RAPDU: 90 00 [19:54:12]wFMCommunicate OK [19:54:12]SAM_PROTO_ClearQueue done [19:54:12]KKMCreateOFDPacket [19:54:12]OFDProtocolAddRootSTLVToBuf [19:54:12]FM_MakeSignedData [19:54:12]FM_MakeSignedData [19:54:12]SAM_PROTO_SignData [19:54:12]wFMCommunicate request_size=4 [19:54:12]MH_SAM_APDU [19:54:12]CAPDU: 80 0D 01 02 [19:54:12]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [19:54:12]Write i2c OK [19:54:12]MH_I2C_Read... [19:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:12]Read from MH i2c: E2 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 03 00 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [19:54:12]RAPDU: 90 00 [19:54:12]wFMCommunicate OK [19:54:12]wFMCommunicate request_size=255 [19:54:12]MH_SAM_APDU [19:54:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 E3 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 45 02 00 35 04 06 00 CD [19:54:12]Write to MH i2c: E2 02 01 A2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 E3 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 45 02 00 35 04 06 00 CD 00 00 84 [19:54:12]Write i2c OK [19:54:12]MH_I2C_Read... [19:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:12]Read from MH i2c: E2 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 03 00 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [19:54:12]RAPDU: 90 00 [19:54:12]wFMCommunicate OK [19:54:12]wFMCommunicate request_size=10 [19:54:12]MH_SAM_APDU [19:54:12]CAPDU: 80 0D 02 02 05 AC C6 2E 29 1C [19:54:12]Write to MH i2c: E2 0D 00 A3 01 80 0D 02 02 05 00 AC C6 2E 29 1C 00 00 0D [19:54:12]Write i2c OK [19:54:12]MH_I2C_Read... [19:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:12]Read from MH i2c: E2 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 03 00 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [19:54:12]RAPDU: 90 00 [19:54:12]wFMCommunicate OK [19:54:12]wFMCommunicate request_size=4 [19:54:12]MH_SAM_APDU [19:54:12]CAPDU: 80 0D 03 02 [19:54:12]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [19:54:12]Write i2c OK [19:54:12]MH_I2C_Read... [19:54:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:12]Read from MH i2c: E2 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 0B 00 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 0B 00 A4 01 00 84 0C B9 72 4D 13 66 F6 90 00 98 [19:54:12]RAPDU: 84 0C B9 72 4D 13 66 F6 90 00 [19:54:12]wFMCommunicate OK [19:54:12]SAM_PROTO_SignData done [19:54:12]FM_MakeSignedData done [19:54:12]CreateOFDProtocolMessage [19:54:12]wFMCommunicate request_size=4 [19:54:12]MH_SAM_APDU [19:54:12]CAPDU: 80 11 00 00 [19:54:12]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [19:54:12]Write i2c OK [19:54:12]MH_I2C_Read... [19:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:12]Read from MH i2c: E2 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 17 00 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 73 [19:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:54:12]wFMCommunicate OK [19:54:12]CreateOFDProtocolMessage done [19:54:12]OFDSenderStorePacket 148990 [19:54:12]StoreOFDPacket docnum=148990 [19:54:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 ED 89 07 01 5D 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 E3 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 45 02 00 35 04 06 00 CD AC C6 2E 29 1C 84 0C B9 72 4D 13 66 F6 [19:54:12]CheckFolder [19:54:12]dirname=/storage/ofd_packets [19:54:12]CheckFolder done [19:54:12]ProducePacketName [19:54:12]name=ofd_packets/00148990 [19:54:12]NVStorageSaveData ofd_packets/00148990 [19:54:12]File name is /storage/ofd_packets/00148990 [19:54:12]Write 301 bytes [19:54:12]NVStorageSaveData done [19:54:12]OFDSenderStorePacket done [19:54:12]KKMCreateOFDPacket done [19:54:12]NVStorageSaveData kkm_last_timestamp [19:54:12]File name is /storage/kkm_last_timestamp [19:54:12]Write 4 bytes [19:54:12]NVStorageSaveData done [19:54:12]ExternCall_PrintAddStr [19:54:12]wPrintStart [19:54:12]Write to MH i2c: 01 00 00 A6 01 A7 [19:54:12]Write i2c OK [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: 01 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: 01 07 00 [19:54:12]MH_I2C_Read... [19:54:12]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [19:54:12]RasterBufferAndPrint [19:54:12]line Счет N : (1)979924 [19:54:12]line ИНН: 02508201610067 [19:54:12]line Контрольно-Кассовый Чек [19:54:12]line ПРОДАЖА [19:54:12]line ТРК (МРК, ГНК) : 31 [19:54:12]line Товар: 2710124130 [19:54:12]line Аи-92-К-5 [19:54:12]line 14.950 * 66.90 [19:54:12]line = 1000.16 [19:54:12]line НДС 12% НСП 1% [19:54:12]line > о реализуемом товаре [19:54:12]line ОКРУГЛЕНИЕ: -0.16 [19:54:12]line ИТОГО: 1000.00 [19:54:12]line Внесено: 1000.00 [19:54:12]line СДАЧА: 0.00 [19:54:12]line НСП 1% : 8.85 [19:54:12]line НДС 12% : 106.21 [19:54:12]line Наличными: 1000.00 [19:54:12]line Безнал.: 0.00 [19:54:12]line Место: АЗС № 68 "Партнер Нефть" [19:54:12]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:54:12]line СНО: Общий режим [19:54:12]line Чек 329 04.06.2024 19:54 [19:54:12]line Смена: 368 ФФД: 1.0 [19:54:12]line ЗНМ: 0300000035 [19:54:12]line РНМ: 0000000000092720 [19:54:12]line Версия ККМ: 001 [19:54:12]line ФМ: 0000000000875057 [19:54:12]line ФД: 148990 [19:54:12]line ФПД: 226141942982940 [19:54:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195411&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148990&fm=226141942982940&tin=02508201610067®Number=0000000000092720&sum=100000 [19:54:12]written 0, free lines is 4095 [19:54:13]Write to MH i2c: 01 00 00 D1 01 D2 [19:54:13]Write i2c OK [19:54:13]MH_I2C_Read... [19:54:13]Read from MH i2c: 01 [19:54:13]MH_I2C_Read... [19:54:13]Read from MH i2c: 01 07 00 [19:54:13]MH_I2C_Read... [19:54:13]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 89 0C 6E [19:54:13]RasterBufferAndPrint [19:54:13]line [19:54:13]line [19:54:13]line [19:54:13]line [19:54:13]line [19:54:13]written 0, free lines is 3212 [19:54:13]MH_Cut [19:54:13]Write to MH i2c: D1 01 00 D8 01 01 AB [19:54:13]Write i2c OK [19:54:13]MH_I2C_Read... [19:54:13]Read from MH i2c: D1 [19:54:13]MH_I2C_Read... [19:54:13]Read from MH i2c: D1 01 00 [19:54:13]MH_I2C_Read... [19:54:13]Read from MH i2c: D1 01 00 D8 01 00 AA [19:54:13]Write to MH i2c: 01 00 00 D9 01 DA [19:54:13]Write i2c OK [19:54:13]MH_I2C_Read... [19:54:14]*** Cut start [19:54:14]*** Partial cut [19:54:14]*** CUTSNS_PIN = 1 [19:54:14]*** CUTSNS_PIN = 0 [19:54:14]*** Brake cut motor [19:54:15]Read from MH i2c: 01 [19:54:15]MH_I2C_Read... [19:54:15]*** Stop cut motor [19:54:15]*** Cut end [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 D9 01 00 00 00 00 00 FF 0F EF [19:54:15]process_action close_receipt done [19:54:15]requested_data is exist [19:54:15]produce_requested_data [19:54:15]requested_item fm.sn is exist - process it [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 DA 01 80 11 00 00 00 00 00 00 55 [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 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A8 [19:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:54:15]wFMCommunicate OK [19:54:15]requested_item fd.num is exist - process it [19:54:15]SAM_PROTO_GetFieldsCounters [19:54:15]wFMCommunicate request_size=4 [19:54:15]MH_SAM_APDU [19:54:15]CAPDU: 80 13 00 00 [19:54:15]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:15]Read from MH i2c: E2 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 62 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [19:54:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FE 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:15]wFMCommunicate OK [19:54:15]SAM_PROTO_GetFieldsCounters done [19:54:15]requested_item shift.num is exist - process it [19:54:15]requested_item shift.opened is exist - process it [19:54:15]req_shift_opened [19:54:15]FM_GetShiftState [19:54:15]SAM_PROTO_GetShiftState [19:54:15]wFMCommunicate request_size=4 [19:54:15]MH_SAM_APDU [19:54:15]CAPDU: 80 13 01 00 [19:54:15]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:15]Read from MH i2c: E2 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 0E 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1D [19:54:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:54:15]wFMCommunicate OK [19:54:15]SAM_PROTO_GetShiftState done [19:54:15]FM_GetShiftState done [19:54:15]req_shift_opened done [19:54:15]requested_item shift.open_date is exist - process it [19:54:15]req_shift_open_date [19:54:15]req_shift_open_date done [19:54:15]produce_requested_data done [19:54:15]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148990,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:54:15]process_action_free close_receipt [19:54:15]json_value_free [19:54:15]json_value_free done [19:54:15]process_json_proto returns [19:54:15]Send response to host [19:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148990,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:54:15]free response buf [19:54:15]execute_script done [19:54:15]execute_script returns [19:54:15]free content buf [19:54:15]Sock 9.Close socket [19:54:15]Sock 9.Thread stoped [19:54:32]ConnectInit Can't connect to host [19:54:32]CommunicateWithHost connect error [19:54:32]CommunicateWithHost err = -1 [19:54:32]OFD Sender: Server communicate error [19:54:32]OFD Sender: Processing packet 148988 [packets to send 102, broken 99] [19:54:32]ProducePacketName [19:54:32]name=ofd_packets/00148988 [19:54:32]OFD Sender: To server: pG, [19:54:32]CommunicateWithHost lk.salyk.kg:30040 [19:54:32]ConnectInit lk.salyk.kg [19:54:32]Connected sock=9 [19:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1A 77 07 01 06 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 72 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 45 02 00 35 04 06 00 F0 73 9A DE 0D FA CE AF BC 0F 1D F6 B7 F3 [19:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1F A5 47 00 FC 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 38 37 35 30 35 37 10 04 04 00 FC 45 02 00 F4 03 04 00 19 18 5F 66 B6 04 01 00 00 D2 CA D4 B1 74 B7 C8 15 [19:54:32]CommunicateWithHost err = 0 [19:54:32]CheckOFDResponse [19:54:32]1017 (14) - 77093643461234 [19:54:32]1041 (16) - 0000000000875057 [19:54:32]1040 (4) - 148988 [19:54:32]1012 (4) - 04.06.2024 13:35 [19:54:32]1206 (1) - 0 [19:54:32]OFD Sender: Remove packet 148988 [19:54:32]ProducePacketName [19:54:32]name=ofd_packets/00148988 [19:54:32]NVStorageDeleteData [19:54:33]OFD Sender: Processing packet 148989 [packets to send 101, broken 99] [19:54:33]ProducePacketName [19:54:33]name=ofd_packets/00148989 [19:54:33]OFD Sender: To server: pG, [19:54:33]CommunicateWithHost lk.salyk.kg:30040 [19:54:33]ConnectInit lk.salyk.kg [19:54:33]Connected sock=9 [19:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 2B 29 07 01 8D 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 01 00 00 F4 03 04 00 8B 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 45 02 00 35 04 06 00 66 A4 1F 97 FF D1 E2 44 83 79 F3 40 81 6E [19:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 59 1F 47 00 3C 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 38 37 35 30 35 37 10 04 04 00 FD 45 02 00 F4 03 04 00 1A 18 5F 66 B6 04 01 00 00 90 5B FD 94 DD 99 52 3F [19:54:33]CommunicateWithHost err = 0 [19:54:33]CheckOFDResponse [19:54:33]1017 (14) - 77093643461234 [19:54:33]1041 (16) - 0000000000875057 [19:54:33]1040 (4) - 148989 [19:54:33]1012 (4) - 04.06.2024 13:35 [19:54:33]1206 (1) - 0 [19:54:33]OFD Sender: Remove packet 148989 [19:54:33]ProducePacketName [19:54:33]name=ofd_packets/00148989 [19:54:33]NVStorageDeleteData [19:54:34]OFD Sender: Processing packet 148990 [packets to send 100, broken 99] [19:54:34]ProducePacketName [19:54:34]name=ofd_packets/00148990 [19:54:34]OFD Sender: To server: pG, [19:54:34]CommunicateWithHost lk.salyk.kg:30040 [19:54:34]ConnectInit lk.salyk.kg [19:54:34]Connected sock=9 [19:54:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 ED 89 07 01 5D 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 E3 70 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 45 02 00 35 04 06 00 CD AC C6 2E 29 1C 84 0C B9 72 4D 13 66 F6 [19:54:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A0 3E 47 00 1A 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 45 02 00 F4 03 04 00 1B 18 5F 66 B6 04 01 00 00 EC EA 6B 1E 56 0A 1E 1F [19:54:34]CommunicateWithHost err = 0 [19:54:34]CheckOFDResponse [19:54:34]1017 (14) - 77093643461234 [19:54:34]1041 (16) - 0000000000875057 [19:54:34]1040 (4) - 148990 [19:54:34]1012 (4) - 04.06.2024 13:35 [19:54:34]1206 (1) - 0 [19:54:34]OFD Sender: Remove packet 148990 [19:54:34]ProducePacketName [19:54:34]name=ofd_packets/00148990 [19:54:34]NVStorageDeleteData [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:51]accept exits with 7 [19:54:51]New connection [19:54:51]New thread 3067219300 created [19:54:51]Thread 3067075940 joined [19:54:51]Waiting for new connection... [19:54:51] Sock 7.Parse request [19:54:51]Sock 7.Check first char [19:54:51]Sock 7.First char is OK [19:54:51]request: POST /json_proto HTTP/1.0 [19:54:51]Method: POST [19:54:51]URL: /json_proto [19:54:51]Method is POST - this is cgi request [19:54:51]url: /json_proto [19:54:51]query_string will be loaded in cgi processing [19:54:51]execute_cgi json_proto POST (null) [19:54:51]execute_cgi path=json_proto method=POST [19:54:51]POST find Content-Length [19:54:51]Host: 172.17.38.4:8080 [19:54:51]Content-Length: 682 [19:54:51]Content-Type: application/json [19:54:51] [19:54:51]POST finish read [19:54:51]Found Content-Length = 682 [19:54:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:51]execute_script... [19:54:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:51]POST & json_proto [19:54:51]process_json_proto [19:54:51]json parsed OK: [19:54:51]protocol is kg_v1.0 [19:54:51]action value=close_receipt [19:54:51]process_action close_receipt [19:54:51]cmd_close_receipt [19:54:51]MH_GetDate [19:54:51]Write to MH i2c: F0 00 00 DD 01 CD [19:54:52]Write i2c OK [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: F0 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: F0 09 00 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: F0 09 00 DD 01 00 0C 71 5F 66 CC 51 87 64 20 [19:54:52]GetLastDocTimeStamp 1717530851 [19:54:52]current date 1717530892 [19:54:52]FM_GetShiftState [19:54:52]SAM_PROTO_GetShiftState [19:54:52]wFMCommunicate request_size=4 [19:54:52]MH_SAM_APDU [19:54:52]CAPDU: 80 13 01 00 [19:54:52]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [19:54:52]Write i2c OK [19:54:52]MH_I2C_Read... [19:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:52]Read from MH i2c: E2 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: E2 0E 00 [19:54:52]MH_I2C_Read... [19:54:52]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1F [19:54:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:54:52]wFMCommunicate OK [19:54:52]SAM_PROTO_GetShiftState done [19:54:52]FM_GetShiftState done [19:54:52]opened in 1717460629 [19:54:52]opened+sec_in_day 1717547029 [19:54:52]quantity*price = 100015 [19:54:52]sum+1 = 100017 [19:54:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 330 04.06.2024 19:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148991 ФПД: 103047348018915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195452&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148991&fm=103047348018915&tin=02508201610067®Number=0000000000092720&sum=100000 [19:54:53]StoreToDocumentArchive [19:54:53]shift 368 fd 148991 [19:54:53]save to /storage/0368/doc_00148991 [19:54:53]save last doc name /storage/0368/doc_00148991 to /storage/kkm_last_doc_name [19:54:53]save OK [19:54:53]Clear old archive folders... [19:54:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:53]tlvbuf is 00966460 [19:54:53]SAM_PROTO_ClearQueue [19:54:53]wFMCommunicate request_size=4 [19:54:53]MH_SAM_APDU [19:54:53]CAPDU: 80 09 00 00 [19:54:53]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:53]Read from MH i2c: E2 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 03 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [19:54:53]RAPDU: 90 00 [19:54:53]wFMCommunicate OK [19:54:53]SAM_PROTO_ClearQueue done [19:54:53]KKMCreateOFDPacket [19:54:53]OFDProtocolAddRootSTLVToBuf [19:54:53]FM_MakeSignedData [19:54:53]FM_MakeSignedData [19:54:53]SAM_PROTO_SignData [19:54:53]wFMCommunicate request_size=4 [19:54:53]MH_SAM_APDU [19:54:53]CAPDU: 80 0D 01 02 [19:54:53]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:53]Read from MH i2c: E2 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 03 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [19:54:53]RAPDU: 90 00 [19:54:53]wFMCommunicate OK [19:54:53]wFMCommunicate request_size=255 [19:54:53]MH_SAM_APDU [19:54:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 0C 71 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 45 02 00 35 04 06 00 5D [19:54:53]Write to MH i2c: E2 02 01 ED 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 01 00 00 F4 03 04 00 0C 71 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 45 02 00 35 04 06 00 5D 00 00 8B [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:53]Read from MH i2c: E2 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 03 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [19:54:53]RAPDU: 90 00 [19:54:53]wFMCommunicate OK [19:54:53]wFMCommunicate request_size=10 [19:54:53]MH_SAM_APDU [19:54:53]CAPDU: 80 0D 02 02 05 B8 94 92 DE E3 [19:54:53]Write to MH i2c: E2 0D 00 EE 01 80 0D 02 02 05 00 B8 94 92 DE E3 00 00 12 [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:53]Read from MH i2c: E2 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 03 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [19:54:53]RAPDU: 90 00 [19:54:53]wFMCommunicate OK [19:54:53]wFMCommunicate request_size=4 [19:54:53]MH_SAM_APDU [19:54:53]CAPDU: 80 0D 03 02 [19:54:53]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:53]Read from MH i2c: E2 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 0B 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 0B 00 EF 01 00 28 BA B2 E7 E2 A6 73 0B 90 00 ED [19:54:53]RAPDU: 28 BA B2 E7 E2 A6 73 0B 90 00 [19:54:53]wFMCommunicate OK [19:54:53]SAM_PROTO_SignData done [19:54:53]FM_MakeSignedData done [19:54:53]CreateOFDProtocolMessage [19:54:53]wFMCommunicate request_size=4 [19:54:53]MH_SAM_APDU [19:54:53]CAPDU: 80 11 00 00 [19:54:53]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:53]Read from MH i2c: E2 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 17 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BE [19:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:54:53]wFMCommunicate OK [19:54:53]CreateOFDProtocolMessage done [19:54:53]OFDSenderStorePacket 148991 [19:54:53]StoreOFDPacket docnum=148991 [19:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 29 FF 07 01 9B 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 0C 71 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 45 02 00 35 04 06 00 5D B8 94 92 DE E3 28 BA B2 E7 E2 A6 73 0B [19:54:53]CheckFolder [19:54:53]dirname=/storage/ofd_packets [19:54:53]CheckFolder done [19:54:53]ProducePacketName [19:54:53]name=ofd_packets/00148991 [19:54:53]NVStorageSaveData ofd_packets/00148991 [19:54:53]File name is /storage/ofd_packets/00148991 [19:54:53]Write 301 bytes [19:54:53]NVStorageSaveData done [19:54:53]OFDSenderStorePacket done [19:54:53]KKMCreateOFDPacket done [19:54:53]NVStorageSaveData kkm_last_timestamp [19:54:53]File name is /storage/kkm_last_timestamp [19:54:53]Write 4 bytes [19:54:53]NVStorageSaveData done [19:54:53]ExternCall_PrintAddStr [19:54:53]wPrintStart [19:54:53]Write to MH i2c: 01 00 00 F1 01 F2 [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: 01 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: 01 07 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [19:54:53]RasterBufferAndPrint [19:54:53]line Счет N : (1)979926 [19:54:53]line ИНН: 02508201610067 [19:54:53]line Контрольно-Кассовый Чек [19:54:53]line ПРОДАЖА [19:54:53]line ТРК (МРК, ГНК) : 41 [19:54:53]line Товар: 2710124130 [19:54:53]line Аи-92-К-5 [19:54:53]line 14.950 * 66.90 [19:54:53]line = 1000.16 [19:54:53]line НДС 12% НСП 1% [19:54:53]line > о реализуемом товаре [19:54:53]line ОКРУГЛЕНИЕ: -0.16 [19:54:53]line ИТОГО: 1000.00 [19:54:53]line Внесено: 1000.00 [19:54:53]line СДАЧА: 0.00 [19:54:53]line НСП 1% : 8.85 [19:54:53]line НДС 12% : 106.21 [19:54:53]line Наличными: 1000.00 [19:54:53]line Безнал.: 0.00 [19:54:53]line Место: АЗС № 68 "Партнер Нефть" [19:54:53]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:54:53]line СНО: Общий режим [19:54:53]line Чек 330 04.06.2024 19:54 [19:54:53]line Смена: 368 ФФД: 1.0 [19:54:53]line ЗНМ: 0300000035 [19:54:53]line РНМ: 0000000000092720 [19:54:53]line Версия ККМ: 001 [19:54:53]line ФМ: 0000000000875057 [19:54:53]line ФД: 148991 [19:54:53]line ФПД: 103047348018915 [19:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195452&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148991&fm=103047348018915&tin=02508201610067®Number=0000000000092720&sum=100000 [19:54:54]OFD Sender: Processing packet 148991 [packets to send 100, broken 99] [19:54:54]ProducePacketName [19:54:54]name=ofd_packets/00148991 [19:54:54]OFD Sender: To server: pG, [19:54:54]CommunicateWithHost lk.salyk.kg:30040 [19:54:54]ConnectInit lk.salyk.kg [19:54:54]written 0, free lines is 4095 [19:54:54]Connected sock=10 [19:54:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 29 FF 07 01 9B 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 0C 71 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 45 02 00 35 04 06 00 5D B8 94 92 DE E3 28 BA B2 E7 E2 A6 73 0B [19:54:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 2A 44 47 00 80 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 38 37 35 30 35 37 10 04 04 00 FF 45 02 00 F4 03 04 00 2F 18 5F 66 B6 04 01 00 00 F5 DF 48 64 BB E7 68 3C [19:54:54]CommunicateWithHost err = 0 [19:54:54]CheckOFDResponse [19:54:54]1017 (14) - 77093643461234 [19:54:54]1041 (16) - 0000000000875057 [19:54:54]1040 (4) - 148991 [19:54:54]1012 (4) - 04.06.2024 13:35 [19:54:54]1206 (1) - 0 [19:54:54]OFD Sender: Remove packet 148991 [19:54:54]ProducePacketName [19:54:54]name=ofd_packets/00148991 [19:54:54]NVStorageDeleteData [19:54:54]Write to MH i2c: 01 00 00 1C 02 1E [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: 01 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: 01 07 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 88 0C B9 [19:54:54]RasterBufferAndPrint [19:54:54]line [19:54:54]line [19:54:54]line [19:54:54]line [19:54:54]line [19:54:54]written 0, free lines is 3211 [19:54:54]MH_Cut [19:54:54]Write to MH i2c: D1 01 00 23 02 01 F7 [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: D1 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: D1 01 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: D1 01 00 23 02 00 F6 [19:54:54]Write to MH i2c: 01 00 00 24 02 26 [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]OFD Sender: No OFD packet to send [19:54:55]*** Cut start [19:54:55]*** Partial cut [19:54:55]*** CUTSNS_PIN = 1 [19:54:55]*** CUTSNS_PIN = 0 [19:54:55]*** Brake cut motor [19:54:56]Read from MH i2c: 01 [19:54:56]MH_I2C_Read... [19:54:56]*** Stop cut motor [19:54:56]*** Cut end [19:54:56]Read from MH i2c: 01 07 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [19:54:56]process_action close_receipt done [19:54:56]requested_data is exist [19:54:56]produce_requested_data [19:54:56]requested_item fm.sn is exist - process it [19:54:56]wFMCommunicate request_size=4 [19:54:56]MH_SAM_APDU [19:54:56]CAPDU: 80 11 00 00 [19:54:56]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 17 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F4 [19:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:54:56]wFMCommunicate OK [19:54:56]requested_item fd.num is exist - process it [19:54:56]SAM_PROTO_GetFieldsCounters [19:54:56]wFMCommunicate request_size=4 [19:54:56]MH_SAM_APDU [19:54:56]CAPDU: 80 13 00 00 [19:54:56]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 62 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [19:54:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FF 45 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:56]wFMCommunicate OK [19:54:56]SAM_PROTO_GetFieldsCounters done [19:54:56]requested_item shift.num is exist - process it [19:54:56]requested_item shift.opened is exist - process it [19:54:56]req_shift_opened [19:54:56]FM_GetShiftState [19:54:56]SAM_PROTO_GetShiftState [19:54:56]wFMCommunicate request_size=4 [19:54:56]MH_SAM_APDU [19:54:56]CAPDU: 80 13 01 00 [19:54:56]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 0E 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 69 [19:54:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [19:54:56]wFMCommunicate OK [19:54:56]SAM_PROTO_GetShiftState done [19:54:56]FM_GetShiftState done [19:54:56]req_shift_opened done [19:54:56]requested_item shift.open_date is exist - process it [19:54:56]req_shift_open_date [19:54:56]req_shift_open_date done [19:54:56]produce_requested_data done [19:54:56]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148991,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [19:54:56]process_action_free close_receipt [19:54:56]json_value_free [19:54:56]json_value_free done [19:54:56]process_json_proto returns [19:54:56]Send response to host [19:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148991,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [19:54:56]free response buf [19:54:56]execute_script done [19:54:56]execute_script returns [19:54:56]free content buf [19:54:56]Sock 7.Close socket [19:54:56]Sock 7.Thread stoped [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57: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 3067075940 created [19:57:32]Thread 3067219300 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.38.4:8080 [19:57:32]Content-Length: 677 [19:57:32]Content-Type: application/json [19:57:32] [19:57:32]POST finish read [19:57:32]Found Content-Length = 677 [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)979927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19: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)979927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19: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 28 02 19 [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 28 02 00 AC 71 5F 66 CC 51 87 64 0C [19:57:32]GetLastDocTimeStamp 1717530892 [19:57:32]current date 1717531052 [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 29 02 80 13 01 00 00 00 00 00 A8 [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 29 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6B [19:57:32]RAPDU: 09 00 01 95 5E 5E 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 1717460629 [19:57:32]opened+sec_in_day 1717547029 [19:57:32]quantity*price = 50041 [19:57:32]sum+1 = 50042 [19:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 331 04.06.2024 19:57 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148992 ФПД: 273648307463257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195732&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148992&fm=273648307463257&tin=02508201610067®Number=0000000000092720&sum=50000 [19:57:33]StoreToDocumentArchive [19:57:33]shift 368 fd 148992 [19:57:33]save to /storage/0368/doc_00148992 [19:57:33]save last doc name /storage/0368/doc_00148992 to /storage/kkm_last_doc_name [19:57:33]save OK [19:57:33]Clear old archive folders... [19:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:33]tlvbuf is 0093A1A0 [19:57:33]SAM_PROTO_ClearQueue [19:57:33]wFMCommunicate request_size=4 [19:57:33]MH_SAM_APDU [19:57:33]CAPDU: 80 09 00 00 [19:57:33]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [19:57:33]Write i2c OK [19:57:33]MH_I2C_Read... [19:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:33]Read from MH i2c: E2 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: E2 03 00 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [19:57:33]RAPDU: 90 00 [19:57:33]wFMCommunicate OK [19:57:33]SAM_PROTO_ClearQueue done [19:57:33]KKMCreateOFDPacket [19:57:33]OFDProtocolAddRootSTLVToBuf [19:57:33]FM_MakeSignedData [19:57:33]FM_MakeSignedData [19:57:33]SAM_PROTO_SignData [19:57:33]wFMCommunicate request_size=4 [19:57:33]MH_SAM_APDU [19:57:33]CAPDU: 80 0D 01 02 [19:57:33]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [19:57:33]Write i2c OK [19:57:33]MH_I2C_Read... [19:57:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:33]Read from MH i2c: E2 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: E2 03 00 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [19:57:33]RAPDU: 90 00 [19:57:33]wFMCommunicate OK [19:57:33]wFMCommunicate request_size=255 [19:57:33]MH_SAM_APDU [19:57:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 AC 71 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 46 02 00 35 04 06 00 F8 [19:57:33]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 AC 71 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 46 02 00 35 04 06 00 F8 00 00 1B [19:57:33]Write i2c OK [19:57:33]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 38 02 00 90 00 AE [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 E1 B6 28 E4 59 [19:57:34]Write to MH i2c: E2 0D 00 39 02 80 0D 02 02 05 00 E1 B6 28 E4 59 00 00 BB [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 39 02 00 90 00 AF [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 3A 02 80 0D 03 02 00 00 00 00 B7 [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 3A 02 00 37 A7 C0 02 3C 5A E7 CE 90 00 A3 [19:57:34]RAPDU: 37 A7 C0 02 3C 5A E7 CE 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 3B 02 80 11 00 00 00 00 00 00 B7 [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 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0A [19:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [19:57:34]wFMCommunicate OK [19:57:34]CreateOFDProtocolMessage done [19:57:34]OFDSenderStorePacket 148992 [19:57:34]StoreOFDPacket docnum=148992 [19:57:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 14 DC 07 01 2B E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 AC 71 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 46 02 00 35 04 06 00 F8 E1 B6 28 E4 59 37 A7 C0 02 3C 5A E7 CE [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/00148992 [19:57:34]NVStorageSaveData ofd_packets/00148992 [19:57:34]File name is /storage/ofd_packets/00148992 [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 3C 02 3E [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 3C 02 00 00 00 00 00 FF 0F 53 [19:57:34]RasterBufferAndPrint [19:57:34]line Счет N : (1)979927 [19:57:34]line ИНН: 02508201610067 [19:57:34]line Контрольно-Кассовый Чек [19:57:34]line ПРОДАЖА [19:57:34]line ТРК (МРК, ГНК) : 31 [19:57:34]line Товар: 2710124130 [19:57:34]line Аи-92-К-5 [19:57:34]line 7.480 * 66.90 [19:57:34]line = 500.41 [19:57:34]line НДС 12% НСП 1% [19:57:34]line > о реализуемом товаре [19:57:34]line ОКРУГЛЕНИЕ: -0.41 [19:57:34]line ИТОГО: 500.00 [19:57:34]line Внесено: 500.00 [19:57:34]line СДАЧА: 0.00 [19:57:34]line НСП 1% : 4.43 [19:57:34]line НДС 12% : 53.14 [19:57:34]line Наличными: 500.00 [19:57:34]line Безнал.: 0.00 [19:57:34]line Место: АЗС № 68 "Партнер Нефть" [19:57:34]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [19:57:34]line СНО: Общий режим [19:57:34]line Чек 331 04.06.2024 19:57 [19:57:34]line Смена: 368 ФФД: 1.0 [19:57:34]line ЗНМ: 0300000035 [19:57:34]line РНМ: 0000000000092720 [19:57:34]line Версия ККМ: 001 [19:57:34]line ФМ: 0000000000875057 [19:57:34]line ФД: 148992 [19:57:34]line ФПД: 273648307463257 [19:57:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T195732&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148992&fm=273648307463257&tin=02508201610067®Number=0000000000092720&sum=50000 [19:57:34]OFD Sender: Processing packet 148992 [packets to send 100, broken 99] [19:57:34]ProducePacketName [19:57:34]name=ofd_packets/00148992 [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:34]Connected sock=10 [19:57:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 14 DC 07 01 2B E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 AC 71 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 46 02 00 35 04 06 00 F8 E1 B6 28 E4 59 37 A7 C0 02 3C 5A E7 CE [19:57:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 5C 3D 47 00 3F 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 46 02 00 F4 03 04 00 CF 18 5F 66 B6 04 01 00 00 43 9C 64 97 6C 7D 86 AE [19:57:34]CommunicateWithHost err = 0 [19:57:34]CheckOFDResponse [19:57:34]1017 (14) - 77093643461234 [19:57:34]1041 (16) - 0000000000875057 [19:57:34]1040 (4) - 148992 [19:57:34]1012 (4) - 04.06.2024 13:38 [19:57:34]1206 (1) - 0 [19:57:34]OFD Sender: Remove packet 148992 [19:57:34]ProducePacketName [19:57:34]name=ofd_packets/00148992 [19:57:34]NVStorageDeleteData [19:57:35]Write to MH i2c: 01 00 00 67 02 69 [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 67 02 00 00 00 00 00 8B 0C 07 [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 3215 [19:57:35]MH_Cut [19:57:35]Write to MH i2c: D1 01 00 6E 02 01 42 [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 6E 02 00 41 [19:57:35]Write to MH i2c: 01 00 00 6F 02 71 [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 6F 02 00 00 00 00 00 FF 0F 86 [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 70 02 80 11 00 00 00 00 00 00 EC [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 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3F [19:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 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 71 02 80 13 00 00 00 00 00 00 EF [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 71 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 00 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [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 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 00 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [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 72 02 80 13 01 00 00 00 00 00 F1 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 [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 0E 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B4 [19:57:37]RAPDU: 09 00 01 95 5E 5E 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":"0000000000875057","fd.num":148992,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [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":"0000000000875057","fd.num":148992,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [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:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:22]accept exits with 7 [20:05:22]New connection [20:05:22]New thread 3067219300 created [20:05:22]Thread 3067075940 joined [20:05:22]Waiting for new connection... [20:05:22] Sock 7.Parse request [20:05:22]Sock 7.Check first char [20:05:22]Sock 7.First char is OK [20:05:22]request: POST /json_proto HTTP/1.0 [20:05:22]Method: POST [20:05:22]URL: /json_proto [20:05:22]Method is POST - this is cgi request [20:05:22]url: /json_proto [20:05:22]query_string will be loaded in cgi processing [20:05:22]execute_cgi json_proto POST (null) [20:05:22]execute_cgi path=json_proto method=POST [20:05:22]POST find Content-Length [20:05:22]Host: 172.17.38.4:8080 [20:05:22]Content-Length: 793 [20:05:22]Content-Type: application/json [20:05:22] [20:05:22]POST finish read [20:05:22]Found Content-Length = 793 [20:05:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:22]execute_script... [20:05: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)979928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:22]POST & json_proto [20:05:22]process_json_proto [20:05:22]json parsed OK: [20:05:22]protocol is kg_v1.0 [20:05:22]action value=close_receipt [20:05:22]process_action close_receipt [20:05:22]cmd_close_receipt [20:05:22]MH_GetDate [20:05:22]Write to MH i2c: F0 00 00 73 02 64 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: F0 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: F0 09 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: F0 09 00 73 02 00 82 73 5F 66 CC 51 87 64 2F [20:05:22]GetLastDocTimeStamp 1717531052 [20:05:22]current date 1717531522 [20:05:22]FM_GetShiftState [20:05:22]SAM_PROTO_GetShiftState [20:05:22]wFMCommunicate request_size=4 [20:05:22]MH_SAM_APDU [20:05:22]CAPDU: 80 13 01 00 [20:05:22]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 0E 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B6 [20:05:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:05:22]wFMCommunicate OK [20:05:22]SAM_PROTO_GetShiftState done [20:05:22]FM_GetShiftState done [20:05:22]opened in 1717460629 [20:05:22]opened+sec_in_day 1717547029 [20:05:22]quantity*price = 100015 [20:05:22]sum+1 = 100017 [20:05:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 332 04.06.2024 20:05 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148993 ФПД: 31351915910389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T200522&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148993&fm=31351915910389&tin=02508201610067®Number=0000000000092720&sum=100016 [20:05:23]StoreToDocumentArchive [20:05:23]shift 368 fd 148993 [20:05:23]save to /storage/0368/doc_00148993 [20:05:23]save last doc name /storage/0368/doc_00148993 to /storage/kkm_last_doc_name [20:05:23]save OK [20:05:23]Clear old archive folders... [20:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:23]tlvbuf is 0098D4E0 [20:05:23]SAM_PROTO_ClearQueue [20:05:23]wFMCommunicate request_size=4 [20:05:23]MH_SAM_APDU [20:05:23]CAPDU: 80 09 00 00 [20:05:23]Write to MH i2c: E2 08 00 81 02 80 09 00 00 00 00 00 00 F5 [20:05:23]Write i2c OK [20:05:23]MH_I2C_Read... [20:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:23]Read from MH i2c: E2 [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: E2 03 00 [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [20:05:23]RAPDU: 90 00 [20:05:23]wFMCommunicate OK [20:05:23]SAM_PROTO_ClearQueue done [20:05:23]KKMCreateOFDPacket [20:05:23]OFDProtocolAddRootSTLVToBuf [20:05:23]FM_MakeSignedData [20:05:23]FM_MakeSignedData [20:05:23]SAM_PROTO_SignData [20:05:23]wFMCommunicate request_size=4 [20:05:23]MH_SAM_APDU [20:05:23]CAPDU: 80 0D 01 02 [20:05:23]Write to MH i2c: E2 08 00 82 02 80 0D 01 02 00 00 00 00 FD [20:05:23]Write i2c OK [20:05:23]MH_I2C_Read... [20:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:23]Read from MH i2c: E2 [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: E2 03 00 [20:05:23]MH_I2C_Read... [20:05:23]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [20:05:23]RAPDU: 90 00 [20:05:23]wFMCommunicate OK [20:05:23]wFMCommunicate request_size=255 [20:05:23]MH_SAM_APDU [20:05:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 01 00 00 F4 03 04 00 82 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 46 02 00 35 04 06 00 1C [20:05:23]Write to MH i2c: E2 02 01 83 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 82 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 46 02 00 35 04 06 00 1C 00 00 7E [20:05:23]Write i2c OK [20:05:23]MH_I2C_Read... [20:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:24]Read from MH i2c: E2 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 03 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [20:05:24]RAPDU: 90 00 [20:05:24]wFMCommunicate OK [20:05:24]wFMCommunicate request_size=10 [20:05:24]MH_SAM_APDU [20:05:24]CAPDU: 80 0D 02 02 05 83 AF CF 94 F5 [20:05:24]Write to MH i2c: E2 0D 00 84 02 80 0D 02 02 05 00 83 AF CF 94 F5 00 00 94 [20:05:24]Write i2c OK [20:05:24]MH_I2C_Read... [20:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:24]Read from MH i2c: E2 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 03 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [20:05:24]RAPDU: 90 00 [20:05:24]wFMCommunicate OK [20:05:24]wFMCommunicate request_size=4 [20:05:24]MH_SAM_APDU [20:05:24]CAPDU: 80 0D 03 02 [20:05:24]Write to MH i2c: E2 08 00 85 02 80 0D 03 02 00 00 00 00 02 [20:05:24]Write i2c OK [20:05:24]MH_I2C_Read... [20:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:24]Read from MH i2c: E2 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 0B 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 0B 00 85 02 00 3A 43 C2 A3 93 A7 74 20 90 00 B3 [20:05:24]RAPDU: 3A 43 C2 A3 93 A7 74 20 90 00 [20:05:24]wFMCommunicate OK [20:05:24]SAM_PROTO_SignData done [20:05:24]FM_MakeSignedData done [20:05:24]CreateOFDProtocolMessage [20:05:24]wFMCommunicate request_size=4 [20:05:24]MH_SAM_APDU [20:05:24]CAPDU: 80 11 00 00 [20:05:24]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [20:05:24]Write i2c OK [20:05:24]MH_I2C_Read... [20:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:24]Read from MH i2c: E2 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 17 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 55 [20:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:05:24]wFMCommunicate OK [20:05:24]CreateOFDProtocolMessage done [20:05:24]OFDSenderStorePacket 148993 [20:05:24]StoreOFDPacket docnum=148993 [20:05:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 85 C6 07 01 9D B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 01 00 00 F4 03 04 00 82 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 46 02 00 35 04 06 00 1C 83 AF CF 94 F5 3A 43 C2 A3 93 A7 74 20 [20:05:24]CheckFolder [20:05:24]dirname=/storage/ofd_packets [20:05:24]CheckFolder done [20:05:24]ProducePacketName [20:05:24]name=ofd_packets/00148993 [20:05:24]NVStorageSaveData ofd_packets/00148993 [20:05:24]File name is /storage/ofd_packets/00148993 [20:05:24]Write 301 bytes [20:05:24]NVStorageSaveData done [20:05:24]OFDSenderStorePacket done [20:05:24]KKMCreateOFDPacket done [20:05:24]NVStorageSaveData kkm_last_timestamp [20:05:24]File name is /storage/kkm_last_timestamp [20:05:24]Write 4 bytes [20:05:24]NVStorageSaveData done [20:05:24]ExternCall_PrintAddStr [20:05:24]wPrintStart [20:05:24]Write to MH i2c: 01 00 00 87 02 89 [20:05:24]Write i2c OK [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: 01 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: 01 07 00 [20:05:24]MH_I2C_Read... [20:05:24]Read from MH i2c: 01 07 00 87 02 00 00 00 00 00 FF 0F 9E [20:05:24]RasterBufferAndPrint [20:05:24]line Счет N : (1)979928 [20:05:24]line ИНН: 02508201610067 [20:05:24]line Контрольно-Кассовый Чек [20:05:24]line ПРОДАЖА [20:05:24]line ТРК (МРК, ГНК) : 41 [20:05:24]line Товар: 2710124130 [20:05:24]line Аи-92-К-5 [20:05:24]line 14.950 * 66.90 [20:05:24]line = 1000.16 [20:05:24]line НДС 12% НСП 1% [20:05:24]line > о реализуемом товаре [20:05:24]line ИТОГО: 1000.16 [20:05:24]line НСП 1% : 8.85 [20:05:24]line НДС 12% : 106.21 [20:05:24]line Наличными: 0.00 [20:05:24]line Безнал.: 1000.16 [20:05:24]line Место: АЗС № 68 "Партнер Нефть" [20:05:24]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:05:24]line СНО: Общий режим [20:05:24]line Чек 332 04.06.2024 20:05 [20:05:24]line Смена: 368 ФФД: 1.0 [20:05:24]line ЗНМ: 0300000035 [20:05:24]line РНМ: 0000000000092720 [20:05:24]line Версия ККМ: 001 [20:05:24]line Платежная система: KICB Банк [20:05:24]line ФМ: 0000000000875057 [20:05:24]line ФД: 148993 [20:05:24]line ФПД: 31351915910389 [20:05:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T200522&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148993&fm=31351915910389&tin=02508201610067®Number=0000000000092720&sum=100016 [20:05:24]OFD Sender: Processing packet 148993 [packets to send 100, broken 99] [20:05:24]ProducePacketName [20:05:24]name=ofd_packets/00148993 [20:05:24]OFD Sender: To server: pG, [20:05:24]CommunicateWithHost lk.salyk.kg:30040 [20:05:24]ConnectInit lk.salyk.kg [20:05:24]written 0, free lines is 4095 [20:05:24]Connected sock=9 [20:05:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 85 C6 07 01 9D B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 01 00 00 F4 03 04 00 82 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 46 02 00 35 04 06 00 1C 83 AF CF 94 F5 3A 43 C2 A3 93 A7 74 20 [20:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 4D 32 47 00 67 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 38 37 35 30 35 37 10 04 04 00 01 46 02 00 F4 03 04 00 A5 1A 5F 66 B6 04 01 00 00 1D D5 EF 7E 29 4B F7 66 [20:05:24]CommunicateWithHost err = 0 [20:05:24]CheckOFDResponse [20:05:24]1017 (14) - 77093643461234 [20:05:24]1041 (16) - 0000000000875057 [20:05:24]1040 (4) - 148993 [20:05:24]1012 (4) - 04.06.2024 13:46 [20:05:24]1206 (1) - 0 [20:05:24]OFD Sender: Remove packet 148993 [20:05:24]ProducePacketName [20:05:24]name=ofd_packets/00148993 [20:05:24]NVStorageDeleteData [20:05:25]Write to MH i2c: 01 00 00 B1 02 B3 [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: 01 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: 01 07 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 9D 0C 63 [20:05:25]RasterBufferAndPrint [20:05:25]line [20:05:25]line [20:05:25]line [20:05:25]line [20:05:25]line [20:05:25]written 0, free lines is 3233 [20:05:25]MH_Cut [20:05:25]Write to MH i2c: D1 01 00 B8 02 01 8C [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: D1 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: D1 01 00 [20:05:25]MH_I2C_Read... [20:05:25]Read from MH i2c: D1 01 00 B8 02 00 8B [20:05:25]Write to MH i2c: 01 00 00 B9 02 BB [20:05:25]Write i2c OK [20:05:25]MH_I2C_Read... [20:05:25]OFD Sender: No OFD packet to send [20:05:26]*** Cut start [20:05:26]*** Partial cut [20:05:26]*** CUTSNS_PIN = 1 [20:05:26]*** CUTSNS_PIN = 0 [20:05:26]*** Brake cut motor [20:05:26]Read from MH i2c: 01 [20:05:26]MH_I2C_Read... [20:05:26]*** Stop cut motor [20:05:26]*** Cut end [20:05:26]Read from MH i2c: 01 07 00 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [20:05:26]process_action close_receipt done [20:05:26]requested_data is exist [20:05:26]produce_requested_data [20:05:26]requested_item fm.sn is exist - process it [20:05:26]wFMCommunicate request_size=4 [20:05:26]MH_SAM_APDU [20:05:26]CAPDU: 80 11 00 00 [20:05:26]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [20:05:26]Write i2c OK [20:05:26]MH_I2C_Read... [20:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:26]Read from MH i2c: E2 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: E2 17 00 [20:05:26]MH_I2C_Read... [20:05:26]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 89 [20:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:05:26]wFMCommunicate OK [20:05:26]requested_item fd.num is exist - process it [20:05:26]SAM_PROTO_GetFieldsCounters [20:05:26]wFMCommunicate request_size=4 [20:05:26]MH_SAM_APDU [20:05:26]CAPDU: 80 13 00 00 [20:05:26]Write to MH i2c: E2 08 00 BB 02 80 13 00 00 00 00 00 00 39 [20:05:26]Write i2c OK [20:05:26]MH_I2C_Read... [20:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:27]Read from MH i2c: E2 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 62 00 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 62 00 BB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 01 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [20:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 01 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:27]wFMCommunicate OK [20:05:27]SAM_PROTO_GetFieldsCounters done [20:05:27]requested_item shift.num is exist - process it [20:05:27]requested_item shift.opened is exist - process it [20:05:27]req_shift_opened [20:05:27]FM_GetShiftState [20:05:27]SAM_PROTO_GetShiftState [20:05:27]wFMCommunicate request_size=4 [20:05:27]MH_SAM_APDU [20:05:27]CAPDU: 80 13 01 00 [20:05:27]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [20:05:27]Write i2c OK [20:05:27]MH_I2C_Read... [20:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:27]Read from MH i2c: E2 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 0E 00 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FE [20:05:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:05:27]wFMCommunicate OK [20:05:27]SAM_PROTO_GetShiftState done [20:05:27]FM_GetShiftState done [20:05:27]req_shift_opened done [20:05:27]requested_item shift.open_date is exist - process it [20:05:27]req_shift_open_date [20:05:27]req_shift_open_date done [20:05:27]produce_requested_data done [20:05:27]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148993,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:05:27]process_action_free close_receipt [20:05:27]json_value_free [20:05:27]json_value_free done [20:05:27]process_json_proto returns [20:05:27]Send response to host [20:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148993,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:05:27]free response buf [20:05:27]execute_script done [20:05:27]execute_script returns [20:05:27]free content buf [20:05:27]Sock 7.Close socket [20:05:27]Sock 7.Thread stoped [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:11]accept exits with 10 [20:06:11]New connection [20:06:11]New thread 3067075940 created [20:06:11]Thread 3067219300 joined [20:06:11]Waiting for new connection... [20:06:11] Sock 10.Parse request [20:06:11]Sock 10.Check first char [20:06:11]Sock 10.First char is OK [20:06:11]request: POST /json_proto HTTP/1.0 [20:06:11]Method: POST [20:06:11]URL: /json_proto [20:06:11]Method is POST - this is cgi request [20:06:11]url: /json_proto [20:06:11]query_string will be loaded in cgi processing [20:06:11]execute_cgi json_proto POST (null) [20:06:11]execute_cgi path=json_proto method=POST [20:06:11]POST find Content-Length [20:06:11]Host: 172.17.38.4:8080 [20:06:11]Content-Length: 677 [20:06:11]Content-Type: application/json [20:06:11] [20:06:11]POST finish read [20:06:11]Found Content-Length = 677 [20:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:11]execute_script... [20:06:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:11]POST & json_proto [20:06:11]process_json_proto [20:06:11]json parsed OK: [20:06:11]protocol is kg_v1.0 [20:06:11]action value=close_receipt [20:06:11]process_action close_receipt [20:06:11]cmd_close_receipt [20:06:11]MH_GetDate [20:06:11]Write to MH i2c: F0 00 00 BD 02 AE [20:06:11]Write i2c OK [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: F0 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: F0 09 00 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: F0 09 00 BD 02 00 B3 73 5F 66 CC 51 87 64 AA [20:06:11]GetLastDocTimeStamp 1717531522 [20:06:11]current date 1717531571 [20:06:11]FM_GetShiftState [20:06:11]SAM_PROTO_GetShiftState [20:06:11]wFMCommunicate request_size=4 [20:06:11]MH_SAM_APDU [20:06:11]CAPDU: 80 13 01 00 [20:06:11]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [20:06:11]Write i2c OK [20:06:11]MH_I2C_Read... [20:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:11]Read from MH i2c: E2 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: E2 0E 00 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 00 [20:06:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:06:11]wFMCommunicate OK [20:06:11]SAM_PROTO_GetShiftState done [20:06:11]FM_GetShiftState done [20:06:11]opened in 1717460629 [20:06:11]opened+sec_in_day 1717547029 [20:06:11]quantity*price = 40006 [20:06:11]sum+1 = 40007 [20:06: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 333 04.06.2024 20:06 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148994 ФПД: 31800217894019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T200611&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148994&fm=31800217894019&tin=02508201610067®Number=0000000000092720&sum=40000 [20:06:12]StoreToDocumentArchive [20:06:12]shift 368 fd 148994 [20:06:12]save to /storage/0368/doc_00148994 [20:06:12]save last doc name /storage/0368/doc_00148994 to /storage/kkm_last_doc_name [20:06:12]save OK [20:06:12]Clear old archive folders... [20:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:12]tlvbuf is 00938090 [20:06:12]SAM_PROTO_ClearQueue [20:06:12]wFMCommunicate request_size=4 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 09 00 00 [20:06:12]Write to MH i2c: E2 08 00 CB 02 80 09 00 00 00 00 00 00 3F [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:12]Read from MH i2c: E2 03 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [20:06:12]RAPDU: 90 00 [20:06:12]wFMCommunicate OK [20:06:12]SAM_PROTO_ClearQueue done [20:06:12]KKMCreateOFDPacket [20:06:12]OFDProtocolAddRootSTLVToBuf [20:06:12]FM_MakeSignedData [20:06:12]FM_MakeSignedData [20:06:12]SAM_PROTO_SignData [20:06:12]wFMCommunicate request_size=4 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 0D 01 02 [20:06:12]Write to MH i2c: E2 08 00 CC 02 80 0D 01 02 00 00 00 00 47 [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 03 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [20:06:12]RAPDU: 90 00 [20:06:12]wFMCommunicate OK [20:06:12]wFMCommunicate request_size=255 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 01 00 00 F4 03 04 00 B3 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 46 02 00 35 04 06 00 1C [20:06:12]Write to MH i2c: E2 02 01 CD 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 01 00 00 F4 03 04 00 B3 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 46 02 00 35 04 06 00 1C 00 00 B0 [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 03 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [20:06:12]RAPDU: 90 00 [20:06:12]wFMCommunicate OK [20:06:12]wFMCommunicate request_size=10 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 0D 02 02 05 EC 10 B0 FC 83 [20:06:12]Write to MH i2c: E2 0D 00 CE 02 80 0D 02 02 05 00 EC 10 B0 FC 83 00 00 7F [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 03 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [20:06:12]RAPDU: 90 00 [20:06:12]wFMCommunicate OK [20:06:12]wFMCommunicate request_size=4 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 0D 03 02 [20:06:12]Write to MH i2c: E2 08 00 CF 02 80 0D 03 02 00 00 00 00 4C [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 0B 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 0B 00 CF 02 00 C0 B1 2A 7C 4E 48 24 D2 90 00 F0 [20:06:12]RAPDU: C0 B1 2A 7C 4E 48 24 D2 90 00 [20:06:12]wFMCommunicate OK [20:06:12]SAM_PROTO_SignData done [20:06:12]FM_MakeSignedData done [20:06:12]CreateOFDProtocolMessage [20:06:12]wFMCommunicate request_size=4 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 11 00 00 [20:06:12]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 17 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9F [20:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:06:12]wFMCommunicate OK [20:06:12]CreateOFDProtocolMessage done [20:06:12]OFDSenderStorePacket 148994 [20:06:12]StoreOFDPacket docnum=148994 [20:06:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 45 07 01 80 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 01 00 00 F4 03 04 00 B3 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 46 02 00 35 04 06 00 1C EC 10 B0 FC 83 C0 B1 2A 7C 4E 48 24 D2 [20:06:12]CheckFolder [20:06:12]dirname=/storage/ofd_packets [20:06:12]CheckFolder done [20:06:12]ProducePacketName [20:06:12]name=ofd_packets/00148994 [20:06:12]NVStorageSaveData ofd_packets/00148994 [20:06:12]File name is /storage/ofd_packets/00148994 [20:06:12]Write 301 bytes [20:06:12]NVStorageSaveData done [20:06:12]OFDSenderStorePacket done [20:06:12]KKMCreateOFDPacket done [20:06:12]NVStorageSaveData kkm_last_timestamp [20:06:12]File name is /storage/kkm_last_timestamp [20:06:12]Write 4 bytes [20:06:12]NVStorageSaveData done [20:06:12]ExternCall_PrintAddStr [20:06:12]wPrintStart [20:06:12]Write to MH i2c: 01 00 00 D1 02 D3 [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: 01 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: 01 07 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 FF 0F E8 [20:06:12]RasterBufferAndPrint [20:06:12]line Счет N : (1)979929 [20:06:12]line ИНН: 02508201610067 [20:06:12]line Контрольно-Кассовый Чек [20:06:12]line ПРОДАЖА [20:06:12]line ТРК (МРК, ГНК) : 12 [20:06:12]line Товар: 2710124130 [20:06:12]line Аи-92-К-5 [20:06:12]line 5.980 * 66.90 [20:06:12]line = 400.06 [20:06:12]line НДС 12% НСП 1% [20:06:12]line > о реализуемом товаре [20:06:12]line ОКРУГЛЕНИЕ: -0.06 [20:06:12]line ИТОГО: 400.00 [20:06:12]line Внесено: 400.00 [20:06:12]line СДАЧА: 0.00 [20:06:12]line НСП 1% : 3.54 [20:06:12]line НДС 12% : 42.48 [20:06:12]line Наличными: 400.00 [20:06:12]line Безнал.: 0.00 [20:06:12]line Место: АЗС № 68 "Партнер Нефть" [20:06:12]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:06:12]line СНО: Общий режим [20:06:12]line Чек 333 04.06.2024 20:06 [20:06:12]line Смена: 368 ФФД: 1.0 [20:06:12]line ЗНМ: 0300000035 [20:06:12]line РНМ: 0000000000092720 [20:06:12]line Версия ККМ: 001 [20:06:12]line ФМ: 0000000000875057 [20:06:12]line ФД: 148994 [20:06:12]line ФПД: 31800217894019 [20:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T200611&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148994&fm=31800217894019&tin=02508201610067®Number=0000000000092720&sum=40000 [20:06:13]OFD Sender: Processing packet 148994 [packets to send 100, broken 99] [20:06:13]ProducePacketName [20:06:13]name=ofd_packets/00148994 [20:06:13]OFD Sender: To server: pG, [20:06:13]CommunicateWithHost lk.salyk.kg:30040 [20:06:13]ConnectInit lk.salyk.kg [20:06:13]written 0, free lines is 4095 [20:06:13]Connected sock=9 [20:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 45 07 01 80 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 01 00 00 F4 03 04 00 B3 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 46 02 00 35 04 06 00 1C EC 10 B0 FC 83 C0 B1 2A 7C 4E 48 24 D2 [20:06:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8D C4 47 00 6E 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 38 37 35 30 35 37 10 04 04 00 02 46 02 00 F4 03 04 00 D6 1A 5F 66 B6 04 01 00 00 57 8B D5 E7 58 E8 74 B2 [20:06:13]CommunicateWithHost err = 0 [20:06:13]CheckOFDResponse [20:06:13]1017 (14) - 77093643461234 [20:06:13]1041 (16) - 0000000000875057 [20:06:13]1040 (4) - 148994 [20:06:13]1012 (4) - 04.06.2024 13:47 [20:06:13]1206 (1) - 0 [20:06:13]OFD Sender: Remove packet 148994 [20:06:13]ProducePacketName [20:06:13]name=ofd_packets/00148994 [20:06:13]NVStorageDeleteData [20:06:13]Write to MH i2c: 01 00 00 FC 02 FE [20:06:13]Write i2c OK [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: 01 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: 01 07 00 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 8D 0C 9E [20:06:13]RasterBufferAndPrint [20:06:13]line [20:06:13]line [20:06:13]line [20:06:13]line [20:06:13]line [20:06:13]written 0, free lines is 3217 [20:06:13]MH_Cut [20:06:13]Write to MH i2c: D1 01 00 03 03 01 D8 [20:06:13]Write i2c OK [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: D1 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: D1 01 00 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: D1 01 00 03 03 00 D7 [20:06:13]Write to MH i2c: 01 00 00 04 03 07 [20:06:13]Write i2c OK [20:06:13]MH_I2C_Read... [20:06:14]OFD Sender: No OFD packet to send [20:06:14]*** Cut start [20:06:14]*** Partial cut [20:06:14]*** CUTSNS_PIN = 1 [20:06:14]*** CUTSNS_PIN = 0 [20:06:15]*** Brake cut motor [20:06:15]Read from MH i2c: 01 [20:06:15]MH_I2C_Read... [20:06:15]*** Stop cut motor [20:06:15]*** Cut end [20:06:15]Read from MH i2c: 01 07 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [20:06:15]process_action close_receipt done [20:06:15]requested_data is exist [20:06:15]produce_requested_data [20:06:15]requested_item fm.sn is exist - process it [20:06:15]wFMCommunicate request_size=4 [20:06:15]MH_SAM_APDU [20:06:15]CAPDU: 80 11 00 00 [20:06:15]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [20:06:15]Write i2c OK [20:06:15]MH_I2C_Read... [20:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:15]Read from MH i2c: E2 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 17 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D5 [20:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:06:15]wFMCommunicate OK [20:06:15]requested_item fd.num is exist - process it [20:06:15]SAM_PROTO_GetFieldsCounters [20:06:15]wFMCommunicate request_size=4 [20:06:15]MH_SAM_APDU [20:06:15]CAPDU: 80 13 00 00 [20:06:15]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [20:06:15]Write i2c OK [20:06:15]MH_I2C_Read... [20:06:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:15]Read from MH i2c: E2 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 62 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 62 00 06 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 02 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [20:06:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 02 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:15]wFMCommunicate OK [20:06:15]SAM_PROTO_GetFieldsCounters done [20:06:15]requested_item shift.num is exist - process it [20:06:15]requested_item shift.opened is exist - process it [20:06:15]req_shift_opened [20:06:15]FM_GetShiftState [20:06:15]SAM_PROTO_GetShiftState [20:06:15]wFMCommunicate request_size=4 [20:06:15]MH_SAM_APDU [20:06:15]CAPDU: 80 13 01 00 [20:06:15]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [20:06:15]Write i2c OK [20:06:15]MH_I2C_Read... [20:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:15]Read from MH i2c: E2 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 0E 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4A [20:06:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:06:15]wFMCommunicate OK [20:06:15]SAM_PROTO_GetShiftState done [20:06:15]FM_GetShiftState done [20:06:15]req_shift_opened done [20:06:15]requested_item shift.open_date is exist - process it [20:06:15]req_shift_open_date [20:06:15]req_shift_open_date done [20:06:15]produce_requested_data done [20:06:15]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148994,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:06:15]process_action_free close_receipt [20:06:15]json_value_free [20:06:15]json_value_free done [20:06:15]process_json_proto returns [20:06:15]Send response to host [20:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148994,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:06:15]free response buf [20:06:15]execute_script done [20:06:15]execute_script returns [20:06:15]free content buf [20:06:15]Sock 10.Close socket [20:06:15]Sock 10.Thread stoped [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:32]accept exits with 7 [20:06:32]New connection [20:06:32]New thread 3067219300 created [20:06:32]Thread 3067075940 joined [20:06:32]Waiting for new connection... [20:06:32] Sock 7.Parse request [20:06:32]Sock 7.Check first char [20:06:32]Sock 7.First char is OK [20:06:32]request: POST /json_proto HTTP/1.0 [20:06:32]Method: POST [20:06:32]URL: /json_proto [20:06:32]Method is POST - this is cgi request [20:06:32]url: /json_proto [20:06:32]query_string will be loaded in cgi processing [20:06:32]execute_cgi json_proto POST (null) [20:06:32]execute_cgi path=json_proto method=POST [20:06:32]POST find Content-Length [20:06:32]Host: 172.17.38.4:8080 [20:06:32]Content-Length: 983 [20:06:32]Content-Type: application/json [20:06:32] [20:06:32]POST finish read [20:06:32]Found Content-Length = 983 [20:06:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:32]execute_script... [20:06: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)979930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:32]POST & json_proto [20:06:32]process_json_proto [20:06:32]json parsed OK: [20:06:32]protocol is kg_v1.0 [20:06:32]action value=close_receipt [20:06:32]process_action close_receipt [20:06:32]cmd_close_receipt [20:06:32]MH_GetDate [20:06:32]Write to MH i2c: F0 00 00 08 03 FA [20:06:32]Write i2c OK [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: F0 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: F0 09 00 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: F0 09 00 08 03 00 C8 73 5F 66 CC 51 87 64 0B [20:06:32]GetLastDocTimeStamp 1717531571 [20:06:32]current date 1717531592 [20:06:32]FM_GetShiftState [20:06:32]SAM_PROTO_GetShiftState [20:06:32]wFMCommunicate request_size=4 [20:06:32]MH_SAM_APDU [20:06:32]CAPDU: 80 13 01 00 [20:06:32]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [20:06:32]Write i2c OK [20:06:32]MH_I2C_Read... [20:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:32]Read from MH i2c: E2 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: E2 0E 00 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4C [20:06:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:06:32]wFMCommunicate OK [20:06:32]SAM_PROTO_GetShiftState done [20:06:32]FM_GetShiftState done [20:06:32]opened in 1717460629 [20:06:32]opened+sec_in_day 1717547029 [20:06:32]quantity*price = 150054 [20:06:32]sum+1 = 150055 [20:06:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 334 04.06.2024 20:06 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа АИ-92 номер 68 сэкономлено 22.77 сом ФМ: 0000000000875057 ФД: 148995 ФПД: 86718924634971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T200632&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148995&fm=86718924634971&tin=02508201610067®Number=0000000000092720&sum=150000 [20:06:33]StoreToDocumentArchive [20:06:33]shift 368 fd 148995 [20:06:33]save to /storage/0368/doc_00148995 [20:06:33]save last doc name /storage/0368/doc_00148995 to /storage/kkm_last_doc_name [20:06:33]save OK [20:06:33]Clear old archive folders... [20:06:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:33]tlvbuf is 0098DA80 [20:06:33]SAM_PROTO_ClearQueue [20:06:33]wFMCommunicate request_size=4 [20:06:33]MH_SAM_APDU [20:06:33]CAPDU: 80 09 00 00 [20:06:33]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [20:06:33]Write i2c OK [20:06:33]MH_I2C_Read... [20:06:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:33]Read from MH i2c: E2 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 03 00 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [20:06:33]RAPDU: 90 00 [20:06:33]wFMCommunicate OK [20:06:33]SAM_PROTO_ClearQueue done [20:06:33]KKMCreateOFDPacket [20:06:33]OFDProtocolAddRootSTLVToBuf [20:06:33]FM_MakeSignedData [20:06:33]FM_MakeSignedData [20:06:33]SAM_PROTO_SignData [20:06:33]wFMCommunicate request_size=4 [20:06:33]MH_SAM_APDU [20:06:33]CAPDU: 80 0D 01 02 [20:06:33]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [20:06:33]Write i2c OK [20:06:33]MH_I2C_Read... [20:06:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:33]Read from MH i2c: E2 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 03 00 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [20:06:33]RAPDU: 90 00 [20:06:33]wFMCommunicate OK [20:06:33]wFMCommunicate request_size=255 [20:06:33]MH_SAM_APDU [20:06:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 4E 01 00 00 F4 03 04 00 C8 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 46 02 00 35 04 06 00 4E [20:06:33]Write to MH i2c: E2 02 01 18 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 4E 01 00 00 F4 03 04 00 C8 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 46 02 00 35 04 06 00 4E 00 00 AC [20:06:33]Write i2c OK [20:06:33]MH_I2C_Read... [20:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:33]Read from MH i2c: E2 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 03 00 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [20:06:33]RAPDU: 90 00 [20:06:33]wFMCommunicate OK [20:06:33]wFMCommunicate request_size=10 [20:06:33]MH_SAM_APDU [20:06:33]CAPDU: 80 0D 02 02 05 DE D2 B2 BB 5B [20:06:33]Write to MH i2c: E2 0D 00 19 03 80 0D 02 02 05 00 DE D2 B2 BB 5B 00 00 18 [20:06:33]Write i2c OK [20:06:33]MH_I2C_Read... [20:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:33]Read from MH i2c: E2 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 03 00 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [20:06:33]RAPDU: 90 00 [20:06:33]wFMCommunicate OK [20:06:33]wFMCommunicate request_size=4 [20:06:33]MH_SAM_APDU [20:06:33]CAPDU: 80 0D 03 02 [20:06:33]Write to MH i2c: E2 08 00 1A 03 80 0D 03 02 00 00 00 00 98 [20:06:33]Write i2c OK [20:06:33]MH_I2C_Read... [20:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:33]Read from MH i2c: E2 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 0B 00 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 0B 00 1A 03 00 D8 63 97 1B 60 2C 77 CB 90 00 54 [20:06:33]RAPDU: D8 63 97 1B 60 2C 77 CB 90 00 [20:06:33]wFMCommunicate OK [20:06:33]SAM_PROTO_SignData done [20:06:33]FM_MakeSignedData done [20:06:33]CreateOFDProtocolMessage [20:06:33]wFMCommunicate request_size=4 [20:06:33]MH_SAM_APDU [20:06:33]CAPDU: 80 11 00 00 [20:06:33]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [20:06:33]Write i2c OK [20:06:33]MH_I2C_Read... [20:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:33]Read from MH i2c: E2 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 17 00 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EB [20:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:06:33]wFMCommunicate OK [20:06:33]CreateOFDProtocolMessage done [20:06:33]OFDSenderStorePacket 148995 [20:06:33]StoreOFDPacket docnum=148995 [20:06:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 41 98 07 01 06 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 4E 01 00 00 F4 03 04 00 C8 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 46 02 00 35 04 06 00 4E DE D2 B2 BB 5B D8 63 97 1B 60 2C 77 CB [20:06:33]CheckFolder [20:06:33]dirname=/storage/ofd_packets [20:06:33]CheckFolder done [20:06:33]ProducePacketName [20:06:33]name=ofd_packets/00148995 [20:06:33]NVStorageSaveData ofd_packets/00148995 [20:06:33]File name is /storage/ofd_packets/00148995 [20:06:33]Write 301 bytes [20:06:33]NVStorageSaveData done [20:06:33]OFDSenderStorePacket done [20:06:33]KKMCreateOFDPacket done [20:06:33]NVStorageSaveData kkm_last_timestamp [20:06:33]File name is /storage/kkm_last_timestamp [20:06:33]Write 4 bytes [20:06:33]NVStorageSaveData done [20:06:33]ExternCall_PrintAddStr [20:06:33]wPrintStart [20:06:33]Write to MH i2c: 01 00 00 1C 03 1F [20:06:33]Write i2c OK [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: 01 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: 01 07 00 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: 01 07 00 1C 03 00 00 00 00 00 FF 0F 34 [20:06:33]RasterBufferAndPrint [20:06:33]line Счет N : (1)979930 [20:06:33]line ИНН: 02508201610067 [20:06:33]line Контрольно-Кассовый Чек [20:06:33]line ПРОДАЖА [20:06:33]line ТРК (МРК, ГНК) : 41 [20:06:33]line Товар: 2710124130 [20:06:33]line Аи-92-К-5 [20:06:33]line 22.770 * 65.90 [20:06:33]line = 1500.54 [20:06:33]line НДС 12% НСП 1% [20:06:33]line > о реализуемом товаре [20:06:33]line ОКРУГЛЕНИЕ: -0.54 [20:06:33]line ИТОГО: 1500.00 [20:06:33]line Внесено: 1500.00 [20:06:33]line СДАЧА: 0.00 [20:06:33]line НСП 1% : 13.28 [20:06:33]line НДС 12% : 159.35 [20:06:33]line Наличными: 1500.00 [20:06:33]line Безнал.: 0.00 [20:06:33]line Место: АЗС № 68 "Партнер Нефть" [20:06:33]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:06:33]line СНО: Общий режим [20:06:33]line Чек 334 04.06.2024 20:06 [20:06:33]line Смена: 368 ФФД: 1.0 [20:06:33]line ЗНМ: 0300000035 [20:06:33]line РНМ: 0000000000092720 [20:06:33]line Версия ККМ: 001 [20:06:33]line [20:06:33]line Дисконтная программа [20:06:33]line АИ-92 [20:06:33]line номер 68 [20:06:33]line сэкономлено 22.77 сом [20:06:33]line ФМ: 0000000000875057 [20:06:33]line ФД: 148995 [20:06:33]line ФПД: 86718924634971 [20:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T200632&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148995&fm=86718924634971&tin=02508201610067®Number=0000000000092720&sum=150000 [20:06:34]OFD Sender: Processing packet 148995 [packets to send 100, broken 99] [20:06:34]ProducePacketName [20:06:34]name=ofd_packets/00148995 [20:06:34]OFD Sender: To server: pG, [20:06:34]CommunicateWithHost lk.salyk.kg:30040 [20:06:34]ConnectInit lk.salyk.kg [20:06:34]written 0, free lines is 4095 [20:06:34]Connected sock=10 [20:06:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 41 98 07 01 06 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 4E 01 00 00 F4 03 04 00 C8 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 46 02 00 35 04 06 00 4E DE D2 B2 BB 5B D8 63 97 1B 60 2C 77 CB [20:06:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CF 80 47 00 41 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 38 37 35 30 35 37 10 04 04 00 03 46 02 00 F4 03 04 00 EB 1A 5F 66 B6 04 01 00 00 36 B3 E6 BB 06 20 F4 A0 [20:06:34]CommunicateWithHost err = 0 [20:06:34]CheckOFDResponse [20:06:34]1017 (14) - 77093643461234 [20:06:34]1041 (16) - 0000000000875057 [20:06:34]1040 (4) - 148995 [20:06:34]1012 (4) - 04.06.2024 13:47 [20:06:34]1206 (1) - 0 [20:06:34]OFD Sender: Remove packet 148995 [20:06:34]ProducePacketName [20:06:34]name=ofd_packets/00148995 [20:06:34]NVStorageDeleteData [20:06:34]Write to MH i2c: 01 00 00 4C 03 4F [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: 01 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: 01 07 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 2B 0C 8D [20:06:34]RasterBufferAndPrint [20:06:34]line [20:06:34]line [20:06:34]line [20:06:34]line [20:06:34]line [20:06:34]written 0, free lines is 3121 [20:06:34]MH_Cut [20:06:34]Write to MH i2c: D1 01 00 53 03 01 28 [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: D1 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: D1 01 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: D1 01 00 53 03 00 27 [20:06:34]Write to MH i2c: 01 00 00 54 03 57 [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:35]OFD Sender: No OFD packet to send [20:06:35]*** Cut start [20:06:35]*** Partial cut [20:06:35]*** CUTSNS_PIN = 1 [20:06:36]*** CUTSNS_PIN = 0 [20:06:36]*** Brake cut motor [20:06:36]Read from MH i2c: 01 [20:06:36]MH_I2C_Read... [20:06:36]*** Stop cut motor [20:06:36]*** Cut end [20:06:36]Read from MH i2c: 01 07 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 FF 0F 6C [20:06:36]process_action close_receipt done [20:06:36]requested_data is exist [20:06:36]produce_requested_data [20:06:36]requested_item fm.sn is exist - process it [20:06:36]wFMCommunicate request_size=4 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 11 00 00 [20:06:36]Write to MH i2c: E2 08 00 55 03 80 11 00 00 00 00 00 00 D2 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 17 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 17 00 55 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 25 [20:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:06:36]wFMCommunicate OK [20:06:36]requested_item fd.num is exist - process it [20:06:36]SAM_PROTO_GetFieldsCounters [20:06:36]wFMCommunicate request_size=4 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 13 00 00 [20:06:36]Write to MH i2c: E2 08 00 56 03 80 13 00 00 00 00 00 00 D5 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 62 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 62 00 56 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 03 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [20:06:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 03 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:36]wFMCommunicate OK [20:06:36]SAM_PROTO_GetFieldsCounters done [20:06:36]requested_item shift.num is exist - process it [20:06:36]requested_item shift.opened is exist - process it [20:06:36]req_shift_opened [20:06:36]FM_GetShiftState [20:06:36]SAM_PROTO_GetShiftState [20:06:36]wFMCommunicate request_size=4 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 13 01 00 [20:06:36]Write to MH i2c: E2 08 00 57 03 80 13 01 00 00 00 00 00 D7 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 0E 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 0E 00 57 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9A [20:06:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:06:36]wFMCommunicate OK [20:06:36]SAM_PROTO_GetShiftState done [20:06:36]FM_GetShiftState done [20:06:36]req_shift_opened done [20:06:36]requested_item shift.open_date is exist - process it [20:06:36]req_shift_open_date [20:06:36]req_shift_open_date done [20:06:36]produce_requested_data done [20:06:36]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148995,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:06:36]process_action_free close_receipt [20:06:36]json_value_free [20:06:36]json_value_free done [20:06:36]process_json_proto returns [20:06:36]Send response to host [20:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148995,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:06:36]free response buf [20:06:36]execute_script done [20:06:36]execute_script returns [20:06:36]free content buf [20:06:36]Sock 7.Close socket [20:06:36]Sock 7.Thread stoped [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:06:57]accept exits with 9 [20:06:57]New connection [20:06:57]New thread 3067075940 created [20:06:57]Thread 3067219300 joined [20:06:57]Waiting for new connection... [20:06:57] Sock 9.Parse request [20:06:57]Sock 9.Check first char [20:06:57]Sock 9.First char is OK [20:06:57]request: POST /json_proto HTTP/1.0 [20:06:57]Method: POST [20:06:57]URL: /json_proto [20:06:57]Method is POST - this is cgi request [20:06:57]url: /json_proto [20:06:57]query_string will be loaded in cgi processing [20:06:57]execute_cgi json_proto POST (null) [20:06:57]execute_cgi path=json_proto method=POST [20:06:57]POST find Content-Length [20:06:57]Host: 172.17.38.4:8080 [20:06:57]Content-Length: 682 [20:06:57]Content-Type: application/json [20:06:57] [20:06:57]POST finish read [20:06:57]Found Content-Length = 682 [20:06:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:57]execute_script... [20:06: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)979931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:57]POST & json_proto [20:06:57]process_json_proto [20:06:57]json parsed OK: [20:06:57]protocol is kg_v1.0 [20:06:57]action value=close_receipt [20:06:57]process_action close_receipt [20:06:57]cmd_close_receipt [20:06:57]MH_GetDate [20:06:57]Write to MH i2c: F0 00 00 58 03 4A [20:06:57]Write i2c OK [20:06:57]MH_I2C_Read... [20:06:57]Read from MH i2c: F0 [20:06:57]MH_I2C_Read... [20:06:57]Read from MH i2c: F0 09 00 [20:06:57]MH_I2C_Read... [20:06:57]Read from MH i2c: F0 09 00 58 03 00 E1 73 5F 66 CC 51 87 64 74 [20:06:57]GetLastDocTimeStamp 1717531592 [20:06:57]current date 1717531617 [20:06:57]FM_GetShiftState [20:06:57]SAM_PROTO_GetShiftState [20:06:57]wFMCommunicate request_size=4 [20:06:57]MH_SAM_APDU [20:06:57]CAPDU: 80 13 01 00 [20:06:57]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [20:06:57]Write i2c OK [20:06:57]MH_I2C_Read... [20:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:57]Read from MH i2c: E2 [20:06:57]MH_I2C_Read... [20:06:57]Read from MH i2c: E2 0E 00 [20:06:57]MH_I2C_Read... [20:06:57]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9C [20:06:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:06:57]wFMCommunicate OK [20:06:57]SAM_PROTO_GetShiftState done [20:06:57]FM_GetShiftState done [20:06:57]opened in 1717460629 [20:06:57]opened+sec_in_day 1717547029 [20:06:57]quantity*price = 100015 [20:06:57]sum+1 = 100017 [20:06:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 335 04.06.2024 20:06 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148996 ФПД: 137259470782408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T200658&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148996&fm=137259470782408&tin=02508201610067®Number=0000000000092720&sum=100000 [20:06:58]StoreToDocumentArchive [20:06:58]shift 368 fd 148996 [20:06:58]save to /storage/0368/doc_00148996 [20:06:58]save last doc name /storage/0368/doc_00148996 to /storage/kkm_last_doc_name [20:06:58]save OK [20:06:58]Clear old archive folders... [20:06:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:58]tlvbuf is 0096CEA0 [20:06:58]SAM_PROTO_ClearQueue [20:06:58]wFMCommunicate request_size=4 [20:06:58]MH_SAM_APDU [20:06:58]CAPDU: 80 09 00 00 [20:06:58]Write to MH i2c: E2 08 00 66 03 80 09 00 00 00 00 00 00 DB [20:06:58]Write i2c OK [20:06:58]MH_I2C_Read... [20:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:58]Read from MH i2c: E2 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 03 00 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [20:06:58]RAPDU: 90 00 [20:06:58]wFMCommunicate OK [20:06:58]SAM_PROTO_ClearQueue done [20:06:58]KKMCreateOFDPacket [20:06:58]OFDProtocolAddRootSTLVToBuf [20:06:58]FM_MakeSignedData [20:06:58]FM_MakeSignedData [20:06:58]SAM_PROTO_SignData [20:06:58]wFMCommunicate request_size=4 [20:06:58]MH_SAM_APDU [20:06:58]CAPDU: 80 0D 01 02 [20:06:58]Write to MH i2c: E2 08 00 67 03 80 0D 01 02 00 00 00 00 E3 [20:06:58]Write i2c OK [20:06:58]MH_I2C_Read... [20:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:58]Read from MH i2c: E2 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 03 00 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [20:06:58]RAPDU: 90 00 [20:06:58]wFMCommunicate OK [20:06:58]wFMCommunicate request_size=255 [20:06:58]MH_SAM_APDU [20:06:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 E2 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 46 02 00 35 04 06 00 7C [20:06:58]Write to MH i2c: E2 02 01 68 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4F 01 00 00 F4 03 04 00 E2 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 46 02 00 35 04 06 00 7C 00 00 0A [20:06:58]Write i2c OK [20:06:58]MH_I2C_Read... [20:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:59]Read from MH i2c: E2 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [20:06:59]RAPDU: 90 00 [20:06:59]wFMCommunicate OK [20:06:59]wFMCommunicate request_size=10 [20:06:59]MH_SAM_APDU [20:06:59]CAPDU: 80 0D 02 02 05 D6 35 FF 7F C8 [20:06:59]Write to MH i2c: E2 0D 00 69 03 80 0D 02 02 05 00 D6 35 FF 7F C8 00 00 41 [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:59]Read from MH i2c: E2 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [20:06:59]RAPDU: 90 00 [20:06:59]wFMCommunicate OK [20:06:59]wFMCommunicate request_size=4 [20:06:59]MH_SAM_APDU [20:06:59]CAPDU: 80 0D 03 02 [20:06:59]Write to MH i2c: E2 08 00 6A 03 80 0D 03 02 00 00 00 00 E8 [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:59]Read from MH i2c: E2 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 0B 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 0B 00 6A 03 00 AA 53 8B 9C 36 9C 68 81 90 00 C8 [20:06:59]RAPDU: AA 53 8B 9C 36 9C 68 81 90 00 [20:06:59]wFMCommunicate OK [20:06:59]SAM_PROTO_SignData done [20:06:59]FM_MakeSignedData done [20:06:59]CreateOFDProtocolMessage [20:06:59]wFMCommunicate request_size=4 [20:06:59]MH_SAM_APDU [20:06:59]CAPDU: 80 11 00 00 [20:06:59]Write to MH i2c: E2 08 00 6B 03 80 11 00 00 00 00 00 00 E8 [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:59]Read from MH i2c: E2 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 17 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 17 00 6B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3B [20:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:06:59]wFMCommunicate OK [20:06:59]CreateOFDProtocolMessage done [20:06:59]OFDSenderStorePacket 148996 [20:06:59]StoreOFDPacket docnum=148996 [20:06:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 54 59 07 01 05 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 E2 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 46 02 00 35 04 06 00 7C D6 35 FF 7F C8 AA 53 8B 9C 36 9C 68 81 [20:06:59]CheckFolder [20:06:59]dirname=/storage/ofd_packets [20:06:59]CheckFolder done [20:06:59]ProducePacketName [20:06:59]name=ofd_packets/00148996 [20:06:59]NVStorageSaveData ofd_packets/00148996 [20:06:59]File name is /storage/ofd_packets/00148996 [20:06:59]Write 301 bytes [20:06:59]NVStorageSaveData done [20:06:59]OFDSenderStorePacket done [20:06:59]KKMCreateOFDPacket done [20:06:59]NVStorageSaveData kkm_last_timestamp [20:06:59]File name is /storage/kkm_last_timestamp [20:06:59]Write 4 bytes [20:06:59]NVStorageSaveData done [20:06:59]OFD Sender: Processing packet 148996 [packets to send 100, broken 99] [20:06:59]ProducePacketName [20:06:59]name=ofd_packets/00148996 [20:06:59]OFD Sender: To server: pG, [20:06:59]CommunicateWithHost lk.salyk.kg:30040 [20:06:59]ConnectInit lk.salyk.kg [20:06:59]ExternCall_PrintAddStr [20:06:59]wPrintStart [20:06:59]Write to MH i2c: 01 00 00 6C 03 6F [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 07 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FF 0F 84 [20:06:59]RasterBufferAndPrint [20:06:59]line Счет N : (1)979931 [20:06:59]line ИНН: 02508201610067 [20:06:59]line Контрольно-Кассовый Чек [20:06:59]line ПРОДАЖА [20:06:59]line ТРК (МРК, ГНК) : 31 [20:06:59]line Товар: 2710124130 [20:06:59]line Аи-92-К-5 [20:06:59]line 14.950 * 66.90 [20:06:59]line = 1000.16 [20:06:59]line НДС 12% НСП 1% [20:06:59]line > о реализуемом товаре [20:06:59]line ОКРУГЛЕНИЕ: -0.16 [20:06:59]line ИТОГО: 1000.00 [20:06:59]line Внесено: 1000.00 [20:06:59]line СДАЧА: 0.00 [20:06:59]line НСП 1% : 8.85 [20:06:59]line НДС 12% : 106.21 [20:06:59]line Наличными: 1000.00 [20:06:59]line Безнал.: 0.00 [20:06:59]line Место: АЗС № 68 "Партнер Нефть" [20:06:59]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:06:59]line СНО: Общий режим [20:06:59]line Чек 335 04.06.2024 20:06 [20:06:59]line Смена: 368 ФФД: 1.0 [20:06:59]line ЗНМ: 0300000035 [20:06:59]line РНМ: 0000000000092720 [20:06:59]line Версия ККМ: 001 [20:06:59]line ФМ: 0000000000875057 [20:06:59]line ФД: 148996 [20:06:59]line ФПД: 137259470782408 [20:06:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T200658&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148996&fm=137259470782408&tin=02508201610067®Number=0000000000092720&sum=100000 [20:06:59]Connected sock=11 [20:06:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 54 59 07 01 05 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 E2 73 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 46 02 00 35 04 06 00 7C D6 35 FF 7F C8 AA 53 8B 9C 36 9C 68 81 [20:06:59]written 0, free lines is 4095 [20:06:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F8 4B 47 00 24 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 38 37 35 30 35 37 10 04 04 00 04 46 02 00 F4 03 04 00 04 1B 5F 66 B6 04 01 00 00 E9 3D 6B FE 7F E7 87 30 [20:06:59]CommunicateWithHost err = 0 [20:06:59]CheckOFDResponse [20:06:59]1017 (14) - 77093643461234 [20:06:59]1041 (16) - 0000000000875057 [20:06:59]1040 (4) - 148996 [20:06:59]1012 (4) - 04.06.2024 13:47 [20:06:59]1206 (1) - 0 [20:06:59]OFD Sender: Remove packet 148996 [20:06:59]ProducePacketName [20:06:59]name=ofd_packets/00148996 [20:06:59]NVStorageDeleteData [20:07:00]Write to MH i2c: 01 00 00 97 03 9A [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 88 0C 35 [20:07:00]RasterBufferAndPrint [20:07:00]line [20:07:00]line [20:07:00]line [20:07:00]line [20:07:00]line [20:07:00]written 0, free lines is 3212 [20:07:00]MH_Cut [20:07:00]Write to MH i2c: D1 01 00 9E 03 01 73 [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: D1 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: D1 01 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: D1 01 00 9E 03 00 72 [20:07:00]Write to MH i2c: 01 00 00 9F 03 A2 [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]OFD Sender: No OFD packet to send [20:07:01]*** Cut start [20:07:01]*** Partial cut [20:07:01]*** CUTSNS_PIN = 1 [20:07:01]*** CUTSNS_PIN = 0 [20:07:01]*** Brake cut motor [20:07:01]Read from MH i2c: 01 [20:07:01]MH_I2C_Read... [20:07:01]*** Stop cut motor [20:07:01]*** Cut end [20:07:01]Read from MH i2c: 01 07 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 FF 0F B7 [20:07:01]process_action close_receipt done [20:07:01]requested_data is exist [20:07:01]produce_requested_data [20:07:01]requested_item fm.sn is exist - process it [20:07:01]wFMCommunicate request_size=4 [20:07:01]MH_SAM_APDU [20:07:01]CAPDU: 80 11 00 00 [20:07:01]Write to MH i2c: E2 08 00 A0 03 80 11 00 00 00 00 00 00 1D [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:01]Read from MH i2c: E2 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: E2 17 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: E2 17 00 A0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 70 [20:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:07:01]wFMCommunicate OK [20:07:01]requested_item fd.num is exist - process it [20:07:01]SAM_PROTO_GetFieldsCounters [20:07:01]wFMCommunicate request_size=4 [20:07:01]MH_SAM_APDU [20:07:01]CAPDU: 80 13 00 00 [20:07:01]Write to MH i2c: E2 08 00 A1 03 80 13 00 00 00 00 00 00 20 [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 62 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 62 00 A1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 04 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [20:07:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 04 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:02]wFMCommunicate OK [20:07:02]SAM_PROTO_GetFieldsCounters done [20:07:02]requested_item shift.num is exist - process it [20:07:02]requested_item shift.opened is exist - process it [20:07:02]req_shift_opened [20:07:02]FM_GetShiftState [20:07:02]SAM_PROTO_GetShiftState [20:07:02]wFMCommunicate request_size=4 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 13 01 00 [20:07:02]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 0E 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E5 [20:07:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:07:02]wFMCommunicate OK [20:07:02]SAM_PROTO_GetShiftState done [20:07:02]FM_GetShiftState done [20:07:02]req_shift_opened done [20:07:02]requested_item shift.open_date is exist - process it [20:07:02]req_shift_open_date [20:07:02]req_shift_open_date done [20:07:02]produce_requested_data done [20:07:02]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148996,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:07:02]process_action_free close_receipt [20:07:02]json_value_free [20:07:02]json_value_free done [20:07:02]process_json_proto returns [20:07:02]Send response to host [20:07:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148996,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:07:02]free response buf [20:07:02]execute_script done [20:07:02]execute_script returns [20:07:02]free content buf [20:07:02]Sock 9.Close socket [20:07:02]Sock 9.Thread stoped [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:08:58]accept exits with 7 [20:08:58]New connection [20:08:58]New thread 3067219300 created [20:08:58]Thread 3067075940 joined [20:08:58]Waiting for new connection... [20:08:58] Sock 7.Parse request [20:08:58]Sock 7.Check first char [20:08:58]Sock 7.First char is OK [20:08:58]request: POST /json_proto HTTP/1.0 [20:08:58]Method: POST [20:08:58]URL: /json_proto [20:08:58]Method is POST - this is cgi request [20:08:58]url: /json_proto [20:08:58]query_string will be loaded in cgi processing [20:08:58]execute_cgi json_proto POST (null) [20:08:58]execute_cgi path=json_proto method=POST [20:08:58]POST find Content-Length [20:08:58]Host: 172.17.38.4:8080 [20:08:58]Content-Length: 983 [20:08:58]Content-Type: application/json [20:08:58] [20:08:58]POST finish read [20:08:58]Found Content-Length = 983 [20:08:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 20.720, "sum" : 1365.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.72 \u0441\u043E\u043C", "deposit" : 1365.00, "total" : 1365.00, "payments": [ { "type": 0, "sum" : 1365.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:58]execute_script... [20:08: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)979932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 20.720, "sum" : 1365.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.72 \u0441\u043E\u043C", "deposit" : 1365.00, "total" : 1365.00, "payments": [ { "type": 0, "sum" : 1365.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:58]POST & json_proto [20:08:58]process_json_proto [20:08:58]json parsed OK: [20:08:58]protocol is kg_v1.0 [20:08:58]action value=close_receipt [20:08:58]process_action close_receipt [20:08:58]cmd_close_receipt [20:08:58]MH_GetDate [20:08:58]Write to MH i2c: F0 00 00 A3 03 95 [20:08:58]Write i2c OK [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: F0 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: F0 09 00 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: F0 09 00 A3 03 00 5A 74 5F 66 CC 51 87 64 39 [20:08:58]GetLastDocTimeStamp 1717531618 [20:08:58]current date 1717531738 [20:08:58]FM_GetShiftState [20:08:58]SAM_PROTO_GetShiftState [20:08:58]wFMCommunicate request_size=4 [20:08:58]MH_SAM_APDU [20:08:58]CAPDU: 80 13 01 00 [20:08:58]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [20:08:58]Write i2c OK [20:08:58]MH_I2C_Read... [20:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:58]Read from MH i2c: E2 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: E2 0E 00 [20:08:58]MH_I2C_Read... [20:08:58]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E7 [20:08:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:08:58]wFMCommunicate OK [20:08:58]SAM_PROTO_GetShiftState done [20:08:58]FM_GetShiftState done [20:08:58]opened in 1717460629 [20:08:58]opened+sec_in_day 1717547029 [20:08:58]quantity*price = 136544 [20:08:58]sum+1 = 136546 [20:08:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1365.00 Внесено: 1365.00 СДАЧА: 0.00 НСП 1% : 12.08 НДС 12% : 145.00 Наличными: 1365.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 336 04.06.2024 20:08 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа АИ-92 номер 68 сэкономлено 20.72 сом ФМ: 0000000000875057 ФД: 148997 ФПД: 85258673552084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T200858&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148997&fm=85258673552084&tin=02508201610067®Number=0000000000092720&sum=136500 [20:08:59]StoreToDocumentArchive [20:08:59]shift 368 fd 148997 [20:08:59]save to /storage/0368/doc_00148997 [20:08:59]save last doc name /storage/0368/doc_00148997 to /storage/kkm_last_doc_name [20:08:59]save OK [20:08:59]Clear old archive folders... [20:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:59]tlvbuf is B6F1B9C0 [20:08:59]SAM_PROTO_ClearQueue [20:08:59]wFMCommunicate request_size=4 [20:08:59]MH_SAM_APDU [20:08:59]CAPDU: 80 09 00 00 [20:08:59]Write to MH i2c: E2 08 00 B1 03 80 09 00 00 00 00 00 00 26 [20:08:59]Write i2c OK [20:08:59]MH_I2C_Read... [20:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:59]Read from MH i2c: E2 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: E2 03 00 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [20:08:59]RAPDU: 90 00 [20:08:59]wFMCommunicate OK [20:08:59]SAM_PROTO_ClearQueue done [20:08:59]KKMCreateOFDPacket [20:08:59]OFDProtocolAddRootSTLVToBuf [20:08:59]FM_MakeSignedData [20:08:59]FM_MakeSignedData [20:08:59]SAM_PROTO_SignData [20:08:59]wFMCommunicate request_size=4 [20:08:59]MH_SAM_APDU [20:08:59]CAPDU: 80 0D 01 02 [20:08:59]Write to MH i2c: E2 08 00 B2 03 80 0D 01 02 00 00 00 00 2E [20:08:59]Write i2c OK [20:08:59]MH_I2C_Read... [20:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:59]Read from MH i2c: E2 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: E2 03 00 [20:08:59]MH_I2C_Read... [20:08:59]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [20:08:59]RAPDU: 90 00 [20:08:59]wFMCommunicate OK [20:08:59]wFMCommunicate request_size=255 [20:08:59]MH_SAM_APDU [20:08:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 61 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 15 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 38 00 00 00 00 07 04 06 00 34 15 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 5A 74 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 46 02 00 35 04 06 00 4D [20:08:59]Write to MH i2c: E2 02 01 B3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 61 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 15 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 38 00 00 00 00 07 04 06 00 34 15 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 5A 74 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 46 02 00 35 04 06 00 4D 00 00 DF [20:08:59]Write i2c OK [20:08:59]MH_I2C_Read... [20:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:00]Read from MH i2c: E2 [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: E2 03 00 [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [20:09:00]RAPDU: 90 00 [20:09:00]wFMCommunicate OK [20:09:00]wFMCommunicate request_size=10 [20:09:00]MH_SAM_APDU [20:09:00]CAPDU: 80 0D 02 02 05 8A D4 F3 7A D4 [20:09:00]Write to MH i2c: E2 0D 00 B4 03 80 0D 02 02 05 00 8A D4 F3 7A D4 00 00 DA [20:09:00]Write i2c OK [20:09:00]MH_I2C_Read... [20:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:00]Read from MH i2c: E2 [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: E2 03 00 [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [20:09:00]RAPDU: 90 00 [20:09:00]wFMCommunicate OK [20:09:00]wFMCommunicate request_size=4 [20:09:00]MH_SAM_APDU [20:09:00]CAPDU: 80 0D 03 02 [20:09:00]Write to MH i2c: E2 08 00 B5 03 80 0D 03 02 00 00 00 00 33 [20:09:00]Write i2c OK [20:09:00]MH_I2C_Read... [20:09:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:00]Read from MH i2c: E2 [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: E2 0B 00 [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: E2 0B 00 B5 03 00 A8 D1 2B 06 CF 9B FA CC 90 00 0E [20:09:00]RAPDU: A8 D1 2B 06 CF 9B FA CC 90 00 [20:09:00]wFMCommunicate OK [20:09:00]SAM_PROTO_SignData done [20:09:00]FM_MakeSignedData done [20:09:00]CreateOFDProtocolMessage [20:09:00]wFMCommunicate request_size=4 [20:09:00]MH_SAM_APDU [20:09:00]CAPDU: 80 11 00 00 [20:09:00]Write to MH i2c: E2 08 00 B6 03 80 11 00 00 00 00 00 00 33 [20:09:00]Write i2c OK [20:09:00]MH_I2C_Read... [20:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:00]Read from MH i2c: E2 [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: E2 17 00 [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: E2 17 00 B6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 86 [20:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:09:00]wFMCommunicate OK [20:09:00]CreateOFDProtocolMessage done [20:09:00]OFDSenderStorePacket 148997 [20:09:00]StoreOFDPacket docnum=148997 [20:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D7 8A 07 01 83 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 61 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 15 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 38 00 00 00 00 07 04 06 00 34 15 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 5A 74 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 46 02 00 35 04 06 00 4D 8A D4 F3 7A D4 A8 D1 2B 06 CF 9B FA CC [20:09:00]CheckFolder [20:09:00]dirname=/storage/ofd_packets [20:09:00]CheckFolder done [20:09:00]ProducePacketName [20:09:00]name=ofd_packets/00148997 [20:09:00]NVStorageSaveData ofd_packets/00148997 [20:09:00]File name is /storage/ofd_packets/00148997 [20:09:00]Write 301 bytes [20:09:00]NVStorageSaveData done [20:09:00]OFDSenderStorePacket done [20:09:00]KKMCreateOFDPacket done [20:09:00]NVStorageSaveData kkm_last_timestamp [20:09:00]File name is /storage/kkm_last_timestamp [20:09:00]Write 4 bytes [20:09:00]NVStorageSaveData done [20:09:00]ExternCall_PrintAddStr [20:09:00]wPrintStart [20:09:00]Write to MH i2c: 01 00 00 B7 03 BA [20:09:00]Write i2c OK [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: 01 [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: 01 07 00 [20:09:00]MH_I2C_Read... [20:09:00]Read from MH i2c: 01 07 00 B7 03 00 00 00 00 00 FF 0F CF [20:09:00]RasterBufferAndPrint [20:09:00]line Счет N : (1)979932 [20:09:00]line ИНН: 02508201610067 [20:09:00]line Контрольно-Кассовый Чек [20:09:00]line ПРОДАЖА [20:09:00]line ТРК (МРК, ГНК) : 22 [20:09:00]line Товар: 2710124130 [20:09:00]line Аи-92-К-5 [20:09:00]line 20.720 * 65.90 [20:09:00]line = 1365.45 [20:09:00]line НДС 12% НСП 1% [20:09:00]line > о реализуемом товаре [20:09:00]line ОКРУГЛЕНИЕ: -0.45 [20:09:00]line ИТОГО: 1365.00 [20:09:00]line Внесено: 1365.00 [20:09:00]line СДАЧА: 0.00 [20:09:00]line НСП 1% : 12.08 [20:09:00]line НДС 12% : 145.00 [20:09:00]line Наличными: 1365.00 [20:09:00]line Безнал.: 0.00 [20:09:00]line Место: АЗС № 68 "Партнер Нефть" [20:09:00]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:09:00]line СНО: Общий режим [20:09:00]line Чек 336 04.06.2024 20:08 [20:09:00]line Смена: 368 ФФД: 1.0 [20:09:00]line ЗНМ: 0300000035 [20:09:00]line РНМ: 0000000000092720 [20:09:00]line Версия ККМ: 001 [20:09:00]line [20:09:00]line Дисконтная программа [20:09:00]line АИ-92 [20:09:00]line номер 68 [20:09:00]line сэкономлено 20.72 сом [20:09:00]line ФМ: 0000000000875057 [20:09:00]line ФД: 148997 [20:09:00]line ФПД: 85258673552084 [20:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T200858&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148997&fm=85258673552084&tin=02508201610067®Number=0000000000092720&sum=136500 [20:09:00]OFD Sender: Processing packet 148997 [packets to send 100, broken 99] [20:09:00]ProducePacketName [20:09:00]name=ofd_packets/00148997 [20:09:00]OFD Sender: To server: pG, [20:09:00]CommunicateWithHost lk.salyk.kg:30040 [20:09:00]ConnectInit lk.salyk.kg [20:09:00]written 0, free lines is 4095 [20:09:00]Connected sock=10 [20:09:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D7 8A 07 01 83 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 61 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 15 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 38 00 00 00 00 07 04 06 00 34 15 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 5A 74 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 46 02 00 35 04 06 00 4D 8A D4 F3 7A D4 A8 D1 2B 06 CF 9B FA CC [20:09:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1B 43 47 00 25 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 38 37 35 30 35 37 10 04 04 00 05 46 02 00 F4 03 04 00 7E 1B 5F 66 B6 04 01 00 00 15 E9 98 15 C0 45 7A 9F [20:09:00]CommunicateWithHost err = 0 [20:09:00]CheckOFDResponse [20:09:00]1017 (14) - 77093643461234 [20:09:00]1041 (16) - 0000000000875057 [20:09:00]1040 (4) - 148997 [20:09:00]1012 (4) - 04.06.2024 13:49 [20:09:00]1206 (1) - 0 [20:09:00]OFD Sender: Remove packet 148997 [20:09:00]ProducePacketName [20:09:00]name=ofd_packets/00148997 [20:09:00]NVStorageDeleteData [20:09:01]Write to MH i2c: 01 00 00 E7 03 EA [20:09:01]Write i2c OK [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: 01 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: 01 07 00 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 2B 0C 28 [20:09:01]RasterBufferAndPrint [20:09:01]line [20:09:01]line [20:09:01]line [20:09:01]line [20:09:01]line [20:09:01]written 0, free lines is 3119 [20:09:01]MH_Cut [20:09:01]Write to MH i2c: D1 01 00 EE 03 01 C3 [20:09:01]Write i2c OK [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: D1 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: D1 01 00 [20:09:01]MH_I2C_Read... [20:09:01]Read from MH i2c: D1 01 00 EE 03 00 C2 [20:09:01]Write to MH i2c: 01 00 00 EF 03 F2 [20:09:01]Write i2c OK [20:09:01]MH_I2C_Read... [20:09:01]OFD Sender: No OFD packet to send [20:09:02]*** Cut start [20:09:02]*** Partial cut [20:09:02]*** CUTSNS_PIN = 1 [20:09:02]*** CUTSNS_PIN = 0 [20:09:02]*** Brake cut motor [20:09:03]Read from MH i2c: 01 [20:09:03]MH_I2C_Read... [20:09:03]*** Stop cut motor [20:09:03]*** Cut end [20:09:03]Read from MH i2c: 01 07 00 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 FF 0F 07 [20:09:03]process_action close_receipt done [20:09:03]requested_data is exist [20:09:03]produce_requested_data [20:09:03]requested_item fm.sn is exist - process it [20:09:03]wFMCommunicate request_size=4 [20:09:03]MH_SAM_APDU [20:09:03]CAPDU: 80 11 00 00 [20:09:03]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [20:09:03]Write i2c OK [20:09:03]MH_I2C_Read... [20:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:03]Read from MH i2c: E2 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: E2 17 00 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C0 [20:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:09:03]wFMCommunicate OK [20:09:03]requested_item fd.num is exist - process it [20:09:03]SAM_PROTO_GetFieldsCounters [20:09:03]wFMCommunicate request_size=4 [20:09:03]MH_SAM_APDU [20:09:03]CAPDU: 80 13 00 00 [20:09:03]Write to MH i2c: E2 08 00 F1 03 80 13 00 00 00 00 00 00 70 [20:09:03]Write i2c OK [20:09:03]MH_I2C_Read... [20:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:03]Read from MH i2c: E2 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: E2 62 00 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: E2 62 00 F1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 05 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [20:09:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 05 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:03]wFMCommunicate OK [20:09:03]SAM_PROTO_GetFieldsCounters done [20:09:03]requested_item shift.num is exist - process it [20:09:03]requested_item shift.opened is exist - process it [20:09:03]req_shift_opened [20:09:03]FM_GetShiftState [20:09:03]SAM_PROTO_GetShiftState [20:09:03]wFMCommunicate request_size=4 [20:09:03]MH_SAM_APDU [20:09:03]CAPDU: 80 13 01 00 [20:09:03]Write to MH i2c: E2 08 00 F2 03 80 13 01 00 00 00 00 00 72 [20:09:03]Write i2c OK [20:09:03]MH_I2C_Read... [20:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:03]Read from MH i2c: E2 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: E2 0E 00 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: E2 0E 00 F2 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 35 [20:09:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:09:03]wFMCommunicate OK [20:09:03]SAM_PROTO_GetShiftState done [20:09:03]FM_GetShiftState done [20:09:03]req_shift_opened done [20:09:03]requested_item shift.open_date is exist - process it [20:09:03]req_shift_open_date [20:09:03]req_shift_open_date done [20:09:03]produce_requested_data done [20:09:03]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148997,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:09:03]process_action_free close_receipt [20:09:03]json_value_free [20:09:03]json_value_free done [20:09:03]process_json_proto returns [20:09:03]Send response to host [20:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148997,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:09:03]free response buf [20:09:03]execute_script done [20:09:03]execute_script returns [20:09:03]free content buf [20:09:03]Sock 7.Close socket [20:09:03]Sock 7.Thread stoped [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:15]accept exits with 9 [20:10:15]New connection [20:10:15]New thread 3067075940 created [20:10:15]Thread 3067219300 joined [20:10:15]Waiting for new connection... [20:10:15] Sock 9.Parse request [20:10:15]Sock 9.Check first char [20:10:15]Sock 9.First char is OK [20:10:15]request: POST /json_proto HTTP/1.0 [20:10:15]Method: POST [20:10:15]URL: /json_proto [20:10:15]Method is POST - this is cgi request [20:10:15]url: /json_proto [20:10:15]query_string will be loaded in cgi processing [20:10:15]execute_cgi json_proto POST (null) [20:10:15]execute_cgi path=json_proto method=POST [20:10:15]POST find Content-Length [20:10:15]Host: 172.17.38.4:8080 [20:10:15]Content-Length: 677 [20:10:15]Content-Type: application/json [20:10:15] [20:10:15]POST finish read [20:10:15]Found Content-Length = 677 [20:10:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:15]execute_script... [20:10:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:15]POST & json_proto [20:10:15]process_json_proto [20:10:15]json parsed OK: [20:10:15]protocol is kg_v1.0 [20:10:15]action value=close_receipt [20:10:15]process_action close_receipt [20:10:15]cmd_close_receipt [20:10:15]MH_GetDate [20:10:15]Write to MH i2c: F0 00 00 F3 03 E5 [20:10:15]Write i2c OK [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: F0 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: F0 09 00 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: F0 09 00 F3 03 00 A8 74 5F 66 CC 51 87 64 D7 [20:10:15]GetLastDocTimeStamp 1717531738 [20:10:15]current date 1717531816 [20:10:15]FM_GetShiftState [20:10:15]SAM_PROTO_GetShiftState [20:10:15]wFMCommunicate request_size=4 [20:10:15]MH_SAM_APDU [20:10:15]CAPDU: 80 13 01 00 [20:10:15]Write to MH i2c: E2 08 00 F4 03 80 13 01 00 00 00 00 00 74 [20:10:15]Write i2c OK [20:10:15]MH_I2C_Read... [20:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:15]Read from MH i2c: E2 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: E2 0E 00 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: E2 0E 00 F4 03 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 37 [20:10:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:10:15]wFMCommunicate OK [20:10:15]SAM_PROTO_GetShiftState done [20:10:15]FM_GetShiftState done [20:10:15]opened in 1717460629 [20:10:15]opened+sec_in_day 1717547029 [20:10:15]quantity*price = 30038 [20:10:15]sum+1 = 30039 [20:10:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 337 04.06.2024 20:10 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148998 ФПД: 34744328438825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201016&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148998&fm=34744328438825&tin=02508201610067®Number=0000000000092720&sum=30000 [20:10:16]StoreToDocumentArchive [20:10:16]shift 368 fd 148998 [20:10:16]save to /storage/0368/doc_00148998 [20:10:16]save last doc name /storage/0368/doc_00148998 to /storage/kkm_last_doc_name [20:10:16]save OK [20:10:16]Clear old archive folders... [20:10:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:16]tlvbuf is 0098D9E0 [20:10:16]SAM_PROTO_ClearQueue [20:10:16]wFMCommunicate request_size=4 [20:10:16]MH_SAM_APDU [20:10:16]CAPDU: 80 09 00 00 [20:10:16]Write to MH i2c: E2 08 00 01 04 80 09 00 00 00 00 00 00 77 [20:10:16]Write i2c OK [20:10:16]MH_I2C_Read... [20:10:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:16]Read from MH i2c: E2 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: E2 03 00 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [20:10:16]RAPDU: 90 00 [20:10:16]wFMCommunicate OK [20:10:16]SAM_PROTO_ClearQueue done [20:10:16]KKMCreateOFDPacket [20:10:16]OFDProtocolAddRootSTLVToBuf [20:10:16]FM_MakeSignedData [20:10:16]FM_MakeSignedData [20:10:16]SAM_PROTO_SignData [20:10:16]wFMCommunicate request_size=4 [20:10:16]MH_SAM_APDU [20:10:16]CAPDU: 80 0D 01 02 [20:10:16]Write to MH i2c: E2 08 00 02 04 80 0D 01 02 00 00 00 00 7F [20:10:16]Write i2c OK [20:10:16]MH_I2C_Read... [20:10:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:16]Read from MH i2c: E2 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: E2 03 00 [20:10:16]MH_I2C_Read... [20:10:16]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [20:10:16]RAPDU: 90 00 [20:10:16]wFMCommunicate OK [20:10:16]wFMCommunicate request_size=255 [20:10:16]MH_SAM_APDU [20:10:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 51 01 00 00 F4 03 04 00 A8 74 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 46 02 00 35 04 06 00 1F [20:10:16]Write to MH i2c: E2 02 01 03 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 51 01 00 00 F4 03 04 00 A8 74 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 46 02 00 35 04 06 00 1F 00 00 0E [20:10:16]Write i2c OK [20:10:16]MH_I2C_Read... [20:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:17]Read from MH i2c: E2 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [20:10:17]RAPDU: 90 00 [20:10:17]wFMCommunicate OK [20:10:17]wFMCommunicate request_size=10 [20:10:17]MH_SAM_APDU [20:10:17]CAPDU: 80 0D 02 02 05 99 8B 5A C4 29 [20:10:17]Write to MH i2c: E2 0D 00 04 04 80 0D 02 02 05 00 99 8B 5A C4 29 00 00 F7 [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:17]Read from MH i2c: E2 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [20:10:17]RAPDU: 90 00 [20:10:17]wFMCommunicate OK [20:10:17]wFMCommunicate request_size=4 [20:10:17]MH_SAM_APDU [20:10:17]CAPDU: 80 0D 03 02 [20:10:17]Write to MH i2c: E2 08 00 05 04 80 0D 03 02 00 00 00 00 84 [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:17]Read from MH i2c: E2 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 0B 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 0B 00 05 04 00 FB CD 1B 5E A1 2B 01 B1 90 00 44 [20:10:17]RAPDU: FB CD 1B 5E A1 2B 01 B1 90 00 [20:10:17]wFMCommunicate OK [20:10:17]SAM_PROTO_SignData done [20:10:17]FM_MakeSignedData done [20:10:17]CreateOFDProtocolMessage [20:10:17]wFMCommunicate request_size=4 [20:10:17]MH_SAM_APDU [20:10:17]CAPDU: 80 11 00 00 [20:10:17]Write to MH i2c: E2 08 00 06 04 80 11 00 00 00 00 00 00 84 [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:17]Read from MH i2c: E2 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 17 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 17 00 06 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D7 [20:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:10:17]wFMCommunicate OK [20:10:17]CreateOFDProtocolMessage done [20:10:17]OFDSenderStorePacket 148998 [20:10:17]StoreOFDPacket docnum=148998 [20:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B1 8A 07 01 D5 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 51 01 00 00 F4 03 04 00 A8 74 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 46 02 00 35 04 06 00 1F 99 8B 5A C4 29 FB CD 1B 5E A1 2B 01 B1 [20:10:17]CheckFolder [20:10:17]dirname=/storage/ofd_packets [20:10:17]CheckFolder done [20:10:17]ProducePacketName [20:10:17]name=ofd_packets/00148998 [20:10:17]NVStorageSaveData ofd_packets/00148998 [20:10:17]File name is /storage/ofd_packets/00148998 [20:10:17]Write 301 bytes [20:10:17]NVStorageSaveData done [20:10:17]OFDSenderStorePacket done [20:10:17]KKMCreateOFDPacket done [20:10:17]NVStorageSaveData kkm_last_timestamp [20:10:17]File name is /storage/kkm_last_timestamp [20:10:17]Write 4 bytes [20:10:17]NVStorageSaveData done [20:10:17]ExternCall_PrintAddStr [20:10:17]wPrintStart [20:10:17]Write to MH i2c: 01 00 00 07 04 0B [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: 01 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: 01 07 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: 01 07 00 07 04 00 00 00 00 00 FF 0F 20 [20:10:17]RasterBufferAndPrint [20:10:17]line Счет N : (1)979933 [20:10:17]line ИНН: 02508201610067 [20:10:17]line Контрольно-Кассовый Чек [20:10:17]line ПРОДАЖА [20:10:17]line ТРК (МРК, ГНК) : 12 [20:10:17]line Товар: 2710124130 [20:10:17]line Аи-92-К-5 [20:10:17]line 4.490 * 66.90 [20:10:17]line = 300.38 [20:10:17]line НДС 12% НСП 1% [20:10:17]line > о реализуемом товаре [20:10:17]line ОКРУГЛЕНИЕ: -0.38 [20:10:17]line ИТОГО: 300.00 [20:10:17]line Внесено: 300.00 [20:10:17]line СДАЧА: 0.00 [20:10:17]line НСП 1% : 2.66 [20:10:17]line НДС 12% : 31.90 [20:10:17]line Наличными: 300.00 [20:10:17]line Безнал.: 0.00 [20:10:17]line Место: АЗС № 68 "Партнер Нефть" [20:10:17]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:10:17]line СНО: Общий режим [20:10:17]line Чек 337 04.06.2024 20:10 [20:10:17]line Смена: 368 ФФД: 1.0 [20:10:17]line ЗНМ: 0300000035 [20:10:17]line РНМ: 0000000000092720 [20:10:17]line Версия ККМ: 001 [20:10:17]line ФМ: 0000000000875057 [20:10:17]line ФД: 148998 [20:10:17]line ФПД: 34744328438825 [20:10:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201016&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148998&fm=34744328438825&tin=02508201610067®Number=0000000000092720&sum=30000 [20:10:17]OFD Sender: Processing packet 148998 [packets to send 100, broken 99] [20:10:17]ProducePacketName [20:10:17]name=ofd_packets/00148998 [20:10:17]OFD Sender: To server: pG, [20:10:17]CommunicateWithHost lk.salyk.kg:30040 [20:10:17]ConnectInit lk.salyk.kg [20:10:17]written 0, free lines is 4095 [20:10:17]Connected sock=10 [20:10:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B1 8A 07 01 D5 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 51 01 00 00 F4 03 04 00 A8 74 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 46 02 00 35 04 06 00 1F 99 8B 5A C4 29 FB CD 1B 5E A1 2B 01 B1 [20:10:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 24 3B 47 00 A0 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 46 02 00 F4 03 04 00 CB 1B 5F 66 B6 04 01 00 00 26 37 13 CF 87 71 FC AF [20:10:18]CommunicateWithHost err = 0 [20:10:18]CheckOFDResponse [20:10:18]1017 (14) - 77093643461234 [20:10:18]1041 (16) - 0000000000875057 [20:10:18]1040 (4) - 148998 [20:10:18]1012 (4) - 04.06.2024 13:51 [20:10:18]1206 (1) - 0 [20:10:18]OFD Sender: Remove packet 148998 [20:10:18]ProducePacketName [20:10:18]name=ofd_packets/00148998 [20:10:18]NVStorageDeleteData [20:10:18]Write to MH i2c: 01 00 00 32 04 36 [20:10:18]Write i2c OK [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 07 00 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 80 0C C9 [20:10:18]RasterBufferAndPrint [20:10:18]line [20:10:18]line [20:10:18]line [20:10:18]line [20:10:18]line [20:10:18]written 0, free lines is 3204 [20:10:18]MH_Cut [20:10:18]Write to MH i2c: D1 01 00 39 04 01 0F [20:10:18]Write i2c OK [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: D1 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: D1 01 00 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: D1 01 00 39 04 00 0E [20:10:18]Write to MH i2c: 01 00 00 3A 04 3E [20:10:18]Write i2c OK [20:10:18]MH_I2C_Read... [20:10:18]OFD Sender: No OFD packet to send [20:10:19]*** Cut start [20:10:19]*** Partial cut [20:10:19]*** CUTSNS_PIN = 1 [20:10:19]*** CUTSNS_PIN = 0 [20:10:19]*** Brake cut motor [20:10:19]Read from MH i2c: 01 [20:10:19]MH_I2C_Read... [20:10:19]*** Stop cut motor [20:10:19]*** Cut end [20:10:19]Read from MH i2c: 01 07 00 [20:10:19]MH_I2C_Read... [20:10:19]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 [20:10:19]process_action close_receipt done [20:10:19]requested_data is exist [20:10:19]produce_requested_data [20:10:19]requested_item fm.sn is exist - process it [20:10:19]wFMCommunicate request_size=4 [20:10:19]MH_SAM_APDU [20:10:19]CAPDU: 80 11 00 00 [20:10:19]Write to MH i2c: E2 08 00 3B 04 80 11 00 00 00 00 00 00 B9 [20:10:19]Write i2c OK [20:10:19]MH_I2C_Read... [20:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:19]Read from MH i2c: E2 [20:10:19]MH_I2C_Read... [20:10:19]Read from MH i2c: E2 17 00 [20:10:19]MH_I2C_Read... [20:10:19]Read from MH i2c: E2 17 00 3B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0C [20:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:10:19]wFMCommunicate OK [20:10:19]requested_item fd.num is exist - process it [20:10:19]SAM_PROTO_GetFieldsCounters [20:10:19]wFMCommunicate request_size=4 [20:10:19]MH_SAM_APDU [20:10:19]CAPDU: 80 13 00 00 [20:10:19]Write to MH i2c: E2 08 00 3C 04 80 13 00 00 00 00 00 00 BC [20:10:19]Write i2c OK [20:10:19]MH_I2C_Read... [20:10:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:20]Read from MH i2c: E2 [20:10:20]MH_I2C_Read... [20:10:20]Read from MH i2c: E2 62 00 [20:10:20]MH_I2C_Read... [20:10:20]Read from MH i2c: E2 62 00 3C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 06 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [20:10:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 06 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:20]wFMCommunicate OK [20:10:20]SAM_PROTO_GetFieldsCounters done [20:10:20]requested_item shift.num is exist - process it [20:10:20]requested_item shift.opened is exist - process it [20:10:20]req_shift_opened [20:10:20]FM_GetShiftState [20:10:20]SAM_PROTO_GetShiftState [20:10:20]wFMCommunicate request_size=4 [20:10:20]MH_SAM_APDU [20:10:20]CAPDU: 80 13 01 00 [20:10:20]Write to MH i2c: E2 08 00 3D 04 80 13 01 00 00 00 00 00 BE [20:10:20]Write i2c OK [20:10:20]MH_I2C_Read... [20:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:20]Read from MH i2c: E2 [20:10:20]MH_I2C_Read... [20:10:20]Read from MH i2c: E2 0E 00 [20:10:20]MH_I2C_Read... [20:10:20]Read from MH i2c: E2 0E 00 3D 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 81 [20:10:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:10:20]wFMCommunicate OK [20:10:20]SAM_PROTO_GetShiftState done [20:10:20]FM_GetShiftState done [20:10:20]req_shift_opened done [20:10:20]requested_item shift.open_date is exist - process it [20:10:20]req_shift_open_date [20:10:20]req_shift_open_date done [20:10:20]produce_requested_data done [20:10:20]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148998,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:10:20]process_action_free close_receipt [20:10:20]json_value_free [20:10:20]json_value_free done [20:10:20]process_json_proto returns [20:10:20]Send response to host [20:10:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148998,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:10:20]free response buf [20:10:20]execute_script done [20:10:20]execute_script returns [20:10:20]free content buf [20:10:20]Sock 9.Close socket [20:10:20]Sock 9.Thread stoped [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:02]accept exits with 7 [20:14:02]New connection [20:14:02]New thread 3067219300 created [20:14:02]Thread 3067075940 joined [20:14:02]Waiting for new connection... [20:14:02] Sock 7.Parse request [20:14:02]Sock 7.Check first char [20:14:02]Sock 7.First char is OK [20:14:02]request: POST /json_proto HTTP/1.0 [20:14:02]Method: POST [20:14:02]URL: /json_proto [20:14:02]Method is POST - this is cgi request [20:14:02]url: /json_proto [20:14:02]query_string will be loaded in cgi processing [20:14:02]execute_cgi json_proto POST (null) [20:14:02]execute_cgi path=json_proto method=POST [20:14:02]POST find Content-Length [20:14:02]Host: 172.17.38.4:8080 [20:14:02]Content-Length: 677 [20:14:02]Content-Type: application/json [20:14:02] [20:14:02]POST finish read [20:14:02]Found Content-Length = 677 [20:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:02]execute_script... [20:14: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)979934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:02]POST & json_proto [20:14:02]process_json_proto [20:14:02]json parsed OK: [20:14:02]protocol is kg_v1.0 [20:14:02]action value=close_receipt [20:14:02]process_action close_receipt [20:14:02]cmd_close_receipt [20:14:02]MH_GetDate [20:14:02]Write to MH i2c: F0 00 00 3E 04 31 [20:14:02]Write i2c OK [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: F0 [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: F0 09 00 [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: F0 09 00 3E 04 00 8A 75 5F 66 CC 51 87 64 06 [20:14:02]GetLastDocTimeStamp 1717531816 [20:14:02]current date 1717532042 [20:14:02]FM_GetShiftState [20:14:02]SAM_PROTO_GetShiftState [20:14:02]wFMCommunicate request_size=4 [20:14:02]MH_SAM_APDU [20:14:02]CAPDU: 80 13 01 00 [20:14:02]Write to MH i2c: E2 08 00 3F 04 80 13 01 00 00 00 00 00 C0 [20:14:02]Write i2c OK [20:14:02]MH_I2C_Read... [20:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:02]Read from MH i2c: E2 [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: E2 0E 00 [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: E2 0E 00 3F 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 83 [20:14:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:14:02]wFMCommunicate OK [20:14:02]SAM_PROTO_GetShiftState done [20:14:02]FM_GetShiftState done [20:14:02]opened in 1717460629 [20:14:02]opened+sec_in_day 1717547029 [20:14:02]quantity*price = 40006 [20:14:02]sum+1 = 40007 [20:14:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 338 04.06.2024 20:14 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148999 ФПД: 203528858719730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201402&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148999&fm=203528858719730&tin=02508201610067®Number=0000000000092720&sum=40000 [20:14:03]StoreToDocumentArchive [20:14:03]shift 368 fd 148999 [20:14:03]save to /storage/0368/doc_00148999 [20:14:03]save last doc name /storage/0368/doc_00148999 to /storage/kkm_last_doc_name [20:14:03]save OK [20:14:03]Clear old archive folders... [20:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:03]tlvbuf is 00965180 [20:14:03]SAM_PROTO_ClearQueue [20:14:03]wFMCommunicate request_size=4 [20:14:03]MH_SAM_APDU [20:14:03]CAPDU: 80 09 00 00 [20:14:03]Write to MH i2c: E2 08 00 4C 04 80 09 00 00 00 00 00 00 C2 [20:14:03]Write i2c OK [20:14:03]MH_I2C_Read... [20:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:03]Read from MH i2c: E2 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 03 00 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [20:14:03]RAPDU: 90 00 [20:14:03]wFMCommunicate OK [20:14:03]SAM_PROTO_ClearQueue done [20:14:03]KKMCreateOFDPacket [20:14:03]OFDProtocolAddRootSTLVToBuf [20:14:03]FM_MakeSignedData [20:14:03]FM_MakeSignedData [20:14:03]SAM_PROTO_SignData [20:14:03]wFMCommunicate request_size=4 [20:14:03]MH_SAM_APDU [20:14:03]CAPDU: 80 0D 01 02 [20:14:03]Write to MH i2c: E2 08 00 4D 04 80 0D 01 02 00 00 00 00 CA [20:14:03]Write i2c OK [20:14:03]MH_I2C_Read... [20:14:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:03]Read from MH i2c: E2 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 03 00 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [20:14:03]RAPDU: 90 00 [20:14:03]wFMCommunicate OK [20:14:03]wFMCommunicate request_size=255 [20:14:03]MH_SAM_APDU [20:14:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 52 01 00 00 F4 03 04 00 8A 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 46 02 00 35 04 06 00 B9 [20:14:03]Write to MH i2c: E2 02 01 4E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 52 01 00 00 F4 03 04 00 8A 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 46 02 00 35 04 06 00 B9 00 00 B3 [20:14:03]Write i2c OK [20:14:03]MH_I2C_Read... [20:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:03]Read from MH i2c: E2 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 03 00 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [20:14:03]RAPDU: 90 00 [20:14:03]wFMCommunicate OK [20:14:03]wFMCommunicate request_size=10 [20:14:03]MH_SAM_APDU [20:14:03]CAPDU: 80 0D 02 02 05 1B C1 53 55 F2 [20:14:03]Write to MH i2c: E2 0D 00 4F 04 80 0D 02 02 05 00 1B C1 53 55 F2 00 00 4D [20:14:03]Write i2c OK [20:14:03]MH_I2C_Read... [20:14:03]OFD Sender: No OFD packet to send [20:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:03]Read from MH i2c: E2 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 03 00 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [20:14:03]RAPDU: 90 00 [20:14:03]wFMCommunicate OK [20:14:03]wFMCommunicate request_size=4 [20:14:03]MH_SAM_APDU [20:14:03]CAPDU: 80 0D 03 02 [20:14:03]Write to MH i2c: E2 08 00 50 04 80 0D 03 02 00 00 00 00 CF [20:14:03]Write i2c OK [20:14:03]MH_I2C_Read... [20:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:03]Read from MH i2c: E2 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 0B 00 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 0B 00 50 04 00 42 CB 65 65 28 07 66 02 90 00 3E [20:14:03]RAPDU: 42 CB 65 65 28 07 66 02 90 00 [20:14:03]wFMCommunicate OK [20:14:03]SAM_PROTO_SignData done [20:14:03]FM_MakeSignedData done [20:14:03]CreateOFDProtocolMessage [20:14:03]wFMCommunicate request_size=4 [20:14:03]MH_SAM_APDU [20:14:03]CAPDU: 80 11 00 00 [20:14:03]Write to MH i2c: E2 08 00 51 04 80 11 00 00 00 00 00 00 CF [20:14:03]Write i2c OK [20:14:03]MH_I2C_Read... [20:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:03]Read from MH i2c: E2 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 17 00 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 17 00 51 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 22 [20:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:14:03]wFMCommunicate OK [20:14:03]CreateOFDProtocolMessage done [20:14:03]OFDSenderStorePacket 148999 [20:14:03]StoreOFDPacket docnum=148999 [20:14:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 23 E8 07 01 7F B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 8A 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 46 02 00 35 04 06 00 B9 1B C1 53 55 F2 42 CB 65 65 28 07 66 02 [20:14:03]CheckFolder [20:14:03]dirname=/storage/ofd_packets [20:14:03]CheckFolder done [20:14:03]ProducePacketName [20:14:03]name=ofd_packets/00148999 [20:14:03]NVStorageSaveData ofd_packets/00148999 [20:14:03]File name is /storage/ofd_packets/00148999 [20:14:03]Write 301 bytes [20:14:03]NVStorageSaveData done [20:14:03]OFDSenderStorePacket done [20:14:03]KKMCreateOFDPacket done [20:14:03]NVStorageSaveData kkm_last_timestamp [20:14:03]File name is /storage/kkm_last_timestamp [20:14:03]Write 4 bytes [20:14:03]NVStorageSaveData done [20:14:03]ExternCall_PrintAddStr [20:14:03]wPrintStart [20:14:03]Write to MH i2c: 01 00 00 52 04 56 [20:14:03]Write i2c OK [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: 01 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: 01 07 00 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: 01 07 00 52 04 00 00 00 00 00 FF 0F 6B [20:14:03]RasterBufferAndPrint [20:14:03]line Счет N : (1)979934 [20:14:03]line ИНН: 02508201610067 [20:14:03]line Контрольно-Кассовый Чек [20:14:03]line ПРОДАЖА [20:14:03]line ТРК (МРК, ГНК) : 22 [20:14:03]line Товар: 2710124130 [20:14:03]line Аи-92-К-5 [20:14:03]line 5.980 * 66.90 [20:14:03]line = 400.06 [20:14:03]line НДС 12% НСП 1% [20:14:03]line > о реализуемом товаре [20:14:03]line ОКРУГЛЕНИЕ: -0.06 [20:14:03]line ИТОГО: 400.00 [20:14:03]line Внесено: 400.00 [20:14:03]line СДАЧА: 0.00 [20:14:03]line НСП 1% : 3.54 [20:14:03]line НДС 12% : 42.48 [20:14:03]line Наличными: 400.00 [20:14:03]line Безнал.: 0.00 [20:14:03]line Место: АЗС № 68 "Партнер Нефть" [20:14:03]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:14:03]line СНО: Общий режим [20:14:03]line Чек 338 04.06.2024 20:14 [20:14:03]line Смена: 368 ФФД: 1.0 [20:14:03]line ЗНМ: 0300000035 [20:14:03]line РНМ: 0000000000092720 [20:14:03]line Версия ККМ: 001 [20:14:03]line ФМ: 0000000000875057 [20:14:03]line ФД: 148999 [20:14:03]line ФПД: 203528858719730 [20:14:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201402&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148999&fm=203528858719730&tin=02508201610067®Number=0000000000092720&sum=40000 [20:14:04]OFD Sender: Processing packet 148999 [packets to send 100, broken 99] [20:14:04]ProducePacketName [20:14:04]name=ofd_packets/00148999 [20:14:04]OFD Sender: To server: pG, [20:14:04]CommunicateWithHost lk.salyk.kg:30040 [20:14:04]ConnectInit lk.salyk.kg [20:14:04]written 0, free lines is 4095 [20:14:04]Connected sock=10 [20:14:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 23 E8 07 01 7F B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 8A 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 46 02 00 35 04 06 00 B9 1B C1 53 55 F2 42 CB 65 65 28 07 66 02 [20:14:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 15 F6 47 00 46 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 46 02 00 F4 03 04 00 AD 1C 5F 66 B6 04 01 00 00 B4 5D 56 0D E4 E6 30 DC [20:14:04]CommunicateWithHost err = 0 [20:14:04]CheckOFDResponse [20:14:04]1017 (14) - 77093643461234 [20:14:04]1041 (16) - 0000000000875057 [20:14:04]1040 (4) - 148999 [20:14:04]1012 (4) - 04.06.2024 13:54 [20:14:04]1206 (1) - 0 [20:14:04]OFD Sender: Remove packet 148999 [20:14:04]ProducePacketName [20:14:04]name=ofd_packets/00148999 [20:14:04]NVStorageDeleteData [20:14:04]Write to MH i2c: 01 00 00 7D 04 81 [20:14:04]Write i2c OK [20:14:04]MH_I2C_Read... [20:14:04]Read from MH i2c: 01 [20:14:04]MH_I2C_Read... [20:14:04]Read from MH i2c: 01 07 00 [20:14:04]MH_I2C_Read... [20:14:04]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 88 0C 1C [20:14:04]RasterBufferAndPrint [20:14:04]line [20:14:04]line [20:14:04]line [20:14:04]line [20:14:04]line [20:14:04]written 0, free lines is 3212 [20:14:04]MH_Cut [20:14:04]Write to MH i2c: D1 01 00 84 04 01 5A [20:14:04]Write i2c OK [20:14:04]MH_I2C_Read... [20:14:04]Read from MH i2c: D1 [20:14:04]MH_I2C_Read... [20:14:04]Read from MH i2c: D1 01 00 [20:14:04]MH_I2C_Read... [20:14:04]Read from MH i2c: D1 01 00 84 04 00 59 [20:14:04]Write to MH i2c: 01 00 00 85 04 89 [20:14:04]Write i2c OK [20:14:04]MH_I2C_Read... [20:14:05]OFD Sender: No OFD packet to send [20:14:05]*** Cut start [20:14:05]*** Partial cut [20:14:05]*** CUTSNS_PIN = 1 [20:14:05]*** CUTSNS_PIN = 0 [20:14:06]*** Brake cut motor [20:14:06]Read from MH i2c: 01 [20:14:06]MH_I2C_Read... [20:14:06]*** Stop cut motor [20:14:06]*** Cut end [20:14:06]Read from MH i2c: 01 07 00 [20:14:06]MH_I2C_Read... [20:14:06]Read from MH i2c: 01 07 00 85 04 00 00 00 00 00 FF 0F 9E [20:14:06]process_action close_receipt done [20:14:06]requested_data is exist [20:14:06]produce_requested_data [20:14:06]requested_item fm.sn is exist - process it [20:14:06]wFMCommunicate request_size=4 [20:14:06]MH_SAM_APDU [20:14:06]CAPDU: 80 11 00 00 [20:14:06]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [20:14:06]Write i2c OK [20:14:06]MH_I2C_Read... [20:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:06]Read from MH i2c: E2 [20:14:06]MH_I2C_Read... [20:14:06]Read from MH i2c: E2 17 00 [20:14:06]MH_I2C_Read... [20:14:06]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 57 [20:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:14:06]wFMCommunicate OK [20:14:06]requested_item fd.num is exist - process it [20:14:06]SAM_PROTO_GetFieldsCounters [20:14:06]wFMCommunicate request_size=4 [20:14:06]MH_SAM_APDU [20:14:06]CAPDU: 80 13 00 00 [20:14:06]Write to MH i2c: E2 08 00 87 04 80 13 00 00 00 00 00 00 07 [20:14:06]Write i2c OK [20:14:06]MH_I2C_Read... [20:14:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:06]Read from MH i2c: E2 [20:14:06]MH_I2C_Read... [20:14:06]Read from MH i2c: E2 62 00 [20:14:06]MH_I2C_Read... [20:14:06]Read from MH i2c: E2 62 00 87 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 07 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [20:14:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 07 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:06]wFMCommunicate OK [20:14:06]SAM_PROTO_GetFieldsCounters done [20:14:06]requested_item shift.num is exist - process it [20:14:06]requested_item shift.opened is exist - process it [20:14:06]req_shift_opened [20:14:06]FM_GetShiftState [20:14:06]SAM_PROTO_GetShiftState [20:14:06]wFMCommunicate request_size=4 [20:14:06]MH_SAM_APDU [20:14:06]CAPDU: 80 13 01 00 [20:14:06]Write to MH i2c: E2 08 00 88 04 80 13 01 00 00 00 00 00 09 [20:14:06]Write i2c OK [20:14:06]MH_I2C_Read... [20:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:06]Read from MH i2c: E2 [20:14:06]MH_I2C_Read... [20:14:06]Read from MH i2c: E2 0E 00 [20:14:06]MH_I2C_Read... [20:14:06]Read from MH i2c: E2 0E 00 88 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CC [20:14:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:14:06]wFMCommunicate OK [20:14:06]SAM_PROTO_GetShiftState done [20:14:06]FM_GetShiftState done [20:14:06]req_shift_opened done [20:14:06]requested_item shift.open_date is exist - process it [20:14:06]req_shift_open_date [20:14:06]req_shift_open_date done [20:14:06]produce_requested_data done [20:14:06]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148999,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:14:06]process_action_free close_receipt [20:14:06]json_value_free [20:14:06]json_value_free done [20:14:06]process_json_proto returns [20:14:06]Send response to host [20:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148999,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:14:06]free response buf [20:14:06]execute_script done [20:14:06]execute_script returns [20:14:06]free content buf [20:14:06]Sock 7.Close socket [20:14:06]Sock 7.Thread stoped [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:17]accept exits with 9 [20:14:17]New connection [20:14:17]New thread 3067075940 created [20:14:17]Thread 3067219300 joined [20:14:17]Waiting for new connection... [20:14:17] Sock 9.Parse request [20:14:17]Sock 9.Check first char [20:14:17]Sock 9.First char is OK [20:14:17]request: POST /json_proto HTTP/1.0 [20:14:18]Method: POST [20:14:18]URL: /json_proto [20:14:18]Method is POST - this is cgi request [20:14:18]url: /json_proto [20:14:18]query_string will be loaded in cgi processing [20:14:18]execute_cgi json_proto POST (null) [20:14:18]execute_cgi path=json_proto method=POST [20:14:18]POST find Content-Length [20:14:18]Host: 172.17.38.4:8080 [20:14:18]Content-Length: 790 [20:14:18]Content-Type: application/json [20:14:18] [20:14:18]POST finish read [20:14:18]Found Content-Length = 790 [20:14:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:18]execute_script... [20:14: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)979935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:18]POST & json_proto [20:14:18]process_json_proto [20:14:18]json parsed OK: [20:14:18]protocol is kg_v1.0 [20:14:18]action value=close_receipt [20:14:18]process_action close_receipt [20:14:18]cmd_close_receipt [20:14:18]MH_GetDate [20:14:18]Write to MH i2c: F0 00 00 89 04 7C [20:14:18]Write i2c OK [20:14:18]MH_I2C_Read... [20:14:18]Read from MH i2c: F0 [20:14:18]MH_I2C_Read... [20:14:18]Read from MH i2c: F0 09 00 [20:14:18]MH_I2C_Read... [20:14:18]Read from MH i2c: F0 09 00 89 04 00 9A 75 5F 66 CC 51 87 64 61 [20:14:18]GetLastDocTimeStamp 1717532042 [20:14:18]current date 1717532058 [20:14:18]FM_GetShiftState [20:14:18]SAM_PROTO_GetShiftState [20:14:18]wFMCommunicate request_size=4 [20:14:18]MH_SAM_APDU [20:14:18]CAPDU: 80 13 01 00 [20:14:18]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [20:14:18]Write i2c OK [20:14:18]MH_I2C_Read... [20:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:18]Read from MH i2c: E2 [20:14:18]MH_I2C_Read... [20:14:18]Read from MH i2c: E2 0E 00 [20:14:18]MH_I2C_Read... [20:14:18]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CE [20:14:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:14:18]wFMCommunicate OK [20:14:18]SAM_PROTO_GetShiftState done [20:14:18]FM_GetShiftState done [20:14:18]opened in 1717460629 [20:14:18]opened+sec_in_day 1717547029 [20:14:18]quantity*price = 30038 [20:14:18]sum+1 = 30039 [20:14:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 339 04.06.2024 20:14 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 149000 ФПД: 122462264992615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201418&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149000&fm=122462264992615&tin=02508201610067®Number=0000000000092720&sum=30038 [20:14:19]StoreToDocumentArchive [20:14:19]shift 368 fd 149000 [20:14:19]save to /storage/0368/doc_00149000 [20:14:19]save last doc name /storage/0368/doc_00149000 to /storage/kkm_last_doc_name [20:14:19]save OK [20:14:19]Clear old archive folders... [20:14:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:19]tlvbuf is 00970C60 [20:14:19]SAM_PROTO_ClearQueue [20:14:19]wFMCommunicate request_size=4 [20:14:19]MH_SAM_APDU [20:14:19]CAPDU: 80 09 00 00 [20:14:19]Write to MH i2c: E2 08 00 97 04 80 09 00 00 00 00 00 00 0D [20:14:19]Write i2c OK [20:14:19]MH_I2C_Read... [20:14:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:19]Read from MH i2c: E2 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 03 00 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [20:14:19]RAPDU: 90 00 [20:14:19]wFMCommunicate OK [20:14:19]SAM_PROTO_ClearQueue done [20:14:19]KKMCreateOFDPacket [20:14:19]OFDProtocolAddRootSTLVToBuf [20:14:19]FM_MakeSignedData [20:14:19]FM_MakeSignedData [20:14:19]SAM_PROTO_SignData [20:14:19]wFMCommunicate request_size=4 [20:14:19]MH_SAM_APDU [20:14:19]CAPDU: 80 0D 01 02 [20:14:19]Write to MH i2c: E2 08 00 98 04 80 0D 01 02 00 00 00 00 15 [20:14:19]Write i2c OK [20:14:19]MH_I2C_Read... [20:14:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:19]Read from MH i2c: E2 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 03 00 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [20:14:19]RAPDU: 90 00 [20:14:19]wFMCommunicate OK [20:14:19]wFMCommunicate request_size=255 [20:14:19]MH_SAM_APDU [20:14:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 01 00 00 F4 03 04 00 9A 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 46 02 00 35 04 06 00 6F [20:14:19]Write to MH i2c: E2 02 01 99 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 01 00 00 F4 03 04 00 9A 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 46 02 00 35 04 06 00 6F 00 00 37 [20:14:19]Write i2c OK [20:14:19]MH_I2C_Read... [20:14:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:19]Read from MH i2c: E2 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 03 00 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [20:14:19]RAPDU: 90 00 [20:14:19]wFMCommunicate OK [20:14:19]wFMCommunicate request_size=10 [20:14:19]MH_SAM_APDU [20:14:19]CAPDU: 80 0D 02 02 05 60 F7 CD A3 67 [20:14:19]Write to MH i2c: E2 0D 00 9A 04 80 0D 02 02 05 00 60 F7 CD A3 67 00 00 50 [20:14:19]Write i2c OK [20:14:19]MH_I2C_Read... [20:14:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:19]Read from MH i2c: E2 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 03 00 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [20:14:19]RAPDU: 90 00 [20:14:19]wFMCommunicate OK [20:14:19]wFMCommunicate request_size=4 [20:14:19]MH_SAM_APDU [20:14:19]CAPDU: 80 0D 03 02 [20:14:19]Write to MH i2c: E2 08 00 9B 04 80 0D 03 02 00 00 00 00 1A [20:14:19]Write i2c OK [20:14:19]MH_I2C_Read... [20:14:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:19]Read from MH i2c: E2 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 0B 00 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 0B 00 9B 04 00 04 80 5A E2 59 37 07 A1 90 00 13 [20:14:19]RAPDU: 04 80 5A E2 59 37 07 A1 90 00 [20:14:19]wFMCommunicate OK [20:14:19]SAM_PROTO_SignData done [20:14:19]FM_MakeSignedData done [20:14:19]CreateOFDProtocolMessage [20:14:19]wFMCommunicate request_size=4 [20:14:19]MH_SAM_APDU [20:14:19]CAPDU: 80 11 00 00 [20:14:19]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [20:14:19]Write i2c OK [20:14:19]MH_I2C_Read... [20:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:19]Read from MH i2c: E2 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 17 00 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: E2 17 00 9C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6D [20:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:14:19]wFMCommunicate OK [20:14:19]CreateOFDProtocolMessage done [20:14:19]OFDSenderStorePacket 149000 [20:14:19]StoreOFDPacket docnum=149000 [20:14:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 43 1D 07 01 B4 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 01 00 00 F4 03 04 00 9A 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 46 02 00 35 04 06 00 6F 60 F7 CD A3 67 04 80 5A E2 59 37 07 A1 [20:14:19]CheckFolder [20:14:19]dirname=/storage/ofd_packets [20:14:19]CheckFolder done [20:14:19]ProducePacketName [20:14:19]name=ofd_packets/00149000 [20:14:19]NVStorageSaveData ofd_packets/00149000 [20:14:19]File name is /storage/ofd_packets/00149000 [20:14:19]Write 301 bytes [20:14:19]NVStorageSaveData done [20:14:19]OFDSenderStorePacket done [20:14:19]KKMCreateOFDPacket done [20:14:19]NVStorageSaveData kkm_last_timestamp [20:14:19]File name is /storage/kkm_last_timestamp [20:14:19]Write 4 bytes [20:14:19]NVStorageSaveData done [20:14:19]ExternCall_PrintAddStr [20:14:19]wPrintStart [20:14:19]Write to MH i2c: 01 00 00 9D 04 A1 [20:14:19]Write i2c OK [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: 01 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: 01 07 00 [20:14:19]MH_I2C_Read... [20:14:19]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FF 0F B6 [20:14:19]RasterBufferAndPrint [20:14:19]line Счет N : (1)979935 [20:14:19]line ИНН: 02508201610067 [20:14:19]line Контрольно-Кассовый Чек [20:14:19]line ПРОДАЖА [20:14:19]line ТРК (МРК, ГНК) : 12 [20:14:19]line Товар: 2710124130 [20:14:19]line Аи-92-К-5 [20:14:19]line 4.490 * 66.90 [20:14:19]line = 300.38 [20:14:19]line НДС 12% НСП 1% [20:14:19]line > о реализуемом товаре [20:14:19]line ИТОГО: 300.38 [20:14:19]line НСП 1% : 2.66 [20:14:19]line НДС 12% : 31.90 [20:14:19]line Наличными: 0.00 [20:14:19]line Безнал.: 300.38 [20:14:19]line Место: АЗС № 68 "Партнер Нефть" [20:14:19]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:14:19]line СНО: Общий режим [20:14:19]line Чек 339 04.06.2024 20:14 [20:14:19]line Смена: 368 ФФД: 1.0 [20:14:19]line ЗНМ: 0300000035 [20:14:19]line РНМ: 0000000000092720 [20:14:19]line Версия ККМ: 001 [20:14:19]line Платежная система: KICB Банк [20:14:19]line ФМ: 0000000000875057 [20:14:19]line ФД: 149000 [20:14:19]line ФПД: 122462264992615 [20:14:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201418&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149000&fm=122462264992615&tin=02508201610067®Number=0000000000092720&sum=30038 [20:14:20]OFD Sender: Processing packet 149000 [packets to send 100, broken 99] [20:14:20]ProducePacketName [20:14:20]name=ofd_packets/00149000 [20:14:20]OFD Sender: To server: pG, [20:14:20]CommunicateWithHost lk.salyk.kg:30040 [20:14:20]ConnectInit lk.salyk.kg [20:14:20]written 0, free lines is 4095 [20:14:20]Connected sock=10 [20:14:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 43 1D 07 01 B4 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 01 00 00 F4 03 04 00 9A 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 46 02 00 35 04 06 00 6F 60 F7 CD A3 67 04 80 5A E2 59 37 07 A1 [20:14:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3D 2D 47 00 A0 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 46 02 00 F4 03 04 00 BD 1C 5F 66 B6 04 01 00 00 5E A9 22 91 5A 5D 84 57 [20:14:20]CommunicateWithHost err = 0 [20:14:20]CheckOFDResponse [20:14:20]1017 (14) - 77093643461234 [20:14:20]1041 (16) - 0000000000875057 [20:14:20]1040 (4) - 149000 [20:14:20]1012 (4) - 04.06.2024 13:55 [20:14:20]1206 (1) - 0 [20:14:20]OFD Sender: Remove packet 149000 [20:14:20]ProducePacketName [20:14:20]name=ofd_packets/00149000 [20:14:20]NVStorageDeleteData [20:14:20]Write to MH i2c: 01 00 00 C7 04 CB [20:14:20]Write i2c OK [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: 01 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: 01 07 00 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 9C 0C 7A [20:14:20]RasterBufferAndPrint [20:14:20]line [20:14:20]line [20:14:20]line [20:14:20]line [20:14:20]line [20:14:20]written 0, free lines is 3232 [20:14:20]MH_Cut [20:14:20]Write to MH i2c: D1 01 00 CE 04 01 A4 [20:14:20]Write i2c OK [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: D1 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: D1 01 00 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: D1 01 00 CE 04 00 A3 [20:14:20]Write to MH i2c: 01 00 00 CF 04 D3 [20:14:20]Write i2c OK [20:14:20]MH_I2C_Read... [20:14:20]OFD Sender: No OFD packet to send [20:14:21]*** Cut start [20:14:21]*** Partial cut [20:14:21]*** CUTSNS_PIN = 1 [20:14:21]*** CUTSNS_PIN = 0 [20:14:21]*** Brake cut motor [20:14:22]Read from MH i2c: 01 [20:14:22]MH_I2C_Read... [20:14:22]*** Stop cut motor [20:14:22]*** Cut end [20:14:22]Read from MH i2c: 01 07 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 CF 04 00 00 00 00 00 FF 0F E8 [20:14:22]process_action close_receipt done [20:14:22]requested_data is exist [20:14:22]produce_requested_data [20:14:22]requested_item fm.sn is exist - process it [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 11 00 00 [20:14:22]Write to MH i2c: E2 08 00 D0 04 80 11 00 00 00 00 00 00 4E [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 17 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 17 00 D0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A1 [20:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:14:22]wFMCommunicate OK [20:14:22]requested_item fd.num is exist - process it [20:14:22]SAM_PROTO_GetFieldsCounters [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 13 00 00 [20:14:22]Write to MH i2c: E2 08 00 D1 04 80 13 00 00 00 00 00 00 51 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 62 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 62 00 D1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 08 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [20:14:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 08 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:22]wFMCommunicate OK [20:14:22]SAM_PROTO_GetFieldsCounters done [20:14:22]requested_item shift.num is exist - process it [20:14:22]requested_item shift.opened is exist - process it [20:14:22]req_shift_opened [20:14:22]FM_GetShiftState [20:14:22]SAM_PROTO_GetShiftState [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 13 01 00 [20:14:22]Write to MH i2c: E2 08 00 D2 04 80 13 01 00 00 00 00 00 53 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 0E 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 0E 00 D2 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 16 [20:14:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:14:22]wFMCommunicate OK [20:14:22]SAM_PROTO_GetShiftState done [20:14:22]FM_GetShiftState done [20:14:22]req_shift_opened done [20:14:22]requested_item shift.open_date is exist - process it [20:14:22]req_shift_open_date [20:14:22]req_shift_open_date done [20:14:22]produce_requested_data done [20:14:22]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149000,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:14:22]process_action_free close_receipt [20:14:22]json_value_free [20:14:22]json_value_free done [20:14:22]process_json_proto returns [20:14:22]Send response to host [20:14:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149000,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:14:22]free response buf [20:14:22]execute_script done [20:14:22]execute_script returns [20:14:22]free content buf [20:14:22]Sock 9.Close socket [20:14:22]Sock 9.Thread stoped [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]accept exits with 7 [20:14:40]New connection [20:14:40]New thread 3067219300 created [20:14:40]Thread 3067075940 joined [20:14:40]Waiting for new connection... [20:14:40] Sock 7.Parse request [20:14:40]Sock 7.Check first char [20:14:40]Sock 7.First char is OK [20:14:40]request: POST /json_proto HTTP/1.0 [20:14:40]Method: POST [20:14:40]URL: /json_proto [20:14:40]Method is POST - this is cgi request [20:14:40]url: /json_proto [20:14:40]query_string will be loaded in cgi processing [20:14:40]execute_cgi json_proto POST (null) [20:14:40]execute_cgi path=json_proto method=POST [20:14:40]POST find Content-Length [20:14:40]Host: 172.17.38.4:8080 [20:14:40]Content-Length: 677 [20:14:40]Content-Type: application/json [20:14:40] [20:14:40]POST finish read [20:14:40]Found Content-Length = 677 [20:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:40]execute_script... [20:14: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)979936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:40]POST & json_proto [20:14:40]process_json_proto [20:14:40]json parsed OK: [20:14:40]protocol is kg_v1.0 [20:14:40]action value=close_receipt [20:14:40]process_action close_receipt [20:14:40]cmd_close_receipt [20:14:40]MH_GetDate [20:14:40]Write to MH i2c: F0 00 00 D3 04 C6 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: F0 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: F0 09 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: F0 09 00 D3 04 00 B0 75 5F 66 CC 51 87 64 C1 [20:14:40]GetLastDocTimeStamp 1717532058 [20:14:40]current date 1717532080 [20:14:40]FM_GetShiftState [20:14:40]SAM_PROTO_GetShiftState [20:14:40]wFMCommunicate request_size=4 [20:14:40]MH_SAM_APDU [20:14:40]CAPDU: 80 13 01 00 [20:14:40]Write to MH i2c: E2 08 00 D4 04 80 13 01 00 00 00 00 00 55 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:40]Read from MH i2c: E2 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 0E 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 0E 00 D4 04 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 18 [20:14:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:14:40]wFMCommunicate OK [20:14:40]SAM_PROTO_GetShiftState done [20:14:40]FM_GetShiftState done [20:14:40]opened in 1717460629 [20:14:40]opened+sec_in_day 1717547029 [20:14:40]quantity*price = 30038 [20:14:40]sum+1 = 30039 [20:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 340 04.06.2024 20:14 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149001 ФПД: 175965049487764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201440&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149001&fm=175965049487764&tin=02508201610067®Number=0000000000092720&sum=30000 [20:14:41]StoreToDocumentArchive [20:14:41]shift 368 fd 149001 [20:14:41]save to /storage/0368/doc_00149001 [20:14:41]save last doc name /storage/0368/doc_00149001 to /storage/kkm_last_doc_name [20:14:41]save OK [20:14:41]Clear old archive folders... [20:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:41]tlvbuf is 0095DAA0 [20:14:41]SAM_PROTO_ClearQueue [20:14:41]wFMCommunicate request_size=4 [20:14:41]MH_SAM_APDU [20:14:41]CAPDU: 80 09 00 00 [20:14:41]Write to MH i2c: E2 08 00 E1 04 80 09 00 00 00 00 00 00 57 [20:14:41]Write i2c OK [20:14:41]MH_I2C_Read... [20:14:41]Read from MH i2c: E2 [20:14:41]MH_I2C_Read... [20:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:41]Read from MH i2c: E2 03 00 [20:14:41]MH_I2C_Read... [20:14:41]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [20:14:41]RAPDU: 90 00 [20:14:41]wFMCommunicate OK [20:14:41]SAM_PROTO_ClearQueue done [20:14:41]KKMCreateOFDPacket [20:14:41]OFDProtocolAddRootSTLVToBuf [20:14:41]FM_MakeSignedData [20:14:41]FM_MakeSignedData [20:14:41]SAM_PROTO_SignData [20:14:41]wFMCommunicate request_size=4 [20:14:41]MH_SAM_APDU [20:14:41]CAPDU: 80 0D 01 02 [20:14:41]Write to MH i2c: E2 08 00 E2 04 80 0D 01 02 00 00 00 00 5F [20:14:41]Write i2c OK [20:14:41]MH_I2C_Read... [20:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:41]Read from MH i2c: E2 [20:14:41]MH_I2C_Read... [20:14:41]Read from MH i2c: E2 03 00 [20:14:41]MH_I2C_Read... [20:14:41]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [20:14:41]RAPDU: 90 00 [20:14:41]wFMCommunicate OK [20:14:41]wFMCommunicate request_size=255 [20:14:41]MH_SAM_APDU [20:14:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 01 00 00 F4 03 04 00 B0 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 46 02 00 35 04 06 00 A0 [20:14:41]Write to MH i2c: E2 02 01 E3 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 01 00 00 F4 03 04 00 B0 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 46 02 00 35 04 06 00 A0 00 00 7E [20:14:41]Write i2c OK [20:14:41]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [20:14:42]RAPDU: 90 00 [20:14:42]wFMCommunicate OK [20:14:42]wFMCommunicate request_size=10 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 0D 02 02 05 0A 0E 44 81 94 [20:14:42]Write to MH i2c: E2 0D 00 E4 04 80 0D 02 02 05 00 0A 0E 44 81 94 00 00 DD [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [20:14:42]RAPDU: 90 00 [20:14:42]wFMCommunicate OK [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 0D 03 02 [20:14:42]Write to MH i2c: E2 08 00 E5 04 80 0D 03 02 00 00 00 00 64 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 0B 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 0B 00 E5 04 00 5F 37 5E A6 5A 28 F6 1A 90 00 91 [20:14:42]RAPDU: 5F 37 5E A6 5A 28 F6 1A 90 00 [20:14:42]wFMCommunicate OK [20:14:42]SAM_PROTO_SignData done [20:14:42]FM_MakeSignedData done [20:14:42]CreateOFDProtocolMessage [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 11 00 00 [20:14:42]Write to MH i2c: E2 08 00 E6 04 80 11 00 00 00 00 00 00 64 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 17 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 17 00 E6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B7 [20:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:14:42]wFMCommunicate OK [20:14:42]CreateOFDProtocolMessage done [20:14:42]OFDSenderStorePacket 149001 [20:14:42]StoreOFDPacket docnum=149001 [20:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1B CD 07 01 F0 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 01 00 00 F4 03 04 00 B0 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 46 02 00 35 04 06 00 A0 0A 0E 44 81 94 5F 37 5E A6 5A 28 F6 1A [20:14:42]CheckFolder [20:14:42]dirname=/storage/ofd_packets [20:14:42]CheckFolder done [20:14:42]ProducePacketName [20:14:42]name=ofd_packets/00149001 [20:14:42]NVStorageSaveData ofd_packets/00149001 [20:14:42]File name is /storage/ofd_packets/00149001 [20:14:42]Write 301 bytes [20:14:42]NVStorageSaveData done [20:14:42]OFDSenderStorePacket done [20:14:42]KKMCreateOFDPacket done [20:14:42]NVStorageSaveData kkm_last_timestamp [20:14:42]File name is /storage/kkm_last_timestamp [20:14:42]Write 4 bytes [20:14:42]NVStorageSaveData done [20:14:42]ExternCall_PrintAddStr [20:14:42]wPrintStart [20:14:42]Write to MH i2c: 01 00 00 E7 04 EB [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: 01 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: 01 07 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 FF 0F 00 [20:14:42]RasterBufferAndPrint [20:14:42]line Счет N : (1)979936 [20:14:42]line ИНН: 02508201610067 [20:14:42]line Контрольно-Кассовый Чек [20:14:42]line ПРОДАЖА [20:14:42]line ТРК (МРК, ГНК) : 31 [20:14:42]line Товар: 2710124130 [20:14:42]line Аи-92-К-5 [20:14:42]line 4.490 * 66.90 [20:14:42]line = 300.38 [20:14:42]line НДС 12% НСП 1% [20:14:42]line > о реализуемом товаре [20:14:42]line ОКРУГЛЕНИЕ: -0.38 [20:14:42]line ИТОГО: 300.00 [20:14:42]line Внесено: 300.00 [20:14:42]line СДАЧА: 0.00 [20:14:42]line НСП 1% : 2.66 [20:14:42]line НДС 12% : 31.90 [20:14:42]line Наличными: 300.00 [20:14:42]line Безнал.: 0.00 [20:14:42]line Место: АЗС № 68 "Партнер Нефть" [20:14:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:14:42]line СНО: Общий режим [20:14:42]line Чек 340 04.06.2024 20:14 [20:14:42]line Смена: 368 ФФД: 1.0 [20:14:42]line ЗНМ: 0300000035 [20:14:42]line РНМ: 0000000000092720 [20:14:42]line Версия ККМ: 001 [20:14:42]line ФМ: 0000000000875057 [20:14:42]line ФД: 149001 [20:14:42]line ФПД: 175965049487764 [20:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201440&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149001&fm=175965049487764&tin=02508201610067®Number=0000000000092720&sum=30000 [20:14:42]OFD Sender: Processing packet 149001 [packets to send 100, broken 99] [20:14:42]ProducePacketName [20:14:42]name=ofd_packets/00149001 [20:14:42]OFD Sender: To server: pG, [20:14:42]CommunicateWithHost lk.salyk.kg:30040 [20:14:42]ConnectInit lk.salyk.kg [20:14:42]written 0, free lines is 4095 [20:14:42]Connected sock=10 [20:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1B CD 07 01 F0 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 01 00 00 F4 03 04 00 B0 75 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 46 02 00 35 04 06 00 A0 0A 0E 44 81 94 5F 37 5E A6 5A 28 F6 1A [20:14:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F4 B7 47 00 34 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 46 02 00 F4 03 04 00 D3 1C 5F 66 B6 04 01 00 00 EB 38 6F 38 C8 6D 94 46 [20:14:42]CommunicateWithHost err = 0 [20:14:42]CheckOFDResponse [20:14:42]1017 (14) - 77093643461234 [20:14:42]1041 (16) - 0000000000875057 [20:14:42]1040 (4) - 149001 [20:14:42]1012 (4) - 04.06.2024 13:55 [20:14:42]1206 (1) - 0 [20:14:42]OFD Sender: Remove packet 149001 [20:14:42]ProducePacketName [20:14:42]name=ofd_packets/00149001 [20:14:42]NVStorageDeleteData [20:14:42]Write to MH i2c: 01 00 00 12 05 17 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: 01 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: 01 07 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 94 0C BE [20:14:42]RasterBufferAndPrint [20:14:42]line [20:14:42]line [20:14:42]line [20:14:42]line [20:14:42]line [20:14:42]written 0, free lines is 3224 [20:14:43]MH_Cut [20:14:43]Write to MH i2c: D1 01 00 19 05 01 F0 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: D1 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: D1 01 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: D1 01 00 19 05 00 EF [20:14:43]Write to MH i2c: 01 00 00 1A 05 1F [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]OFD Sender: No OFD packet to send [20:14:44]*** Cut start [20:14:44]*** Partial cut [20:14:44]*** CUTSNS_PIN = 1 [20:14:44]*** CUTSNS_PIN = 0 [20:14:44]*** Brake cut motor [20:14:44]Read from MH i2c: 01 [20:14:44]MH_I2C_Read... [20:14:44]*** Stop cut motor [20:14:44]*** Cut end [20:14:44]Read from MH i2c: 01 07 00 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 FF 0F 34 [20:14:44]process_action close_receipt done [20:14:44]requested_data is exist [20:14:44]produce_requested_data [20:14:44]requested_item fm.sn is exist - process it [20:14:44]wFMCommunicate request_size=4 [20:14:44]MH_SAM_APDU [20:14:44]CAPDU: 80 11 00 00 [20:14:44]Write to MH i2c: E2 08 00 1B 05 80 11 00 00 00 00 00 00 9A [20:14:44]Write i2c OK [20:14:44]MH_I2C_Read... [20:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:44]Read from MH i2c: E2 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: E2 17 00 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: E2 17 00 1B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 ED [20:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:14:44]wFMCommunicate OK [20:14:44]requested_item fd.num is exist - process it [20:14:44]SAM_PROTO_GetFieldsCounters [20:14:44]wFMCommunicate request_size=4 [20:14:44]MH_SAM_APDU [20:14:44]CAPDU: 80 13 00 00 [20:14:44]Write to MH i2c: E2 08 00 1C 05 80 13 00 00 00 00 00 00 9D [20:14:44]Write i2c OK [20:14:44]MH_I2C_Read... [20:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:44]Read from MH i2c: E2 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: E2 62 00 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: E2 62 00 1C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 09 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [20:14:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 09 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:44]wFMCommunicate OK [20:14:44]SAM_PROTO_GetFieldsCounters done [20:14:44]requested_item shift.num is exist - process it [20:14:44]requested_item shift.opened is exist - process it [20:14:44]req_shift_opened [20:14:44]FM_GetShiftState [20:14:44]SAM_PROTO_GetShiftState [20:14:44]wFMCommunicate request_size=4 [20:14:44]MH_SAM_APDU [20:14:44]CAPDU: 80 13 01 00 [20:14:44]Write to MH i2c: E2 08 00 1D 05 80 13 01 00 00 00 00 00 9F [20:14:44]Write i2c OK [20:14:44]MH_I2C_Read... [20:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:44]Read from MH i2c: E2 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: E2 0E 00 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: E2 0E 00 1D 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 62 [20:14:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:14:44]wFMCommunicate OK [20:14:44]SAM_PROTO_GetShiftState done [20:14:44]FM_GetShiftState done [20:14:44]req_shift_opened done [20:14:44]requested_item shift.open_date is exist - process it [20:14:44]req_shift_open_date [20:14:44]req_shift_open_date done [20:14:44]produce_requested_data done [20:14:44]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149001,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:14:44]process_action_free close_receipt [20:14:44]json_value_free [20:14:44]json_value_free done [20:14:44]process_json_proto returns [20:14:44]Send response to host [20:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149001,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:14:44]free response buf [20:14:44]execute_script done [20:14:44]execute_script returns [20:14:44]free content buf [20:14:44]Sock 7.Close socket [20:14:44]Sock 7.Thread stoped [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:15]accept exits with 9 [20:16:15]New connection [20:16:15]New thread 3067075940 created [20:16:15]Thread 3067219300 joined [20:16:15]Waiting for new connection... [20:16:15] Sock 9.Parse request [20:16:15]Sock 9.Check first char [20:16:15]Sock 9.First char is OK [20:16:15]request: POST /json_proto HTTP/1.0 [20:16:15]Method: POST [20:16:15]URL: /json_proto [20:16:15]Method is POST - this is cgi request [20:16:15]url: /json_proto [20:16:15]query_string will be loaded in cgi processing [20:16:15]execute_cgi json_proto POST (null) [20:16:15]execute_cgi path=json_proto method=POST [20:16:15]POST find Content-Length [20:16:15]Host: 172.17.38.4:8080 [20:16:15]Content-Length: 682 [20:16:15]Content-Type: application/json [20:16:15] [20:16:15]POST finish read [20:16:15]Found Content-Length = 682 [20:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:15]execute_script... [20:16: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)979937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:15]POST & json_proto [20:16:15]process_json_proto [20:16:15]json parsed OK: [20:16:15]protocol is kg_v1.0 [20:16:15]action value=close_receipt [20:16:15]process_action close_receipt [20:16:15]cmd_close_receipt [20:16:15]MH_GetDate [20:16:15]Write to MH i2c: F0 00 00 1E 05 12 [20:16:15]Write i2c OK [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: F0 [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: F0 09 00 [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: F0 09 00 1E 05 00 0F 76 5F 66 CC 51 87 64 6D [20:16:15]GetLastDocTimeStamp 1717532080 [20:16:15]current date 1717532175 [20:16:15]FM_GetShiftState [20:16:15]SAM_PROTO_GetShiftState [20:16:15]wFMCommunicate request_size=4 [20:16:15]MH_SAM_APDU [20:16:15]CAPDU: 80 13 01 00 [20:16:15]Write to MH i2c: E2 08 00 1F 05 80 13 01 00 00 00 00 00 A1 [20:16:15]Write i2c OK [20:16:15]MH_I2C_Read... [20:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:15]Read from MH i2c: E2 [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: E2 0E 00 [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: E2 0E 00 1F 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 64 [20:16:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:16:15]wFMCommunicate OK [20:16:15]SAM_PROTO_GetShiftState done [20:16:15]FM_GetShiftState done [20:16:15]opened in 1717460629 [20:16:15]opened+sec_in_day 1717547029 [20:16:15]quantity*price = 100015 [20:16:15]sum+1 = 100017 [20:16:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 341 04.06.2024 20:16 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149002 ФПД: 256612962976359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201616&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149002&fm=256612962976359&tin=02508201610067®Number=0000000000092720&sum=100000 [20:16:16]StoreToDocumentArchive [20:16:16]shift 368 fd 149002 [20:16:16]save to /storage/0368/doc_00149002 [20:16:16]save last doc name /storage/0368/doc_00149002 to /storage/kkm_last_doc_name [20:16:16]save OK [20:16:16]Clear old archive folders... [20:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:16]tlvbuf is 00937C40 [20:16:16]SAM_PROTO_ClearQueue [20:16:16]wFMCommunicate request_size=4 [20:16:16]MH_SAM_APDU [20:16:16]CAPDU: 80 09 00 00 [20:16:16]Write to MH i2c: E2 08 00 2C 05 80 09 00 00 00 00 00 00 A3 [20:16:16]Write i2c OK [20:16:16]MH_I2C_Read... [20:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:16]Read from MH i2c: E2 [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: E2 03 00 [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [20:16:16]RAPDU: 90 00 [20:16:16]wFMCommunicate OK [20:16:16]SAM_PROTO_ClearQueue done [20:16:16]KKMCreateOFDPacket [20:16:16]OFDProtocolAddRootSTLVToBuf [20:16:16]FM_MakeSignedData [20:16:16]FM_MakeSignedData [20:16:16]SAM_PROTO_SignData [20:16:16]wFMCommunicate request_size=4 [20:16:16]MH_SAM_APDU [20:16:16]CAPDU: 80 0D 01 02 [20:16:16]Write to MH i2c: E2 08 00 2D 05 80 0D 01 02 00 00 00 00 AB [20:16:16]Write i2c OK [20:16:16]MH_I2C_Read... [20:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:16]Read from MH i2c: E2 [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: E2 03 00 [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [20:16:16]RAPDU: 90 00 [20:16:16]wFMCommunicate OK [20:16:16]wFMCommunicate request_size=255 [20:16:16]MH_SAM_APDU [20:16:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 55 01 00 00 F4 03 04 00 10 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 46 02 00 35 04 06 00 E9 [20:16:16]Write to MH i2c: E2 02 01 2E 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 10 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 46 02 00 35 04 06 00 E9 00 00 7C [20:16:16]Write i2c OK [20:16:16]MH_I2C_Read... [20:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:17]Read from MH i2c: E2 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 03 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [20:16:17]RAPDU: 90 00 [20:16:17]wFMCommunicate OK [20:16:17]wFMCommunicate request_size=10 [20:16:17]MH_SAM_APDU [20:16:17]CAPDU: 80 0D 02 02 05 63 5C 80 C2 67 [20:16:17]Write to MH i2c: E2 0D 00 2F 05 80 0D 02 02 05 00 63 5C 80 C2 67 00 00 20 [20:16:17]Write i2c OK [20:16:17]MH_I2C_Read... [20:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:17]Read from MH i2c: E2 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 03 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 03 00 2F 05 00 90 00 A8 [20:16:17]RAPDU: 90 00 [20:16:17]wFMCommunicate OK [20:16:17]wFMCommunicate request_size=4 [20:16:17]MH_SAM_APDU [20:16:17]CAPDU: 80 0D 03 02 [20:16:17]Write to MH i2c: E2 08 00 30 05 80 0D 03 02 00 00 00 00 B0 [20:16:17]Write i2c OK [20:16:17]MH_I2C_Read... [20:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:17]Read from MH i2c: E2 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 0B 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 0B 00 30 05 00 95 96 2C 5C E9 A3 A7 52 90 00 E9 [20:16:17]RAPDU: 95 96 2C 5C E9 A3 A7 52 90 00 [20:16:17]wFMCommunicate OK [20:16:17]SAM_PROTO_SignData done [20:16:17]FM_MakeSignedData done [20:16:17]CreateOFDProtocolMessage [20:16:17]wFMCommunicate request_size=4 [20:16:17]MH_SAM_APDU [20:16:17]CAPDU: 80 11 00 00 [20:16:17]Write to MH i2c: E2 08 00 31 05 80 11 00 00 00 00 00 00 B0 [20:16:17]Write i2c OK [20:16:17]MH_I2C_Read... [20:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:17]Read from MH i2c: E2 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 17 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 17 00 31 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 03 [20:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:16:17]wFMCommunicate OK [20:16:17]CreateOFDProtocolMessage done [20:16:17]OFDSenderStorePacket 149002 [20:16:17]StoreOFDPacket docnum=149002 [20:16:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 69 34 07 01 1C 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 10 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 46 02 00 35 04 06 00 E9 63 5C 80 C2 67 95 96 2C 5C E9 A3 A7 52 [20:16:17]CheckFolder [20:16:17]dirname=/storage/ofd_packets [20:16:17]CheckFolder done [20:16:17]ProducePacketName [20:16:17]name=ofd_packets/00149002 [20:16:17]NVStorageSaveData ofd_packets/00149002 [20:16:17]File name is /storage/ofd_packets/00149002 [20:16:17]Write 301 bytes [20:16:17]NVStorageSaveData done [20:16:17]OFDSenderStorePacket done [20:16:17]KKMCreateOFDPacket done [20:16:17]NVStorageSaveData kkm_last_timestamp [20:16:17]File name is /storage/kkm_last_timestamp [20:16:17]Write 4 bytes [20:16:17]NVStorageSaveData done [20:16:17]ExternCall_PrintAddStr [20:16:17]wPrintStart [20:16:17]Write to MH i2c: 01 00 00 32 05 37 [20:16:17]Write i2c OK [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: 01 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: 01 07 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 FF 0F 4C [20:16:17]RasterBufferAndPrint [20:16:17]line Счет N : (1)979937 [20:16:17]line ИНН: 02508201610067 [20:16:17]line Контрольно-Кассовый Чек [20:16:17]line ПРОДАЖА [20:16:17]line ТРК (МРК, ГНК) : 22 [20:16:17]line Товар: 2710124130 [20:16:17]line Аи-92-К-5 [20:16:17]line 14.950 * 66.90 [20:16:17]line = 1000.16 [20:16:17]line НДС 12% НСП 1% [20:16:17]line > о реализуемом товаре [20:16:17]line ОКРУГЛЕНИЕ: -0.16 [20:16:17]line ИТОГО: 1000.00 [20:16:17]line Внесено: 1000.00 [20:16:17]line СДАЧА: 0.00 [20:16:17]line НСП 1% : 8.85 [20:16:17]line НДС 12% : 106.21 [20:16:17]line Наличными: 1000.00 [20:16:17]line Безнал.: 0.00 [20:16:17]line Место: АЗС № 68 "Партнер Нефть" [20:16:17]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:16:17]line СНО: Общий режим [20:16:17]line Чек 341 04.06.2024 20:16 [20:16:17]line Смена: 368 ФФД: 1.0 [20:16:17]line ЗНМ: 0300000035 [20:16:17]line РНМ: 0000000000092720 [20:16:17]line Версия ККМ: 001 [20:16:17]line ФМ: 0000000000875057 [20:16:17]line ФД: 149002 [20:16:17]line ФПД: 256612962976359 [20:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201616&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149002&fm=256612962976359&tin=02508201610067®Number=0000000000092720&sum=100000 [20:16:17]OFD Sender: Processing packet 149002 [packets to send 100, broken 99] [20:16:17]ProducePacketName [20:16:17]name=ofd_packets/00149002 [20:16:17]OFD Sender: To server: pG, [20:16:17]CommunicateWithHost lk.salyk.kg:30040 [20:16:17]ConnectInit lk.salyk.kg [20:16:17]written 0, free lines is 4095 [20:16:17]Connected sock=10 [20:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 69 34 07 01 1C 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 10 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 46 02 00 35 04 06 00 E9 63 5C 80 C2 67 95 96 2C 5C E9 A3 A7 52 [20:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 73 82 47 00 65 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 46 02 00 F4 03 04 00 32 1D 5F 66 B6 04 01 00 00 D9 FA 64 BA 57 BE 0C 6B [20:16:17]CommunicateWithHost err = 0 [20:16:17]CheckOFDResponse [20:16:17]1017 (14) - 77093643461234 [20:16:17]1041 (16) - 0000000000875057 [20:16:17]1040 (4) - 149002 [20:16:17]1012 (4) - 04.06.2024 13:57 [20:16:17]1206 (1) - 0 [20:16:17]OFD Sender: Remove packet 149002 [20:16:17]ProducePacketName [20:16:17]name=ofd_packets/00149002 [20:16:17]NVStorageDeleteData [20:16:18]Write to MH i2c: 01 00 00 5D 05 62 [20:16:18]Write i2c OK [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: 01 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: 01 07 00 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 8E 0C 03 [20:16:18]RasterBufferAndPrint [20:16:18]line [20:16:18]line [20:16:18]line [20:16:18]line [20:16:18]line [20:16:18]written 0, free lines is 3218 [20:16:18]MH_Cut [20:16:18]Write to MH i2c: D1 01 00 64 05 01 3B [20:16:18]Write i2c OK [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: D1 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: D1 01 00 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: D1 01 00 64 05 00 3A [20:16:18]Write to MH i2c: 01 00 00 65 05 6A [20:16:18]Write i2c OK [20:16:18]MH_I2C_Read... [20:16:18]OFD Sender: No OFD packet to send [20:16:19]*** Cut start [20:16:19]*** Partial cut [20:16:19]*** CUTSNS_PIN = 1 [20:16:19]*** CUTSNS_PIN = 0 [20:16:19]*** Brake cut motor [20:16:19]Read from MH i2c: 01 [20:16:19]MH_I2C_Read... [20:16:19]*** Stop cut motor [20:16:19]*** Cut end [20:16:19]Read from MH i2c: 01 07 00 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 FF 0F 7F [20:16:19]process_action close_receipt done [20:16:19]requested_data is exist [20:16:19]produce_requested_data [20:16:19]requested_item fm.sn is exist - process it [20:16:19]wFMCommunicate request_size=4 [20:16:19]MH_SAM_APDU [20:16:19]CAPDU: 80 11 00 00 [20:16:19]Write to MH i2c: E2 08 00 66 05 80 11 00 00 00 00 00 00 E5 [20:16:19]Write i2c OK [20:16:19]MH_I2C_Read... [20:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:19]Read from MH i2c: E2 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: E2 17 00 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: E2 17 00 66 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 38 [20:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:16:19]wFMCommunicate OK [20:16:19]requested_item fd.num is exist - process it [20:16:19]SAM_PROTO_GetFieldsCounters [20:16:19]wFMCommunicate request_size=4 [20:16:19]MH_SAM_APDU [20:16:19]CAPDU: 80 13 00 00 [20:16:19]Write to MH i2c: E2 08 00 67 05 80 13 00 00 00 00 00 00 E8 [20:16:19]Write i2c OK [20:16:19]MH_I2C_Read... [20:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:20]Read from MH i2c: E2 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 62 00 [20:16:20]MH_I2C_Read... [20:16:20]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 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0A 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [20:16:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0A 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:20]wFMCommunicate OK [20:16:20]SAM_PROTO_GetFieldsCounters done [20:16:20]requested_item shift.num is exist - process it [20:16:20]requested_item shift.opened is exist - process it [20:16:20]req_shift_opened [20:16:20]FM_GetShiftState [20:16:20]SAM_PROTO_GetShiftState [20:16:20]wFMCommunicate request_size=4 [20:16:20]MH_SAM_APDU [20:16:20]CAPDU: 80 13 01 00 [20:16:20]Write to MH i2c: E2 08 00 68 05 80 13 01 00 00 00 00 00 EA [20:16:20]Write i2c OK [20:16:20]MH_I2C_Read... [20:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:20]Read from MH i2c: E2 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 0E 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 0E 00 68 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AD [20:16:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:16:20]wFMCommunicate OK [20:16:20]SAM_PROTO_GetShiftState done [20:16:20]FM_GetShiftState done [20:16:20]req_shift_opened done [20:16:20]requested_item shift.open_date is exist - process it [20:16:20]req_shift_open_date [20:16:20]req_shift_open_date done [20:16:20]produce_requested_data done [20:16:20]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149002,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:16:20]process_action_free close_receipt [20:16:20]json_value_free [20:16:20]json_value_free done [20:16:20]process_json_proto returns [20:16:20]Send response to host [20:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149002,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:16:20]free response buf [20:16:20]execute_script done [20:16:20]execute_script returns [20:16:20]free content buf [20:16:20]Sock 9.Close socket [20:16:20]Sock 9.Thread stoped [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:08]accept exits with 7 [20:17:08]New connection [20:17:08]New thread 3067219300 created [20:17:08]Thread 3067075940 joined [20:17:08]Waiting for new connection... [20:17:08] Sock 7.Parse request [20:17:08]Sock 7.Check first char [20:17:08]Sock 7.First char is OK [20:17:08]request: POST /json_proto HTTP/1.0 [20:17:08]Method: POST [20:17:08]URL: /json_proto [20:17:08]Method is POST - this is cgi request [20:17:08]url: /json_proto [20:17:08]query_string will be loaded in cgi processing [20:17:08]execute_cgi json_proto POST (null) [20:17:08]execute_cgi path=json_proto method=POST [20:17:08]POST find Content-Length [20:17:08]Host: 172.17.38.4:8080 [20:17:08]Content-Length: 677 [20:17:08]Content-Type: application/json [20:17:08] [20:17:08]POST finish read [20:17:08]Found Content-Length = 677 [20:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:08]execute_script... [20:17: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)979938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:08]POST & json_proto [20:17:08]process_json_proto [20:17:08]json parsed OK: [20:17:08]protocol is kg_v1.0 [20:17:08]action value=close_receipt [20:17:08]process_action close_receipt [20:17:08]cmd_close_receipt [20:17:08]MH_GetDate [20:17:08]Write to MH i2c: F0 00 00 69 05 5D [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: F0 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: F0 09 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: F0 09 00 69 05 00 45 76 5F 66 CC 51 87 64 EE [20:17:08]GetLastDocTimeStamp 1717532176 [20:17:08]current date 1717532229 [20:17:08]FM_GetShiftState [20:17:08]SAM_PROTO_GetShiftState [20:17:08]wFMCommunicate request_size=4 [20:17:08]MH_SAM_APDU [20:17:08]CAPDU: 80 13 01 00 [20:17:08]Write to MH i2c: E2 08 00 6A 05 80 13 01 00 00 00 00 00 EC [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:08]Read from MH i2c: E2 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: E2 0E 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: E2 0E 00 6A 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AF [20:17:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:17:08]wFMCommunicate OK [20:17:08]SAM_PROTO_GetShiftState done [20:17:08]FM_GetShiftState done [20:17:08]opened in 1717460629 [20:17:08]opened+sec_in_day 1717547029 [20:17:08]quantity*price = 20003 [20:17:08]sum+1 = 20004 [20:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 342 04.06.2024 20:17 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149003 ФПД: 246984287661346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201709&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149003&fm=246984287661346&tin=02508201610067®Number=0000000000092720&sum=20000 [20:17:10]StoreToDocumentArchive [20:17:10]shift 368 fd 149003 [20:17:10]save to /storage/0368/doc_00149003 [20:17:10]save last doc name /storage/0368/doc_00149003 to /storage/kkm_last_doc_name [20:17:10]save OK [20:17:10]Clear old archive folders... [20:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:10]tlvbuf is 009377E0 [20:17:10]SAM_PROTO_ClearQueue [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 09 00 00 [20:17:10]Write to MH i2c: E2 08 00 77 05 80 09 00 00 00 00 00 00 EE [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 77 05 00 90 00 F0 [20:17:10]RAPDU: 90 00 [20:17:10]wFMCommunicate OK [20:17:10]SAM_PROTO_ClearQueue done [20:17:10]KKMCreateOFDPacket [20:17:10]OFDProtocolAddRootSTLVToBuf [20:17:10]FM_MakeSignedData [20:17:10]FM_MakeSignedData [20:17:10]SAM_PROTO_SignData [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 0D 01 02 [20:17:10]Write to MH i2c: E2 08 00 78 05 80 0D 01 02 00 00 00 00 F6 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 78 05 00 90 00 F1 [20:17:10]RAPDU: 90 00 [20:17:10]wFMCommunicate OK [20:17:10]wFMCommunicate request_size=255 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 56 01 00 00 F4 03 04 00 45 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 46 02 00 35 04 06 00 E0 [20:17:10]Write to MH i2c: E2 02 01 79 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 56 01 00 00 F4 03 04 00 45 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 46 02 00 35 04 06 00 E0 00 00 BD [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 79 05 00 90 00 F2 [20:17:10]RAPDU: 90 00 [20:17:10]wFMCommunicate OK [20:17:10]wFMCommunicate request_size=10 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 0D 02 02 05 A1 82 BB 2D 22 [20:17:10]Write to MH i2c: E2 0D 00 7A 05 80 0D 02 02 05 00 A1 82 BB 2D 22 00 00 30 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 7A 05 00 90 00 F3 [20:17:10]RAPDU: 90 00 [20:17:10]wFMCommunicate OK [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 0D 03 02 [20:17:10]Write to MH i2c: E2 08 00 7B 05 80 0D 03 02 00 00 00 00 FB [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 0B 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 0B 00 7B 05 00 D1 11 88 78 27 29 95 C8 90 00 8B [20:17:10]RAPDU: D1 11 88 78 27 29 95 C8 90 00 [20:17:10]wFMCommunicate OK [20:17:10]SAM_PROTO_SignData done [20:17:10]FM_MakeSignedData done [20:17:10]CreateOFDProtocolMessage [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 11 00 00 [20:17:10]Write to MH i2c: E2 08 00 7C 05 80 11 00 00 00 00 00 00 FB [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 17 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 17 00 7C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4E [20:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:17:10]wFMCommunicate OK [20:17:10]CreateOFDProtocolMessage done [20:17:10]OFDSenderStorePacket 149003 [20:17:10]StoreOFDPacket docnum=149003 [20:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 13 1E 07 01 C2 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 45 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 46 02 00 35 04 06 00 E0 A1 82 BB 2D 22 D1 11 88 78 27 29 95 C8 [20:17:10]CheckFolder [20:17:10]dirname=/storage/ofd_packets [20:17:10]CheckFolder done [20:17:10]ProducePacketName [20:17:10]name=ofd_packets/00149003 [20:17:10]NVStorageSaveData ofd_packets/00149003 [20:17:10]File name is /storage/ofd_packets/00149003 [20:17:10]Write 301 bytes [20:17:10]NVStorageSaveData done [20:17:10]OFDSenderStorePacket done [20:17:10]KKMCreateOFDPacket done [20:17:10]NVStorageSaveData kkm_last_timestamp [20:17:10]File name is /storage/kkm_last_timestamp [20:17:10]Write 4 bytes [20:17:10]NVStorageSaveData done [20:17:10]ExternCall_PrintAddStr [20:17:10]wPrintStart [20:17:10]Write to MH i2c: 01 00 00 7D 05 82 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 FF 0F 97 [20:17:10]RasterBufferAndPrint [20:17:10]line Счет N : (1)979938 [20:17:10]line ИНН: 02508201610067 [20:17:10]line Контрольно-Кассовый Чек [20:17:10]line ПРОДАЖА [20:17:10]line ТРК (МРК, ГНК) : 31 [20:17:10]line Товар: 2710124130 [20:17:10]line Аи-92-К-5 [20:17:10]line 2.990 * 66.90 [20:17:10]line = 200.03 [20:17:10]line НДС 12% НСП 1% [20:17:10]line > о реализуемом товаре [20:17:10]line ОКРУГЛЕНИЕ: -0.03 [20:17:10]line ИТОГО: 200.00 [20:17:10]line Внесено: 200.00 [20:17:10]line СДАЧА: 0.00 [20:17:10]line НСП 1% : 1.77 [20:17:10]line НДС 12% : 21.24 [20:17:10]line Наличными: 200.00 [20:17:10]line Безнал.: 0.00 [20:17:10]line Место: АЗС № 68 "Партнер Нефть" [20:17:10]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:17:10]line СНО: Общий режим [20:17:10]line Чек 342 04.06.2024 20:17 [20:17:10]line Смена: 368 ФФД: 1.0 [20:17:10]line ЗНМ: 0300000035 [20:17:10]line РНМ: 0000000000092720 [20:17:10]line Версия ККМ: 001 [20:17:10]line ФМ: 0000000000875057 [20:17:10]line ФД: 149003 [20:17:10]line ФПД: 246984287661346 [20:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201709&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149003&fm=246984287661346&tin=02508201610067®Number=0000000000092720&sum=20000 [20:17:11]OFD Sender: Processing packet 149003 [packets to send 100, broken 99] [20:17:11]ProducePacketName [20:17:11]name=ofd_packets/00149003 [20:17:11]OFD Sender: To server: pG, [20:17:11]CommunicateWithHost lk.salyk.kg:30040 [20:17:11]ConnectInit lk.salyk.kg [20:17:11]written 0, free lines is 4095 [20:17:11]Connected sock=10 [20:17:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 13 1E 07 01 C2 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 45 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 46 02 00 35 04 06 00 E0 A1 82 BB 2D 22 D1 11 88 78 27 29 95 C8 [20:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 4E E0 47 00 95 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 38 37 35 30 35 37 10 04 04 00 0B 46 02 00 F4 03 04 00 68 1D 5F 66 B6 04 01 00 00 50 93 73 94 D5 A2 9D BC [20:17:11]CommunicateWithHost err = 0 [20:17:11]CheckOFDResponse [20:17:11]1017 (14) - 77093643461234 [20:17:11]1041 (16) - 0000000000875057 [20:17:11]1040 (4) - 149003 [20:17:11]1012 (4) - 04.06.2024 13:58 [20:17:11]1206 (1) - 0 [20:17:11]OFD Sender: Remove packet 149003 [20:17:11]ProducePacketName [20:17:11]name=ofd_packets/00149003 [20:17:11]NVStorageDeleteData [20:17:11]Write to MH i2c: 01 00 00 A8 05 AD [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 07 00 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 83 0C 43 [20:17:11]RasterBufferAndPrint [20:17:11]line [20:17:11]line [20:17:11]line [20:17:11]line [20:17:11]line [20:17:11]written 0, free lines is 3205 [20:17:11]MH_Cut [20:17:11]Write to MH i2c: D1 01 00 AF 05 01 86 [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: D1 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: D1 01 00 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: D1 01 00 AF 05 00 85 [20:17:11]Write to MH i2c: 01 00 00 B0 05 B5 [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]OFD Sender: No OFD packet to send [20:17:12]*** Cut start [20:17:12]*** Partial cut [20:17:12]*** CUTSNS_PIN = 1 [20:17:12]*** CUTSNS_PIN = 0 [20:17:12]*** Brake cut motor [20:17:13]Read from MH i2c: 01 [20:17:13]MH_I2C_Read... [20:17:13]*** Stop cut motor [20:17:13]*** Cut end [20:17:13]Read from MH i2c: 01 07 00 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: 01 07 00 B0 05 00 00 00 00 00 FF 0F CA [20:17:13]process_action close_receipt done [20:17:13]requested_data is exist [20:17:13]produce_requested_data [20:17:13]requested_item fm.sn is exist - process it [20:17:13]wFMCommunicate request_size=4 [20:17:13]MH_SAM_APDU [20:17:13]CAPDU: 80 11 00 00 [20:17:13]Write to MH i2c: E2 08 00 B1 05 80 11 00 00 00 00 00 00 30 [20:17:13]Write i2c OK [20:17:13]MH_I2C_Read... [20:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:13]Read from MH i2c: E2 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 17 00 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 17 00 B1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 83 [20:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:17:13]wFMCommunicate OK [20:17:13]requested_item fd.num is exist - process it [20:17:13]SAM_PROTO_GetFieldsCounters [20:17:13]wFMCommunicate request_size=4 [20:17:13]MH_SAM_APDU [20:17:13]CAPDU: 80 13 00 00 [20:17:13]Write to MH i2c: E2 08 00 B2 05 80 13 00 00 00 00 00 00 33 [20:17:13]Write i2c OK [20:17:13]MH_I2C_Read... [20:17:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:13]Read from MH i2c: E2 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 62 00 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 62 00 B2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0B 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [20:17:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0B 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:13]wFMCommunicate OK [20:17:13]SAM_PROTO_GetFieldsCounters done [20:17:13]requested_item shift.num is exist - process it [20:17:13]requested_item shift.opened is exist - process it [20:17:13]req_shift_opened [20:17:13]FM_GetShiftState [20:17:13]SAM_PROTO_GetShiftState [20:17:13]wFMCommunicate request_size=4 [20:17:13]MH_SAM_APDU [20:17:13]CAPDU: 80 13 01 00 [20:17:13]Write to MH i2c: E2 08 00 B3 05 80 13 01 00 00 00 00 00 35 [20:17:13]Write i2c OK [20:17:13]MH_I2C_Read... [20:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:13]Read from MH i2c: E2 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 0E 00 [20:17:13]MH_I2C_Read... [20:17:13]Read from MH i2c: E2 0E 00 B3 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F8 [20:17:13]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:17:13]wFMCommunicate OK [20:17:13]SAM_PROTO_GetShiftState done [20:17:13]FM_GetShiftState done [20:17:13]req_shift_opened done [20:17:13]requested_item shift.open_date is exist - process it [20:17:13]req_shift_open_date [20:17:13]req_shift_open_date done [20:17:13]produce_requested_data done [20:17:13]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149003,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:17:13]process_action_free close_receipt [20:17:13]json_value_free [20:17:13]json_value_free done [20:17:13]process_json_proto returns [20:17:13]Send response to host [20:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149003,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:17:13]free response buf [20:17:13]execute_script done [20:17:13]execute_script returns [20:17:13]free content buf [20:17:13]Sock 7.Close socket [20:17:13]Sock 7.Thread stoped [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]accept exits with 9 [20:18:06]New connection [20:18:06]New thread 3067075940 created [20:18:06]Thread 3067219300 joined [20:18:06]Waiting for new connection... [20:18:06] Sock 9.Parse request [20:18:06]Sock 9.Check first char [20:18:06]Sock 9.First char is OK [20:18:06]request: POST /json_proto HTTP/1.0 [20:18:06]Method: POST [20:18:06]URL: /json_proto [20:18:06]Method is POST - this is cgi request [20:18:06]url: /json_proto [20:18:06]query_string will be loaded in cgi processing [20:18:06]execute_cgi json_proto POST (null) [20:18:06]execute_cgi path=json_proto method=POST [20:18:06]POST find Content-Length [20:18:06]Host: 172.17.38.4:8080 [20:18:06]Content-Length: 790 [20:18:06]Content-Type: application/json [20:18:06] [20:18:06]POST finish read [20:18:06]Found Content-Length = 790 [20:18:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:06]execute_script... [20:18: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)979939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:06]POST & json_proto [20:18:06]process_json_proto [20:18:06]json parsed OK: [20:18:06]protocol is kg_v1.0 [20:18:06]action value=close_receipt [20:18:06]process_action close_receipt [20:18:06]cmd_close_receipt [20:18:06]MH_GetDate [20:18:06]Write to MH i2c: F0 00 00 B4 05 A8 [20:18:06]Write i2c OK [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: F0 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: F0 09 00 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: F0 09 00 B4 05 00 7E 76 5F 66 CC 51 87 64 72 [20:18:06]GetLastDocTimeStamp 1717532229 [20:18:06]current date 1717532286 [20:18:06]FM_GetShiftState [20:18:06]SAM_PROTO_GetShiftState [20:18:06]wFMCommunicate request_size=4 [20:18:06]MH_SAM_APDU [20:18:06]CAPDU: 80 13 01 00 [20:18:06]Write to MH i2c: E2 08 00 B5 05 80 13 01 00 00 00 00 00 37 [20:18:06]Write i2c OK [20:18:06]MH_I2C_Read... [20:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:06]Read from MH i2c: E2 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 0E 00 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 0E 00 B5 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FA [20:18:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:18:06]wFMCommunicate OK [20:18:06]SAM_PROTO_GetShiftState done [20:18:06]FM_GetShiftState done [20:18:06]opened in 1717460629 [20:18:06]opened+sec_in_day 1717547029 [20:18:06]quantity*price = 100018 [20:18:06]sum+1 = 100020 [20:18:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 343 04.06.2024 20:18 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 149004 ФПД: 259985740780595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201806&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149004&fm=259985740780595&tin=02508201610067®Number=0000000000092720&sum=100019 [20:18:07]StoreToDocumentArchive [20:18:07]shift 368 fd 149004 [20:18:07]save to /storage/0368/doc_00149004 [20:18:07]save last doc name /storage/0368/doc_00149004 to /storage/kkm_last_doc_name [20:18:07]save OK [20:18:07]Clear old archive folders... [20:18:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:18:07]tlvbuf is 00966590 [20:18:07]SAM_PROTO_ClearQueue [20:18:07]wFMCommunicate request_size=4 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 09 00 00 [20:18:07]Write to MH i2c: E2 08 00 C2 05 80 09 00 00 00 00 00 00 39 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:07]Read from MH i2c: E2 03 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 C2 05 00 90 00 3B [20:18:07]RAPDU: 90 00 [20:18:07]wFMCommunicate OK [20:18:07]SAM_PROTO_ClearQueue done [20:18:07]KKMCreateOFDPacket [20:18:07]OFDProtocolAddRootSTLVToBuf [20:18:07]FM_MakeSignedData [20:18:07]FM_MakeSignedData [20:18:07]SAM_PROTO_SignData [20:18:07]wFMCommunicate request_size=4 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 0D 01 02 [20:18:07]Write to MH i2c: E2 08 00 C3 05 80 0D 01 02 00 00 00 00 41 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 C3 05 00 90 00 3C [20:18:07]RAPDU: 90 00 [20:18:07]wFMCommunicate OK [20:18:07]wFMCommunicate request_size=255 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 57 01 00 00 F4 03 04 00 7E 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 46 02 00 35 04 06 00 EC 74 A5 B9 [20:18:07]Write to MH i2c: E2 02 01 C4 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 57 01 00 00 F4 03 04 00 7E 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 46 02 00 35 04 06 00 EC 74 A5 B9 00 00 5C [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 C4 05 00 90 00 3D [20:18:07]RAPDU: 90 00 [20:18:07]wFMCommunicate OK [20:18:07]wFMCommunicate request_size=7 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 0D 02 02 02 D4 33 [20:18:07]Write to MH i2c: E2 0A 00 C5 05 80 0D 02 02 02 00 D4 33 00 00 4F [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 C5 05 00 90 00 3E [20:18:07]RAPDU: 90 00 [20:18:07]wFMCommunicate OK [20:18:07]wFMCommunicate request_size=4 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 0D 03 02 [20:18:07]Write to MH i2c: E2 08 00 C6 05 80 0D 03 02 00 00 00 00 46 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 0B 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 0B 00 C6 05 00 FE 0E D2 77 47 4A D2 EF 90 00 EE [20:18:07]RAPDU: FE 0E D2 77 47 4A D2 EF 90 00 [20:18:07]wFMCommunicate OK [20:18:07]SAM_PROTO_SignData done [20:18:07]FM_MakeSignedData done [20:18:07]CreateOFDProtocolMessage [20:18:07]wFMCommunicate request_size=4 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 11 00 00 [20:18:07]Write to MH i2c: E2 08 00 C7 05 80 11 00 00 00 00 00 00 46 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 17 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 17 00 C7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 99 [20:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:18:07]wFMCommunicate OK [20:18:07]CreateOFDProtocolMessage done [20:18:07]OFDSenderStorePacket 149004 [20:18:07]StoreOFDPacket docnum=149004 [20:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 AA 92 04 01 6B 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 57 01 00 00 F4 03 04 00 7E 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 46 02 00 35 04 06 00 EC 74 A5 B9 D4 33 FE 0E D2 77 47 4A D2 EF [20:18:07]CheckFolder [20:18:07]dirname=/storage/ofd_packets [20:18:07]CheckFolder done [20:18:07]ProducePacketName [20:18:07]name=ofd_packets/00149004 [20:18:07]NVStorageSaveData ofd_packets/00149004 [20:18:07]File name is /storage/ofd_packets/00149004 [20:18:07]Write 298 bytes [20:18:07]NVStorageSaveData done [20:18:07]OFDSenderStorePacket done [20:18:07]KKMCreateOFDPacket done [20:18:07]NVStorageSaveData kkm_last_timestamp [20:18:07]File name is /storage/kkm_last_timestamp [20:18:07]Write 4 bytes [20:18:07]NVStorageSaveData done [20:18:07]ExternCall_PrintAddStr [20:18:07]wPrintStart [20:18:07]Write to MH i2c: 01 00 00 C8 05 CD [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 07 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 FF 0F E2 [20:18:07]RasterBufferAndPrint [20:18:07]line Счет N : (1)979939 [20:18:07]line ИНН: 02508201610067 [20:18:07]line Контрольно-Кассовый Чек [20:18:07]line ПРОДАЖА [20:18:07]line ТРК (МРК, ГНК) : 52 [20:18:07]line Товар: 2710194210 [20:18:07]line ДТ-К-5 [20:18:07]line 13.720 * 72.90 [20:18:07]line = 1000.19 [20:18:07]line НДС 12% НСП 1% [20:18:07]line > о реализуемом товаре [20:18:07]line ИТОГО: 1000.19 [20:18:07]line НСП 1% : 8.85 [20:18:07]line НДС 12% : 106.21 [20:18:07]line Наличными: 0.00 [20:18:07]line Безнал.: 1000.19 [20:18:07]line Место: АЗС № 68 "Партнер Нефть" [20:18:07]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:18:07]line СНО: Общий режим [20:18:07]line Чек 343 04.06.2024 20:18 [20:18:07]line Смена: 368 ФФД: 1.0 [20:18:07]line ЗНМ: 0300000035 [20:18:07]line РНМ: 0000000000092720 [20:18:07]line Версия ККМ: 001 [20:18:07]line Платежная система: KICB Банк [20:18:07]line ФМ: 0000000000875057 [20:18:07]line ФД: 149004 [20:18:07]line ФПД: 259985740780595 [20:18:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T201806&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149004&fm=259985740780595&tin=02508201610067®Number=0000000000092720&sum=100019 [20:18:08]OFD Sender: Processing packet 149004 [packets to send 100, broken 99] [20:18:08]ProducePacketName [20:18:08]name=ofd_packets/00149004 [20:18:08]OFD Sender: To server: pG, [20:18:08]CommunicateWithHost lk.salyk.kg:30040 [20:18:08]ConnectInit lk.salyk.kg [20:18:08]written 0, free lines is 4095 [20:18:08]Connected sock=10 [20:18:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 AA 92 04 01 6B 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 57 01 00 00 F4 03 04 00 7E 76 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 46 02 00 35 04 06 00 EC 74 A5 B9 D4 33 FE 0E D2 77 47 4A D2 EF [20:18:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 46 6C 47 00 F6 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 38 37 35 30 35 37 10 04 04 00 0C 46 02 00 F4 03 04 00 A1 1D 5F 66 B6 04 01 00 00 E1 F5 2F D7 B8 56 C5 29 [20:18:08]CommunicateWithHost err = 0 [20:18:08]CheckOFDResponse [20:18:08]1017 (14) - 77093643461234 [20:18:08]1041 (16) - 0000000000875057 [20:18:08]1040 (4) - 149004 [20:18:08]1012 (4) - 04.06.2024 13:58 [20:18:08]1206 (1) - 0 [20:18:08]OFD Sender: Remove packet 149004 [20:18:08]ProducePacketName [20:18:08]name=ofd_packets/00149004 [20:18:08]NVStorageDeleteData [20:18:08]Write to MH i2c: 01 00 00 F2 05 F7 [20:18:08]Write i2c OK [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: 01 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: 01 07 00 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 9D 0C A7 [20:18:08]RasterBufferAndPrint [20:18:08]line [20:18:08]line [20:18:08]line [20:18:08]line [20:18:08]line [20:18:08]written 0, free lines is 3233 [20:18:08]MH_Cut [20:18:08]Write to MH i2c: D1 01 00 F9 05 01 D0 [20:18:08]Write i2c OK [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: D1 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: D1 01 00 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: D1 01 00 F9 05 00 CF [20:18:08]Write to MH i2c: 01 00 00 FA 05 FF [20:18:08]Write i2c OK [20:18:08]MH_I2C_Read... [20:18:08]OFD Sender: No OFD packet to send [20:18:09]*** Cut start [20:18:09]*** Partial cut [20:18:09]*** CUTSNS_PIN = 1 [20:18:09]*** CUTSNS_PIN = 0 [20:18:09]*** Brake cut motor [20:18:10]Read from MH i2c: 01 [20:18:10]MH_I2C_Read... [20:18:10]*** Stop cut motor [20:18:10]*** Cut end [20:18:10]Read from MH i2c: 01 07 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: 01 07 00 FA 05 00 00 00 00 00 FF 0F 14 [20:18:10]process_action close_receipt done [20:18:10]requested_data is exist [20:18:10]produce_requested_data [20:18:10]requested_item fm.sn is exist - process it [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 11 00 00 [20:18:10]Write to MH i2c: E2 08 00 FB 05 80 11 00 00 00 00 00 00 7A [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 17 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 17 00 FB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CD [20:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:18:10]wFMCommunicate OK [20:18:10]requested_item fd.num is exist - process it [20:18:10]SAM_PROTO_GetFieldsCounters [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 13 00 00 [20:18:10]Write to MH i2c: E2 08 00 FC 05 80 13 00 00 00 00 00 00 7D [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 62 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 62 00 FC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [20:18:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:10]wFMCommunicate OK [20:18:10]SAM_PROTO_GetFieldsCounters done [20:18:10]requested_item shift.num is exist - process it [20:18:10]requested_item shift.opened is exist - process it [20:18:10]req_shift_opened [20:18:10]FM_GetShiftState [20:18:10]SAM_PROTO_GetShiftState [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 13 01 00 [20:18:10]Write to MH i2c: E2 08 00 FD 05 80 13 01 00 00 00 00 00 7F [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 0E 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 0E 00 FD 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 42 [20:18:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:18:10]wFMCommunicate OK [20:18:10]SAM_PROTO_GetShiftState done [20:18:10]FM_GetShiftState done [20:18:10]req_shift_opened done [20:18:10]requested_item shift.open_date is exist - process it [20:18:10]req_shift_open_date [20:18:10]req_shift_open_date done [20:18:10]produce_requested_data done [20:18:10]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149004,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:18:10]process_action_free close_receipt [20:18:10]json_value_free [20:18:10]json_value_free done [20:18:10]process_json_proto returns [20:18:10]Send response to host [20:18:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149004,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:18:10]free response buf [20:18:10]execute_script done [20:18:10]execute_script returns [20:18:10]free content buf [20:18:10]Sock 9.Close socket [20:18:10]Sock 9.Thread stoped [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:37]accept exits with 7 [20:24:37]New connection [20:24:37]New thread 3067219300 created [20:24:37]Thread 3067075940 joined [20:24:37]Waiting for new connection... [20:24:37] Sock 7.Parse request [20:24:37]Sock 7.Check first char [20:24:37]Sock 7.First char is OK [20:24:37]request: POST /json_proto HTTP/1.0 [20:24:37]Method: POST [20:24:37]URL: /json_proto [20:24:37]Method is POST - this is cgi request [20:24:37]url: /json_proto [20:24:37]query_string will be loaded in cgi processing [20:24:37]execute_cgi json_proto POST (null) [20:24:37]execute_cgi path=json_proto method=POST [20:24:37]POST find Content-Length [20:24:37]Host: 172.17.38.4:8080 [20:24:37]Content-Length: 670 [20:24:37]Content-Type: application/json [20:24:37] [20:24:37]POST finish read [20:24:37]Found Content-Length = 670 [20:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [20:24:37]execute_script... [20: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)979940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [20:24:37]POST & json_proto [20:24:37]process_json_proto [20:24:37]json parsed OK: [20:24:37]protocol is kg_v1.0 [20:24:37]action value=close_receipt [20:24:37]process_action close_receipt [20:24:37]cmd_close_receipt [20:24:37]MH_GetDate [20:24:37]Write to MH i2c: F0 00 00 FE 05 F2 [20:24:37]Write i2c OK [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: F0 [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: F0 09 00 [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: F0 09 00 FE 05 00 05 78 5F 66 CC 51 87 64 45 [20:24:37]GetLastDocTimeStamp 1717532286 [20:24:37]current date 1717532677 [20:24:37]FM_GetShiftState [20:24:37]SAM_PROTO_GetShiftState [20:24:37]wFMCommunicate request_size=4 [20:24:37]MH_SAM_APDU [20:24:37]CAPDU: 80 13 01 00 [20:24:37]Write to MH i2c: E2 08 00 FF 05 80 13 01 00 00 00 00 00 81 [20:24:37]Write i2c OK [20:24:37]MH_I2C_Read... [20:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:37]Read from MH i2c: E2 [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: E2 0E 00 [20:24:37]MH_I2C_Read... [20:24:37]Read from MH i2c: E2 0E 00 FF 05 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 44 [20:24:37]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:24:37]wFMCommunicate OK [20:24:37]SAM_PROTO_GetShiftState done [20:24:37]FM_GetShiftState done [20:24:37]opened in 1717460629 [20:24:37]opened+sec_in_day 1717547029 [20:24:37]quantity*price = 60023 [20:24:37]sum+1 = 60025 [20:24:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 344 04.06.2024 20:24 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149005 ФПД: 91361116733614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T202437&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149005&fm=91361116733614&tin=02508201610067®Number=0000000000092720&sum=60000 [20:24:38]StoreToDocumentArchive [20:24:38]shift 368 fd 149005 [20:24:38]save to /storage/0368/doc_00149005 [20:24:38]save last doc name /storage/0368/doc_00149005 to /storage/kkm_last_doc_name [20:24:38]save OK [20:24:38]Clear old archive folders... [20:24:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:24:38]tlvbuf is 009488E0 [20:24:38]SAM_PROTO_ClearQueue [20:24:38]wFMCommunicate request_size=4 [20:24:38]MH_SAM_APDU [20:24:38]CAPDU: 80 09 00 00 [20:24:38]Write to MH i2c: E2 08 00 0C 06 80 09 00 00 00 00 00 00 84 [20:24:38]Write i2c OK [20:24:38]MH_I2C_Read... [20:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:38]Read from MH i2c: E2 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: E2 03 00 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: E2 03 00 0C 06 00 90 00 86 [20:24:38]RAPDU: 90 00 [20:24:38]wFMCommunicate OK [20:24:38]SAM_PROTO_ClearQueue done [20:24:38]KKMCreateOFDPacket [20:24:38]OFDProtocolAddRootSTLVToBuf [20:24:38]FM_MakeSignedData [20:24:38]FM_MakeSignedData [20:24:38]SAM_PROTO_SignData [20:24:38]wFMCommunicate request_size=4 [20:24:38]MH_SAM_APDU [20:24:38]CAPDU: 80 0D 01 02 [20:24:38]Write to MH i2c: E2 08 00 0D 06 80 0D 01 02 00 00 00 00 8C [20:24:38]Write i2c OK [20:24:38]MH_I2C_Read... [20:24:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:38]Read from MH i2c: E2 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: E2 03 00 [20:24:38]MH_I2C_Read... [20:24:38]Read from MH i2c: E2 03 00 0D 06 00 90 00 87 [20:24:38]RAPDU: 90 00 [20:24:38]wFMCommunicate OK [20:24:38]wFMCommunicate request_size=255 [20:24:38]MH_SAM_APDU [20:24: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 55 50 45 52 20 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 58 01 00 00 F4 03 04 00 05 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 46 02 00 35 04 06 00 [20:24:38]Write to MH i2c: E2 02 01 0E 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 55 50 45 52 20 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 58 01 00 00 F4 03 04 00 05 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 46 02 00 35 04 06 00 00 00 E2 [20:24:38]Write i2c OK [20:24:38]MH_I2C_Read... [20:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:39]Read from MH i2c: E2 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 03 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 03 00 0E 06 00 90 00 88 [20:24:39]RAPDU: 90 00 [20:24:39]wFMCommunicate OK [20:24:39]wFMCommunicate request_size=11 [20:24:39]MH_SAM_APDU [20:24:39]CAPDU: 80 0D 02 02 06 53 17 AA E8 C0 AE [20:24:39]Write to MH i2c: E2 0E 00 0F 06 80 0D 02 02 06 00 53 17 AA E8 C0 AE 00 00 05 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:39]Read from MH i2c: E2 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 03 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 03 00 0F 06 00 90 00 89 [20:24:39]RAPDU: 90 00 [20:24:39]wFMCommunicate OK [20:24:39]wFMCommunicate request_size=4 [20:24:39]MH_SAM_APDU [20:24:39]CAPDU: 80 0D 03 02 [20:24:39]Write to MH i2c: E2 08 00 10 06 80 0D 03 02 00 00 00 00 91 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:39]Read from MH i2c: E2 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 0B 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 0B 00 10 06 00 3E EE B1 1D 69 2D E8 C1 90 00 CB [20:24:39]RAPDU: 3E EE B1 1D 69 2D E8 C1 90 00 [20:24:39]wFMCommunicate OK [20:24:39]SAM_PROTO_SignData done [20:24:39]FM_MakeSignedData done [20:24:39]CreateOFDProtocolMessage [20:24:39]wFMCommunicate request_size=4 [20:24:39]MH_SAM_APDU [20:24:39]CAPDU: 80 11 00 00 [20:24:39]Write to MH i2c: E2 08 00 11 06 80 11 00 00 00 00 00 00 91 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:39]Read from MH i2c: E2 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 17 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: E2 17 00 11 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E4 [20:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:24:39]wFMCommunicate OK [20:24:39]CreateOFDProtocolMessage done [20:24:39]OFDSenderStorePacket 149005 [20:24:39]StoreOFDPacket docnum=149005 [20:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 51 31 08 01 70 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 58 01 00 00 F4 03 04 00 05 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 46 02 00 35 04 06 00 53 17 AA E8 C0 AE 3E EE B1 1D 69 2D E8 C1 [20:24:39]CheckFolder [20:24:39]dirname=/storage/ofd_packets [20:24:39]CheckFolder done [20:24:39]ProducePacketName [20:24:39]name=ofd_packets/00149005 [20:24:39]NVStorageSaveData ofd_packets/00149005 [20:24:39]File name is /storage/ofd_packets/00149005 [20:24:39]Write 302 bytes [20:24:39]NVStorageSaveData done [20:24:39]OFDSenderStorePacket done [20:24:39]KKMCreateOFDPacket done [20:24:39]NVStorageSaveData kkm_last_timestamp [20:24:39]File name is /storage/kkm_last_timestamp [20:24:39]Write 4 bytes [20:24:39]NVStorageSaveData done [20:24:39]OFD Sender: Processing packet 149005 [packets to send 100, broken 99] [20:24:39]ProducePacketName [20:24:39]name=ofd_packets/00149005 [20:24:39]OFD Sender: To server: pG, [20:24:39]CommunicateWithHost lk.salyk.kg:30040 [20:24:39]ConnectInit lk.salyk.kg [20:24:39]ExternCall_PrintAddStr [20:24:39]wPrintStart [20:24:39]Write to MH i2c: 01 00 00 12 06 18 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: 01 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: 01 07 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: 01 07 00 12 06 00 00 00 00 00 FF 0F 2D [20:24:39]RasterBufferAndPrint [20:24:39]line Счет N : (1)979940 [20:24:39]line ИНН: 02508201610067 [20:24:39]line Контрольно-Кассовый Чек [20:24:39]line ПРОДАЖА [20:24:39]line ТРК (МРК, ГНК) : 33 [20:24:39]line Товар: 2710124130 [20:24:39]line SUPER 92-К-5 [20:24:39]line 8.840 * 67.90 [20:24:39]line = 600.24 [20:24:39]line НДС 12% НСП 1% [20:24:39]line > о реализуемом товаре [20:24:39]line ОКРУГЛЕНИЕ: -0.24 [20:24:39]line ИТОГО: 600.00 [20:24:39]line Внесено: 600.00 [20:24:39]line СДАЧА: 0.00 [20:24:39]line НСП 1% : 5.31 [20:24:39]line НДС 12% : 63.74 [20:24:39]line Наличными: 600.00 [20:24:39]line Безнал.: 0.00 [20:24:39]line Место: АЗС № 68 "Партнер Нефть" [20:24:39]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:24:39]line СНО: Общий режим [20:24:39]line Чек 344 04.06.2024 20:24 [20:24:39]line Смена: 368 ФФД: 1.0 [20:24:39]line ЗНМ: 0300000035 [20:24:39]line РНМ: 0000000000092720 [20:24:39]line Версия ККМ: 001 [20:24:39]line ФМ: 0000000000875057 [20:24:39]line ФД: 149005 [20:24:39]line ФПД: 91361116733614 [20:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T202437&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149005&fm=91361116733614&tin=02508201610067®Number=0000000000092720&sum=60000 [20:24:39]Connected sock=11 [20:24:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 51 31 08 01 70 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 58 01 00 00 F4 03 04 00 05 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 46 02 00 35 04 06 00 53 17 AA E8 C0 AE 3E EE B1 1D 69 2D E8 C1 [20:24:39]written 0, free lines is 4095 [20:24:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E7 D5 47 00 18 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 38 37 35 30 35 37 10 04 04 00 0D 46 02 00 F4 03 04 00 28 1F 5F 66 B6 04 01 00 00 55 8E D6 A8 99 57 B0 D6 [20:24:39]CommunicateWithHost err = 0 [20:24:39]CheckOFDResponse [20:24:39]1017 (14) - 77093643461234 [20:24:39]1041 (16) - 0000000000875057 [20:24:39]1040 (4) - 149005 [20:24:39]1012 (4) - 04.06.2024 14:05 [20:24:39]1206 (1) - 0 [20:24:39]OFD Sender: Remove packet 149005 [20:24:39]ProducePacketName [20:24:39]name=ofd_packets/00149005 [20:24:39]NVStorageDeleteData [20:24:40]Write to MH i2c: 01 00 00 3D 06 43 [20:24:40]Write i2c OK [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: 01 [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: 01 07 00 [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 82 0C D8 [20:24:40]RasterBufferAndPrint [20:24:40]line [20:24:40]line [20:24:40]line [20:24:40]line [20:24:40]line [20:24:40]written 0, free lines is 3206 [20:24:40]MH_Cut [20:24:40]Write to MH i2c: D1 01 00 44 06 01 1C [20:24:40]Write i2c OK [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: D1 [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: D1 01 00 [20:24:40]MH_I2C_Read... [20:24:40]Read from MH i2c: D1 01 00 44 06 00 1B [20:24:40]Write to MH i2c: 01 00 00 45 06 4B [20:24:40]Write i2c OK [20:24:40]MH_I2C_Read... [20:24:40]OFD Sender: No OFD packet to send [20:24:41]*** Cut start [20:24:41]*** Partial cut [20:24:41]*** CUTSNS_PIN = 1 [20:24:41]*** CUTSNS_PIN = 0 [20:24:41]*** Brake cut motor [20:24:41]Read from MH i2c: 01 [20:24:41]MH_I2C_Read... [20:24:41]*** Stop cut motor [20:24:41]*** Cut end [20:24:41]Read from MH i2c: 01 07 00 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 07 00 45 06 00 00 00 00 00 FF 0F 60 [20:24:41]process_action close_receipt done [20:24:41]requested_data is exist [20:24:41]produce_requested_data [20:24:41]requested_item fm.sn is exist - process it [20:24:41]wFMCommunicate request_size=4 [20:24:41]MH_SAM_APDU [20:24:41]CAPDU: 80 11 00 00 [20:24:41]Write to MH i2c: E2 08 00 46 06 80 11 00 00 00 00 00 00 C6 [20:24:41]Write i2c OK [20:24:41]MH_I2C_Read... [20:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:41]Read from MH i2c: E2 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: E2 17 00 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: E2 17 00 46 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 19 [20:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:24:41]wFMCommunicate OK [20:24:41]requested_item fd.num is exist - process it [20:24:41]SAM_PROTO_GetFieldsCounters [20:24:41]wFMCommunicate request_size=4 [20:24:41]MH_SAM_APDU [20:24:41]CAPDU: 80 13 00 00 [20:24:41]Write to MH i2c: E2 08 00 47 06 80 13 00 00 00 00 00 00 C9 [20:24:41]Write i2c OK [20:24:41]MH_I2C_Read... [20:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:42]Read from MH i2c: E2 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: E2 62 00 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: E2 62 00 47 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [20:24:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:42]wFMCommunicate OK [20:24:42]SAM_PROTO_GetFieldsCounters done [20:24:42]requested_item shift.num is exist - process it [20:24:42]requested_item shift.opened is exist - process it [20:24:42]req_shift_opened [20:24:42]FM_GetShiftState [20:24:42]SAM_PROTO_GetShiftState [20:24:42]wFMCommunicate request_size=4 [20:24:42]MH_SAM_APDU [20:24:42]CAPDU: 80 13 01 00 [20:24:42]Write to MH i2c: E2 08 00 48 06 80 13 01 00 00 00 00 00 CB [20:24:42]Write i2c OK [20:24:42]MH_I2C_Read... [20:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:42]Read from MH i2c: E2 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: E2 0E 00 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: E2 0E 00 48 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 8E [20:24:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:24:42]wFMCommunicate OK [20:24:42]SAM_PROTO_GetShiftState done [20:24:42]FM_GetShiftState done [20:24:42]req_shift_opened done [20:24:42]requested_item shift.open_date is exist - process it [20:24:42]req_shift_open_date [20:24:42]req_shift_open_date done [20:24:42]produce_requested_data done [20:24:42]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149005,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:24:42]process_action_free close_receipt [20:24:42]json_value_free [20:24:42]json_value_free done [20:24:42]process_json_proto returns [20:24:42]Send response to host [20:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149005,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:24:42]free response buf [20:24:42]execute_script done [20:24:42]execute_script returns [20:24:42]free content buf [20:24:42]Sock 7.Close socket [20:24:42]Sock 7.Thread stoped [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:26:56]accept exits with 9 [20:26:56]New connection [20:26:56]New thread 3067075940 created [20:26:56]Thread 3067219300 joined [20:26:56]Waiting for new connection... [20:26:56] Sock 9.Parse request [20:26:56]Sock 9.Check first char [20:26:56]Sock 9.First char is OK [20:26:56]request: POST /json_proto HTTP/1.0 [20:26:56]Method: POST [20:26:56]URL: /json_proto [20:26:56]Method is POST - this is cgi request [20:26:56]url: /json_proto [20:26:56]query_string will be loaded in cgi processing [20:26:56]execute_cgi json_proto POST (null) [20:26:56]execute_cgi path=json_proto method=POST [20:26:56]POST find Content-Length [20:26:56]Host: 172.17.38.4:8080 [20:26:56]Content-Length: 677 [20:26:56]Content-Type: application/json [20:26:56] [20:26:56]POST finish read [20:26:56]Found Content-Length = 677 [20:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:56]execute_script... [20:26: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)979941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:56]POST & json_proto [20:26:56]process_json_proto [20:26:56]json parsed OK: [20:26:56]protocol is kg_v1.0 [20:26:56]action value=close_receipt [20:26:56]process_action close_receipt [20:26:56]cmd_close_receipt [20:26:56]MH_GetDate [20:26:56]Write to MH i2c: F0 00 00 49 06 3E [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 09 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 09 00 49 06 00 91 78 5F 66 CC 51 87 64 1D [20:26:56]GetLastDocTimeStamp 1717532677 [20:26:56]current date 1717532817 [20:26:56]FM_GetShiftState [20:26:56]SAM_PROTO_GetShiftState [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 13 01 00 [20:26:56]Write to MH i2c: E2 08 00 4A 06 80 13 01 00 00 00 00 00 CD [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 4A 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 90 [20:26:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:26:56]wFMCommunicate OK [20:26:56]SAM_PROTO_GetShiftState done [20:26:56]FM_GetShiftState done [20:26:56]opened in 1717460629 [20:26:56]opened+sec_in_day 1717547029 [20:26:56]quantity*price = 30038 [20:26:56]sum+1 = 30039 [20:26: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 345 04.06.2024 20:26 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149006 ФПД: 234911836951249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T202657&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149006&fm=234911836951249&tin=02508201610067®Number=0000000000092720&sum=30000 [20:26:57]StoreToDocumentArchive [20:26:57]shift 368 fd 149006 [20:26:57]save to /storage/0368/doc_00149006 [20:26:57]save last doc name /storage/0368/doc_00149006 to /storage/kkm_last_doc_name [20:26:57]save OK [20:26:57]Clear old archive folders... [20:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:57]tlvbuf is 00971540 [20:26:57]SAM_PROTO_ClearQueue [20:26:57]wFMCommunicate request_size=4 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 09 00 00 [20:26:57]Write to MH i2c: E2 08 00 57 06 80 09 00 00 00 00 00 00 CF [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 57 06 00 90 00 D1 [20:26:57]RAPDU: 90 00 [20:26:57]wFMCommunicate OK [20:26:57]SAM_PROTO_ClearQueue done [20:26:57]KKMCreateOFDPacket [20:26:57]OFDProtocolAddRootSTLVToBuf [20:26:57]FM_MakeSignedData [20:26:57]FM_MakeSignedData [20:26:57]SAM_PROTO_SignData [20:26:57]wFMCommunicate request_size=4 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 0D 01 02 [20:26:57]Write to MH i2c: E2 08 00 58 06 80 0D 01 02 00 00 00 00 D7 [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 58 06 00 90 00 D2 [20:26:57]RAPDU: 90 00 [20:26:57]wFMCommunicate OK [20:26:57]wFMCommunicate request_size=255 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 59 01 00 00 F4 03 04 00 91 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 46 02 00 35 04 06 00 D5 [20:26:57]Write to MH i2c: E2 02 01 59 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 59 01 00 00 F4 03 04 00 91 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 46 02 00 35 04 06 00 D5 00 00 19 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 59 06 00 90 00 D3 [20:26:58]RAPDU: 90 00 [20:26:58]wFMCommunicate OK [20:26:58]wFMCommunicate request_size=10 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 0D 02 02 05 A6 AC 98 52 D1 [20:26:58]Write to MH i2c: E2 0D 00 5A 06 80 0D 02 02 05 00 A6 AC 98 52 D1 00 00 F1 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 5A 06 00 90 00 D4 [20:26:58]RAPDU: 90 00 [20:26:58]wFMCommunicate OK [20:26:58]wFMCommunicate request_size=4 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 0D 03 02 [20:26:58]Write to MH i2c: E2 08 00 5B 06 80 0D 03 02 00 00 00 00 DC [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 0B 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 0B 00 5B 06 00 30 B1 22 E0 ED C2 84 82 90 00 75 [20:26:58]RAPDU: 30 B1 22 E0 ED C2 84 82 90 00 [20:26:58]wFMCommunicate OK [20:26:58]SAM_PROTO_SignData done [20:26:58]FM_MakeSignedData done [20:26:58]CreateOFDProtocolMessage [20:26:58]wFMCommunicate request_size=4 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 11 00 00 [20:26:58]Write to MH i2c: E2 08 00 5C 06 80 11 00 00 00 00 00 00 DC [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 17 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 17 00 5C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2F [20:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:26:58]wFMCommunicate OK [20:26:58]CreateOFDProtocolMessage done [20:26:58]OFDSenderStorePacket 149006 [20:26:58]StoreOFDPacket docnum=149006 [20:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E4 29 07 01 5D 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 91 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 46 02 00 35 04 06 00 D5 A6 AC 98 52 D1 30 B1 22 E0 ED C2 84 82 [20:26:58]CheckFolder [20:26:58]dirname=/storage/ofd_packets [20:26:58]CheckFolder done [20:26:58]ProducePacketName [20:26:58]name=ofd_packets/00149006 [20:26:58]NVStorageSaveData ofd_packets/00149006 [20:26:58]File name is /storage/ofd_packets/00149006 [20:26:58]Write 301 bytes [20:26:58]NVStorageSaveData done [20:26:58]OFDSenderStorePacket done [20:26:58]KKMCreateOFDPacket done [20:26:58]NVStorageSaveData kkm_last_timestamp [20:26:58]File name is /storage/kkm_last_timestamp [20:26:58]Write 4 bytes [20:26:58]NVStorageSaveData done [20:26:58]ExternCall_PrintAddStr [20:26:58]wPrintStart [20:26:58]Write to MH i2c: 01 00 00 5D 06 63 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 07 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 07 00 5D 06 00 00 00 00 00 FF 0F 78 [20:26:58]RasterBufferAndPrint [20:26:58]line Счет N : (1)979941 [20:26:58]line ИНН: 02508201610067 [20:26:58]line Контрольно-Кассовый Чек [20:26:58]line ПРОДАЖА [20:26:58]line ТРК (МРК, ГНК) : 22 [20:26:58]line Товар: 2710124130 [20:26:58]line Аи-92-К-5 [20:26:58]line 4.490 * 66.90 [20:26:58]line = 300.38 [20:26:58]line НДС 12% НСП 1% [20:26:58]line > о реализуемом товаре [20:26:58]line ОКРУГЛЕНИЕ: -0.38 [20:26:58]line ИТОГО: 300.00 [20:26:58]line Внесено: 300.00 [20:26:58]line СДАЧА: 0.00 [20:26:58]line НСП 1% : 2.66 [20:26:58]line НДС 12% : 31.90 [20:26:58]line Наличными: 300.00 [20:26:58]line Безнал.: 0.00 [20:26:58]line Место: АЗС № 68 "Партнер Нефть" [20:26:58]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:26:58]line СНО: Общий режим [20:26:58]line Чек 345 04.06.2024 20:26 [20:26:58]line Смена: 368 ФФД: 1.0 [20:26:58]line ЗНМ: 0300000035 [20:26:58]line РНМ: 0000000000092720 [20:26:58]line Версия ККМ: 001 [20:26:58]line ФМ: 0000000000875057 [20:26:58]line ФД: 149006 [20:26:58]line ФПД: 234911836951249 [20:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T202657&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149006&fm=234911836951249&tin=02508201610067®Number=0000000000092720&sum=30000 [20:26:58]OFD Sender: Processing packet 149006 [packets to send 100, broken 99] [20:26:58]ProducePacketName [20:26:58]name=ofd_packets/00149006 [20:26:58]OFD Sender: To server: pG, [20:26:58]CommunicateWithHost lk.salyk.kg:30040 [20:26:58]ConnectInit lk.salyk.kg [20:26:58]written 0, free lines is 4095 [20:26:58]Connected sock=10 [20:26:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E4 29 07 01 5D 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 91 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 46 02 00 35 04 06 00 D5 A6 AC 98 52 D1 30 B1 22 E0 ED C2 84 82 [20:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 FA 94 47 00 BB 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 46 02 00 F4 03 04 00 B4 1F 5F 66 B6 04 01 00 00 21 36 7E 96 B7 CE 2B E2 [20:26:59]CommunicateWithHost err = 0 [20:26:59]CheckOFDResponse [20:26:59]1017 (14) - 77093643461234 [20:26:59]1041 (16) - 0000000000875057 [20:26:59]1040 (4) - 149006 [20:26:59]1012 (4) - 04.06.2024 14:07 [20:26:59]1206 (1) - 0 [20:26:59]OFD Sender: Remove packet 149006 [20:26:59]ProducePacketName [20:26:59]name=ofd_packets/00149006 [20:26:59]NVStorageDeleteData [20:26:59]Write to MH i2c: 01 00 00 88 06 8E [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 07 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 07 00 88 06 00 00 00 00 00 7F 0C 20 [20:26:59]RasterBufferAndPrint [20:26:59]line [20:26:59]line [20:26:59]line [20:26:59]line [20:26:59]line [20:26:59]written 0, free lines is 3202 [20:26:59]MH_Cut [20:26:59]Write to MH i2c: D1 01 00 8F 06 01 67 [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: D1 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: D1 01 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: D1 01 00 8F 06 00 66 [20:26:59]Write to MH i2c: 01 00 00 90 06 96 [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]OFD Sender: No OFD packet to send [20:27:00]*** Cut start [20:27:00]*** Partial cut [20:27:00]*** CUTSNS_PIN = 1 [20:27:00]*** CUTSNS_PIN = 0 [20:27:00]*** Brake cut motor [20:27:00]Read from MH i2c: 01 [20:27:01]MH_I2C_Read... [20:27:01]*** Stop cut motor [20:27:01]*** Cut end [20:27:01]Read from MH i2c: 01 07 00 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 FF 0F AB [20:27:01]process_action close_receipt done [20:27:01]requested_data is exist [20:27:01]produce_requested_data [20:27:01]requested_item fm.sn is exist - process it [20:27:01]wFMCommunicate request_size=4 [20:27:01]MH_SAM_APDU [20:27:01]CAPDU: 80 11 00 00 [20:27:01]Write to MH i2c: E2 08 00 91 06 80 11 00 00 00 00 00 00 11 [20:27:01]Write i2c OK [20:27:01]MH_I2C_Read... [20:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:01]Read from MH i2c: E2 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 17 00 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 17 00 91 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 64 [20:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:27:01]wFMCommunicate OK [20:27:01]requested_item fd.num is exist - process it [20:27:01]SAM_PROTO_GetFieldsCounters [20:27:01]wFMCommunicate request_size=4 [20:27:01]MH_SAM_APDU [20:27:01]CAPDU: 80 13 00 00 [20:27:01]Write to MH i2c: E2 08 00 92 06 80 13 00 00 00 00 00 00 14 [20:27:01]Write i2c OK [20:27:01]MH_I2C_Read... [20:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:01]Read from MH i2c: E2 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 62 00 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 62 00 92 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0E 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [20:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0E 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:01]wFMCommunicate OK [20:27:01]SAM_PROTO_GetFieldsCounters done [20:27:01]requested_item shift.num is exist - process it [20:27:01]requested_item shift.opened is exist - process it [20:27:01]req_shift_opened [20:27:01]FM_GetShiftState [20:27:01]SAM_PROTO_GetShiftState [20:27:01]wFMCommunicate request_size=4 [20:27:01]MH_SAM_APDU [20:27:01]CAPDU: 80 13 01 00 [20:27:01]Write to MH i2c: E2 08 00 93 06 80 13 01 00 00 00 00 00 16 [20:27:01]Write i2c OK [20:27:01]MH_I2C_Read... [20:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:01]Read from MH i2c: E2 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 0E 00 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 0E 00 93 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D9 [20:27:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:27:01]wFMCommunicate OK [20:27:01]SAM_PROTO_GetShiftState done [20:27:01]FM_GetShiftState done [20:27:01]req_shift_opened done [20:27:01]requested_item shift.open_date is exist - process it [20:27:01]req_shift_open_date [20:27:01]req_shift_open_date done [20:27:01]produce_requested_data done [20:27:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149006,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:27:01]process_action_free close_receipt [20:27:01]json_value_free [20:27:01]json_value_free done [20:27:01]process_json_proto returns [20:27:01]Send response to host [20:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149006,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:27:01]free response buf [20:27:01]execute_script done [20:27:01]execute_script returns [20:27:01]free content buf [20:27:01]Sock 9.Close socket [20:27:01]Sock 9.Thread stoped [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:42]accept exits with 7 [20:27:42]New connection [20:27:42]New thread 3067219300 created [20:27:42]Thread 3067075940 joined [20:27:42]Waiting for new connection... [20:27:42] Sock 7.Parse request [20:27:42]Sock 7.Check first char [20:27:42]Sock 7.First char is OK [20:27:42]request: POST /json_proto HTTP/1.0 [20:27:42]Method: POST [20:27:42]URL: /json_proto [20:27:42]Method is POST - this is cgi request [20:27:42]url: /json_proto [20:27:42]query_string will be loaded in cgi processing [20:27:42]execute_cgi json_proto POST (null) [20:27:42]execute_cgi path=json_proto method=POST [20:27:42]POST find Content-Length [20:27:42]Host: 172.17.38.4:8080 [20:27:42]Content-Length: 677 [20:27:42]Content-Type: application/json [20:27:42] [20:27:42]POST finish read [20:27:42]Found Content-Length = 677 [20:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:42]execute_script... [20:27:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:42]POST & json_proto [20:27:42]process_json_proto [20:27:42]json parsed OK: [20:27:42]protocol is kg_v1.0 [20:27:42]action value=close_receipt [20:27:42]process_action close_receipt [20:27:42]cmd_close_receipt [20:27:42]MH_GetDate [20:27:42]Write to MH i2c: F0 00 00 94 06 89 [20:27:42]Write i2c OK [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: F0 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: F0 09 00 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: F0 09 00 94 06 00 BF 78 5F 66 CC 51 87 64 96 [20:27:42]GetLastDocTimeStamp 1717532817 [20:27:42]current date 1717532863 [20:27:42]FM_GetShiftState [20:27:42]SAM_PROTO_GetShiftState [20:27:42]wFMCommunicate request_size=4 [20:27:42]MH_SAM_APDU [20:27:42]CAPDU: 80 13 01 00 [20:27:42]Write to MH i2c: E2 08 00 95 06 80 13 01 00 00 00 00 00 18 [20:27:42]Write i2c OK [20:27:42]MH_I2C_Read... [20:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:42]Read from MH i2c: E2 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: E2 0E 00 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: E2 0E 00 95 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DB [20:27:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:27:42]wFMCommunicate OK [20:27:42]SAM_PROTO_GetShiftState done [20:27:42]FM_GetShiftState done [20:27:42]opened in 1717460629 [20:27:42]opened+sec_in_day 1717547029 [20:27:42]quantity*price = 21006 [20:27:42]sum+1 = 21008 [20:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 346 04.06.2024 20:27 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149007 ФПД: 203858429475794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T202743&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149007&fm=203858429475794&tin=02508201610067®Number=0000000000092720&sum=21000 [20:27:44]StoreToDocumentArchive [20:27:44]shift 368 fd 149007 [20:27:44]save to /storage/0368/doc_00149007 [20:27:44]save last doc name /storage/0368/doc_00149007 to /storage/kkm_last_doc_name [20:27:44]save OK [20:27:44]Clear old archive folders... [20:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:44]tlvbuf is 009713A0 [20:27:44]SAM_PROTO_ClearQueue [20:27:44]wFMCommunicate request_size=4 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 09 00 00 [20:27:44]Write to MH i2c: E2 08 00 A2 06 80 09 00 00 00 00 00 00 1A [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:44]Read from MH i2c: E2 03 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 A2 06 00 90 00 1C [20:27:44]RAPDU: 90 00 [20:27:44]wFMCommunicate OK [20:27:44]SAM_PROTO_ClearQueue done [20:27:44]KKMCreateOFDPacket [20:27:44]OFDProtocolAddRootSTLVToBuf [20:27:44]FM_MakeSignedData [20:27:44]FM_MakeSignedData [20:27:44]SAM_PROTO_SignData [20:27:44]wFMCommunicate request_size=4 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 0D 01 02 [20:27:44]Write to MH i2c: E2 08 00 A3 06 80 0D 01 02 00 00 00 00 22 [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 A3 06 00 90 00 1D [20:27:44]RAPDU: 90 00 [20:27:44]wFMCommunicate OK [20:27:44]wFMCommunicate request_size=255 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 BF 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 46 02 00 35 04 06 00 B9 [20:27:44]Write to MH i2c: E2 02 01 A4 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 BF 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 46 02 00 35 04 06 00 B9 00 00 19 [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 A4 06 00 90 00 1E [20:27:44]RAPDU: 90 00 [20:27:44]wFMCommunicate OK [20:27:44]wFMCommunicate request_size=10 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 0D 02 02 05 68 7D 45 FB D2 [20:27:44]Write to MH i2c: E2 0D 00 A5 06 80 0D 02 02 05 00 68 7D 45 FB D2 00 00 26 [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 A5 06 00 90 00 1F [20:27:44]RAPDU: 90 00 [20:27:44]wFMCommunicate OK [20:27:44]wFMCommunicate request_size=4 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 0D 03 02 [20:27:44]Write to MH i2c: E2 08 00 A6 06 80 0D 03 02 00 00 00 00 27 [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 0B 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 0B 00 A6 06 00 B3 41 F8 2C F9 F9 BD DB 90 00 CA [20:27:44]RAPDU: B3 41 F8 2C F9 F9 BD DB 90 00 [20:27:44]wFMCommunicate OK [20:27:44]SAM_PROTO_SignData done [20:27:44]FM_MakeSignedData done [20:27:44]CreateOFDProtocolMessage [20:27:44]wFMCommunicate request_size=4 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 11 00 00 [20:27:44]Write to MH i2c: E2 08 00 A7 06 80 11 00 00 00 00 00 00 27 [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 17 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 17 00 A7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7A [20:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:27:44]wFMCommunicate OK [20:27:44]CreateOFDProtocolMessage done [20:27:44]OFDSenderStorePacket 149007 [20:27:44]StoreOFDPacket docnum=149007 [20:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 74 3E 07 01 85 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 BF 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 46 02 00 35 04 06 00 B9 68 7D 45 FB D2 B3 41 F8 2C F9 F9 BD DB [20:27:44]CheckFolder [20:27:44]dirname=/storage/ofd_packets [20:27:44]CheckFolder done [20:27:44]ProducePacketName [20:27:44]name=ofd_packets/00149007 [20:27:44]NVStorageSaveData ofd_packets/00149007 [20:27:44]File name is /storage/ofd_packets/00149007 [20:27:44]Write 301 bytes [20:27:44]NVStorageSaveData done [20:27:44]OFDSenderStorePacket done [20:27:44]KKMCreateOFDPacket done [20:27:44]NVStorageSaveData kkm_last_timestamp [20:27:44]File name is /storage/kkm_last_timestamp [20:27:44]Write 4 bytes [20:27:44]NVStorageSaveData done [20:27:44]ExternCall_PrintAddStr [20:27:44]wPrintStart [20:27:44]Write to MH i2c: 01 00 00 A8 06 AE [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: 01 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: 01 07 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: 01 07 00 A8 06 00 00 00 00 00 FF 0F C3 [20:27:44]RasterBufferAndPrint [20:27:44]line Счет N : (1)979942 [20:27:44]line ИНН: 02508201610067 [20:27:44]line Контрольно-Кассовый Чек [20:27:44]line ПРОДАЖА [20:27:44]line ТРК (МРК, ГНК) : 41 [20:27:44]line Товар: 2710124130 [20:27:44]line Аи-92-К-5 [20:27:44]line 3.140 * 66.90 [20:27:44]line = 210.07 [20:27:44]line НДС 12% НСП 1% [20:27:44]line > о реализуемом товаре [20:27:44]line ОКРУГЛЕНИЕ: -0.07 [20:27:44]line ИТОГО: 210.00 [20:27:44]line Внесено: 210.00 [20:27:44]line СДАЧА: 0.00 [20:27:44]line НСП 1% : 1.86 [20:27:44]line НДС 12% : 22.31 [20:27:44]line Наличными: 210.00 [20:27:44]line Безнал.: 0.00 [20:27:44]line Место: АЗС № 68 "Партнер Нефть" [20:27:44]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:27:44]line СНО: Общий режим [20:27:44]line Чек 346 04.06.2024 20:27 [20:27:44]line Смена: 368 ФФД: 1.0 [20:27:44]line ЗНМ: 0300000035 [20:27:44]line РНМ: 0000000000092720 [20:27:44]line Версия ККМ: 001 [20:27:44]line ФМ: 0000000000875057 [20:27:44]line ФД: 149007 [20:27:44]line ФПД: 203858429475794 [20:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T202743&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149007&fm=203858429475794&tin=02508201610067®Number=0000000000092720&sum=21000 [20:27:44]OFD Sender: Processing packet 149007 [packets to send 100, broken 99] [20:27:44]ProducePacketName [20:27:44]name=ofd_packets/00149007 [20:27:44]OFD Sender: To server: pG, [20:27:44]CommunicateWithHost lk.salyk.kg:30040 [20:27:44]ConnectInit lk.salyk.kg [20:27:44]written 0, free lines is 4095 [20:27:45]Connected sock=10 [20:27:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 74 3E 07 01 85 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 BF 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 46 02 00 35 04 06 00 B9 68 7D 45 FB D2 B3 41 F8 2C F9 F9 BD DB [20:27:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DD 80 47 00 71 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 46 02 00 F4 03 04 00 E2 1F 5F 66 B6 04 01 00 00 44 42 FF 54 F1 52 31 26 [20:27:45]CommunicateWithHost err = 0 [20:27:45]CheckOFDResponse [20:27:45]1017 (14) - 77093643461234 [20:27:45]1041 (16) - 0000000000875057 [20:27:45]1040 (4) - 149007 [20:27:45]1012 (4) - 04.06.2024 14:08 [20:27:45]1206 (1) - 0 [20:27:45]OFD Sender: Remove packet 149007 [20:27:45]ProducePacketName [20:27:45]name=ofd_packets/00149007 [20:27:45]NVStorageDeleteData [20:27:45]Write to MH i2c: 01 00 00 D3 06 D9 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 D3 06 00 00 00 00 00 8E 0C 7A [20:27:45]RasterBufferAndPrint [20:27:45]line [20:27:45]line [20:27:45]line [20:27:45]line [20:27:45]line [20:27:45]written 0, free lines is 3218 [20:27:45]MH_Cut [20:27:45]Write to MH i2c: D1 01 00 DA 06 01 B2 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: D1 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: D1 01 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: D1 01 00 DA 06 00 B1 [20:27:45]Write to MH i2c: 01 00 00 DB 06 E1 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]OFD Sender: No OFD packet to send [20:27:46]*** Cut start [20:27:46]*** Partial cut [20:27:46]*** CUTSNS_PIN = 1 [20:27:46]*** CUTSNS_PIN = 0 [20:27:46]*** Brake cut motor [20:27:47]Read from MH i2c: 01 [20:27:47]MH_I2C_Read... [20:27:47]*** Stop cut motor [20:27:47]*** Cut end [20:27:47]Read from MH i2c: 01 07 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 DB 06 00 00 00 00 00 FF 0F F6 [20:27:47]process_action close_receipt done [20:27:47]requested_data is exist [20:27:47]produce_requested_data [20:27:47]requested_item fm.sn is exist - process it [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 11 00 00 [20:27:47]Write to MH i2c: E2 08 00 DC 06 80 11 00 00 00 00 00 00 5C [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 17 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 17 00 DC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AF [20:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:27:47]wFMCommunicate OK [20:27:47]requested_item fd.num is exist - process it [20:27:47]SAM_PROTO_GetFieldsCounters [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 13 00 00 [20:27:47]Write to MH i2c: E2 08 00 DD 06 80 13 00 00 00 00 00 00 5F [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 62 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 62 00 DD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0F 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [20:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0F 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:47]wFMCommunicate OK [20:27:47]SAM_PROTO_GetFieldsCounters done [20:27:47]requested_item shift.num is exist - process it [20:27:47]requested_item shift.opened is exist - process it [20:27:47]req_shift_opened [20:27:47]FM_GetShiftState [20:27:47]SAM_PROTO_GetShiftState [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 13 01 00 [20:27:47]Write to MH i2c: E2 08 00 DE 06 80 13 01 00 00 00 00 00 61 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 0E 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 0E 00 DE 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 24 [20:27:47]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:27:47]wFMCommunicate OK [20:27:47]SAM_PROTO_GetShiftState done [20:27:47]FM_GetShiftState done [20:27:47]req_shift_opened done [20:27:47]requested_item shift.open_date is exist - process it [20:27:47]req_shift_open_date [20:27:47]req_shift_open_date done [20:27:47]produce_requested_data done [20:27:47]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149007,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:27:47]process_action_free close_receipt [20:27:47]json_value_free [20:27:47]json_value_free done [20:27:47]process_json_proto returns [20:27:47]Send response to host [20:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149007,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:27:47]free response buf [20:27:47]execute_script done [20:27:47]execute_script returns [20:27:47]free content buf [20:27:47]Sock 7.Close socket [20:27:47]Sock 7.Thread stoped [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:12]accept exits with 9 [20:28:12]New connection [20:28:12]New thread 3067075940 created [20:28:12]Thread 3067219300 joined [20:28:12]Waiting for new connection... [20:28:12] Sock 9.Parse request [20:28:12]Sock 9.Check first char [20:28:12]Sock 9.First char is OK [20:28:12]request: POST /json_proto HTTP/1.0 [20:28:12]Method: POST [20:28:12]URL: /json_proto [20:28:12]Method is POST - this is cgi request [20:28:12]url: /json_proto [20:28:12]query_string will be loaded in cgi processing [20:28:12]execute_cgi json_proto POST (null) [20:28:12]execute_cgi path=json_proto method=POST [20:28:12]POST find Content-Length [20:28:12]Host: 172.17.38.4:8080 [20:28:12]Content-Length: 677 [20:28:12]Content-Type: application/json [20:28:12] [20:28:12]POST finish read [20:28:12]Found Content-Length = 677 [20:28:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:12]execute_script... [20:28: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)979943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:12]POST & json_proto [20:28:12]process_json_proto [20:28:12]json parsed OK: [20:28:12]protocol is kg_v1.0 [20:28:12]action value=close_receipt [20:28:12]process_action close_receipt [20:28:12]cmd_close_receipt [20:28:12]MH_GetDate [20:28:12]Write to MH i2c: F0 00 00 DF 06 D4 [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: F0 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: F0 09 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: F0 09 00 DF 06 00 DD 78 5F 66 CC 51 87 64 FF [20:28:12]GetLastDocTimeStamp 1717532863 [20:28:12]current date 1717532893 [20:28:12]FM_GetShiftState [20:28:12]SAM_PROTO_GetShiftState [20:28:12]wFMCommunicate request_size=4 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 13 01 00 [20:28:12]Write to MH i2c: E2 08 00 E0 06 80 13 01 00 00 00 00 00 63 [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 0E 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 0E 00 E0 06 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 26 [20:28:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:28:12]wFMCommunicate OK [20:28:12]SAM_PROTO_GetShiftState done [20:28:12]FM_GetShiftState done [20:28:12]opened in 1717460629 [20:28:12]opened+sec_in_day 1717547029 [20:28:12]quantity*price = 35055 [20:28:12]sum+1 = 35057 [20:28:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 347 04.06.2024 20:28 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149008 ФПД: 5700883979906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T202813&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149008&fm=5700883979906&tin=02508201610067®Number=0000000000092720&sum=35000 [20:28:13]StoreToDocumentArchive [20:28:13]shift 368 fd 149008 [20:28:13]save to /storage/0368/doc_00149008 [20:28:13]save last doc name /storage/0368/doc_00149008 to /storage/kkm_last_doc_name [20:28:13]save OK [20:28:13]Clear old archive folders... [20:28:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:13]tlvbuf is 009495A0 [20:28:13]SAM_PROTO_ClearQueue [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 09 00 00 [20:28:13]Write to MH i2c: E2 08 00 ED 06 80 09 00 00 00 00 00 00 65 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:13]Read from MH i2c: E2 03 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 ED 06 00 90 00 67 [20:28:13]RAPDU: 90 00 [20:28:13]wFMCommunicate OK [20:28:13]SAM_PROTO_ClearQueue done [20:28:13]KKMCreateOFDPacket [20:28:13]OFDProtocolAddRootSTLVToBuf [20:28:13]FM_MakeSignedData [20:28:13]FM_MakeSignedData [20:28:13]SAM_PROTO_SignData [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 0D 01 02 [20:28:13]Write to MH i2c: E2 08 00 EE 06 80 0D 01 02 00 00 00 00 6D [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 EE 06 00 90 00 68 [20:28:13]RAPDU: 90 00 [20:28:13]wFMCommunicate OK [20:28:13]wFMCommunicate request_size=255 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5B 01 00 00 F4 03 04 00 DD 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 46 02 00 35 04 06 00 05 [20:28:13]Write to MH i2c: E2 02 01 EF 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5B 01 00 00 F4 03 04 00 DD 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 46 02 00 35 04 06 00 05 00 00 46 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 EF 06 00 90 00 69 [20:28:14]RAPDU: 90 00 [20:28:14]wFMCommunicate OK [20:28:14]wFMCommunicate request_size=10 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 0D 02 02 05 2F 57 2A 1E 82 [20:28:14]Write to MH i2c: E2 0D 00 F0 06 80 0D 02 02 05 00 2F 57 2A 1E 82 00 00 CA [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 F0 06 00 90 00 6A [20:28:14]RAPDU: 90 00 [20:28:14]wFMCommunicate OK [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 0D 03 02 [20:28:14]Write to MH i2c: E2 08 00 F1 06 80 0D 03 02 00 00 00 00 72 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 0B 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 0B 00 F1 06 00 50 D2 63 C2 1C E8 C7 37 90 00 BC [20:28:14]RAPDU: 50 D2 63 C2 1C E8 C7 37 90 00 [20:28:14]wFMCommunicate OK [20:28:14]SAM_PROTO_SignData done [20:28:14]FM_MakeSignedData done [20:28:14]CreateOFDProtocolMessage [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 11 00 00 [20:28:14]Write to MH i2c: E2 08 00 F2 06 80 11 00 00 00 00 00 00 72 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 17 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 17 00 F2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C5 [20:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:28:14]wFMCommunicate OK [20:28:14]CreateOFDProtocolMessage done [20:28:14]OFDSenderStorePacket 149008 [20:28:14]StoreOFDPacket docnum=149008 [20:28:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 53 E3 07 01 0B 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 DD 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 46 02 00 35 04 06 00 05 2F 57 2A 1E 82 50 D2 63 C2 1C E8 C7 37 [20:28:14]CheckFolder [20:28:14]dirname=/storage/ofd_packets [20:28:14]CheckFolder done [20:28:14]ProducePacketName [20:28:14]name=ofd_packets/00149008 [20:28:14]NVStorageSaveData ofd_packets/00149008 [20:28:14]File name is /storage/ofd_packets/00149008 [20:28:14]Write 301 bytes [20:28:14]NVStorageSaveData done [20:28:14]OFDSenderStorePacket done [20:28:14]KKMCreateOFDPacket done [20:28:14]NVStorageSaveData kkm_last_timestamp [20:28:14]File name is /storage/kkm_last_timestamp [20:28:14]Write 4 bytes [20:28:14]NVStorageSaveData done [20:28:14]ExternCall_PrintAddStr [20:28:14]wPrintStart [20:28:14]Write to MH i2c: 01 00 00 F3 06 F9 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 07 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 07 00 F3 06 00 00 00 00 00 FF 0F 0E [20:28:14]RasterBufferAndPrint [20:28:14]line Счет N : (1)979943 [20:28:14]line ИНН: 02508201610067 [20:28:14]line Контрольно-Кассовый Чек [20:28:14]line ПРОДАЖА [20:28:14]line ТРК (МРК, ГНК) : 31 [20:28:14]line Товар: 2710124130 [20:28:14]line Аи-92-К-5 [20:28:14]line 5.240 * 66.90 [20:28:14]line = 350.56 [20:28:14]line НДС 12% НСП 1% [20:28:14]line > о реализуемом товаре [20:28:14]line ОКРУГЛЕНИЕ: -0.56 [20:28:14]line ИТОГО: 350.00 [20:28:14]line Внесено: 350.00 [20:28:14]line СДАЧА: 0.00 [20:28:14]line НСП 1% : 3.10 [20:28:14]line НДС 12% : 37.23 [20:28:14]line Наличными: 350.00 [20:28:14]line Безнал.: 0.00 [20:28:14]line Место: АЗС № 68 "Партнер Нефть" [20:28:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:28:14]line СНО: Общий режим [20:28:14]line Чек 347 04.06.2024 20:28 [20:28:14]line Смена: 368 ФФД: 1.0 [20:28:14]line ЗНМ: 0300000035 [20:28:14]line РНМ: 0000000000092720 [20:28:14]line Версия ККМ: 001 [20:28:14]line ФМ: 0000000000875057 [20:28:14]line ФД: 149008 [20:28:14]line ФПД: 5700883979906 [20:28:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T202813&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149008&fm=5700883979906&tin=02508201610067®Number=0000000000092720&sum=35000 [20:28:14]OFD Sender: Processing packet 149008 [packets to send 100, broken 99] [20:28:14]ProducePacketName [20:28:14]name=ofd_packets/00149008 [20:28:14]OFD Sender: To server: pG, [20:28:14]CommunicateWithHost lk.salyk.kg:30040 [20:28:14]ConnectInit lk.salyk.kg [20:28:14]written 0, free lines is 4095 [20:28:14]Connected sock=10 [20:28:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 53 E3 07 01 0B 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 DD 78 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 46 02 00 35 04 06 00 05 2F 57 2A 1E 82 50 D2 63 C2 1C E8 C7 37 [20:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 EA 00 47 00 62 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 38 37 35 30 35 37 10 04 04 00 10 46 02 00 F4 03 04 00 00 20 5F 66 B6 04 01 00 00 DD 68 51 2D 37 58 64 10 [20:28:15]CommunicateWithHost err = 0 [20:28:15]CheckOFDResponse [20:28:15]1017 (14) - 77093643461234 [20:28:15]1041 (16) - 0000000000875057 [20:28:15]1040 (4) - 149008 [20:28:15]1012 (4) - 04.06.2024 14:09 [20:28:15]1206 (1) - 0 [20:28:15]OFD Sender: Remove packet 149008 [20:28:15]ProducePacketName [20:28:15]name=ofd_packets/00149008 [20:28:15]NVStorageDeleteData [20:28:15]Write to MH i2c: 01 00 00 1E 07 25 [20:28:15]Write i2c OK [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: 01 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: 01 07 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 83 0C BB [20:28:15]RasterBufferAndPrint [20:28:15]line [20:28:15]line [20:28:15]line [20:28:15]line [20:28:15]line [20:28:15]written 0, free lines is 3206 [20:28:15]MH_Cut [20:28:15]Write to MH i2c: D1 01 00 25 07 01 FE [20:28:15]Write i2c OK [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: D1 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: D1 01 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: D1 01 00 25 07 00 FD [20:28:15]Write to MH i2c: 01 00 00 26 07 2D [20:28:15]Write i2c OK [20:28:15]MH_I2C_Read... [20:28:15]OFD Sender: No OFD packet to send [20:28:16]*** Cut start [20:28:16]*** Partial cut [20:28:16]*** CUTSNS_PIN = 1 [20:28:16]*** CUTSNS_PIN = 0 [20:28:16]*** Brake cut motor [20:28:16]Read from MH i2c: 01 [20:28:17]MH_I2C_Read... [20:28:17]*** Stop cut motor [20:28:17]*** Cut end [20:28:17]Read from MH i2c: 01 07 00 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: 01 07 00 26 07 00 00 00 00 00 FF 0F 42 [20:28:17]process_action close_receipt done [20:28:17]requested_data is exist [20:28:17]produce_requested_data [20:28:17]requested_item fm.sn is exist - process it [20:28:17]wFMCommunicate request_size=4 [20:28:17]MH_SAM_APDU [20:28:17]CAPDU: 80 11 00 00 [20:28:17]Write to MH i2c: E2 08 00 27 07 80 11 00 00 00 00 00 00 A8 [20:28:17]Write i2c OK [20:28:17]MH_I2C_Read... [20:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:17]Read from MH i2c: E2 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 17 00 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 17 00 27 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FB [20:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:28:17]wFMCommunicate OK [20:28:17]requested_item fd.num is exist - process it [20:28:17]SAM_PROTO_GetFieldsCounters [20:28:17]wFMCommunicate request_size=4 [20:28:17]MH_SAM_APDU [20:28:17]CAPDU: 80 13 00 00 [20:28:17]Write to MH i2c: E2 08 00 28 07 80 13 00 00 00 00 00 00 AB [20:28:17]Write i2c OK [20:28:17]MH_I2C_Read... [20:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:17]Read from MH i2c: E2 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 62 00 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 62 00 28 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 10 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [20:28:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 10 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:17]wFMCommunicate OK [20:28:17]SAM_PROTO_GetFieldsCounters done [20:28:17]requested_item shift.num is exist - process it [20:28:17]requested_item shift.opened is exist - process it [20:28:17]req_shift_opened [20:28:17]FM_GetShiftState [20:28:17]SAM_PROTO_GetShiftState [20:28:17]wFMCommunicate request_size=4 [20:28:17]MH_SAM_APDU [20:28:17]CAPDU: 80 13 01 00 [20:28:17]Write to MH i2c: E2 08 00 29 07 80 13 01 00 00 00 00 00 AD [20:28:17]Write i2c OK [20:28:17]MH_I2C_Read... [20:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:17]Read from MH i2c: E2 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 0E 00 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 0E 00 29 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 70 [20:28:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:28:17]wFMCommunicate OK [20:28:17]SAM_PROTO_GetShiftState done [20:28:17]FM_GetShiftState done [20:28:17]req_shift_opened done [20:28:17]requested_item shift.open_date is exist - process it [20:28:17]req_shift_open_date [20:28:17]req_shift_open_date done [20:28:17]produce_requested_data done [20:28:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149008,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:28:17]process_action_free close_receipt [20:28:17]json_value_free [20:28:17]json_value_free done [20:28:17]process_json_proto returns [20:28:17]Send response to host [20:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149008,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:28:17]free response buf [20:28:17]execute_script done [20:28:17]execute_script returns [20:28:17]free content buf [20:28:17]Sock 9.Close socket [20:28:17]Sock 9.Thread stoped [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]accept exits with 7 [20:31:00]New connection [20:31:00]New thread 3067219300 created [20:31:00]Thread 3067075940 joined [20:31:00]Waiting for new connection... [20:31:00] Sock 7.Parse request [20:31:00]Sock 7.Check first char [20:31:00]Sock 7.First char is OK [20:31:00]request: POST /json_proto HTTP/1.0 [20:31:00]Method: POST [20:31:00]URL: /json_proto [20:31:00]Method is POST - this is cgi request [20:31:00]url: /json_proto [20:31:00]query_string will be loaded in cgi processing [20:31:00]execute_cgi json_proto POST (null) [20:31:00]execute_cgi path=json_proto method=POST [20:31:00]POST find Content-Length [20:31:00]Host: 172.17.38.4:8080 [20:31:00]Content-Length: 677 [20:31:00]Content-Type: application/json [20:31:00] [20:31:00]POST finish read [20:31:00]Found Content-Length = 677 [20:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:00]execute_script... [20:31: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)979944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:00]POST & json_proto [20:31:00]process_json_proto [20:31:00]json parsed OK: [20:31:00]protocol is kg_v1.0 [20:31:00]action value=close_receipt [20:31:00]process_action close_receipt [20:31:00]cmd_close_receipt [20:31:00]MH_GetDate [20:31:00]Write to MH i2c: F0 00 00 2A 07 20 [20:31:00]Write i2c OK [20:31:00]MH_I2C_Read... [20:31:00]Read from MH i2c: F0 [20:31:00]MH_I2C_Read... [20:31:00]Read from MH i2c: F0 09 00 [20:31:00]MH_I2C_Read... [20:31:00]Read from MH i2c: F0 09 00 2A 07 00 85 79 5F 66 CC 51 87 64 F4 [20:31:00]GetLastDocTimeStamp 1717532893 [20:31:00]current date 1717533061 [20:31:00]FM_GetShiftState [20:31:00]SAM_PROTO_GetShiftState [20:31:00]wFMCommunicate request_size=4 [20:31:00]MH_SAM_APDU [20:31:00]CAPDU: 80 13 01 00 [20:31:00]Write to MH i2c: E2 08 00 2B 07 80 13 01 00 00 00 00 00 AF [20:31:00]Write i2c OK [20:31:00]MH_I2C_Read... [20:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:00]OFD Sender: No OFD packet to send [20:31:00]Read from MH i2c: E2 [20:31:00]MH_I2C_Read... [20:31:00]Read from MH i2c: E2 0E 00 [20:31:00]MH_I2C_Read... [20:31:00]Read from MH i2c: E2 0E 00 2B 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 72 [20:31:00]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:31:00]wFMCommunicate OK [20:31:00]SAM_PROTO_GetShiftState done [20:31:00]FM_GetShiftState done [20:31:00]opened in 1717460629 [20:31:00]opened+sec_in_day 1717547029 [20:31:00]quantity*price = 30038 [20:31:00]sum+1 = 30039 [20:31: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 348 04.06.2024 20:31 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149009 ФПД: 113598460057168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T203101&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149009&fm=113598460057168&tin=02508201610067®Number=0000000000092720&sum=30000 [20:31:01]StoreToDocumentArchive [20:31:01]shift 368 fd 149009 [20:31:01]save to /storage/0368/doc_00149009 [20:31:01]save last doc name /storage/0368/doc_00149009 to /storage/kkm_last_doc_name [20:31:01]save OK [20:31:01]Clear old archive folders... [20:31:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:01]tlvbuf is 0094EB80 [20:31:01]SAM_PROTO_ClearQueue [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 09 00 00 [20:31:01]Write to MH i2c: E2 08 00 38 07 80 09 00 00 00 00 00 00 B1 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 38 07 00 90 00 B3 [20:31:01]RAPDU: 90 00 [20:31:01]wFMCommunicate OK [20:31:01]SAM_PROTO_ClearQueue done [20:31:01]KKMCreateOFDPacket [20:31:01]OFDProtocolAddRootSTLVToBuf [20:31:01]FM_MakeSignedData [20:31:01]FM_MakeSignedData [20:31:01]SAM_PROTO_SignData [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 0D 01 02 [20:31:01]Write to MH i2c: E2 08 00 39 07 80 0D 01 02 00 00 00 00 B9 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 39 07 00 90 00 B4 [20:31:01]RAPDU: 90 00 [20:31:01]wFMCommunicate OK [20:31:01]wFMCommunicate request_size=255 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 01 00 00 F4 03 04 00 85 79 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 46 02 00 35 04 06 00 67 [20:31:01]Write to MH i2c: E2 02 01 3A 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 01 00 00 F4 03 04 00 85 79 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 46 02 00 35 04 06 00 67 00 00 88 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:02]Read from MH i2c: E2 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 03 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 03 00 3A 07 00 90 00 B5 [20:31:02]RAPDU: 90 00 [20:31:02]wFMCommunicate OK [20:31:02]wFMCommunicate request_size=10 [20:31:02]MH_SAM_APDU [20:31:02]CAPDU: 80 0D 02 02 05 51 33 DB D6 50 [20:31:02]Write to MH i2c: E2 0D 00 3B 07 80 0D 02 02 05 00 51 33 DB D6 50 00 00 4B [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:02]Read from MH i2c: E2 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 03 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [20:31:02]RAPDU: 90 00 [20:31:02]wFMCommunicate OK [20:31:02]wFMCommunicate request_size=4 [20:31:02]MH_SAM_APDU [20:31:02]CAPDU: 80 0D 03 02 [20:31:02]Write to MH i2c: E2 08 00 3C 07 80 0D 03 02 00 00 00 00 BE [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:02]Read from MH i2c: E2 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 0B 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 0B 00 3C 07 00 35 7A D0 F8 8F 99 A6 59 90 00 5D [20:31:02]RAPDU: 35 7A D0 F8 8F 99 A6 59 90 00 [20:31:02]wFMCommunicate OK [20:31:02]SAM_PROTO_SignData done [20:31:02]FM_MakeSignedData done [20:31:02]CreateOFDProtocolMessage [20:31:02]wFMCommunicate request_size=4 [20:31:02]MH_SAM_APDU [20:31:02]CAPDU: 80 11 00 00 [20:31:02]Write to MH i2c: E2 08 00 3D 07 80 11 00 00 00 00 00 00 BE [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:02]Read from MH i2c: E2 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 17 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 17 00 3D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 11 [20:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:31:02]wFMCommunicate OK [20:31:02]CreateOFDProtocolMessage done [20:31:02]OFDSenderStorePacket 149009 [20:31:02]StoreOFDPacket docnum=149009 [20:31:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F4 A5 07 01 EA 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 85 79 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 46 02 00 35 04 06 00 67 51 33 DB D6 50 35 7A D0 F8 8F 99 A6 59 [20:31:02]CheckFolder [20:31:02]dirname=/storage/ofd_packets [20:31:02]CheckFolder done [20:31:02]ProducePacketName [20:31:02]name=ofd_packets/00149009 [20:31:02]NVStorageSaveData ofd_packets/00149009 [20:31:02]File name is /storage/ofd_packets/00149009 [20:31:02]Write 301 bytes [20:31:02]NVStorageSaveData done [20:31:02]OFDSenderStorePacket done [20:31:02]KKMCreateOFDPacket done [20:31:02]NVStorageSaveData kkm_last_timestamp [20:31:02]File name is /storage/kkm_last_timestamp [20:31:02]Write 4 bytes [20:31:02]NVStorageSaveData done [20:31:02]ExternCall_PrintAddStr [20:31:02]wPrintStart [20:31:02]Write to MH i2c: 01 00 00 3E 07 45 [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 07 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 07 00 3E 07 00 00 00 00 00 FF 0F 5A [20:31:02]RasterBufferAndPrint [20:31:02]line Счет N : (1)979944 [20:31:02]line ИНН: 02508201610067 [20:31:02]line Контрольно-Кассовый Чек [20:31:02]line ПРОДАЖА [20:31:02]line ТРК (МРК, ГНК) : 12 [20:31:02]line Товар: 2710124130 [20:31:02]line Аи-92-К-5 [20:31:02]line 4.490 * 66.90 [20:31:02]line = 300.38 [20:31:02]line НДС 12% НСП 1% [20:31:02]line > о реализуемом товаре [20:31:02]line ОКРУГЛЕНИЕ: -0.38 [20:31:02]line ИТОГО: 300.00 [20:31:02]line Внесено: 300.00 [20:31:02]line СДАЧА: 0.00 [20:31:02]line НСП 1% : 2.66 [20:31:02]line НДС 12% : 31.90 [20:31:02]line Наличными: 300.00 [20:31:02]line Безнал.: 0.00 [20:31:02]line Место: АЗС № 68 "Партнер Нефть" [20:31:02]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:31:02]line СНО: Общий режим [20:31:02]line Чек 348 04.06.2024 20:31 [20:31:02]line Смена: 368 ФФД: 1.0 [20:31:02]line ЗНМ: 0300000035 [20:31:02]line РНМ: 0000000000092720 [20:31:02]line Версия ККМ: 001 [20:31:02]line ФМ: 0000000000875057 [20:31:02]line ФД: 149009 [20:31:02]line ФПД: 113598460057168 [20:31:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T203101&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149009&fm=113598460057168&tin=02508201610067®Number=0000000000092720&sum=30000 [20:31:02]OFD Sender: Processing packet 149009 [packets to send 100, broken 99] [20:31:02]ProducePacketName [20:31:02]name=ofd_packets/00149009 [20:31:02]OFD Sender: To server: pG, [20:31:02]CommunicateWithHost lk.salyk.kg:30040 [20:31:02]ConnectInit lk.salyk.kg [20:31:02]written 0, free lines is 4095 [20:31:02]Connected sock=10 [20:31:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F4 A5 07 01 EA 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 85 79 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 46 02 00 35 04 06 00 67 51 33 DB D6 50 35 7A D0 F8 8F 99 A6 59 [20:31:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C2 EB 47 00 AE 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 46 02 00 F4 03 04 00 A8 20 5F 66 B6 04 01 00 00 2F 9A 70 F6 CA F3 1F DE [20:31:03]CommunicateWithHost err = 0 [20:31:03]CheckOFDResponse [20:31:03]1017 (14) - 77093643461234 [20:31:03]1041 (16) - 0000000000875057 [20:31:03]1040 (4) - 149009 [20:31:03]1012 (4) - 04.06.2024 14:11 [20:31:03]1206 (1) - 0 [20:31:03]OFD Sender: Remove packet 149009 [20:31:03]ProducePacketName [20:31:03]name=ofd_packets/00149009 [20:31:03]NVStorageDeleteData [20:31:03]Write to MH i2c: 01 00 00 69 07 70 [20:31:03]Write i2c OK [20:31:03]MH_I2C_Read... [20:31:03]Read from MH i2c: 01 [20:31:03]MH_I2C_Read... [20:31:03]Read from MH i2c: 01 07 00 [20:31:03]MH_I2C_Read... [20:31:03]Read from MH i2c: 01 07 00 69 07 00 00 00 00 00 7F 0C 02 [20:31:03]RasterBufferAndPrint [20:31:03]line [20:31:03]line [20:31:03]line [20:31:03]line [20:31:03]line [20:31:03]written 0, free lines is 3202 [20:31:03]MH_Cut [20:31:03]Write to MH i2c: D1 01 00 70 07 01 49 [20:31:03]Write i2c OK [20:31:03]MH_I2C_Read... [20:31:03]Read from MH i2c: D1 [20:31:03]MH_I2C_Read... [20:31:03]Read from MH i2c: D1 01 00 [20:31:03]MH_I2C_Read... [20:31:03]Read from MH i2c: D1 01 00 70 07 00 48 [20:31:03]Write to MH i2c: 01 00 00 71 07 78 [20:31:03]Write i2c OK [20:31:03]MH_I2C_Read... [20:31:03]OFD Sender: No OFD packet to send [20:31:04]*** Cut start [20:31:04]*** Partial cut [20:31:04]*** CUTSNS_PIN = 1 [20:31:04]*** CUTSNS_PIN = 0 [20:31:04]*** Brake cut motor [20:31:04]Read from MH i2c: 01 [20:31:04]MH_I2C_Read... [20:31:04]*** Stop cut motor [20:31:04]*** Cut end [20:31:04]Read from MH i2c: 01 07 00 [20:31:04]MH_I2C_Read... [20:31:04]Read from MH i2c: 01 07 00 71 07 00 00 00 00 00 FF 0F 8D [20:31:04]process_action close_receipt done [20:31:04]requested_data is exist [20:31:04]produce_requested_data [20:31:04]requested_item fm.sn is exist - process it [20:31:04]wFMCommunicate request_size=4 [20:31:04]MH_SAM_APDU [20:31:04]CAPDU: 80 11 00 00 [20:31:04]Write to MH i2c: E2 08 00 72 07 80 11 00 00 00 00 00 00 F3 [20:31:04]Write i2c OK [20:31:04]MH_I2C_Read... [20:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:05]Read from MH i2c: E2 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 17 00 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 17 00 72 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 46 [20:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:31:05]wFMCommunicate OK [20:31:05]requested_item fd.num is exist - process it [20:31:05]SAM_PROTO_GetFieldsCounters [20:31:05]wFMCommunicate request_size=4 [20:31:05]MH_SAM_APDU [20:31:05]CAPDU: 80 13 00 00 [20:31:05]Write to MH i2c: E2 08 00 73 07 80 13 00 00 00 00 00 00 F6 [20:31:05]Write i2c OK [20:31:05]MH_I2C_Read... [20:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:05]Read from MH i2c: E2 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 62 00 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 62 00 73 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 11 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [20:31:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 11 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:05]wFMCommunicate OK [20:31:05]SAM_PROTO_GetFieldsCounters done [20:31:05]requested_item shift.num is exist - process it [20:31:05]requested_item shift.opened is exist - process it [20:31:05]req_shift_opened [20:31:05]FM_GetShiftState [20:31:05]SAM_PROTO_GetShiftState [20:31:05]wFMCommunicate request_size=4 [20:31:05]MH_SAM_APDU [20:31:05]CAPDU: 80 13 01 00 [20:31:05]Write to MH i2c: E2 08 00 74 07 80 13 01 00 00 00 00 00 F8 [20:31:05]Write i2c OK [20:31:05]MH_I2C_Read... [20:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:05]Read from MH i2c: E2 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 0E 00 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 0E 00 74 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BB [20:31:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:31:05]wFMCommunicate OK [20:31:05]SAM_PROTO_GetShiftState done [20:31:05]FM_GetShiftState done [20:31:05]req_shift_opened done [20:31:05]requested_item shift.open_date is exist - process it [20:31:05]req_shift_open_date [20:31:05]req_shift_open_date done [20:31:05]produce_requested_data done [20:31:05]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149009,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:31:05]process_action_free close_receipt [20:31:05]json_value_free [20:31:05]json_value_free done [20:31:05]process_json_proto returns [20:31:05]Send response to host [20:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149009,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:31:05]free response buf [20:31:05]execute_script done [20:31:05]execute_script returns [20:31:05]free content buf [20:31:05]Sock 7.Close socket [20:31:05]Sock 7.Thread stoped [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:45]accept exits with 9 [20:33:45]New connection [20:33:45]New thread 3067075940 created [20:33:45]Thread 3067219300 joined [20:33:45]Waiting for new connection... [20:33:45] Sock 9.Parse request [20:33:45]Sock 9.Check first char [20:33:45]Sock 9.First char is OK [20:33:45]request: POST /json_proto HTTP/1.0 [20:33:45]Method: POST [20:33:45]URL: /json_proto [20:33:45]Method is POST - this is cgi request [20:33:45]url: /json_proto [20:33:45]query_string will be loaded in cgi processing [20:33:45]execute_cgi json_proto POST (null) [20:33:45]execute_cgi path=json_proto method=POST [20:33:45]POST find Content-Length [20:33:45]Host: 172.17.38.4:8080 [20:33:45]Content-Length: 677 [20:33:45]Content-Type: application/json [20:33:45] [20:33:45]POST finish read [20:33:45]Found Content-Length = 677 [20:33:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:45]execute_script... [20:33: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)979945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:45]POST & json_proto [20:33:45]process_json_proto [20:33:45]json parsed OK: [20:33:45]protocol is kg_v1.0 [20:33:45]action value=close_receipt [20:33:45]process_action close_receipt [20:33:45]cmd_close_receipt [20:33:45]MH_GetDate [20:33:45]Write to MH i2c: F0 00 00 75 07 6B [20:33:45]Write i2c OK [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: F0 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: F0 09 00 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: F0 09 00 75 07 00 29 7A 5F 66 CC 51 87 64 E4 [20:33:45]GetLastDocTimeStamp 1717533061 [20:33:45]current date 1717533225 [20:33:45]FM_GetShiftState [20:33:45]SAM_PROTO_GetShiftState [20:33:45]wFMCommunicate request_size=4 [20:33:45]MH_SAM_APDU [20:33:45]CAPDU: 80 13 01 00 [20:33:45]Write to MH i2c: E2 08 00 76 07 80 13 01 00 00 00 00 00 FA [20:33:45]Write i2c OK [20:33:45]MH_I2C_Read... [20:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:45]Read from MH i2c: E2 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: E2 0E 00 [20:33:45]MH_I2C_Read... [20:33:45]Read from MH i2c: E2 0E 00 76 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BD [20:33:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:33:45]wFMCommunicate OK [20:33:45]SAM_PROTO_GetShiftState done [20:33:45]FM_GetShiftState done [20:33:45]opened in 1717460629 [20:33:45]opened+sec_in_day 1717547029 [20:33:45]quantity*price = 60009 [20:33:45]sum+1 = 60010 [20:33:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 349 04.06.2024 20:33 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149010 ФПД: 189833758115715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T203345&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149010&fm=189833758115715&tin=02508201610067®Number=0000000000092720&sum=60000 [20:33:46]StoreToDocumentArchive [20:33:46]shift 368 fd 149010 [20:33:46]save to /storage/0368/doc_00149010 [20:33:46]save last doc name /storage/0368/doc_00149010 to /storage/kkm_last_doc_name [20:33:46]save OK [20:33:46]Clear old archive folders... [20:33:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:33:46]tlvbuf is 0093C6B0 [20:33:46]SAM_PROTO_ClearQueue [20:33:46]wFMCommunicate request_size=4 [20:33:46]MH_SAM_APDU [20:33:46]CAPDU: 80 09 00 00 [20:33:46]Write to MH i2c: E2 08 00 83 07 80 09 00 00 00 00 00 00 FC [20:33:46]Write i2c OK [20:33:46]MH_I2C_Read... [20:33:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:46]Read from MH i2c: E2 [20:33:46]MH_I2C_Read... [20:33:46]Read from MH i2c: E2 03 00 [20:33:46]MH_I2C_Read... [20:33:46]Read from MH i2c: E2 03 00 83 07 00 90 00 FE [20:33:46]RAPDU: 90 00 [20:33:46]wFMCommunicate OK [20:33:46]SAM_PROTO_ClearQueue done [20:33:46]KKMCreateOFDPacket [20:33:46]OFDProtocolAddRootSTLVToBuf [20:33:46]FM_MakeSignedData [20:33:46]FM_MakeSignedData [20:33:46]SAM_PROTO_SignData [20:33:46]wFMCommunicate request_size=4 [20:33:46]MH_SAM_APDU [20:33:46]CAPDU: 80 0D 01 02 [20:33:46]Write to MH i2c: E2 08 00 84 07 80 0D 01 02 00 00 00 00 04 [20:33:46]Write i2c OK [20:33:46]MH_I2C_Read... [20:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:46]Read from MH i2c: E2 [20:33:46]MH_I2C_Read... [20:33:46]Read from MH i2c: E2 03 00 [20:33:46]MH_I2C_Read... [20:33:46]Read from MH i2c: E2 03 00 84 07 00 90 00 FF [20:33:46]RAPDU: 90 00 [20:33:46]wFMCommunicate OK [20:33:46]wFMCommunicate request_size=255 [20:33:46]MH_SAM_APDU [20:33:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 29 7A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 46 02 00 35 04 06 00 AC [20:33:46]Write to MH i2c: E2 02 01 85 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5D 01 00 00 F4 03 04 00 29 7A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 46 02 00 35 04 06 00 AC 00 00 A8 [20:33:46]Write i2c OK [20:33:46]MH_I2C_Read... [20:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:47]Read from MH i2c: E2 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: E2 03 00 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: E2 03 00 85 07 00 90 00 00 [20:33:47]RAPDU: 90 00 [20:33:47]wFMCommunicate OK [20:33:47]wFMCommunicate request_size=10 [20:33:47]MH_SAM_APDU [20:33:47]CAPDU: 80 0D 02 02 05 A7 1D B8 07 83 [20:33:47]Write to MH i2c: E2 0D 00 86 07 80 0D 02 02 05 00 A7 1D B8 07 83 00 00 17 [20:33:47]Write i2c OK [20:33:47]MH_I2C_Read... [20:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:47]Read from MH i2c: E2 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: E2 03 00 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: E2 03 00 86 07 00 90 00 01 [20:33:47]RAPDU: 90 00 [20:33:47]wFMCommunicate OK [20:33:47]wFMCommunicate request_size=4 [20:33:47]MH_SAM_APDU [20:33:47]CAPDU: 80 0D 03 02 [20:33:47]Write to MH i2c: E2 08 00 87 07 80 0D 03 02 00 00 00 00 09 [20:33:47]Write i2c OK [20:33:47]MH_I2C_Read... [20:33:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:47]Read from MH i2c: E2 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: E2 0B 00 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: E2 0B 00 87 07 00 C3 A3 B3 C9 98 BD 64 9C 90 00 41 [20:33:47]RAPDU: C3 A3 B3 C9 98 BD 64 9C 90 00 [20:33:47]wFMCommunicate OK [20:33:47]SAM_PROTO_SignData done [20:33:47]FM_MakeSignedData done [20:33:47]CreateOFDProtocolMessage [20:33:47]wFMCommunicate request_size=4 [20:33:47]MH_SAM_APDU [20:33:47]CAPDU: 80 11 00 00 [20:33:47]Write to MH i2c: E2 08 00 88 07 80 11 00 00 00 00 00 00 09 [20:33:47]Write i2c OK [20:33:47]MH_I2C_Read... [20:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:47]Read from MH i2c: E2 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: E2 17 00 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: E2 17 00 88 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5C [20:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:33:47]wFMCommunicate OK [20:33:47]CreateOFDProtocolMessage done [20:33:47]OFDSenderStorePacket 149010 [20:33:47]StoreOFDPacket docnum=149010 [20:33:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5E D8 07 01 52 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5D 01 00 00 F4 03 04 00 29 7A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 46 02 00 35 04 06 00 AC A7 1D B8 07 83 C3 A3 B3 C9 98 BD 64 9C [20:33:47]CheckFolder [20:33:47]dirname=/storage/ofd_packets [20:33:47]CheckFolder done [20:33:47]ProducePacketName [20:33:47]name=ofd_packets/00149010 [20:33:47]NVStorageSaveData ofd_packets/00149010 [20:33:47]File name is /storage/ofd_packets/00149010 [20:33:47]Write 301 bytes [20:33:47]NVStorageSaveData done [20:33:47]OFDSenderStorePacket done [20:33:47]KKMCreateOFDPacket done [20:33:47]NVStorageSaveData kkm_last_timestamp [20:33:47]File name is /storage/kkm_last_timestamp [20:33:47]Write 4 bytes [20:33:47]NVStorageSaveData done [20:33:47]OFD Sender: Processing packet 149010 [packets to send 100, broken 99] [20:33:47]ProducePacketName [20:33:47]name=ofd_packets/00149010 [20:33:47]OFD Sender: To server: pG, [20:33:47]CommunicateWithHost lk.salyk.kg:30040 [20:33:47]ConnectInit lk.salyk.kg [20:33:47]ExternCall_PrintAddStr [20:33:47]wPrintStart [20:33:47]Write to MH i2c: 01 00 00 89 07 90 [20:33:47]Write i2c OK [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: 01 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: 01 07 00 [20:33:47]MH_I2C_Read... [20:33:47]Read from MH i2c: 01 07 00 89 07 00 00 00 00 00 FF 0F A5 [20:33:47]RasterBufferAndPrint [20:33:47]line Счет N : (1)979945 [20:33:47]line ИНН: 02508201610067 [20:33:47]line Контрольно-Кассовый Чек [20:33:47]line ПРОДАЖА [20:33:47]line ТРК (МРК, ГНК) : 41 [20:33:47]line Товар: 2710124130 [20:33:47]line Аи-92-К-5 [20:33:47]line 8.970 * 66.90 [20:33:47]line = 600.09 [20:33:47]line НДС 12% НСП 1% [20:33:47]line > о реализуемом товаре [20:33:47]line ОКРУГЛЕНИЕ: -0.09 [20:33:47]line ИТОГО: 600.00 [20:33:47]line Внесено: 600.00 [20:33:47]line СДАЧА: 0.00 [20:33:47]line НСП 1% : 5.31 [20:33:47]line НДС 12% : 63.73 [20:33:47]line Наличными: 600.00 [20:33:47]line Безнал.: 0.00 [20:33:47]line Место: АЗС № 68 "Партнер Нефть" [20:33:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:33:47]line СНО: Общий режим [20:33:47]line Чек 349 04.06.2024 20:33 [20:33:47]line Смена: 368 ФФД: 1.0 [20:33:47]line ЗНМ: 0300000035 [20:33:47]line РНМ: 0000000000092720 [20:33:47]line Версия ККМ: 001 [20:33:47]line ФМ: 0000000000875057 [20:33:47]line ФД: 149010 [20:33:47]line ФПД: 189833758115715 [20:33:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T203345&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149010&fm=189833758115715&tin=02508201610067®Number=0000000000092720&sum=60000 [20:33:47]Connected sock=11 [20:33:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5E D8 07 01 52 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5D 01 00 00 F4 03 04 00 29 7A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 46 02 00 35 04 06 00 AC A7 1D B8 07 83 C3 A3 B3 C9 98 BD 64 9C [20:33:47]written 0, free lines is 4095 [20:33:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 86 14 47 00 25 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 38 37 35 30 35 37 10 04 04 00 12 46 02 00 F4 03 04 00 4C 21 5F 66 B6 04 01 00 00 D2 60 BE C6 CA 0D D2 B4 [20:33:47]CommunicateWithHost err = 0 [20:33:47]CheckOFDResponse [20:33:47]1017 (14) - 77093643461234 [20:33:47]1041 (16) - 0000000000875057 [20:33:47]1040 (4) - 149010 [20:33:47]1012 (4) - 04.06.2024 14:14 [20:33:47]1206 (1) - 0 [20:33:47]OFD Sender: Remove packet 149010 [20:33:47]ProducePacketName [20:33:47]name=ofd_packets/00149010 [20:33:47]NVStorageDeleteData [20:33:48]Write to MH i2c: 01 00 00 B4 07 BB [20:33:48]Write i2c OK [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: 01 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: 01 07 00 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 7F 0C 4D [20:33:48]RasterBufferAndPrint [20:33:48]line [20:33:48]line [20:33:48]line [20:33:48]line [20:33:48]line [20:33:48]written 0, free lines is 3203 [20:33:48]MH_Cut [20:33:48]Write to MH i2c: D1 01 00 BB 07 01 94 [20:33:48]Write i2c OK [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: D1 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: D1 01 00 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: D1 01 00 BB 07 00 93 [20:33:48]Write to MH i2c: 01 00 00 BC 07 C3 [20:33:48]Write i2c OK [20:33:48]MH_I2C_Read... [20:33:48]OFD Sender: No OFD packet to send [20:33:49]*** Cut start [20:33:49]*** Partial cut [20:33:49]*** CUTSNS_PIN = 1 [20:33:49]*** CUTSNS_PIN = 0 [20:33:49]*** Brake cut motor [20:33:49]Read from MH i2c: 01 [20:33:49]MH_I2C_Read... [20:33:49]*** Stop cut motor [20:33:49]*** Cut end [20:33:49]Read from MH i2c: 01 07 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: 01 07 00 BC 07 00 00 00 00 00 FF 0F D8 [20:33:49]process_action close_receipt done [20:33:49]requested_data is exist [20:33:49]produce_requested_data [20:33:49]requested_item fm.sn is exist - process it [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 11 00 00 [20:33:49]Write to MH i2c: E2 08 00 BD 07 80 11 00 00 00 00 00 00 3E [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 17 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 17 00 BD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 91 [20:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:33:49]wFMCommunicate OK [20:33:49]requested_item fd.num is exist - process it [20:33:49]SAM_PROTO_GetFieldsCounters [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 13 00 00 [20:33:49]Write to MH i2c: E2 08 00 BE 07 80 13 00 00 00 00 00 00 41 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:50]Read from MH i2c: E2 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: E2 62 00 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: E2 62 00 BE 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 12 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [20:33:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 12 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:50]wFMCommunicate OK [20:33:50]SAM_PROTO_GetFieldsCounters done [20:33:50]requested_item shift.num is exist - process it [20:33:50]requested_item shift.opened is exist - process it [20:33:50]req_shift_opened [20:33:50]FM_GetShiftState [20:33:50]SAM_PROTO_GetShiftState [20:33:50]wFMCommunicate request_size=4 [20:33:50]MH_SAM_APDU [20:33:50]CAPDU: 80 13 01 00 [20:33:50]Write to MH i2c: E2 08 00 BF 07 80 13 01 00 00 00 00 00 43 [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:50]Read from MH i2c: E2 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: E2 0E 00 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: E2 0E 00 BF 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 06 [20:33:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:33:50]wFMCommunicate OK [20:33:50]SAM_PROTO_GetShiftState done [20:33:50]FM_GetShiftState done [20:33:50]req_shift_opened done [20:33:50]requested_item shift.open_date is exist - process it [20:33:50]req_shift_open_date [20:33:50]req_shift_open_date done [20:33:50]produce_requested_data done [20:33:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149010,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:33:50]process_action_free close_receipt [20:33:50]json_value_free [20:33:50]json_value_free done [20:33:50]process_json_proto returns [20:33:50]Send response to host [20:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149010,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:33:50]free response buf [20:33:50]execute_script done [20:33:50]execute_script returns [20:33:50]free content buf [20:33:50]Sock 9.Close socket [20:33:50]Sock 9.Thread stoped [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:46]accept exits with 7 [20:34:46]New connection [20:34:46]New thread 3067219300 created [20:34:46]Thread 3067075940 joined [20:34:46]Waiting for new connection... [20:34:46] Sock 7.Parse request [20:34:46]Sock 7.Check first char [20:34:46]Sock 7.First char is OK [20:34:46]request: POST /json_proto HTTP/1.0 [20:34:46]Method: POST [20:34:46]URL: /json_proto [20:34:46]Method is POST - this is cgi request [20:34:46]url: /json_proto [20:34:46]query_string will be loaded in cgi processing [20:34:46]execute_cgi json_proto POST (null) [20:34:46]execute_cgi path=json_proto method=POST [20:34:46]POST find Content-Length [20:34:46]Host: 172.17.38.4:8080 [20:34:46]Content-Length: 677 [20:34:46]Content-Type: application/json [20:34:46] [20:34:46]POST finish read [20:34:46]Found Content-Length = 677 [20:34:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:46]execute_script... [20:34:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:46]POST & json_proto [20:34:46]process_json_proto [20:34:46]json parsed OK: [20:34:46]protocol is kg_v1.0 [20:34:46]action value=close_receipt [20:34:46]process_action close_receipt [20:34:46]cmd_close_receipt [20:34:46]MH_GetDate [20:34:46]Write to MH i2c: F0 00 00 C0 07 B6 [20:34:46]Write i2c OK [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: F0 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: F0 09 00 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: F0 09 00 C0 07 00 67 7A 5F 66 CC 51 87 64 6D [20:34:46]GetLastDocTimeStamp 1717533225 [20:34:46]current date 1717533287 [20:34:46]FM_GetShiftState [20:34:46]SAM_PROTO_GetShiftState [20:34:46]wFMCommunicate request_size=4 [20:34:46]MH_SAM_APDU [20:34:46]CAPDU: 80 13 01 00 [20:34:46]Write to MH i2c: E2 08 00 C1 07 80 13 01 00 00 00 00 00 45 [20:34:46]Write i2c OK [20:34:46]MH_I2C_Read... [20:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:46]Read from MH i2c: E2 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: E2 0E 00 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: E2 0E 00 C1 07 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 08 [20:34:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:34:46]wFMCommunicate OK [20:34:46]SAM_PROTO_GetShiftState done [20:34:46]FM_GetShiftState done [20:34:46]opened in 1717460629 [20:34:46]opened+sec_in_day 1717547029 [20:34:46]quantity*price = 50041 [20:34:46]sum+1 = 50042 [20:34:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 350 04.06.2024 20:34 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149011 ФПД: 63318739683823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T203447&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149011&fm=63318739683823&tin=02508201610067®Number=0000000000092720&sum=50000 [20:34:48]StoreToDocumentArchive [20:34:48]shift 368 fd 149011 [20:34:48]save to /storage/0368/doc_00149011 [20:34:48]save last doc name /storage/0368/doc_00149011 to /storage/kkm_last_doc_name [20:34:48]save OK [20:34:48]Clear old archive folders... [20:34:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:48]tlvbuf is 00986230 [20:34:48]SAM_PROTO_ClearQueue [20:34:48]wFMCommunicate request_size=4 [20:34:48]MH_SAM_APDU [20:34:48]CAPDU: 80 09 00 00 [20:34:48]Write to MH i2c: E2 08 00 CE 07 80 09 00 00 00 00 00 00 47 [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 [20:34:48]MH_I2C_Read... [20:34:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:48]Read from MH i2c: E2 03 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 03 00 CE 07 00 90 00 49 [20:34:48]RAPDU: 90 00 [20:34:48]wFMCommunicate OK [20:34:48]SAM_PROTO_ClearQueue done [20:34:48]KKMCreateOFDPacket [20:34:48]OFDProtocolAddRootSTLVToBuf [20:34:48]FM_MakeSignedData [20:34:48]FM_MakeSignedData [20:34:48]SAM_PROTO_SignData [20:34:48]wFMCommunicate request_size=4 [20:34:48]MH_SAM_APDU [20:34:48]CAPDU: 80 0D 01 02 [20:34:48]Write to MH i2c: E2 08 00 CF 07 80 0D 01 02 00 00 00 00 4F [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:48]Read from MH i2c: E2 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 03 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 03 00 CF 07 00 90 00 4A [20:34:48]RAPDU: 90 00 [20:34:48]wFMCommunicate OK [20:34:48]wFMCommunicate request_size=255 [20:34:48]MH_SAM_APDU [20:34:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 67 7A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 46 02 00 35 04 06 00 39 [20:34:48]Write to MH i2c: E2 02 01 D0 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 67 7A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 46 02 00 35 04 06 00 39 00 00 E3 [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]OFD Sender: No OFD packet to send [20:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:48]Read from MH i2c: E2 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 03 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 03 00 D0 07 00 90 00 4B [20:34:48]RAPDU: 90 00 [20:34:48]wFMCommunicate OK [20:34:48]wFMCommunicate request_size=10 [20:34:48]MH_SAM_APDU [20:34:48]CAPDU: 80 0D 02 02 05 96 8A FC 89 EF [20:34:48]Write to MH i2c: E2 0D 00 D1 07 80 0D 02 02 05 00 96 8A FC 89 EF 00 00 F0 [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:48]Read from MH i2c: E2 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 03 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 03 00 D1 07 00 90 00 4C [20:34:48]RAPDU: 90 00 [20:34:48]wFMCommunicate OK [20:34:48]wFMCommunicate request_size=4 [20:34:48]MH_SAM_APDU [20:34:48]CAPDU: 80 0D 03 02 [20:34:48]Write to MH i2c: E2 08 00 D2 07 80 0D 03 02 00 00 00 00 54 [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:48]Read from MH i2c: E2 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 0B 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 0B 00 D2 07 00 A6 65 8E 2D A4 98 81 78 90 00 50 [20:34:48]RAPDU: A6 65 8E 2D A4 98 81 78 90 00 [20:34:48]wFMCommunicate OK [20:34:48]SAM_PROTO_SignData done [20:34:48]FM_MakeSignedData done [20:34:48]CreateOFDProtocolMessage [20:34:48]wFMCommunicate request_size=4 [20:34:48]MH_SAM_APDU [20:34:48]CAPDU: 80 11 00 00 [20:34:48]Write to MH i2c: E2 08 00 D3 07 80 11 00 00 00 00 00 00 54 [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:48]Read from MH i2c: E2 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 17 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 17 00 D3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A7 [20:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:34:48]wFMCommunicate OK [20:34:48]CreateOFDProtocolMessage done [20:34:48]OFDSenderStorePacket 149011 [20:34:48]StoreOFDPacket docnum=149011 [20:34:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D9 4E 07 01 2C 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 67 7A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 46 02 00 35 04 06 00 39 96 8A FC 89 EF A6 65 8E 2D A4 98 81 78 [20:34:48]CheckFolder [20:34:48]dirname=/storage/ofd_packets [20:34:48]CheckFolder done [20:34:48]ProducePacketName [20:34:48]name=ofd_packets/00149011 [20:34:48]NVStorageSaveData ofd_packets/00149011 [20:34:48]File name is /storage/ofd_packets/00149011 [20:34:48]Write 301 bytes [20:34:48]NVStorageSaveData done [20:34:48]OFDSenderStorePacket done [20:34:48]KKMCreateOFDPacket done [20:34:48]NVStorageSaveData kkm_last_timestamp [20:34:48]File name is /storage/kkm_last_timestamp [20:34:48]Write 4 bytes [20:34:48]NVStorageSaveData done [20:34:48]ExternCall_PrintAddStr [20:34:48]wPrintStart [20:34:48]Write to MH i2c: 01 00 00 D4 07 DB [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: 01 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: 01 07 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: 01 07 00 D4 07 00 00 00 00 00 FF 0F F0 [20:34:48]RasterBufferAndPrint [20:34:48]line Счет N : (1)979946 [20:34:48]line ИНН: 02508201610067 [20:34:48]line Контрольно-Кассовый Чек [20:34:48]line ПРОДАЖА [20:34:48]line ТРК (МРК, ГНК) : 31 [20:34:48]line Товар: 2710124130 [20:34:48]line Аи-92-К-5 [20:34:48]line 7.480 * 66.90 [20:34:48]line = 500.41 [20:34:48]line НДС 12% НСП 1% [20:34:48]line > о реализуемом товаре [20:34:48]line ОКРУГЛЕНИЕ: -0.41 [20:34:48]line ИТОГО: 500.00 [20:34:48]line Внесено: 500.00 [20:34:48]line СДАЧА: 0.00 [20:34:48]line НСП 1% : 4.43 [20:34:48]line НДС 12% : 53.14 [20:34:48]line Наличными: 500.00 [20:34:48]line Безнал.: 0.00 [20:34:48]line Место: АЗС № 68 "Партнер Нефть" [20:34:48]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:34:48]line СНО: Общий режим [20:34:48]line Чек 350 04.06.2024 20:34 [20:34:48]line Смена: 368 ФФД: 1.0 [20:34:48]line ЗНМ: 0300000035 [20:34:48]line РНМ: 0000000000092720 [20:34:48]line Версия ККМ: 001 [20:34:48]line ФМ: 0000000000875057 [20:34:48]line ФД: 149011 [20:34:48]line ФПД: 63318739683823 [20:34:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T203447&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149011&fm=63318739683823&tin=02508201610067®Number=0000000000092720&sum=50000 [20:34:48]OFD Sender: Processing packet 149011 [packets to send 100, broken 99] [20:34:48]ProducePacketName [20:34:48]name=ofd_packets/00149011 [20:34:48]OFD Sender: To server: pG, [20:34:48]CommunicateWithHost lk.salyk.kg:30040 [20:34:48]ConnectInit lk.salyk.kg [20:34:48]written 0, free lines is 4095 [20:34:48]Connected sock=10 [20:34:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D9 4E 07 01 2C 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 67 7A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 46 02 00 35 04 06 00 39 96 8A FC 89 EF A6 65 8E 2D A4 98 81 78 [20:34:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 4D 94 47 00 E7 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 38 37 35 30 35 37 10 04 04 00 13 46 02 00 F4 03 04 00 8A 21 5F 66 B6 04 01 00 00 A4 55 50 2E 6B F0 B8 D3 [20:34:49]CommunicateWithHost err = 0 [20:34:49]CheckOFDResponse [20:34:49]1017 (14) - 77093643461234 [20:34:49]1041 (16) - 0000000000875057 [20:34:49]1040 (4) - 149011 [20:34:49]1012 (4) - 04.06.2024 14:15 [20:34:49]1206 (1) - 0 [20:34:49]OFD Sender: Remove packet 149011 [20:34:49]ProducePacketName [20:34:49]name=ofd_packets/00149011 [20:34:49]NVStorageDeleteData [20:34:49]Write to MH i2c: 01 00 00 FF 07 06 [20:34:49]Write i2c OK [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: 01 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: 01 07 00 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: 01 07 00 FF 07 00 00 00 00 00 7D 0C 96 [20:34:49]RasterBufferAndPrint [20:34:49]line [20:34:49]line [20:34:49]line [20:34:49]line [20:34:49]line [20:34:49]written 0, free lines is 3199 [20:34:49]MH_Cut [20:34:49]Write to MH i2c: D1 01 00 06 08 01 E0 [20:34:49]Write i2c OK [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: D1 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: D1 01 00 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: D1 01 00 06 08 00 DF [20:34:49]Write to MH i2c: 01 00 00 07 08 0F [20:34:49]Write i2c OK [20:34:49]MH_I2C_Read... [20:34:49]OFD Sender: No OFD packet to send [20:34:50]*** Cut start [20:34:50]*** Partial cut [20:34:50]*** CUTSNS_PIN = 1 [20:34:50]*** CUTSNS_PIN = 0 [20:34:50]*** Brake cut motor [20:34:51]Read from MH i2c: 01 [20:34:51]MH_I2C_Read... [20:34:51]*** Stop cut motor [20:34:51]*** Cut end [20:34:51]Read from MH i2c: 01 07 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: 01 07 00 07 08 00 00 00 00 00 FF 0F 24 [20:34:51]process_action close_receipt done [20:34:51]requested_data is exist [20:34:51]produce_requested_data [20:34:51]requested_item fm.sn is exist - process it [20:34:51]wFMCommunicate request_size=4 [20:34:51]MH_SAM_APDU [20:34:51]CAPDU: 80 11 00 00 [20:34:51]Write to MH i2c: E2 08 00 08 08 80 11 00 00 00 00 00 00 8A [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:51]Read from MH i2c: E2 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 17 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 17 00 08 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DD [20:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:34:51]wFMCommunicate OK [20:34:51]requested_item fd.num is exist - process it [20:34:51]SAM_PROTO_GetFieldsCounters [20:34:51]wFMCommunicate request_size=4 [20:34:51]MH_SAM_APDU [20:34:51]CAPDU: 80 13 00 00 [20:34:51]Write to MH i2c: E2 08 00 09 08 80 13 00 00 00 00 00 00 8D [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:51]Read from MH i2c: E2 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 62 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 62 00 09 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 13 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [20:34:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 13 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:51]wFMCommunicate OK [20:34:51]SAM_PROTO_GetFieldsCounters done [20:34:51]requested_item shift.num is exist - process it [20:34:51]requested_item shift.opened is exist - process it [20:34:51]req_shift_opened [20:34:51]FM_GetShiftState [20:34:51]SAM_PROTO_GetShiftState [20:34:51]wFMCommunicate request_size=4 [20:34:51]MH_SAM_APDU [20:34:51]CAPDU: 80 13 01 00 [20:34:51]Write to MH i2c: E2 08 00 0A 08 80 13 01 00 00 00 00 00 8F [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:51]Read from MH i2c: E2 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 0E 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 0E 00 0A 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 52 [20:34:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:34:51]wFMCommunicate OK [20:34:51]SAM_PROTO_GetShiftState done [20:34:51]FM_GetShiftState done [20:34:51]req_shift_opened done [20:34:51]requested_item shift.open_date is exist - process it [20:34:51]req_shift_open_date [20:34:51]req_shift_open_date done [20:34:51]produce_requested_data done [20:34:51]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149011,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:34:51]process_action_free close_receipt [20:34:51]json_value_free [20:34:51]json_value_free done [20:34:51]process_json_proto returns [20:34:51]Send response to host [20:34:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149011,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:34:51]free response buf [20:34:51]execute_script done [20:34:51]execute_script returns [20:34:51]free content buf [20:34:51]Sock 7.Close socket [20:34:51]Sock 7.Thread stoped [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:00]accept exits with 9 [20:36:00]New connection [20:36:00]New thread 3067075940 created [20:36:00]Thread 3067219300 joined [20:36:00]Waiting for new connection... [20:36:00] Sock 9.Parse request [20:36:00]Sock 9.Check first char [20:36:00]Sock 9.First char is OK [20:36:00]request: POST /json_proto HTTP/1.0 [20:36:00]Method: POST [20:36:00]URL: /json_proto [20:36:00]Method is POST - this is cgi request [20:36:00]url: /json_proto [20:36:00]query_string will be loaded in cgi processing [20:36:00]execute_cgi json_proto POST (null) [20:36:00]execute_cgi path=json_proto method=POST [20:36:00]POST find Content-Length [20:36:00]Host: 172.17.38.4:8080 [20:36:00]Content-Length: 1187 [20:36:00]Content-Type: application/json [20:36:00] [20:36:00]POST finish read [20:36:00]Found Content-Length = 1187 [20:36:00]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979947\u000A04.06.2024 20:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889365:3889366\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:00]execute_script... [20:36:00]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 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)979947\u000A04.06.2024 20:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889365:3889366\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:00]POST & json_proto [20:36:00]process_json_proto [20:36:00]json parsed OK: [20:36:00]protocol is kg_v1.0 [20:36:00]action value=print_text [20:36:00]process_action print_text [20:36:00]cmd_print_text [20:36:00]ExternCall_PrintAddStr [20:36:00]wPrintStart [20:36:00]Write to MH i2c: 01 00 00 0B 08 13 [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: 01 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: 01 07 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: 01 07 00 0B 08 00 00 00 00 00 FF 0F 28 [20:36:00]RasterBufferAndPrint [20:36:00]line *****ТОВАРНЫЙ ЧЕК***** [20:36:00]line АЗС 68 [20:36:00]line Партнер нефть [20:36:00]line 02508201610067 [20:36:00]line Кассир : Аскаров Н. [20:36:00]line Счет N : (1)979947 [20:36:00]line 04.06.2024 20:16 [20:36:00]line ПРОДАЖА [20:36:00]line ТРК (МРК, ГНК): 22 [20:36:00]line Вид ГСМ : 2710124130 [20:36:00]line Аи-92-К-5 [20:36:00]line 20.000 x 66.90 [20:36:00]line ИТОГ: 1338.00 [20:36:00]line Тип оплаты: Талоны: Партнер нефть [20:36:00]line 3889365:3889366 [20:36:00]line ______________________ [20:36:00]line (подпись) [20:36:00]written 0, free lines is 4095 [20:36:00]Write to MH i2c: 01 00 00 1F 08 27 [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: 01 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: 01 07 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: 01 07 00 1F 08 00 00 00 00 00 18 0E 54 [20:36:00]RasterBufferAndPrint [20:36:00]line [20:36:00]line [20:36:00]line [20:36:00]line [20:36:00]line [20:36:00]written 0, free lines is 3610 [20:36:00]MH_Cut [20:36:00]Write to MH i2c: D1 01 00 26 08 01 00 [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: D1 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: D1 01 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: D1 01 00 26 08 00 FF [20:36:00]Write to MH i2c: 01 00 00 27 08 2F [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:01]*** Cut start [20:36:01]*** Partial cut [20:36:01]*** CUTSNS_PIN = 1 [20:36:01]*** CUTSNS_PIN = 0 [20:36:01]*** Brake cut motor [20:36:01]Read from MH i2c: 01 [20:36:01]MH_I2C_Read... [20:36:01]*** Stop cut motor [20:36:01]*** Cut end [20:36:01]Read from MH i2c: 01 07 00 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: 01 07 00 27 08 00 00 00 00 00 FF 0F 44 [20:36:01]process_action print_text done [20:36:01]requested_data is exist [20:36:01]produce_requested_data [20:36:01]requested_item fm.sn is exist - process it [20:36:01]wFMCommunicate request_size=4 [20:36:01]MH_SAM_APDU [20:36:01]CAPDU: 80 11 00 00 [20:36:01]Write to MH i2c: E2 08 00 28 08 80 11 00 00 00 00 00 00 AA [20:36:01]Write i2c OK [20:36:01]MH_I2C_Read... [20:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:01]Read from MH i2c: E2 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: E2 17 00 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: E2 17 00 28 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FD [20:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:36:01]wFMCommunicate OK [20:36:01]requested_item fd.num is exist - process it [20:36:01]SAM_PROTO_GetFieldsCounters [20:36:01]wFMCommunicate request_size=4 [20:36:01]MH_SAM_APDU [20:36:01]CAPDU: 80 13 00 00 [20:36:01]Write to MH i2c: E2 08 00 29 08 80 13 00 00 00 00 00 00 AD [20:36:01]Write i2c OK [20:36:01]MH_I2C_Read... [20:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:02]Read from MH i2c: E2 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 62 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 62 00 29 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 13 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [20:36:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 13 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:02]wFMCommunicate OK [20:36:02]SAM_PROTO_GetFieldsCounters done [20:36:02]requested_item shift.num is exist - process it [20:36:02]requested_item shift.opened is exist - process it [20:36:02]req_shift_opened [20:36:02]FM_GetShiftState [20:36:02]SAM_PROTO_GetShiftState [20:36:02]wFMCommunicate request_size=4 [20:36:02]MH_SAM_APDU [20:36:02]CAPDU: 80 13 01 00 [20:36:02]Write to MH i2c: E2 08 00 2A 08 80 13 01 00 00 00 00 00 AF [20:36:02]Write i2c OK [20:36:02]MH_I2C_Read... [20:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:02]Read from MH i2c: E2 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 0E 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 0E 00 2A 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 72 [20:36:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:36:02]wFMCommunicate OK [20:36:02]SAM_PROTO_GetShiftState done [20:36:02]FM_GetShiftState done [20:36:02]req_shift_opened done [20:36:02]requested_item shift.open_date is exist - process it [20:36:02]req_shift_open_date [20:36:02]req_shift_open_date done [20:36:02]produce_requested_data done [20:36:02]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149011,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:36:02]process_action_free print_text [20:36:02]json_value_free [20:36:02]json_value_free done [20:36:02]process_json_proto returns [20:36:02]Send response to host [20:36:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149011,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:36:02]free response buf [20:36:02]execute_script done [20:36:02]execute_script returns [20:36:02]free content buf [20:36:02]Sock 9.Close socket [20:36:02]Sock 9.Thread stoped [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:36]accept exits with 7 [20:38:36]New connection [20:38:36]New thread 3067219300 created [20:38:36]Thread 3067075940 joined [20:38:36]Waiting for new connection... [20:38:36] Sock 7.Parse request [20:38:36]Sock 7.Check first char [20:38:36]Sock 7.First char is OK [20:38:36]request: POST /json_proto HTTP/1.0 [20:38:36]Method: POST [20:38:36]URL: /json_proto [20:38:36]Method is POST - this is cgi request [20:38:36]url: /json_proto [20:38:36]query_string will be loaded in cgi processing [20:38:36]execute_cgi json_proto POST (null) [20:38:36]execute_cgi path=json_proto method=POST [20:38:36]POST find Content-Length [20:38:36]Host: 172.17.38.4:8080 [20:38:36]Content-Length: 674 [20:38:36]Content-Type: application/json [20:38:36] [20:38:36]POST finish read [20:38:36]Found Content-Length = 674 [20:38:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [20:38:36]execute_script... [20:38: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)979948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [20:38:36]POST & json_proto [20:38:36]process_json_proto [20:38:36]json parsed OK: [20:38:36]protocol is kg_v1.0 [20:38:36]action value=close_receipt [20:38:36]process_action close_receipt [20:38:36]cmd_close_receipt [20:38:36]MH_GetDate [20:38:36]Write to MH i2c: F0 00 00 2B 08 22 [20:38:36]Write i2c OK [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: F0 [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: F0 09 00 [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: F0 09 00 2B 08 00 4C 7B 5F 66 CC 51 87 64 BF [20:38:36]GetLastDocTimeStamp 1717533287 [20:38:36]current date 1717533516 [20:38:36]FM_GetShiftState [20:38:36]SAM_PROTO_GetShiftState [20:38:36]wFMCommunicate request_size=4 [20:38:36]MH_SAM_APDU [20:38:36]CAPDU: 80 13 01 00 [20:38:36]Write to MH i2c: E2 08 00 2C 08 80 13 01 00 00 00 00 00 B1 [20:38:36]Write i2c OK [20:38:36]MH_I2C_Read... [20:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:36]Read from MH i2c: E2 [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: E2 0E 00 [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: E2 0E 00 2C 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 74 [20:38:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:38:36]wFMCommunicate OK [20:38:36]SAM_PROTO_GetShiftState done [20:38:36]FM_GetShiftState done [20:38:36]opened in 1717460629 [20:38:36]opened+sec_in_day 1717547029 [20:38:36]quantity*price = 50009 [20:38:36]sum+1 = 50010 [20:38:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 351 04.06.2024 20:38 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149012 ФПД: 267904883106415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T203836&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149012&fm=267904883106415&tin=02508201610067®Number=0000000000092720&sum=50000 [20:38:37]StoreToDocumentArchive [20:38:37]shift 368 fd 149012 [20:38:37]save to /storage/0368/doc_00149012 [20:38:37]save last doc name /storage/0368/doc_00149012 to /storage/kkm_last_doc_name [20:38:37]save OK [20:38:37]Clear old archive folders... [20:38:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:38:37]tlvbuf is 00937CE0 [20:38:37]SAM_PROTO_ClearQueue [20:38:37]wFMCommunicate request_size=4 [20:38:37]MH_SAM_APDU [20:38:37]CAPDU: 80 09 00 00 [20:38:37]Write to MH i2c: E2 08 00 39 08 80 09 00 00 00 00 00 00 B3 [20:38:37]Write i2c OK [20:38:37]MH_I2C_Read... [20:38:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:37]Read from MH i2c: E2 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [20:38:37]RAPDU: 90 00 [20:38:37]wFMCommunicate OK [20:38:37]SAM_PROTO_ClearQueue done [20:38:37]KKMCreateOFDPacket [20:38:37]OFDProtocolAddRootSTLVToBuf [20:38:37]FM_MakeSignedData [20:38:37]FM_MakeSignedData [20:38:37]SAM_PROTO_SignData [20:38:37]wFMCommunicate request_size=4 [20:38:37]MH_SAM_APDU [20:38:37]CAPDU: 80 0D 01 02 [20:38:37]Write to MH i2c: E2 08 00 3A 08 80 0D 01 02 00 00 00 00 BB [20:38:37]Write i2c OK [20:38:37]MH_I2C_Read... [20:38:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:37]Read from MH i2c: E2 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [20:38:37]RAPDU: 90 00 [20:38:37]wFMCommunicate OK [20:38:37]wFMCommunicate request_size=255 [20:38:37]MH_SAM_APDU [20:38:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 01 00 00 F4 03 04 00 4C 7B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 14 46 02 00 35 04 06 00 F3 A8 77 64 [20:38:37]Write to MH i2c: E2 02 01 3B 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 01 00 00 F4 03 04 00 4C 7B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 14 46 02 00 35 04 06 00 F3 A8 77 64 00 00 8F [20:38:37]Write i2c OK [20:38:37]MH_I2C_Read... [20:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:37]Read from MH i2c: E2 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [20:38:37]RAPDU: 90 00 [20:38:37]wFMCommunicate OK [20:38:37]wFMCommunicate request_size=7 [20:38:37]MH_SAM_APDU [20:38:37]CAPDU: 80 0D 02 02 02 22 6F [20:38:37]Write to MH i2c: E2 0A 00 3C 08 80 0D 02 02 02 00 22 6F 00 00 53 [20:38:37]Write i2c OK [20:38:37]MH_I2C_Read... [20:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:37]Read from MH i2c: E2 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [20:38:37]RAPDU: 90 00 [20:38:37]wFMCommunicate OK [20:38:37]wFMCommunicate request_size=4 [20:38:37]MH_SAM_APDU [20:38:37]CAPDU: 80 0D 03 02 [20:38:37]Write to MH i2c: E2 08 00 3D 08 80 0D 03 02 00 00 00 00 C0 [20:38:37]Write i2c OK [20:38:37]MH_I2C_Read... [20:38:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:37]Read from MH i2c: E2 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 0B 00 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 0B 00 3D 08 00 1E 21 C9 0C BB B5 E9 07 90 00 35 [20:38:37]RAPDU: 1E 21 C9 0C BB B5 E9 07 90 00 [20:38:37]wFMCommunicate OK [20:38:37]SAM_PROTO_SignData done [20:38:37]FM_MakeSignedData done [20:38:37]CreateOFDProtocolMessage [20:38:37]wFMCommunicate request_size=4 [20:38:37]MH_SAM_APDU [20:38:37]CAPDU: 80 11 00 00 [20:38:37]Write to MH i2c: E2 08 00 3E 08 80 11 00 00 00 00 00 00 C0 [20:38:37]Write i2c OK [20:38:37]MH_I2C_Read... [20:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:37]Read from MH i2c: E2 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 17 00 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 17 00 3E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 13 [20:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:38:37]wFMCommunicate OK [20:38:37]CreateOFDProtocolMessage done [20:38:37]OFDSenderStorePacket 149012 [20:38:37]StoreOFDPacket docnum=149012 [20:38:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 27 29 04 01 E1 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 5F 01 00 00 F4 03 04 00 4C 7B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 14 46 02 00 35 04 06 00 F3 A8 77 64 22 6F 1E 21 C9 0C BB B5 E9 07 [20:38:37]CheckFolder [20:38:37]dirname=/storage/ofd_packets [20:38:37]CheckFolder done [20:38:37]ProducePacketName [20:38:37]name=ofd_packets/00149012 [20:38:37]NVStorageSaveData ofd_packets/00149012 [20:38:37]File name is /storage/ofd_packets/00149012 [20:38:37]Write 298 bytes [20:38:37]NVStorageSaveData done [20:38:37]OFDSenderStorePacket done [20:38:37]KKMCreateOFDPacket done [20:38:37]NVStorageSaveData kkm_last_timestamp [20:38:37]File name is /storage/kkm_last_timestamp [20:38:37]Write 4 bytes [20:38:37]NVStorageSaveData done [20:38:37]ExternCall_PrintAddStr [20:38:37]wPrintStart [20:38:37]Write to MH i2c: 01 00 00 3F 08 47 [20:38:37]Write i2c OK [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: 01 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: 01 07 00 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: 01 07 00 3F 08 00 00 00 00 00 FF 0F 5C [20:38:37]RasterBufferAndPrint [20:38:37]line Счет N : (1)979948 [20:38:37]line ИНН: 02508201610067 [20:38:37]line Контрольно-Кассовый Чек [20:38:37]line ПРОДАЖА [20:38:37]line ТРК (МРК, ГНК) : 21 [20:38:37]line Товар: 2710194210 [20:38:37]line ДТ-К-5 [20:38:37]line 6.860 * 72.90 [20:38:37]line = 500.09 [20:38:37]line НДС 12% НСП 1% [20:38:37]line > о реализуемом товаре [20:38:37]line ОКРУГЛЕНИЕ: -0.09 [20:38:37]line ИТОГО: 500.00 [20:38:37]line Внесено: 500.00 [20:38:37]line СДАЧА: 0.00 [20:38:37]line НСП 1% : 4.43 [20:38:37]line НДС 12% : 53.11 [20:38:37]line Наличными: 500.00 [20:38:37]line Безнал.: 0.00 [20:38:37]line Место: АЗС № 68 "Партнер Нефть" [20:38:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:38:37]line СНО: Общий режим [20:38:37]line Чек 351 04.06.2024 20:38 [20:38:37]line Смена: 368 ФФД: 1.0 [20:38:37]line ЗНМ: 0300000035 [20:38:37]line РНМ: 0000000000092720 [20:38:37]line Версия ККМ: 001 [20:38:37]line ФМ: 0000000000875057 [20:38:37]line ФД: 149012 [20:38:37]line ФПД: 267904883106415 [20:38:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T203836&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149012&fm=267904883106415&tin=02508201610067®Number=0000000000092720&sum=50000 [20:38:38]OFD Sender: Processing packet 149012 [packets to send 100, broken 99] [20:38:38]ProducePacketName [20:38:38]name=ofd_packets/00149012 [20:38:38]OFD Sender: To server: pG, [20:38:38]CommunicateWithHost lk.salyk.kg:30040 [20:38:38]ConnectInit lk.salyk.kg [20:38:38]written 0, free lines is 4095 [20:38:38]Connected sock=9 [20:38:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 27 29 04 01 E1 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 5F 01 00 00 F4 03 04 00 4C 7B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 14 46 02 00 35 04 06 00 F3 A8 77 64 22 6F 1E 21 C9 0C BB B5 E9 07 [20:38:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8D 7A 47 00 9E 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 38 37 35 30 35 37 10 04 04 00 14 46 02 00 F4 03 04 00 6F 22 5F 66 B6 04 01 00 00 DF 5D 04 4A D9 53 04 70 [20:38:38]CommunicateWithHost err = 0 [20:38:38]CheckOFDResponse [20:38:38]1017 (14) - 77093643461234 [20:38:38]1041 (16) - 0000000000875057 [20:38:38]1040 (4) - 149012 [20:38:38]1012 (4) - 04.06.2024 14:19 [20:38:38]1206 (1) - 0 [20:38:38]OFD Sender: Remove packet 149012 [20:38:38]ProducePacketName [20:38:38]name=ofd_packets/00149012 [20:38:38]NVStorageDeleteData [20:38:38]Write to MH i2c: 01 00 00 6A 08 72 [20:38:38]Write i2c OK [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: 01 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: 01 07 00 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: 01 07 00 6A 08 00 00 00 00 00 74 0C F9 [20:38:38]RasterBufferAndPrint [20:38:38]line [20:38:38]line [20:38:38]line [20:38:38]line [20:38:38]line [20:38:38]written 0, free lines is 3192 [20:38:38]MH_Cut [20:38:38]Write to MH i2c: D1 01 00 71 08 01 4B [20:38:38]Write i2c OK [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: D1 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: D1 01 00 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: D1 01 00 71 08 00 4A [20:38:38]Write to MH i2c: 01 00 00 72 08 7A [20:38:38]Write i2c OK [20:38:38]MH_I2C_Read... [20:38:38]OFD Sender: No OFD packet to send [20:38:39]*** Cut start [20:38:39]*** Partial cut [20:38:39]*** CUTSNS_PIN = 1 [20:38:39]*** CUTSNS_PIN = 0 [20:38:40]*** Brake cut motor [20:38:40]Read from MH i2c: 01 [20:38:40]MH_I2C_Read... [20:38:40]*** Stop cut motor [20:38:40]*** Cut end [20:38:40]Read from MH i2c: 01 07 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: 01 07 00 72 08 00 00 00 00 00 FF 0F 8F [20:38:40]process_action close_receipt done [20:38:40]requested_data is exist [20:38:40]produce_requested_data [20:38:40]requested_item fm.sn is exist - process it [20:38:40]wFMCommunicate request_size=4 [20:38:40]MH_SAM_APDU [20:38:40]CAPDU: 80 11 00 00 [20:38:40]Write to MH i2c: E2 08 00 73 08 80 11 00 00 00 00 00 00 F5 [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:40]Read from MH i2c: E2 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 17 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 17 00 73 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 48 [20:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:38:40]wFMCommunicate OK [20:38:40]requested_item fd.num is exist - process it [20:38:40]SAM_PROTO_GetFieldsCounters [20:38:40]wFMCommunicate request_size=4 [20:38:40]MH_SAM_APDU [20:38:40]CAPDU: 80 13 00 00 [20:38:40]Write to MH i2c: E2 08 00 74 08 80 13 00 00 00 00 00 00 F8 [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:40]Read from MH i2c: E2 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 62 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 62 00 74 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 14 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [20:38:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 14 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:40]wFMCommunicate OK [20:38:40]SAM_PROTO_GetFieldsCounters done [20:38:40]requested_item shift.num is exist - process it [20:38:40]requested_item shift.opened is exist - process it [20:38:40]req_shift_opened [20:38:40]FM_GetShiftState [20:38:40]SAM_PROTO_GetShiftState [20:38:40]wFMCommunicate request_size=4 [20:38:40]MH_SAM_APDU [20:38:40]CAPDU: 80 13 01 00 [20:38:40]Write to MH i2c: E2 08 00 75 08 80 13 01 00 00 00 00 00 FA [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:40]Read from MH i2c: E2 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 0E 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 0E 00 75 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BD [20:38:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:38:40]wFMCommunicate OK [20:38:40]SAM_PROTO_GetShiftState done [20:38:40]FM_GetShiftState done [20:38:40]req_shift_opened done [20:38:40]requested_item shift.open_date is exist - process it [20:38:40]req_shift_open_date [20:38:40]req_shift_open_date done [20:38:40]produce_requested_data done [20:38:40]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149012,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:38:40]process_action_free close_receipt [20:38:40]json_value_free [20:38:40]json_value_free done [20:38:40]process_json_proto returns [20:38:40]Send response to host [20:38:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149012,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:38:40]free response buf [20:38:40]execute_script done [20:38:40]execute_script returns [20:38:40]free content buf [20:38:40]Sock 7.Close socket [20:38:40]Sock 7.Thread stoped [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:09]accept exits with 10 [20:40:09]New connection [20:40:09]New thread 3067075940 created [20:40:09]Thread 3067219300 joined [20:40:09]Waiting for new connection... [20:40:09] Sock 10.Parse request [20:40:09]Sock 10.Check first char [20:40:09]Sock 10.First char is OK [20:40:09]request: POST /json_proto HTTP/1.0 [20:40:09]Method: POST [20:40:09]URL: /json_proto [20:40:09]Method is POST - this is cgi request [20:40:09]url: /json_proto [20:40:09]query_string will be loaded in cgi processing [20:40:09]execute_cgi json_proto POST (null) [20:40:09]execute_cgi path=json_proto method=POST [20:40:09]POST find Content-Length [20:40:09]Host: 172.17.38.4:8080 [20:40:09]Content-Length: 677 [20:40:09]Content-Type: application/json [20:40:09] [20:40:09]POST finish read [20:40:09]Found Content-Length = 677 [20:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:09]execute_script... [20:40: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)979949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:09]POST & json_proto [20:40:09]process_json_proto [20:40:09]json parsed OK: [20:40:09]protocol is kg_v1.0 [20:40:09]action value=close_receipt [20:40:09]process_action close_receipt [20:40:09]cmd_close_receipt [20:40:09]MH_GetDate [20:40:09]Write to MH i2c: F0 00 00 76 08 6D [20:40:09]Write i2c OK [20:40:09]MH_I2C_Read... [20:40:09]Read from MH i2c: F0 [20:40:09]MH_I2C_Read... [20:40:09]Read from MH i2c: F0 09 00 [20:40:09]MH_I2C_Read... [20:40:09]Read from MH i2c: F0 09 00 76 08 00 A9 7B 5F 66 CC 51 87 64 67 [20:40:09]GetLastDocTimeStamp 1717533516 [20:40:09]current date 1717533609 [20:40:09]FM_GetShiftState [20:40:09]SAM_PROTO_GetShiftState [20:40:09]wFMCommunicate request_size=4 [20:40:09]MH_SAM_APDU [20:40:09]CAPDU: 80 13 01 00 [20:40:09]Write to MH i2c: E2 08 00 77 08 80 13 01 00 00 00 00 00 FC [20:40:09]Write i2c OK [20:40:09]MH_I2C_Read... [20:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:09]Read from MH i2c: E2 [20:40:09]MH_I2C_Read... [20:40:09]Read from MH i2c: E2 0E 00 [20:40:09]MH_I2C_Read... [20:40:09]Read from MH i2c: E2 0E 00 77 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BF [20:40:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:40:09]wFMCommunicate OK [20:40:09]SAM_PROTO_GetShiftState done [20:40:09]FM_GetShiftState done [20:40:09]opened in 1717460629 [20:40:09]opened+sec_in_day 1717547029 [20:40:09]quantity*price = 50041 [20:40:09]sum+1 = 50042 [20:40:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 352 04.06.2024 20:40 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149013 ФПД: 12238253529462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T204009&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149013&fm=12238253529462&tin=02508201610067®Number=0000000000092720&sum=50000 [20:40:10]StoreToDocumentArchive [20:40:10]shift 368 fd 149013 [20:40:10]save to /storage/0368/doc_00149013 [20:40:10]save last doc name /storage/0368/doc_00149013 to /storage/kkm_last_doc_name [20:40:10]save OK [20:40:10]Clear old archive folders... [20:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:40:10]tlvbuf is 0098BD10 [20:40:10]SAM_PROTO_ClearQueue [20:40:10]wFMCommunicate request_size=4 [20:40:10]MH_SAM_APDU [20:40:10]CAPDU: 80 09 00 00 [20:40:10]Write to MH i2c: E2 08 00 84 08 80 09 00 00 00 00 00 00 FE [20:40:10]Write i2c OK [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: E2 [20:40:10]MH_I2C_Read... [20:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:10]Read from MH i2c: E2 03 00 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [20:40:10]RAPDU: 90 00 [20:40:10]wFMCommunicate OK [20:40:10]SAM_PROTO_ClearQueue done [20:40:10]KKMCreateOFDPacket [20:40:10]OFDProtocolAddRootSTLVToBuf [20:40:10]FM_MakeSignedData [20:40:10]FM_MakeSignedData [20:40:10]SAM_PROTO_SignData [20:40:10]wFMCommunicate request_size=4 [20:40:10]MH_SAM_APDU [20:40:10]CAPDU: 80 0D 01 02 [20:40:10]Write to MH i2c: E2 08 00 85 08 80 0D 01 02 00 00 00 00 06 [20:40:10]Write i2c OK [20:40:10]MH_I2C_Read... [20:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:10]Read from MH i2c: E2 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: E2 03 00 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [20:40:10]RAPDU: 90 00 [20:40:10]wFMCommunicate OK [20:40:10]wFMCommunicate request_size=255 [20:40:10]MH_SAM_APDU [20:40:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 A9 7B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 15 46 02 00 35 04 06 00 0B [20:40:10]Write to MH i2c: E2 02 01 86 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 A9 7B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 15 46 02 00 35 04 06 00 0B 00 00 B3 [20:40:10]Write i2c OK [20:40:10]MH_I2C_Read... [20:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:10]Read from MH i2c: E2 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: E2 03 00 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [20:40:10]RAPDU: 90 00 [20:40:10]wFMCommunicate OK [20:40:10]wFMCommunicate request_size=10 [20:40:10]MH_SAM_APDU [20:40:10]CAPDU: 80 0D 02 02 05 21 70 C1 19 76 [20:40:10]Write to MH i2c: E2 0D 00 87 08 80 0D 02 02 05 00 21 70 C1 19 76 00 00 F4 [20:40:10]Write i2c OK [20:40:10]MH_I2C_Read... [20:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:10]Read from MH i2c: E2 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: E2 03 00 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [20:40:10]RAPDU: 90 00 [20:40:10]wFMCommunicate OK [20:40:10]wFMCommunicate request_size=4 [20:40:10]MH_SAM_APDU [20:40:10]CAPDU: 80 0D 03 02 [20:40:10]Write to MH i2c: E2 08 00 88 08 80 0D 03 02 00 00 00 00 0B [20:40:10]Write i2c OK [20:40:10]MH_I2C_Read... [20:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:11]Read from MH i2c: E2 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: E2 0B 00 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: E2 0B 00 88 08 00 7A AB 30 8A 64 95 B0 67 90 00 FB [20:40:11]RAPDU: 7A AB 30 8A 64 95 B0 67 90 00 [20:40:11]wFMCommunicate OK [20:40:11]SAM_PROTO_SignData done [20:40:11]FM_MakeSignedData done [20:40:11]CreateOFDProtocolMessage [20:40:11]wFMCommunicate request_size=4 [20:40:11]MH_SAM_APDU [20:40:11]CAPDU: 80 11 00 00 [20:40:11]Write to MH i2c: E2 08 00 89 08 80 11 00 00 00 00 00 00 0B [20:40:11]Write i2c OK [20:40:11]MH_I2C_Read... [20:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:11]Read from MH i2c: E2 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: E2 17 00 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: E2 17 00 89 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5E [20:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:40:11]wFMCommunicate OK [20:40:11]CreateOFDProtocolMessage done [20:40:11]OFDSenderStorePacket 149013 [20:40:11]StoreOFDPacket docnum=149013 [20:40:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 8D 0E 07 01 9E 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 A9 7B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 15 46 02 00 35 04 06 00 0B 21 70 C1 19 76 7A AB 30 8A 64 95 B0 67 [20:40:11]CheckFolder [20:40:11]dirname=/storage/ofd_packets [20:40:11]CheckFolder done [20:40:11]ProducePacketName [20:40:11]name=ofd_packets/00149013 [20:40:11]NVStorageSaveData ofd_packets/00149013 [20:40:11]File name is /storage/ofd_packets/00149013 [20:40:11]Write 301 bytes [20:40:11]NVStorageSaveData done [20:40:11]OFDSenderStorePacket done [20:40:11]KKMCreateOFDPacket done [20:40:11]NVStorageSaveData kkm_last_timestamp [20:40:11]File name is /storage/kkm_last_timestamp [20:40:11]Write 4 bytes [20:40:11]NVStorageSaveData done [20:40:11]ExternCall_PrintAddStr [20:40:11]wPrintStart [20:40:11]Write to MH i2c: 01 00 00 8A 08 92 [20:40:11]Write i2c OK [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: 01 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: 01 07 00 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: 01 07 00 8A 08 00 00 00 00 00 FF 0F A7 [20:40:11]RasterBufferAndPrint [20:40:11]line Счет N : (1)979949 [20:40:11]line ИНН: 02508201610067 [20:40:11]line Контрольно-Кассовый Чек [20:40:11]line ПРОДАЖА [20:40:11]line ТРК (МРК, ГНК) : 22 [20:40:11]line Товар: 2710124130 [20:40:11]line Аи-92-К-5 [20:40:11]line 7.480 * 66.90 [20:40:11]line = 500.41 [20:40:11]line НДС 12% НСП 1% [20:40:11]line > о реализуемом товаре [20:40:11]line ОКРУГЛЕНИЕ: -0.41 [20:40:11]line ИТОГО: 500.00 [20:40:11]line Внесено: 500.00 [20:40:11]line СДАЧА: 0.00 [20:40:11]line НСП 1% : 4.43 [20:40:11]line НДС 12% : 53.14 [20:40:11]line Наличными: 500.00 [20:40:11]line Безнал.: 0.00 [20:40:11]line Место: АЗС № 68 "Партнер Нефть" [20:40:11]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:40:11]line СНО: Общий режим [20:40:11]line Чек 352 04.06.2024 20:40 [20:40:11]line Смена: 368 ФФД: 1.0 [20:40:11]line ЗНМ: 0300000035 [20:40:11]line РНМ: 0000000000092720 [20:40:11]line Версия ККМ: 001 [20:40:11]line ФМ: 0000000000875057 [20:40:11]line ФД: 149013 [20:40:11]line ФПД: 12238253529462 [20:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T204009&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149013&fm=12238253529462&tin=02508201610067®Number=0000000000092720&sum=50000 [20:40:11]OFD Sender: Processing packet 149013 [packets to send 100, broken 99] [20:40:11]ProducePacketName [20:40:11]name=ofd_packets/00149013 [20:40:11]OFD Sender: To server: pG, [20:40:11]CommunicateWithHost lk.salyk.kg:30040 [20:40:11]ConnectInit lk.salyk.kg [20:40:11]written 0, free lines is 4095 [20:40:11]Connected sock=11 [20:40:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 8D 0E 07 01 9E 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 A9 7B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 15 46 02 00 35 04 06 00 0B 21 70 C1 19 76 7A AB 30 8A 64 95 B0 67 [20:40:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C9 EA 47 00 64 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 38 37 35 30 35 37 10 04 04 00 15 46 02 00 F4 03 04 00 CC 22 5F 66 B6 04 01 00 00 76 E2 EB 27 96 9B A5 B5 [20:40:11]CommunicateWithHost err = 0 [20:40:11]CheckOFDResponse [20:40:11]1017 (14) - 77093643461234 [20:40:11]1041 (16) - 0000000000875057 [20:40:11]1040 (4) - 149013 [20:40:11]1012 (4) - 04.06.2024 14:21 [20:40:11]1206 (1) - 0 [20:40:11]OFD Sender: Remove packet 149013 [20:40:11]ProducePacketName [20:40:11]name=ofd_packets/00149013 [20:40:11]NVStorageDeleteData [20:40:11]Write to MH i2c: 01 00 00 B5 08 BD [20:40:11]Write i2c OK [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: 01 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: 01 07 00 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: 01 07 00 B5 08 00 00 00 00 00 74 0C 44 [20:40:11]RasterBufferAndPrint [20:40:11]line [20:40:11]line [20:40:11]line [20:40:11]line [20:40:11]line [20:40:11]written 0, free lines is 3191 [20:40:11]MH_Cut [20:40:11]Write to MH i2c: D1 01 00 BC 08 01 96 [20:40:11]Write i2c OK [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: D1 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: D1 01 00 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: D1 01 00 BC 08 00 95 [20:40:11]Write to MH i2c: 01 00 00 BD 08 C5 [20:40:11]Write i2c OK [20:40:11]MH_I2C_Read... [20:40:12]OFD Sender: No OFD packet to send [20:40:13]*** Cut start [20:40:13]*** Partial cut [20:40:13]*** CUTSNS_PIN = 1 [20:40:13]*** CUTSNS_PIN = 0 [20:40:13]*** Brake cut motor [20:40:13]Read from MH i2c: 01 [20:40:13]*** Stop cut motor [20:40:13]*** Cut end [20:40:13]MH_I2C_Read... [20:40:13]Read from MH i2c: 01 07 00 [20:40:13]MH_I2C_Read... [20:40:13]Read from MH i2c: 01 07 00 BD 08 00 00 00 00 00 FF 0F DA [20:40:13]process_action close_receipt done [20:40:13]requested_data is exist [20:40:13]produce_requested_data [20:40:13]requested_item fm.sn is exist - process it [20:40:13]wFMCommunicate request_size=4 [20:40:13]MH_SAM_APDU [20:40:13]CAPDU: 80 11 00 00 [20:40:13]Write to MH i2c: E2 08 00 BE 08 80 11 00 00 00 00 00 00 40 [20:40:13]Write i2c OK [20:40:13]MH_I2C_Read... [20:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:13]Read from MH i2c: E2 [20:40:13]MH_I2C_Read... [20:40:13]Read from MH i2c: E2 17 00 [20:40:13]MH_I2C_Read... [20:40:13]Read from MH i2c: E2 17 00 BE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 93 [20:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:40:13]wFMCommunicate OK [20:40:13]requested_item fd.num is exist - process it [20:40:13]SAM_PROTO_GetFieldsCounters [20:40:13]wFMCommunicate request_size=4 [20:40:13]MH_SAM_APDU [20:40:13]CAPDU: 80 13 00 00 [20:40:13]Write to MH i2c: E2 08 00 BF 08 80 13 00 00 00 00 00 00 43 [20:40:13]Write i2c OK [20:40:13]MH_I2C_Read... [20:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:13]Read from MH i2c: E2 [20:40:13]MH_I2C_Read... [20:40:13]Read from MH i2c: E2 62 00 [20:40:13]MH_I2C_Read... [20:40:13]Read from MH i2c: E2 62 00 BF 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 15 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [20:40:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 15 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:13]wFMCommunicate OK [20:40:13]SAM_PROTO_GetFieldsCounters done [20:40:13]requested_item shift.num is exist - process it [20:40:13]requested_item shift.opened is exist - process it [20:40:13]req_shift_opened [20:40:13]FM_GetShiftState [20:40:13]SAM_PROTO_GetShiftState [20:40:13]wFMCommunicate request_size=4 [20:40:13]MH_SAM_APDU [20:40:13]CAPDU: 80 13 01 00 [20:40:13]Write to MH i2c: E2 08 00 C0 08 80 13 01 00 00 00 00 00 45 [20:40:13]Write i2c OK [20:40:13]MH_I2C_Read... [20:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:13]Read from MH i2c: E2 [20:40:13]MH_I2C_Read... [20:40:13]Read from MH i2c: E2 0E 00 [20:40:13]MH_I2C_Read... [20:40:13]Read from MH i2c: E2 0E 00 C0 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 08 [20:40:13]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:40:13]wFMCommunicate OK [20:40:13]SAM_PROTO_GetShiftState done [20:40:13]FM_GetShiftState done [20:40:13]req_shift_opened done [20:40:13]requested_item shift.open_date is exist - process it [20:40:13]req_shift_open_date [20:40:13]req_shift_open_date done [20:40:13]produce_requested_data done [20:40:13]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149013,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:40:13]process_action_free close_receipt [20:40:13]json_value_free [20:40:13]json_value_free done [20:40:13]process_json_proto returns [20:40:13]Send response to host [20:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149013,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:40:13]free response buf [20:40:13]execute_script done [20:40:13]execute_script returns [20:40:13]free content buf [20:40:13]Sock 10.Close socket [20:40:13]Sock 10.Thread stoped [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:26]accept exits with 7 [20:45:26]New connection [20:45:26]New thread 3067219300 created [20:45:26]Thread 3067075940 joined [20:45:26]Waiting for new connection... [20:45:26] Sock 7.Parse request [20:45:26]Sock 7.Check first char [20:45:26]Sock 7.First char is OK [20:45:26]request: POST /json_proto HTTP/1.0 [20:45:26]Method: POST [20:45:26]URL: /json_proto [20:45:26]Method is POST - this is cgi request [20:45:26]url: /json_proto [20:45:26]query_string will be loaded in cgi processing [20:45:26]execute_cgi json_proto POST (null) [20:45:26]execute_cgi path=json_proto method=POST [20:45:26]POST find Content-Length [20:45:26]Host: 172.17.38.4:8080 [20:45:26]Content-Length: 677 [20:45:26]Content-Type: application/json [20:45:26] [20:45:26]POST finish read [20:45:26]Found Content-Length = 677 [20:45:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:26]execute_script... [20: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)979950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:26]POST & json_proto [20:45:26]process_json_proto [20:45:26]json parsed OK: [20:45:26]protocol is kg_v1.0 [20:45:26]action value=close_receipt [20:45:26]process_action close_receipt [20:45:26]cmd_close_receipt [20:45:26]MH_GetDate [20:45:26]Write to MH i2c: F0 00 00 C1 08 B8 [20:45:26]Write i2c OK [20:45:26]MH_I2C_Read... [20:45:26]Read from MH i2c: F0 [20:45:26]MH_I2C_Read... [20:45:26]Read from MH i2c: F0 09 00 [20:45:26]MH_I2C_Read... [20:45:26]Read from MH i2c: F0 09 00 C1 08 00 E6 7C 5F 66 CC 51 87 64 F0 [20:45:26]GetLastDocTimeStamp 1717533609 [20:45:26]current date 1717533926 [20:45:26]FM_GetShiftState [20:45:26]SAM_PROTO_GetShiftState [20:45:26]wFMCommunicate request_size=4 [20:45:26]MH_SAM_APDU [20:45:26]CAPDU: 80 13 01 00 [20:45:26]Write to MH i2c: E2 08 00 C2 08 80 13 01 00 00 00 00 00 47 [20:45:26]Write i2c OK [20:45:26]MH_I2C_Read... [20:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:26]Read from MH i2c: E2 [20:45:26]MH_I2C_Read... [20:45:26]Read from MH i2c: E2 0E 00 [20:45:26]MH_I2C_Read... [20:45:26]Read from MH i2c: E2 0E 00 C2 08 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0A [20:45:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:45:26]wFMCommunicate OK [20:45:26]SAM_PROTO_GetShiftState done [20:45:26]FM_GetShiftState done [20:45:26]opened in 1717460629 [20:45:26]opened+sec_in_day 1717547029 [20:45:26]quantity*price = 20003 [20:45:26]sum+1 = 20004 [20:45:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 353 04.06.2024 20:45 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149014 ФПД: 241970780529070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T204526&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149014&fm=241970780529070&tin=02508201610067®Number=0000000000092720&sum=20000 [20:45:27]StoreToDocumentArchive [20:45:27]shift 368 fd 149014 [20:45:27]save to /storage/0368/doc_00149014 [20:45:27]save last doc name /storage/0368/doc_00149014 to /storage/kkm_last_doc_name [20:45:27]save OK [20:45:27]Clear old archive folders... [20:45:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:45:27]tlvbuf is 00986000 [20:45:27]SAM_PROTO_ClearQueue [20:45:27]wFMCommunicate request_size=4 [20:45:27]MH_SAM_APDU [20:45:27]CAPDU: 80 09 00 00 [20:45:27]Write to MH i2c: E2 08 00 CF 08 80 09 00 00 00 00 00 00 49 [20:45:27]Write i2c OK [20:45:27]MH_I2C_Read... [20:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:27]Read from MH i2c: E2 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 03 00 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [20:45:27]RAPDU: 90 00 [20:45:27]wFMCommunicate OK [20:45:27]SAM_PROTO_ClearQueue done [20:45:27]KKMCreateOFDPacket [20:45:27]OFDProtocolAddRootSTLVToBuf [20:45:27]FM_MakeSignedData [20:45:27]FM_MakeSignedData [20:45:27]SAM_PROTO_SignData [20:45:27]wFMCommunicate request_size=4 [20:45:27]MH_SAM_APDU [20:45:27]CAPDU: 80 0D 01 02 [20:45:27]Write to MH i2c: E2 08 00 D0 08 80 0D 01 02 00 00 00 00 51 [20:45:27]Write i2c OK [20:45:27]MH_I2C_Read... [20:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:27]Read from MH i2c: E2 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 03 00 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [20:45:27]RAPDU: 90 00 [20:45:27]wFMCommunicate OK [20:45:27]wFMCommunicate request_size=255 [20:45:27]MH_SAM_APDU [20:45:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 01 00 00 F4 03 04 00 E6 7C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 16 46 02 00 35 04 06 00 DC [20:45:27]Write to MH i2c: E2 02 01 D1 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 E6 7C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 16 46 02 00 35 04 06 00 DC 00 00 D1 [20:45:27]Write i2c OK [20:45:27]MH_I2C_Read... [20:45:27]OFD Sender: No OFD packet to send [20:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:27]Read from MH i2c: E2 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 03 00 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [20:45:27]RAPDU: 90 00 [20:45:27]wFMCommunicate OK [20:45:27]wFMCommunicate request_size=10 [20:45:27]MH_SAM_APDU [20:45:27]CAPDU: 80 0D 02 02 05 12 36 6B 61 AE [20:45:27]Write to MH i2c: E2 0D 00 D2 08 80 0D 02 02 05 00 12 36 6B 61 AE 00 00 20 [20:45:27]Write i2c OK [20:45:27]MH_I2C_Read... [20:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:27]Read from MH i2c: E2 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 03 00 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [20:45:27]RAPDU: 90 00 [20:45:27]wFMCommunicate OK [20:45:27]wFMCommunicate request_size=4 [20:45:27]MH_SAM_APDU [20:45:27]CAPDU: 80 0D 03 02 [20:45:27]Write to MH i2c: E2 08 00 D3 08 80 0D 03 02 00 00 00 00 56 [20:45:27]Write i2c OK [20:45:27]MH_I2C_Read... [20:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:27]Read from MH i2c: E2 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 0B 00 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 0B 00 D3 08 00 00 E1 48 BC F9 5A 45 21 90 00 F5 [20:45:27]RAPDU: 00 E1 48 BC F9 5A 45 21 90 00 [20:45:27]wFMCommunicate OK [20:45:27]SAM_PROTO_SignData done [20:45:27]FM_MakeSignedData done [20:45:27]CreateOFDProtocolMessage [20:45:27]wFMCommunicate request_size=4 [20:45:27]MH_SAM_APDU [20:45:27]CAPDU: 80 11 00 00 [20:45:27]Write to MH i2c: E2 08 00 D4 08 80 11 00 00 00 00 00 00 56 [20:45:27]Write i2c OK [20:45:27]MH_I2C_Read... [20:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:27]Read from MH i2c: E2 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 17 00 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: E2 17 00 D4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A9 [20:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:45:27]wFMCommunicate OK [20:45:27]CreateOFDProtocolMessage done [20:45:27]OFDSenderStorePacket 149014 [20:45:27]StoreOFDPacket docnum=149014 [20:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3A 8C 07 01 DA F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 01 00 00 F4 03 04 00 E6 7C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 16 46 02 00 35 04 06 00 DC 12 36 6B 61 AE 00 E1 48 BC F9 5A 45 21 [20:45:27]CheckFolder [20:45:27]dirname=/storage/ofd_packets [20:45:27]CheckFolder done [20:45:27]ProducePacketName [20:45:27]name=ofd_packets/00149014 [20:45:27]NVStorageSaveData ofd_packets/00149014 [20:45:27]File name is /storage/ofd_packets/00149014 [20:45:27]Write 301 bytes [20:45:27]NVStorageSaveData done [20:45:27]OFDSenderStorePacket done [20:45:27]KKMCreateOFDPacket done [20:45:27]NVStorageSaveData kkm_last_timestamp [20:45:27]File name is /storage/kkm_last_timestamp [20:45:27]Write 4 bytes [20:45:27]NVStorageSaveData done [20:45:27]ExternCall_PrintAddStr [20:45:27]wPrintStart [20:45:27]Write to MH i2c: 01 00 00 D5 08 DD [20:45:27]Write i2c OK [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: 01 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: 01 07 00 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: 01 07 00 D5 08 00 00 00 00 00 FF 0F F2 [20:45:27]RasterBufferAndPrint [20:45:27]line Счет N : (1)979950 [20:45:27]line ИНН: 02508201610067 [20:45:27]line Контрольно-Кассовый Чек [20:45:27]line ПРОДАЖА [20:45:27]line ТРК (МРК, ГНК) : 12 [20:45:27]line Товар: 2710124130 [20:45:27]line Аи-92-К-5 [20:45:27]line 2.990 * 66.90 [20:45:27]line = 200.03 [20:45:27]line НДС 12% НСП 1% [20:45:27]line > о реализуемом товаре [20:45:27]line ОКРУГЛЕНИЕ: -0.03 [20:45:27]line ИТОГО: 200.00 [20:45:27]line Внесено: 200.00 [20:45:27]line СДАЧА: 0.00 [20:45:27]line НСП 1% : 1.77 [20:45:27]line НДС 12% : 21.24 [20:45:27]line Наличными: 200.00 [20:45:27]line Безнал.: 0.00 [20:45:27]line Место: АЗС № 68 "Партнер Нефть" [20:45:27]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:45:27]line СНО: Общий режим [20:45:27]line Чек 353 04.06.2024 20:45 [20:45:27]line Смена: 368 ФФД: 1.0 [20:45:27]line ЗНМ: 0300000035 [20:45:27]line РНМ: 0000000000092720 [20:45:27]line Версия ККМ: 001 [20:45:27]line ФМ: 0000000000875057 [20:45:27]line ФД: 149014 [20:45:27]line ФПД: 241970780529070 [20:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T204526&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149014&fm=241970780529070&tin=02508201610067®Number=0000000000092720&sum=20000 [20:45:28]OFD Sender: Processing packet 149014 [packets to send 100, broken 99] [20:45:28]ProducePacketName [20:45:28]name=ofd_packets/00149014 [20:45:28]OFD Sender: To server: pG, [20:45:28]CommunicateWithHost lk.salyk.kg:30040 [20:45:28]ConnectInit lk.salyk.kg [20:45:28]written 0, free lines is 4095 [20:45:28]Write to MH i2c: 01 00 00 00 09 09 [20:45:28]Write i2c OK [20:45:28]MH_I2C_Read... [20:45:28]Read from MH i2c: 01 [20:45:28]MH_I2C_Read... [20:45:28]Read from MH i2c: 01 07 00 [20:45:28]MH_I2C_Read... [20:45:28]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 70 0C 8C [20:45:28]RasterBufferAndPrint [20:45:28]line [20:45:28]line [20:45:28]line [20:45:28]line [20:45:28]line [20:45:28]written 0, free lines is 3186 [20:45:28]MH_Cut [20:45:28]Write to MH i2c: D1 01 00 07 09 01 E2 [20:45:28]Write i2c OK [20:45:28]MH_I2C_Read... [20:45:28]Read from MH i2c: D1 [20:45:28]MH_I2C_Read... [20:45:28]Read from MH i2c: D1 01 00 [20:45:28]MH_I2C_Read... [20:45:28]Read from MH i2c: D1 01 00 07 09 00 E1 [20:45:28]Write to MH i2c: 01 00 00 08 09 11 [20:45:28]Write i2c OK [20:45:28]MH_I2C_Read... [20:45:29]*** Cut start [20:45:29]*** Partial cut [20:45:29]*** CUTSNS_PIN = 1 [20:45:29]*** CUTSNS_PIN = 0 [20:45:30]*** Brake cut motor [20:45:30]Read from MH i2c: 01 [20:45:30]MH_I2C_Read... [20:45:30]*** Stop cut motor [20:45:30]*** Cut end [20:45:30]Read from MH i2c: 01 07 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: 01 07 00 08 09 00 00 00 00 00 FF 0F 26 [20:45:30]process_action close_receipt done [20:45:30]requested_data is exist [20:45:30]produce_requested_data [20:45:30]requested_item fm.sn is exist - process it [20:45:30]wFMCommunicate request_size=4 [20:45:30]MH_SAM_APDU [20:45:30]CAPDU: 80 11 00 00 [20:45:30]Write to MH i2c: E2 08 00 09 09 80 11 00 00 00 00 00 00 8C [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:30]Read from MH i2c: E2 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 17 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 17 00 09 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DF [20:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:45:30]wFMCommunicate OK [20:45:30]requested_item fd.num is exist - process it [20:45:30]SAM_PROTO_GetFieldsCounters [20:45:30]wFMCommunicate request_size=4 [20:45:30]MH_SAM_APDU [20:45:30]CAPDU: 80 13 00 00 [20:45:30]Write to MH i2c: E2 08 00 0A 09 80 13 00 00 00 00 00 00 8F [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:30]Read from MH i2c: E2 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 62 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 62 00 0A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 16 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [20:45:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 16 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:45:30]wFMCommunicate OK [20:45:30]SAM_PROTO_GetFieldsCounters done [20:45:30]requested_item shift.num is exist - process it [20:45:30]requested_item shift.opened is exist - process it [20:45:30]req_shift_opened [20:45:30]FM_GetShiftState [20:45:30]SAM_PROTO_GetShiftState [20:45:30]wFMCommunicate request_size=4 [20:45:30]MH_SAM_APDU [20:45:30]CAPDU: 80 13 01 00 [20:45:30]Write to MH i2c: E2 08 00 0B 09 80 13 01 00 00 00 00 00 91 [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:30]Read from MH i2c: E2 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 0E 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 0E 00 0B 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 54 [20:45:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:45:30]wFMCommunicate OK [20:45:30]SAM_PROTO_GetShiftState done [20:45:30]FM_GetShiftState done [20:45:30]req_shift_opened done [20:45:30]requested_item shift.open_date is exist - process it [20:45:30]req_shift_open_date [20:45:30]req_shift_open_date done [20:45:30]produce_requested_data done [20:45:30]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149014,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:45:30]process_action_free close_receipt [20:45:30]json_value_free [20:45:30]json_value_free done [20:45:30]process_json_proto returns [20:45:30]Send response to host [20:45:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149014,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:45:30]free response buf [20:45:30]execute_script done [20:45:30]execute_script returns [20:45:30]free content buf [20:45:30]Sock 7.Close socket [20:45:30]Sock 7.Thread stoped [20:47:42]ConnectInit Can't connect to host [20:47:42]CommunicateWithHost connect error [20:47:42]CommunicateWithHost err = -1 [20:47:42]OFD Sender: Server communicate error [20:47:47]OFD Sender: Processing packet 149014 [packets to send 100, broken 99] [20:47:47]ProducePacketName [20:47:47]name=ofd_packets/00149014 [20:47:47]OFD Sender: To server: pG, [20:47:47]CommunicateWithHost lk.salyk.kg:30040 [20:47:47]ConnectInit lk.salyk.kg [20:47:47]Connected sock=7 [20:47:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3A 8C 07 01 DA F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 01 00 00 F4 03 04 00 E6 7C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 16 46 02 00 35 04 06 00 DC 12 36 6B 61 AE 00 E1 48 BC F9 5A 45 21 [20:47:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B5 7D 47 00 46 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 16 46 02 00 F4 03 04 00 94 24 5F 66 B6 04 01 00 00 BC 77 B0 04 3A 38 52 A2 [20:47:47]CommunicateWithHost err = 0 [20:47:47]CheckOFDResponse [20:47:47]1017 (14) - 77093643461234 [20:47:47]1041 (16) - 0000000000875057 [20:47:47]1040 (4) - 149014 [20:47:47]1012 (4) - 04.06.2024 14:28 [20:47:47]1206 (1) - 0 [20:47:47]OFD Sender: Remove packet 149014 [20:47:47]ProducePacketName [20:47:47]name=ofd_packets/00149014 [20:47:47]NVStorageDeleteData [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:05]accept exits with 9 [20:50:05]New connection [20:50:05]New thread 3067075940 created [20:50:05]Thread 3067219300 joined [20:50:05]Waiting for new connection... [20:50:05] Sock 9.Parse request [20:50:05]Sock 9.Check first char [20:50:05]Sock 9.First char is OK [20:50:05]request: POST /json_proto HTTP/1.0 [20:50:05]Method: POST [20:50:05]URL: /json_proto [20:50:05]Method is POST - this is cgi request [20:50:05]url: /json_proto [20:50:05]query_string will be loaded in cgi processing [20:50:05]execute_cgi json_proto POST (null) [20:50:05]execute_cgi path=json_proto method=POST [20:50:05]POST find Content-Length [20:50:05]Host: 172.17.38.4:8080 [20:50:05]Content-Length: 677 [20:50:05]Content-Type: application/json [20:50:05] [20:50:05]POST finish read [20:50:05]Found Content-Length = 677 [20:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.010, "sum" : 335.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:05]execute_script... [20:50: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)979951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.010, "sum" : 335.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:05]POST & json_proto [20:50:05]process_json_proto [20:50:05]json parsed OK: [20:50:05]protocol is kg_v1.0 [20:50:05]action value=close_receipt [20:50:05]process_action close_receipt [20:50:05]cmd_close_receipt [20:50:05]MH_GetDate [20:50:05]Write to MH i2c: F0 00 00 0C 09 04 [20:50:05]Write i2c OK [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: F0 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: F0 09 00 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: F0 09 00 0C 09 00 FD 7D 5F 66 CC 51 87 64 54 [20:50:05]GetLastDocTimeStamp 1717533926 [20:50:05]current date 1717534205 [20:50:05]FM_GetShiftState [20:50:05]SAM_PROTO_GetShiftState [20:50:05]wFMCommunicate request_size=4 [20:50:05]MH_SAM_APDU [20:50:05]CAPDU: 80 13 01 00 [20:50:05]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [20:50:05]Write i2c OK [20:50:05]MH_I2C_Read... [20:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:05]Read from MH i2c: E2 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: E2 0E 00 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 56 [20:50:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:50:05]wFMCommunicate OK [20:50:05]SAM_PROTO_GetShiftState done [20:50:05]FM_GetShiftState done [20:50:05]opened in 1717460629 [20:50:05]opened+sec_in_day 1717547029 [20:50:05]quantity*price = 33516 [20:50:05]sum+1 = 33518 [20:50:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 335.00 Внесено: 335.00 СДАЧА: 0.00 НСП 1% : 2.97 НДС 12% : 35.59 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 354 04.06.2024 20:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149015 ФПД: 128052418873732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T205005&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149015&fm=128052418873732&tin=02508201610067®Number=0000000000092720&sum=33500 [20:50:06]StoreToDocumentArchive [20:50:06]shift 368 fd 149015 [20:50:06]save to /storage/0368/doc_00149015 [20:50:06]save last doc name /storage/0368/doc_00149015 to /storage/kkm_last_doc_name [20:50:06]save OK [20:50:06]Clear old archive folders... [20:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:06]tlvbuf is 0091ECF0 [20:50:06]SAM_PROTO_ClearQueue [20:50:06]wFMCommunicate request_size=4 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 09 00 00 [20:50:06]Write to MH i2c: E2 08 00 1A 09 80 09 00 00 00 00 00 00 95 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:06]Read from MH i2c: E2 03 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [20:50:06]RAPDU: 90 00 [20:50:06]wFMCommunicate OK [20:50:06]SAM_PROTO_ClearQueue done [20:50:06]KKMCreateOFDPacket [20:50:06]OFDProtocolAddRootSTLVToBuf [20:50:06]FM_MakeSignedData [20:50:06]FM_MakeSignedData [20:50:06]SAM_PROTO_SignData [20:50:06]wFMCommunicate request_size=4 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 0D 01 02 [20:50:06]Write to MH i2c: E2 08 00 1B 09 80 0D 01 02 00 00 00 00 9D [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [20:50:06]RAPDU: 90 00 [20:50:06]wFMCommunicate OK [20:50:06]wFMCommunicate request_size=255 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 ED 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 0D 00 00 00 00 07 04 06 00 DC 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 62 01 00 00 F4 03 04 00 FD 7D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 17 46 02 00 35 04 06 00 74 [20:50:06]Write to MH i2c: E2 02 01 1C 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 ED 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 0D 00 00 00 00 07 04 06 00 DC 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 62 01 00 00 F4 03 04 00 FD 7D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 17 46 02 00 35 04 06 00 74 00 00 B2 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [20:50:06]RAPDU: 90 00 [20:50:06]wFMCommunicate OK [20:50:06]wFMCommunicate request_size=10 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 0D 02 02 05 76 86 F0 89 84 [20:50:06]Write to MH i2c: E2 0D 00 1D 09 80 0D 02 02 05 00 76 86 F0 89 84 00 00 A3 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [20:50:06]RAPDU: 90 00 [20:50:06]wFMCommunicate OK [20:50:06]wFMCommunicate request_size=4 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 0D 03 02 [20:50:06]Write to MH i2c: E2 08 00 1E 09 80 0D 03 02 00 00 00 00 A2 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 0B 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 0B 00 1E 09 00 4B BB 41 FB A8 EE 25 01 90 00 A1 [20:50:06]RAPDU: 4B BB 41 FB A8 EE 25 01 90 00 [20:50:06]wFMCommunicate OK [20:50:06]SAM_PROTO_SignData done [20:50:06]FM_MakeSignedData done [20:50:06]CreateOFDProtocolMessage [20:50:06]wFMCommunicate request_size=4 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 11 00 00 [20:50:06]Write to MH i2c: E2 08 00 1F 09 80 11 00 00 00 00 00 00 A2 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 17 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 17 00 1F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F5 [20:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:50:06]wFMCommunicate OK [20:50:06]CreateOFDProtocolMessage done [20:50:06]OFDSenderStorePacket 149015 [20:50:06]StoreOFDPacket docnum=149015 [20:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 36 BC 07 01 D1 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 ED 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 0D 00 00 00 00 07 04 06 00 DC 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 62 01 00 00 F4 03 04 00 FD 7D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 17 46 02 00 35 04 06 00 74 76 86 F0 89 84 4B BB 41 FB A8 EE 25 01 [20:50:06]CheckFolder [20:50:06]dirname=/storage/ofd_packets [20:50:06]CheckFolder done [20:50:06]ProducePacketName [20:50:06]name=ofd_packets/00149015 [20:50:06]NVStorageSaveData ofd_packets/00149015 [20:50:06]File name is /storage/ofd_packets/00149015 [20:50:06]Write 301 bytes [20:50:06]NVStorageSaveData done [20:50:06]OFDSenderStorePacket done [20:50:06]KKMCreateOFDPacket done [20:50:06]NVStorageSaveData kkm_last_timestamp [20:50:06]File name is /storage/kkm_last_timestamp [20:50:06]Write 4 bytes [20:50:06]NVStorageSaveData done [20:50:06]ExternCall_PrintAddStr [20:50:06]wPrintStart [20:50:06]Write to MH i2c: 01 00 00 20 09 29 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: 01 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: 01 07 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 FF 0F 3E [20:50:06]RasterBufferAndPrint [20:50:06]line Счет N : (1)979951 [20:50:06]line ИНН: 02508201610067 [20:50:06]line Контрольно-Кассовый Чек [20:50:06]line ПРОДАЖА [20:50:06]line ТРК (МРК, ГНК) : 12 [20:50:06]line Товар: 2710124130 [20:50:06]line Аи-92-К-5 [20:50:06]line 5.010 * 66.90 [20:50:06]line = 335.17 [20:50:06]line НДС 12% НСП 1% [20:50:06]line > о реализуемом товаре [20:50:06]line ОКРУГЛЕНИЕ: -0.17 [20:50:06]line ИТОГО: 335.00 [20:50:06]line Внесено: 335.00 [20:50:06]line СДАЧА: 0.00 [20:50:06]line НСП 1% : 2.97 [20:50:06]line НДС 12% : 35.59 [20:50:06]line Наличными: 335.00 [20:50:06]line Безнал.: 0.00 [20:50:06]line Место: АЗС № 68 "Партнер Нефть" [20:50:06]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:50:06]line СНО: Общий режим [20:50:06]line Чек 354 04.06.2024 20:50 [20:50:06]line Смена: 368 ФФД: 1.0 [20:50:06]line ЗНМ: 0300000035 [20:50:06]line РНМ: 0000000000092720 [20:50:06]line Версия ККМ: 001 [20:50:06]line ФМ: 0000000000875057 [20:50:06]line ФД: 149015 [20:50:06]line ФПД: 128052418873732 [20:50:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T205005&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149015&fm=128052418873732&tin=02508201610067®Number=0000000000092720&sum=33500 [20:50:07]OFD Sender: Processing packet 149015 [packets to send 100, broken 99] [20:50:07]ProducePacketName [20:50:07]name=ofd_packets/00149015 [20:50:07]OFD Sender: To server: pG, [20:50:07]CommunicateWithHost lk.salyk.kg:30040 [20:50:07]ConnectInit lk.salyk.kg [20:50:07]written 0, free lines is 4095 [20:50:07]Connected sock=11 [20:50:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 36 BC 07 01 D1 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 ED 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 0D 00 00 00 00 07 04 06 00 DC 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 62 01 00 00 F4 03 04 00 FD 7D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 17 46 02 00 35 04 06 00 74 76 86 F0 89 84 4B BB 41 FB A8 EE 25 01 [20:50:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 07 AA 47 00 9F 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 17 46 02 00 F4 03 04 00 20 25 5F 66 B6 04 01 00 00 94 36 B5 09 D0 9F DA 1B [20:50:07]CommunicateWithHost err = 0 [20:50:07]CheckOFDResponse [20:50:07]1017 (14) - 77093643461234 [20:50:07]1041 (16) - 0000000000875057 [20:50:07]1040 (4) - 149015 [20:50:07]1012 (4) - 04.06.2024 14:30 [20:50:07]1206 (1) - 0 [20:50:07]OFD Sender: Remove packet 149015 [20:50:07]ProducePacketName [20:50:07]name=ofd_packets/00149015 [20:50:07]NVStorageDeleteData [20:50:07]Write to MH i2c: 01 00 00 4B 09 54 [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 07 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 07 00 4B 09 00 00 00 00 00 71 0C D8 [20:50:07]RasterBufferAndPrint [20:50:07]line [20:50:07]line [20:50:07]line [20:50:07]line [20:50:07]line [20:50:07]written 0, free lines is 3187 [20:50:07]MH_Cut [20:50:07]Write to MH i2c: D1 01 00 52 09 01 2D [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: D1 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: D1 01 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: D1 01 00 52 09 00 2C [20:50:07]Write to MH i2c: 01 00 00 53 09 5C [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]OFD Sender: No OFD packet to send [20:50:08]*** Cut start [20:50:08]*** Partial cut [20:50:08]*** CUTSNS_PIN = 1 [20:50:08]*** CUTSNS_PIN = 0 [20:50:09]*** Brake cut motor [20:50:09]Read from MH i2c: 01 [20:50:09]MH_I2C_Read... [20:50:09]*** Stop cut motor [20:50:09]*** Cut end [20:50:09]Read from MH i2c: 01 07 00 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: 01 07 00 53 09 00 00 00 00 00 FF 0F 71 [20:50:09]process_action close_receipt done [20:50:09]requested_data is exist [20:50:09]produce_requested_data [20:50:09]requested_item fm.sn is exist - process it [20:50:09]wFMCommunicate request_size=4 [20:50:09]MH_SAM_APDU [20:50:09]CAPDU: 80 11 00 00 [20:50:09]Write to MH i2c: E2 08 00 54 09 80 11 00 00 00 00 00 00 D7 [20:50:09]Write i2c OK [20:50:09]MH_I2C_Read... [20:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:09]Read from MH i2c: E2 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 17 00 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 17 00 54 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2A [20:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:50:09]wFMCommunicate OK [20:50:09]requested_item fd.num is exist - process it [20:50:09]SAM_PROTO_GetFieldsCounters [20:50:09]wFMCommunicate request_size=4 [20:50:09]MH_SAM_APDU [20:50:09]CAPDU: 80 13 00 00 [20:50:09]Write to MH i2c: E2 08 00 55 09 80 13 00 00 00 00 00 00 DA [20:50:09]Write i2c OK [20:50:09]MH_I2C_Read... [20:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:09]Read from MH i2c: E2 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 62 00 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 62 00 55 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 17 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [20:50:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 17 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:09]wFMCommunicate OK [20:50:09]SAM_PROTO_GetFieldsCounters done [20:50:09]requested_item shift.num is exist - process it [20:50:09]requested_item shift.opened is exist - process it [20:50:09]req_shift_opened [20:50:09]FM_GetShiftState [20:50:09]SAM_PROTO_GetShiftState [20:50:09]wFMCommunicate request_size=4 [20:50:09]MH_SAM_APDU [20:50:09]CAPDU: 80 13 01 00 [20:50:09]Write to MH i2c: E2 08 00 56 09 80 13 01 00 00 00 00 00 DC [20:50:09]Write i2c OK [20:50:09]MH_I2C_Read... [20:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:09]Read from MH i2c: E2 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 0E 00 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 0E 00 56 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9F [20:50:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:50:09]wFMCommunicate OK [20:50:09]SAM_PROTO_GetShiftState done [20:50:09]FM_GetShiftState done [20:50:09]req_shift_opened done [20:50:09]requested_item shift.open_date is exist - process it [20:50:09]req_shift_open_date [20:50:09]req_shift_open_date done [20:50:09]produce_requested_data done [20:50:09]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149015,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:50:09]process_action_free close_receipt [20:50:09]json_value_free [20:50:09]json_value_free done [20:50:09]process_json_proto returns [20:50:09]Send response to host [20:50:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149015,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:50:09]free response buf [20:50:09]execute_script done [20:50:09]execute_script returns [20:50:09]free content buf [20:50:09]Sock 9.Close socket [20:50:09]Sock 9.Thread stoped [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:21]accept exits with 7 [20:53:21]New connection [20:53:21]New thread 3067219300 created [20:53:21]Thread 3067075940 joined [20:53:21]Waiting for new connection... [20:53:21] Sock 7.Parse request [20:53:21]Sock 7.Check first char [20:53:21]Sock 7.First char is OK [20:53:21]request: POST /json_proto HTTP/1.0 [20:53:21]Method: POST [20:53:21]URL: /json_proto [20:53:21]Method is POST - this is cgi request [20:53:21]url: /json_proto [20:53:21]query_string will be loaded in cgi processing [20:53:21]execute_cgi json_proto POST (null) [20:53:21]execute_cgi path=json_proto method=POST [20:53:21]POST find Content-Length [20:53:21]Host: 172.17.38.4:8080 [20:53:21]Content-Length: 678 [20:53:21]Content-Type: application/json [20:53:21] [20:53:21]POST finish read [20:53:21]Found Content-Length = 678 [20:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.830, "sum" : 800.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:21]execute_script... [20:53: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)979952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.830, "sum" : 800.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:21]POST & json_proto [20:53:21]process_json_proto [20:53:21]json parsed OK: [20:53:21]protocol is kg_v1.0 [20:53:21]action value=close_receipt [20:53:21]process_action close_receipt [20:53:21]cmd_close_receipt [20:53:21]MH_GetDate [20:53:21]Write to MH i2c: F0 00 00 57 09 4F [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: F0 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: F0 09 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: F0 09 00 57 09 00 C1 7E 5F 66 CC 51 87 64 64 [20:53:21]GetLastDocTimeStamp 1717534205 [20:53:21]current date 1717534401 [20:53:21]FM_GetShiftState [20:53:21]SAM_PROTO_GetShiftState [20:53:21]wFMCommunicate request_size=4 [20:53:21]MH_SAM_APDU [20:53:21]CAPDU: 80 13 01 00 [20:53:21]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:21]Read from MH i2c: E2 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 0E 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A1 [20:53:21]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:53:21]wFMCommunicate OK [20:53:21]SAM_PROTO_GetShiftState done [20:53:21]FM_GetShiftState done [20:53:21]opened in 1717460629 [20:53:21]opened+sec_in_day 1717547029 [20:53:21]quantity*price = 80033 [20:53:21]sum+1 = 80035 [20:53:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.99 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 355 04.06.2024 20:53 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149016 ФПД: 239471395869736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T205321&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149016&fm=239471395869736&tin=02508201610067®Number=0000000000092720&sum=80000 [20:53:22]StoreToDocumentArchive [20:53:22]shift 368 fd 149016 [20:53:22]save to /storage/0368/doc_00149016 [20:53:22]save last doc name /storage/0368/doc_00149016 to /storage/kkm_last_doc_name [20:53:22]save OK [20:53:22]Clear old archive folders... [20:53:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:22]tlvbuf is 00937D40 [20:53:22]SAM_PROTO_ClearQueue [20:53:22]wFMCommunicate request_size=4 [20:53:22]MH_SAM_APDU [20:53:22]CAPDU: 80 09 00 00 [20:53:22]Write to MH i2c: E2 08 00 65 09 80 09 00 00 00 00 00 00 E0 [20:53:22]Write i2c OK [20:53:22]MH_I2C_Read... [20:53:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:22]Read from MH i2c: E2 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: E2 03 00 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [20:53:22]RAPDU: 90 00 [20:53:22]wFMCommunicate OK [20:53:22]SAM_PROTO_ClearQueue done [20:53:22]KKMCreateOFDPacket [20:53:22]OFDProtocolAddRootSTLVToBuf [20:53:22]FM_MakeSignedData [20:53:22]FM_MakeSignedData [20:53:22]SAM_PROTO_SignData [20:53:22]wFMCommunicate request_size=4 [20:53:22]MH_SAM_APDU [20:53:22]CAPDU: 80 0D 01 02 [20:53:22]Write to MH i2c: E2 08 00 66 09 80 0D 01 02 00 00 00 00 E8 [20:53:22]Write i2c OK [20:53:22]MH_I2C_Read... [20:53:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:22]Read from MH i2c: E2 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: E2 03 00 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [20:53:22]RAPDU: 90 00 [20:53:22]wFMCommunicate OK [20:53:22]wFMCommunicate request_size=255 [20:53:22]MH_SAM_APDU [20:53: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 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 63 01 00 00 F4 03 04 00 C1 7E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 18 46 02 00 35 04 06 00 D9 [20:53:22]Write to MH i2c: E2 02 01 67 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 63 01 00 00 F4 03 04 00 C1 7E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 18 46 02 00 35 04 06 00 D9 00 00 DC [20:53:22]Write i2c OK [20:53:22]MH_I2C_Read... [20:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:22]Read from MH i2c: E2 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: E2 03 00 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [20:53:22]RAPDU: 90 00 [20:53:22]wFMCommunicate OK [20:53:22]wFMCommunicate request_size=10 [20:53:22]MH_SAM_APDU [20:53:22]CAPDU: 80 0D 02 02 05 CC 47 7C 14 28 [20:53:22]Write to MH i2c: E2 0D 00 68 09 80 0D 02 02 05 00 CC 47 7C 14 28 00 00 C0 [20:53:22]Write i2c OK [20:53:22]MH_I2C_Read... [20:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:22]Read from MH i2c: E2 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: E2 03 00 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [20:53:22]RAPDU: 90 00 [20:53:22]wFMCommunicate OK [20:53:22]wFMCommunicate request_size=4 [20:53:22]MH_SAM_APDU [20:53:22]CAPDU: 80 0D 03 02 [20:53:22]Write to MH i2c: E2 08 00 69 09 80 0D 03 02 00 00 00 00 ED [20:53:22]Write i2c OK [20:53:22]MH_I2C_Read... [20:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:23]Read from MH i2c: E2 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 0B 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 0B 00 69 09 00 A9 0C 24 CD 78 37 15 A9 90 00 01 [20:53:23]RAPDU: A9 0C 24 CD 78 37 15 A9 90 00 [20:53:23]wFMCommunicate OK [20:53:23]SAM_PROTO_SignData done [20:53:23]FM_MakeSignedData done [20:53:23]CreateOFDProtocolMessage [20:53:23]wFMCommunicate request_size=4 [20:53:23]MH_SAM_APDU [20:53:23]CAPDU: 80 11 00 00 [20:53:23]Write to MH i2c: E2 08 00 6A 09 80 11 00 00 00 00 00 00 ED [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:23]Read from MH i2c: E2 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 17 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 17 00 6A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 40 [20:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:53:23]wFMCommunicate OK [20:53:23]CreateOFDProtocolMessage done [20:53:23]OFDSenderStorePacket 149016 [20:53:23]StoreOFDPacket docnum=149016 [20:53:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 2A BD 07 01 1A 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 63 01 00 00 F4 03 04 00 C1 7E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 18 46 02 00 35 04 06 00 D9 CC 47 7C 14 28 A9 0C 24 CD 78 37 15 A9 [20:53:23]CheckFolder [20:53:23]dirname=/storage/ofd_packets [20:53:23]CheckFolder done [20:53:23]ProducePacketName [20:53:23]name=ofd_packets/00149016 [20:53:23]NVStorageSaveData ofd_packets/00149016 [20:53:23]File name is /storage/ofd_packets/00149016 [20:53:23]Write 301 bytes [20:53:23]NVStorageSaveData done [20:53:23]OFDSenderStorePacket done [20:53:23]KKMCreateOFDPacket done [20:53:23]NVStorageSaveData kkm_last_timestamp [20:53:23]File name is /storage/kkm_last_timestamp [20:53:23]Write 4 bytes [20:53:23]NVStorageSaveData done [20:53:23]ExternCall_PrintAddStr [20:53:23]wPrintStart [20:53:23]Write to MH i2c: 01 00 00 6B 09 74 [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: 01 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: 01 07 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: 01 07 00 6B 09 00 00 00 00 00 FF 0F 89 [20:53:23]RasterBufferAndPrint [20:53:23]line Счет N : (1)979952 [20:53:23]line ИНН: 02508201610067 [20:53:23]line Контрольно-Кассовый Чек [20:53:23]line ПРОДАЖА [20:53:23]line ТРК (МРК, ГНК) : 32 [20:53:23]line Товар: 2710124500 [20:53:23]line Аи-95-К-5 [20:53:23]line 10.830 * 73.90 [20:53:23]line = 800.34 [20:53:23]line НДС 12% НСП 1% [20:53:23]line > о реализуемом товаре [20:53:23]line ОКРУГЛЕНИЕ: -0.34 [20:53:23]line ИТОГО: 800.00 [20:53:23]line Внесено: 800.00 [20:53:23]line СДАЧА: 0.00 [20:53:23]line НСП 1% : 7.08 [20:53:23]line НДС 12% : 84.99 [20:53:23]line Наличными: 800.00 [20:53:23]line Безнал.: 0.00 [20:53:23]line Место: АЗС № 68 "Партнер Нефть" [20:53:23]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:53:23]line СНО: Общий режим [20:53:23]line Чек 355 04.06.2024 20:53 [20:53:23]line Смена: 368 ФФД: 1.0 [20:53:23]line ЗНМ: 0300000035 [20:53:23]line РНМ: 0000000000092720 [20:53:23]line Версия ККМ: 001 [20:53:23]line ФМ: 0000000000875057 [20:53:23]line ФД: 149016 [20:53:23]line ФПД: 239471395869736 [20:53:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T205321&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149016&fm=239471395869736&tin=02508201610067®Number=0000000000092720&sum=80000 [20:53:23]OFD Sender: Processing packet 149016 [packets to send 100, broken 99] [20:53:23]ProducePacketName [20:53:23]name=ofd_packets/00149016 [20:53:23]OFD Sender: To server: pG, [20:53:23]CommunicateWithHost lk.salyk.kg:30040 [20:53:23]ConnectInit lk.salyk.kg [20:53:23]written 0, free lines is 4095 [20:53:23]Connected sock=10 [20:53:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 2A BD 07 01 1A 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 63 01 00 00 F4 03 04 00 C1 7E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 18 46 02 00 35 04 06 00 D9 CC 47 7C 14 28 A9 0C 24 CD 78 37 15 A9 [20:53:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 56 7A 47 00 EE 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 18 46 02 00 F4 03 04 00 E4 25 5F 66 B6 04 01 00 00 55 BC DA 96 E2 22 D3 C6 [20:53:23]CommunicateWithHost err = 0 [20:53:23]CheckOFDResponse [20:53:23]1017 (14) - 77093643461234 [20:53:23]1041 (16) - 0000000000875057 [20:53:23]1040 (4) - 149016 [20:53:23]1012 (4) - 04.06.2024 14:34 [20:53:23]1206 (1) - 0 [20:53:23]OFD Sender: Remove packet 149016 [20:53:23]ProducePacketName [20:53:23]name=ofd_packets/00149016 [20:53:23]NVStorageDeleteData [20:53:23]Write to MH i2c: 01 00 00 96 09 9F [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: 01 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: 01 07 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 73 0C 25 [20:53:23]RasterBufferAndPrint [20:53:23]line [20:53:23]line [20:53:23]line [20:53:23]line [20:53:23]line [20:53:23]written 0, free lines is 3190 [20:53:23]MH_Cut [20:53:23]Write to MH i2c: D1 01 00 9D 09 01 78 [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: D1 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: D1 01 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: D1 01 00 9D 09 00 77 [20:53:23]Write to MH i2c: 01 00 00 9E 09 A7 [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:24]OFD Sender: No OFD packet to send [20:53:25]*** Cut start [20:53:25]*** Partial cut [20:53:25]*** CUTSNS_PIN = 1 [20:53:25]*** CUTSNS_PIN = 0 [20:53:25]*** Brake cut motor [20:53:25]Read from MH i2c: 01 [20:53:25]MH_I2C_Read... [20:53:25]*** Stop cut motor [20:53:25]*** Cut end [20:53:25]Read from MH i2c: 01 07 00 [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: 01 07 00 9E 09 00 00 00 00 00 FF 0F BC [20:53:25]process_action close_receipt done [20:53:25]requested_data is exist [20:53:25]produce_requested_data [20:53:25]requested_item fm.sn is exist - process it [20:53:25]wFMCommunicate request_size=4 [20:53:25]MH_SAM_APDU [20:53:25]CAPDU: 80 11 00 00 [20:53:25]Write to MH i2c: E2 08 00 9F 09 80 11 00 00 00 00 00 00 22 [20:53:25]Write i2c OK [20:53:25]MH_I2C_Read... [20:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:25]Read from MH i2c: E2 [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: E2 17 00 [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: E2 17 00 9F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 75 [20:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:53:25]wFMCommunicate OK [20:53:25]requested_item fd.num is exist - process it [20:53:25]SAM_PROTO_GetFieldsCounters [20:53:25]wFMCommunicate request_size=4 [20:53:25]MH_SAM_APDU [20:53:25]CAPDU: 80 13 00 00 [20:53:25]Write to MH i2c: E2 08 00 A0 09 80 13 00 00 00 00 00 00 25 [20:53:25]Write i2c OK [20:53:25]MH_I2C_Read... [20:53:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:25]Read from MH i2c: E2 [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: E2 62 00 [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: E2 62 00 A0 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 18 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [20:53:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 18 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:25]wFMCommunicate OK [20:53:25]SAM_PROTO_GetFieldsCounters done [20:53:25]requested_item shift.num is exist - process it [20:53:25]requested_item shift.opened is exist - process it [20:53:25]req_shift_opened [20:53:25]FM_GetShiftState [20:53:25]SAM_PROTO_GetShiftState [20:53:25]wFMCommunicate request_size=4 [20:53:25]MH_SAM_APDU [20:53:25]CAPDU: 80 13 01 00 [20:53:25]Write to MH i2c: E2 08 00 A1 09 80 13 01 00 00 00 00 00 27 [20:53:25]Write i2c OK [20:53:25]MH_I2C_Read... [20:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:26]Read from MH i2c: E2 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: E2 0E 00 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: E2 0E 00 A1 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EA [20:53:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:53:26]wFMCommunicate OK [20:53:26]SAM_PROTO_GetShiftState done [20:53:26]FM_GetShiftState done [20:53:26]req_shift_opened done [20:53:26]requested_item shift.open_date is exist - process it [20:53:26]req_shift_open_date [20:53:26]req_shift_open_date done [20:53:26]produce_requested_data done [20:53:26]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149016,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:53:26]process_action_free close_receipt [20:53:26]json_value_free [20:53:26]json_value_free done [20:53:26]process_json_proto returns [20:53:26]Send response to host [20:53:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149016,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:53:26]free response buf [20:53:26]execute_script done [20:53:26]execute_script returns [20:53:26]free content buf [20:53:26]Sock 7.Close socket [20:53:26]Sock 7.Thread stoped [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:35]accept exits with 9 [20:55:35]New connection [20:55:35]New thread 3067075940 created [20:55:35]Thread 3067219300 joined [20:55:35]Waiting for new connection... [20:55:35] Sock 9.Parse request [20:55:35]Sock 9.Check first char [20:55:35]Sock 9.First char is OK [20:55:35]request: POST /json_proto HTTP/1.0 [20:55:35]Method: POST [20:55:35]URL: /json_proto [20:55:35]Method is POST - this is cgi request [20:55:35]url: /json_proto [20:55:35]query_string will be loaded in cgi processing [20:55:35]execute_cgi json_proto POST (null) [20:55:35]execute_cgi path=json_proto method=POST [20:55:35]POST find Content-Length [20:55:35]Host: 172.17.38.4:8080 [20:55:35]Content-Length: 677 [20:55:35]Content-Type: application/json [20:55:35] [20:55:35]POST finish read [20:55:35]Found Content-Length = 677 [20:55:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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:55:35]execute_script... [20:55: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)979953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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:55:35]POST & json_proto [20:55:35]process_json_proto [20:55:35]json parsed OK: [20:55:35]protocol is kg_v1.0 [20:55:35]action value=close_receipt [20:55:35]process_action close_receipt [20:55:35]cmd_close_receipt [20:55:35]MH_GetDate [20:55:35]Write to MH i2c: F0 00 00 A2 09 9A [20:55:35]Write i2c OK [20:55:35]MH_I2C_Read... [20:55:35]Read from MH i2c: F0 [20:55:35]MH_I2C_Read... [20:55:35]Read from MH i2c: F0 09 00 [20:55:35]MH_I2C_Read... [20:55:35]Read from MH i2c: F0 09 00 A2 09 00 48 7F 5F 66 CC 51 87 64 37 [20:55:35]GetLastDocTimeStamp 1717534401 [20:55:35]current date 1717534536 [20:55:35]FM_GetShiftState [20:55:35]SAM_PROTO_GetShiftState [20:55:35]wFMCommunicate request_size=4 [20:55:35]MH_SAM_APDU [20:55:35]CAPDU: 80 13 01 00 [20:55:35]Write to MH i2c: E2 08 00 A3 09 80 13 01 00 00 00 00 00 29 [20:55:35]Write i2c OK [20:55:35]MH_I2C_Read... [20:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:35]Read from MH i2c: E2 [20:55:35]MH_I2C_Read... [20:55:35]Read from MH i2c: E2 0E 00 [20:55:35]MH_I2C_Read... [20:55:35]Read from MH i2c: E2 0E 00 A3 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EC [20:55:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:55:35]wFMCommunicate OK [20:55:35]SAM_PROTO_GetShiftState done [20:55:35]FM_GetShiftState done [20:55:35]opened in 1717460629 [20:55:35]opened+sec_in_day 1717547029 [20:55:35]quantity*price = 20003 [20:55:35]sum+1 = 20004 [20:55:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 356 04.06.2024 20:55 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149017 ФПД: 93627394679157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T205536&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149017&fm=93627394679157&tin=02508201610067®Number=0000000000092720&sum=20000 [20:55:36]StoreToDocumentArchive [20:55:36]shift 368 fd 149017 [20:55:36]save to /storage/0368/doc_00149017 [20:55:36]save last doc name /storage/0368/doc_00149017 to /storage/kkm_last_doc_name [20:55:36]save OK [20:55:36]Clear old archive folders... [20:55:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:36]tlvbuf is 00953490 [20:55:36]SAM_PROTO_ClearQueue [20:55:36]wFMCommunicate request_size=4 [20:55:36]MH_SAM_APDU [20:55:36]CAPDU: 80 09 00 00 [20:55:36]Write to MH i2c: E2 08 00 B0 09 80 09 00 00 00 00 00 00 2B [20:55:36]Write i2c OK [20:55:36]MH_I2C_Read... [20:55:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:37]Read from MH i2c: E2 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 03 00 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [20:55:37]RAPDU: 90 00 [20:55:37]wFMCommunicate OK [20:55:37]SAM_PROTO_ClearQueue done [20:55:37]KKMCreateOFDPacket [20:55:37]OFDProtocolAddRootSTLVToBuf [20:55:37]FM_MakeSignedData [20:55:37]FM_MakeSignedData [20:55:37]SAM_PROTO_SignData [20:55:37]wFMCommunicate request_size=4 [20:55:37]MH_SAM_APDU [20:55:37]CAPDU: 80 0D 01 02 [20:55:37]Write to MH i2c: E2 08 00 B1 09 80 0D 01 02 00 00 00 00 33 [20:55:37]Write i2c OK [20:55:37]MH_I2C_Read... [20:55:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:37]Read from MH i2c: E2 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 03 00 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [20:55:37]RAPDU: 90 00 [20:55:37]wFMCommunicate OK [20:55:37]wFMCommunicate request_size=255 [20:55:37]MH_SAM_APDU [20:55: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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 48 7F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 19 46 02 00 35 04 06 00 55 [20:55:37]Write to MH i2c: E2 02 01 B2 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 64 01 00 00 F4 03 04 00 48 7F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 19 46 02 00 35 04 06 00 55 00 00 97 [20:55:37]Write i2c OK [20:55:37]MH_I2C_Read... [20:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:37]Read from MH i2c: E2 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 03 00 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [20:55:37]RAPDU: 90 00 [20:55:37]wFMCommunicate OK [20:55:37]wFMCommunicate request_size=10 [20:55:37]MH_SAM_APDU [20:55:37]CAPDU: 80 0D 02 02 05 27 53 99 E1 75 [20:55:37]Write to MH i2c: E2 0D 00 B3 09 80 0D 02 02 05 00 27 53 99 E1 75 00 00 A9 [20:55:37]Write i2c OK [20:55:37]MH_I2C_Read... [20:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:37]Read from MH i2c: E2 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 03 00 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [20:55:37]RAPDU: 90 00 [20:55:37]wFMCommunicate OK [20:55:37]wFMCommunicate request_size=4 [20:55:37]MH_SAM_APDU [20:55:37]CAPDU: 80 0D 03 02 [20:55:37]Write to MH i2c: E2 08 00 B4 09 80 0D 03 02 00 00 00 00 38 [20:55:37]Write i2c OK [20:55:37]MH_I2C_Read... [20:55:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:37]Read from MH i2c: E2 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 0B 00 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 0B 00 B4 09 00 57 75 B1 FE A3 45 34 7E 90 00 4E [20:55:37]RAPDU: 57 75 B1 FE A3 45 34 7E 90 00 [20:55:37]wFMCommunicate OK [20:55:37]SAM_PROTO_SignData done [20:55:37]FM_MakeSignedData done [20:55:37]CreateOFDProtocolMessage [20:55:37]wFMCommunicate request_size=4 [20:55:37]MH_SAM_APDU [20:55:37]CAPDU: 80 11 00 00 [20:55:37]Write to MH i2c: E2 08 00 B5 09 80 11 00 00 00 00 00 00 38 [20:55:37]Write i2c OK [20:55:37]MH_I2C_Read... [20:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:37]Read from MH i2c: E2 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 17 00 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: E2 17 00 B5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8B [20:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:55:37]wFMCommunicate OK [20:55:37]CreateOFDProtocolMessage done [20:55:37]OFDSenderStorePacket 149017 [20:55:37]StoreOFDPacket docnum=149017 [20:55:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A0 B3 07 01 59 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 64 01 00 00 F4 03 04 00 48 7F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 19 46 02 00 35 04 06 00 55 27 53 99 E1 75 57 75 B1 FE A3 45 34 7E [20:55:37]CheckFolder [20:55:37]dirname=/storage/ofd_packets [20:55:37]CheckFolder done [20:55:37]ProducePacketName [20:55:37]name=ofd_packets/00149017 [20:55:37]NVStorageSaveData ofd_packets/00149017 [20:55:37]File name is /storage/ofd_packets/00149017 [20:55:37]Write 301 bytes [20:55:37]NVStorageSaveData done [20:55:37]OFDSenderStorePacket done [20:55:37]KKMCreateOFDPacket done [20:55:37]NVStorageSaveData kkm_last_timestamp [20:55:37]File name is /storage/kkm_last_timestamp [20:55:37]Write 4 bytes [20:55:37]NVStorageSaveData done [20:55:37]ExternCall_PrintAddStr [20:55:37]wPrintStart [20:55:37]Write to MH i2c: 01 00 00 B6 09 BF [20:55:37]Write i2c OK [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: 01 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: 01 07 00 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 FF 0F D4 [20:55:37]RasterBufferAndPrint [20:55:37]line Счет N : (1)979953 [20:55:37]line ИНН: 02508201610067 [20:55:37]line Контрольно-Кассовый Чек [20:55:37]line ПРОДАЖА [20:55:37]line ТРК (МРК, ГНК) : 22 [20:55:37]line Товар: 2710124130 [20:55:37]line Аи-92-К-5 [20:55:37]line 2.990 * 66.90 [20:55:37]line = 200.03 [20:55:37]line НДС 12% НСП 1% [20:55:37]line > о реализуемом товаре [20:55:37]line ОКРУГЛЕНИЕ: -0.03 [20:55:37]line ИТОГО: 200.00 [20:55:37]line Внесено: 200.00 [20:55:37]line СДАЧА: 0.00 [20:55:37]line НСП 1% : 1.77 [20:55:37]line НДС 12% : 21.24 [20:55:37]line Наличными: 200.00 [20:55:37]line Безнал.: 0.00 [20:55:37]line Место: АЗС № 68 "Партнер Нефть" [20:55:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [20:55:37]line СНО: Общий режим [20:55:37]line Чек 356 04.06.2024 20:55 [20:55:37]line Смена: 368 ФФД: 1.0 [20:55:37]line ЗНМ: 0300000035 [20:55:37]line РНМ: 0000000000092720 [20:55:37]line Версия ККМ: 001 [20:55:37]line ФМ: 0000000000875057 [20:55:37]line ФД: 149017 [20:55:37]line ФПД: 93627394679157 [20:55:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T205536&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149017&fm=93627394679157&tin=02508201610067®Number=0000000000092720&sum=20000 [20:55:37]written 0, free lines is 4095 [20:55:37]OFD Sender: Processing packet 149017 [packets to send 100, broken 99] [20:55:37]ProducePacketName [20:55:37]name=ofd_packets/00149017 [20:55:37]OFD Sender: To server: pG, [20:55:37]CommunicateWithHost lk.salyk.kg:30040 [20:55:37]ConnectInit lk.salyk.kg [20:55:37]Connected sock=10 [20:55:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A0 B3 07 01 59 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 64 01 00 00 F4 03 04 00 48 7F 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 19 46 02 00 35 04 06 00 55 27 53 99 E1 75 57 75 B1 FE A3 45 34 7E [20:55:37]Write to MH i2c: 01 00 00 E1 09 EA [20:55:37]Write i2c OK [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: 01 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: 01 07 00 [20:55:37]MH_I2C_Read... [20:55:37]Read from MH i2c: 01 07 00 E1 09 00 00 00 00 00 6E 0C 6B [20:55:37]RasterBufferAndPrint [20:55:37]line [20:55:37]line [20:55:37]line [20:55:37]line [20:55:37]line [20:55:37]written 0, free lines is 3185 [20:55:38]MH_Cut [20:55:38]Write to MH i2c: D1 01 00 E8 09 01 C3 [20:55:38]Write i2c OK [20:55:38]MH_I2C_Read... [20:55:38]Read from MH i2c: D1 [20:55:38]MH_I2C_Read... [20:55:38]Read from MH i2c: D1 01 00 [20:55:38]MH_I2C_Read... [20:55:38]Read from MH i2c: D1 01 00 E8 09 00 C2 [20:55:38]Write to MH i2c: 01 00 00 E9 09 F2 [20:55:38]Write i2c OK [20:55:38]MH_I2C_Read... [20:55:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C4 0C 47 00 86 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 19 46 02 00 F4 03 04 00 6B 26 5F 66 B6 04 01 00 00 89 7B 85 F0 0C EB F4 25 [20:55:38]CommunicateWithHost err = 0 [20:55:38]CheckOFDResponse [20:55:38]1017 (14) - 77093643461234 [20:55:38]1041 (16) - 0000000000875057 [20:55:38]1040 (4) - 149017 [20:55:38]1012 (4) - 04.06.2024 14:36 [20:55:38]1206 (1) - 0 [20:55:38]OFD Sender: Remove packet 149017 [20:55:38]ProducePacketName [20:55:38]name=ofd_packets/00149017 [20:55:38]NVStorageDeleteData [20:55:38]OFD Sender: No OFD packet to send [20:55:39]*** Cut start [20:55:39]*** Partial cut [20:55:39]*** CUTSNS_PIN = 1 [20:55:39]*** CUTSNS_PIN = 0 [20:55:39]*** Brake cut motor [20:55:39]Read from MH i2c: 01 [20:55:39]MH_I2C_Read... [20:55:39]*** Stop cut motor [20:55:39]*** Cut end [20:55:39]Read from MH i2c: 01 07 00 [20:55:39]MH_I2C_Read... [20:55:39]Read from MH i2c: 01 07 00 E9 09 00 00 00 00 00 FF 0F 07 [20:55:39]process_action close_receipt done [20:55:39]requested_data is exist [20:55:39]produce_requested_data [20:55:39]requested_item fm.sn is exist - process it [20:55:39]wFMCommunicate request_size=4 [20:55:39]MH_SAM_APDU [20:55:39]CAPDU: 80 11 00 00 [20:55:39]Write to MH i2c: E2 08 00 EA 09 80 11 00 00 00 00 00 00 6D [20:55:39]Write i2c OK [20:55:39]MH_I2C_Read... [20:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:39]Read from MH i2c: E2 [20:55:39]MH_I2C_Read... [20:55:39]Read from MH i2c: E2 17 00 [20:55:39]MH_I2C_Read... [20:55:39]Read from MH i2c: E2 17 00 EA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C0 [20:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [20:55:39]wFMCommunicate OK [20:55:39]requested_item fd.num is exist - process it [20:55:39]SAM_PROTO_GetFieldsCounters [20:55:39]wFMCommunicate request_size=4 [20:55:39]MH_SAM_APDU [20:55:39]CAPDU: 80 13 00 00 [20:55:39]Write to MH i2c: E2 08 00 EB 09 80 13 00 00 00 00 00 00 70 [20:55:39]Write i2c OK [20:55:39]MH_I2C_Read... [20:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:40]Read from MH i2c: E2 [20:55:40]MH_I2C_Read... [20:55:40]Read from MH i2c: E2 62 00 [20:55:40]MH_I2C_Read... [20:55:40]Read from MH i2c: E2 62 00 EB 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 19 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [20:55:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 19 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:40]wFMCommunicate OK [20:55:40]SAM_PROTO_GetFieldsCounters done [20:55:40]requested_item shift.num is exist - process it [20:55:40]requested_item shift.opened is exist - process it [20:55:40]req_shift_opened [20:55:40]FM_GetShiftState [20:55:40]SAM_PROTO_GetShiftState [20:55:40]wFMCommunicate request_size=4 [20:55:40]MH_SAM_APDU [20:55:40]CAPDU: 80 13 01 00 [20:55:40]Write to MH i2c: E2 08 00 EC 09 80 13 01 00 00 00 00 00 72 [20:55:40]Write i2c OK [20:55:40]MH_I2C_Read... [20:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:40]Read from MH i2c: E2 [20:55:40]MH_I2C_Read... [20:55:40]Read from MH i2c: E2 0E 00 [20:55:40]MH_I2C_Read... [20:55:40]Read from MH i2c: E2 0E 00 EC 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 35 [20:55:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [20:55:40]wFMCommunicate OK [20:55:40]SAM_PROTO_GetShiftState done [20:55:40]FM_GetShiftState done [20:55:40]req_shift_opened done [20:55:40]requested_item shift.open_date is exist - process it [20:55:40]req_shift_open_date [20:55:40]req_shift_open_date done [20:55:40]produce_requested_data done [20:55:40]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149017,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [20:55:40]process_action_free close_receipt [20:55:40]json_value_free [20:55:40]json_value_free done [20:55:40]process_json_proto returns [20:55:40]Send response to host [20:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149017,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [20:55:40]free response buf [20:55:40]execute_script done [20:55:40]execute_script returns [20:55:40]free content buf [20:55:40]Sock 9.Close socket [20:55:40]Sock 9.Thread stoped [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00: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:24]accept exits with 7 [21:01:24]New connection [21:01:24]New thread 3067219300 created [21:01:24]Thread 3067075940 joined [21:01:24]Waiting for new connection... [21:01:24] Sock 7.Parse request [21:01:24]Sock 7.Check first char [21:01:24]Sock 7.First char is OK [21:01:24]request: POST /json_proto HTTP/1.0 [21:01:24]Method: POST [21:01:24]URL: /json_proto [21:01:24]Method is POST - this is cgi request [21:01:24]url: /json_proto [21:01:24]query_string will be loaded in cgi processing [21:01:24]execute_cgi json_proto POST (null) [21:01:24]execute_cgi path=json_proto method=POST [21:01:24]POST find Content-Length [21:01:24]Host: 172.17.38.4:8080 [21:01:24]Content-Length: 983 [21:01:24]Content-Type: application/json [21:01:24] [21:01:24]POST finish read [21:01:24]Found Content-Length = 983 [21:01:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 54.690, "sum" : 3604.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 54.69 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 3604.00, "payments": [ { "type": 0, "sum" : 3604.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:24]execute_script... [21:01:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 54.690, "sum" : 3604.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 54.69 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 3604.00, "payments": [ { "type": 0, "sum" : 3604.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:24]POST & json_proto [21:01:24]process_json_proto [21:01:24]json parsed OK: [21:01:24]protocol is kg_v1.0 [21:01:24]action value=close_receipt [21:01:24]process_action close_receipt [21:01:24]cmd_close_receipt [21:01:24]MH_GetDate [21:01:24]Write to MH i2c: F0 00 00 ED 09 E5 [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: F0 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: F0 09 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: F0 09 00 ED 09 00 A5 80 5F 66 CC 51 87 64 E0 [21:01:24]GetLastDocTimeStamp 1717534536 [21:01:24]current date 1717534885 [21:01:24]FM_GetShiftState [21:01:24]SAM_PROTO_GetShiftState [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 13 01 00 [21:01:24]Write to MH i2c: E2 08 00 EE 09 80 13 01 00 00 00 00 00 74 [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 0E 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 0E 00 EE 09 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 37 [21:01:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:01:24]wFMCommunicate OK [21:01:24]SAM_PROTO_GetShiftState done [21:01:24]FM_GetShiftState done [21:01:24]opened in 1717460629 [21:01:24]opened+sec_in_day 1717547029 [21:01:24]quantity*price = 360407 [21:01:24]sum+1 = 360408 [21:01:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 3604.00 Внесено: 4000.00 СДАЧА: 396.00 НСП 1% : 31.89 НДС 12% : 382.73 Наличными: 3604.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 357 04.06.2024 21:01 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа АИ-92 номер 68 сэкономлено 54.69 сом ФМ: 0000000000875057 ФД: 149018 ФПД: 130035852887229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T210125&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149018&fm=130035852887229&tin=02508201610067®Number=0000000000092720&sum=360400 [21:01:25]StoreToDocumentArchive [21:01:25]shift 368 fd 149018 [21:01:25]save to /storage/0368/doc_00149018 [21:01:25]save last doc name /storage/0368/doc_00149018 to /storage/kkm_last_doc_name [21:01:25]save OK [21:01:25]Clear old archive folders... [21:01:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:25]tlvbuf is 0093CFA0 [21:01:25]SAM_PROTO_ClearQueue [21:01:25]wFMCommunicate request_size=4 [21:01:25]MH_SAM_APDU [21:01:25]CAPDU: 80 09 00 00 [21:01:25]Write to MH i2c: E2 08 00 FB 09 80 09 00 00 00 00 00 00 76 [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:25]Read from MH i2c: E2 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 FB 09 00 90 00 78 [21:01:25]RAPDU: 90 00 [21:01:25]wFMCommunicate OK [21:01:25]SAM_PROTO_ClearQueue done [21:01:25]KKMCreateOFDPacket [21:01:25]OFDProtocolAddRootSTLVToBuf [21:01:25]FM_MakeSignedData [21:01:25]FM_MakeSignedData [21:01:25]SAM_PROTO_SignData [21:01:25]wFMCommunicate request_size=4 [21:01:25]MH_SAM_APDU [21:01:25]CAPDU: 80 0D 01 02 [21:01:25]Write to MH i2c: E2 08 00 FC 09 80 0D 01 02 00 00 00 00 7E [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:25]Read from MH i2c: E2 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 03 00 FC 09 00 90 00 79 [21:01:25]RAPDU: 90 00 [21:01:25]wFMCommunicate OK [21:01:25]wFMCommunicate request_size=255 [21:01:25]MH_SAM_APDU [21:01:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 D5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D7 7F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 95 00 00 00 00 07 04 06 00 D0 7F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 A5 80 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1A 46 02 00 35 04 06 00 76 [21:01:25]Write to MH i2c: E2 02 01 FD 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 D5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D7 7F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 95 00 00 00 00 07 04 06 00 D0 7F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 A5 80 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1A 46 02 00 35 04 06 00 76 00 00 04 [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:26]Read from MH i2c: E2 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: E2 03 00 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [21:01:26]RAPDU: 90 00 [21:01:26]wFMCommunicate OK [21:01:26]wFMCommunicate request_size=10 [21:01:26]MH_SAM_APDU [21:01:26]CAPDU: 80 0D 02 02 05 44 54 D1 C4 BD [21:01:26]Write to MH i2c: E2 0D 00 FE 09 80 0D 02 02 05 00 44 54 D1 C4 BD 00 00 75 [21:01:26]Write i2c OK [21:01:26]MH_I2C_Read... [21:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:26]Read from MH i2c: E2 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: E2 03 00 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: E2 03 00 FE 09 00 90 00 7B [21:01:26]RAPDU: 90 00 [21:01:26]wFMCommunicate OK [21:01:26]wFMCommunicate request_size=4 [21:01:26]MH_SAM_APDU [21:01:26]CAPDU: 80 0D 03 02 [21:01:26]Write to MH i2c: E2 08 00 FF 09 80 0D 03 02 00 00 00 00 83 [21:01:26]Write i2c OK [21:01:26]MH_I2C_Read... [21:01:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:26]Read from MH i2c: E2 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: E2 0B 00 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: E2 0B 00 FF 09 00 F6 0F E4 0A 1F 8E CB 53 90 00 42 [21:01:26]RAPDU: F6 0F E4 0A 1F 8E CB 53 90 00 [21:01:26]wFMCommunicate OK [21:01:26]SAM_PROTO_SignData done [21:01:26]FM_MakeSignedData done [21:01:26]CreateOFDProtocolMessage [21:01:26]wFMCommunicate request_size=4 [21:01:26]MH_SAM_APDU [21:01:26]CAPDU: 80 11 00 00 [21:01:26]Write to MH i2c: E2 08 00 00 0A 80 11 00 00 00 00 00 00 84 [21:01:26]Write i2c OK [21:01:26]MH_I2C_Read... [21:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:26]Read from MH i2c: E2 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: E2 17 00 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: E2 17 00 00 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D7 [21:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:01:26]wFMCommunicate OK [21:01:26]CreateOFDProtocolMessage done [21:01:26]OFDSenderStorePacket 149018 [21:01:26]StoreOFDPacket docnum=149018 [21:01:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5E 0F 07 01 85 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 D5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D7 7F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 95 00 00 00 00 07 04 06 00 D0 7F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 A5 80 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1A 46 02 00 35 04 06 00 76 44 54 D1 C4 BD F6 0F E4 0A 1F 8E CB 53 [21:01:26]CheckFolder [21:01:26]dirname=/storage/ofd_packets [21:01:26]CheckFolder done [21:01:26]ProducePacketName [21:01:26]name=ofd_packets/00149018 [21:01:26]NVStorageSaveData ofd_packets/00149018 [21:01:26]File name is /storage/ofd_packets/00149018 [21:01:26]Write 301 bytes [21:01:26]NVStorageSaveData done [21:01:26]OFDSenderStorePacket done [21:01:26]KKMCreateOFDPacket done [21:01:26]NVStorageSaveData kkm_last_timestamp [21:01:26]File name is /storage/kkm_last_timestamp [21:01:26]Write 4 bytes [21:01:26]NVStorageSaveData done [21:01:26]ExternCall_PrintAddStr [21:01:26]wPrintStart [21:01:26]Write to MH i2c: 01 00 00 01 0A 0B [21:01:26]Write i2c OK [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: 01 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: 01 07 00 [21:01:26]MH_I2C_Read... [21:01:26]Read from MH i2c: 01 07 00 01 0A 00 00 00 00 00 FF 0F 20 [21:01:26]RasterBufferAndPrint [21:01:26]line Счет N : (1)979954 [21:01:26]line ИНН: 02508201610067 [21:01:26]line Контрольно-Кассовый Чек [21:01:26]line ПРОДАЖА [21:01:26]line ТРК (МРК, ГНК) : 22 [21:01:26]line Товар: 2710124130 [21:01:26]line Аи-92-К-5 [21:01:26]line 54.690 * 65.90 [21:01:26]line = 3604.07 [21:01:26]line НДС 12% НСП 1% [21:01:26]line > о реализуемом товаре [21:01:26]line ОКРУГЛЕНИЕ: -0.07 [21:01:26]line ИТОГО: 3604.00 [21:01:26]line Внесено: 4000.00 [21:01:26]line СДАЧА: 396.00 [21:01:26]line НСП 1% : 31.89 [21:01:26]line НДС 12% : 382.73 [21:01:26]line Наличными: 3604.00 [21:01:26]line Безнал.: 0.00 [21:01:26]line Место: АЗС № 68 "Партнер Нефть" [21:01:26]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:01:26]line СНО: Общий режим [21:01:26]line Чек 357 04.06.2024 21:01 [21:01:26]line Смена: 368 ФФД: 1.0 [21:01:26]line ЗНМ: 0300000035 [21:01:26]line РНМ: 0000000000092720 [21:01:26]line Версия ККМ: 001 [21:01:26]line [21:01:26]line Дисконтная программа [21:01:26]line АИ-92 [21:01:26]line номер 68 [21:01:26]line сэкономлено 54.69 сом [21:01:26]line ФМ: 0000000000875057 [21:01:26]line ФД: 149018 [21:01:26]line ФПД: 130035852887229 [21:01:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T210125&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149018&fm=130035852887229&tin=02508201610067®Number=0000000000092720&sum=360400 [21:01:26]OFD Sender: Processing packet 149018 [packets to send 100, broken 99] [21:01:26]ProducePacketName [21:01:26]name=ofd_packets/00149018 [21:01:26]OFD Sender: To server: pG, [21:01:26]CommunicateWithHost lk.salyk.kg:30040 [21:01:26]ConnectInit lk.salyk.kg [21:01:26]written 0, free lines is 4095 [21:01:26]Connected sock=10 [21:01:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5E 0F 07 01 85 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 D5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D7 7F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 95 00 00 00 00 07 04 06 00 D0 7F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 A5 80 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1A 46 02 00 35 04 06 00 76 44 54 D1 C4 BD F6 0F E4 0A 1F 8E CB 53 [21:01:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A8 14 47 00 BF 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1A 46 02 00 F4 03 04 00 C7 27 5F 66 B6 04 01 00 00 E4 73 70 5A DC D3 E2 44 [21:01:26]CommunicateWithHost err = 0 [21:01:26]CheckOFDResponse [21:01:26]1017 (14) - 77093643461234 [21:01:26]1041 (16) - 0000000000875057 [21:01:26]1040 (4) - 149018 [21:01:26]1012 (4) - 04.06.2024 14:42 [21:01:26]1206 (1) - 0 [21:01:26]OFD Sender: Remove packet 149018 [21:01:26]ProducePacketName [21:01:26]name=ofd_packets/00149018 [21:01:26]NVStorageDeleteData [21:01:27]Write to MH i2c: 01 00 00 31 0A 3B [21:01:27]Write i2c OK [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: 01 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: 01 07 00 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: 01 07 00 31 0A 00 00 00 00 00 FB 0B 48 [21:01:27]RasterBufferAndPrint [21:01:27]line [21:01:27]line [21:01:27]line [21:01:27]line [21:01:27]line [21:01:27]written 0, free lines is 3071 [21:01:27]MH_Cut [21:01:27]Write to MH i2c: D1 01 00 38 0A 01 14 [21:01:27]Write i2c OK [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: D1 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: D1 01 00 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: D1 01 00 38 0A 00 13 [21:01:27]Write to MH i2c: 01 00 00 39 0A 43 [21:01:27]Write i2c OK [21:01:27]MH_I2C_Read... [21:01:27]OFD Sender: No OFD packet to send [21:01:28]*** Cut start [21:01:28]*** Partial cut [21:01:28]*** CUTSNS_PIN = 1 [21:01:28]*** CUTSNS_PIN = 0 [21:01:28]*** Brake cut motor [21:01:29]Read from MH i2c: 01 [21:01:29]MH_I2C_Read... [21:01:29]*** Stop cut motor [21:01:29]*** Cut end [21:01:29]Read from MH i2c: 01 07 00 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: 01 07 00 39 0A 00 00 00 00 00 FF 0F 58 [21:01:29]process_action close_receipt done [21:01:29]requested_data is exist [21:01:29]produce_requested_data [21:01:29]requested_item fm.sn is exist - process it [21:01:29]wFMCommunicate request_size=4 [21:01:29]MH_SAM_APDU [21:01:29]CAPDU: 80 11 00 00 [21:01:29]Write to MH i2c: E2 08 00 3A 0A 80 11 00 00 00 00 00 00 BE [21:01:29]Write i2c OK [21:01:29]MH_I2C_Read... [21:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:29]Read from MH i2c: E2 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 17 00 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 17 00 3A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 11 [21:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:01:29]wFMCommunicate OK [21:01:29]requested_item fd.num is exist - process it [21:01:29]SAM_PROTO_GetFieldsCounters [21:01:29]wFMCommunicate request_size=4 [21:01:29]MH_SAM_APDU [21:01:29]CAPDU: 80 13 00 00 [21:01:29]Write to MH i2c: E2 08 00 3B 0A 80 13 00 00 00 00 00 00 C1 [21:01:29]Write i2c OK [21:01:29]MH_I2C_Read... [21:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:29]Read from MH i2c: E2 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 62 00 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 62 00 3B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1A 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [21:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1A 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:29]wFMCommunicate OK [21:01:29]SAM_PROTO_GetFieldsCounters done [21:01:29]requested_item shift.num is exist - process it [21:01:29]requested_item shift.opened is exist - process it [21:01:29]req_shift_opened [21:01:29]FM_GetShiftState [21:01:29]SAM_PROTO_GetShiftState [21:01:29]wFMCommunicate request_size=4 [21:01:29]MH_SAM_APDU [21:01:29]CAPDU: 80 13 01 00 [21:01:29]Write to MH i2c: E2 08 00 3C 0A 80 13 01 00 00 00 00 00 C3 [21:01:29]Write i2c OK [21:01:29]MH_I2C_Read... [21:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:29]Read from MH i2c: E2 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 0E 00 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: E2 0E 00 3C 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 86 [21:01:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:01:29]wFMCommunicate OK [21:01:29]SAM_PROTO_GetShiftState done [21:01:29]FM_GetShiftState done [21:01:29]req_shift_opened done [21:01:29]requested_item shift.open_date is exist - process it [21:01:29]req_shift_open_date [21:01:29]req_shift_open_date done [21:01:29]produce_requested_data done [21:01:29]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149018,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:01:29]process_action_free close_receipt [21:01:29]json_value_free [21:01:29]json_value_free done [21:01:29]process_json_proto returns [21:01:29]Send response to host [21:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149018,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:01:29]free response buf [21:01:29]execute_script done [21:01:29]execute_script returns [21:01:29]free content buf [21:01:29]Sock 7.Close socket [21:01:29]Sock 7.Thread stoped [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:07]accept exits with 9 [21:03:07]New connection [21:03:07]New thread 3067075940 created [21:03:07]Thread 3067219300 joined [21:03:07]Waiting for new connection... [21:03:07] Sock 9.Parse request [21:03:07]Sock 9.Check first char [21:03:07]Sock 9.First char is OK [21:03:07]request: POST /json_proto HTTP/1.0 [21:03:07]Method: POST [21:03:07]URL: /json_proto [21:03:07]Method is POST - this is cgi request [21:03:07]url: /json_proto [21:03:07]query_string will be loaded in cgi processing [21:03:07]execute_cgi json_proto POST (null) [21:03:07]execute_cgi path=json_proto method=POST [21:03:07]POST find Content-Length [21:03:07]Host: 172.17.38.4:8080 [21:03:07]Content-Length: 671 [21:03:07]Content-Type: application/json [21:03:07] [21:03:07]POST finish read [21:03:07]Found Content-Length = 671 [21:03:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 11.790, "sum" : 800.54, "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" ] } } [21:03:07]execute_script... [21:03: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)979955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 11.790, "sum" : 800.54, "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" ] } } [21:03:07]POST & json_proto [21:03:07]process_json_proto [21:03:07]json parsed OK: [21:03:07]protocol is kg_v1.0 [21:03:07]action value=close_receipt [21:03:07]process_action close_receipt [21:03:07]cmd_close_receipt [21:03:07]MH_GetDate [21:03:07]Write to MH i2c: F0 00 00 3D 0A 36 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: F0 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: F0 09 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: F0 09 00 3D 0A 00 0C 81 5F 66 CC 51 87 64 99 [21:03:07]GetLastDocTimeStamp 1717534885 [21:03:07]current date 1717534988 [21:03:07]FM_GetShiftState [21:03:07]SAM_PROTO_GetShiftState [21:03:07]wFMCommunicate request_size=4 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 13 01 00 [21:03:07]Write to MH i2c: E2 08 00 3E 0A 80 13 01 00 00 00 00 00 C5 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:07]Read from MH i2c: E2 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 0E 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 0E 00 3E 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 88 [21:03:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:03:07]wFMCommunicate OK [21:03:07]SAM_PROTO_GetShiftState done [21:03:07]FM_GetShiftState done [21:03:07]opened in 1717460629 [21:03:07]opened+sec_in_day 1717547029 [21:03:07]quantity*price = 80054 [21:03:07]sum+1 = 80055 [21:03:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 358 04.06.2024 21:03 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149019 ФПД: 170885339061788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T210308&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149019&fm=170885339061788&tin=02508201610067®Number=0000000000092720&sum=80000 [21:03:09]StoreToDocumentArchive [21:03:09]shift 368 fd 149019 [21:03:09]save to /storage/0368/doc_00149019 [21:03:09]save last doc name /storage/0368/doc_00149019 to /storage/kkm_last_doc_name [21:03:09]save OK [21:03:09]Clear old archive folders... [21:03:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:03:09]tlvbuf is 00965980 [21:03:09]SAM_PROTO_ClearQueue [21:03:09]wFMCommunicate request_size=4 [21:03:09]MH_SAM_APDU [21:03:09]CAPDU: 80 09 00 00 [21:03:09]Write to MH i2c: E2 08 00 4B 0A 80 09 00 00 00 00 00 00 C7 [21:03:09]Write i2c OK [21:03:09]MH_I2C_Read... [21:03:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:09]Read from MH i2c: E2 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 03 00 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [21:03:09]RAPDU: 90 00 [21:03:09]wFMCommunicate OK [21:03:09]SAM_PROTO_ClearQueue done [21:03:09]KKMCreateOFDPacket [21:03:09]OFDProtocolAddRootSTLVToBuf [21:03:09]FM_MakeSignedData [21:03:09]FM_MakeSignedData [21:03:09]SAM_PROTO_SignData [21:03:09]wFMCommunicate request_size=4 [21:03:09]MH_SAM_APDU [21:03:09]CAPDU: 80 0D 01 02 [21:03:09]Write to MH i2c: E2 08 00 4C 0A 80 0D 01 02 00 00 00 00 CF [21:03:09]Write i2c OK [21:03:09]MH_I2C_Read... [21:03:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:09]Read from MH i2c: E2 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 03 00 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 03 00 4C 0A 00 90 00 CA [21:03:09]RAPDU: 90 00 [21:03:09]wFMCommunicate OK [21:03:09]wFMCommunicate request_size=255 [21:03:09]MH_SAM_APDU [21:03: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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 2E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 0C 81 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1B 46 02 00 35 04 06 00 [21:03:09]Write to MH i2c: E2 02 01 4D 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 2E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 0C 81 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1B 46 02 00 35 04 06 00 00 00 57 [21:03:09]Write i2c OK [21:03:09]MH_I2C_Read... [21:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:09]Read from MH i2c: E2 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 03 00 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 03 00 4D 0A 00 90 00 CB [21:03:09]RAPDU: 90 00 [21:03:09]wFMCommunicate OK [21:03:09]wFMCommunicate request_size=11 [21:03:09]MH_SAM_APDU [21:03:09]CAPDU: 80 0D 02 02 06 9B 6B 57 EE 9E 1C [21:03:09]Write to MH i2c: E2 0E 00 4E 0A 80 0D 02 02 06 00 9B 6B 57 EE 9E 1C 00 00 E3 [21:03:09]Write i2c OK [21:03:09]MH_I2C_Read... [21:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:09]Read from MH i2c: E2 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 03 00 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 03 00 4E 0A 00 90 00 CC [21:03:09]RAPDU: 90 00 [21:03:09]wFMCommunicate OK [21:03:09]wFMCommunicate request_size=4 [21:03:09]MH_SAM_APDU [21:03:09]CAPDU: 80 0D 03 02 [21:03:09]Write to MH i2c: E2 08 00 4F 0A 80 0D 03 02 00 00 00 00 D4 [21:03:09]Write i2c OK [21:03:09]MH_I2C_Read... [21:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:09]Read from MH i2c: E2 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 0B 00 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 0B 00 4F 0A 00 CF A9 78 C3 6C 80 77 5B 90 00 46 [21:03:09]RAPDU: CF A9 78 C3 6C 80 77 5B 90 00 [21:03:09]wFMCommunicate OK [21:03:09]SAM_PROTO_SignData done [21:03:09]FM_MakeSignedData done [21:03:09]CreateOFDProtocolMessage [21:03:09]wFMCommunicate request_size=4 [21:03:09]MH_SAM_APDU [21:03:09]CAPDU: 80 11 00 00 [21:03:09]Write to MH i2c: E2 08 00 50 0A 80 11 00 00 00 00 00 00 D4 [21:03:09]Write i2c OK [21:03:09]MH_I2C_Read... [21:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:09]Read from MH i2c: E2 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 17 00 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: E2 17 00 50 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 27 [21:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:03:09]wFMCommunicate OK [21:03:09]CreateOFDProtocolMessage done [21:03:09]OFDSenderStorePacket 149019 [21:03:09]StoreOFDPacket docnum=149019 [21:03:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 63 A3 08 01 9E 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 2E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 0C 81 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1B 46 02 00 35 04 06 00 9B 6B 57 EE 9E 1C CF A9 78 C3 6C 80 77 5B [21:03:09]CheckFolder [21:03:09]dirname=/storage/ofd_packets [21:03:09]CheckFolder done [21:03:09]ProducePacketName [21:03:09]name=ofd_packets/00149019 [21:03:09]NVStorageSaveData ofd_packets/00149019 [21:03:09]File name is /storage/ofd_packets/00149019 [21:03:09]Write 302 bytes [21:03:09]NVStorageSaveData done [21:03:09]OFDSenderStorePacket done [21:03:09]KKMCreateOFDPacket done [21:03:09]NVStorageSaveData kkm_last_timestamp [21:03:09]File name is /storage/kkm_last_timestamp [21:03:09]Write 4 bytes [21:03:09]NVStorageSaveData done [21:03:09]ExternCall_PrintAddStr [21:03:09]wPrintStart [21:03:09]Write to MH i2c: 01 00 00 51 0A 5B [21:03:09]Write i2c OK [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: 01 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: 01 07 00 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: 01 07 00 51 0A 00 00 00 00 00 FF 0F 70 [21:03:09]RasterBufferAndPrint [21:03:09]line Счет N : (1)979955 [21:03:09]line ИНН: 02508201610067 [21:03:09]line Контрольно-Кассовый Чек [21:03:09]line ПРОДАЖА [21:03:09]line ТРК (МРК, ГНК) : 33 [21:03:09]line Товар: 2710124130 [21:03:09]line SUPER 92-К-5 [21:03:09]line 11.790 * 67.90 [21:03:09]line = 800.54 [21:03:09]line НДС 12% НСП 1% [21:03:09]line > о реализуемом товаре [21:03:09]line ОКРУГЛЕНИЕ: -0.54 [21:03:09]line ИТОГО: 800.00 [21:03:09]line Внесено: 800.00 [21:03:09]line СДАЧА: 0.00 [21:03:09]line НСП 1% : 7.08 [21:03:09]line НДС 12% : 85.01 [21:03:09]line Наличными: 800.00 [21:03:09]line Безнал.: 0.00 [21:03:09]line Место: АЗС № 68 "Партнер Нефть" [21:03:09]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:03:09]line СНО: Общий режим [21:03:09]line Чек 358 04.06.2024 21:03 [21:03:09]line Смена: 368 ФФД: 1.0 [21:03:09]line ЗНМ: 0300000035 [21:03:09]line РНМ: 0000000000092720 [21:03:09]line Версия ККМ: 001 [21:03:09]line ФМ: 0000000000875057 [21:03:09]line ФД: 149019 [21:03:09]line ФПД: 170885339061788 [21:03:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T210308&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149019&fm=170885339061788&tin=02508201610067®Number=0000000000092720&sum=80000 [21:03:09]OFD Sender: Processing packet 149019 [packets to send 100, broken 99] [21:03:09]ProducePacketName [21:03:09]name=ofd_packets/00149019 [21:03:09]OFD Sender: To server: pG, [21:03:09]CommunicateWithHost lk.salyk.kg:30040 [21:03:09]ConnectInit lk.salyk.kg [21:03:09]written 0, free lines is 4095 [21:03:10]Connected sock=11 [21:03:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 63 A3 08 01 9E 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 2E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 0C 81 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1B 46 02 00 35 04 06 00 9B 6B 57 EE 9E 1C CF A9 78 C3 6C 80 77 5B [21:03:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 2A AA 47 00 C4 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 38 37 35 30 35 37 10 04 04 00 1B 46 02 00 F4 03 04 00 2F 28 5F 66 B6 04 01 00 00 E3 E4 79 A4 95 19 DD D2 [21:03:10]CommunicateWithHost err = 0 [21:03:10]CheckOFDResponse [21:03:10]1017 (14) - 77093643461234 [21:03:10]1041 (16) - 0000000000875057 [21:03:10]1040 (4) - 149019 [21:03:10]1012 (4) - 04.06.2024 14:43 [21:03:10]1206 (1) - 0 [21:03:10]OFD Sender: Remove packet 149019 [21:03:10]ProducePacketName [21:03:10]name=ofd_packets/00149019 [21:03:10]NVStorageDeleteData [21:03:10]Write to MH i2c: 01 00 00 7C 0A 86 [21:03:10]Write i2c OK [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: 01 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: 01 07 00 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: 01 07 00 7C 0A 00 00 00 00 00 6E 0C 07 [21:03:10]RasterBufferAndPrint [21:03:10]line [21:03:10]line [21:03:10]line [21:03:10]line [21:03:10]line [21:03:10]written 0, free lines is 3185 [21:03:10]MH_Cut [21:03:10]Write to MH i2c: D1 01 00 83 0A 01 5F [21:03:10]Write i2c OK [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: D1 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: D1 01 00 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: D1 01 00 83 0A 00 5E [21:03:10]Write to MH i2c: 01 00 00 84 0A 8E [21:03:10]Write i2c OK [21:03:10]MH_I2C_Read... [21:03:10]OFD Sender: No OFD packet to send [21:03:11]*** Cut start [21:03:11]*** Partial cut [21:03:11]*** CUTSNS_PIN = 1 [21:03:11]*** CUTSNS_PIN = 0 [21:03:11]*** Brake cut motor [21:03:12]Read from MH i2c: 01 [21:03:12]MH_I2C_Read... [21:03:12]*** Stop cut motor [21:03:12]*** Cut end [21:03:12]Read from MH i2c: 01 07 00 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: 01 07 00 84 0A 00 00 00 00 00 FF 0F A3 [21:03:12]process_action close_receipt done [21:03:12]requested_data is exist [21:03:12]produce_requested_data [21:03:12]requested_item fm.sn is exist - process it [21:03:12]wFMCommunicate request_size=4 [21:03:12]MH_SAM_APDU [21:03:12]CAPDU: 80 11 00 00 [21:03:12]Write to MH i2c: E2 08 00 85 0A 80 11 00 00 00 00 00 00 09 [21:03:12]Write i2c OK [21:03:12]MH_I2C_Read... [21:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:12]Read from MH i2c: E2 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 17 00 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 17 00 85 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5C [21:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:03:12]wFMCommunicate OK [21:03:12]requested_item fd.num is exist - process it [21:03:12]SAM_PROTO_GetFieldsCounters [21:03:12]wFMCommunicate request_size=4 [21:03:12]MH_SAM_APDU [21:03:12]CAPDU: 80 13 00 00 [21:03:12]Write to MH i2c: E2 08 00 86 0A 80 13 00 00 00 00 00 00 0C [21:03:12]Write i2c OK [21:03:12]MH_I2C_Read... [21:03:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:12]Read from MH i2c: E2 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 62 00 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 62 00 86 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1B 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [21:03:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1B 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:12]wFMCommunicate OK [21:03:12]SAM_PROTO_GetFieldsCounters done [21:03:12]requested_item shift.num is exist - process it [21:03:12]requested_item shift.opened is exist - process it [21:03:12]req_shift_opened [21:03:12]FM_GetShiftState [21:03:12]SAM_PROTO_GetShiftState [21:03:12]wFMCommunicate request_size=4 [21:03:12]MH_SAM_APDU [21:03:12]CAPDU: 80 13 01 00 [21:03:12]Write to MH i2c: E2 08 00 87 0A 80 13 01 00 00 00 00 00 0E [21:03:12]Write i2c OK [21:03:12]MH_I2C_Read... [21:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:12]Read from MH i2c: E2 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 0E 00 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 0E 00 87 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D1 [21:03:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:03:12]wFMCommunicate OK [21:03:12]SAM_PROTO_GetShiftState done [21:03:12]FM_GetShiftState done [21:03:12]req_shift_opened done [21:03:12]requested_item shift.open_date is exist - process it [21:03:12]req_shift_open_date [21:03:12]req_shift_open_date done [21:03:12]produce_requested_data done [21:03:12]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149019,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:03:12]process_action_free close_receipt [21:03:12]json_value_free [21:03:12]json_value_free done [21:03:12]process_json_proto returns [21:03:12]Send response to host [21:03:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149019,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:03:12]free response buf [21:03:12]execute_script done [21:03:12]execute_script returns [21:03:12]free content buf [21:03:12]Sock 9.Close socket [21:03:12]Sock 9.Thread stoped [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:07]accept exits with 7 [21:05:07]New connection [21:05:07]New thread 3067219300 created [21:05:07]Thread 3067075940 joined [21:05:07]Waiting for new connection... [21:05:07] Sock 7.Parse request [21:05:07]Sock 7.Check first char [21:05:07]Sock 7.First char is OK [21:05:07]request: POST /json_proto HTTP/1.0 [21:05:07]Method: POST [21:05:07]URL: /json_proto [21:05:07]Method is POST - this is cgi request [21:05:07]url: /json_proto [21:05:07]query_string will be loaded in cgi processing [21:05:07]execute_cgi json_proto POST (null) [21:05:07]execute_cgi path=json_proto method=POST [21:05:07]POST find Content-Length [21:05:07]Host: 172.17.38.4:8080 [21:05:07]Content-Length: 677 [21:05:07]Content-Type: application/json [21:05:07] [21:05:07]POST finish read [21:05:07]Found Content-Length = 677 [21:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:07]execute_script... [21:05: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)979956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:07]POST & json_proto [21:05:07]process_json_proto [21:05:07]json parsed OK: [21:05:07]protocol is kg_v1.0 [21:05:07]action value=close_receipt [21:05:07]process_action close_receipt [21:05:07]cmd_close_receipt [21:05:07]MH_GetDate [21:05:07]Write to MH i2c: F0 00 00 88 0A 81 [21:05:07]Write i2c OK [21:05:07]MH_I2C_Read... [21:05:07]Read from MH i2c: F0 [21:05:07]MH_I2C_Read... [21:05:07]Read from MH i2c: F0 09 00 [21:05:07]MH_I2C_Read... [21:05:07]Read from MH i2c: F0 09 00 88 0A 00 84 81 5F 66 CC 51 87 64 5C [21:05:07]GetLastDocTimeStamp 1717534988 [21:05:07]current date 1717535108 [21:05:07]FM_GetShiftState [21:05:07]SAM_PROTO_GetShiftState [21:05:07]wFMCommunicate request_size=4 [21:05:07]MH_SAM_APDU [21:05:07]CAPDU: 80 13 01 00 [21:05:07]Write to MH i2c: E2 08 00 89 0A 80 13 01 00 00 00 00 00 10 [21:05:07]Write i2c OK [21:05:07]MH_I2C_Read... [21:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:07]Read from MH i2c: E2 [21:05:07]MH_I2C_Read... [21:05:07]Read from MH i2c: E2 0E 00 [21:05:07]MH_I2C_Read... [21:05:07]Read from MH i2c: E2 0E 00 89 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D3 [21:05:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:05:07]wFMCommunicate OK [21:05:07]SAM_PROTO_GetShiftState done [21:05:07]FM_GetShiftState done [21:05:07]opened in 1717460629 [21:05:07]opened+sec_in_day 1717547029 [21:05:07]quantity*price = 30038 [21:05:07]sum+1 = 30039 [21:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 359 04.06.2024 21:05 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149020 ФПД: 118310190241404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T210508&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149020&fm=118310190241404&tin=02508201610067®Number=0000000000092720&sum=30000 [21:05:08]StoreToDocumentArchive [21:05:08]shift 368 fd 149020 [21:05:08]save to /storage/0368/doc_00149020 [21:05:08]save last doc name /storage/0368/doc_00149020 to /storage/kkm_last_doc_name [21:05:08]save OK [21:05:08]Clear old archive folders... [21:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:08]tlvbuf is 0091DA30 [21:05:08]SAM_PROTO_ClearQueue [21:05:08]wFMCommunicate request_size=4 [21:05:08]MH_SAM_APDU [21:05:08]CAPDU: 80 09 00 00 [21:05:08]Write to MH i2c: E2 08 00 96 0A 80 09 00 00 00 00 00 00 12 [21:05:08]Write i2c OK [21:05:08]MH_I2C_Read... [21:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:08]Read from MH i2c: E2 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 03 00 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [21:05:08]RAPDU: 90 00 [21:05:08]wFMCommunicate OK [21:05:08]SAM_PROTO_ClearQueue done [21:05:08]KKMCreateOFDPacket [21:05:08]OFDProtocolAddRootSTLVToBuf [21:05:08]FM_MakeSignedData [21:05:08]FM_MakeSignedData [21:05:08]SAM_PROTO_SignData [21:05:08]wFMCommunicate request_size=4 [21:05:08]MH_SAM_APDU [21:05:08]CAPDU: 80 0D 01 02 [21:05:08]Write to MH i2c: E2 08 00 97 0A 80 0D 01 02 00 00 00 00 1A [21:05:08]Write i2c OK [21:05:08]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 03 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [21:05:09]RAPDU: 90 00 [21:05:09]wFMCommunicate OK [21:05:09]wFMCommunicate request_size=255 [21:05:09]MH_SAM_APDU [21: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 84 81 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1C 46 02 00 35 04 06 00 6B [21:05:09]Write to MH i2c: E2 02 01 98 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 67 01 00 00 F4 03 04 00 84 81 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1C 46 02 00 35 04 06 00 6B 00 00 0A [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 03 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [21:05:09]RAPDU: 90 00 [21:05:09]wFMCommunicate OK [21:05:09]wFMCommunicate request_size=10 [21:05:09]MH_SAM_APDU [21:05:09]CAPDU: 80 0D 02 02 05 9A 3C DC D6 7C [21:05:09]Write to MH i2c: E2 0D 00 99 0A 80 0D 02 02 05 00 9A 3C DC D6 7C 00 00 2B [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 03 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 03 00 99 0A 00 90 00 17 [21:05:09]RAPDU: 90 00 [21:05:09]wFMCommunicate OK [21:05:09]wFMCommunicate request_size=4 [21:05:09]MH_SAM_APDU [21:05:09]CAPDU: 80 0D 03 02 [21:05:09]Write to MH i2c: E2 08 00 9A 0A 80 0D 03 02 00 00 00 00 1F [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 0B 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 0B 00 9A 0A 00 CF 00 5A 1A DD 1B 94 A6 90 00 95 [21:05:09]RAPDU: CF 00 5A 1A DD 1B 94 A6 90 00 [21:05:09]wFMCommunicate OK [21:05:09]SAM_PROTO_SignData done [21:05:09]FM_MakeSignedData done [21:05:09]CreateOFDProtocolMessage [21:05:09]wFMCommunicate request_size=4 [21:05:09]MH_SAM_APDU [21:05:09]CAPDU: 80 11 00 00 [21:05:09]Write to MH i2c: E2 08 00 9B 0A 80 11 00 00 00 00 00 00 1F [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 17 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 17 00 9B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 72 [21:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:05:09]wFMCommunicate OK [21:05:09]CreateOFDProtocolMessage done [21:05:09]OFDSenderStorePacket 149020 [21:05:09]StoreOFDPacket docnum=149020 [21:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5A E3 07 01 F6 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 67 01 00 00 F4 03 04 00 84 81 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1C 46 02 00 35 04 06 00 6B 9A 3C DC D6 7C CF 00 5A 1A DD 1B 94 A6 [21:05:09]CheckFolder [21:05:09]dirname=/storage/ofd_packets [21:05:09]CheckFolder done [21:05:09]ProducePacketName [21:05:09]name=ofd_packets/00149020 [21:05:09]NVStorageSaveData ofd_packets/00149020 [21:05:09]File name is /storage/ofd_packets/00149020 [21:05:09]Write 301 bytes [21:05:09]NVStorageSaveData done [21:05:09]OFDSenderStorePacket done [21:05:09]KKMCreateOFDPacket done [21:05:09]NVStorageSaveData kkm_last_timestamp [21:05:09]File name is /storage/kkm_last_timestamp [21:05:09]Write 4 bytes [21:05:09]NVStorageSaveData done [21:05:09]OFD Sender: Processing packet 149020 [packets to send 100, broken 99] [21:05:09]ProducePacketName [21:05:09]name=ofd_packets/00149020 [21:05:09]OFD Sender: To server: pG, [21:05:09]CommunicateWithHost lk.salyk.kg:30040 [21:05:09]ConnectInit lk.salyk.kg [21:05:09]ExternCall_PrintAddStr [21:05:09]wPrintStart [21:05:09]Write to MH i2c: 01 00 00 9C 0A A6 [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: 01 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: 01 07 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: 01 07 00 9C 0A 00 00 00 00 00 FF 0F BB [21:05:09]RasterBufferAndPrint [21:05:09]line Счет N : (1)979956 [21:05:09]line ИНН: 02508201610067 [21:05:09]line Контрольно-Кассовый Чек [21:05:09]line ПРОДАЖА [21:05:09]line ТРК (МРК, ГНК) : 22 [21:05:09]line Товар: 2710124130 [21:05:09]line Аи-92-К-5 [21:05:09]line 4.490 * 66.90 [21:05:09]line = 300.38 [21:05:09]line НДС 12% НСП 1% [21:05:09]line > о реализуемом товаре [21:05:09]line ОКРУГЛЕНИЕ: -0.38 [21:05:09]line ИТОГО: 300.00 [21:05:09]line Внесено: 300.00 [21:05:09]line СДАЧА: 0.00 [21:05:09]line НСП 1% : 2.66 [21:05:09]line НДС 12% : 31.90 [21:05:09]line Наличными: 300.00 [21:05:09]line Безнал.: 0.00 [21:05:09]line Место: АЗС № 68 "Партнер Нефть" [21:05:09]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:05:09]line СНО: Общий режим [21:05:09]line Чек 359 04.06.2024 21:05 [21:05:09]line Смена: 368 ФФД: 1.0 [21:05:09]line ЗНМ: 0300000035 [21:05:09]line РНМ: 0000000000092720 [21:05:09]line Версия ККМ: 001 [21:05:09]line ФМ: 0000000000875057 [21:05:09]line ФД: 149020 [21:05:09]line ФПД: 118310190241404 [21:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T210508&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149020&fm=118310190241404&tin=02508201610067®Number=0000000000092720&sum=30000 [21:05:09]Connected sock=11 [21:05:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5A E3 07 01 F6 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 67 01 00 00 F4 03 04 00 84 81 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1C 46 02 00 35 04 06 00 6B 9A 3C DC D6 7C CF 00 5A 1A DD 1B 94 A6 [21:05:09]written 0, free lines is 4095 [21:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1D 15 47 00 12 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1C 46 02 00 F4 03 04 00 A7 28 5F 66 B6 04 01 00 00 54 0E F6 AA 80 A1 7F F0 [21:05:09]CommunicateWithHost err = 0 [21:05:09]CheckOFDResponse [21:05:09]1017 (14) - 77093643461234 [21:05:09]1041 (16) - 0000000000875057 [21:05:09]1040 (4) - 149020 [21:05:09]1012 (4) - 04.06.2024 14:45 [21:05:09]1206 (1) - 0 [21:05:09]OFD Sender: Remove packet 149020 [21:05:09]ProducePacketName [21:05:09]name=ofd_packets/00149020 [21:05:09]NVStorageDeleteData [21:05:10]Write to MH i2c: 01 00 00 C7 0A D1 [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: 01 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: 01 07 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: 01 07 00 C7 0A 00 00 00 00 00 70 0C 54 [21:05:10]RasterBufferAndPrint [21:05:10]line [21:05:10]line [21:05:10]line [21:05:10]line [21:05:10]line [21:05:10]written 0, free lines is 3187 [21:05:10]MH_Cut [21:05:10]Write to MH i2c: D1 01 00 CE 0A 01 AA [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: D1 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: D1 01 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: D1 01 00 CE 0A 00 A9 [21:05:10]Write to MH i2c: 01 00 00 CF 0A D9 [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]OFD Sender: No OFD packet to send [21:05:11]*** Cut start [21:05:11]*** Partial cut [21:05:11]*** CUTSNS_PIN = 1 [21:05:11]*** CUTSNS_PIN = 0 [21:05:11]*** Brake cut motor [21:05:12]Read from MH i2c: 01 [21:05:12]MH_I2C_Read... [21:05:12]*** Stop cut motor [21:05:12]*** Cut end [21:05:12]Read from MH i2c: 01 07 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: 01 07 00 CF 0A 00 00 00 00 00 FF 0F EE [21:05:12]process_action close_receipt done [21:05:12]requested_data is exist [21:05:12]produce_requested_data [21:05:12]requested_item fm.sn is exist - process it [21:05:12]wFMCommunicate request_size=4 [21:05:12]MH_SAM_APDU [21:05:12]CAPDU: 80 11 00 00 [21:05:12]Write to MH i2c: E2 08 00 D0 0A 80 11 00 00 00 00 00 00 54 [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:12]Read from MH i2c: E2 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 17 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 17 00 D0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A7 [21:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:05:12]wFMCommunicate OK [21:05:12]requested_item fd.num is exist - process it [21:05:12]SAM_PROTO_GetFieldsCounters [21:05:12]wFMCommunicate request_size=4 [21:05:12]MH_SAM_APDU [21:05:12]CAPDU: 80 13 00 00 [21:05:12]Write to MH i2c: E2 08 00 D1 0A 80 13 00 00 00 00 00 00 57 [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:12]Read from MH i2c: E2 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 62 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 62 00 D1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [21:05:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:12]wFMCommunicate OK [21:05:12]SAM_PROTO_GetFieldsCounters done [21:05:12]requested_item shift.num is exist - process it [21:05:12]requested_item shift.opened is exist - process it [21:05:12]req_shift_opened [21:05:12]FM_GetShiftState [21:05:12]SAM_PROTO_GetShiftState [21:05:12]wFMCommunicate request_size=4 [21:05:12]MH_SAM_APDU [21:05:12]CAPDU: 80 13 01 00 [21:05:12]Write to MH i2c: E2 08 00 D2 0A 80 13 01 00 00 00 00 00 59 [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:12]Read from MH i2c: E2 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 0E 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 0E 00 D2 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1C [21:05:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:05:12]wFMCommunicate OK [21:05:12]SAM_PROTO_GetShiftState done [21:05:12]FM_GetShiftState done [21:05:12]req_shift_opened done [21:05:12]requested_item shift.open_date is exist - process it [21:05:12]req_shift_open_date [21:05:12]req_shift_open_date done [21:05:12]produce_requested_data done [21:05:12]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149020,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:05:12]process_action_free close_receipt [21:05:12]json_value_free [21:05:12]json_value_free done [21:05:12]process_json_proto returns [21:05:12]Send response to host [21:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149020,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:05:12]free response buf [21:05:12]execute_script done [21:05:12]execute_script returns [21:05:12]free content buf [21:05:12]Sock 7.Close socket [21:05:12]Sock 7.Thread stoped [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:29]accept exits with 9 [21:07:29]New connection [21:07:29]New thread 3067075940 created [21:07:29]Thread 3067219300 joined [21:07:29]Waiting for new connection... [21:07:29] Sock 9.Parse request [21:07:29]Sock 9.Check first char [21:07:29]Sock 9.First char is OK [21:07:29]request: POST /json_proto HTTP/1.0 [21:07:29]Method: POST [21:07:29]URL: /json_proto [21:07:29]Method is POST - this is cgi request [21:07:29]url: /json_proto [21:07:29]query_string will be loaded in cgi processing [21:07:29]execute_cgi json_proto POST (null) [21:07:29]execute_cgi path=json_proto method=POST [21:07:29]POST find Content-Length [21:07:29]Host: 172.17.38.4:8080 [21:07:29]Content-Length: 677 [21:07:29]Content-Type: application/json [21:07:29] [21:07:29]POST finish read [21:07:29]Found Content-Length = 677 [21:07:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:29]execute_script... [21:07: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)979957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:29]POST & json_proto [21:07:29]process_json_proto [21:07:29]json parsed OK: [21:07:29]protocol is kg_v1.0 [21:07:29]action value=close_receipt [21:07:29]process_action close_receipt [21:07:29]cmd_close_receipt [21:07:29]MH_GetDate [21:07:29]Write to MH i2c: F0 00 00 D3 0A CC [21:07:29]Write i2c OK [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: F0 [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: F0 09 00 [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: F0 09 00 D3 0A 00 12 82 5F 66 CC 51 87 64 36 [21:07:29]GetLastDocTimeStamp 1717535108 [21:07:29]current date 1717535250 [21:07:29]FM_GetShiftState [21:07:29]SAM_PROTO_GetShiftState [21:07:29]wFMCommunicate request_size=4 [21:07:29]MH_SAM_APDU [21:07:29]CAPDU: 80 13 01 00 [21:07:29]Write to MH i2c: E2 08 00 D4 0A 80 13 01 00 00 00 00 00 5B [21:07:29]Write i2c OK [21:07:29]MH_I2C_Read... [21:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:29]Read from MH i2c: E2 [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: E2 0E 00 [21:07:29]MH_I2C_Read... [21:07:29]Read from MH i2c: E2 0E 00 D4 0A 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1E [21:07:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:07:29]wFMCommunicate OK [21:07:29]SAM_PROTO_GetShiftState done [21:07:29]FM_GetShiftState done [21:07:29]opened in 1717460629 [21:07:29]opened+sec_in_day 1717547029 [21:07:29]quantity*price = 37062 [21:07:29]sum+1 = 37064 [21:07:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 360 04.06.2024 21:07 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149021 ФПД: 168096517412807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T210730&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149021&fm=168096517412807&tin=02508201610067®Number=0000000000092720&sum=37000 [21:07:30]StoreToDocumentArchive [21:07:30]shift 368 fd 149021 [21:07:30]save to /storage/0368/doc_00149021 [21:07:30]save last doc name /storage/0368/doc_00149021 to /storage/kkm_last_doc_name [21:07:30]save OK [21:07:30]Clear old archive folders... [21:07:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:30]tlvbuf is 00965060 [21:07:30]SAM_PROTO_ClearQueue [21:07:30]wFMCommunicate request_size=4 [21:07:30]MH_SAM_APDU [21:07:30]CAPDU: 80 09 00 00 [21:07:30]Write to MH i2c: E2 08 00 E1 0A 80 09 00 00 00 00 00 00 5D [21:07:30]Write i2c OK [21:07:30]MH_I2C_Read... [21:07:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:30]Read from MH i2c: E2 [21:07:30]MH_I2C_Read... [21:07:30]Read from MH i2c: E2 03 00 [21:07:30]MH_I2C_Read... [21:07:30]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [21:07:30]RAPDU: 90 00 [21:07:30]wFMCommunicate OK [21:07:30]SAM_PROTO_ClearQueue done [21:07:30]KKMCreateOFDPacket [21:07:30]OFDProtocolAddRootSTLVToBuf [21:07:30]FM_MakeSignedData [21:07:30]FM_MakeSignedData [21:07:30]SAM_PROTO_SignData [21:07:30]wFMCommunicate request_size=4 [21:07:30]MH_SAM_APDU [21:07:30]CAPDU: 80 0D 01 02 [21:07:30]Write to MH i2c: E2 08 00 E2 0A 80 0D 01 02 00 00 00 00 65 [21:07:30]Write i2c OK [21:07:30]MH_I2C_Read... [21:07:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:30]Read from MH i2c: E2 [21:07:30]MH_I2C_Read... [21:07:30]Read from MH i2c: E2 03 00 [21:07:30]MH_I2C_Read... [21:07:30]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [21:07:30]RAPDU: 90 00 [21:07:30]wFMCommunicate OK [21:07:30]wFMCommunicate request_size=255 [21:07:30]MH_SAM_APDU [21:07:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 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 01 00 00 F4 03 04 00 12 82 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1D 46 02 00 35 04 06 00 98 [21:07:30]Write to MH i2c: E2 02 01 E3 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 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 01 00 00 F4 03 04 00 12 82 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1D 46 02 00 35 04 06 00 98 00 00 CE [21:07:30]Write i2c OK [21:07:30]MH_I2C_Read... [21:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:31]Read from MH i2c: E2 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 03 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [21:07:31]RAPDU: 90 00 [21:07:31]wFMCommunicate OK [21:07:31]wFMCommunicate request_size=10 [21:07:31]MH_SAM_APDU [21:07:31]CAPDU: 80 0D 02 02 05 E2 05 35 57 C7 [21:07:31]Write to MH i2c: E2 0D 00 E4 0A 80 0D 02 02 05 00 E2 05 35 57 C7 00 00 AC [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:31]Read from MH i2c: E2 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 03 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 03 00 E4 0A 00 90 00 62 [21:07:31]RAPDU: 90 00 [21:07:31]wFMCommunicate OK [21:07:31]wFMCommunicate request_size=4 [21:07:31]MH_SAM_APDU [21:07:31]CAPDU: 80 0D 03 02 [21:07:31]Write to MH i2c: E2 08 00 E5 0A 80 0D 03 02 00 00 00 00 6A [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:31]Read from MH i2c: E2 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 0B 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 0B 00 E5 0A 00 11 77 10 41 5D C2 89 37 90 00 23 [21:07:31]RAPDU: 11 77 10 41 5D C2 89 37 90 00 [21:07:31]wFMCommunicate OK [21:07:31]SAM_PROTO_SignData done [21:07:31]FM_MakeSignedData done [21:07:31]CreateOFDProtocolMessage [21:07:31]wFMCommunicate request_size=4 [21:07:31]MH_SAM_APDU [21:07:31]CAPDU: 80 11 00 00 [21:07:31]Write to MH i2c: E2 08 00 E6 0A 80 11 00 00 00 00 00 00 6A [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:31]Read from MH i2c: E2 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 17 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: E2 17 00 E6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BD [21:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:07:31]wFMCommunicate OK [21:07:31]CreateOFDProtocolMessage done [21:07:31]OFDSenderStorePacket 149021 [21:07:31]StoreOFDPacket docnum=149021 [21:07:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D5 6F 07 01 7E 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 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 01 00 00 F4 03 04 00 12 82 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1D 46 02 00 35 04 06 00 98 E2 05 35 57 C7 11 77 10 41 5D C2 89 37 [21:07:31]CheckFolder [21:07:31]dirname=/storage/ofd_packets [21:07:31]CheckFolder done [21:07:31]ProducePacketName [21:07:31]name=ofd_packets/00149021 [21:07:31]NVStorageSaveData ofd_packets/00149021 [21:07:31]File name is /storage/ofd_packets/00149021 [21:07:31]Write 301 bytes [21:07:31]NVStorageSaveData done [21:07:31]OFDSenderStorePacket done [21:07:31]KKMCreateOFDPacket done [21:07:31]NVStorageSaveData kkm_last_timestamp [21:07:31]File name is /storage/kkm_last_timestamp [21:07:31]Write 4 bytes [21:07:31]NVStorageSaveData done [21:07:31]ExternCall_PrintAddStr [21:07:31]wPrintStart [21:07:31]Write to MH i2c: 01 00 00 E7 0A F1 [21:07:31]Write i2c OK [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: 01 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: 01 07 00 [21:07:31]MH_I2C_Read... [21:07:31]Read from MH i2c: 01 07 00 E7 0A 00 00 00 00 00 FF 0F 06 [21:07:31]RasterBufferAndPrint [21:07:31]line Счет N : (1)979957 [21:07:31]line ИНН: 02508201610067 [21:07:31]line Контрольно-Кассовый Чек [21:07:31]line ПРОДАЖА [21:07:31]line ТРК (МРК, ГНК) : 12 [21:07:31]line Товар: 2710124130 [21:07:31]line Аи-92-К-5 [21:07:31]line 5.540 * 66.90 [21:07:31]line = 370.63 [21:07:31]line НДС 12% НСП 1% [21:07:31]line > о реализуемом товаре [21:07:31]line ОКРУГЛЕНИЕ: -0.63 [21:07:31]line ИТОГО: 370.00 [21:07:31]line Внесено: 370.00 [21:07:31]line СДАЧА: 0.00 [21:07:31]line НСП 1% : 3.28 [21:07:31]line НДС 12% : 39.36 [21:07:31]line Наличными: 370.00 [21:07:31]line Безнал.: 0.00 [21:07:31]line Место: АЗС № 68 "Партнер Нефть" [21:07:31]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:07:31]line СНО: Общий режим [21:07:31]line Чек 360 04.06.2024 21:07 [21:07:31]line Смена: 368 ФФД: 1.0 [21:07:31]line ЗНМ: 0300000035 [21:07:31]line РНМ: 0000000000092720 [21:07:31]line Версия ККМ: 001 [21:07:31]line ФМ: 0000000000875057 [21:07:31]line ФД: 149021 [21:07:31]line ФПД: 168096517412807 [21:07:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T210730&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149021&fm=168096517412807&tin=02508201610067®Number=0000000000092720&sum=37000 [21:07:31]OFD Sender: Processing packet 149021 [packets to send 100, broken 99] [21:07:31]ProducePacketName [21:07:31]name=ofd_packets/00149021 [21:07:31]OFD Sender: To server: pG, [21:07:31]CommunicateWithHost lk.salyk.kg:30040 [21:07:31]ConnectInit lk.salyk.kg [21:07:31]written 0, free lines is 4095 [21:07:31]Connected sock=10 [21:07:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D5 6F 07 01 7E 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 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 01 00 00 F4 03 04 00 12 82 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1D 46 02 00 35 04 06 00 98 E2 05 35 57 C7 11 77 10 41 5D C2 89 37 [21:07:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D2 E9 47 00 FE 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1D 46 02 00 F4 03 04 00 34 29 5F 66 B6 04 01 00 00 67 22 11 CF DD 11 A3 CE [21:07:31]CommunicateWithHost err = 0 [21:07:31]CheckOFDResponse [21:07:31]1017 (14) - 77093643461234 [21:07:31]1041 (16) - 0000000000875057 [21:07:31]1040 (4) - 149021 [21:07:31]1012 (4) - 04.06.2024 14:48 [21:07:31]1206 (1) - 0 [21:07:31]OFD Sender: Remove packet 149021 [21:07:31]ProducePacketName [21:07:31]name=ofd_packets/00149021 [21:07:31]NVStorageDeleteData [21:07:32]Write to MH i2c: 01 00 00 12 0B 1D [21:07:32]Write i2c OK [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: 01 [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: 01 07 00 [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: 01 07 00 12 0B 00 00 00 00 00 73 0C A3 [21:07:32]RasterBufferAndPrint [21:07:32]line [21:07:32]line [21:07:32]line [21:07:32]line [21:07:32]line [21:07:32]written 0, free lines is 3190 [21:07:32]MH_Cut [21:07:32]Write to MH i2c: D1 01 00 19 0B 01 F6 [21:07:32]Write i2c OK [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: D1 [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: D1 01 00 [21:07:32]MH_I2C_Read... [21:07:32]Read from MH i2c: D1 01 00 19 0B 00 F5 [21:07:32]Write to MH i2c: 01 00 00 1A 0B 25 [21:07:32]Write i2c OK [21:07:32]MH_I2C_Read... [21:07:32]OFD Sender: No OFD packet to send [21:07:33]*** Cut start [21:07:33]*** Partial cut [21:07:33]*** CUTSNS_PIN = 1 [21:07:33]*** CUTSNS_PIN = 0 [21:07:33]*** Brake cut motor [21:07:33]Read from MH i2c: 01 [21:07:33]MH_I2C_Read... [21:07:33]*** Stop cut motor [21:07:33]*** Cut end [21:07:33]Read from MH i2c: 01 07 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: 01 07 00 1A 0B 00 00 00 00 00 FF 0F 3A [21:07:33]process_action close_receipt done [21:07:33]requested_data is exist [21:07:33]produce_requested_data [21:07:33]requested_item fm.sn is exist - process it [21:07:33]wFMCommunicate request_size=4 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 11 00 00 [21:07:33]Write to MH i2c: E2 08 00 1B 0B 80 11 00 00 00 00 00 00 A0 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:33]Read from MH i2c: E2 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 17 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: E2 17 00 1B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F3 [21:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:07:33]wFMCommunicate OK [21:07:33]requested_item fd.num is exist - process it [21:07:33]SAM_PROTO_GetFieldsCounters [21:07:33]wFMCommunicate request_size=4 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 13 00 00 [21:07:33]Write to MH i2c: E2 08 00 1C 0B 80 13 00 00 00 00 00 00 A3 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:34]Read from MH i2c: E2 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 62 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 62 00 1C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [21:07:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:34]wFMCommunicate OK [21:07:34]SAM_PROTO_GetFieldsCounters done [21:07:34]requested_item shift.num is exist - process it [21:07:34]requested_item shift.opened is exist - process it [21:07:34]req_shift_opened [21:07:34]FM_GetShiftState [21:07:34]SAM_PROTO_GetShiftState [21:07:34]wFMCommunicate request_size=4 [21:07:34]MH_SAM_APDU [21:07:34]CAPDU: 80 13 01 00 [21:07:34]Write to MH i2c: E2 08 00 1D 0B 80 13 01 00 00 00 00 00 A5 [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:34]Read from MH i2c: E2 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 0E 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 0E 00 1D 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 68 [21:07:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:07:34]wFMCommunicate OK [21:07:34]SAM_PROTO_GetShiftState done [21:07:34]FM_GetShiftState done [21:07:34]req_shift_opened done [21:07:34]requested_item shift.open_date is exist - process it [21:07:34]req_shift_open_date [21:07:34]req_shift_open_date done [21:07:34]produce_requested_data done [21:07:34]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149021,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:07:34]process_action_free close_receipt [21:07:34]json_value_free [21:07:34]json_value_free done [21:07:34]process_json_proto returns [21:07:34]Send response to host [21:07:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149021,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:07:34]free response buf [21:07:34]execute_script done [21:07:34]execute_script returns [21:07:34]free content buf [21:07:34]Sock 9.Close socket [21:07:34]Sock 9.Thread stoped [21:07:34]accept exits with 7 [21:07:34]New connection [21:07:34]New thread 3067219300 created [21:07:34]Thread 3067075940 joined [21:07:34]Waiting for new connection... [21:07:34] Sock 7.Parse request [21:07:34]Sock 7.Check first char [21:07:34]Sock 7.First char is OK [21:07:34]request: POST /json_proto HTTP/1.0 [21:07:34]Method: POST [21:07:34]URL: /json_proto [21:07:34]Method is POST - this is cgi request [21:07:34]url: /json_proto [21:07:34]query_string will be loaded in cgi processing [21:07:34]execute_cgi json_proto POST (null) [21:07:34]execute_cgi path=json_proto method=POST [21:07:34]POST find Content-Length [21:07:34]Host: 172.17.38.4:8080 [21:07:34]Content-Length: 620 [21:07:34]Content-Type: application/json [21:07:34] [21:07:34]POST finish read [21:07:34]Found Content-Length = 620 [21:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11910", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:34]execute_script... [21:07:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11910", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:34]POST & json_proto [21:07:34]process_json_proto [21:07:34]json parsed OK: [21:07:34]protocol is kg_v1.0 [21:07:34]action value=close_receipt [21:07:34]process_action close_receipt [21:07:34]cmd_close_receipt [21:07:34]MH_GetDate [21:07:34]Write to MH i2c: F0 00 00 1E 0B 18 [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: F0 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: F0 09 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: F0 09 00 1E 0B 00 17 82 5F 66 CC 51 87 64 87 [21:07:34]GetLastDocTimeStamp 1717535250 [21:07:34]current date 1717535255 [21:07:34]FM_GetShiftState [21:07:34]SAM_PROTO_GetShiftState [21:07:34]wFMCommunicate request_size=4 [21:07:34]MH_SAM_APDU [21:07:34]CAPDU: 80 13 01 00 [21:07:34]Write to MH i2c: E2 08 00 1F 0B 80 13 01 00 00 00 00 00 A7 [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 0E 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 0E 00 1F 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6A [21:07:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:07:35]wFMCommunicate OK [21:07:35]SAM_PROTO_GetShiftState done [21:07:35]FM_GetShiftState done [21:07:35]opened in 1717460629 [21:07:35]opened+sec_in_day 1717547029 [21:07:35]quantity*price = 13000 [21:07:35]sum+1 = 13001 [21:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 361 04.06.2024 21:07 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149022 ФПД: 115987436873069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T210735&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149022&fm=115987436873069&tin=02508201610067®Number=0000000000092720&sum=13000 0 [21:07:36]StoreToDocumentArchive [21:07:36]shift 368 fd 149022 [21:07:36]save to /storage/0368/doc_00149022 [21:07:36]save last doc name /storage/0368/doc_00149022 to /storage/kkm_last_doc_name [21:07:36]save OK [21:07:36]Clear old archive folders... [21:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:07:36]tlvbuf is 00998D00 [21:07:36]SAM_PROTO_ClearQueue [21:07:36]wFMCommunicate request_size=4 [21:07:36]MH_SAM_APDU [21:07:36]CAPDU: 80 09 00 00 [21:07:36]Write to MH i2c: E2 08 00 2C 0B 80 09 00 00 00 00 00 00 A9 [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:36]Read from MH i2c: E2 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 03 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 03 00 2C 0B 00 90 00 AB [21:07:36]RAPDU: 90 00 [21:07:36]wFMCommunicate OK [21:07:36]SAM_PROTO_ClearQueue done [21:07:36]KKMCreateOFDPacket [21:07:36]OFDProtocolAddRootSTLVToBuf [21:07:36]FM_MakeSignedData [21:07:36]FM_MakeSignedData [21:07:36]SAM_PROTO_SignData [21:07:36]wFMCommunicate request_size=4 [21:07:36]MH_SAM_APDU [21:07:36]CAPDU: 80 0D 01 02 [21:07:36]Write to MH i2c: E2 08 00 2D 0B 80 0D 01 02 00 00 00 00 B1 [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:36]Read from MH i2c: E2 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 03 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 03 00 2D 0B 00 90 00 AC [21:07:36]RAPDU: 90 00 [21:07:36]wFMCommunicate OK [21:07:36]wFMCommunicate request_size=255 [21:07:36]MH_SAM_APDU [21:07:36]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 17 82 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 [21:07:36]Write to MH i2c: E2 02 01 2E 0B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 17 82 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 00 00 DF [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:36]Read from MH i2c: E2 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 03 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 03 00 2E 0B 00 90 00 AD [21:07:36]RAPDU: 90 00 [21:07:36]wFMCommunicate OK [21:07:36]wFMCommunicate request_size=32 [21:07:36]MH_SAM_APDU [21:07:36]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 35 37 10 04 04 00 1E 46 02 00 35 04 06 00 69 7D 6D F9 25 6D [21:07:36]Write to MH i2c: E2 23 00 2F 0B 80 0D 02 02 1B 00 30 30 30 38 37 35 30 35 37 10 04 04 00 1E 46 02 00 35 04 06 00 69 7D 6D F9 25 6D 00 00 55 [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:36]Read from MH i2c: E2 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 03 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 03 00 2F 0B 00 90 00 AE [21:07:36]RAPDU: 90 00 [21:07:36]wFMCommunicate OK [21:07:36]wFMCommunicate request_size=4 [21:07:36]MH_SAM_APDU [21:07:36]CAPDU: 80 0D 03 02 [21:07:36]Write to MH i2c: E2 08 00 30 0B 80 0D 03 02 00 00 00 00 B6 [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:36]Read from MH i2c: E2 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 0B 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 0B 00 30 0B 00 64 58 5D 67 B1 4D 2D 39 90 00 9B [21:07:36]RAPDU: 64 58 5D 67 B1 4D 2D 39 90 00 [21:07:36]wFMCommunicate OK [21:07:36]SAM_PROTO_SignData done [21:07:36]FM_MakeSignedData done [21:07:36]CreateOFDProtocolMessage [21:07:36]wFMCommunicate request_size=4 [21:07:36]MH_SAM_APDU [21:07:36]CAPDU: 80 11 00 00 [21:07:36]Write to MH i2c: E2 08 00 31 0B 80 11 00 00 00 00 00 00 B6 [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 17 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 17 00 31 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 09 [21:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:07:37]wFMCommunicate OK [21:07:37]CreateOFDProtocolMessage done [21:07:37]OFDSenderStorePacket 149022 [21:07:37]StoreOFDPacket docnum=149022 [21:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 25 01 00 00 B2 CF 1D 01 32 EA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 17 82 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1E 46 02 00 35 04 06 00 69 7D 6D F9 25 6D 64 58 5D 67 B1 4D 2D 39 [21:07:37]CheckFolder [21:07:37]dirname=/storage/ofd_packets [21:07:37]CheckFolder done [21:07:37]ProducePacketName [21:07:37]name=ofd_packets/00149022 [21:07:37]NVStorageSaveData ofd_packets/00149022 [21:07:37]File name is /storage/ofd_packets/00149022 [21:07:37]Write 323 bytes [21:07:37]NVStorageSaveData done [21:07:37]OFDSenderStorePacket done [21:07:37]KKMCreateOFDPacket done [21:07:37]NVStorageSaveData kkm_last_timestamp [21:07:37]File name is /storage/kkm_last_timestamp [21:07:37]Write 4 bytes [21:07:37]NVStorageSaveData done [21:07:37]ExternCall_PrintAddStr [21:07:37]wPrintStart [21:07:37]Write to MH i2c: 01 00 00 32 0B 3D [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 07 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 FF 0F 52 [21:07:37]RasterBufferAndPrint [21:07:37]line Счет N : (3)11910 [21:07:37]line ИНН: 02508201610067 [21:07:37]line Контрольно-Кассовый Чек [21:07:37]line ПРОДАЖА [21:07:37]line Товар: 4780014240406 [21:07:37]line Сигареты Sovereign Blue [21:07:37]line 1.000 * 130.00 [21:07:37]line = 130.00 [21:07:37]line НДС 12% НСП 1% [21:07:37]line > о реализуемом товаре [21:07:37]line ИТОГО: 130.00 [21:07:37]line НСП 1% : 1.15 [21:07:37]line НДС 12% : 13.80 [21:07:37]line Наличными: 130.00 [21:07:37]line Безнал.: 0.00 [21:07:37]line Место: АЗС № 68 "Партнер Нефть" [21:07:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:07:37]line СНО: Общий режим [21:07:37]line Чек 361 04.06.2024 21:07 [21:07:37]line Смена: 368 ФФД: 1.0 [21:07:37]line ЗНМ: 0300000035 [21:07:37]line РНМ: 0000000000092720 [21:07:37]line Версия ККМ: 001 [21:07:37]line ФМ: 0000000000875057 [21:07:37]line ФД: 149022 [21:07:37]line ФПД: 115987436873069 [21:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T210735&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149022&fm=115987436873069&tin=02508201610067®Number=0000000000092720&sum=13000 [21:07:37]line 0 [21:07:37]OFD Sender: Processing packet 149022 [packets to send 100, broken 99] [21:07:37]ProducePacketName [21:07:37]name=ofd_packets/00149022 [21:07:37]OFD Sender: To server: pG, [21:07:37]CommunicateWithHost lk.salyk.kg:30040 [21:07:37]ConnectInit lk.salyk.kg [21:07:37]written 0, free lines is 4095 [21:07:37]Connected sock=10 [21:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 25 01 00 00 B2 CF 1D 01 32 EA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 17 82 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1E 46 02 00 35 04 06 00 69 7D 6D F9 25 6D 64 58 5D 67 B1 4D 2D 39 [21:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CF 45 47 00 CE 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 38 37 35 30 35 37 10 04 04 00 1E 46 02 00 F4 03 04 00 3A 29 5F 66 B6 04 01 00 00 0B 9C 2F E1 0C AF 49 8A [21:07:37]CommunicateWithHost err = 0 [21:07:37]CheckOFDResponse [21:07:37]1017 (14) - 77093643461234 [21:07:37]1041 (16) - 0000000000875057 [21:07:37]1040 (4) - 149022 [21:07:37]1012 (4) - 04.06.2024 14:48 [21:07:37]1206 (1) - 0 [21:07:37]OFD Sender: Remove packet 149022 [21:07:37]ProducePacketName [21:07:37]name=ofd_packets/00149022 [21:07:37]NVStorageDeleteData [21:07:37]Write to MH i2c: 01 00 00 5A 0B 65 [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 07 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 A4 0C 1C [21:07:37]RasterBufferAndPrint [21:07:37]line [21:07:37]line [21:07:37]line [21:07:37]line [21:07:37]line [21:07:37]written 0, free lines is 3244 [21:07:37]MH_Cut [21:07:37]Write to MH i2c: D1 01 00 61 0B 01 3E [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: D1 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: D1 01 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: D1 01 00 61 0B 00 3D [21:07:37]Write to MH i2c: 01 00 00 62 0B 6D [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:38]OFD Sender: No OFD packet to send [21:07:38]*** Cut start [21:07:38]*** Partial cut [21:07:38]*** CUTSNS_PIN = 1 [21:07:39]*** CUTSNS_PIN = 0 [21:07:39]*** Brake cut motor [21:07:39]Read from MH i2c: 01 [21:07:39]MH_I2C_Read... [21:07:39]*** Stop cut motor [21:07:39]*** Cut end [21:07:39]Read from MH i2c: 01 07 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: 01 07 00 62 0B 00 00 00 00 00 FF 0F 82 [21:07:39]process_action close_receipt done [21:07:39]requested_data is exist [21:07:39]produce_requested_data [21:07:39]requested_item fm.sn is exist - process it [21:07:39]wFMCommunicate request_size=4 [21:07:39]MH_SAM_APDU [21:07:39]CAPDU: 80 11 00 00 [21:07:39]Write to MH i2c: E2 08 00 63 0B 80 11 00 00 00 00 00 00 E8 [21:07:39]Write i2c OK [21:07:39]MH_I2C_Read... [21:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:39]Read from MH i2c: E2 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 17 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 17 00 63 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3B [21:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:07:39]wFMCommunicate OK [21:07:39]requested_item fd.num is exist - process it [21:07:39]SAM_PROTO_GetFieldsCounters [21:07:39]wFMCommunicate request_size=4 [21:07:39]MH_SAM_APDU [21:07:39]CAPDU: 80 13 00 00 [21:07:39]Write to MH i2c: E2 08 00 64 0B 80 13 00 00 00 00 00 00 EB [21:07:39]Write i2c OK [21:07:39]MH_I2C_Read... [21:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:39]Read from MH i2c: E2 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 62 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 62 00 64 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1E 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [21:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1E 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:39]wFMCommunicate OK [21:07:39]SAM_PROTO_GetFieldsCounters done [21:07:39]requested_item shift.num is exist - process it [21:07:39]requested_item shift.opened is exist - process it [21:07:39]req_shift_opened [21:07:39]FM_GetShiftState [21:07:39]SAM_PROTO_GetShiftState [21:07:39]wFMCommunicate request_size=4 [21:07:39]MH_SAM_APDU [21:07:39]CAPDU: 80 13 01 00 [21:07:39]Write to MH i2c: E2 08 00 65 0B 80 13 01 00 00 00 00 00 ED [21:07:39]Write i2c OK [21:07:39]MH_I2C_Read... [21:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:39]Read from MH i2c: E2 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 0E 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 0E 00 65 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B0 [21:07:39]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:07:39]wFMCommunicate OK [21:07:39]SAM_PROTO_GetShiftState done [21:07:39]FM_GetShiftState done [21:07:39]req_shift_opened done [21:07:39]requested_item shift.open_date is exist - process it [21:07:39]req_shift_open_date [21:07:39]req_shift_open_date done [21:07:39]produce_requested_data done [21:07:39]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149022,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:07:39]process_action_free close_receipt [21:07:39]json_value_free [21:07:39]json_value_free done [21:07:39]process_json_proto returns [21:07:39]Send response to host [21:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149022,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:07:39]free response buf [21:07:39]execute_script done [21:07:39]execute_script returns [21:07:39]free content buf [21:07:39]Sock 7.Close socket [21:07:39]Sock 7.Thread stoped [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:27]accept exits with 9 [21:11:27]New connection [21:11:27]New thread 3067075940 created [21:11:27]Thread 3067219300 joined [21:11:27]Waiting for new connection... [21:11:27] Sock 9.Parse request [21:11:27]Sock 9.Check first char [21:11:27]Sock 9.First char is OK [21:11:27]request: POST /json_proto HTTP/1.0 [21:11:27]Method: POST [21:11:27]URL: /json_proto [21:11:27]Method is POST - this is cgi request [21:11:27]url: /json_proto [21:11:27]query_string will be loaded in cgi processing [21:11:27]execute_cgi json_proto POST (null) [21:11:27]execute_cgi path=json_proto method=POST [21:11:27]POST find Content-Length [21:11:27]Host: 172.17.38.4:8080 [21:11:27]Content-Length: 977 [21:11:27]Content-Type: application/json [21:11:27] [21:11:27]POST finish read [21:11:27]Found Content-Length = 977 [21:11:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 50.070, "sum" : 3600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.07 \u0441\u043E\u043C", "deposit" : 3600.00, "total" : 3600.00, "payments": [ { "type": 0, "sum" : 3600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:27]execute_script... [21:11:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 50.070, "sum" : 3600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 68\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.07 \u0441\u043E\u043C", "deposit" : 3600.00, "total" : 3600.00, "payments": [ { "type": 0, "sum" : 3600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:27]POST & json_proto [21:11:27]process_json_proto [21:11:27]json parsed OK: [21:11:27]protocol is kg_v1.0 [21:11:27]action value=close_receipt [21:11:27]process_action close_receipt [21:11:27]cmd_close_receipt [21:11:27]MH_GetDate [21:11:27]Write to MH i2c: F0 00 00 66 0B 60 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: F0 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: F0 09 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: F0 09 00 66 0B 00 00 83 5F 66 CC 51 87 64 B9 [21:11:27]GetLastDocTimeStamp 1717535255 [21:11:27]current date 1717535488 [21:11:27]FM_GetShiftState [21:11:27]SAM_PROTO_GetShiftState [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 13 01 00 [21:11:27]Write to MH i2c: E2 08 00 67 0B 80 13 01 00 00 00 00 00 EF [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 0E 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 0E 00 67 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B2 [21:11:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:11:27]wFMCommunicate OK [21:11:27]SAM_PROTO_GetShiftState done [21:11:27]FM_GetShiftState done [21:11:27]opened in 1717460629 [21:11:27]opened+sec_in_day 1717547029 [21:11:27]quantity*price = 360003 [21:11:27]sum+1 = 360004 [21:11:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 3600.00 Внесено: 3600.00 СДАЧА: 0.00 НСП 1% : 31.86 НДС 12% : 382.30 Наличными: 3600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 362 04.06.2024 21:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Дисконтная программа ДТ номер 68 сэкономлено 50.07 сом ФМ: 0000000000875057 ФД: 149023 ФПД: 204345980093903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211128&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149023&fm=204345980093903&tin=02508201610067®Number=0000000000092720&sum=360000 [21:11:29]StoreToDocumentArchive [21:11:29]shift 368 fd 149023 [21:11:29]save to /storage/0368/doc_00149023 [21:11:29]save last doc name /storage/0368/doc_00149023 to /storage/kkm_last_doc_name [21:11:29]save OK [21:11:29]Clear old archive folders... [21:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:11:29]tlvbuf is 00984C30 [21:11:29]SAM_PROTO_ClearQueue [21:11:29]wFMCommunicate request_size=4 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 09 00 00 [21:11:29]Write to MH i2c: E2 08 00 74 0B 80 09 00 00 00 00 00 00 F1 [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 03 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 03 00 74 0B 00 90 00 F3 [21:11:29]RAPDU: 90 00 [21:11:29]wFMCommunicate OK [21:11:29]SAM_PROTO_ClearQueue done [21:11:29]KKMCreateOFDPacket [21:11:29]OFDProtocolAddRootSTLVToBuf [21:11:29]FM_MakeSignedData [21:11:29]FM_MakeSignedData [21:11:29]SAM_PROTO_SignData [21:11:29]wFMCommunicate request_size=4 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 0D 01 02 [21:11:29]Write to MH i2c: E2 08 00 75 0B 80 0D 01 02 00 00 00 00 F9 [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 03 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [21:11:29]RAPDU: 90 00 [21:11:29]wFMCommunicate OK [21:11:29]wFMCommunicate request_size=255 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 00 83 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1F 46 02 00 35 04 06 00 B9 DA 01 8E [21:11:29]Write to MH i2c: E2 02 01 76 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 00 83 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1F 46 02 00 35 04 06 00 B9 DA 01 8E 00 00 3E [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 03 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 03 00 76 0B 00 90 00 F5 [21:11:29]RAPDU: 90 00 [21:11:29]wFMCommunicate OK [21:11:29]wFMCommunicate request_size=7 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 0D 02 02 02 05 CF [21:11:29]Write to MH i2c: E2 0A 00 77 0B 80 0D 02 02 02 00 05 CF 00 00 D4 [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 03 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 03 00 77 0B 00 90 00 F6 [21:11:29]RAPDU: 90 00 [21:11:29]wFMCommunicate OK [21:11:29]wFMCommunicate request_size=4 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 0D 03 02 [21:11:29]Write to MH i2c: E2 08 00 78 0B 80 0D 03 02 00 00 00 00 FE [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 0B 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 0B 00 78 0B 00 B2 CD 7B C0 7A 30 73 F9 90 00 CF [21:11:29]RAPDU: B2 CD 7B C0 7A 30 73 F9 90 00 [21:11:29]wFMCommunicate OK [21:11:29]SAM_PROTO_SignData done [21:11:29]FM_MakeSignedData done [21:11:29]CreateOFDProtocolMessage [21:11:29]wFMCommunicate request_size=4 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 11 00 00 [21:11:29]Write to MH i2c: E2 08 00 79 0B 80 11 00 00 00 00 00 00 FE [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 17 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 17 00 79 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 51 [21:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:11:29]wFMCommunicate OK [21:11:29]CreateOFDProtocolMessage done [21:11:29]OFDSenderStorePacket 149023 [21:11:29]StoreOFDPacket docnum=149023 [21:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 F6 3D 04 01 E7 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 00 83 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1F 46 02 00 35 04 06 00 B9 DA 01 8E 05 CF B2 CD 7B C0 7A 30 73 F9 [21:11:29]CheckFolder [21:11:29]dirname=/storage/ofd_packets [21:11:29]CheckFolder done [21:11:29]ProducePacketName [21:11:29]name=ofd_packets/00149023 [21:11:29]NVStorageSaveData ofd_packets/00149023 [21:11:29]File name is /storage/ofd_packets/00149023 [21:11:29]Write 298 bytes [21:11:29]NVStorageSaveData done [21:11:29]OFDSenderStorePacket done [21:11:29]KKMCreateOFDPacket done [21:11:29]NVStorageSaveData kkm_last_timestamp [21:11:29]File name is /storage/kkm_last_timestamp [21:11:29]Write 4 bytes [21:11:29]NVStorageSaveData done [21:11:29]ExternCall_PrintAddStr [21:11:29]wPrintStart [21:11:29]Write to MH i2c: 01 00 00 7A 0B 85 [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: 01 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: 01 07 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 FF 0F 9A [21:11:29]RasterBufferAndPrint [21:11:29]line Счет N : (1)979958 [21:11:29]line ИНН: 02508201610067 [21:11:29]line Контрольно-Кассовый Чек [21:11:29]line ПРОДАЖА [21:11:29]line ТРК (МРК, ГНК) : 52 [21:11:29]line Товар: 2710194210 [21:11:29]line ДТ-К-5 [21:11:29]line 50.070 * 71.90 [21:11:29]line = 3600.03 [21:11:29]line НДС 12% НСП 1% [21:11:29]line > о реализуемом товаре [21:11:29]line ОКРУГЛЕНИЕ: -0.03 [21:11:29]line ИТОГО: 3600.00 [21:11:29]line Внесено: 3600.00 [21:11:29]line СДАЧА: 0.00 [21:11:29]line НСП 1% : 31.86 [21:11:29]line НДС 12% : 382.30 [21:11:29]line Наличными: 3600.00 [21:11:29]line Безнал.: 0.00 [21:11:29]line Место: АЗС № 68 "Партнер Нефть" [21:11:29]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:11:29]line СНО: Общий режим [21:11:29]line Чек 362 04.06.2024 21:11 [21:11:29]line Смена: 368 ФФД: 1.0 [21:11:29]line ЗНМ: 0300000035 [21:11:29]line РНМ: 0000000000092720 [21:11:29]line Версия ККМ: 001 [21:11:29]line [21:11:29]line Дисконтная программа [21:11:29]line ДТ [21:11:29]line номер 68 [21:11:29]line сэкономлено 50.07 сом [21:11:29]line ФМ: 0000000000875057 [21:11:29]line ФД: 149023 [21:11:29]line ФПД: 204345980093903 [21:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211128&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149023&fm=204345980093903&tin=02508201610067®Number=0000000000092720&sum=360000 [21:11:29]OFD Sender: Processing packet 149023 [packets to send 100, broken 99] [21:11:29]ProducePacketName [21:11:29]name=ofd_packets/00149023 [21:11:29]OFD Sender: To server: pG, [21:11:29]CommunicateWithHost lk.salyk.kg:30040 [21:11:29]ConnectInit lk.salyk.kg [21:11:29]written 0, free lines is 4095 [21:11:29]Connected sock=10 [21:11:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 F6 3D 04 01 E7 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 00 83 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1F 46 02 00 35 04 06 00 B9 DA 01 8E 05 CF B2 CD 7B C0 7A 30 73 F9 [21:11:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8D B3 47 00 29 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 1F 46 02 00 F4 03 04 00 23 2A 5F 66 B6 04 01 00 00 27 EE 64 BD 3F 91 28 30 [21:11:30]CommunicateWithHost err = 0 [21:11:30]CheckOFDResponse [21:11:30]1017 (14) - 77093643461234 [21:11:30]1041 (16) - 0000000000875057 [21:11:30]1040 (4) - 149023 [21:11:30]1012 (4) - 04.06.2024 14:52 [21:11:30]1206 (1) - 0 [21:11:30]OFD Sender: Remove packet 149023 [21:11:30]ProducePacketName [21:11:30]name=ofd_packets/00149023 [21:11:30]NVStorageDeleteData [21:11:30]Write to MH i2c: 01 00 00 AA 0B B5 [21:11:30]Write i2c OK [21:11:30]MH_I2C_Read... [21:11:30]Read from MH i2c: 01 [21:11:30]MH_I2C_Read... [21:11:30]Read from MH i2c: 01 07 00 [21:11:30]MH_I2C_Read... [21:11:30]Read from MH i2c: 01 07 00 AA 0B 00 00 00 00 00 F6 0B BD [21:11:30]RasterBufferAndPrint [21:11:30]line [21:11:30]line [21:11:30]line [21:11:30]line [21:11:30]line [21:11:30]written 0, free lines is 3066 [21:11:30]MH_Cut [21:11:30]Write to MH i2c: D1 01 00 B1 0B 01 8E [21:11:30]Write i2c OK [21:11:30]MH_I2C_Read... [21:11:30]Read from MH i2c: D1 [21:11:30]MH_I2C_Read... [21:11:30]Read from MH i2c: D1 01 00 [21:11:30]MH_I2C_Read... [21:11:30]Read from MH i2c: D1 01 00 B1 0B 00 8D [21:11:30]Write to MH i2c: 01 00 00 B2 0B BD [21:11:30]Write i2c OK [21:11:30]MH_I2C_Read... [21:11:30]OFD Sender: No OFD packet to send [21:11:31]*** Cut start [21:11:31]*** Partial cut [21:11:31]*** CUTSNS_PIN = 1 [21:11:31]*** CUTSNS_PIN = 0 [21:11:32]*** Brake cut motor [21:11:32]Read from MH i2c: 01 [21:11:32]MH_I2C_Read... [21:11:32]*** Stop cut motor [21:11:32]*** Cut end [21:11:32]Read from MH i2c: 01 07 00 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: 01 07 00 B2 0B 00 00 00 00 00 FF 0F D2 [21:11:32]process_action close_receipt done [21:11:32]requested_data is exist [21:11:32]produce_requested_data [21:11:32]requested_item fm.sn is exist - process it [21:11:32]wFMCommunicate request_size=4 [21:11:32]MH_SAM_APDU [21:11:32]CAPDU: 80 11 00 00 [21:11:32]Write to MH i2c: E2 08 00 B3 0B 80 11 00 00 00 00 00 00 38 [21:11:32]Write i2c OK [21:11:32]MH_I2C_Read... [21:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:32]Read from MH i2c: E2 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: E2 17 00 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: E2 17 00 B3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8B [21:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:11:32]wFMCommunicate OK [21:11:32]requested_item fd.num is exist - process it [21:11:32]SAM_PROTO_GetFieldsCounters [21:11:32]wFMCommunicate request_size=4 [21:11:32]MH_SAM_APDU [21:11:32]CAPDU: 80 13 00 00 [21:11:32]Write to MH i2c: E2 08 00 B4 0B 80 13 00 00 00 00 00 00 3B [21:11:32]Write i2c OK [21:11:32]MH_I2C_Read... [21:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:32]Read from MH i2c: E2 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: E2 62 00 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: E2 62 00 B4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1F 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [21:11:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 1F 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:32]wFMCommunicate OK [21:11:32]SAM_PROTO_GetFieldsCounters done [21:11:32]requested_item shift.num is exist - process it [21:11:32]requested_item shift.opened is exist - process it [21:11:32]req_shift_opened [21:11:32]FM_GetShiftState [21:11:32]SAM_PROTO_GetShiftState [21:11:32]wFMCommunicate request_size=4 [21:11:32]MH_SAM_APDU [21:11:32]CAPDU: 80 13 01 00 [21:11:32]Write to MH i2c: E2 08 00 B5 0B 80 13 01 00 00 00 00 00 3D [21:11:32]Write i2c OK [21:11:32]MH_I2C_Read... [21:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:32]Read from MH i2c: E2 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: E2 0E 00 [21:11:32]MH_I2C_Read... [21:11:32]Read from MH i2c: E2 0E 00 B5 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 00 [21:11:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:11:32]wFMCommunicate OK [21:11:32]SAM_PROTO_GetShiftState done [21:11:32]FM_GetShiftState done [21:11:32]req_shift_opened done [21:11:32]requested_item shift.open_date is exist - process it [21:11:32]req_shift_open_date [21:11:32]req_shift_open_date done [21:11:32]produce_requested_data done [21:11:32]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149023,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:11:32]process_action_free close_receipt [21:11:32]json_value_free [21:11:32]json_value_free done [21:11:32]process_json_proto returns [21:11:32]Send response to host [21:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149023,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:11:32]free response buf [21:11:32]execute_script done [21:11:32]execute_script returns [21:11:32]free content buf [21:11:32]Sock 9.Close socket [21:11:32]Sock 9.Thread stoped [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:11:57]accept exits with 7 [21:11:57]New connection [21:11:57]New thread 3067219300 created [21:11:57]Thread 3067075940 joined [21:11:57]Waiting for new connection... [21:11:57] Sock 7.Parse request [21:11:57]Sock 7.Check first char [21:11:57]Sock 7.First char is OK [21:11:57]request: POST /json_proto HTTP/1.0 [21:11:57]Method: POST [21:11:57]URL: /json_proto [21:11:57]Method is POST - this is cgi request [21:11:57]url: /json_proto [21:11:57]query_string will be loaded in cgi processing [21:11:57]execute_cgi json_proto POST (null) [21:11:57]execute_cgi path=json_proto method=POST [21:11:57]POST find Content-Length [21:11:57]Host: 172.17.38.4:8080 [21:11:57]Content-Length: 782 [21:11:57]Content-Type: application/json [21:11:57] [21:11:57]POST finish read [21:11:57]Found Content-Length = 782 [21:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11911", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:57]execute_script... [21:11:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11911", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:57]POST & json_proto [21:11:57]process_json_proto [21:11:57]json parsed OK: [21:11:57]protocol is kg_v1.0 [21:11:57]action value=close_receipt [21:11:57]process_action close_receipt [21:11:57]cmd_close_receipt [21:11:57]MH_GetDate [21:11:57]Write to MH i2c: F0 00 00 B6 0B B0 [21:11:57]Write i2c OK [21:11:57]MH_I2C_Read... [21:11:57]Read from MH i2c: F0 [21:11:57]MH_I2C_Read... [21:11:57]Read from MH i2c: F0 09 00 [21:11:57]MH_I2C_Read... [21:11:57]Read from MH i2c: F0 09 00 B6 0B 00 1E 83 5F 66 CC 51 87 64 27 [21:11:57]GetLastDocTimeStamp 1717535488 [21:11:57]current date 1717535518 [21:11:57]FM_GetShiftState [21:11:57]SAM_PROTO_GetShiftState [21:11:57]wFMCommunicate request_size=4 [21:11:57]MH_SAM_APDU [21:11:57]CAPDU: 80 13 01 00 [21:11:57]Write to MH i2c: E2 08 00 B7 0B 80 13 01 00 00 00 00 00 3F [21:11:57]Write i2c OK [21:11:57]MH_I2C_Read... [21:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:57]Read from MH i2c: E2 [21:11:57]MH_I2C_Read... [21:11:57]Read from MH i2c: E2 0E 00 [21:11:57]MH_I2C_Read... [21:11:57]Read from MH i2c: E2 0E 00 B7 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 02 [21:11:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:11:57]wFMCommunicate OK [21:11:57]SAM_PROTO_GetShiftState done [21:11:57]FM_GetShiftState done [21:11:57]opened in 1717460629 [21:11:57]opened+sec_in_day 1717547029 [21:11:57]quantity*price = 13800 [21:11:57]sum+1 = 13801 [21:11:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 0.00 Безнал.: 138.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 363 04.06.2024 21:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 149024 ФПД: 253757803489160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211158&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149024&fm=253757803489160&tin=02508201610067®Number=0000000000092720&sum=13800 0 [21:11:59]StoreToDocumentArchive [21:11:59]shift 368 fd 149024 [21:11:59]save to /storage/0368/doc_00149024 [21:11:59]save last doc name /storage/0368/doc_00149024 to /storage/kkm_last_doc_name [21:11:59]save OK [21:11:59]Clear old archive folders... [21:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:11:59]tlvbuf is B6F02A80 [21:11:59]SAM_PROTO_ClearQueue [21:11:59]wFMCommunicate request_size=4 [21:11:59]MH_SAM_APDU [21:11:59]CAPDU: 80 09 00 00 [21:11:59]Write to MH i2c: E2 08 00 C4 0B 80 09 00 00 00 00 00 00 41 [21:11:59]Write i2c OK [21:11:59]MH_I2C_Read... [21:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:59]Read from MH i2c: E2 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 03 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [21:11:59]RAPDU: 90 00 [21:11:59]wFMCommunicate OK [21:11:59]SAM_PROTO_ClearQueue done [21:11:59]KKMCreateOFDPacket [21:11:59]OFDProtocolAddRootSTLVToBuf [21:11:59]FM_MakeSignedData [21:11:59]FM_MakeSignedData [21:11:59]SAM_PROTO_SignData [21:11:59]wFMCommunicate request_size=4 [21:11:59]MH_SAM_APDU [21:11:59]CAPDU: 80 0D 01 02 [21:11:59]Write to MH i2c: E2 08 00 C5 0B 80 0D 01 02 00 00 00 00 49 [21:11:59]Write i2c OK [21:11:59]MH_I2C_Read... [21:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:59]Read from MH i2c: E2 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 03 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [21:11:59]RAPDU: 90 00 [21:11:59]wFMCommunicate OK [21:11:59]wFMCommunicate request_size=255 [21:11:59]MH_SAM_APDU [21:11:59]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 1E 83 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 [21:11:59]Write to MH i2c: E2 02 01 C6 0B 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 1E 83 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 00 00 C4 [21:11:59]Write i2c OK [21:11:59]MH_I2C_Read... [21:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:59]Read from MH i2c: E2 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 03 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [21:11:59]RAPDU: 90 00 [21:11:59]wFMCommunicate OK [21:11:59]wFMCommunicate request_size=33 [21:11:59]MH_SAM_APDU [21:11:59]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 35 37 10 04 04 00 20 46 02 00 35 04 06 00 E6 CA 97 BC 67 88 [21:11:59]Write to MH i2c: E2 24 00 C7 0B 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 35 37 10 04 04 00 20 46 02 00 35 04 06 00 E6 CA 97 BC 67 88 00 00 35 [21:11:59]Write i2c OK [21:11:59]MH_I2C_Read... [21:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:59]Read from MH i2c: E2 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 03 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [21:11:59]RAPDU: 90 00 [21:11:59]wFMCommunicate OK [21:11:59]wFMCommunicate request_size=4 [21:11:59]MH_SAM_APDU [21:11:59]CAPDU: 80 0D 03 02 [21:11:59]Write to MH i2c: E2 08 00 C8 0B 80 0D 03 02 00 00 00 00 4E [21:11:59]Write i2c OK [21:11:59]MH_I2C_Read... [21:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:59]Read from MH i2c: E2 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 0B 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 0B 00 C8 0B 00 71 45 CB F5 FF 02 98 65 90 00 C3 [21:11:59]RAPDU: 71 45 CB F5 FF 02 98 65 90 00 [21:11:59]wFMCommunicate OK [21:11:59]SAM_PROTO_SignData done [21:11:59]FM_MakeSignedData done [21:11:59]CreateOFDProtocolMessage [21:11:59]wFMCommunicate request_size=4 [21:11:59]MH_SAM_APDU [21:11:59]CAPDU: 80 11 00 00 [21:11:59]Write to MH i2c: E2 08 00 C9 0B 80 11 00 00 00 00 00 00 4E [21:11:59]Write i2c OK [21:11:59]MH_I2C_Read... [21:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:59]Read from MH i2c: E2 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 17 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 17 00 C9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A1 [21:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:11:59]wFMCommunicate OK [21:11:59]CreateOFDProtocolMessage done [21:11:59]OFDSenderStorePacket 149024 [21:11:59]StoreOFDPacket docnum=149024 [21:11:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 29 1C 1E 01 35 2C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 1E 83 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 20 46 02 00 35 04 06 00 E6 CA 97 BC 67 88 71 45 CB F5 FF 02 98 65 [21:11:59]CheckFolder [21:11:59]dirname=/storage/ofd_packets [21:11:59]CheckFolder done [21:11:59]ProducePacketName [21:11:59]name=ofd_packets/00149024 [21:11:59]NVStorageSaveData ofd_packets/00149024 [21:11:59]File name is /storage/ofd_packets/00149024 [21:11:59]Write 324 bytes [21:11:59]NVStorageSaveData done [21:11:59]OFDSenderStorePacket done [21:11:59]KKMCreateOFDPacket done [21:11:59]NVStorageSaveData kkm_last_timestamp [21:11:59]File name is /storage/kkm_last_timestamp [21:11:59]Write 4 bytes [21:11:59]NVStorageSaveData done [21:11:59]ExternCall_PrintAddStr [21:11:59]wPrintStart [21:11:59]Write to MH i2c: 01 00 00 CA 0B D5 [21:11:59]Write i2c OK [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: 01 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: 01 07 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: 01 07 00 CA 0B 00 00 00 00 00 FF 0F EA [21:11:59]RasterBufferAndPrint [21:11:59]line Счет N : (3)11911 [21:11:59]line ИНН: 02508201610067 [21:11:59]line Контрольно-Кассовый Чек [21:11:59]line ПРОДАЖА [21:11:59]line Товар: 4640030091645 [21:11:59]line Сигареты ESSE Exchange M [21:11:59]line 1.000 * 138.00 [21:11:59]line = 138.00 [21:11:59]line НДС 12% НСП 1% [21:11:59]line > о реализуемом товаре [21:11:59]line ИТОГО: 138.00 [21:11:59]line НСП 1% : 1.22 [21:11:59]line НДС 12% : 14.65 [21:11:59]line Наличными: 0.00 [21:11:59]line Безнал.: 138.00 [21:11:59]line Место: АЗС № 68 "Партнер Нефть" [21:11:59]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:11:59]line СНО: Общий режим [21:11:59]line Чек 363 04.06.2024 21:11 [21:11:59]line Смена: 368 ФФД: 1.0 [21:11:59]line ЗНМ: 0300000035 [21:11:59]line РНМ: 0000000000092720 [21:11:59]line Версия ККМ: 001 [21:11:59]line Платежная система: O! деньги [21:11:59]line ФМ: 0000000000875057 [21:11:59]line ФД: 149024 [21:11:59]line ФПД: 253757803489160 [21:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211158&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149024&fm=253757803489160&tin=02508201610067®Number=0000000000092720&sum=13800 [21:11:59]line 0 [21:11:59]OFD Sender: Processing packet 149024 [packets to send 100, broken 99] [21:11:59]ProducePacketName [21:11:59]name=ofd_packets/00149024 [21:11:59]OFD Sender: To server: pG, [21:11:59]CommunicateWithHost lk.salyk.kg:30040 [21:11:59]ConnectInit lk.salyk.kg [21:11:59]written 0, free lines is 4095 [21:12:00]Connected sock=10 [21:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 29 1C 1E 01 35 2C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 1E 83 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 20 46 02 00 35 04 06 00 E6 CA 97 BC 67 88 71 45 CB F5 FF 02 98 65 [21:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B4 20 47 00 FA 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 38 37 35 30 35 37 10 04 04 00 20 46 02 00 F4 03 04 00 41 2A 5F 66 B6 04 01 00 00 63 78 BD 47 2D AE AA 51 [21:12:00]CommunicateWithHost err = 0 [21:12:00]CheckOFDResponse [21:12:00]1017 (14) - 77093643461234 [21:12:00]1041 (16) - 0000000000875057 [21:12:00]1040 (4) - 149024 [21:12:00]1012 (4) - 04.06.2024 14:52 [21:12:00]1206 (1) - 0 [21:12:00]OFD Sender: Remove packet 149024 [21:12:00]ProducePacketName [21:12:00]name=ofd_packets/00149024 [21:12:00]NVStorageDeleteData [21:12:00]Write to MH i2c: 01 00 00 F4 0B FF [21:12:00]Write i2c OK [21:12:00]MH_I2C_Read... [21:12:00]Read from MH i2c: 01 [21:12:00]MH_I2C_Read... [21:12:00]Read from MH i2c: 01 07 00 [21:12:00]MH_I2C_Read... [21:12:00]Read from MH i2c: 01 07 00 F4 0B 00 00 00 00 00 6D 0C 7F [21:12:00]RasterBufferAndPrint [21:12:00]line [21:12:00]line [21:12:00]line [21:12:00]line [21:12:00]line [21:12:00]written 0, free lines is 3184 [21:12:00]MH_Cut [21:12:00]Write to MH i2c: D1 01 00 FB 0B 01 D8 [21:12:00]Write i2c OK [21:12:00]MH_I2C_Read... [21:12:00]Read from MH i2c: D1 [21:12:00]MH_I2C_Read... [21:12:00]Read from MH i2c: D1 01 00 [21:12:00]MH_I2C_Read... [21:12:00]Read from MH i2c: D1 01 00 FB 0B 00 D7 [21:12:00]Write to MH i2c: 01 00 00 FC 0B 07 [21:12:00]Write i2c OK [21:12:00]MH_I2C_Read... [21:12:00]OFD Sender: No OFD packet to send [21:12:01]*** Cut start [21:12:01]*** Partial cut [21:12:01]*** CUTSNS_PIN = 1 [21:12:01]*** CUTSNS_PIN = 0 [21:12:01]*** Brake cut motor [21:12:02]Read from MH i2c: 01 [21:12:02]MH_I2C_Read... [21:12:02]*** Stop cut motor [21:12:02]*** Cut end [21:12:02]Read from MH i2c: 01 07 00 [21:12:02]MH_I2C_Read... [21:12:02]Read from MH i2c: 01 07 00 FC 0B 00 00 00 00 00 FF 0F 1C [21:12:02]process_action close_receipt done [21:12:02]requested_data is exist [21:12:02]produce_requested_data [21:12:02]requested_item fm.sn is exist - process it [21:12:02]wFMCommunicate request_size=4 [21:12:02]MH_SAM_APDU [21:12:02]CAPDU: 80 11 00 00 [21:12:02]Write to MH i2c: E2 08 00 FD 0B 80 11 00 00 00 00 00 00 82 [21:12:02]Write i2c OK [21:12:02]MH_I2C_Read... [21:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:02]Read from MH i2c: E2 [21:12:02]MH_I2C_Read... [21:12:02]Read from MH i2c: E2 17 00 [21:12:02]MH_I2C_Read... [21:12:02]Read from MH i2c: E2 17 00 FD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D5 [21:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:12:02]wFMCommunicate OK [21:12:02]requested_item fd.num is exist - process it [21:12:02]SAM_PROTO_GetFieldsCounters [21:12:02]wFMCommunicate request_size=4 [21:12:02]MH_SAM_APDU [21:12:02]CAPDU: 80 13 00 00 [21:12:02]Write to MH i2c: E2 08 00 FE 0B 80 13 00 00 00 00 00 00 85 [21:12:02]Write i2c OK [21:12:02]MH_I2C_Read... [21:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:02]Read from MH i2c: E2 [21:12:02]MH_I2C_Read... [21:12:02]Read from MH i2c: E2 62 00 [21:12:02]MH_I2C_Read... [21:12:02]Read from MH i2c: E2 62 00 FE 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 20 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [21:12:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 20 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:12:02]wFMCommunicate OK [21:12:02]SAM_PROTO_GetFieldsCounters done [21:12:02]requested_item shift.num is exist - process it [21:12:02]requested_item shift.opened is exist - process it [21:12:02]req_shift_opened [21:12:02]FM_GetShiftState [21:12:02]SAM_PROTO_GetShiftState [21:12:02]wFMCommunicate request_size=4 [21:12:02]MH_SAM_APDU [21:12:02]CAPDU: 80 13 01 00 [21:12:02]Write to MH i2c: E2 08 00 FF 0B 80 13 01 00 00 00 00 00 87 [21:12:02]Write i2c OK [21:12:02]MH_I2C_Read... [21:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:02]Read from MH i2c: E2 [21:12:02]MH_I2C_Read... [21:12:02]Read from MH i2c: E2 0E 00 [21:12:02]MH_I2C_Read... [21:12:02]Read from MH i2c: E2 0E 00 FF 0B 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4A [21:12:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:12:02]wFMCommunicate OK [21:12:02]SAM_PROTO_GetShiftState done [21:12:02]FM_GetShiftState done [21:12:02]req_shift_opened done [21:12:02]requested_item shift.open_date is exist - process it [21:12:02]req_shift_open_date [21:12:02]req_shift_open_date done [21:12:02]produce_requested_data done [21:12:02]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149024,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:12:02]process_action_free close_receipt [21:12:02]json_value_free [21:12:02]json_value_free done [21:12:02]process_json_proto returns [21:12:02]Send response to host [21:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149024,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:12:02]free response buf [21:12:02]execute_script done [21:12:02]execute_script returns [21:12:02]free content buf [21:12:02]Sock 7.Close socket [21:12:02]Sock 7.Thread stoped [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:18]accept exits with 9 [21:21:18]New connection [21:21:18]New thread 3067075940 created [21:21:18]Thread 3067219300 joined [21:21:18]Waiting for new connection... [21:21:18] Sock 9.Parse request [21:21:18]Sock 9.Check first char [21:21:18]Sock 9.First char is OK [21:21:18]request: POST /json_proto HTTP/1.0 [21:21:18]Method: POST [21:21:18]URL: /json_proto [21:21:18]Method is POST - this is cgi request [21:21:18]url: /json_proto [21:21:18]query_string will be loaded in cgi processing [21:21:18]execute_cgi json_proto POST (null) [21:21:18]execute_cgi path=json_proto method=POST [21:21:18]POST find Content-Length [21:21:18]Host: 172.17.38.4:8080 [21:21:18]Content-Length: 793 [21:21:18]Content-Type: application/json [21:21:18] [21:21:18]POST finish read [21:21:18]Found Content-Length = 793 [21:21:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:18]execute_script... [21:21: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)979959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:18]POST & json_proto [21:21:18]process_json_proto [21:21:18]json parsed OK: [21:21:18]protocol is kg_v1.0 [21:21:18]action value=close_receipt [21:21:18]process_action close_receipt [21:21:18]cmd_close_receipt [21:21:18]MH_GetDate [21:21:18]Write to MH i2c: F0 00 00 00 0C FB [21:21:18]Write i2c OK [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: F0 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: F0 09 00 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: F0 09 00 00 0C 00 4F 85 5F 66 CC 51 87 64 A5 [21:21:18]GetLastDocTimeStamp 1717535518 [21:21:18]current date 1717536079 [21:21:18]FM_GetShiftState [21:21:18]SAM_PROTO_GetShiftState [21:21:18]wFMCommunicate request_size=4 [21:21:18]MH_SAM_APDU [21:21:18]CAPDU: 80 13 01 00 [21:21:18]Write to MH i2c: E2 08 00 01 0C 80 13 01 00 00 00 00 00 8A [21:21:18]Write i2c OK [21:21:18]MH_I2C_Read... [21:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:18]Read from MH i2c: E2 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 0E 00 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 0E 00 01 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4D [21:21:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:21:18]wFMCommunicate OK [21:21:18]SAM_PROTO_GetShiftState done [21:21:18]FM_GetShiftState done [21:21:18]opened in 1717460629 [21:21:18]opened+sec_in_day 1717547029 [21:21:18]quantity*price = 100015 [21:21:18]sum+1 = 100017 [21:21:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 364 04.06.2024 21:21 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 149025 ФПД: 188504377887250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T212119&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149025&fm=188504377887250&tin=02508201610067®Number=0000000000092720&sum=100016 [21:21:19]StoreToDocumentArchive [21:21:19]shift 368 fd 149025 [21:21:19]save to /storage/0368/doc_00149025 [21:21:19]save last doc name /storage/0368/doc_00149025 to /storage/kkm_last_doc_name [21:21:19]save OK [21:21:19]Clear old archive folders... [21:21:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:21:19]tlvbuf is B6EE9350 [21:21:19]SAM_PROTO_ClearQueue [21:21:19]wFMCommunicate request_size=4 [21:21:19]MH_SAM_APDU [21:21:19]CAPDU: 80 09 00 00 [21:21:19]Write to MH i2c: E2 08 00 0E 0C 80 09 00 00 00 00 00 00 8C [21:21:19]Write i2c OK [21:21:19]MH_I2C_Read... [21:21:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:19]Read from MH i2c: E2 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: E2 03 00 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: E2 03 00 0E 0C 00 90 00 8E [21:21:19]RAPDU: 90 00 [21:21:19]wFMCommunicate OK [21:21:19]SAM_PROTO_ClearQueue done [21:21:19]KKMCreateOFDPacket [21:21:19]OFDProtocolAddRootSTLVToBuf [21:21:19]FM_MakeSignedData [21:21:19]FM_MakeSignedData [21:21:19]SAM_PROTO_SignData [21:21:19]wFMCommunicate request_size=4 [21:21:19]MH_SAM_APDU [21:21:19]CAPDU: 80 0D 01 02 [21:21:19]Write to MH i2c: E2 08 00 0F 0C 80 0D 01 02 00 00 00 00 94 [21:21:19]Write i2c OK [21:21:19]MH_I2C_Read... [21:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:20]Read from MH i2c: E2 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 03 00 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 03 00 0F 0C 00 90 00 8F [21:21:20]RAPDU: 90 00 [21:21:20]wFMCommunicate OK [21:21:20]wFMCommunicate request_size=255 [21:21:20]MH_SAM_APDU [21:21:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6C 01 00 00 F4 03 04 00 4F 85 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 21 46 02 00 35 04 06 00 AB [21:21:20]Write to MH i2c: E2 02 01 10 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6C 01 00 00 F4 03 04 00 4F 85 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 21 46 02 00 35 04 06 00 AB 00 00 C3 [21:21:20]Write i2c OK [21:21:20]MH_I2C_Read... [21:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:20]Read from MH i2c: E2 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 03 00 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [21:21:20]RAPDU: 90 00 [21:21:20]wFMCommunicate OK [21:21:20]wFMCommunicate request_size=10 [21:21:20]MH_SAM_APDU [21:21:20]CAPDU: 80 0D 02 02 05 71 98 7B 8A 12 [21:21:20]Write to MH i2c: E2 0D 00 11 0C 80 0D 02 02 05 00 71 98 7B 8A 12 00 00 C1 [21:21:20]Write i2c OK [21:21:20]MH_I2C_Read... [21:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:20]Read from MH i2c: E2 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 03 00 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [21:21:20]RAPDU: 90 00 [21:21:20]wFMCommunicate OK [21:21:20]wFMCommunicate request_size=4 [21:21:20]MH_SAM_APDU [21:21:20]CAPDU: 80 0D 03 02 [21:21:20]Write to MH i2c: E2 08 00 12 0C 80 0D 03 02 00 00 00 00 99 [21:21:20]Write i2c OK [21:21:20]MH_I2C_Read... [21:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:20]Read from MH i2c: E2 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 0B 00 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 0B 00 12 0C 00 4F 4C 2A A4 20 6B 0F E9 90 00 86 [21:21:20]RAPDU: 4F 4C 2A A4 20 6B 0F E9 90 00 [21:21:20]wFMCommunicate OK [21:21:20]SAM_PROTO_SignData done [21:21:20]FM_MakeSignedData done [21:21:20]CreateOFDProtocolMessage [21:21:20]wFMCommunicate request_size=4 [21:21:20]MH_SAM_APDU [21:21:20]CAPDU: 80 11 00 00 [21:21:20]Write to MH i2c: E2 08 00 13 0C 80 11 00 00 00 00 00 00 99 [21:21:20]Write i2c OK [21:21:20]MH_I2C_Read... [21:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:20]Read from MH i2c: E2 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 17 00 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 17 00 13 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EC [21:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:21:20]wFMCommunicate OK [21:21:20]CreateOFDProtocolMessage done [21:21:20]OFDSenderStorePacket 149025 [21:21:20]StoreOFDPacket docnum=149025 [21:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F3 43 07 01 8D 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 4F 85 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 21 46 02 00 35 04 06 00 AB 71 98 7B 8A 12 4F 4C 2A A4 20 6B 0F E9 [21:21:20]CheckFolder [21:21:20]dirname=/storage/ofd_packets [21:21:20]CheckFolder done [21:21:20]ProducePacketName [21:21:20]name=ofd_packets/00149025 [21:21:20]NVStorageSaveData ofd_packets/00149025 [21:21:20]File name is /storage/ofd_packets/00149025 [21:21:20]Write 301 bytes [21:21:20]NVStorageSaveData done [21:21:20]OFDSenderStorePacket done [21:21:20]KKMCreateOFDPacket done [21:21:20]NVStorageSaveData kkm_last_timestamp [21:21:20]File name is /storage/kkm_last_timestamp [21:21:20]Write 4 bytes [21:21:20]NVStorageSaveData done [21:21:20]ExternCall_PrintAddStr [21:21:20]wPrintStart [21:21:20]Write to MH i2c: 01 00 00 14 0C 20 [21:21:20]Write i2c OK [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: 01 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: 01 07 00 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: 01 07 00 14 0C 00 00 00 00 00 FF 0F 35 [21:21:20]RasterBufferAndPrint [21:21:20]line Счет N : (1)979959 [21:21:20]line ИНН: 02508201610067 [21:21:20]line Контрольно-Кассовый Чек [21:21:20]line ПРОДАЖА [21:21:20]line ТРК (МРК, ГНК) : 41 [21:21:20]line Товар: 2710124130 [21:21:20]line Аи-92-К-5 [21:21:20]line 14.950 * 66.90 [21:21:20]line = 1000.16 [21:21:20]line НДС 12% НСП 1% [21:21:20]line > о реализуемом товаре [21:21:20]line ИТОГО: 1000.16 [21:21:20]line НСП 1% : 8.85 [21:21:20]line НДС 12% : 106.21 [21:21:20]line Наличными: 0.00 [21:21:20]line Безнал.: 1000.16 [21:21:20]line Место: АЗС № 68 "Партнер Нефть" [21:21:20]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:21:20]line СНО: Общий режим [21:21:20]line Чек 364 04.06.2024 21:21 [21:21:20]line Смена: 368 ФФД: 1.0 [21:21:20]line ЗНМ: 0300000035 [21:21:20]line РНМ: 0000000000092720 [21:21:20]line Версия ККМ: 001 [21:21:20]line Платежная система: KICB Банк [21:21:20]line ФМ: 0000000000875057 [21:21:20]line ФД: 149025 [21:21:20]line ФПД: 188504377887250 [21:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T212119&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149025&fm=188504377887250&tin=02508201610067®Number=0000000000092720&sum=100016 [21:21:20]OFD Sender: Processing packet 149025 [packets to send 100, broken 99] [21:21:20]ProducePacketName [21:21:20]name=ofd_packets/00149025 [21:21:20]OFD Sender: To server: pG, [21:21:20]CommunicateWithHost lk.salyk.kg:30040 [21:21:20]ConnectInit lk.salyk.kg [21:21:20]written 0, free lines is 4095 [21:21:20]Connected sock=10 [21:21:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F3 43 07 01 8D 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 4F 85 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 21 46 02 00 35 04 06 00 AB 71 98 7B 8A 12 4F 4C 2A A4 20 6B 0F E9 [21:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 43 F3 47 00 F1 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 21 46 02 00 F4 03 04 00 72 2C 5F 66 B6 04 01 00 00 5C 50 D0 CE 97 61 2B 13 [21:21:21]CommunicateWithHost err = 0 [21:21:21]CheckOFDResponse [21:21:21]1017 (14) - 77093643461234 [21:21:21]1041 (16) - 0000000000875057 [21:21:21]1040 (4) - 149025 [21:21:21]1012 (4) - 04.06.2024 15:02 [21:21:21]1206 (1) - 0 [21:21:21]OFD Sender: Remove packet 149025 [21:21:21]ProducePacketName [21:21:21]name=ofd_packets/00149025 [21:21:21]NVStorageDeleteData [21:21:21]Write to MH i2c: 01 00 00 3E 0C 4A [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: 01 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: 01 07 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: 01 07 00 3E 0C 00 00 00 00 00 81 0C DE [21:21:21]RasterBufferAndPrint [21:21:21]line [21:21:21]line [21:21:21]line [21:21:21]line [21:21:21]line [21:21:21]written 0, free lines is 3204 [21:21:21]MH_Cut [21:21:21]Write to MH i2c: D1 01 00 45 0C 01 23 [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: D1 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: D1 01 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: D1 01 00 45 0C 00 22 [21:21:21]Write to MH i2c: 01 00 00 46 0C 52 [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]OFD Sender: No OFD packet to send [21:21:22]*** Cut start [21:21:22]*** Partial cut [21:21:22]*** CUTSNS_PIN = 1 [21:21:22]*** CUTSNS_PIN = 0 [21:21:22]*** Brake cut motor [21:21:23]Read from MH i2c: 01 [21:21:23]MH_I2C_Read... [21:21:23]*** Stop cut motor [21:21:23]*** Cut end [21:21:23]Read from MH i2c: 01 07 00 [21:21:23]MH_I2C_Read... [21:21:23]Read from MH i2c: 01 07 00 46 0C 00 00 00 00 00 FF 0F 67 [21:21:23]process_action close_receipt done [21:21:23]requested_data is exist [21:21:23]produce_requested_data [21:21:23]requested_item fm.sn is exist - process it [21:21:23]wFMCommunicate request_size=4 [21:21:23]MH_SAM_APDU [21:21:23]CAPDU: 80 11 00 00 [21:21:23]Write to MH i2c: E2 08 00 47 0C 80 11 00 00 00 00 00 00 CD [21:21:23]Write i2c OK [21:21:23]MH_I2C_Read... [21:21:23]Read from MH i2c: E2 [21:21:23]MH_I2C_Read... [21:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:23]Read from MH i2c: E2 17 00 [21:21:23]MH_I2C_Read... [21:21:23]Read from MH i2c: E2 17 00 47 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 20 [21:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:21:23]wFMCommunicate OK [21:21:23]requested_item fd.num is exist - process it [21:21:23]SAM_PROTO_GetFieldsCounters [21:21:23]wFMCommunicate request_size=4 [21:21:23]MH_SAM_APDU [21:21:23]CAPDU: 80 13 00 00 [21:21:23]Write to MH i2c: E2 08 00 48 0C 80 13 00 00 00 00 00 00 D0 [21:21:23]Write i2c OK [21:21:23]MH_I2C_Read... [21:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:23]Read from MH i2c: E2 [21:21:23]MH_I2C_Read... [21:21:23]Read from MH i2c: E2 62 00 [21:21:23]MH_I2C_Read... [21:21:23]Read from MH i2c: E2 62 00 48 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 21 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [21:21:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 21 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:23]wFMCommunicate OK [21:21:23]SAM_PROTO_GetFieldsCounters done [21:21:23]requested_item shift.num is exist - process it [21:21:23]requested_item shift.opened is exist - process it [21:21:23]req_shift_opened [21:21:23]FM_GetShiftState [21:21:23]SAM_PROTO_GetShiftState [21:21:23]wFMCommunicate request_size=4 [21:21:23]MH_SAM_APDU [21:21:23]CAPDU: 80 13 01 00 [21:21:23]Write to MH i2c: E2 08 00 49 0C 80 13 01 00 00 00 00 00 D2 [21:21:23]Write i2c OK [21:21:23]MH_I2C_Read... [21:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:23]Read from MH i2c: E2 [21:21:23]MH_I2C_Read... [21:21:23]Read from MH i2c: E2 0E 00 [21:21:23]MH_I2C_Read... [21:21:23]Read from MH i2c: E2 0E 00 49 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 95 [21:21:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:21:23]wFMCommunicate OK [21:21:23]SAM_PROTO_GetShiftState done [21:21:23]FM_GetShiftState done [21:21:23]req_shift_opened done [21:21:23]requested_item shift.open_date is exist - process it [21:21:23]req_shift_open_date [21:21:23]req_shift_open_date done [21:21:23]produce_requested_data done [21:21:23]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149025,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:21:23]process_action_free close_receipt [21:21:23]json_value_free [21:21:23]json_value_free done [21:21:23]process_json_proto returns [21:21:23]Send response to host [21:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149025,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:21:23]free response buf [21:21:23]execute_script done [21:21:23]execute_script returns [21:21:23]free content buf [21:21:23]Sock 9.Close socket [21:21:23]Sock 9.Thread stoped [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27: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:00]accept exits with 7 [21:29:00]New connection [21:29:00]New thread 3067219300 created [21:29:00]Thread 3067075940 joined [21:29:00]Waiting for new connection... [21:29:00] Sock 7.Parse request [21:29:00]Sock 7.Check first char [21:29:00]Sock 7.First char is OK [21:29:00]request: POST /json_proto HTTP/1.0 [21:29:00]Method: POST [21:29:00]URL: /json_proto [21:29:00]Method is POST - this is cgi request [21:29:00]url: /json_proto [21:29:00]query_string will be loaded in cgi processing [21:29:00]execute_cgi json_proto POST (null) [21:29:00]execute_cgi path=json_proto method=POST [21:29:00]POST find Content-Length [21:29:00]Host: 172.17.38.4:8080 [21:29:00]Content-Length: 674 [21:29:00]Content-Type: application/json [21:29:00] [21:29:00]POST finish read [21:29:00]Found Content-Length = 674 [21:29:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [21:29:00]execute_script... [21:29: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)979960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [21:29:00]POST & json_proto [21:29:00]process_json_proto [21:29:00]json parsed OK: [21:29:00]protocol is kg_v1.0 [21:29:00]action value=close_receipt [21:29:00]process_action close_receipt [21:29:00]cmd_close_receipt [21:29:00]MH_GetDate [21:29:00]Write to MH i2c: F0 00 00 4A 0C 45 [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: F0 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: F0 09 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: F0 09 00 4A 0C 00 1D 87 5F 66 CC 51 87 64 BF [21:29:00]GetLastDocTimeStamp 1717536079 [21:29:00]current date 1717536541 [21:29:00]FM_GetShiftState [21:29:00]SAM_PROTO_GetShiftState [21:29:00]wFMCommunicate request_size=4 [21:29:00]MH_SAM_APDU [21:29:00]CAPDU: 80 13 01 00 [21:29:00]Write to MH i2c: E2 08 00 4B 0C 80 13 01 00 00 00 00 00 D4 [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:00]Read from MH i2c: E2 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 0E 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 0E 00 4B 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 97 [21:29:00]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:29:00]wFMCommunicate OK [21:29:00]SAM_PROTO_GetShiftState done [21:29:00]FM_GetShiftState done [21:29:00]opened in 1717460629 [21:29:00]opened+sec_in_day 1717547029 [21:29:00]quantity*price = 50009 [21:29:00]sum+1 = 50010 [21:29:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 365 04.06.2024 21:29 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149026 ФПД: 94731676615602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T212901&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149026&fm=94731676615602&tin=02508201610067®Number=0000000000092720&sum=50000 [21:29:01]StoreToDocumentArchive [21:29:01]shift 368 fd 149026 [21:29:01]save to /storage/0368/doc_00149026 [21:29:01]save last doc name /storage/0368/doc_00149026 to /storage/kkm_last_doc_name [21:29:01]save OK [21:29:01]Clear old archive folders... [21:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:29:01]tlvbuf is 00965580 [21:29:01]SAM_PROTO_ClearQueue [21:29:01]wFMCommunicate request_size=4 [21:29:01]MH_SAM_APDU [21:29:01]CAPDU: 80 09 00 00 [21:29:01]Write to MH i2c: E2 08 00 58 0C 80 09 00 00 00 00 00 00 D6 [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:01]Read from MH i2c: E2 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 03 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 03 00 58 0C 00 90 00 D8 [21:29:01]RAPDU: 90 00 [21:29:01]wFMCommunicate OK [21:29:01]SAM_PROTO_ClearQueue done [21:29:01]KKMCreateOFDPacket [21:29:01]OFDProtocolAddRootSTLVToBuf [21:29:01]FM_MakeSignedData [21:29:01]FM_MakeSignedData [21:29:01]SAM_PROTO_SignData [21:29:01]wFMCommunicate request_size=4 [21:29:01]MH_SAM_APDU [21:29:01]CAPDU: 80 0D 01 02 [21:29:01]Write to MH i2c: E2 08 00 59 0C 80 0D 01 02 00 00 00 00 DE [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:01]Read from MH i2c: E2 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 03 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 03 00 59 0C 00 90 00 D9 [21:29:01]RAPDU: 90 00 [21:29:01]wFMCommunicate OK [21:29:01]wFMCommunicate request_size=255 [21:29:01]MH_SAM_APDU [21:29:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 6D 01 00 00 F4 03 04 00 1D 87 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 22 46 02 00 35 04 06 00 56 28 6F EF [21:29:01]Write to MH i2c: E2 02 01 5A 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 6D 01 00 00 F4 03 04 00 1D 87 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 22 46 02 00 35 04 06 00 56 28 6F EF 00 00 11 [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:02]Read from MH i2c: E2 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: E2 03 00 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: E2 03 00 5A 0C 00 90 00 DA [21:29:02]RAPDU: 90 00 [21:29:02]wFMCommunicate OK [21:29:02]wFMCommunicate request_size=7 [21:29:02]MH_SAM_APDU [21:29:02]CAPDU: 80 0D 02 02 02 03 B2 [21:29:02]Write to MH i2c: E2 0A 00 5B 0C 80 0D 02 02 02 00 03 B2 00 00 9A [21:29:02]Write i2c OK [21:29:02]MH_I2C_Read... [21:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:02]Read from MH i2c: E2 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: E2 03 00 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: E2 03 00 5B 0C 00 90 00 DB [21:29:02]RAPDU: 90 00 [21:29:02]wFMCommunicate OK [21:29:02]wFMCommunicate request_size=4 [21:29:02]MH_SAM_APDU [21:29:02]CAPDU: 80 0D 03 02 [21:29:02]Write to MH i2c: E2 08 00 5C 0C 80 0D 03 02 00 00 00 00 E3 [21:29:02]Write i2c OK [21:29:02]MH_I2C_Read... [21:29:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:02]OFD Sender: No OFD packet to send [21:29:02]Read from MH i2c: E2 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: E2 0B 00 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: E2 0B 00 5C 0C 00 98 56 5C 56 CE 5E 77 FD 90 00 24 [21:29:02]RAPDU: 98 56 5C 56 CE 5E 77 FD 90 00 [21:29:02]wFMCommunicate OK [21:29:02]SAM_PROTO_SignData done [21:29:02]FM_MakeSignedData done [21:29:02]CreateOFDProtocolMessage [21:29:02]wFMCommunicate request_size=4 [21:29:02]MH_SAM_APDU [21:29:02]CAPDU: 80 11 00 00 [21:29:02]Write to MH i2c: E2 08 00 5D 0C 80 11 00 00 00 00 00 00 E3 [21:29:02]Write i2c OK [21:29:02]MH_I2C_Read... [21:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:02]Read from MH i2c: E2 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: E2 17 00 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: E2 17 00 5D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 36 [21:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:29:02]wFMCommunicate OK [21:29:02]CreateOFDProtocolMessage done [21:29:02]OFDSenderStorePacket 149026 [21:29:02]StoreOFDPacket docnum=149026 [21:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 65 A1 04 01 E1 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 6D 01 00 00 F4 03 04 00 1D 87 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 22 46 02 00 35 04 06 00 56 28 6F EF 03 B2 98 56 5C 56 CE 5E 77 FD [21:29:02]CheckFolder [21:29:02]dirname=/storage/ofd_packets [21:29:02]CheckFolder done [21:29:02]ProducePacketName [21:29:02]name=ofd_packets/00149026 [21:29:02]NVStorageSaveData ofd_packets/00149026 [21:29:02]File name is /storage/ofd_packets/00149026 [21:29:02]Write 298 bytes [21:29:02]NVStorageSaveData done [21:29:02]OFDSenderStorePacket done [21:29:02]KKMCreateOFDPacket done [21:29:02]NVStorageSaveData kkm_last_timestamp [21:29:02]File name is /storage/kkm_last_timestamp [21:29:02]Write 4 bytes [21:29:02]NVStorageSaveData done [21:29:02]ExternCall_PrintAddStr [21:29:02]wPrintStart [21:29:02]Write to MH i2c: 01 00 00 5E 0C 6A [21:29:02]Write i2c OK [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: 01 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: 01 07 00 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: 01 07 00 5E 0C 00 00 00 00 00 FF 0F 7F [21:29:02]RasterBufferAndPrint [21:29:02]line Счет N : (1)979960 [21:29:02]line ИНН: 02508201610067 [21:29:02]line Контрольно-Кассовый Чек [21:29:02]line ПРОДАЖА [21:29:02]line ТРК (МРК, ГНК) : 51 [21:29:02]line Товар: 2710194210 [21:29:02]line ДТ-К-5 [21:29:02]line 6.860 * 72.90 [21:29:02]line = 500.09 [21:29:02]line НДС 12% НСП 1% [21:29:02]line > о реализуемом товаре [21:29:02]line ОКРУГЛЕНИЕ: -0.09 [21:29:02]line ИТОГО: 500.00 [21:29:02]line Внесено: 500.00 [21:29:02]line СДАЧА: 0.00 [21:29:02]line НСП 1% : 4.43 [21:29:02]line НДС 12% : 53.11 [21:29:02]line Наличными: 500.00 [21:29:02]line Безнал.: 0.00 [21:29:02]line Место: АЗС № 68 "Партнер Нефть" [21:29:02]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:29:02]line СНО: Общий режим [21:29:02]line Чек 365 04.06.2024 21:29 [21:29:02]line Смена: 368 ФФД: 1.0 [21:29:02]line ЗНМ: 0300000035 [21:29:02]line РНМ: 0000000000092720 [21:29:02]line Версия ККМ: 001 [21:29:02]line ФМ: 0000000000875057 [21:29:02]line ФД: 149026 [21:29:02]line ФПД: 94731676615602 [21:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T212901&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149026&fm=94731676615602&tin=02508201610067®Number=0000000000092720&sum=50000 [21:29:02]OFD Sender: Processing packet 149026 [packets to send 100, broken 99] [21:29:02]ProducePacketName [21:29:02]name=ofd_packets/00149026 [21:29:02]OFD Sender: To server: pG, [21:29:02]CommunicateWithHost lk.salyk.kg:30040 [21:29:02]ConnectInit lk.salyk.kg [21:29:02]written 0, free lines is 4095 [21:29:02]Connected sock=10 [21:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 65 A1 04 01 E1 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 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 6D 01 00 00 F4 03 04 00 1D 87 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 22 46 02 00 35 04 06 00 56 28 6F EF 03 B2 98 56 5C 56 CE 5E 77 FD [21:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1B A2 47 00 AD 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 38 37 35 30 35 37 10 04 04 00 22 46 02 00 F4 03 04 00 3F 2E 5F 66 B6 04 01 00 00 30 ED D6 A7 8C 28 7C 7E [21:29:02]CommunicateWithHost err = 0 [21:29:02]CheckOFDResponse [21:29:02]1017 (14) - 77093643461234 [21:29:02]1041 (16) - 0000000000875057 [21:29:02]1040 (4) - 149026 [21:29:02]1012 (4) - 04.06.2024 15:09 [21:29:02]1206 (1) - 0 [21:29:02]OFD Sender: Remove packet 149026 [21:29:02]ProducePacketName [21:29:02]name=ofd_packets/00149026 [21:29:02]NVStorageDeleteData [21:29:02]Write to MH i2c: 01 00 00 89 0C 95 [21:29:02]Write i2c OK [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: 01 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: 01 07 00 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: 01 07 00 89 0C 00 00 00 00 00 67 0C 0F [21:29:02]RasterBufferAndPrint [21:29:02]line [21:29:02]line [21:29:02]line [21:29:02]line [21:29:02]line [21:29:02]written 0, free lines is 3179 [21:29:02]MH_Cut [21:29:02]Write to MH i2c: D1 01 00 90 0C 01 6E [21:29:02]Write i2c OK [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: D1 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: D1 01 00 [21:29:02]MH_I2C_Read... [21:29:02]Read from MH i2c: D1 01 00 90 0C 00 6D [21:29:02]Write to MH i2c: 01 00 00 91 0C 9D [21:29:02]Write i2c OK [21:29:02]MH_I2C_Read... [21:29:03]OFD Sender: No OFD packet to send [21:29:04]*** Cut start [21:29:04]*** Partial cut [21:29:04]*** CUTSNS_PIN = 1 [21:29:04]*** CUTSNS_PIN = 0 [21:29:04]*** Brake cut motor [21:29:04]Read from MH i2c: 01 [21:29:04]MH_I2C_Read... [21:29:04]*** Stop cut motor [21:29:04]*** Cut end [21:29:04]Read from MH i2c: 01 07 00 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: 01 07 00 91 0C 00 00 00 00 00 FF 0F B2 [21:29:04]process_action close_receipt done [21:29:04]requested_data is exist [21:29:04]produce_requested_data [21:29:04]requested_item fm.sn is exist - process it [21:29:04]wFMCommunicate request_size=4 [21:29:04]MH_SAM_APDU [21:29:04]CAPDU: 80 11 00 00 [21:29:04]Write to MH i2c: E2 08 00 92 0C 80 11 00 00 00 00 00 00 18 [21:29:04]Write i2c OK [21:29:04]MH_I2C_Read... [21:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:04]Read from MH i2c: E2 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 17 00 [21:29:04]MH_I2C_Read... [21:29:04]Read from MH i2c: E2 17 00 92 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6B [21:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:29:04]wFMCommunicate OK [21:29:04]requested_item fd.num is exist - process it [21:29:04]SAM_PROTO_GetFieldsCounters [21:29:04]wFMCommunicate request_size=4 [21:29:04]MH_SAM_APDU [21:29:04]CAPDU: 80 13 00 00 [21:29:04]Write to MH i2c: E2 08 00 93 0C 80 13 00 00 00 00 00 00 1B [21:29:04]Write i2c OK [21:29:04]MH_I2C_Read... [21:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:05]Read from MH i2c: E2 [21:29:05]MH_I2C_Read... [21:29:05]Read from MH i2c: E2 62 00 [21:29:05]MH_I2C_Read... [21:29:05]Read from MH i2c: E2 62 00 93 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 22 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [21:29:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 22 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:05]wFMCommunicate OK [21:29:05]SAM_PROTO_GetFieldsCounters done [21:29:05]requested_item shift.num is exist - process it [21:29:05]requested_item shift.opened is exist - process it [21:29:05]req_shift_opened [21:29:05]FM_GetShiftState [21:29:05]SAM_PROTO_GetShiftState [21:29:05]wFMCommunicate request_size=4 [21:29:05]MH_SAM_APDU [21:29:05]CAPDU: 80 13 01 00 [21:29:05]Write to MH i2c: E2 08 00 94 0C 80 13 01 00 00 00 00 00 1D [21:29:05]Write i2c OK [21:29:05]MH_I2C_Read... [21:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:05]Read from MH i2c: E2 [21:29:05]MH_I2C_Read... [21:29:05]Read from MH i2c: E2 0E 00 [21:29:05]MH_I2C_Read... [21:29:05]Read from MH i2c: E2 0E 00 94 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E0 [21:29:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:29:05]wFMCommunicate OK [21:29:05]SAM_PROTO_GetShiftState done [21:29:05]FM_GetShiftState done [21:29:05]req_shift_opened done [21:29:05]requested_item shift.open_date is exist - process it [21:29:05]req_shift_open_date [21:29:05]req_shift_open_date done [21:29:05]produce_requested_data done [21:29:05]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149026,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:29:05]process_action_free close_receipt [21:29:05]json_value_free [21:29:05]json_value_free done [21:29:05]process_json_proto returns [21:29:05]Send response to host [21:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149026,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:29:05]free response buf [21:29:05]execute_script done [21:29:05]execute_script returns [21:29:05]free content buf [21:29:05]Sock 7.Close socket [21:29:05]Sock 7.Thread stoped [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:29:59]accept exits with 9 [21:29:59]New connection [21:29:59]New thread 3067075940 created [21:29:59]Thread 3067219300 joined [21:29:59]Waiting for new connection... [21:29:59] Sock 9.Parse request [21:29:59]Sock 9.Check first char [21:29:59]Sock 9.First char is OK [21:29:59]request: POST /json_proto HTTP/1.0 [21:29:59]Method: POST [21:29:59]URL: /json_proto [21:29:59]Method is POST - this is cgi request [21:29:59]url: /json_proto [21:29:59]query_string will be loaded in cgi processing [21:29:59]execute_cgi json_proto POST (null) [21:29:59]execute_cgi path=json_proto method=POST [21:29:59]POST find Content-Length [21:29:59]Host: 172.17.38.4:8080 [21:29:59]Content-Length: 675 [21:29:59]Content-Type: application/json [21:29:59] [21:29:59]POST finish read [21:29:59]Found Content-Length = 675 [21:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [21:29:59]execute_script... [21:29: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)979961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [21:29:59]POST & json_proto [21:29:59]process_json_proto [21:29:59]json parsed OK: [21:29:59]protocol is kg_v1.0 [21:29:59]action value=close_receipt [21:29:59]process_action close_receipt [21:29:59]cmd_close_receipt [21:29:59]MH_GetDate [21:29:59]Write to MH i2c: F0 00 00 95 0C 90 [21:29:59]Write i2c OK [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: F0 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: F0 09 00 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: F0 09 00 95 0C 00 58 87 5F 66 CC 51 87 64 45 [21:29:59]GetLastDocTimeStamp 1717536541 [21:29:59]current date 1717536600 [21:29:59]FM_GetShiftState [21:29:59]SAM_PROTO_GetShiftState [21:29:59]wFMCommunicate request_size=4 [21:29:59]MH_SAM_APDU [21:29:59]CAPDU: 80 13 01 00 [21:29:59]Write to MH i2c: E2 08 00 96 0C 80 13 01 00 00 00 00 00 1F [21:29:59]Write i2c OK [21:29:59]MH_I2C_Read... [21:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:59]Read from MH i2c: E2 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: E2 0E 00 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: E2 0E 00 96 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E2 [21:29:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:29:59]wFMCommunicate OK [21:29:59]SAM_PROTO_GetShiftState done [21:29:59]FM_GetShiftState done [21:29:59]opened in 1717460629 [21:29:59]opened+sec_in_day 1717547029 [21:29:59]quantity*price = 100016 [21:29:59]sum+1 = 100018 [21:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 366 04.06.2024 21:30 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149027 ФПД: 192717083003229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T213000&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149027&fm=192717083003229&tin=02508201610067®Number=0000000000092720&sum=100000 [21:30:00]StoreToDocumentArchive [21:30:00]shift 368 fd 149027 [21:30:00]save to /storage/0368/doc_00149027 [21:30:00]save last doc name /storage/0368/doc_00149027 to /storage/kkm_last_doc_name [21:30:00]save OK [21:30:00]Clear old archive folders... [21:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:30:00]tlvbuf is 0091D840 [21:30:00]SAM_PROTO_ClearQueue [21:30:00]wFMCommunicate request_size=4 [21:30:00]MH_SAM_APDU [21:30:00]CAPDU: 80 09 00 00 [21:30:00]Write to MH i2c: E2 08 00 A3 0C 80 09 00 00 00 00 00 00 21 [21:30:00]Write i2c OK [21:30:00]MH_I2C_Read... [21:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:00]Read from MH i2c: E2 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 A3 0C 00 90 00 23 [21:30:00]RAPDU: 90 00 [21:30:00]wFMCommunicate OK [21:30:00]SAM_PROTO_ClearQueue done [21:30:00]KKMCreateOFDPacket [21:30:00]OFDProtocolAddRootSTLVToBuf [21:30:00]FM_MakeSignedData [21:30:00]FM_MakeSignedData [21:30:00]SAM_PROTO_SignData [21:30:00]wFMCommunicate request_size=4 [21:30:00]MH_SAM_APDU [21:30:00]CAPDU: 80 0D 01 02 [21:30:00]Write to MH i2c: E2 08 00 A4 0C 80 0D 01 02 00 00 00 00 29 [21:30:00]Write i2c OK [21:30:00]MH_I2C_Read... [21:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:00]Read from MH i2c: E2 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 A4 0C 00 90 00 24 [21:30:00]RAPDU: 90 00 [21:30:00]wFMCommunicate OK [21:30:00]wFMCommunicate request_size=255 [21:30:00]MH_SAM_APDU [21:30: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 55 50 45 52 20 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 6E 01 00 00 F4 03 04 00 58 87 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 23 46 02 00 35 04 06 00 [21:30:00]Write to MH i2c: E2 02 01 A5 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 6E 01 00 00 F4 03 04 00 58 87 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 23 46 02 00 35 04 06 00 00 00 C1 [21:30:00]Write i2c OK [21:30:00]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 A5 0C 00 90 00 25 [21:30:01]RAPDU: 90 00 [21:30:01]wFMCommunicate OK [21:30:01]wFMCommunicate request_size=11 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 0D 02 02 06 AF 46 71 46 49 5D [21:30:01]Write to MH i2c: E2 0E 00 A6 0C 80 0D 02 02 06 00 AF 46 71 46 49 5D 00 00 8A [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [21:30:01]RAPDU: 90 00 [21:30:01]wFMCommunicate OK [21:30:01]wFMCommunicate request_size=4 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 0D 03 02 [21:30:01]Write to MH i2c: E2 08 00 A7 0C 80 0D 03 02 00 00 00 00 2E [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 0B 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 0B 00 A7 0C 00 D6 A3 59 81 E0 E3 64 9E 90 00 47 [21:30:01]RAPDU: D6 A3 59 81 E0 E3 64 9E 90 00 [21:30:01]wFMCommunicate OK [21:30:01]SAM_PROTO_SignData done [21:30:01]FM_MakeSignedData done [21:30:01]CreateOFDProtocolMessage [21:30:01]wFMCommunicate request_size=4 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 11 00 00 [21:30:01]Write to MH i2c: E2 08 00 A8 0C 80 11 00 00 00 00 00 00 2E [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 17 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 17 00 A8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 81 [21:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:30:01]wFMCommunicate OK [21:30:01]CreateOFDProtocolMessage done [21:30:01]OFDSenderStorePacket 149027 [21:30:01]StoreOFDPacket docnum=149027 [21:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 7E 12 08 01 FE 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 55 50 45 52 20 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 6E 01 00 00 F4 03 04 00 58 87 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 23 46 02 00 35 04 06 00 AF 46 71 46 49 5D D6 A3 59 81 E0 E3 64 9E [21:30:01]CheckFolder [21:30:01]dirname=/storage/ofd_packets [21:30:01]CheckFolder done [21:30:01]ProducePacketName [21:30:01]name=ofd_packets/00149027 [21:30:01]NVStorageSaveData ofd_packets/00149027 [21:30:01]File name is /storage/ofd_packets/00149027 [21:30:01]Write 302 bytes [21:30:01]NVStorageSaveData done [21:30:01]OFDSenderStorePacket done [21:30:01]KKMCreateOFDPacket done [21:30:01]NVStorageSaveData kkm_last_timestamp [21:30:01]File name is /storage/kkm_last_timestamp [21:30:01]Write 4 bytes [21:30:01]NVStorageSaveData done [21:30:01]ExternCall_PrintAddStr [21:30:01]wPrintStart [21:30:01]Write to MH i2c: 01 00 00 A9 0C B5 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 07 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 FF 0F CA [21:30:01]RasterBufferAndPrint [21:30:01]line Счет N : (1)979961 [21:30:01]line ИНН: 02508201610067 [21:30:01]line Контрольно-Кассовый Чек [21:30:01]line ПРОДАЖА [21:30:01]line ТРК (МРК, ГНК) : 33 [21:30:01]line Товар: 2710124130 [21:30:01]line SUPER 92-К-5 [21:30:01]line 14.730 * 67.90 [21:30:01]line = 1000.17 [21:30:01]line НДС 12% НСП 1% [21:30:01]line > о реализуемом товаре [21:30:01]line ОКРУГЛЕНИЕ: -0.17 [21:30:01]line ИТОГО: 1000.00 [21:30:01]line Внесено: 1000.00 [21:30:01]line СДАЧА: 0.00 [21:30:01]line НСП 1% : 8.85 [21:30:01]line НДС 12% : 106.21 [21:30:01]line Наличными: 1000.00 [21:30:01]line Безнал.: 0.00 [21:30:01]line Место: АЗС № 68 "Партнер Нефть" [21:30:01]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:30:01]line СНО: Общий режим [21:30:01]line Чек 366 04.06.2024 21:30 [21:30:01]line Смена: 368 ФФД: 1.0 [21:30:01]line ЗНМ: 0300000035 [21:30:01]line РНМ: 0000000000092720 [21:30:01]line Версия ККМ: 001 [21:30:01]line ФМ: 0000000000875057 [21:30:01]line ФД: 149027 [21:30:01]line ФПД: 192717083003229 [21:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T213000&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149027&fm=192717083003229&tin=02508201610067®Number=0000000000092720&sum=100000 [21:30:01]OFD Sender: Processing packet 149027 [packets to send 100, broken 99] [21:30:01]ProducePacketName [21:30:01]name=ofd_packets/00149027 [21:30:01]OFD Sender: To server: pG, [21:30:01]CommunicateWithHost lk.salyk.kg:30040 [21:30:01]ConnectInit lk.salyk.kg [21:30:01]written 0, free lines is 4095 [21:30:01]Connected sock=10 [21:30:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 7E 12 08 01 FE 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 55 50 45 52 20 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 6E 01 00 00 F4 03 04 00 58 87 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 23 46 02 00 35 04 06 00 AF 46 71 46 49 5D D6 A3 59 81 E0 E3 64 9E [21:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 22 8C 47 00 7A 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 23 46 02 00 F4 03 04 00 7A 2E 5F 66 B6 04 01 00 00 2B FC 82 37 73 73 BF 54 [21:30:01]CommunicateWithHost err = 0 [21:30:01]CheckOFDResponse [21:30:01]1017 (14) - 77093643461234 [21:30:01]1041 (16) - 0000000000875057 [21:30:01]1040 (4) - 149027 [21:30:01]1012 (4) - 04.06.2024 15:10 [21:30:01]1206 (1) - 0 [21:30:01]OFD Sender: Remove packet 149027 [21:30:01]ProducePacketName [21:30:01]name=ofd_packets/00149027 [21:30:01]NVStorageDeleteData [21:30:01]Write to MH i2c: 01 00 00 D4 0C E0 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 07 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 07 00 D4 0C 00 00 00 00 00 6A 0C 5D [21:30:01]RasterBufferAndPrint [21:30:01]line [21:30:01]line [21:30:01]line [21:30:01]line [21:30:01]line [21:30:01]written 0, free lines is 3182 [21:30:01]MH_Cut [21:30:01]Write to MH i2c: D1 01 00 DB 0C 01 B9 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: D1 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: D1 01 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: D1 01 00 DB 0C 00 B8 [21:30:01]Write to MH i2c: 01 00 00 DC 0C E8 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:02]OFD Sender: No OFD packet to send [21:30:03]*** Cut start [21:30:03]*** Partial cut [21:30:03]*** CUTSNS_PIN = 1 [21:30:03]*** CUTSNS_PIN = 0 [21:30:03]*** Brake cut motor [21:30:03]Read from MH i2c: 01 [21:30:03]MH_I2C_Read... [21:30:03]*** Stop cut motor [21:30:03]*** Cut end [21:30:03]Read from MH i2c: 01 07 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 07 00 DC 0C 00 00 00 00 00 FF 0F FD [21:30:03]process_action close_receipt done [21:30:03]requested_data is exist [21:30:03]produce_requested_data [21:30:03]requested_item fm.sn is exist - process it [21:30:03]wFMCommunicate request_size=4 [21:30:03]MH_SAM_APDU [21:30:03]CAPDU: 80 11 00 00 [21:30:03]Write to MH i2c: E2 08 00 DD 0C 80 11 00 00 00 00 00 00 63 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:03]Read from MH i2c: E2 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 17 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 17 00 DD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B6 [21:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:30:03]wFMCommunicate OK [21:30:03]requested_item fd.num is exist - process it [21:30:03]SAM_PROTO_GetFieldsCounters [21:30:03]wFMCommunicate request_size=4 [21:30:03]MH_SAM_APDU [21:30:03]CAPDU: 80 13 00 00 [21:30:03]Write to MH i2c: E2 08 00 DE 0C 80 13 00 00 00 00 00 00 66 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:04]Read from MH i2c: E2 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 62 00 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 62 00 DE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 23 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [21:30:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 23 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:04]wFMCommunicate OK [21:30:04]SAM_PROTO_GetFieldsCounters done [21:30:04]requested_item shift.num is exist - process it [21:30:04]requested_item shift.opened is exist - process it [21:30:04]req_shift_opened [21:30:04]FM_GetShiftState [21:30:04]SAM_PROTO_GetShiftState [21:30:04]wFMCommunicate request_size=4 [21:30:04]MH_SAM_APDU [21:30:04]CAPDU: 80 13 01 00 [21:30:04]Write to MH i2c: E2 08 00 DF 0C 80 13 01 00 00 00 00 00 68 [21:30:04]Write i2c OK [21:30:04]MH_I2C_Read... [21:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:04]Read from MH i2c: E2 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 0E 00 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 0E 00 DF 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2B [21:30:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:30:04]wFMCommunicate OK [21:30:04]SAM_PROTO_GetShiftState done [21:30:04]FM_GetShiftState done [21:30:04]req_shift_opened done [21:30:04]requested_item shift.open_date is exist - process it [21:30:04]req_shift_open_date [21:30:04]req_shift_open_date done [21:30:04]produce_requested_data done [21:30:04]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149027,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:30:04]process_action_free close_receipt [21:30:04]json_value_free [21:30:04]json_value_free done [21:30:04]process_json_proto returns [21:30:04]Send response to host [21:30:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149027,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:30:04]free response buf [21:30:04]execute_script done [21:30:04]execute_script returns [21:30:04]free content buf [21:30:04]Sock 9.Close socket [21:30:04]Sock 9.Thread stoped [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:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:34:58]accept exits with 7 [21:34:58]New connection [21:34:58]New thread 3067219300 created [21:34:58]Thread 3067075940 joined [21:34:58]Waiting for new connection... [21:34:58] Sock 7.Parse request [21:34:58]Sock 7.Check first char [21:34:58]Sock 7.First char is OK [21:34:58]request: POST /json_proto HTTP/1.0 [21:34:58]Method: POST [21:34:58]URL: /json_proto [21:34:58]Method is POST - this is cgi request [21:34:58]url: /json_proto [21:34:58]query_string will be loaded in cgi processing [21:34:58]execute_cgi json_proto POST (null) [21:34:58]execute_cgi path=json_proto method=POST [21:34:58]POST find Content-Length [21:34:58]Host: 172.17.38.4:8080 [21:34:58]Content-Length: 677 [21:34:58]Content-Type: application/json [21:34:58] [21:34:58]POST finish read [21:34:58]Found Content-Length = 677 [21:34:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:58]execute_script... [21:34:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:58]POST & json_proto [21:34:58]process_json_proto [21:34:58]json parsed OK: [21:34:58]protocol is kg_v1.0 [21:34:58]action value=close_receipt [21:34:58]process_action close_receipt [21:34:58]cmd_close_receipt [21:34:58]MH_GetDate [21:34:58]Write to MH i2c: F0 00 00 E0 0C DB [21:34:58]Write i2c OK [21:34:58]MH_I2C_Read... [21:34:58]Read from MH i2c: F0 [21:34:58]MH_I2C_Read... [21:34:58]Read from MH i2c: F0 09 00 [21:34:58]MH_I2C_Read... [21:34:58]Read from MH i2c: F0 09 00 E0 0C 00 83 88 5F 66 CC 51 87 64 BC [21:34:58]GetLastDocTimeStamp 1717536600 [21:34:58]current date 1717536899 [21:34:58]FM_GetShiftState [21:34:58]SAM_PROTO_GetShiftState [21:34:58]wFMCommunicate request_size=4 [21:34:58]MH_SAM_APDU [21:34:58]CAPDU: 80 13 01 00 [21:34:58]Write to MH i2c: E2 08 00 E1 0C 80 13 01 00 00 00 00 00 6A [21:34:58]Write i2c OK [21:34:58]MH_I2C_Read... [21:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:58]Read from MH i2c: E2 [21:34:58]MH_I2C_Read... [21:34:58]Read from MH i2c: E2 0E 00 [21:34:58]MH_I2C_Read... [21:34:58]Read from MH i2c: E2 0E 00 E1 0C 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2D [21:34:58]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:34:58]wFMCommunicate OK [21:34:58]SAM_PROTO_GetShiftState done [21:34:58]FM_GetShiftState done [21:34:58]opened in 1717460629 [21:34:58]opened+sec_in_day 1717547029 [21:34:58]quantity*price = 20003 [21:34:58]sum+1 = 20004 [21:34:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 367 04.06.2024 21:34 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149028 ФПД: 41841864450998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T213459&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149028&fm=41841864450998&tin=02508201610067®Number=0000000000092720&sum=20000 [21:35:00]StoreToDocumentArchive [21:35:00]shift 368 fd 149028 [21:35:00]save to /storage/0368/doc_00149028 [21:35:00]save last doc name /storage/0368/doc_00149028 to /storage/kkm_last_doc_name [21:35:00]save OK [21:35:00]Clear old archive folders... [21:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:00]tlvbuf is 00936A60 [21:35:00]SAM_PROTO_ClearQueue [21:35:00]wFMCommunicate request_size=4 [21:35:00]MH_SAM_APDU [21:35:00]CAPDU: 80 09 00 00 [21:35:00]Write to MH i2c: E2 08 00 EE 0C 80 09 00 00 00 00 00 00 6C [21:35:00]Write i2c OK [21:35:00]MH_I2C_Read... [21:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:00]Read from MH i2c: E2 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 03 00 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 03 00 EE 0C 00 90 00 6E [21:35:00]RAPDU: 90 00 [21:35:00]wFMCommunicate OK [21:35:00]SAM_PROTO_ClearQueue done [21:35:00]KKMCreateOFDPacket [21:35:00]OFDProtocolAddRootSTLVToBuf [21:35:00]FM_MakeSignedData [21:35:00]FM_MakeSignedData [21:35:00]SAM_PROTO_SignData [21:35:00]wFMCommunicate request_size=4 [21:35:00]MH_SAM_APDU [21:35:00]CAPDU: 80 0D 01 02 [21:35:00]Write to MH i2c: E2 08 00 EF 0C 80 0D 01 02 00 00 00 00 74 [21:35:00]Write i2c OK [21:35:00]MH_I2C_Read... [21:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:00]Read from MH i2c: E2 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 03 00 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 03 00 EF 0C 00 90 00 6F [21:35:00]RAPDU: 90 00 [21:35:00]wFMCommunicate OK [21:35:00]wFMCommunicate request_size=255 [21:35:00]MH_SAM_APDU [21:35:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 01 00 00 F4 03 04 00 83 88 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 24 46 02 00 35 04 06 00 26 [21:35:00]Write to MH i2c: E2 02 01 F0 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 01 00 00 F4 03 04 00 83 88 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 24 46 02 00 35 04 06 00 26 00 00 03 [21:35:00]Write i2c OK [21:35:00]MH_I2C_Read... [21:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:00]Read from MH i2c: E2 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 03 00 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 03 00 F0 0C 00 90 00 70 [21:35:00]RAPDU: 90 00 [21:35:00]wFMCommunicate OK [21:35:00]wFMCommunicate request_size=10 [21:35:00]MH_SAM_APDU [21:35:00]CAPDU: 80 0D 02 02 05 0E 11 77 A3 B6 [21:35:00]Write to MH i2c: E2 0D 00 F1 0C 80 0D 02 02 05 00 0E 11 77 A3 B6 00 00 70 [21:35:00]Write i2c OK [21:35:00]MH_I2C_Read... [21:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:00]Read from MH i2c: E2 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 03 00 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [21:35:00]RAPDU: 90 00 [21:35:00]wFMCommunicate OK [21:35:00]wFMCommunicate request_size=4 [21:35:00]MH_SAM_APDU [21:35:00]CAPDU: 80 0D 03 02 [21:35:00]Write to MH i2c: E2 08 00 F2 0C 80 0D 03 02 00 00 00 00 79 [21:35:00]Write i2c OK [21:35:00]MH_I2C_Read... [21:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:00]Read from MH i2c: E2 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 0B 00 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 0B 00 F2 0C 00 39 A1 6A AC D6 80 17 BD 90 00 94 [21:35:00]RAPDU: 39 A1 6A AC D6 80 17 BD 90 00 [21:35:00]wFMCommunicate OK [21:35:00]SAM_PROTO_SignData done [21:35:00]FM_MakeSignedData done [21:35:00]CreateOFDProtocolMessage [21:35:00]wFMCommunicate request_size=4 [21:35:00]MH_SAM_APDU [21:35:00]CAPDU: 80 11 00 00 [21:35:00]Write to MH i2c: E2 08 00 F3 0C 80 11 00 00 00 00 00 00 79 [21:35:00]Write i2c OK [21:35:00]MH_I2C_Read... [21:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:00]Read from MH i2c: E2 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 17 00 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: E2 17 00 F3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CC [21:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:35:00]wFMCommunicate OK [21:35:00]CreateOFDProtocolMessage done [21:35:00]OFDSenderStorePacket 149028 [21:35:00]StoreOFDPacket docnum=149028 [21:35:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 33 86 07 01 4F 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 01 00 00 F4 03 04 00 83 88 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 24 46 02 00 35 04 06 00 26 0E 11 77 A3 B6 39 A1 6A AC D6 80 17 BD [21:35:00]CheckFolder [21:35:00]dirname=/storage/ofd_packets [21:35:00]CheckFolder done [21:35:00]ProducePacketName [21:35:00]name=ofd_packets/00149028 [21:35:00]NVStorageSaveData ofd_packets/00149028 [21:35:00]File name is /storage/ofd_packets/00149028 [21:35:00]Write 301 bytes [21:35:00]NVStorageSaveData done [21:35:00]OFDSenderStorePacket done [21:35:00]KKMCreateOFDPacket done [21:35:00]NVStorageSaveData kkm_last_timestamp [21:35:00]File name is /storage/kkm_last_timestamp [21:35:00]Write 4 bytes [21:35:00]NVStorageSaveData done [21:35:00]ExternCall_PrintAddStr [21:35:00]wPrintStart [21:35:00]Write to MH i2c: 01 00 00 F4 0C 00 [21:35:00]Write i2c OK [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: 01 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: 01 07 00 [21:35:00]MH_I2C_Read... [21:35:00]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 FF 0F 15 [21:35:00]RasterBufferAndPrint [21:35:00]line Счет N : (1)979962 [21:35:00]line ИНН: 02508201610067 [21:35:00]line Контрольно-Кассовый Чек [21:35:00]line ПРОДАЖА [21:35:00]line ТРК (МРК, ГНК) : 31 [21:35:00]line Товар: 2710124130 [21:35:00]line Аи-92-К-5 [21:35:00]line 2.990 * 66.90 [21:35:00]line = 200.03 [21:35:00]line НДС 12% НСП 1% [21:35:00]line > о реализуемом товаре [21:35:00]line ОКРУГЛЕНИЕ: -0.03 [21:35:00]line ИТОГО: 200.00 [21:35:00]line Внесено: 200.00 [21:35:00]line СДАЧА: 0.00 [21:35:00]line НСП 1% : 1.77 [21:35:00]line НДС 12% : 21.24 [21:35:00]line Наличными: 200.00 [21:35:00]line Безнал.: 0.00 [21:35:00]line Место: АЗС № 68 "Партнер Нефть" [21:35:00]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:35:00]line СНО: Общий режим [21:35:00]line Чек 367 04.06.2024 21:34 [21:35:00]line Смена: 368 ФФД: 1.0 [21:35:00]line ЗНМ: 0300000035 [21:35:00]line РНМ: 0000000000092720 [21:35:00]line Версия ККМ: 001 [21:35:00]line ФМ: 0000000000875057 [21:35:00]line ФД: 149028 [21:35:00]line ФПД: 41841864450998 [21:35:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T213459&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149028&fm=41841864450998&tin=02508201610067®Number=0000000000092720&sum=20000 [21:35:00]OFD Sender: Processing packet 149028 [packets to send 100, broken 99] [21:35:00]ProducePacketName [21:35:00]name=ofd_packets/00149028 [21:35:00]OFD Sender: To server: pG, [21:35:00]CommunicateWithHost lk.salyk.kg:30040 [21:35:00]ConnectInit lk.salyk.kg [21:35:00]written 0, free lines is 4095 [21:35:01]Connected sock=10 [21:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 33 86 07 01 4F 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 01 00 00 F4 03 04 00 83 88 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 24 46 02 00 35 04 06 00 26 0E 11 77 A3 B6 39 A1 6A AC D6 80 17 BD [21:35:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1D 0D 47 00 62 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 24 46 02 00 F4 03 04 00 A6 2F 5F 66 B6 04 01 00 00 3D 23 D4 7B 55 8F 21 5E [21:35:01]CommunicateWithHost err = 0 [21:35:01]CheckOFDResponse [21:35:01]1017 (14) - 77093643461234 [21:35:01]1041 (16) - 0000000000875057 [21:35:01]1040 (4) - 149028 [21:35:01]1012 (4) - 04.06.2024 15:15 [21:35:01]1206 (1) - 0 [21:35:01]OFD Sender: Remove packet 149028 [21:35:01]ProducePacketName [21:35:01]name=ofd_packets/00149028 [21:35:01]NVStorageDeleteData [21:35:01]Write to MH i2c: 01 00 00 1F 0D 2C [21:35:01]Write i2c OK [21:35:01]MH_I2C_Read... [21:35:01]Read from MH i2c: 01 [21:35:01]MH_I2C_Read... [21:35:01]Read from MH i2c: 01 07 00 [21:35:01]MH_I2C_Read... [21:35:01]Read from MH i2c: 01 07 00 1F 0D 00 00 00 00 00 64 0C A3 [21:35:01]RasterBufferAndPrint [21:35:01]line [21:35:01]line [21:35:01]line [21:35:01]line [21:35:01]line [21:35:01]written 0, free lines is 3176 [21:35:01]MH_Cut [21:35:01]Write to MH i2c: D1 01 00 26 0D 01 05 [21:35:01]Write i2c OK [21:35:01]MH_I2C_Read... [21:35:01]Read from MH i2c: D1 [21:35:01]MH_I2C_Read... [21:35:01]Read from MH i2c: D1 01 00 [21:35:01]MH_I2C_Read... [21:35:01]Read from MH i2c: D1 01 00 26 0D 00 04 [21:35:01]Write to MH i2c: 01 00 00 27 0D 34 [21:35:01]Write i2c OK [21:35:01]MH_I2C_Read... [21:35:01]OFD Sender: No OFD packet to send [21:35:02]*** Cut start [21:35:02]*** Partial cut [21:35:02]*** CUTSNS_PIN = 1 [21:35:02]*** CUTSNS_PIN = 0 [21:35:02]*** Brake cut motor [21:35:03]Read from MH i2c: 01 [21:35:03]MH_I2C_Read... [21:35:03]*** Stop cut motor [21:35:03]*** Cut end [21:35:03]Read from MH i2c: 01 07 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: 01 07 00 27 0D 00 00 00 00 00 FF 0F 49 [21:35:03]process_action close_receipt done [21:35:03]requested_data is exist [21:35:03]produce_requested_data [21:35:03]requested_item fm.sn is exist - process it [21:35:03]wFMCommunicate request_size=4 [21:35:03]MH_SAM_APDU [21:35:03]CAPDU: 80 11 00 00 [21:35:03]Write to MH i2c: E2 08 00 28 0D 80 11 00 00 00 00 00 00 AF [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 17 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 17 00 28 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 02 [21:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:35:03]wFMCommunicate OK [21:35:03]requested_item fd.num is exist - process it [21:35:03]SAM_PROTO_GetFieldsCounters [21:35:03]wFMCommunicate request_size=4 [21:35:03]MH_SAM_APDU [21:35:03]CAPDU: 80 13 00 00 [21:35:03]Write to MH i2c: E2 08 00 29 0D 80 13 00 00 00 00 00 00 B2 [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 62 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 62 00 29 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 24 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [21:35:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 24 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:03]wFMCommunicate OK [21:35:03]SAM_PROTO_GetFieldsCounters done [21:35:03]requested_item shift.num is exist - process it [21:35:03]requested_item shift.opened is exist - process it [21:35:03]req_shift_opened [21:35:03]FM_GetShiftState [21:35:03]SAM_PROTO_GetShiftState [21:35:03]wFMCommunicate request_size=4 [21:35:03]MH_SAM_APDU [21:35:03]CAPDU: 80 13 01 00 [21:35:03]Write to MH i2c: E2 08 00 2A 0D 80 13 01 00 00 00 00 00 B4 [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:03]Read from MH i2c: E2 0E 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 0E 00 2A 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 77 [21:35:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:35:03]wFMCommunicate OK [21:35:03]SAM_PROTO_GetShiftState done [21:35:03]FM_GetShiftState done [21:35:03]req_shift_opened done [21:35:03]requested_item shift.open_date is exist - process it [21:35:03]req_shift_open_date [21:35:03]req_shift_open_date done [21:35:03]produce_requested_data done [21:35:03]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149028,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:35:03]process_action_free close_receipt [21:35:03]json_value_free [21:35:03]json_value_free done [21:35:03]process_json_proto returns [21:35:03]Send response to host [21:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149028,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:35:03]free response buf [21:35:03]execute_script done [21:35:03]execute_script returns [21:35:03]free content buf [21:35:03]Sock 7.Close socket [21:35:03]Sock 7.Thread stoped [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]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:09]accept exits with 9 [21:42:09]New connection [21:42:09]New thread 3067075940 created [21:42:09]Thread 3067219300 joined [21:42:09]Waiting for new connection... [21:42:09] Sock 9.Parse request [21:42:09]Sock 9.Check first char [21:42:09]Sock 9.First char is OK [21:42:09]request: POST /json_proto HTTP/1.0 [21:42:09]Method: POST [21:42:09]URL: /json_proto [21:42:09]Method is POST - this is cgi request [21:42:09]url: /json_proto [21:42:09]query_string will be loaded in cgi processing [21:42:09]execute_cgi json_proto POST (null) [21:42:09]execute_cgi path=json_proto method=POST [21:42:09]POST find Content-Length [21:42:09]Host: 172.17.38.4:8080 [21:42:09]Content-Length: 678 [21:42:09]Content-Type: application/json [21:42:09] [21:42:09]POST finish read [21:42:09]Found Content-Length = 678 [21:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:09]execute_script... [21:42:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:09]POST & json_proto [21:42:09]process_json_proto [21:42:09]json parsed OK: [21:42:09]protocol is kg_v1.0 [21:42:09]action value=close_receipt [21:42:09]process_action close_receipt [21:42:09]cmd_close_receipt [21:42:09]MH_GetDate [21:42:09]Write to MH i2c: F0 00 00 2B 0D 27 [21:42:09]Write i2c OK [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: F0 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: F0 09 00 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: F0 09 00 2B 0D 00 31 8A 5F 66 CC 51 87 64 B8 [21:42:09]GetLastDocTimeStamp 1717536899 [21:42:09]current date 1717537329 [21:42:09]FM_GetShiftState [21:42:09]SAM_PROTO_GetShiftState [21:42:09]wFMCommunicate request_size=4 [21:42:09]MH_SAM_APDU [21:42:09]CAPDU: 80 13 01 00 [21:42:09]Write to MH i2c: E2 08 00 2C 0D 80 13 01 00 00 00 00 00 B6 [21:42:09]Write i2c OK [21:42:09]MH_I2C_Read... [21:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:09]Read from MH i2c: E2 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 0E 00 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 0E 00 2C 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 79 [21:42:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:42:09]wFMCommunicate OK [21:42:09]SAM_PROTO_GetShiftState done [21:42:09]FM_GetShiftState done [21:42:09]opened in 1717460629 [21:42:09]opened+sec_in_day 1717547029 [21:42:09]quantity*price = 70044 [21:42:09]sum+1 = 70045 [21:42:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 368 04.06.2024 21:42 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149029 ФПД: 146570548560248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T214209&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149029&fm=146570548560248&tin=02508201610067®Number=0000000000092720&sum=70000 [21:42:10]StoreToDocumentArchive [21:42:10]shift 368 fd 149029 [21:42:10]save to /storage/0368/doc_00149029 [21:42:10]save last doc name /storage/0368/doc_00149029 to /storage/kkm_last_doc_name [21:42:10]save OK [21:42:10]Clear old archive folders... [21:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:10]tlvbuf is 0093D730 [21:42:10]SAM_PROTO_ClearQueue [21:42:10]wFMCommunicate request_size=4 [21:42:10]MH_SAM_APDU [21:42:10]CAPDU: 80 09 00 00 [21:42:10]Write to MH i2c: E2 08 00 39 0D 80 09 00 00 00 00 00 00 B8 [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:10]Read from MH i2c: E2 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 03 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 03 00 39 0D 00 90 00 BA [21:42:10]RAPDU: 90 00 [21:42:10]wFMCommunicate OK [21:42:10]SAM_PROTO_ClearQueue done [21:42:10]KKMCreateOFDPacket [21:42:10]OFDProtocolAddRootSTLVToBuf [21:42:10]FM_MakeSignedData [21:42:10]FM_MakeSignedData [21:42:10]SAM_PROTO_SignData [21:42:10]wFMCommunicate request_size=4 [21:42:10]MH_SAM_APDU [21:42:10]CAPDU: 80 0D 01 02 [21:42:10]Write to MH i2c: E2 08 00 3A 0D 80 0D 01 02 00 00 00 00 C0 [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:10]Read from MH i2c: E2 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 03 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 03 00 3A 0D 00 90 00 BB [21:42:10]RAPDU: 90 00 [21:42:10]wFMCommunicate OK [21:42:10]wFMCommunicate request_size=255 [21:42:10]MH_SAM_APDU [21:42:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 01 00 00 F4 03 04 00 31 8A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 25 46 02 00 35 04 06 00 85 [21:42:10]Write to MH i2c: E2 02 01 3B 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 01 00 00 F4 03 04 00 31 8A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 25 46 02 00 35 04 06 00 85 00 00 AE [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:10]Read from MH i2c: E2 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 03 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 03 00 3B 0D 00 90 00 BC [21:42:10]RAPDU: 90 00 [21:42:10]wFMCommunicate OK [21:42:10]wFMCommunicate request_size=10 [21:42:10]MH_SAM_APDU [21:42:10]CAPDU: 80 0D 02 02 05 4E 1D 7B 41 78 [21:42:10]Write to MH i2c: E2 0D 00 3C 0D 80 0D 02 02 05 00 4E 1D 7B 41 78 00 00 6C [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:10]Read from MH i2c: E2 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 03 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 03 00 3C 0D 00 90 00 BD [21:42:10]RAPDU: 90 00 [21:42:10]wFMCommunicate OK [21:42:10]wFMCommunicate request_size=4 [21:42:10]MH_SAM_APDU [21:42:10]CAPDU: 80 0D 03 02 [21:42:10]Write to MH i2c: E2 08 00 3D 0D 80 0D 03 02 00 00 00 00 C5 [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:10]Read from MH i2c: E2 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 0B 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 0B 00 3D 0D 00 95 CF FB C4 FB 24 C3 FD 90 00 C8 [21:42:10]RAPDU: 95 CF FB C4 FB 24 C3 FD 90 00 [21:42:10]wFMCommunicate OK [21:42:10]SAM_PROTO_SignData done [21:42:10]FM_MakeSignedData done [21:42:10]CreateOFDProtocolMessage [21:42:10]wFMCommunicate request_size=4 [21:42:10]MH_SAM_APDU [21:42:10]CAPDU: 80 11 00 00 [21:42:10]Write to MH i2c: E2 08 00 3E 0D 80 11 00 00 00 00 00 00 C5 [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:10]Read from MH i2c: E2 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 17 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 17 00 3E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 18 [21:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:42:10]wFMCommunicate OK [21:42:10]CreateOFDProtocolMessage done [21:42:10]OFDSenderStorePacket 149029 [21:42:10]StoreOFDPacket docnum=149029 [21:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 95 0B 07 01 4E 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 31 8A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 25 46 02 00 35 04 06 00 85 4E 1D 7B 41 78 95 CF FB C4 FB 24 C3 FD [21:42:10]CheckFolder [21:42:10]dirname=/storage/ofd_packets [21:42:10]CheckFolder done [21:42:10]ProducePacketName [21:42:10]name=ofd_packets/00149029 [21:42:10]NVStorageSaveData ofd_packets/00149029 [21:42:10]File name is /storage/ofd_packets/00149029 [21:42:10]Write 301 bytes [21:42:10]NVStorageSaveData done [21:42:10]OFDSenderStorePacket done [21:42:10]KKMCreateOFDPacket done [21:42:10]NVStorageSaveData kkm_last_timestamp [21:42:10]File name is /storage/kkm_last_timestamp [21:42:10]Write 4 bytes [21:42:10]NVStorageSaveData done [21:42:10]ExternCall_PrintAddStr [21:42:10]wPrintStart [21:42:10]Write to MH i2c: 01 00 00 3F 0D 4C [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: 01 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: 01 07 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: 01 07 00 3F 0D 00 00 00 00 00 FF 0F 61 [21:42:10]RasterBufferAndPrint [21:42:10]line Счет N : (1)979963 [21:42:10]line ИНН: 02508201610067 [21:42:10]line Контрольно-Кассовый Чек [21:42:10]line ПРОДАЖА [21:42:10]line ТРК (МРК, ГНК) : 12 [21:42:10]line Товар: 2710124130 [21:42:10]line Аи-92-К-5 [21:42:10]line 10.470 * 66.90 [21:42:10]line = 700.44 [21:42:10]line НДС 12% НСП 1% [21:42:10]line > о реализуемом товаре [21:42:10]line ОКРУГЛЕНИЕ: -0.44 [21:42:10]line ИТОГО: 700.00 [21:42:10]line Внесено: 700.00 [21:42:10]line СДАЧА: 0.00 [21:42:10]line НСП 1% : 6.20 [21:42:10]line НДС 12% : 74.38 [21:42:10]line Наличными: 700.00 [21:42:10]line Безнал.: 0.00 [21:42:10]line Место: АЗС № 68 "Партнер Нефть" [21:42:10]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:42:10]line СНО: Общий режим [21:42:10]line Чек 368 04.06.2024 21:42 [21:42:10]line Смена: 368 ФФД: 1.0 [21:42:10]line ЗНМ: 0300000035 [21:42:10]line РНМ: 0000000000092720 [21:42:10]line Версия ККМ: 001 [21:42:10]line ФМ: 0000000000875057 [21:42:10]line ФД: 149029 [21:42:10]line ФПД: 146570548560248 [21:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T214209&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149029&fm=146570548560248&tin=02508201610067®Number=0000000000092720&sum=70000 [21:42:11]OFD Sender: Processing packet 149029 [packets to send 100, broken 99] [21:42:11]ProducePacketName [21:42:11]name=ofd_packets/00149029 [21:42:11]OFD Sender: To server: pG, [21:42:11]CommunicateWithHost lk.salyk.kg:30040 [21:42:11]ConnectInit lk.salyk.kg [21:42:11]written 0, free lines is 4095 [21:42:11]Connected sock=10 [21:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 95 0B 07 01 4E 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 31 8A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 25 46 02 00 35 04 06 00 85 4E 1D 7B 41 78 95 CF FB C4 FB 24 C3 FD [21:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 28 FB 47 00 A2 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 38 37 35 30 35 37 10 04 04 00 25 46 02 00 F4 03 04 00 54 31 5F 66 B6 04 01 00 00 06 E1 2C 17 20 28 89 34 [21:42:11]CommunicateWithHost err = 0 [21:42:11]CheckOFDResponse [21:42:11]1017 (14) - 77093643461234 [21:42:11]1041 (16) - 0000000000875057 [21:42:11]1040 (4) - 149029 [21:42:11]1012 (4) - 04.06.2024 15:23 [21:42:11]1206 (1) - 0 [21:42:11]OFD Sender: Remove packet 149029 [21:42:11]ProducePacketName [21:42:11]name=ofd_packets/00149029 [21:42:11]NVStorageDeleteData [21:42:11]Write to MH i2c: 01 00 00 6A 0D 77 [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: 01 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: 01 07 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: 01 07 00 6A 0D 00 00 00 00 00 64 0C EE [21:42:11]RasterBufferAndPrint [21:42:11]line [21:42:11]line [21:42:11]line [21:42:11]line [21:42:11]line [21:42:11]written 0, free lines is 3176 [21:42:11]MH_Cut [21:42:11]Write to MH i2c: D1 01 00 71 0D 01 50 [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: D1 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: D1 01 00 [21:42:11]MH_I2C_Read... [21:42:11]Read from MH i2c: D1 01 00 71 0D 00 4F [21:42:11]Write to MH i2c: 01 00 00 72 0D 7F [21:42:11]Write i2c OK [21:42:11]MH_I2C_Read... [21:42:11]OFD Sender: No OFD packet to send [21:42:12]*** Cut start [21:42:12]*** Partial cut [21:42:12]*** CUTSNS_PIN = 1 [21:42:12]*** CUTSNS_PIN = 0 [21:42:13]*** Brake cut motor [21:42:13]Read from MH i2c: 01 [21:42:13]MH_I2C_Read... [21:42:13]*** Stop cut motor [21:42:13]*** Cut end [21:42:13]Read from MH i2c: 01 07 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: 01 07 00 72 0D 00 00 00 00 00 FF 0F 94 [21:42:13]process_action close_receipt done [21:42:13]requested_data is exist [21:42:13]produce_requested_data [21:42:13]requested_item fm.sn is exist - process it [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 11 00 00 [21:42:13]Write to MH i2c: E2 08 00 73 0D 80 11 00 00 00 00 00 00 FA [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 17 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 17 00 73 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4D [21:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:42:13]wFMCommunicate OK [21:42:13]requested_item fd.num is exist - process it [21:42:13]SAM_PROTO_GetFieldsCounters [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 13 00 00 [21:42:13]Write to MH i2c: E2 08 00 74 0D 80 13 00 00 00 00 00 00 FD [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 62 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 62 00 74 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 25 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [21:42:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 25 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:13]wFMCommunicate OK [21:42:13]SAM_PROTO_GetFieldsCounters done [21:42:13]requested_item shift.num is exist - process it [21:42:13]requested_item shift.opened is exist - process it [21:42:13]req_shift_opened [21:42:13]FM_GetShiftState [21:42:13]SAM_PROTO_GetShiftState [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 13 01 00 [21:42:13]Write to MH i2c: E2 08 00 75 0D 80 13 01 00 00 00 00 00 FF [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 0E 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 0E 00 75 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C2 [21:42:13]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:42:13]wFMCommunicate OK [21:42:13]SAM_PROTO_GetShiftState done [21:42:13]FM_GetShiftState done [21:42:13]req_shift_opened done [21:42:13]requested_item shift.open_date is exist - process it [21:42:13]req_shift_open_date [21:42:13]req_shift_open_date done [21:42:13]produce_requested_data done [21:42:13]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149029,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:42:13]process_action_free close_receipt [21:42:13]json_value_free [21:42:13]json_value_free done [21:42:13]process_json_proto returns [21:42:13]Send response to host [21:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149029,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:42:13]free response buf [21:42:13]execute_script done [21:42:13]execute_script returns [21:42:13]free content buf [21:42:13]Sock 9.Close socket [21:42:13]Sock 9.Thread stoped [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]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:47]accept exits with 7 [21:43:47]New connection [21:43:47]New thread 3067219300 created [21:43:47]Thread 3067075940 joined [21:43:47]Waiting for new connection... [21:43:47] Sock 7.Parse request [21:43:47]Sock 7.Check first char [21:43:47]Sock 7.First char is OK [21:43:47]request: POST /json_proto HTTP/1.0 [21:43:47]Method: POST [21:43:47]URL: /json_proto [21:43:47]Method is POST - this is cgi request [21:43:47]url: /json_proto [21:43:47]query_string will be loaded in cgi processing [21:43:47]execute_cgi json_proto POST (null) [21:43:47]execute_cgi path=json_proto method=POST [21:43:47]POST find Content-Length [21:43:47]Host: 172.17.38.4:8080 [21:43:47]Content-Length: 682 [21:43:47]Content-Type: application/json [21:43:47] [21:43:47]POST finish read [21:43:47]Found Content-Length = 682 [21:43:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:47]execute_script... [21:43: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)979964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:47]POST & json_proto [21:43:47]process_json_proto [21:43:47]json parsed OK: [21:43:47]protocol is kg_v1.0 [21:43:47]action value=close_receipt [21:43:47]process_action close_receipt [21:43:47]cmd_close_receipt [21:43:47]MH_GetDate [21:43:47]Write to MH i2c: F0 00 00 76 0D 72 [21:43:47]Write i2c OK [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: F0 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: F0 09 00 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: F0 09 00 76 0D 00 93 8A 5F 66 CC 51 87 64 65 [21:43:47]GetLastDocTimeStamp 1717537329 [21:43:47]current date 1717537427 [21:43:47]FM_GetShiftState [21:43:47]SAM_PROTO_GetShiftState [21:43:47]wFMCommunicate request_size=4 [21:43:47]MH_SAM_APDU [21:43:47]CAPDU: 80 13 01 00 [21:43:47]Write to MH i2c: E2 08 00 77 0D 80 13 01 00 00 00 00 00 01 [21:43:47]Write i2c OK [21:43:47]MH_I2C_Read... [21:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:47]Read from MH i2c: E2 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 0E 00 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 0E 00 77 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C4 [21:43:47]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:43:47]wFMCommunicate OK [21:43:47]SAM_PROTO_GetShiftState done [21:43:47]FM_GetShiftState done [21:43:47]opened in 1717460629 [21:43:47]opened+sec_in_day 1717547029 [21:43:47]quantity*price = 100015 [21:43:47]sum+1 = 100017 [21:43:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 369 04.06.2024 21:43 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149030 ФПД: 78759980661487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T214347&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149030&fm=78759980661487&tin=02508201610067®Number=0000000000092720&sum=100000 [21:43:48]StoreToDocumentArchive [21:43:48]shift 368 fd 149030 [21:43:48]save to /storage/0368/doc_00149030 [21:43:48]save last doc name /storage/0368/doc_00149030 to /storage/kkm_last_doc_name [21:43:48]save OK [21:43:48]Clear old archive folders... [21:43:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:48]tlvbuf is 00970EA0 [21:43:48]SAM_PROTO_ClearQueue [21:43:48]wFMCommunicate request_size=4 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 09 00 00 [21:43:48]Write to MH i2c: E2 08 00 84 0D 80 09 00 00 00 00 00 00 03 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:48]Read from MH i2c: E2 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 03 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 03 00 84 0D 00 90 00 05 [21:43:48]RAPDU: 90 00 [21:43:48]wFMCommunicate OK [21:43:48]SAM_PROTO_ClearQueue done [21:43:48]KKMCreateOFDPacket [21:43:48]OFDProtocolAddRootSTLVToBuf [21:43:48]FM_MakeSignedData [21:43:48]FM_MakeSignedData [21:43:48]SAM_PROTO_SignData [21:43:48]wFMCommunicate request_size=4 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 0D 01 02 [21:43:48]Write to MH i2c: E2 08 00 85 0D 80 0D 01 02 00 00 00 00 0B [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:48]Read from MH i2c: E2 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 03 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 03 00 85 0D 00 90 00 06 [21:43:48]RAPDU: 90 00 [21:43:48]wFMCommunicate OK [21:43:48]wFMCommunicate request_size=255 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 71 01 00 00 F4 03 04 00 93 8A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 26 46 02 00 35 04 06 00 47 [21:43:48]Write to MH i2c: E2 02 01 86 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 71 01 00 00 F4 03 04 00 93 8A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 26 46 02 00 35 04 06 00 47 00 00 09 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:48]Read from MH i2c: E2 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 03 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 03 00 86 0D 00 90 00 07 [21:43:48]RAPDU: 90 00 [21:43:48]wFMCommunicate OK [21:43:48]wFMCommunicate request_size=10 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 0D 02 02 05 A1 BC AB 7A EF [21:43:48]Write to MH i2c: E2 0D 00 87 0D 80 0D 02 02 05 00 A1 BC AB 7A EF 00 00 89 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:48]Read from MH i2c: E2 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 03 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 03 00 87 0D 00 90 00 08 [21:43:48]RAPDU: 90 00 [21:43:48]wFMCommunicate OK [21:43:48]wFMCommunicate request_size=4 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 0D 03 02 [21:43:48]Write to MH i2c: E2 08 00 88 0D 80 0D 03 02 00 00 00 00 10 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:48]Read from MH i2c: E2 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 0B 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 0B 00 88 0D 00 AE 42 7B 05 B9 E3 C5 BA 90 00 9C [21:43:48]RAPDU: AE 42 7B 05 B9 E3 C5 BA 90 00 [21:43:48]wFMCommunicate OK [21:43:48]SAM_PROTO_SignData done [21:43:48]FM_MakeSignedData done [21:43:48]CreateOFDProtocolMessage [21:43:48]wFMCommunicate request_size=4 [21:43:48]MH_SAM_APDU [21:43:48]CAPDU: 80 11 00 00 [21:43:48]Write to MH i2c: E2 08 00 89 0D 80 11 00 00 00 00 00 00 10 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:48]Read from MH i2c: E2 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 17 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: E2 17 00 89 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 63 [21:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:43:48]wFMCommunicate OK [21:43:48]CreateOFDProtocolMessage done [21:43:48]OFDSenderStorePacket 149030 [21:43:48]StoreOFDPacket docnum=149030 [21:43:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A1 14 07 01 25 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 93 8A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 26 46 02 00 35 04 06 00 47 A1 BC AB 7A EF AE 42 7B 05 B9 E3 C5 BA [21:43:48]CheckFolder [21:43:48]dirname=/storage/ofd_packets [21:43:48]CheckFolder done [21:43:48]ProducePacketName [21:43:48]name=ofd_packets/00149030 [21:43:48]NVStorageSaveData ofd_packets/00149030 [21:43:48]File name is /storage/ofd_packets/00149030 [21:43:48]Write 301 bytes [21:43:48]NVStorageSaveData done [21:43:48]OFDSenderStorePacket done [21:43:48]KKMCreateOFDPacket done [21:43:48]NVStorageSaveData kkm_last_timestamp [21:43:48]File name is /storage/kkm_last_timestamp [21:43:48]Write 4 bytes [21:43:48]NVStorageSaveData done [21:43:48]ExternCall_PrintAddStr [21:43:48]wPrintStart [21:43:48]Write to MH i2c: 01 00 00 8A 0D 97 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: 01 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: 01 07 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: 01 07 00 8A 0D 00 00 00 00 00 FF 0F AC [21:43:48]RasterBufferAndPrint [21:43:48]line Счет N : (1)979964 [21:43:48]line ИНН: 02508201610067 [21:43:48]line Контрольно-Кассовый Чек [21:43:48]line ПРОДАЖА [21:43:48]line ТРК (МРК, ГНК) : 31 [21:43:48]line Товар: 2710124130 [21:43:48]line Аи-92-К-5 [21:43:48]line 14.950 * 66.90 [21:43:48]line = 1000.16 [21:43:48]line НДС 12% НСП 1% [21:43:48]line > о реализуемом товаре [21:43:48]line ОКРУГЛЕНИЕ: -0.16 [21:43:48]line ИТОГО: 1000.00 [21:43:48]line Внесено: 1000.00 [21:43:48]line СДАЧА: 0.00 [21:43:48]line НСП 1% : 8.85 [21:43:48]line НДС 12% : 106.21 [21:43:48]line Наличными: 1000.00 [21:43:48]line Безнал.: 0.00 [21:43:48]line Место: АЗС № 68 "Партнер Нефть" [21:43:48]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:43:48]line СНО: Общий режим [21:43:48]line Чек 369 04.06.2024 21:43 [21:43:48]line Смена: 368 ФФД: 1.0 [21:43:48]line ЗНМ: 0300000035 [21:43:48]line РНМ: 0000000000092720 [21:43:48]line Версия ККМ: 001 [21:43:48]line ФМ: 0000000000875057 [21:43:48]line ФД: 149030 [21:43:48]line ФПД: 78759980661487 [21:43:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T214347&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149030&fm=78759980661487&tin=02508201610067®Number=0000000000092720&sum=100000 [21:43:49]written 0, free lines is 4095 [21:43:49]OFD Sender: Processing packet 149030 [packets to send 100, broken 99] [21:43:49]ProducePacketName [21:43:49]name=ofd_packets/00149030 [21:43:49]OFD Sender: To server: pG, [21:43:49]CommunicateWithHost lk.salyk.kg:30040 [21:43:49]ConnectInit lk.salyk.kg [21:43:49]Connected sock=10 [21:43:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A1 14 07 01 25 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 93 8A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 26 46 02 00 35 04 06 00 47 A1 BC AB 7A EF AE 42 7B 05 B9 E3 C5 BA [21:43:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3C 1F 47 00 2B 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 38 37 35 30 35 37 10 04 04 00 26 46 02 00 F4 03 04 00 B6 31 5F 66 B6 04 01 00 00 3C 1D CE 3D AB F5 FA BA [21:43:49]CommunicateWithHost err = 0 [21:43:49]CheckOFDResponse [21:43:49]1017 (14) - 77093643461234 [21:43:49]1041 (16) - 0000000000875057 [21:43:49]1040 (4) - 149030 [21:43:49]1012 (4) - 04.06.2024 15:24 [21:43:49]1206 (1) - 0 [21:43:49]OFD Sender: Remove packet 149030 [21:43:49]ProducePacketName [21:43:49]name=ofd_packets/00149030 [21:43:49]NVStorageDeleteData [21:43:49]Write to MH i2c: 01 00 00 B5 0D C2 [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: 01 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: 01 07 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: 01 07 00 B5 0D 00 00 00 00 00 65 0C 3A [21:43:49]RasterBufferAndPrint [21:43:49]line [21:43:49]line [21:43:49]line [21:43:49]line [21:43:49]line [21:43:49]written 0, free lines is 3177 [21:43:49]MH_Cut [21:43:49]Write to MH i2c: D1 01 00 BC 0D 01 9B [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: D1 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: D1 01 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: D1 01 00 BC 0D 00 9A [21:43:49]Write to MH i2c: 01 00 00 BD 0D CA [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]OFD Sender: No OFD packet to send [21:43:50]*** Cut start [21:43:50]*** Partial cut [21:43:50]*** CUTSNS_PIN = 1 [21:43:50]*** CUTSNS_PIN = 0 [21:43:51]*** Brake cut motor [21:43:51]Read from MH i2c: 01 [21:43:51]MH_I2C_Read... [21:43:51]*** Stop cut motor [21:43:51]*** Cut end [21:43:51]Read from MH i2c: 01 07 00 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: 01 07 00 BD 0D 00 00 00 00 00 FF 0F DF [21:43:51]process_action close_receipt done [21:43:51]requested_data is exist [21:43:51]produce_requested_data [21:43:51]requested_item fm.sn is exist - process it [21:43:51]wFMCommunicate request_size=4 [21:43:51]MH_SAM_APDU [21:43:51]CAPDU: 80 11 00 00 [21:43:51]Write to MH i2c: E2 08 00 BE 0D 80 11 00 00 00 00 00 00 45 [21:43:51]Write i2c OK [21:43:51]MH_I2C_Read... [21:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:51]Read from MH i2c: E2 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 17 00 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 17 00 BE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 98 [21:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:43:51]wFMCommunicate OK [21:43:51]requested_item fd.num is exist - process it [21:43:51]SAM_PROTO_GetFieldsCounters [21:43:51]wFMCommunicate request_size=4 [21:43:51]MH_SAM_APDU [21:43:51]CAPDU: 80 13 00 00 [21:43:51]Write to MH i2c: E2 08 00 BF 0D 80 13 00 00 00 00 00 00 48 [21:43:51]Write i2c OK [21:43:51]MH_I2C_Read... [21:43:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:51]Read from MH i2c: E2 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 62 00 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 62 00 BF 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 26 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [21:43:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 26 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:51]wFMCommunicate OK [21:43:51]SAM_PROTO_GetFieldsCounters done [21:43:51]requested_item shift.num is exist - process it [21:43:51]requested_item shift.opened is exist - process it [21:43:51]req_shift_opened [21:43:51]FM_GetShiftState [21:43:51]SAM_PROTO_GetShiftState [21:43:51]wFMCommunicate request_size=4 [21:43:51]MH_SAM_APDU [21:43:51]CAPDU: 80 13 01 00 [21:43:51]Write to MH i2c: E2 08 00 C0 0D 80 13 01 00 00 00 00 00 4A [21:43:51]Write i2c OK [21:43:51]MH_I2C_Read... [21:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:51]Read from MH i2c: E2 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 0E 00 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 0E 00 C0 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0D [21:43:51]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:43:51]wFMCommunicate OK [21:43:51]SAM_PROTO_GetShiftState done [21:43:51]FM_GetShiftState done [21:43:51]req_shift_opened done [21:43:51]requested_item shift.open_date is exist - process it [21:43:51]req_shift_open_date [21:43:51]req_shift_open_date done [21:43:51]produce_requested_data done [21:43:51]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149030,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:43:51]process_action_free close_receipt [21:43:51]json_value_free [21:43:51]json_value_free done [21:43:51]process_json_proto returns [21:43:51]Send response to host [21:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149030,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:43:51]free response buf [21:43:51]execute_script done [21:43:51]execute_script returns [21:43:51]free content buf [21:43:51]Sock 7.Close socket [21:43:51]Sock 7.Thread stoped [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:54]accept exits with 9 [21:50:54]New connection [21:50:54]New thread 3067075940 created [21:50:54]Thread 3067219300 joined [21:50:54]Waiting for new connection... [21:50:54] Sock 9.Parse request [21:50:54]Sock 9.Check first char [21:50:54]Sock 9.First char is OK [21:50:54]request: POST /json_proto HTTP/1.0 [21:50:54]Method: POST [21:50:54]URL: /json_proto [21:50:54]Method is POST - this is cgi request [21:50:54]url: /json_proto [21:50:54]query_string will be loaded in cgi processing [21:50:54]execute_cgi json_proto POST (null) [21:50:54]execute_cgi path=json_proto method=POST [21:50:54]POST find Content-Length [21:50:54]Host: 172.17.38.4:8080 [21:50:54]Content-Length: 677 [21:50:54]Content-Type: application/json [21:50:54] [21:50:54]POST finish read [21:50:54]Found Content-Length = 677 [21:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:54]execute_script... [21:50: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)979966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:54]POST & json_proto [21:50:54]process_json_proto [21:50:54]json parsed OK: [21:50:54]protocol is kg_v1.0 [21:50:54]action value=close_receipt [21:50:54]process_action close_receipt [21:50:54]cmd_close_receipt [21:50:54]MH_GetDate [21:50:54]Write to MH i2c: F0 00 00 C1 0D BD [21:50:54]Write i2c OK [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: F0 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: F0 09 00 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: F0 09 00 C1 0D 00 3F 8C 5F 66 CC 51 87 64 5E [21:50:54]GetLastDocTimeStamp 1717537427 [21:50:54]current date 1717537855 [21:50:54]FM_GetShiftState [21:50:54]SAM_PROTO_GetShiftState [21:50:54]wFMCommunicate request_size=4 [21:50:54]MH_SAM_APDU [21:50:54]CAPDU: 80 13 01 00 [21:50:54]Write to MH i2c: E2 08 00 C2 0D 80 13 01 00 00 00 00 00 4C [21:50:54]Write i2c OK [21:50:54]MH_I2C_Read... [21:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:54]Read from MH i2c: E2 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 0E 00 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 0E 00 C2 0D 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 0F [21:50:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:50:54]wFMCommunicate OK [21:50:54]SAM_PROTO_GetShiftState done [21:50:54]FM_GetShiftState done [21:50:54]opened in 1717460629 [21:50:54]opened+sec_in_day 1717547029 [21:50:54]quantity*price = 50041 [21:50:54]sum+1 = 50042 [21:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 370 04.06.2024 21:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149031 ФПД: 250952566228678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215055&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149031&fm=250952566228678&tin=02508201610067®Number=0000000000092720&sum=50000 [21:50:55]StoreToDocumentArchive [21:50:55]shift 368 fd 149031 [21:50:55]save to /storage/0368/doc_00149031 [21:50:55]save last doc name /storage/0368/doc_00149031 to /storage/kkm_last_doc_name [21:50:55]save OK [21:50:55]Clear old archive folders... [21:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:50:55]tlvbuf is 0091E840 [21:50:55]SAM_PROTO_ClearQueue [21:50:55]wFMCommunicate request_size=4 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 09 00 00 [21:50:55]Write to MH i2c: E2 08 00 CF 0D 80 09 00 00 00 00 00 00 4E [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 CF 0D 00 90 00 50 [21:50:55]RAPDU: 90 00 [21:50:55]wFMCommunicate OK [21:50:55]SAM_PROTO_ClearQueue done [21:50:55]KKMCreateOFDPacket [21:50:55]OFDProtocolAddRootSTLVToBuf [21:50:55]FM_MakeSignedData [21:50:55]FM_MakeSignedData [21:50:55]SAM_PROTO_SignData [21:50:55]wFMCommunicate request_size=4 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 0D 01 02 [21:50:55]Write to MH i2c: E2 08 00 D0 0D 80 0D 01 02 00 00 00 00 56 [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 D0 0D 00 90 00 51 [21:50:55]RAPDU: 90 00 [21:50:55]wFMCommunicate OK [21:50:55]wFMCommunicate request_size=255 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 3F 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 27 46 02 00 35 04 06 00 E4 [21:50:55]Write to MH i2c: E2 02 01 D1 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 3F 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 27 46 02 00 35 04 06 00 E4 00 00 A7 [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 D1 0D 00 90 00 52 [21:50:56]RAPDU: 90 00 [21:50:56]wFMCommunicate OK [21:50:56]wFMCommunicate request_size=10 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 0D 02 02 05 3D 72 90 C6 C6 [21:50:56]Write to MH i2c: E2 0D 00 D2 0D 80 0D 02 02 05 00 3D 72 90 C6 C6 00 00 2E [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [21:50:56]RAPDU: 90 00 [21:50:56]wFMCommunicate OK [21:50:56]wFMCommunicate request_size=4 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 0D 03 02 [21:50:56]Write to MH i2c: E2 08 00 D3 0D 80 0D 03 02 00 00 00 00 5B [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 0B 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 0B 00 D3 0D 00 07 50 68 E0 7D 61 C8 6C 90 00 0D [21:50:56]RAPDU: 07 50 68 E0 7D 61 C8 6C 90 00 [21:50:56]wFMCommunicate OK [21:50:56]SAM_PROTO_SignData done [21:50:56]FM_MakeSignedData done [21:50:56]CreateOFDProtocolMessage [21:50:56]wFMCommunicate request_size=4 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 11 00 00 [21:50:56]Write to MH i2c: E2 08 00 D4 0D 80 11 00 00 00 00 00 00 5B [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 17 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 17 00 D4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AE [21:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:50:56]wFMCommunicate OK [21:50:56]CreateOFDProtocolMessage done [21:50:56]OFDSenderStorePacket 149031 [21:50:56]StoreOFDPacket docnum=149031 [21:50:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 27 16 07 01 CC 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 3F 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 27 46 02 00 35 04 06 00 E4 3D 72 90 C6 C6 07 50 68 E0 7D 61 C8 6C [21:50:56]CheckFolder [21:50:56]dirname=/storage/ofd_packets [21:50:56]CheckFolder done [21:50:56]ProducePacketName [21:50:56]name=ofd_packets/00149031 [21:50:56]NVStorageSaveData ofd_packets/00149031 [21:50:56]File name is /storage/ofd_packets/00149031 [21:50:56]Write 301 bytes [21:50:56]NVStorageSaveData done [21:50:56]OFDSenderStorePacket done [21:50:56]KKMCreateOFDPacket done [21:50:56]NVStorageSaveData kkm_last_timestamp [21:50:56]File name is /storage/kkm_last_timestamp [21:50:56]Write 4 bytes [21:50:56]NVStorageSaveData done [21:50:56]ExternCall_PrintAddStr [21:50:56]wPrintStart [21:50:56]Write to MH i2c: 01 00 00 D5 0D E2 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: 01 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: 01 07 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: 01 07 00 D5 0D 00 00 00 00 00 FF 0F F7 [21:50:56]RasterBufferAndPrint [21:50:56]line Счет N : (1)979966 [21:50:56]line ИНН: 02508201610067 [21:50:56]line Контрольно-Кассовый Чек [21:50:56]line ПРОДАЖА [21:50:56]line ТРК (МРК, ГНК) : 41 [21:50:56]line Товар: 2710124130 [21:50:56]line Аи-92-К-5 [21:50:56]line 7.480 * 66.90 [21:50:56]line = 500.41 [21:50:56]line НДС 12% НСП 1% [21:50:56]line > о реализуемом товаре [21:50:56]line ОКРУГЛЕНИЕ: -0.41 [21:50:56]line ИТОГО: 500.00 [21:50:56]line Внесено: 500.00 [21:50:56]line СДАЧА: 0.00 [21:50:56]line НСП 1% : 4.43 [21:50:56]line НДС 12% : 53.14 [21:50:56]line Наличными: 500.00 [21:50:56]line Безнал.: 0.00 [21:50:56]line Место: АЗС № 68 "Партнер Нефть" [21:50:56]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:50:56]line СНО: Общий режим [21:50:56]line Чек 370 04.06.2024 21:50 [21:50:56]line Смена: 368 ФФД: 1.0 [21:50:56]line ЗНМ: 0300000035 [21:50:56]line РНМ: 0000000000092720 [21:50:56]line Версия ККМ: 001 [21:50:56]line ФМ: 0000000000875057 [21:50:56]line ФД: 149031 [21:50:56]line ФПД: 250952566228678 [21:50:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215055&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149031&fm=250952566228678&tin=02508201610067®Number=0000000000092720&sum=50000 [21:50:56]OFD Sender: Processing packet 149031 [packets to send 100, broken 99] [21:50:56]ProducePacketName [21:50:56]name=ofd_packets/00149031 [21:50:56]OFD Sender: To server: pG, [21:50:56]CommunicateWithHost lk.salyk.kg:30040 [21:50:56]ConnectInit lk.salyk.kg [21:50:56]written 0, free lines is 4095 [21:50:56]Connected sock=10 [21:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 27 16 07 01 CC 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 3F 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 27 46 02 00 35 04 06 00 E4 3D 72 90 C6 C6 07 50 68 E0 7D 61 C8 6C [21:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 33 B0 47 00 DF 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 38 37 35 30 35 37 10 04 04 00 27 46 02 00 F4 03 04 00 62 33 5F 66 B6 04 01 00 00 F2 BB B7 AA 7A F0 C2 84 [21:50:56]CommunicateWithHost err = 0 [21:50:56]CheckOFDResponse [21:50:56]1017 (14) - 77093643461234 [21:50:56]1041 (16) - 0000000000875057 [21:50:56]1040 (4) - 149031 [21:50:56]1012 (4) - 04.06.2024 15:31 [21:50:56]1206 (1) - 0 [21:50:56]OFD Sender: Remove packet 149031 [21:50:56]ProducePacketName [21:50:56]name=ofd_packets/00149031 [21:50:56]NVStorageDeleteData [21:50:57]Write to MH i2c: 01 00 00 00 0E 0E [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 00 0E 00 00 00 00 00 66 0C 87 [21:50:57]RasterBufferAndPrint [21:50:57]line [21:50:57]line [21:50:57]line [21:50:57]line [21:50:57]line [21:50:57]written 0, free lines is 3177 [21:50:57]MH_Cut [21:50:57]Write to MH i2c: D1 01 00 07 0E 01 E7 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: D1 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: D1 01 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: D1 01 00 07 0E 00 E6 [21:50:57]Write to MH i2c: 01 00 00 08 0E 16 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]OFD Sender: No OFD packet to send [21:50:58]*** Cut start [21:50:58]*** Partial cut [21:50:58]*** CUTSNS_PIN = 1 [21:50:58]*** CUTSNS_PIN = 0 [21:50:58]*** Brake cut motor [21:50:59]Read from MH i2c: 01 [21:50:59]MH_I2C_Read... [21:50:59]*** Stop cut motor [21:50:59]*** Cut end [21:50:59]Read from MH i2c: 01 07 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: 01 07 00 08 0E 00 00 00 00 00 FF 0F 2B [21:50:59]process_action close_receipt done [21:50:59]requested_data is exist [21:50:59]produce_requested_data [21:50:59]requested_item fm.sn is exist - process it [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 11 00 00 [21:50:59]Write to MH i2c: E2 08 00 09 0E 80 11 00 00 00 00 00 00 91 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 17 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 17 00 09 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E4 [21:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:50:59]wFMCommunicate OK [21:50:59]requested_item fd.num is exist - process it [21:50:59]SAM_PROTO_GetFieldsCounters [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 13 00 00 [21:50:59]Write to MH i2c: E2 08 00 0A 0E 80 13 00 00 00 00 00 00 94 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 62 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 62 00 0A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 27 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [21:50:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 27 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:59]wFMCommunicate OK [21:50:59]SAM_PROTO_GetFieldsCounters done [21:50:59]requested_item shift.num is exist - process it [21:50:59]requested_item shift.opened is exist - process it [21:50:59]req_shift_opened [21:50:59]FM_GetShiftState [21:50:59]SAM_PROTO_GetShiftState [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 13 01 00 [21:50:59]Write to MH i2c: E2 08 00 0B 0E 80 13 01 00 00 00 00 00 96 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 0E 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 0E 00 0B 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 59 [21:50:59]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:50:59]wFMCommunicate OK [21:50:59]SAM_PROTO_GetShiftState done [21:50:59]FM_GetShiftState done [21:50:59]req_shift_opened done [21:50:59]requested_item shift.open_date is exist - process it [21:50:59]req_shift_open_date [21:50:59]req_shift_open_date done [21:50:59]produce_requested_data done [21:50:59]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149031,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:50:59]process_action_free close_receipt [21:50:59]json_value_free [21:50:59]json_value_free done [21:50:59]process_json_proto returns [21:50:59]Send response to host [21:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149031,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:50:59]free response buf [21:50:59]execute_script done [21:50:59]execute_script returns [21:50:59]free content buf [21:50:59]Sock 9.Close socket [21:50:59]Sock 9.Thread stoped [21:51:02]OFD Sender: No OFD packet to send [21:51:06]accept exits with 7 [21:51:06]New connection [21:51:06]New thread 3067219300 created [21:51:06]Thread 3067075940 joined [21:51:06]Waiting for new connection... [21:51:06] Sock 7.Parse request [21:51:06]Sock 7.Check first char [21:51:06]Sock 7.First char is OK [21:51:06]request: POST /json_proto HTTP/1.0 [21:51:06]Method: POST [21:51:06]URL: /json_proto [21:51:06]Method is POST - this is cgi request [21:51:06]url: /json_proto [21:51:06]query_string will be loaded in cgi processing [21:51:06]execute_cgi json_proto POST (null) [21:51:06]execute_cgi path=json_proto method=POST [21:51:06]POST find Content-Length [21:51:06]Host: 172.17.38.4:8080 [21:51:06]Content-Length: 794 [21:51:06]Content-Type: application/json [21:51:06] [21:51:06]POST finish read [21:51:06]Found Content-Length = 794 [21:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 10.310, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:06]execute_script... [21: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)979965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 10.310, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:06]POST & json_proto [21:51:06]process_json_proto [21:51:06]json parsed OK: [21:51:06]protocol is kg_v1.0 [21:51:06]action value=close_receipt [21:51:06]process_action close_receipt [21:51:06]cmd_close_receipt [21:51:06]MH_GetDate [21:51:06]Write to MH i2c: F0 00 00 0C 0E 09 [21:51:06]Write i2c OK [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: F0 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: F0 09 00 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: F0 09 00 0C 0E 00 4B 8C 5F 66 CC 51 87 64 B6 [21:51:06]GetLastDocTimeStamp 1717537855 [21:51:06]current date 1717537867 [21:51:06]FM_GetShiftState [21:51:06]SAM_PROTO_GetShiftState [21:51:06]wFMCommunicate request_size=4 [21:51:06]MH_SAM_APDU [21:51:06]CAPDU: 80 13 01 00 [21:51:06]Write to MH i2c: E2 08 00 0D 0E 80 13 01 00 00 00 00 00 98 [21:51:06]Write i2c OK [21:51:06]MH_I2C_Read... [21:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:06]Read from MH i2c: E2 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: E2 0E 00 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: E2 0E 00 0D 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5B [21:51:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:51:06]wFMCommunicate OK [21:51:06]SAM_PROTO_GetShiftState done [21:51:06]FM_GetShiftState done [21:51:06]opened in 1717460629 [21:51:06]opened+sec_in_day 1717547029 [21:51:06]quantity*price = 70004 [21:51:06]sum+1 = 70006 [21:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.05 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.05 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 371 04.06.2024 21:51 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 149032 ФПД: 215659085623484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215107&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149032&fm=215659085623484&tin=02508201610067®Number=0000000000092720&sum=70005 [21:51:07]StoreToDocumentArchive [21:51:07]shift 368 fd 149032 [21:51:07]save to /storage/0368/doc_00149032 [21:51:07]save last doc name /storage/0368/doc_00149032 to /storage/kkm_last_doc_name [21:51:07]save OK [21:51:07]Clear old archive folders... [21:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:51:07]tlvbuf is 0094EF00 [21:51:07]SAM_PROTO_ClearQueue [21:51:07]wFMCommunicate request_size=4 [21:51:07]MH_SAM_APDU [21:51:07]CAPDU: 80 09 00 00 [21:51:07]Write to MH i2c: E2 08 00 1A 0E 80 09 00 00 00 00 00 00 9A [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 1A 0E 00 90 00 9C [21:51:07]RAPDU: 90 00 [21:51:07]wFMCommunicate OK [21:51:07]SAM_PROTO_ClearQueue done [21:51:07]KKMCreateOFDPacket [21:51:07]OFDProtocolAddRootSTLVToBuf [21:51:07]FM_MakeSignedData [21:51:07]FM_MakeSignedData [21:51:07]SAM_PROTO_SignData [21:51:07]wFMCommunicate request_size=4 [21:51:07]MH_SAM_APDU [21:51:07]CAPDU: 80 0D 01 02 [21:51:07]Write to MH i2c: E2 08 00 1B 0E 80 0D 01 02 00 00 00 00 A2 [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 1B 0E 00 90 00 9D [21:51:07]RAPDU: 90 00 [21:51:07]wFMCommunicate OK [21:51:07]wFMCommunicate request_size=255 [21:51:07]MH_SAM_APDU [21:51: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 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 4B 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 28 46 02 00 35 04 06 00 [21:51:07]Write to MH i2c: E2 02 01 1C 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 4B 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 28 46 02 00 35 04 06 00 00 00 6C [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:08]Read from MH i2c: E2 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 03 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [21:51:08]RAPDU: 90 00 [21:51:08]wFMCommunicate OK [21:51:08]wFMCommunicate request_size=11 [21:51:08]MH_SAM_APDU [21:51:08]CAPDU: 80 0D 02 02 06 C4 24 0B 30 F0 BC [21:51:08]Write to MH i2c: E2 0E 00 1D 0E 80 0D 02 02 06 00 C4 24 0B 30 F0 BC 00 00 80 [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:08]Read from MH i2c: E2 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 03 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 03 00 1D 0E 00 90 00 9F [21:51:08]RAPDU: 90 00 [21:51:08]wFMCommunicate OK [21:51:08]wFMCommunicate request_size=4 [21:51:08]MH_SAM_APDU [21:51:08]CAPDU: 80 0D 03 02 [21:51:08]Write to MH i2c: E2 08 00 1E 0E 80 0D 03 02 00 00 00 00 A7 [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:08]Read from MH i2c: E2 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 0B 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 0B 00 1E 0E 00 AC 05 D2 20 48 9F BF 4E 90 00 3F [21:51:08]RAPDU: AC 05 D2 20 48 9F BF 4E 90 00 [21:51:08]wFMCommunicate OK [21:51:08]SAM_PROTO_SignData done [21:51:08]FM_MakeSignedData done [21:51:08]CreateOFDProtocolMessage [21:51:08]wFMCommunicate request_size=4 [21:51:08]MH_SAM_APDU [21:51:08]CAPDU: 80 11 00 00 [21:51:08]Write to MH i2c: E2 08 00 1F 0E 80 11 00 00 00 00 00 00 A7 [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:08]Read from MH i2c: E2 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 17 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 17 00 1F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FA [21:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:51:08]wFMCommunicate OK [21:51:08]CreateOFDProtocolMessage done [21:51:08]OFDSenderStorePacket 149032 [21:51:08]StoreOFDPacket docnum=149032 [21:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 F6 DB 08 01 37 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 4B 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 28 46 02 00 35 04 06 00 C4 24 0B 30 F0 BC AC 05 D2 20 48 9F BF 4E [21:51:08]CheckFolder [21:51:08]dirname=/storage/ofd_packets [21:51:08]CheckFolder done [21:51:08]ProducePacketName [21:51:08]name=ofd_packets/00149032 [21:51:08]NVStorageSaveData ofd_packets/00149032 [21:51:08]File name is /storage/ofd_packets/00149032 [21:51:08]Write 302 bytes [21:51:08]NVStorageSaveData done [21:51:08]OFDSenderStorePacket done [21:51:08]KKMCreateOFDPacket done [21:51:08]NVStorageSaveData kkm_last_timestamp [21:51:08]File name is /storage/kkm_last_timestamp [21:51:08]Write 4 bytes [21:51:08]NVStorageSaveData done [21:51:08]ExternCall_PrintAddStr [21:51:08]wPrintStart [21:51:08]Write to MH i2c: 01 00 00 20 0E 2E [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 07 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 07 00 20 0E 00 00 00 00 00 FF 0F 43 [21:51:08]RasterBufferAndPrint [21:51:08]line Счет N : (1)979965 [21:51:08]line ИНН: 02508201610067 [21:51:08]line Контрольно-Кассовый Чек [21:51:08]line ПРОДАЖА [21:51:08]line ТРК (МРК, ГНК) : 33 [21:51:08]line Товар: 2710124130 [21:51:08]line SUPER 92-К-5 [21:51:08]line 10.310 * 67.90 [21:51:08]line = 700.05 [21:51:08]line НДС 12% НСП 1% [21:51:08]line > о реализуемом товаре [21:51:08]line ИТОГО: 700.05 [21:51:08]line НСП 1% : 6.19 [21:51:08]line НДС 12% : 74.34 [21:51:08]line Наличными: 0.00 [21:51:08]line Безнал.: 700.05 [21:51:08]line Место: АЗС № 68 "Партнер Нефть" [21:51:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:51:08]line СНО: Общий режим [21:51:08]line Чек 371 04.06.2024 21:51 [21:51:08]line Смена: 368 ФФД: 1.0 [21:51:08]line ЗНМ: 0300000035 [21:51:08]line РНМ: 0000000000092720 [21:51:08]line Версия ККМ: 001 [21:51:08]line Платежная система: O! деньги [21:51:08]line ФМ: 0000000000875057 [21:51:08]line ФД: 149032 [21:51:08]line ФПД: 215659085623484 [21:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215107&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149032&fm=215659085623484&tin=02508201610067®Number=0000000000092720&sum=70005 [21:51:08]OFD Sender: Processing packet 149032 [packets to send 100, broken 99] [21:51:08]ProducePacketName [21:51:08]name=ofd_packets/00149032 [21:51:08]OFD Sender: To server: pG, [21:51:08]CommunicateWithHost lk.salyk.kg:30040 [21:51:08]ConnectInit lk.salyk.kg [21:51:08]written 0, free lines is 4095 [21:51:08]Connected sock=10 [21:51:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 F6 DB 08 01 37 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 4B 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 28 46 02 00 35 04 06 00 C4 24 0B 30 F0 BC AC 05 D2 20 48 9F BF 4E [21:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8C 3C 47 00 C3 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 38 37 35 30 35 37 10 04 04 00 28 46 02 00 F4 03 04 00 6E 33 5F 66 B6 04 01 00 00 CE 54 07 85 FA D9 8D 1B [21:51:08]CommunicateWithHost err = 0 [21:51:08]CheckOFDResponse [21:51:08]1017 (14) - 77093643461234 [21:51:08]1041 (16) - 0000000000875057 [21:51:08]1040 (4) - 149032 [21:51:08]1012 (4) - 04.06.2024 15:31 [21:51:08]1206 (1) - 0 [21:51:08]OFD Sender: Remove packet 149032 [21:51:08]ProducePacketName [21:51:08]name=ofd_packets/00149032 [21:51:08]NVStorageDeleteData [21:51:09]Write to MH i2c: 01 00 00 4A 0E 58 [21:51:09]Write i2c OK [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: 01 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: 01 07 00 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: 01 07 00 4A 0E 00 00 00 00 00 87 0C F2 [21:51:09]RasterBufferAndPrint [21:51:09]line [21:51:09]line [21:51:09]line [21:51:09]line [21:51:09]line [21:51:09]written 0, free lines is 3210 [21:51:09]MH_Cut [21:51:09]Write to MH i2c: D1 01 00 51 0E 01 31 [21:51:09]Write i2c OK [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: D1 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: D1 01 00 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: D1 01 00 51 0E 00 30 [21:51:09]Write to MH i2c: 01 00 00 52 0E 60 [21:51:09]Write i2c OK [21:51:09]MH_I2C_Read... [21:51:09]OFD Sender: No OFD packet to send [21:51:10]*** Cut start [21:51:10]*** Partial cut [21:51:10]*** CUTSNS_PIN = 1 [21:51:10]*** CUTSNS_PIN = 0 [21:51:10]*** Brake cut motor [21:51:10]Read from MH i2c: 01 [21:51:10]MH_I2C_Read... [21:51:10]*** Stop cut motor [21:51:10]*** Cut end [21:51:10]Read from MH i2c: 01 07 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: 01 07 00 52 0E 00 00 00 00 00 FF 0F 75 [21:51:10]process_action close_receipt done [21:51:10]requested_data is exist [21:51:10]produce_requested_data [21:51:10]requested_item fm.sn is exist - process it [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 11 00 00 [21:51:10]Write to MH i2c: E2 08 00 53 0E 80 11 00 00 00 00 00 00 DB [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 17 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 17 00 53 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2E [21:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:51:11]wFMCommunicate OK [21:51:11]requested_item fd.num is exist - process it [21:51:11]SAM_PROTO_GetFieldsCounters [21:51:11]wFMCommunicate request_size=4 [21:51:11]MH_SAM_APDU [21:51:11]CAPDU: 80 13 00 00 [21:51:11]Write to MH i2c: E2 08 00 54 0E 80 13 00 00 00 00 00 00 DE [21:51:11]Write i2c OK [21:51:11]MH_I2C_Read... [21:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 62 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 62 00 54 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 28 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [21:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 28 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:11]wFMCommunicate OK [21:51:11]SAM_PROTO_GetFieldsCounters done [21:51:11]requested_item shift.num is exist - process it [21:51:11]requested_item shift.opened is exist - process it [21:51:11]req_shift_opened [21:51:11]FM_GetShiftState [21:51:11]SAM_PROTO_GetShiftState [21:51:11]wFMCommunicate request_size=4 [21:51:11]MH_SAM_APDU [21:51:11]CAPDU: 80 13 01 00 [21:51:11]Write to MH i2c: E2 08 00 55 0E 80 13 01 00 00 00 00 00 E0 [21:51:11]Write i2c OK [21:51:11]MH_I2C_Read... [21:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 0E 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 0E 00 55 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A3 [21:51:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:51:11]wFMCommunicate OK [21:51:11]SAM_PROTO_GetShiftState done [21:51:11]FM_GetShiftState done [21:51:11]req_shift_opened done [21:51:11]requested_item shift.open_date is exist - process it [21:51:11]req_shift_open_date [21:51:11]req_shift_open_date done [21:51:11]produce_requested_data done [21:51:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149032,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:51:11]process_action_free close_receipt [21:51:11]json_value_free [21:51:11]json_value_free done [21:51:11]process_json_proto returns [21:51:11]Send response to host [21:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149032,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:51:11]free response buf [21:51:11]execute_script done [21:51:11]execute_script returns [21:51:11]free content buf [21:51:11]Sock 7.Close socket [21:51:11]Sock 7.Thread stoped [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:12]accept exits with 9 [21:53:12]New connection [21:53:12]New thread 3067075940 created [21:53:12]Thread 3067219300 joined [21:53:12]Waiting for new connection... [21:53:12] Sock 9.Parse request [21:53:12]Sock 9.Check first char [21:53:12]Sock 9.First char is OK [21:53:12]request: POST /json_proto HTTP/1.0 [21:53:12]Method: POST [21:53:12]URL: /json_proto [21:53:12]Method is POST - this is cgi request [21:53:12]url: /json_proto [21:53:12]query_string will be loaded in cgi processing [21:53:12]execute_cgi json_proto POST (null) [21:53:12]execute_cgi path=json_proto method=POST [21:53:12]POST find Content-Length [21:53:12]Host: 172.17.38.4:8080 [21:53:12]Content-Length: 671 [21:53:12]Content-Type: application/json [21:53:12] [21:53:12]POST finish read [21:53:12]Found Content-Length = 671 [21:53:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 12.600, "sum" : 855.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 855.00, "total" : 855.00, "payments": [ { "type": 0, "sum" : 855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:12]execute_script... [21:53:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 12.600, "sum" : 855.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 855.00, "total" : 855.00, "payments": [ { "type": 0, "sum" : 855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:12]POST & json_proto [21:53:12]process_json_proto [21:53:12]json parsed OK: [21:53:12]protocol is kg_v1.0 [21:53:12]action value=close_receipt [21:53:12]process_action close_receipt [21:53:12]cmd_close_receipt [21:53:12]MH_GetDate [21:53:12]Write to MH i2c: F0 00 00 56 0E 53 [21:53:12]Write i2c OK [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: F0 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: F0 09 00 [21:53:12]MH_I2C_Read... [21:53:12]Read from MH i2c: F0 09 00 56 0E 00 C9 8C 5F 66 CC 51 87 64 7E [21:53:12]GetLastDocTimeStamp 1717537867 [21:53:12]current date 1717537993 [21:53:12]FM_GetShiftState [21:53:12]SAM_PROTO_GetShiftState [21:53:12]wFMCommunicate request_size=4 [21:53:12]MH_SAM_APDU [21:53:12]CAPDU: 80 13 01 00 [21:53:12]Write to MH i2c: E2 08 00 57 0E 80 13 01 00 00 00 00 00 E2 [21:53:12]Write i2c OK [21:53:12]MH_I2C_Read... [21:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:13]Read from MH i2c: E2 [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: E2 0E 00 [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: E2 0E 00 57 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A5 [21:53:13]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:53:13]wFMCommunicate OK [21:53:13]SAM_PROTO_GetShiftState done [21:53:13]FM_GetShiftState done [21:53:13]opened in 1717460629 [21:53:13]opened+sec_in_day 1717547029 [21:53:13]quantity*price = 85554 [21:53:13]sum+1 = 85555 [21:53:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 855.00 Внесено: 855.00 СДАЧА: 0.00 НСП 1% : 7.57 НДС 12% : 90.85 Наличными: 855.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 372 04.06.2024 21:53 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149033 ФПД: 112729365387106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215313&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149033&fm=112729365387106&tin=02508201610067®Number=0000000000092720&sum=85500 [21:53:14]StoreToDocumentArchive [21:53:14]shift 368 fd 149033 [21:53:14]save to /storage/0368/doc_00149033 [21:53:14]save last doc name /storage/0368/doc_00149033 to /storage/kkm_last_doc_name [21:53:14]save OK [21:53:14]Clear old archive folders... [21:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:53:14]tlvbuf is 009594A0 [21:53:14]SAM_PROTO_ClearQueue [21:53:14]wFMCommunicate request_size=4 [21:53:14]MH_SAM_APDU [21:53:14]CAPDU: 80 09 00 00 [21:53:14]Write to MH i2c: E2 08 00 64 0E 80 09 00 00 00 00 00 00 E4 [21:53:14]Write i2c OK [21:53:14]MH_I2C_Read... [21:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:14]Read from MH i2c: E2 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 03 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 03 00 64 0E 00 90 00 E6 [21:53:14]RAPDU: 90 00 [21:53:14]wFMCommunicate OK [21:53:14]SAM_PROTO_ClearQueue done [21:53:14]KKMCreateOFDPacket [21:53:14]OFDProtocolAddRootSTLVToBuf [21:53:14]FM_MakeSignedData [21:53:14]FM_MakeSignedData [21:53:14]SAM_PROTO_SignData [21:53:14]wFMCommunicate request_size=4 [21:53:14]MH_SAM_APDU [21:53:14]CAPDU: 80 0D 01 02 [21:53:14]Write to MH i2c: E2 08 00 65 0E 80 0D 01 02 00 00 00 00 EC [21:53:14]Write i2c OK [21:53:14]MH_I2C_Read... [21:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:14]Read from MH i2c: E2 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 03 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 03 00 65 0E 00 90 00 E7 [21:53:14]RAPDU: 90 00 [21:53:14]wFMCommunicate OK [21:53:14]wFMCommunicate request_size=255 [21:53:14]MH_SAM_APDU [21:53: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 31 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 32 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 23 00 00 00 00 07 04 06 00 FC 4D 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 01 00 00 F4 03 04 00 C9 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 29 46 02 00 35 04 06 00 [21:53:14]Write to MH i2c: E2 02 01 66 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 31 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 32 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 23 00 00 00 00 07 04 06 00 FC 4D 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 01 00 00 F4 03 04 00 C9 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 29 46 02 00 35 04 06 00 00 00 B4 [21:53:14]Write i2c OK [21:53:14]MH_I2C_Read... [21:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:14]Read from MH i2c: E2 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 03 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 03 00 66 0E 00 90 00 E8 [21:53:14]RAPDU: 90 00 [21:53:14]wFMCommunicate OK [21:53:14]wFMCommunicate request_size=11 [21:53:14]MH_SAM_APDU [21:53:14]CAPDU: 80 0D 02 02 06 66 86 D9 C7 97 62 [21:53:14]Write to MH i2c: E2 0E 00 67 0E 80 0D 02 02 06 00 66 86 D9 C7 97 62 00 00 80 [21:53:14]Write i2c OK [21:53:14]MH_I2C_Read... [21:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:14]Read from MH i2c: E2 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 03 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 03 00 67 0E 00 90 00 E9 [21:53:14]RAPDU: 90 00 [21:53:14]wFMCommunicate OK [21:53:14]wFMCommunicate request_size=4 [21:53:14]MH_SAM_APDU [21:53:14]CAPDU: 80 0D 03 02 [21:53:14]Write to MH i2c: E2 08 00 68 0E 80 0D 03 02 00 00 00 00 F1 [21:53:14]Write i2c OK [21:53:14]MH_I2C_Read... [21:53:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:14]Read from MH i2c: E2 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 0B 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 0B 00 68 0E 00 4C 94 79 45 D8 40 F2 3D 90 00 D7 [21:53:14]RAPDU: 4C 94 79 45 D8 40 F2 3D 90 00 [21:53:14]wFMCommunicate OK [21:53:14]SAM_PROTO_SignData done [21:53:14]FM_MakeSignedData done [21:53:14]CreateOFDProtocolMessage [21:53:14]wFMCommunicate request_size=4 [21:53:14]MH_SAM_APDU [21:53:14]CAPDU: 80 11 00 00 [21:53:14]Write to MH i2c: E2 08 00 69 0E 80 11 00 00 00 00 00 00 F1 [21:53:14]Write i2c OK [21:53:14]MH_I2C_Read... [21:53:14]OFD Sender: No OFD packet to send [21:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:14]Read from MH i2c: E2 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 17 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: E2 17 00 69 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 44 [21:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:53:14]wFMCommunicate OK [21:53:14]CreateOFDProtocolMessage done [21:53:14]OFDSenderStorePacket 149033 [21:53:14]StoreOFDPacket docnum=149033 [21:53:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 F5 9C 08 01 77 4E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 31 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 32 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 23 00 00 00 00 07 04 06 00 FC 4D 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 01 00 00 F4 03 04 00 C9 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 29 46 02 00 35 04 06 00 66 86 D9 C7 97 62 4C 94 79 45 D8 40 F2 3D [21:53:14]CheckFolder [21:53:14]dirname=/storage/ofd_packets [21:53:14]CheckFolder done [21:53:14]ProducePacketName [21:53:14]name=ofd_packets/00149033 [21:53:14]NVStorageSaveData ofd_packets/00149033 [21:53:14]File name is /storage/ofd_packets/00149033 [21:53:14]Write 302 bytes [21:53:14]NVStorageSaveData done [21:53:14]OFDSenderStorePacket done [21:53:14]KKMCreateOFDPacket done [21:53:14]NVStorageSaveData kkm_last_timestamp [21:53:14]File name is /storage/kkm_last_timestamp [21:53:14]Write 4 bytes [21:53:14]NVStorageSaveData done [21:53:14]ExternCall_PrintAddStr [21:53:14]wPrintStart [21:53:14]Write to MH i2c: 01 00 00 6A 0E 78 [21:53:14]Write i2c OK [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: 01 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: 01 07 00 [21:53:14]MH_I2C_Read... [21:53:14]Read from MH i2c: 01 07 00 6A 0E 00 00 00 00 00 FF 0F 8D [21:53:14]RasterBufferAndPrint [21:53:14]line Счет N : (1)979967 [21:53:14]line ИНН: 02508201610067 [21:53:14]line Контрольно-Кассовый Чек [21:53:14]line ПРОДАЖА [21:53:14]line ТРК (МРК, ГНК) : 43 [21:53:14]line Товар: 2710124130 [21:53:14]line SUPER 92-К-5 [21:53:14]line 12.600 * 67.90 [21:53:14]line = 855.54 [21:53:14]line НДС 12% НСП 1% [21:53:14]line > о реализуемом товаре [21:53:14]line ОКРУГЛЕНИЕ: -0.54 [21:53:14]line ИТОГО: 855.00 [21:53:14]line Внесено: 855.00 [21:53:14]line СДАЧА: 0.00 [21:53:14]line НСП 1% : 7.57 [21:53:14]line НДС 12% : 90.85 [21:53:14]line Наличными: 855.00 [21:53:14]line Безнал.: 0.00 [21:53:14]line Место: АЗС № 68 "Партнер Нефть" [21:53:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:53:14]line СНО: Общий режим [21:53:14]line Чек 372 04.06.2024 21:53 [21:53:14]line Смена: 368 ФФД: 1.0 [21:53:14]line ЗНМ: 0300000035 [21:53:14]line РНМ: 0000000000092720 [21:53:14]line Версия ККМ: 001 [21:53:15]line ФМ: 0000000000875057 [21:53:15]line ФД: 149033 [21:53:15]line ФПД: 112729365387106 [21:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215313&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149033&fm=112729365387106&tin=02508201610067®Number=0000000000092720&sum=85500 [21:53:15]OFD Sender: Processing packet 149033 [packets to send 100, broken 99] [21:53:15]ProducePacketName [21:53:15]name=ofd_packets/00149033 [21:53:15]OFD Sender: To server: pG, [21:53:15]CommunicateWithHost lk.salyk.kg:30040 [21:53:15]ConnectInit lk.salyk.kg [21:53:15]written 0, free lines is 4095 [21:53:15]Connected sock=10 [21:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 F5 9C 08 01 77 4E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 31 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 32 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 23 00 00 00 00 07 04 06 00 FC 4D 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 01 00 00 F4 03 04 00 C9 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 29 46 02 00 35 04 06 00 66 86 D9 C7 97 62 4C 94 79 45 D8 40 F2 3D [21:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 32 3F 47 00 73 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 38 37 35 30 35 37 10 04 04 00 29 46 02 00 F4 03 04 00 EC 33 5F 66 B6 04 01 00 00 D2 C9 26 49 21 F1 85 FF [21:53:15]CommunicateWithHost err = 0 [21:53:15]CheckOFDResponse [21:53:15]1017 (14) - 77093643461234 [21:53:15]1041 (16) - 0000000000875057 [21:53:15]1040 (4) - 149033 [21:53:15]1012 (4) - 04.06.2024 15:34 [21:53:15]1206 (1) - 0 [21:53:15]OFD Sender: Remove packet 149033 [21:53:15]ProducePacketName [21:53:15]name=ofd_packets/00149033 [21:53:15]NVStorageDeleteData [21:53:15]Write to MH i2c: 01 00 00 95 0E A3 [21:53:15]Write i2c OK [21:53:15]MH_I2C_Read... [21:53:15]Read from MH i2c: 01 [21:53:15]MH_I2C_Read... [21:53:15]Read from MH i2c: 01 07 00 [21:53:15]MH_I2C_Read... [21:53:15]Read from MH i2c: 01 07 00 95 0E 00 00 00 00 00 67 0C 1D [21:53:15]RasterBufferAndPrint [21:53:15]line [21:53:15]line [21:53:15]line [21:53:15]line [21:53:15]line [21:53:15]written 0, free lines is 3178 [21:53:15]MH_Cut [21:53:15]Write to MH i2c: D1 01 00 9C 0E 01 7C [21:53:15]Write i2c OK [21:53:15]MH_I2C_Read... [21:53:15]Read from MH i2c: D1 [21:53:15]MH_I2C_Read... [21:53:15]Read from MH i2c: D1 01 00 [21:53:15]MH_I2C_Read... [21:53:15]Read from MH i2c: D1 01 00 9C 0E 00 7B [21:53:15]Write to MH i2c: 01 00 00 9D 0E AB [21:53:15]Write i2c OK [21:53:15]MH_I2C_Read... [21:53:15]OFD Sender: No OFD packet to send [21:53:16]*** Cut start [21:53:16]*** Partial cut [21:53:16]*** CUTSNS_PIN = 1 [21:53:16]*** CUTSNS_PIN = 0 [21:53:17]*** Brake cut motor [21:53:17]Read from MH i2c: 01 [21:53:17]MH_I2C_Read... [21:53:17]*** Stop cut motor [21:53:17]*** Cut end [21:53:17]Read from MH i2c: 01 07 00 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: 01 07 00 9D 0E 00 00 00 00 00 FF 0F C0 [21:53:17]process_action close_receipt done [21:53:17]requested_data is exist [21:53:17]produce_requested_data [21:53:17]requested_item fm.sn is exist - process it [21:53:17]wFMCommunicate request_size=4 [21:53:17]MH_SAM_APDU [21:53:17]CAPDU: 80 11 00 00 [21:53:17]Write to MH i2c: E2 08 00 9E 0E 80 11 00 00 00 00 00 00 26 [21:53:17]Write i2c OK [21:53:17]MH_I2C_Read... [21:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:17]Read from MH i2c: E2 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: E2 17 00 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: E2 17 00 9E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 79 [21:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:53:17]wFMCommunicate OK [21:53:17]requested_item fd.num is exist - process it [21:53:17]SAM_PROTO_GetFieldsCounters [21:53:17]wFMCommunicate request_size=4 [21:53:17]MH_SAM_APDU [21:53:17]CAPDU: 80 13 00 00 [21:53:17]Write to MH i2c: E2 08 00 9F 0E 80 13 00 00 00 00 00 00 29 [21:53:17]Write i2c OK [21:53:17]MH_I2C_Read... [21:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:17]Read from MH i2c: E2 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: E2 62 00 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: E2 62 00 9F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 29 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [21:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 29 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:17]wFMCommunicate OK [21:53:17]SAM_PROTO_GetFieldsCounters done [21:53:17]requested_item shift.num is exist - process it [21:53:17]requested_item shift.opened is exist - process it [21:53:17]req_shift_opened [21:53:17]FM_GetShiftState [21:53:17]SAM_PROTO_GetShiftState [21:53:17]wFMCommunicate request_size=4 [21:53:17]MH_SAM_APDU [21:53:17]CAPDU: 80 13 01 00 [21:53:17]Write to MH i2c: E2 08 00 A0 0E 80 13 01 00 00 00 00 00 2B [21:53:17]Write i2c OK [21:53:17]MH_I2C_Read... [21:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:17]Read from MH i2c: E2 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: E2 0E 00 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: E2 0E 00 A0 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 EE [21:53:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:53:17]wFMCommunicate OK [21:53:17]SAM_PROTO_GetShiftState done [21:53:17]FM_GetShiftState done [21:53:17]req_shift_opened done [21:53:17]requested_item shift.open_date is exist - process it [21:53:17]req_shift_open_date [21:53:17]req_shift_open_date done [21:53:17]produce_requested_data done [21:53:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149033,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:53:17]process_action_free close_receipt [21:53:17]json_value_free [21:53:17]json_value_free done [21:53:17]process_json_proto returns [21:53:17]Send response to host [21:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149033,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:53:17]free response buf [21:53:17]execute_script done [21:53:17]execute_script returns [21:53:17]free content buf [21:53:17]Sock 9.Close socket [21:53:17]Sock 9.Thread stoped [21:53:19]accept exits with 7 [21:53:19]New connection [21:53:19]New thread 3067219300 created [21:53:19]Thread 3067075940 joined [21:53:19]Waiting for new connection... [21:53:19] Sock 7.Parse request [21:53:19]Sock 7.Check first char [21:53:19]Sock 7.First char is OK [21:53:19]request: POST /json_proto HTTP/1.0 [21:53:19]Method: POST [21:53:19]URL: /json_proto [21:53:19]Method is POST - this is cgi request [21:53:19]url: /json_proto [21:53:19]query_string will be loaded in cgi processing [21:53:19]execute_cgi json_proto POST (null) [21:53:19]execute_cgi path=json_proto method=POST [21:53:19]POST find Content-Length [21:53:19]Host: 172.17.38.4:8080 [21:53:19]Content-Length: 620 [21:53:19]Content-Type: application/json [21:53:19] [21:53:19]POST finish read [21:53:19]Found Content-Length = 620 [21:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11912", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:19]execute_script... [21:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11912", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:19]POST & json_proto [21:53:19]process_json_proto [21:53:19]json parsed OK: [21:53:19]protocol is kg_v1.0 [21:53:19]action value=close_receipt [21:53:19]process_action close_receipt [21:53:19]cmd_close_receipt [21:53:19]MH_GetDate [21:53:19]Write to MH i2c: F0 00 00 A1 0E 9E [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: F0 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: F0 09 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: F0 09 00 A1 0E 00 D0 8C 5F 66 CC 51 87 64 D0 [21:53:19]GetLastDocTimeStamp 1717537993 [21:53:19]current date 1717538000 [21:53:19]FM_GetShiftState [21:53:19]SAM_PROTO_GetShiftState [21:53:19]wFMCommunicate request_size=4 [21:53:19]MH_SAM_APDU [21:53:19]CAPDU: 80 13 01 00 [21:53:19]Write to MH i2c: E2 08 00 A2 0E 80 13 01 00 00 00 00 00 2D [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 0E 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 0E 00 A2 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F0 [21:53:19]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:53:19]wFMCommunicate OK [21:53:19]SAM_PROTO_GetShiftState done [21:53:19]FM_GetShiftState done [21:53:19]opened in 1717460629 [21:53:19]opened+sec_in_day 1717547029 [21:53:19]quantity*price = 14500 [21:53:19]sum+1 = 14501 [21:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 373 04.06.2024 21:53 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149034 ФПД: 559269052710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215320&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149034&fm=559269052710&tin=02508201610067®Number=0000000000092720&sum=14500 0 [21:53:20]StoreToDocumentArchive [21:53:20]shift 368 fd 149034 [21:53:20]save to /storage/0368/doc_00149034 [21:53:20]save last doc name /storage/0368/doc_00149034 to /storage/kkm_last_doc_name [21:53:20]save OK [21:53:20]Clear old archive folders... [21:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:53:20]tlvbuf is 009ADAD0 [21:53:20]SAM_PROTO_ClearQueue [21:53:20]wFMCommunicate request_size=4 [21:53:20]MH_SAM_APDU [21:53:20]CAPDU: 80 09 00 00 [21:53:20]Write to MH i2c: E2 08 00 AF 0E 80 09 00 00 00 00 00 00 2F [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:20]Read from MH i2c: E2 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 03 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 03 00 AF 0E 00 90 00 31 [21:53:20]RAPDU: 90 00 [21:53:20]wFMCommunicate OK [21:53:20]SAM_PROTO_ClearQueue done [21:53:20]KKMCreateOFDPacket [21:53:20]OFDProtocolAddRootSTLVToBuf [21:53:20]FM_MakeSignedData [21:53:20]FM_MakeSignedData [21:53:20]SAM_PROTO_SignData [21:53:20]wFMCommunicate request_size=4 [21:53:20]MH_SAM_APDU [21:53:20]CAPDU: 80 0D 01 02 [21:53:20]Write to MH i2c: E2 08 00 B0 0E 80 0D 01 02 00 00 00 00 37 [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:20]Read from MH i2c: E2 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 03 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 03 00 B0 0E 00 90 00 32 [21:53:20]RAPDU: 90 00 [21:53:21]wFMCommunicate OK [21:53:21]wFMCommunicate request_size=255 [21:53:21]MH_SAM_APDU [21:53:21]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 D0 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 [21:53:21]Write to MH i2c: E2 02 01 B1 0E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 D0 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 00 00 5F [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:21]Read from MH i2c: E2 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 03 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 03 00 B1 0E 00 90 00 33 [21:53:21]RAPDU: 90 00 [21:53:21]wFMCommunicate OK [21:53:21]wFMCommunicate request_size=32 [21:53:21]MH_SAM_APDU [21:53:21]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 35 37 10 04 04 00 2A 46 02 00 35 04 06 00 00 82 37 08 81 26 [21:53:21]Write to MH i2c: E2 23 00 B2 0E 80 0D 02 02 1B 00 30 30 30 38 37 35 30 35 37 10 04 04 00 2A 46 02 00 35 04 06 00 00 82 37 08 81 26 00 00 71 [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:21]Read from MH i2c: E2 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 03 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 03 00 B2 0E 00 90 00 34 [21:53:21]RAPDU: 90 00 [21:53:21]wFMCommunicate OK [21:53:21]wFMCommunicate request_size=4 [21:53:21]MH_SAM_APDU [21:53:21]CAPDU: 80 0D 03 02 [21:53:21]Write to MH i2c: E2 08 00 B3 0E 80 0D 03 02 00 00 00 00 3C [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:21]Read from MH i2c: E2 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 0B 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 0B 00 B3 0E 00 A8 BE 4A 08 30 86 A3 FA 90 00 48 [21:53:21]RAPDU: A8 BE 4A 08 30 86 A3 FA 90 00 [21:53:21]wFMCommunicate OK [21:53:21]SAM_PROTO_SignData done [21:53:21]FM_MakeSignedData done [21:53:21]CreateOFDProtocolMessage [21:53:21]wFMCommunicate request_size=4 [21:53:21]MH_SAM_APDU [21:53:21]CAPDU: 80 11 00 00 [21:53:21]Write to MH i2c: E2 08 00 B4 0E 80 11 00 00 00 00 00 00 3C [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:21]Read from MH i2c: E2 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 17 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 17 00 B4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8F [21:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:53:21]wFMCommunicate OK [21:53:21]CreateOFDProtocolMessage done [21:53:21]OFDSenderStorePacket 149034 [21:53:21]StoreOFDPacket docnum=149034 [21:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 25 01 00 00 57 76 1D 01 43 61 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 D0 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2A 46 02 00 35 04 06 00 00 82 37 08 81 26 A8 BE 4A 08 30 86 A3 FA [21:53:21]CheckFolder [21:53:21]dirname=/storage/ofd_packets [21:53:21]CheckFolder done [21:53:21]ProducePacketName [21:53:21]name=ofd_packets/00149034 [21:53:21]NVStorageSaveData ofd_packets/00149034 [21:53:21]File name is /storage/ofd_packets/00149034 [21:53:21]Write 323 bytes [21:53:21]NVStorageSaveData done [21:53:21]OFDSenderStorePacket done [21:53:21]KKMCreateOFDPacket done [21:53:21]NVStorageSaveData kkm_last_timestamp [21:53:21]File name is /storage/kkm_last_timestamp [21:53:21]Write 4 bytes [21:53:21]NVStorageSaveData done [21:53:21]ExternCall_PrintAddStr [21:53:21]wPrintStart [21:53:21]Write to MH i2c: 01 00 00 B5 0E C3 [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: 01 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: 01 07 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: 01 07 00 B5 0E 00 00 00 00 00 FF 0F D8 [21:53:21]RasterBufferAndPrint [21:53:21]line Счет N : (3)11912 [21:53:21]line ИНН: 02508201610067 [21:53:21]line Контрольно-Кассовый Чек [21:53:21]line ПРОДАЖА [21:53:21]line Товар: 48744119 [21:53:21]line Сигареты Winston Xstyle Dual [21:53:21]line 1.000 * 145.00 [21:53:21]line = 145.00 [21:53:21]line НДС 12% НСП 1% [21:53:21]line > о реализуемом товаре [21:53:21]line ИТОГО: 145.00 [21:53:21]line НСП 1% : 1.28 [21:53:21]line НДС 12% : 15.40 [21:53:21]line Наличными: 145.00 [21:53:21]line Безнал.: 0.00 [21:53:21]line Место: АЗС № 68 "Партнер Нефть" [21:53:21]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:53:21]line СНО: Общий режим [21:53:21]line Чек 373 04.06.2024 21:53 [21:53:21]line Смена: 368 ФФД: 1.0 [21:53:21]line ЗНМ: 0300000035 [21:53:21]line РНМ: 0000000000092720 [21:53:21]line Версия ККМ: 001 [21:53:21]line ФМ: 0000000000875057 [21:53:21]line ФД: 149034 [21:53:21]line ФПД: 559269052710 [21:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215320&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149034&fm=559269052710&tin=02508201610067®Number=0000000000092720&sum=14500 [21:53:21]line 0 [21:53:21]written 0, free lines is 4095 [21:53:21]OFD Sender: Processing packet 149034 [packets to send 100, broken 99] [21:53:21]ProducePacketName [21:53:21]name=ofd_packets/00149034 [21:53:21]OFD Sender: To server: pG, [21:53:21]CommunicateWithHost lk.salyk.kg:30040 [21:53:21]ConnectInit lk.salyk.kg [21:53:21]Connected sock=10 [21:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 25 01 00 00 57 76 1D 01 43 61 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 D0 8C 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2A 46 02 00 35 04 06 00 00 82 37 08 81 26 A8 BE 4A 08 30 86 A3 FA [21:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 AB 63 47 00 7F AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2A 46 02 00 F4 03 04 00 F3 33 5F 66 B6 04 01 00 00 45 47 5F F5 63 5C 43 03 [21:53:21]CommunicateWithHost err = 0 [21:53:21]CheckOFDResponse [21:53:21]1017 (14) - 77093643461234 [21:53:21]1041 (16) - 0000000000875057 [21:53:21]1040 (4) - 149034 [21:53:21]1012 (4) - 04.06.2024 15:34 [21:53:21]1206 (1) - 0 [21:53:21]OFD Sender: Remove packet 149034 [21:53:21]ProducePacketName [21:53:21]name=ofd_packets/00149034 [21:53:21]NVStorageDeleteData [21:53:21]Write to MH i2c: 01 00 00 DD 0E EB [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: 01 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: 01 07 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: 01 07 00 DD 0E 00 00 00 00 00 92 0C 90 [21:53:21]RasterBufferAndPrint [21:53:21]line [21:53:21]line [21:53:21]line [21:53:21]line [21:53:21]line [21:53:21]written 0, free lines is 3225 [21:53:21]MH_Cut [21:53:21]Write to MH i2c: D1 01 00 E4 0E 01 C4 [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: D1 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: D1 01 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: D1 01 00 E4 0E 00 C3 [21:53:21]Write to MH i2c: 01 00 00 E5 0E F3 [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:22]OFD Sender: No OFD packet to send [21:53:23]*** Cut start [21:53:23]*** Partial cut [21:53:23]*** CUTSNS_PIN = 1 [21:53:23]*** CUTSNS_PIN = 0 [21:53:23]*** Brake cut motor [21:53:23]Read from MH i2c: 01 [21:53:23]MH_I2C_Read... [21:53:23]*** Stop cut motor [21:53:23]*** Cut end [21:53:23]Read from MH i2c: 01 07 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [21:53:23]process_action close_receipt done [21:53:23]requested_data is exist [21:53:23]produce_requested_data [21:53:23]requested_item fm.sn is exist - process it [21:53:23]wFMCommunicate request_size=4 [21:53:23]MH_SAM_APDU [21:53:23]CAPDU: 80 11 00 00 [21:53:23]Write to MH i2c: E2 08 00 E6 0E 80 11 00 00 00 00 00 00 6E [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:23]Read from MH i2c: E2 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 17 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 17 00 E6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C1 [21:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:53:23]wFMCommunicate OK [21:53:23]requested_item fd.num is exist - process it [21:53:23]SAM_PROTO_GetFieldsCounters [21:53:23]wFMCommunicate request_size=4 [21:53:23]MH_SAM_APDU [21:53:23]CAPDU: 80 13 00 00 [21:53:23]Write to MH i2c: E2 08 00 E7 0E 80 13 00 00 00 00 00 00 71 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:23]Read from MH i2c: E2 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 62 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 62 00 E7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2A 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [21:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2A 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:23]wFMCommunicate OK [21:53:23]SAM_PROTO_GetFieldsCounters done [21:53:23]requested_item shift.num is exist - process it [21:53:23]requested_item shift.opened is exist - process it [21:53:23]req_shift_opened [21:53:23]FM_GetShiftState [21:53:23]SAM_PROTO_GetShiftState [21:53:23]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 13 01 00 [21:53:24]Write to MH i2c: E2 08 00 E8 0E 80 13 01 00 00 00 00 00 73 [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 E8 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 36 [21:53:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_GetShiftState done [21:53:24]FM_GetShiftState done [21:53:24]req_shift_opened done [21:53:24]requested_item shift.open_date is exist - process it [21:53:24]req_shift_open_date [21:53:24]req_shift_open_date done [21:53:24]produce_requested_data done [21:53:24]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149034,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:53:24]process_action_free close_receipt [21:53:24]json_value_free [21:53:24]json_value_free done [21:53:24]process_json_proto returns [21:53:24]Send response to host [21:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149034,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:53:24]free response buf [21:53:24]execute_script done [21:53:24]execute_script returns [21:53:24]free content buf [21:53:24]Sock 7.Close socket [21:53:24]Sock 7.Thread stoped [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:12]accept exits with 9 [21:54:12]New connection [21:54:12]New thread 3067075940 created [21:54:12]Thread 3067219300 joined [21:54:12]Waiting for new connection... [21:54:12] Sock 9.Parse request [21:54:12]Sock 9.Check first char [21:54:12]Sock 9.First char is OK [21:54:12]request: POST /json_proto HTTP/1.0 [21:54:12]Method: POST [21:54:12]URL: /json_proto [21:54:12]Method is POST - this is cgi request [21:54:12]url: /json_proto [21:54:12]query_string will be loaded in cgi processing [21:54:12]execute_cgi json_proto POST (null) [21:54:12]execute_cgi path=json_proto method=POST [21:54:12]POST find Content-Length [21:54:12]Host: 172.17.38.4:8080 [21:54:12]Content-Length: 782 [21:54:12]Content-Type: application/json [21:54:12] [21:54:12]POST finish read [21:54:12]Found Content-Length = 782 [21:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11913", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:12]execute_script... [21:54:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11913", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:12]POST & json_proto [21:54:12]process_json_proto [21:54:12]json parsed OK: [21:54:12]protocol is kg_v1.0 [21:54:12]action value=close_receipt [21:54:12]process_action close_receipt [21:54:12]cmd_close_receipt [21:54:12]MH_GetDate [21:54:12]Write to MH i2c: F0 00 00 E9 0E E6 [21:54:12]Write i2c OK [21:54:12]MH_I2C_Read... [21:54:12]Read from MH i2c: F0 [21:54:12]MH_I2C_Read... [21:54:12]Read from MH i2c: F0 09 00 [21:54:12]MH_I2C_Read... [21:54:12]Read from MH i2c: F0 09 00 E9 0E 00 05 8D 5F 66 CC 51 87 64 4E [21:54:12]GetLastDocTimeStamp 1717538000 [21:54:12]current date 1717538053 [21:54:12]FM_GetShiftState [21:54:12]SAM_PROTO_GetShiftState [21:54:12]wFMCommunicate request_size=4 [21:54:12]MH_SAM_APDU [21:54:12]CAPDU: 80 13 01 00 [21:54:12]Write to MH i2c: E2 08 00 EA 0E 80 13 01 00 00 00 00 00 75 [21:54:12]Write i2c OK [21:54:12]MH_I2C_Read... [21:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:12]Read from MH i2c: E2 [21:54:12]MH_I2C_Read... [21:54:12]Read from MH i2c: E2 0E 00 [21:54:12]MH_I2C_Read... [21:54:12]Read from MH i2c: E2 0E 00 EA 0E 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 38 [21:54:12]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:54:12]wFMCommunicate OK [21:54:12]SAM_PROTO_GetShiftState done [21:54:12]FM_GetShiftState done [21:54:12]opened in 1717460629 [21:54:12]opened+sec_in_day 1717547029 [21:54:12]quantity*price = 13800 [21:54:12]sum+1 = 13801 [21:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 0.00 Безнал.: 138.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 374 04.06.2024 21:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 149035 ФПД: 25216248077382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215413&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149035&fm=25216248077382&tin=02508201610067®Number=0000000000092720&sum=13800 0 [21:54:13]StoreToDocumentArchive [21:54:13]shift 368 fd 149035 [21:54:13]save to /storage/0368/doc_00149035 [21:54:13]save last doc name /storage/0368/doc_00149035 to /storage/kkm_last_doc_name [21:54:13]save OK [21:54:13]Clear old archive folders... [21:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:54:13]tlvbuf is 00945ED0 [21:54:13]SAM_PROTO_ClearQueue [21:54:13]wFMCommunicate request_size=4 [21:54:13]MH_SAM_APDU [21:54:13]CAPDU: 80 09 00 00 [21:54:13]Write to MH i2c: E2 08 00 F7 0E 80 09 00 00 00 00 00 00 77 [21:54:13]Write i2c OK [21:54:13]MH_I2C_Read... [21:54:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:13]Read from MH i2c: E2 [21:54:13]MH_I2C_Read... [21:54:13]Read from MH i2c: E2 03 00 [21:54:13]MH_I2C_Read... [21:54:13]Read from MH i2c: E2 03 00 F7 0E 00 90 00 79 [21:54:13]RAPDU: 90 00 [21:54:13]wFMCommunicate OK [21:54:13]SAM_PROTO_ClearQueue done [21:54:13]KKMCreateOFDPacket [21:54:13]OFDProtocolAddRootSTLVToBuf [21:54:13]FM_MakeSignedData [21:54:13]FM_MakeSignedData [21:54:13]SAM_PROTO_SignData [21:54:13]wFMCommunicate request_size=4 [21:54:13]MH_SAM_APDU [21:54:13]CAPDU: 80 0D 01 02 [21:54:13]Write to MH i2c: E2 08 00 F8 0E 80 0D 01 02 00 00 00 00 7F [21:54:13]Write i2c OK [21:54:13]MH_I2C_Read... [21:54:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:13]Read from MH i2c: E2 [21:54:13]MH_I2C_Read... [21:54:13]Read from MH i2c: E2 03 00 [21:54:13]MH_I2C_Read... [21:54:13]Read from MH i2c: E2 03 00 F8 0E 00 90 00 7A [21:54:13]RAPDU: 90 00 [21:54:13]wFMCommunicate OK [21:54:13]wFMCommunicate request_size=255 [21:54:13]MH_SAM_APDU [21:54:13]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 05 8D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 [21:54:13]Write to MH i2c: E2 02 01 F9 0E 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 05 8D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 00 00 F6 [21:54:13]Write i2c OK [21:54:13]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 F9 0E 00 90 00 7B [21:54:14]RAPDU: 90 00 [21:54:14]wFMCommunicate OK [21:54:14]wFMCommunicate request_size=33 [21:54:14]MH_SAM_APDU [21:54:14]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2B 46 02 00 35 04 06 00 16 EF 1D 82 5C 46 [21:54:14]Write to MH i2c: E2 24 00 FA 0E 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2B 46 02 00 35 04 06 00 16 EF 1D 82 5C 46 00 00 CA [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 FA 0E 00 90 00 7C [21:54:14]RAPDU: 90 00 [21:54:14]wFMCommunicate OK [21:54:14]wFMCommunicate request_size=4 [21:54:14]MH_SAM_APDU [21:54:14]CAPDU: 80 0D 03 02 [21:54:14]Write to MH i2c: E2 08 00 FB 0E 80 0D 03 02 00 00 00 00 84 [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 0B 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 0B 00 FB 0E 00 58 14 BD E5 50 A6 FD 53 90 00 D9 [21:54:14]RAPDU: 58 14 BD E5 50 A6 FD 53 90 00 [21:54:14]wFMCommunicate OK [21:54:14]SAM_PROTO_SignData done [21:54:14]FM_MakeSignedData done [21:54:14]CreateOFDProtocolMessage [21:54:14]wFMCommunicate request_size=4 [21:54:14]MH_SAM_APDU [21:54:14]CAPDU: 80 11 00 00 [21:54:14]Write to MH i2c: E2 08 00 FC 0E 80 11 00 00 00 00 00 00 84 [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 17 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 17 00 FC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D7 [21:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:54:14]wFMCommunicate OK [21:54:14]CreateOFDProtocolMessage done [21:54:14]OFDSenderStorePacket 149035 [21:54:14]StoreOFDPacket docnum=149035 [21:54:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 5A 12 1E 01 41 49 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 05 8D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2B 46 02 00 35 04 06 00 16 EF 1D 82 5C 46 58 14 BD E5 50 A6 FD 53 [21:54:14]CheckFolder [21:54:14]dirname=/storage/ofd_packets [21:54:14]CheckFolder done [21:54:14]ProducePacketName [21:54:14]name=ofd_packets/00149035 [21:54:14]NVStorageSaveData ofd_packets/00149035 [21:54:14]File name is /storage/ofd_packets/00149035 [21:54:14]Write 324 bytes [21:54:14]NVStorageSaveData done [21:54:14]OFDSenderStorePacket done [21:54:14]KKMCreateOFDPacket done [21:54:14]NVStorageSaveData kkm_last_timestamp [21:54:14]File name is /storage/kkm_last_timestamp [21:54:14]Write 4 bytes [21:54:14]NVStorageSaveData done [21:54:14]OFD Sender: Processing packet 149035 [packets to send 100, broken 99] [21:54:14]ProducePacketName [21:54:14]name=ofd_packets/00149035 [21:54:14]OFD Sender: To server: pG, [21:54:14]CommunicateWithHost lk.salyk.kg:30040 [21:54:14]ConnectInit lk.salyk.kg [21:54:14]ExternCall_PrintAddStr [21:54:14]wPrintStart [21:54:14]Write to MH i2c: 01 00 00 FD 0E 0B [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: 01 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: 01 07 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: 01 07 00 FD 0E 00 00 00 00 00 FF 0F 20 [21:54:14]RasterBufferAndPrint [21:54:14]line Счет N : (3)11913 [21:54:14]line ИНН: 02508201610067 [21:54:14]line Контрольно-Кассовый Чек [21:54:14]line ПРОДАЖА [21:54:14]line Товар: 4640030091645 [21:54:14]line Сигареты ESSE Exchange M [21:54:14]line 1.000 * 138.00 [21:54:14]line = 138.00 [21:54:14]line НДС 12% НСП 1% [21:54:14]line > о реализуемом товаре [21:54:14]line ИТОГО: 138.00 [21:54:14]line НСП 1% : 1.22 [21:54:14]line НДС 12% : 14.65 [21:54:14]line Наличными: 0.00 [21:54:14]line Безнал.: 138.00 [21:54:14]line Место: АЗС № 68 "Партнер Нефть" [21:54:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:54:14]line СНО: Общий режим [21:54:14]line Чек 374 04.06.2024 21:54 [21:54:14]line Смена: 368 ФФД: 1.0 [21:54:14]line ЗНМ: 0300000035 [21:54:14]line РНМ: 0000000000092720 [21:54:14]line Версия ККМ: 001 [21:54:14]line Платежная система: O! деньги [21:54:14]line ФМ: 0000000000875057 [21:54:14]line ФД: 149035 [21:54:14]line ФПД: 25216248077382 [21:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215413&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149035&fm=25216248077382&tin=02508201610067®Number=0000000000092720&sum=13800 [21:54:14]line 0 [21:54:14]Connected sock=11 [21:54:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 5A 12 1E 01 41 49 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 05 8D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2B 46 02 00 35 04 06 00 16 EF 1D 82 5C 46 58 14 BD E5 50 A6 FD 53 [21:54:14]written 0, free lines is 4095 [21:54:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DA 72 47 00 67 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 38 37 35 30 35 37 10 04 04 00 2B 46 02 00 F4 03 04 00 28 34 5F 66 B6 04 01 00 00 42 0F B0 D5 D0 D9 D4 AC [21:54:14]CommunicateWithHost err = 0 [21:54:14]CheckOFDResponse [21:54:14]1017 (14) - 77093643461234 [21:54:14]1041 (16) - 0000000000875057 [21:54:14]1040 (4) - 149035 [21:54:14]1012 (4) - 04.06.2024 15:35 [21:54:14]1206 (1) - 0 [21:54:14]OFD Sender: Remove packet 149035 [21:54:14]ProducePacketName [21:54:14]name=ofd_packets/00149035 [21:54:14]NVStorageDeleteData [21:54:15]Write to MH i2c: 01 00 00 27 0F 36 [21:54:15]Write i2c OK [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: 01 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: 01 07 00 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: 01 07 00 27 0F 00 00 00 00 00 6B 0C B4 [21:54:15]RasterBufferAndPrint [21:54:15]line [21:54:15]line [21:54:15]line [21:54:15]line [21:54:15]line [21:54:15]written 0, free lines is 3182 [21:54:15]MH_Cut [21:54:15]Write to MH i2c: D1 01 00 2E 0F 01 0F [21:54:15]Write i2c OK [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: D1 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: D1 01 00 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: D1 01 00 2E 0F 00 0E [21:54:15]Write to MH i2c: 01 00 00 2F 0F 3E [21:54:15]Write i2c OK [21:54:15]MH_I2C_Read... [21:54:15]OFD Sender: No OFD packet to send [21:54:16]*** Cut start [21:54:16]*** Partial cut [21:54:16]*** CUTSNS_PIN = 1 [21:54:16]*** CUTSNS_PIN = 0 [21:54:16]*** Brake cut motor [21:54:17]Read from MH i2c: 01 [21:54:17]MH_I2C_Read... [21:54:17]*** Stop cut motor [21:54:17]*** Cut end [21:54:17]Read from MH i2c: 01 07 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: 01 07 00 2F 0F 00 00 00 00 00 FF 0F 53 [21:54:17]process_action close_receipt done [21:54:17]requested_data is exist [21:54:17]produce_requested_data [21:54:17]requested_item fm.sn is exist - process it [21:54:17]wFMCommunicate request_size=4 [21:54:17]MH_SAM_APDU [21:54:17]CAPDU: 80 11 00 00 [21:54:17]Write to MH i2c: E2 08 00 30 0F 80 11 00 00 00 00 00 00 B9 [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:17]Read from MH i2c: E2 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 17 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 17 00 30 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0C [21:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:54:17]wFMCommunicate OK [21:54:17]requested_item fd.num is exist - process it [21:54:17]SAM_PROTO_GetFieldsCounters [21:54:17]wFMCommunicate request_size=4 [21:54:17]MH_SAM_APDU [21:54:17]CAPDU: 80 13 00 00 [21:54:17]Write to MH i2c: E2 08 00 31 0F 80 13 00 00 00 00 00 00 BC [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:17]Read from MH i2c: E2 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 62 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 62 00 31 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2B 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [21:54:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2B 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:17]wFMCommunicate OK [21:54:17]SAM_PROTO_GetFieldsCounters done [21:54:17]requested_item shift.num is exist - process it [21:54:17]requested_item shift.opened is exist - process it [21:54:17]req_shift_opened [21:54:17]FM_GetShiftState [21:54:17]SAM_PROTO_GetShiftState [21:54:17]wFMCommunicate request_size=4 [21:54:17]MH_SAM_APDU [21:54:17]CAPDU: 80 13 01 00 [21:54:17]Write to MH i2c: E2 08 00 32 0F 80 13 01 00 00 00 00 00 BE [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:17]Read from MH i2c: E2 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 0E 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 0E 00 32 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 81 [21:54:17]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:54:17]wFMCommunicate OK [21:54:17]SAM_PROTO_GetShiftState done [21:54:17]FM_GetShiftState done [21:54:17]req_shift_opened done [21:54:17]requested_item shift.open_date is exist - process it [21:54:17]req_shift_open_date [21:54:17]req_shift_open_date done [21:54:17]produce_requested_data done [21:54:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149035,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:54:17]process_action_free close_receipt [21:54:17]json_value_free [21:54:17]json_value_free done [21:54:17]process_json_proto returns [21:54:17]Send response to host [21:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149035,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:54:17]free response buf [21:54:17]execute_script done [21:54:17]execute_script returns [21:54:17]free content buf [21:54:17]Sock 9.Close socket [21:54:17]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]accept exits with 7 [21:55:50]New connection [21:55:50]New thread 3067219300 created [21:55:50]Thread 3067075940 joined [21:55:50]Waiting for new connection... [21:55:50] Sock 7.Parse request [21:55:50]Sock 7.Check first char [21:55:50]Sock 7.First char is OK [21:55:50]request: POST /json_proto HTTP/1.0 [21:55:50]Method: POST [21:55:50]URL: /json_proto [21:55:50]Method is POST - this is cgi request [21:55:50]url: /json_proto [21:55:50]query_string will be loaded in cgi processing [21:55:50]execute_cgi json_proto POST (null) [21:55:50]execute_cgi path=json_proto method=POST [21:55:50]POST find Content-Length [21:55:50]Host: 172.17.38.4:8080 [21:55:50]Content-Length: 682 [21:55:50]Content-Type: application/json [21:55:50] [21:55:50]POST finish read [21:55:50]Found Content-Length = 682 [21:55:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:50]execute_script... [21:55: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)979968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:50]POST & json_proto [21:55:50]process_json_proto [21:55:50]json parsed OK: [21:55:50]protocol is kg_v1.0 [21:55:50]action value=close_receipt [21:55:50]process_action close_receipt [21:55:50]cmd_close_receipt [21:55:50]MH_GetDate [21:55:50]Write to MH i2c: F0 00 00 33 0F 31 [21:55:50]Write i2c OK [21:55:50]MH_I2C_Read... [21:55:50]Read from MH i2c: F0 [21:55:50]MH_I2C_Read... [21:55:50]Read from MH i2c: F0 09 00 [21:55:50]MH_I2C_Read... [21:55:50]Read from MH i2c: F0 09 00 33 0F 00 67 8D 5F 66 CC 51 87 64 FB [21:55:50]GetLastDocTimeStamp 1717538053 [21:55:50]current date 1717538151 [21:55:50]FM_GetShiftState [21:55:50]SAM_PROTO_GetShiftState [21:55:50]wFMCommunicate request_size=4 [21:55:50]MH_SAM_APDU [21:55:50]CAPDU: 80 13 01 00 [21:55:50]Write to MH i2c: E2 08 00 34 0F 80 13 01 00 00 00 00 00 C0 [21:55:50]Write i2c OK [21:55:50]MH_I2C_Read... [21:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:50]OFD Sender: No OFD packet to send [21:55:50]Read from MH i2c: E2 [21:55:50]MH_I2C_Read... [21:55:50]Read from MH i2c: E2 0E 00 [21:55:50]MH_I2C_Read... [21:55:50]Read from MH i2c: E2 0E 00 34 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 83 [21:55:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:55:50]wFMCommunicate OK [21:55:50]SAM_PROTO_GetShiftState done [21:55:50]FM_GetShiftState done [21:55:50]opened in 1717460629 [21:55:50]opened+sec_in_day 1717547029 [21:55:50]quantity*price = 100015 [21:55:50]sum+1 = 100017 [21:55:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 375 04.06.2024 21:55 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149036 ФПД: 219402669230313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215551&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149036&fm=219402669230313&tin=02508201610067®Number=0000000000092720&sum=100000 [21:55:51]StoreToDocumentArchive [21:55:51]shift 368 fd 149036 [21:55:51]save to /storage/0368/doc_00149036 [21:55:51]save last doc name /storage/0368/doc_00149036 to /storage/kkm_last_doc_name [21:55:51]save OK [21:55:51]Clear old archive folders... [21:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:51]tlvbuf is 0094E310 [21:55:51]SAM_PROTO_ClearQueue [21:55:51]wFMCommunicate request_size=4 [21:55:51]MH_SAM_APDU [21:55:51]CAPDU: 80 09 00 00 [21:55:51]Write to MH i2c: E2 08 00 41 0F 80 09 00 00 00 00 00 00 C2 [21:55:51]Write i2c OK [21:55:51]MH_I2C_Read... [21:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:51]Read from MH i2c: E2 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: E2 03 00 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: E2 03 00 41 0F 00 90 00 C4 [21:55:51]RAPDU: 90 00 [21:55:51]wFMCommunicate OK [21:55:51]SAM_PROTO_ClearQueue done [21:55:51]KKMCreateOFDPacket [21:55:51]OFDProtocolAddRootSTLVToBuf [21:55:51]FM_MakeSignedData [21:55:51]FM_MakeSignedData [21:55:51]SAM_PROTO_SignData [21:55:51]wFMCommunicate request_size=4 [21:55:51]MH_SAM_APDU [21:55:51]CAPDU: 80 0D 01 02 [21:55:51]Write to MH i2c: E2 08 00 42 0F 80 0D 01 02 00 00 00 00 CA [21:55:51]Write i2c OK [21:55:51]MH_I2C_Read... [21:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:51]Read from MH i2c: E2 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: E2 03 00 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: E2 03 00 42 0F 00 90 00 C5 [21:55:51]RAPDU: 90 00 [21:55:51]wFMCommunicate OK [21:55:51]wFMCommunicate request_size=255 [21:55:51]MH_SAM_APDU [21:55:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 77 01 00 00 F4 03 04 00 67 8D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2C 46 02 00 35 04 06 00 C7 [21:55:51]Write to MH i2c: E2 02 01 43 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 77 01 00 00 F4 03 04 00 67 8D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2C 46 02 00 35 04 06 00 C7 00 00 2B [21:55:51]Write i2c OK [21:55:51]MH_I2C_Read... [21:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:52]Read from MH i2c: E2 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: E2 03 00 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: E2 03 00 43 0F 00 90 00 C6 [21:55:52]RAPDU: 90 00 [21:55:52]wFMCommunicate OK [21:55:52]wFMCommunicate request_size=10 [21:55:52]MH_SAM_APDU [21:55:52]CAPDU: 80 0D 02 02 05 8B AA 29 88 E9 [21:55:52]Write to MH i2c: E2 0D 00 44 0F 80 0D 02 02 05 00 8B AA 29 88 E9 00 00 A6 [21:55:52]Write i2c OK [21:55:52]MH_I2C_Read... [21:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:52]Read from MH i2c: E2 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: E2 03 00 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: E2 03 00 44 0F 00 90 00 C7 [21:55:52]RAPDU: 90 00 [21:55:52]wFMCommunicate OK [21:55:52]wFMCommunicate request_size=4 [21:55:52]MH_SAM_APDU [21:55:52]CAPDU: 80 0D 03 02 [21:55:52]Write to MH i2c: E2 08 00 45 0F 80 0D 03 02 00 00 00 00 CF [21:55:52]Write i2c OK [21:55:52]MH_I2C_Read... [21:55:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:52]Read from MH i2c: E2 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: E2 0B 00 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: E2 0B 00 45 0F 00 3E BD 1E 73 68 05 26 0F 90 00 FE [21:55:52]RAPDU: 3E BD 1E 73 68 05 26 0F 90 00 [21:55:52]wFMCommunicate OK [21:55:52]SAM_PROTO_SignData done [21:55:52]FM_MakeSignedData done [21:55:52]CreateOFDProtocolMessage [21:55:52]wFMCommunicate request_size=4 [21:55:52]MH_SAM_APDU [21:55:52]CAPDU: 80 11 00 00 [21:55:52]Write to MH i2c: E2 08 00 46 0F 80 11 00 00 00 00 00 00 CF [21:55:52]Write i2c OK [21:55:52]MH_I2C_Read... [21:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:52]Read from MH i2c: E2 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: E2 17 00 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: E2 17 00 46 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 22 [21:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:55:52]wFMCommunicate OK [21:55:52]CreateOFDProtocolMessage done [21:55:52]OFDSenderStorePacket 149036 [21:55:52]StoreOFDPacket docnum=149036 [21:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 25 CF 07 01 90 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 67 8D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2C 46 02 00 35 04 06 00 C7 8B AA 29 88 E9 3E BD 1E 73 68 05 26 0F [21:55:52]CheckFolder [21:55:52]dirname=/storage/ofd_packets [21:55:52]CheckFolder done [21:55:52]ProducePacketName [21:55:52]name=ofd_packets/00149036 [21:55:52]NVStorageSaveData ofd_packets/00149036 [21:55:52]File name is /storage/ofd_packets/00149036 [21:55:52]Write 301 bytes [21:55:52]NVStorageSaveData done [21:55:52]OFDSenderStorePacket done [21:55:52]KKMCreateOFDPacket done [21:55:52]NVStorageSaveData kkm_last_timestamp [21:55:52]File name is /storage/kkm_last_timestamp [21:55:52]Write 4 bytes [21:55:52]NVStorageSaveData done [21:55:52]ExternCall_PrintAddStr [21:55:52]wPrintStart [21:55:52]Write to MH i2c: 01 00 00 47 0F 56 [21:55:52]Write i2c OK [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: 01 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: 01 07 00 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: 01 07 00 47 0F 00 00 00 00 00 FF 0F 6B [21:55:52]RasterBufferAndPrint [21:55:52]line Счет N : (1)979968 [21:55:52]line ИНН: 02508201610067 [21:55:52]line Контрольно-Кассовый Чек [21:55:52]line ПРОДАЖА [21:55:52]line ТРК (МРК, ГНК) : 22 [21:55:52]line Товар: 2710124130 [21:55:52]line Аи-92-К-5 [21:55:52]line 14.950 * 66.90 [21:55:52]line = 1000.16 [21:55:52]line НДС 12% НСП 1% [21:55:52]line > о реализуемом товаре [21:55:52]line ОКРУГЛЕНИЕ: -0.16 [21:55:52]line ИТОГО: 1000.00 [21:55:52]line Внесено: 1000.00 [21:55:52]line СДАЧА: 0.00 [21:55:52]line НСП 1% : 8.85 [21:55:52]line НДС 12% : 106.21 [21:55:52]line Наличными: 1000.00 [21:55:52]line Безнал.: 0.00 [21:55:52]line Место: АЗС № 68 "Партнер Нефть" [21:55:52]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:55:52]line СНО: Общий режим [21:55:52]line Чек 375 04.06.2024 21:55 [21:55:52]line Смена: 368 ФФД: 1.0 [21:55:52]line ЗНМ: 0300000035 [21:55:52]line РНМ: 0000000000092720 [21:55:52]line Версия ККМ: 001 [21:55:52]line ФМ: 0000000000875057 [21:55:52]line ФД: 149036 [21:55:52]line ФПД: 219402669230313 [21:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215551&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149036&fm=219402669230313&tin=02508201610067®Number=0000000000092720&sum=100000 [21:55:52]OFD Sender: Processing packet 149036 [packets to send 100, broken 99] [21:55:52]ProducePacketName [21:55:52]name=ofd_packets/00149036 [21:55:52]OFD Sender: To server: pG, [21:55:52]CommunicateWithHost lk.salyk.kg:30040 [21:55:52]ConnectInit lk.salyk.kg [21:55:52]written 0, free lines is 4095 [21:55:52]Connected sock=11 [21:55:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 25 CF 07 01 90 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 67 8D 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2C 46 02 00 35 04 06 00 C7 8B AA 29 88 E9 3E BD 1E 73 68 05 26 0F [21:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F2 BE 47 00 1E E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2C 46 02 00 F4 03 04 00 89 34 5F 66 B6 04 01 00 00 AF 47 31 23 47 F5 3A 94 [21:55:52]CommunicateWithHost err = 0 [21:55:52]CheckOFDResponse [21:55:52]1017 (14) - 77093643461234 [21:55:52]1041 (16) - 0000000000875057 [21:55:52]1040 (4) - 149036 [21:55:52]1012 (4) - 04.06.2024 15:36 [21:55:52]1206 (1) - 0 [21:55:52]OFD Sender: Remove packet 149036 [21:55:52]ProducePacketName [21:55:52]name=ofd_packets/00149036 [21:55:52]NVStorageDeleteData [21:55:52]Write to MH i2c: 01 00 00 72 0F 81 [21:55:52]Write i2c OK [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: 01 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: 01 07 00 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: 01 07 00 72 0F 00 00 00 00 00 6F 0C 03 [21:55:52]RasterBufferAndPrint [21:55:52]line [21:55:52]line [21:55:52]line [21:55:52]line [21:55:52]line [21:55:52]written 0, free lines is 3185 [21:55:52]MH_Cut [21:55:52]Write to MH i2c: D1 01 00 79 0F 01 5A [21:55:52]Write i2c OK [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: D1 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: D1 01 00 [21:55:52]MH_I2C_Read... [21:55:52]Read from MH i2c: D1 01 00 79 0F 00 59 [21:55:52]Write to MH i2c: 01 00 00 7A 0F 89 [21:55:52]Write i2c OK [21:55:52]MH_I2C_Read... [21:55:53]OFD Sender: No OFD packet to send [21:55:54]*** Cut start [21:55:54]*** Partial cut [21:55:54]*** CUTSNS_PIN = 1 [21:55:54]*** CUTSNS_PIN = 0 [21:55:54]*** Brake cut motor [21:55:54]Read from MH i2c: 01 [21:55:54]MH_I2C_Read... [21:55:54]*** Stop cut motor [21:55:54]*** Cut end [21:55:54]Read from MH i2c: 01 07 00 [21:55:54]MH_I2C_Read... [21:55:54]Read from MH i2c: 01 07 00 7A 0F 00 00 00 00 00 FF 0F 9E [21:55:54]process_action close_receipt done [21:55:54]requested_data is exist [21:55:54]produce_requested_data [21:55:54]requested_item fm.sn is exist - process it [21:55:54]wFMCommunicate request_size=4 [21:55:54]MH_SAM_APDU [21:55:54]CAPDU: 80 11 00 00 [21:55:54]Write to MH i2c: E2 08 00 7B 0F 80 11 00 00 00 00 00 00 04 [21:55:54]Write i2c OK [21:55:54]MH_I2C_Read... [21:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:54]Read from MH i2c: E2 [21:55:54]MH_I2C_Read... [21:55:54]Read from MH i2c: E2 17 00 [21:55:54]MH_I2C_Read... [21:55:54]Read from MH i2c: E2 17 00 7B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 57 [21:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:55:54]wFMCommunicate OK [21:55:54]requested_item fd.num is exist - process it [21:55:54]SAM_PROTO_GetFieldsCounters [21:55:54]wFMCommunicate request_size=4 [21:55:54]MH_SAM_APDU [21:55:54]CAPDU: 80 13 00 00 [21:55:54]Write to MH i2c: E2 08 00 7C 0F 80 13 00 00 00 00 00 00 07 [21:55:54]Write i2c OK [21:55:54]MH_I2C_Read... [21:55:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:55]Read from MH i2c: E2 [21:55:55]MH_I2C_Read... [21:55:55]Read from MH i2c: E2 62 00 [21:55:55]MH_I2C_Read... [21:55:55]Read from MH i2c: E2 62 00 7C 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [21:55:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:55]wFMCommunicate OK [21:55:55]SAM_PROTO_GetFieldsCounters done [21:55:55]requested_item shift.num is exist - process it [21:55:55]requested_item shift.opened is exist - process it [21:55:55]req_shift_opened [21:55:55]FM_GetShiftState [21:55:55]SAM_PROTO_GetShiftState [21:55:55]wFMCommunicate request_size=4 [21:55:55]MH_SAM_APDU [21:55:55]CAPDU: 80 13 01 00 [21:55:55]Write to MH i2c: E2 08 00 7D 0F 80 13 01 00 00 00 00 00 09 [21:55:55]Write i2c OK [21:55:55]MH_I2C_Read... [21:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:55]Read from MH i2c: E2 [21:55:55]MH_I2C_Read... [21:55:55]Read from MH i2c: E2 0E 00 [21:55:55]MH_I2C_Read... [21:55:55]Read from MH i2c: E2 0E 00 7D 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CC [21:55:55]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:55:55]wFMCommunicate OK [21:55:55]SAM_PROTO_GetShiftState done [21:55:55]FM_GetShiftState done [21:55:55]req_shift_opened done [21:55:55]requested_item shift.open_date is exist - process it [21:55:55]req_shift_open_date [21:55:55]req_shift_open_date done [21:55:55]produce_requested_data done [21:55:55]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149036,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:55:55]process_action_free close_receipt [21:55:55]json_value_free [21:55:55]json_value_free done [21:55:55]process_json_proto returns [21:55:55]Send response to host [21:55:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149036,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:55:55]free response buf [21:55:55]execute_script done [21:55:55]execute_script returns [21:55:55]free content buf [21:55:55]Sock 7.Close socket [21:55:55]Sock 7.Thread stoped [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:50]accept exits with 9 [21:58:50]New connection [21:58:50]New thread 3067075940 created [21:58:50]Thread 3067219300 joined [21:58:50]Waiting for new connection... [21:58:50] Sock 9.Parse request [21:58:50]Sock 9.Check first char [21:58:50]Sock 9.First char is OK [21:58:50]request: POST /json_proto HTTP/1.0 [21:58:50]Method: POST [21:58:50]URL: /json_proto [21:58:50]Method is POST - this is cgi request [21:58:50]url: /json_proto [21:58:50]query_string will be loaded in cgi processing [21:58:50]execute_cgi json_proto POST (null) [21:58:50]execute_cgi path=json_proto method=POST [21:58:50]POST find Content-Length [21:58:50]Host: 172.17.38.4:8080 [21:58:50]Content-Length: 677 [21:58:50]Content-Type: application/json [21:58:50] [21:58:50]POST finish read [21:58:50]Found Content-Length = 677 [21:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:50]execute_script... [21:58: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)979969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:50]POST & json_proto [21:58:50]process_json_proto [21:58:50]json parsed OK: [21:58:50]protocol is kg_v1.0 [21:58:50]action value=close_receipt [21:58:50]process_action close_receipt [21:58:50]cmd_close_receipt [21:58:50]MH_GetDate [21:58:50]Write to MH i2c: F0 00 00 7E 0F 7C [21:58:50]Write i2c OK [21:58:50]MH_I2C_Read... [21:58:50]Read from MH i2c: F0 [21:58:50]MH_I2C_Read... [21:58:50]Read from MH i2c: F0 09 00 [21:58:50]MH_I2C_Read... [21:58:50]Read from MH i2c: F0 09 00 7E 0F 00 1A 8E 5F 66 CC 51 87 64 FA [21:58:50]GetLastDocTimeStamp 1717538151 [21:58:50]current date 1717538330 [21:58:50]FM_GetShiftState [21:58:50]SAM_PROTO_GetShiftState [21:58:50]wFMCommunicate request_size=4 [21:58:50]MH_SAM_APDU [21:58:50]CAPDU: 80 13 01 00 [21:58:50]Write to MH i2c: E2 08 00 7F 0F 80 13 01 00 00 00 00 00 0B [21:58:50]Write i2c OK [21:58:50]MH_I2C_Read... [21:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:50]Read from MH i2c: E2 [21:58:50]MH_I2C_Read... [21:58:50]Read from MH i2c: E2 0E 00 [21:58:50]MH_I2C_Read... [21:58:50]Read from MH i2c: E2 0E 00 7F 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 CE [21:58:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:58:50]wFMCommunicate OK [21:58:50]SAM_PROTO_GetShiftState done [21:58:50]FM_GetShiftState done [21:58:50]opened in 1717460629 [21:58:50]opened+sec_in_day 1717547029 [21:58:50]quantity*price = 50041 [21:58:50]sum+1 = 50042 [21:58:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 376 04.06.2024 21:58 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149037 ФПД: 87852182762799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215850&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149037&fm=87852182762799&tin=02508201610067®Number=0000000000092720&sum=50000 [21:58:51]StoreToDocumentArchive [21:58:51]shift 368 fd 149037 [21:58:51]save to /storage/0368/doc_00149037 [21:58:51]save last doc name /storage/0368/doc_00149037 to /storage/kkm_last_doc_name [21:58:51]save OK [21:58:51]Clear old archive folders... [21:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:51]tlvbuf is 0098AC30 [21:58:51]SAM_PROTO_ClearQueue [21:58:51]wFMCommunicate request_size=4 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 09 00 00 [21:58:51]Write to MH i2c: E2 08 00 8C 0F 80 09 00 00 00 00 00 00 0D [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 [21:58:51]MH_I2C_Read... [21:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:51]Read from MH i2c: E2 03 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 8C 0F 00 90 00 0F [21:58:51]RAPDU: 90 00 [21:58:51]wFMCommunicate OK [21:58:51]SAM_PROTO_ClearQueue done [21:58:51]KKMCreateOFDPacket [21:58:51]OFDProtocolAddRootSTLVToBuf [21:58:51]FM_MakeSignedData [21:58:51]FM_MakeSignedData [21:58:51]SAM_PROTO_SignData [21:58:51]wFMCommunicate request_size=4 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 0D 01 02 [21:58:51]Write to MH i2c: E2 08 00 8D 0F 80 0D 01 02 00 00 00 00 15 [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:51]Read from MH i2c: E2 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 8D 0F 00 90 00 10 [21:58:51]RAPDU: 90 00 [21:58:51]wFMCommunicate OK [21:58:51]wFMCommunicate request_size=255 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 1A 8E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2D 46 02 00 35 04 06 00 4F [21:58:51]Write to MH i2c: E2 02 01 8E 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 1A 8E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2D 46 02 00 35 04 06 00 4F 00 00 BA [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:51]Read from MH i2c: E2 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 8E 0F 00 90 00 11 [21:58:51]RAPDU: 90 00 [21:58:51]wFMCommunicate OK [21:58:51]wFMCommunicate request_size=10 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 0D 02 02 05 E6 AE 25 75 2F [21:58:51]Write to MH i2c: E2 0D 00 8F 0F 80 0D 02 02 05 00 E6 AE 25 75 2F 00 00 7F [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:51]Read from MH i2c: E2 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 8F 0F 00 90 00 12 [21:58:51]RAPDU: 90 00 [21:58:51]wFMCommunicate OK [21:58:51]wFMCommunicate request_size=4 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 0D 03 02 [21:58:51]Write to MH i2c: E2 08 00 90 0F 80 0D 03 02 00 00 00 00 1A [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:51]Read from MH i2c: E2 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 0B 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 0B 00 90 0F 00 47 67 0E 32 3E 1A 72 2E 90 00 01 [21:58:51]RAPDU: 47 67 0E 32 3E 1A 72 2E 90 00 [21:58:51]wFMCommunicate OK [21:58:51]SAM_PROTO_SignData done [21:58:51]FM_MakeSignedData done [21:58:51]CreateOFDProtocolMessage [21:58:51]wFMCommunicate request_size=4 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 11 00 00 [21:58:51]Write to MH i2c: E2 08 00 91 0F 80 11 00 00 00 00 00 00 1A [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:51]Read from MH i2c: E2 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 17 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 17 00 91 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6D [21:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:58:51]wFMCommunicate OK [21:58:51]CreateOFDProtocolMessage done [21:58:51]OFDSenderStorePacket 149037 [21:58:51]StoreOFDPacket docnum=149037 [21:58:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 97 8B 07 01 59 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 1A 8E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2D 46 02 00 35 04 06 00 4F E6 AE 25 75 2F 47 67 0E 32 3E 1A 72 2E [21:58:51]CheckFolder [21:58:51]dirname=/storage/ofd_packets [21:58:51]CheckFolder done [21:58:51]ProducePacketName [21:58:51]name=ofd_packets/00149037 [21:58:51]NVStorageSaveData ofd_packets/00149037 [21:58:51]File name is /storage/ofd_packets/00149037 [21:58:51]Write 301 bytes [21:58:51]NVStorageSaveData done [21:58:51]OFDSenderStorePacket done [21:58:51]KKMCreateOFDPacket done [21:58:51]NVStorageSaveData kkm_last_timestamp [21:58:51]File name is /storage/kkm_last_timestamp [21:58:51]Write 4 bytes [21:58:51]NVStorageSaveData done [21:58:51]ExternCall_PrintAddStr [21:58:51]wPrintStart [21:58:51]Write to MH i2c: 01 00 00 92 0F A1 [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: 01 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: 01 07 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: 01 07 00 92 0F 00 00 00 00 00 FF 0F B6 [21:58:51]RasterBufferAndPrint [21:58:51]line Счет N : (1)979969 [21:58:51]line ИНН: 02508201610067 [21:58:51]line Контрольно-Кассовый Чек [21:58:51]line ПРОДАЖА [21:58:51]line ТРК (МРК, ГНК) : 41 [21:58:51]line Товар: 2710124130 [21:58:51]line Аи-92-К-5 [21:58:51]line 7.480 * 66.90 [21:58:51]line = 500.41 [21:58:51]line НДС 12% НСП 1% [21:58:51]line > о реализуемом товаре [21:58:51]line ОКРУГЛЕНИЕ: -0.41 [21:58:51]line ИТОГО: 500.00 [21:58:51]line Внесено: 500.00 [21:58:51]line СДАЧА: 0.00 [21:58:51]line НСП 1% : 4.43 [21:58:51]line НДС 12% : 53.14 [21:58:51]line Наличными: 500.00 [21:58:51]line Безнал.: 0.00 [21:58:51]line Место: АЗС № 68 "Партнер Нефть" [21:58:51]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [21:58:51]line СНО: Общий режим [21:58:51]line Чек 376 04.06.2024 21:58 [21:58:51]line Смена: 368 ФФД: 1.0 [21:58:51]line ЗНМ: 0300000035 [21:58:51]line РНМ: 0000000000092720 [21:58:51]line Версия ККМ: 001 [21:58:51]line ФМ: 0000000000875057 [21:58:51]line ФД: 149037 [21:58:51]line ФПД: 87852182762799 [21:58:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215850&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149037&fm=87852182762799&tin=02508201610067®Number=0000000000092720&sum=50000 [21:58:52]OFD Sender: Processing packet 149037 [packets to send 100, broken 99] [21:58:52]ProducePacketName [21:58:52]name=ofd_packets/00149037 [21:58:52]OFD Sender: To server: pG, [21:58:52]CommunicateWithHost lk.salyk.kg:30040 [21:58:52]ConnectInit lk.salyk.kg [21:58:52]written 0, free lines is 4095 [21:58:52]Connected sock=11 [21:58:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 97 8B 07 01 59 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 1A 8E 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2D 46 02 00 35 04 06 00 4F E6 AE 25 75 2F 47 67 0E 32 3E 1A 72 2E [21:58:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B8 8F 47 00 89 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2D 46 02 00 F4 03 04 00 3D 35 5F 66 B6 04 01 00 00 4F 4C B8 B7 11 26 E9 9A [21:58:52]CommunicateWithHost err = 0 [21:58:52]CheckOFDResponse [21:58:52]1017 (14) - 77093643461234 [21:58:52]1041 (16) - 0000000000875057 [21:58:52]1040 (4) - 149037 [21:58:52]1012 (4) - 04.06.2024 15:39 [21:58:52]1206 (1) - 0 [21:58:52]OFD Sender: Remove packet 149037 [21:58:52]ProducePacketName [21:58:52]name=ofd_packets/00149037 [21:58:52]NVStorageDeleteData [21:58:52]Write to MH i2c: 01 00 00 BD 0F CC [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: 01 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: 01 07 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: 01 07 00 BD 0F 00 00 00 00 00 6C 0C 4B [21:58:52]RasterBufferAndPrint [21:58:52]line [21:58:52]line [21:58:52]line [21:58:52]line [21:58:52]line [21:58:52]written 0, free lines is 3183 [21:58:52]MH_Cut [21:58:52]Write to MH i2c: D1 01 00 C4 0F 01 A5 [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: D1 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: D1 01 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: D1 01 00 C4 0F 00 A4 [21:58:52]Write to MH i2c: 01 00 00 C5 0F D4 [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:53]OFD Sender: No OFD packet to send [21:58:53]*** Cut start [21:58:53]*** Partial cut [21:58:53]*** CUTSNS_PIN = 1 [21:58:53]*** CUTSNS_PIN = 0 [21:58:54]*** Brake cut motor [21:58:54]Read from MH i2c: 01 [21:58:54]MH_I2C_Read... [21:58:54]*** Stop cut motor [21:58:54]*** Cut end [21:58:54]Read from MH i2c: 01 07 00 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: 01 07 00 C5 0F 00 00 00 00 00 FF 0F E9 [21:58:54]process_action close_receipt done [21:58:54]requested_data is exist [21:58:54]produce_requested_data [21:58:54]requested_item fm.sn is exist - process it [21:58:54]wFMCommunicate request_size=4 [21:58:54]MH_SAM_APDU [21:58:54]CAPDU: 80 11 00 00 [21:58:54]Write to MH i2c: E2 08 00 C6 0F 80 11 00 00 00 00 00 00 4F [21:58:54]Write i2c OK [21:58:54]MH_I2C_Read... [21:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:54]Read from MH i2c: E2 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 17 00 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 17 00 C6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A2 [21:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [21:58:54]wFMCommunicate OK [21:58:54]requested_item fd.num is exist - process it [21:58:54]SAM_PROTO_GetFieldsCounters [21:58:54]wFMCommunicate request_size=4 [21:58:54]MH_SAM_APDU [21:58:54]CAPDU: 80 13 00 00 [21:58:54]Write to MH i2c: E2 08 00 C7 0F 80 13 00 00 00 00 00 00 52 [21:58:54]Write i2c OK [21:58:54]MH_I2C_Read... [21:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:54]Read from MH i2c: E2 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 62 00 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 62 00 C7 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [21:58:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:54]wFMCommunicate OK [21:58:54]SAM_PROTO_GetFieldsCounters done [21:58:54]requested_item shift.num is exist - process it [21:58:54]requested_item shift.opened is exist - process it [21:58:54]req_shift_opened [21:58:54]FM_GetShiftState [21:58:54]SAM_PROTO_GetShiftState [21:58:54]wFMCommunicate request_size=4 [21:58:54]MH_SAM_APDU [21:58:54]CAPDU: 80 13 01 00 [21:58:54]Write to MH i2c: E2 08 00 C8 0F 80 13 01 00 00 00 00 00 54 [21:58:54]Write i2c OK [21:58:54]MH_I2C_Read... [21:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:54]Read from MH i2c: E2 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 0E 00 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 0E 00 C8 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 17 [21:58:54]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [21:58:54]wFMCommunicate OK [21:58:54]SAM_PROTO_GetShiftState done [21:58:54]FM_GetShiftState done [21:58:54]req_shift_opened done [21:58:54]requested_item shift.open_date is exist - process it [21:58:54]req_shift_open_date [21:58:54]req_shift_open_date done [21:58:54]produce_requested_data done [21:58:54]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149037,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [21:58:54]process_action_free close_receipt [21:58:54]json_value_free [21:58:54]json_value_free done [21:58:54]process_json_proto returns [21:58:54]Send response to host [21:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149037,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [21:58:54]free response buf [21:58:54]execute_script done [21:58:54]execute_script returns [21:58:54]free content buf [21:58:54]Sock 9.Close socket [21:58:54]Sock 9.Thread stoped [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]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: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:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:32]accept exits with 7 [22:07:32]New connection [22:07:32]New thread 3067219300 created [22:07:32]Thread 3067075940 joined [22:07:32]Waiting for new connection... [22:07:32] Sock 7.Parse request [22:07:32]Sock 7.Check first char [22:07:32]Sock 7.First char is OK [22:07:32]request: POST /json_proto HTTP/1.0 [22:07:32]Method: POST [22:07:32]URL: /json_proto [22:07:32]Method is POST - this is cgi request [22:07:32]url: /json_proto [22:07:32]query_string will be loaded in cgi processing [22:07:32]execute_cgi json_proto POST (null) [22:07:32]execute_cgi path=json_proto method=POST [22:07:32]POST find Content-Length [22:07:32]Host: 172.17.38.4:8080 [22:07:32]Content-Length: 682 [22:07:32]Content-Type: application/json [22:07:32] [22:07:32]POST finish read [22:07:32]Found Content-Length = 682 [22:07:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:32]execute_script... [22:07: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)979970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:32]POST & json_proto [22:07:32]process_json_proto [22:07:32]json parsed OK: [22:07:32]protocol is kg_v1.0 [22:07:32]action value=close_receipt [22:07:32]process_action close_receipt [22:07:32]cmd_close_receipt [22:07:32]MH_GetDate [22:07:32]Write to MH i2c: F0 00 00 C9 0F C7 [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: F0 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: F0 09 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: F0 09 00 C9 0F 00 24 90 5F 66 CC 51 87 64 51 [22:07:32]GetLastDocTimeStamp 1717538330 [22:07:32]current date 1717538852 [22:07:32]FM_GetShiftState [22:07:32]SAM_PROTO_GetShiftState [22:07:32]wFMCommunicate request_size=4 [22:07:32]MH_SAM_APDU [22:07:32]CAPDU: 80 13 01 00 [22:07:32]Write to MH i2c: E2 08 00 CA 0F 80 13 01 00 00 00 00 00 56 [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:32]Read from MH i2c: E2 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 0E 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: E2 0E 00 CA 0F 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 19 [22:07:32]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:07:32]wFMCommunicate OK [22:07:32]SAM_PROTO_GetShiftState done [22:07:32]FM_GetShiftState done [22:07:32]opened in 1717460629 [22:07:32]opened+sec_in_day 1717547029 [22:07:32]quantity*price = 100015 [22:07:32]sum+1 = 100017 [22:07: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 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 377 04.06.2024 22:07 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149038 ФПД: 265593090609189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T220732&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149038&fm=265593090609189&tin=02508201610067®Number=0000000000092720&sum=100000 [22:07:33]StoreToDocumentArchive [22:07:33]shift 368 fd 149038 [22:07:33]save to /storage/0368/doc_00149038 [22:07:33]save last doc name /storage/0368/doc_00149038 to /storage/kkm_last_doc_name [22:07:33]save OK [22:07:33]Clear old archive folders... [22:07:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:33]tlvbuf is 009B5C40 [22:07:33]SAM_PROTO_ClearQueue [22:07:33]wFMCommunicate request_size=4 [22:07:33]MH_SAM_APDU [22:07:33]CAPDU: 80 09 00 00 [22:07:33]Write to MH i2c: E2 08 00 D7 0F 80 09 00 00 00 00 00 00 58 [22:07:33]Write i2c OK [22:07:33]MH_I2C_Read... [22:07:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:33]Read from MH i2c: E2 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 03 00 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 03 00 D7 0F 00 90 00 5A [22:07:33]RAPDU: 90 00 [22:07:33]wFMCommunicate OK [22:07:33]SAM_PROTO_ClearQueue done [22:07:33]KKMCreateOFDPacket [22:07:33]OFDProtocolAddRootSTLVToBuf [22:07:33]FM_MakeSignedData [22:07:33]FM_MakeSignedData [22:07:33]SAM_PROTO_SignData [22:07:33]wFMCommunicate request_size=4 [22:07:33]MH_SAM_APDU [22:07:33]CAPDU: 80 0D 01 02 [22:07:33]Write to MH i2c: E2 08 00 D8 0F 80 0D 01 02 00 00 00 00 60 [22:07:33]Write i2c OK [22:07:33]MH_I2C_Read... [22:07:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:33]Read from MH i2c: E2 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 03 00 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 03 00 D8 0F 00 90 00 5B [22:07:33]RAPDU: 90 00 [22:07:33]wFMCommunicate OK [22:07:33]wFMCommunicate request_size=255 [22:07:33]MH_SAM_APDU [22:07:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 24 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2E 46 02 00 35 04 06 00 F1 [22:07:33]Write to MH i2c: E2 02 01 D9 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 79 01 00 00 F4 03 04 00 24 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2E 46 02 00 35 04 06 00 F1 00 00 AF [22:07:33]Write i2c OK [22:07:33]MH_I2C_Read... [22:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:33]Read from MH i2c: E2 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 03 00 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 03 00 D9 0F 00 90 00 5C [22:07:33]RAPDU: 90 00 [22:07:33]wFMCommunicate OK [22:07:33]wFMCommunicate request_size=10 [22:07:33]MH_SAM_APDU [22:07:33]CAPDU: 80 0D 02 02 05 8E 35 D2 10 25 [22:07:33]Write to MH i2c: E2 0D 00 DA 0F 80 0D 02 02 05 00 8E 35 D2 10 25 00 00 37 [22:07:33]Write i2c OK [22:07:33]MH_I2C_Read... [22:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:33]Read from MH i2c: E2 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 03 00 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 03 00 DA 0F 00 90 00 5D [22:07:33]RAPDU: 90 00 [22:07:33]wFMCommunicate OK [22:07:33]wFMCommunicate request_size=4 [22:07:33]MH_SAM_APDU [22:07:33]CAPDU: 80 0D 03 02 [22:07:33]Write to MH i2c: E2 08 00 DB 0F 80 0D 03 02 00 00 00 00 65 [22:07:33]Write i2c OK [22:07:33]MH_I2C_Read... [22:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:33]OFD Sender: No OFD packet to send [22:07:33]Read from MH i2c: E2 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 0B 00 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 0B 00 DB 0F 00 DC 99 2E 5B FC 83 49 72 90 00 9E [22:07:33]RAPDU: DC 99 2E 5B FC 83 49 72 90 00 [22:07:33]wFMCommunicate OK [22:07:33]SAM_PROTO_SignData done [22:07:33]FM_MakeSignedData done [22:07:33]CreateOFDProtocolMessage [22:07:33]wFMCommunicate request_size=4 [22:07:33]MH_SAM_APDU [22:07:33]CAPDU: 80 11 00 00 [22:07:33]Write to MH i2c: E2 08 00 DC 0F 80 11 00 00 00 00 00 00 65 [22:07:33]Write i2c OK [22:07:33]MH_I2C_Read... [22:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:33]Read from MH i2c: E2 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 17 00 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: E2 17 00 DC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B8 [22:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:07:33]wFMCommunicate OK [22:07:33]CreateOFDProtocolMessage done [22:07:33]OFDSenderStorePacket 149038 [22:07:33]StoreOFDPacket docnum=149038 [22:07:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C7 03 07 01 91 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 24 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2E 46 02 00 35 04 06 00 F1 8E 35 D2 10 25 DC 99 2E 5B FC 83 49 72 [22:07:33]CheckFolder [22:07:33]dirname=/storage/ofd_packets [22:07:33]CheckFolder done [22:07:33]ProducePacketName [22:07:33]name=ofd_packets/00149038 [22:07:33]NVStorageSaveData ofd_packets/00149038 [22:07:33]File name is /storage/ofd_packets/00149038 [22:07:33]Write 301 bytes [22:07:33]NVStorageSaveData done [22:07:33]OFDSenderStorePacket done [22:07:33]KKMCreateOFDPacket done [22:07:33]NVStorageSaveData kkm_last_timestamp [22:07:33]File name is /storage/kkm_last_timestamp [22:07:33]Write 4 bytes [22:07:33]NVStorageSaveData done [22:07:33]ExternCall_PrintAddStr [22:07:33]wPrintStart [22:07:33]Write to MH i2c: 01 00 00 DD 0F EC [22:07:33]Write i2c OK [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: 01 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: 01 07 00 [22:07:33]MH_I2C_Read... [22:07:33]Read from MH i2c: 01 07 00 DD 0F 00 00 00 00 00 FF 0F 01 [22:07:33]RasterBufferAndPrint [22:07:33]line Счет N : (1)979970 [22:07:33]line ИНН: 02508201610067 [22:07:33]line Контрольно-Кассовый Чек [22:07:33]line ПРОДАЖА [22:07:33]line ТРК (МРК, ГНК) : 22 [22:07:33]line Товар: 2710124130 [22:07:33]line Аи-92-К-5 [22:07:33]line 14.950 * 66.90 [22:07:33]line = 1000.16 [22:07:33]line НДС 12% НСП 1% [22:07:33]line > о реализуемом товаре [22:07:33]line ОКРУГЛЕНИЕ: -0.16 [22:07:33]line ИТОГО: 1000.00 [22:07:33]line Внесено: 1000.00 [22:07:33]line СДАЧА: 0.00 [22:07:33]line НСП 1% : 8.85 [22:07:33]line НДС 12% : 106.21 [22:07:33]line Наличными: 1000.00 [22:07:33]line Безнал.: 0.00 [22:07:33]line Место: АЗС № 68 "Партнер Нефть" [22:07:33]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:07:33]line СНО: Общий режим [22:07:33]line Чек 377 04.06.2024 22:07 [22:07:33]line Смена: 368 ФФД: 1.0 [22:07:33]line ЗНМ: 0300000035 [22:07:33]line РНМ: 0000000000092720 [22:07:33]line Версия ККМ: 001 [22:07:33]line ФМ: 0000000000875057 [22:07:33]line ФД: 149038 [22:07:33]line ФПД: 265593090609189 [22:07:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T220732&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149038&fm=265593090609189&tin=02508201610067®Number=0000000000092720&sum=100000 [22:07:34]OFD Sender: Processing packet 149038 [packets to send 100, broken 99] [22:07:34]ProducePacketName [22:07:34]name=ofd_packets/00149038 [22:07:34]OFD Sender: To server: pG, [22:07:34]CommunicateWithHost lk.salyk.kg:30040 [22:07:34]ConnectInit lk.salyk.kg [22:07:34]written 0, free lines is 4095 [22:07:34]Connected sock=10 [22:07:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C7 03 07 01 91 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 24 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2E 46 02 00 35 04 06 00 F1 8E 35 D2 10 25 DC 99 2E 5B FC 83 49 72 [22:07:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 1E 29 47 00 A4 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2E 46 02 00 F4 03 04 00 47 37 5F 66 B6 04 01 00 00 0A 63 11 E5 CF B7 5E 7F [22:07:34]CommunicateWithHost err = 0 [22:07:34]CheckOFDResponse [22:07:34]1017 (14) - 77093643461234 [22:07:34]1041 (16) - 0000000000875057 [22:07:34]1040 (4) - 149038 [22:07:34]1012 (4) - 04.06.2024 15:48 [22:07:34]1206 (1) - 0 [22:07:34]OFD Sender: Remove packet 149038 [22:07:34]ProducePacketName [22:07:34]name=ofd_packets/00149038 [22:07:34]NVStorageDeleteData [22:07:34]Write to MH i2c: 01 00 00 08 10 18 [22:07:34]Write i2c OK [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: 01 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: 01 07 00 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: 01 07 00 08 10 00 00 00 00 00 63 0C 8E [22:07:34]RasterBufferAndPrint [22:07:34]line [22:07:34]line [22:07:34]line [22:07:34]line [22:07:34]line [22:07:34]written 0, free lines is 3176 [22:07:34]MH_Cut [22:07:34]Write to MH i2c: D1 01 00 0F 10 01 F1 [22:07:34]Write i2c OK [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: D1 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: D1 01 00 [22:07:34]MH_I2C_Read... [22:07:34]Read from MH i2c: D1 01 00 0F 10 00 F0 [22:07:34]Write to MH i2c: 01 00 00 10 10 20 [22:07:34]Write i2c OK [22:07:34]MH_I2C_Read... [22:07:34]OFD Sender: No OFD packet to send [22:07:35]*** Cut start [22:07:35]*** Partial cut [22:07:35]*** CUTSNS_PIN = 1 [22:07:35]*** CUTSNS_PIN = 0 [22:07:36]*** Brake cut motor [22:07:36]Read from MH i2c: 01 [22:07:36]MH_I2C_Read... [22:07:36]*** Stop cut motor [22:07:36]*** Cut end [22:07:36]Read from MH i2c: 01 07 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: 01 07 00 10 10 00 00 00 00 00 FF 0F 35 [22:07:36]process_action close_receipt done [22:07:36]requested_data is exist [22:07:36]produce_requested_data [22:07:36]requested_item fm.sn is exist - process it [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 11 00 00 [22:07:36]Write to MH i2c: E2 08 00 11 10 80 11 00 00 00 00 00 00 9B [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 17 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 17 00 11 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EE [22:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:07:36]wFMCommunicate OK [22:07:36]requested_item fd.num is exist - process it [22:07:36]SAM_PROTO_GetFieldsCounters [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 13 00 00 [22:07:36]Write to MH i2c: E2 08 00 12 10 80 13 00 00 00 00 00 00 9E [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 62 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 62 00 12 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2E 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [22:07:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2E 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:36]wFMCommunicate OK [22:07:36]SAM_PROTO_GetFieldsCounters done [22:07:36]requested_item shift.num is exist - process it [22:07:36]requested_item shift.opened is exist - process it [22:07:36]req_shift_opened [22:07:36]FM_GetShiftState [22:07:36]SAM_PROTO_GetShiftState [22:07:36]wFMCommunicate request_size=4 [22:07:36]MH_SAM_APDU [22:07:36]CAPDU: 80 13 01 00 [22:07:36]Write to MH i2c: E2 08 00 13 10 80 13 01 00 00 00 00 00 A0 [22:07:36]Write i2c OK [22:07:36]MH_I2C_Read... [22:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:36]Read from MH i2c: E2 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 0E 00 [22:07:36]MH_I2C_Read... [22:07:36]Read from MH i2c: E2 0E 00 13 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 63 [22:07:36]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:07:36]wFMCommunicate OK [22:07:36]SAM_PROTO_GetShiftState done [22:07:36]FM_GetShiftState done [22:07:36]req_shift_opened done [22:07:36]requested_item shift.open_date is exist - process it [22:07:36]req_shift_open_date [22:07:36]req_shift_open_date done [22:07:36]produce_requested_data done [22:07:36]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149038,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:07:36]process_action_free close_receipt [22:07:36]json_value_free [22:07:36]json_value_free done [22:07:36]process_json_proto returns [22:07:36]Send response to host [22:07:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149038,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:07:36]free response buf [22:07:36]execute_script done [22:07:36]execute_script returns [22:07:36]free content buf [22:07:36]Sock 7.Close socket [22:07:36]Sock 7.Thread stoped [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:23]accept exits with 9 [22:10:23]New connection [22:10:23]New thread 3067075940 created [22:10:23]Thread 3067219300 joined [22:10:23]Waiting for new connection... [22:10:23] Sock 9.Parse request [22:10:23]Sock 9.Check first char [22:10:23]Sock 9.First char is OK [22:10:23]request: POST /json_proto HTTP/1.0 [22:10:23]Method: POST [22:10:23]URL: /json_proto [22:10:23]Method is POST - this is cgi request [22:10:23]url: /json_proto [22:10:23]query_string will be loaded in cgi processing [22:10:23]execute_cgi json_proto POST (null) [22:10:23]execute_cgi path=json_proto method=POST [22:10:23]POST find Content-Length [22:10:23]Host: 172.17.38.4:8080 [22:10:23]Content-Length: 677 [22:10:23]Content-Type: application/json [22:10:23] [22:10:23]POST finish read [22:10:23]Found Content-Length = 677 [22:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:23]execute_script... [22:10: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)979971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:23]POST & json_proto [22:10:23]process_json_proto [22:10:23]json parsed OK: [22:10:23]protocol is kg_v1.0 [22:10:23]action value=close_receipt [22:10:23]process_action close_receipt [22:10:23]cmd_close_receipt [22:10:23]MH_GetDate [22:10:23]Write to MH i2c: F0 00 00 14 10 13 [22:10:23]Write i2c OK [22:10:23]MH_I2C_Read... [22:10:23]Read from MH i2c: F0 [22:10:23]MH_I2C_Read... [22:10:23]Read from MH i2c: F0 09 00 [22:10:23]MH_I2C_Read... [22:10:23]Read from MH i2c: F0 09 00 14 10 00 CF 90 5F 66 CC 51 87 64 48 [22:10:23]GetLastDocTimeStamp 1717538852 [22:10:23]current date 1717539023 [22:10:23]FM_GetShiftState [22:10:23]SAM_PROTO_GetShiftState [22:10:23]wFMCommunicate request_size=4 [22:10:23]MH_SAM_APDU [22:10:23]CAPDU: 80 13 01 00 [22:10:23]Write to MH i2c: E2 08 00 15 10 80 13 01 00 00 00 00 00 A2 [22:10:23]Write i2c OK [22:10:23]MH_I2C_Read... [22:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:23]Read from MH i2c: E2 [22:10:23]MH_I2C_Read... [22:10:23]Read from MH i2c: E2 0E 00 [22:10:23]MH_I2C_Read... [22:10:23]Read from MH i2c: E2 0E 00 15 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 65 [22:10:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:10:23]wFMCommunicate OK [22:10:23]SAM_PROTO_GetShiftState done [22:10:23]FM_GetShiftState done [22:10:23]opened in 1717460629 [22:10:23]opened+sec_in_day 1717547029 [22:10:23]quantity*price = 20003 [22:10:23]sum+1 = 20004 [22:10:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 378 04.06.2024 22:10 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149039 ФПД: 217103612825876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T221023&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149039&fm=217103612825876&tin=02508201610067®Number=0000000000092720&sum=20000 [22:10:24]StoreToDocumentArchive [22:10:24]shift 368 fd 149039 [22:10:24]save to /storage/0368/doc_00149039 [22:10:24]save last doc name /storage/0368/doc_00149039 to /storage/kkm_last_doc_name [22:10:24]save OK [22:10:24]Clear old archive folders... [22:10:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:10:24]tlvbuf is 009B6280 [22:10:24]SAM_PROTO_ClearQueue [22:10:24]wFMCommunicate request_size=4 [22:10:24]MH_SAM_APDU [22:10:24]CAPDU: 80 09 00 00 [22:10:24]Write to MH i2c: E2 08 00 22 10 80 09 00 00 00 00 00 00 A4 [22:10:24]Write i2c OK [22:10:24]MH_I2C_Read... [22:10:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:24]Read from MH i2c: E2 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 03 00 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 03 00 22 10 00 90 00 A6 [22:10:24]RAPDU: 90 00 [22:10:24]wFMCommunicate OK [22:10:24]SAM_PROTO_ClearQueue done [22:10:24]KKMCreateOFDPacket [22:10:24]OFDProtocolAddRootSTLVToBuf [22:10:24]FM_MakeSignedData [22:10:24]FM_MakeSignedData [22:10:24]SAM_PROTO_SignData [22:10:24]wFMCommunicate request_size=4 [22:10:24]MH_SAM_APDU [22:10:24]CAPDU: 80 0D 01 02 [22:10:24]Write to MH i2c: E2 08 00 23 10 80 0D 01 02 00 00 00 00 AC [22:10:24]Write i2c OK [22:10:24]MH_I2C_Read... [22:10:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:24]Read from MH i2c: E2 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 03 00 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 03 00 23 10 00 90 00 A7 [22:10:24]RAPDU: 90 00 [22:10:24]wFMCommunicate OK [22:10:24]wFMCommunicate request_size=255 [22:10:24]MH_SAM_APDU [22:10:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 01 00 00 F4 03 04 00 CF 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2F 46 02 00 35 04 06 00 C5 [22:10:24]Write to MH i2c: E2 02 01 24 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 CF 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2F 46 02 00 35 04 06 00 C5 00 00 44 [22:10:24]Write i2c OK [22:10:24]MH_I2C_Read... [22:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:24]Read from MH i2c: E2 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 03 00 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 03 00 24 10 00 90 00 A8 [22:10:24]RAPDU: 90 00 [22:10:24]wFMCommunicate OK [22:10:24]wFMCommunicate request_size=10 [22:10:24]MH_SAM_APDU [22:10:24]CAPDU: 80 0D 02 02 05 74 5F B8 D1 14 [22:10:24]Write to MH i2c: E2 0D 00 25 10 80 0D 02 02 05 00 74 5F B8 D1 14 00 00 29 [22:10:24]Write i2c OK [22:10:24]MH_I2C_Read... [22:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:24]Read from MH i2c: E2 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 03 00 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [22:10:24]RAPDU: 90 00 [22:10:24]wFMCommunicate OK [22:10:24]wFMCommunicate request_size=4 [22:10:24]MH_SAM_APDU [22:10:24]CAPDU: 80 0D 03 02 [22:10:24]Write to MH i2c: E2 08 00 26 10 80 0D 03 02 00 00 00 00 B1 [22:10:24]Write i2c OK [22:10:24]MH_I2C_Read... [22:10:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:24]Read from MH i2c: E2 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 0B 00 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 0B 00 26 10 00 85 52 E3 2C EB 30 F5 64 90 00 0C [22:10:24]RAPDU: 85 52 E3 2C EB 30 F5 64 90 00 [22:10:24]wFMCommunicate OK [22:10:24]SAM_PROTO_SignData done [22:10:24]FM_MakeSignedData done [22:10:24]CreateOFDProtocolMessage [22:10:24]wFMCommunicate request_size=4 [22:10:24]MH_SAM_APDU [22:10:24]CAPDU: 80 11 00 00 [22:10:24]Write to MH i2c: E2 08 00 27 10 80 11 00 00 00 00 00 00 B1 [22:10:24]Write i2c OK [22:10:24]MH_I2C_Read... [22:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:24]Read from MH i2c: E2 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 17 00 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: E2 17 00 27 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 04 [22:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:10:24]wFMCommunicate OK [22:10:24]CreateOFDProtocolMessage done [22:10:24]OFDSenderStorePacket 149039 [22:10:24]StoreOFDPacket docnum=149039 [22:10:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 43 56 07 01 B8 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 CF 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2F 46 02 00 35 04 06 00 C5 74 5F B8 D1 14 85 52 E3 2C EB 30 F5 64 [22:10:24]CheckFolder [22:10:24]dirname=/storage/ofd_packets [22:10:24]CheckFolder done [22:10:24]ProducePacketName [22:10:24]name=ofd_packets/00149039 [22:10:24]NVStorageSaveData ofd_packets/00149039 [22:10:24]File name is /storage/ofd_packets/00149039 [22:10:24]Write 301 bytes [22:10:24]NVStorageSaveData done [22:10:24]OFDSenderStorePacket done [22:10:24]KKMCreateOFDPacket done [22:10:24]NVStorageSaveData kkm_last_timestamp [22:10:24]File name is /storage/kkm_last_timestamp [22:10:24]Write 4 bytes [22:10:24]NVStorageSaveData done [22:10:24]ExternCall_PrintAddStr [22:10:24]wPrintStart [22:10:24]Write to MH i2c: 01 00 00 28 10 38 [22:10:24]Write i2c OK [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: 01 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: 01 07 00 [22:10:24]MH_I2C_Read... [22:10:24]Read from MH i2c: 01 07 00 28 10 00 00 00 00 00 FF 0F 4D [22:10:24]RasterBufferAndPrint [22:10:24]line Счет N : (1)979971 [22:10:24]line ИНН: 02508201610067 [22:10:24]line Контрольно-Кассовый Чек [22:10:24]line ПРОДАЖА [22:10:24]line ТРК (МРК, ГНК) : 12 [22:10:24]line Товар: 2710124130 [22:10:24]line Аи-92-К-5 [22:10:24]line 2.990 * 66.90 [22:10:24]line = 200.03 [22:10:24]line НДС 12% НСП 1% [22:10:24]line > о реализуемом товаре [22:10:24]line ОКРУГЛЕНИЕ: -0.03 [22:10:24]line ИТОГО: 200.00 [22:10:24]line Внесено: 200.00 [22:10:24]line СДАЧА: 0.00 [22:10:24]line НСП 1% : 1.77 [22:10:24]line НДС 12% : 21.24 [22:10:24]line Наличными: 200.00 [22:10:24]line Безнал.: 0.00 [22:10:24]line Место: АЗС № 68 "Партнер Нефть" [22:10:24]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:10:24]line СНО: Общий режим [22:10:24]line Чек 378 04.06.2024 22:10 [22:10:24]line Смена: 368 ФФД: 1.0 [22:10:24]line ЗНМ: 0300000035 [22:10:24]line РНМ: 0000000000092720 [22:10:24]line Версия ККМ: 001 [22:10:24]line ФМ: 0000000000875057 [22:10:24]line ФД: 149039 [22:10:24]line ФПД: 217103612825876 [22:10:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T221023&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149039&fm=217103612825876&tin=02508201610067®Number=0000000000092720&sum=20000 [22:10:25]OFD Sender: Processing packet 149039 [packets to send 100, broken 99] [22:10:25]ProducePacketName [22:10:25]name=ofd_packets/00149039 [22:10:25]OFD Sender: To server: pG, [22:10:25]CommunicateWithHost lk.salyk.kg:30040 [22:10:25]ConnectInit lk.salyk.kg [22:10:25]written 0, free lines is 4095 [22:10:25]Connected sock=10 [22:10:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 43 56 07 01 B8 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 CF 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 2F 46 02 00 35 04 06 00 C5 74 5F B8 D1 14 85 52 E3 2C EB 30 F5 64 [22:10:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 37 4D 47 00 C4 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 38 37 35 30 35 37 10 04 04 00 2F 46 02 00 F4 03 04 00 F2 37 5F 66 B6 04 01 00 00 69 FA B1 66 D6 45 1F 1A [22:10:25]CommunicateWithHost err = 0 [22:10:25]CheckOFDResponse [22:10:25]1017 (14) - 77093643461234 [22:10:25]1041 (16) - 0000000000875057 [22:10:25]1040 (4) - 149039 [22:10:25]1012 (4) - 04.06.2024 15:51 [22:10:25]1206 (1) - 0 [22:10:25]OFD Sender: Remove packet 149039 [22:10:25]ProducePacketName [22:10:25]name=ofd_packets/00149039 [22:10:25]NVStorageDeleteData [22:10:25]Write to MH i2c: 01 00 00 53 10 63 [22:10:25]Write i2c OK [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: 01 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: 01 07 00 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: 01 07 00 53 10 00 00 00 00 00 69 0C DF [22:10:25]RasterBufferAndPrint [22:10:25]line [22:10:25]line [22:10:25]line [22:10:25]line [22:10:25]line [22:10:25]written 0, free lines is 3180 [22:10:25]MH_Cut [22:10:25]Write to MH i2c: D1 01 00 5A 10 01 3C [22:10:25]Write i2c OK [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: D1 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: D1 01 00 [22:10:25]MH_I2C_Read... [22:10:25]Read from MH i2c: D1 01 00 5A 10 00 3B [22:10:25]Write to MH i2c: 01 00 00 5B 10 6B [22:10:25]Write i2c OK [22:10:25]MH_I2C_Read... [22:10:25]OFD Sender: No OFD packet to send [22:10:26]*** Cut start [22:10:26]*** Partial cut [22:10:26]*** CUTSNS_PIN = 1 [22:10:26]*** CUTSNS_PIN = 0 [22:10:27]*** Brake cut motor [22:10:27]Read from MH i2c: 01 [22:10:27]MH_I2C_Read... [22:10:27]*** Stop cut motor [22:10:27]*** Cut end [22:10:27]Read from MH i2c: 01 07 00 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: 01 07 00 5B 10 00 00 00 00 00 FF 0F 80 [22:10:27]process_action close_receipt done [22:10:27]requested_data is exist [22:10:27]produce_requested_data [22:10:27]requested_item fm.sn is exist - process it [22:10:27]wFMCommunicate request_size=4 [22:10:27]MH_SAM_APDU [22:10:27]CAPDU: 80 11 00 00 [22:10:27]Write to MH i2c: E2 08 00 5C 10 80 11 00 00 00 00 00 00 E6 [22:10:27]Write i2c OK [22:10:27]MH_I2C_Read... [22:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:27]Read from MH i2c: E2 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 17 00 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 17 00 5C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 39 [22:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:10:27]wFMCommunicate OK [22:10:27]requested_item fd.num is exist - process it [22:10:27]SAM_PROTO_GetFieldsCounters [22:10:27]wFMCommunicate request_size=4 [22:10:27]MH_SAM_APDU [22:10:27]CAPDU: 80 13 00 00 [22:10:27]Write to MH i2c: E2 08 00 5D 10 80 13 00 00 00 00 00 00 E9 [22:10:27]Write i2c OK [22:10:27]MH_I2C_Read... [22:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:27]Read from MH i2c: E2 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 62 00 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 62 00 5D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2F 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [22:10:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 2F 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:27]wFMCommunicate OK [22:10:27]SAM_PROTO_GetFieldsCounters done [22:10:27]requested_item shift.num is exist - process it [22:10:27]requested_item shift.opened is exist - process it [22:10:27]req_shift_opened [22:10:27]FM_GetShiftState [22:10:27]SAM_PROTO_GetShiftState [22:10:27]wFMCommunicate request_size=4 [22:10:27]MH_SAM_APDU [22:10:27]CAPDU: 80 13 01 00 [22:10:27]Write to MH i2c: E2 08 00 5E 10 80 13 01 00 00 00 00 00 EB [22:10:27]Write i2c OK [22:10:27]MH_I2C_Read... [22:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:27]Read from MH i2c: E2 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 0E 00 [22:10:27]MH_I2C_Read... [22:10:27]Read from MH i2c: E2 0E 00 5E 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AE [22:10:27]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:10:27]wFMCommunicate OK [22:10:27]SAM_PROTO_GetShiftState done [22:10:27]FM_GetShiftState done [22:10:27]req_shift_opened done [22:10:27]requested_item shift.open_date is exist - process it [22:10:27]req_shift_open_date [22:10:27]req_shift_open_date done [22:10:27]produce_requested_data done [22:10:27]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149039,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:10:27]process_action_free close_receipt [22:10:27]json_value_free [22:10:27]json_value_free done [22:10:27]process_json_proto returns [22:10:27]Send response to host [22:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149039,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:10:27]free response buf [22:10:27]execute_script done [22:10:27]execute_script returns [22:10:27]free content buf [22:10:27]Sock 9.Close socket [22:10:27]Sock 9.Thread stoped [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:01]accept exits with 7 [22:11:01]New connection [22:11:01]New thread 3067219300 created [22:11:01]Thread 3067075940 joined [22:11:01]Waiting for new connection... [22:11:01] Sock 7.Parse request [22:11:01]Sock 7.Check first char [22:11:01]Sock 7.First char is OK [22:11:01]request: POST /json_proto HTTP/1.0 [22:11:01]Method: POST [22:11:01]URL: /json_proto [22:11:01]Method is POST - this is cgi request [22:11:01]url: /json_proto [22:11:01]query_string will be loaded in cgi processing [22:11:01]execute_cgi json_proto POST (null) [22:11:01]execute_cgi path=json_proto method=POST [22:11:01]POST find Content-Length [22:11:01]Host: 172.17.38.4:8080 [22:11:01]Content-Length: 677 [22:11:01]Content-Type: application/json [22:11:01] [22:11:01]POST finish read [22:11:01]Found Content-Length = 677 [22:11:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:01]execute_script... [22:11: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)979972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:01]POST & json_proto [22:11:01]process_json_proto [22:11:01]json parsed OK: [22:11:01]protocol is kg_v1.0 [22:11:01]action value=close_receipt [22:11:01]process_action close_receipt [22:11:01]cmd_close_receipt [22:11:01]MH_GetDate [22:11:01]Write to MH i2c: F0 00 00 5F 10 5E [22:11:01]Write i2c OK [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: F0 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: F0 09 00 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: F0 09 00 5F 10 00 F6 90 5F 66 CC 51 87 64 BA [22:11:01]GetLastDocTimeStamp 1717539023 [22:11:01]current date 1717539062 [22:11:01]FM_GetShiftState [22:11:01]SAM_PROTO_GetShiftState [22:11:01]wFMCommunicate request_size=4 [22:11:01]MH_SAM_APDU [22:11:01]CAPDU: 80 13 01 00 [22:11:01]Write to MH i2c: E2 08 00 60 10 80 13 01 00 00 00 00 00 ED [22:11:01]Write i2c OK [22:11:01]MH_I2C_Read... [22:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:01]Read from MH i2c: E2 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: E2 0E 00 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: E2 0E 00 60 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B0 [22:11:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:11:01]wFMCommunicate OK [22:11:01]SAM_PROTO_GetShiftState done [22:11:01]FM_GetShiftState done [22:11:01]opened in 1717460629 [22:11:01]opened+sec_in_day 1717547029 [22:11:01]quantity*price = 30038 [22:11:01]sum+1 = 30039 [22:11:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 379 04.06.2024 22:11 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149040 ФПД: 41108395648839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T221102&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149040&fm=41108395648839&tin=02508201610067®Number=0000000000092720&sum=30000 [22:11:02]StoreToDocumentArchive [22:11:02]shift 368 fd 149040 [22:11:02]save to /storage/0368/doc_00149040 [22:11:02]save last doc name /storage/0368/doc_00149040 to /storage/kkm_last_doc_name [22:11:02]save OK [22:11:02]Clear old archive folders... [22:11:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:02]tlvbuf is 009514E0 [22:11:02]SAM_PROTO_ClearQueue [22:11:02]wFMCommunicate request_size=4 [22:11:02]MH_SAM_APDU [22:11:02]CAPDU: 80 09 00 00 [22:11:02]Write to MH i2c: E2 08 00 6D 10 80 09 00 00 00 00 00 00 EF [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 [22:11:02]MH_I2C_Read... [22:11:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:02]Read from MH i2c: E2 03 00 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 03 00 6D 10 00 90 00 F1 [22:11:02]RAPDU: 90 00 [22:11:02]wFMCommunicate OK [22:11:02]SAM_PROTO_ClearQueue done [22:11:02]KKMCreateOFDPacket [22:11:02]OFDProtocolAddRootSTLVToBuf [22:11:02]FM_MakeSignedData [22:11:02]FM_MakeSignedData [22:11:02]SAM_PROTO_SignData [22:11:02]wFMCommunicate request_size=4 [22:11:02]MH_SAM_APDU [22:11:02]CAPDU: 80 0D 01 02 [22:11:02]Write to MH i2c: E2 08 00 6E 10 80 0D 01 02 00 00 00 00 F7 [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:03]Read from MH i2c: E2 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 03 00 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 03 00 6E 10 00 90 00 F2 [22:11:03]RAPDU: 90 00 [22:11:03]wFMCommunicate OK [22:11:03]wFMCommunicate request_size=255 [22:11:03]MH_SAM_APDU [22:11:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 01 00 00 F4 03 04 00 F6 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 30 46 02 00 35 04 06 00 25 [22:11:03]Write to MH i2c: E2 02 01 6F 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 F6 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 30 46 02 00 35 04 06 00 25 00 00 4A [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:03]Read from MH i2c: E2 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 03 00 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 03 00 6F 10 00 90 00 F3 [22:11:03]RAPDU: 90 00 [22:11:03]wFMCommunicate OK [22:11:03]wFMCommunicate request_size=10 [22:11:03]MH_SAM_APDU [22:11:03]CAPDU: 80 0D 02 02 05 63 4B 51 E7 47 [22:11:03]Write to MH i2c: E2 0D 00 70 10 80 0D 02 02 05 00 63 4B 51 E7 47 00 00 31 [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:03]Read from MH i2c: E2 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 03 00 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [22:11:03]RAPDU: 90 00 [22:11:03]wFMCommunicate OK [22:11:03]wFMCommunicate request_size=4 [22:11:03]MH_SAM_APDU [22:11:03]CAPDU: 80 0D 03 02 [22:11:03]Write to MH i2c: E2 08 00 71 10 80 0D 03 02 00 00 00 00 FC [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:03]Read from MH i2c: E2 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 0B 00 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 0B 00 71 10 00 B3 6D F3 DD 2E EF E2 68 90 00 54 [22:11:03]RAPDU: B3 6D F3 DD 2E EF E2 68 90 00 [22:11:03]wFMCommunicate OK [22:11:03]SAM_PROTO_SignData done [22:11:03]FM_MakeSignedData done [22:11:03]CreateOFDProtocolMessage [22:11:03]wFMCommunicate request_size=4 [22:11:03]MH_SAM_APDU [22:11:03]CAPDU: 80 11 00 00 [22:11:03]Write to MH i2c: E2 08 00 72 10 80 11 00 00 00 00 00 00 FC [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:03]Read from MH i2c: E2 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 17 00 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 17 00 72 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4F [22:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:11:03]wFMCommunicate OK [22:11:03]CreateOFDProtocolMessage done [22:11:03]OFDSenderStorePacket 149040 [22:11:03]StoreOFDPacket docnum=149040 [22:11:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 60 80 07 01 E0 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 01 00 00 F4 03 04 00 F6 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 30 46 02 00 35 04 06 00 25 63 4B 51 E7 47 B3 6D F3 DD 2E EF E2 68 [22:11:03]CheckFolder [22:11:03]dirname=/storage/ofd_packets [22:11:03]CheckFolder done [22:11:03]ProducePacketName [22:11:03]name=ofd_packets/00149040 [22:11:03]NVStorageSaveData ofd_packets/00149040 [22:11:03]File name is /storage/ofd_packets/00149040 [22:11:03]Write 301 bytes [22:11:03]NVStorageSaveData done [22:11:03]OFDSenderStorePacket done [22:11:03]KKMCreateOFDPacket done [22:11:03]NVStorageSaveData kkm_last_timestamp [22:11:03]File name is /storage/kkm_last_timestamp [22:11:03]Write 4 bytes [22:11:03]NVStorageSaveData done [22:11:03]ExternCall_PrintAddStr [22:11:03]wPrintStart [22:11:03]Write to MH i2c: 01 00 00 73 10 83 [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: 01 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: 01 07 00 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: 01 07 00 73 10 00 00 00 00 00 FF 0F 98 [22:11:03]RasterBufferAndPrint [22:11:03]line Счет N : (1)979972 [22:11:03]line ИНН: 02508201610067 [22:11:03]line Контрольно-Кассовый Чек [22:11:03]line ПРОДАЖА [22:11:03]line ТРК (МРК, ГНК) : 41 [22:11:03]line Товар: 2710124130 [22:11:03]line Аи-92-К-5 [22:11:03]line 4.490 * 66.90 [22:11:03]line = 300.38 [22:11:03]line НДС 12% НСП 1% [22:11:03]line > о реализуемом товаре [22:11:03]line ОКРУГЛЕНИЕ: -0.38 [22:11:03]line ИТОГО: 300.00 [22:11:03]line Внесено: 300.00 [22:11:03]line СДАЧА: 0.00 [22:11:03]line НСП 1% : 2.66 [22:11:03]line НДС 12% : 31.90 [22:11:03]line Наличными: 300.00 [22:11:03]line Безнал.: 0.00 [22:11:03]line Место: АЗС № 68 "Партнер Нефть" [22:11:03]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:11:03]line СНО: Общий режим [22:11:03]line Чек 379 04.06.2024 22:11 [22:11:03]line Смена: 368 ФФД: 1.0 [22:11:03]line ЗНМ: 0300000035 [22:11:03]line РНМ: 0000000000092720 [22:11:03]line Версия ККМ: 001 [22:11:03]line ФМ: 0000000000875057 [22:11:03]line ФД: 149040 [22:11:03]line ФПД: 41108395648839 [22:11:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T221102&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149040&fm=41108395648839&tin=02508201610067®Number=0000000000092720&sum=30000 [22:11:03]OFD Sender: Processing packet 149040 [packets to send 100, broken 99] [22:11:03]ProducePacketName [22:11:03]name=ofd_packets/00149040 [22:11:03]OFD Sender: To server: pG, [22:11:03]CommunicateWithHost lk.salyk.kg:30040 [22:11:03]ConnectInit lk.salyk.kg [22:11:03]written 0, free lines is 4095 [22:11:03]Connected sock=10 [22:11:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 60 80 07 01 E0 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 01 00 00 F4 03 04 00 F6 90 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 30 46 02 00 35 04 06 00 25 63 4B 51 E7 47 B3 6D F3 DD 2E EF E2 68 [22:11:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 20 CA 47 00 83 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 38 37 35 30 35 37 10 04 04 00 30 46 02 00 F4 03 04 00 19 38 5F 66 B6 04 01 00 00 F6 1A 1C 5F F2 84 09 FA [22:11:04]CommunicateWithHost err = 0 [22:11:04]CheckOFDResponse [22:11:04]1017 (14) - 77093643461234 [22:11:04]1041 (16) - 0000000000875057 [22:11:04]1040 (4) - 149040 [22:11:04]1012 (4) - 04.06.2024 15:51 [22:11:04]1206 (1) - 0 [22:11:04]OFD Sender: Remove packet 149040 [22:11:04]ProducePacketName [22:11:04]name=ofd_packets/00149040 [22:11:04]NVStorageDeleteData [22:11:04]Write to MH i2c: 01 00 00 9E 10 AE [22:11:04]Write i2c OK [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: 01 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: 01 07 00 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: 01 07 00 9E 10 00 00 00 00 00 74 0C 35 [22:11:04]RasterBufferAndPrint [22:11:04]line [22:11:04]line [22:11:04]line [22:11:04]line [22:11:04]line [22:11:04]written 0, free lines is 3191 [22:11:04]MH_Cut [22:11:04]Write to MH i2c: D1 01 00 A5 10 01 87 [22:11:04]Write i2c OK [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: D1 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: D1 01 00 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: D1 01 00 A5 10 00 86 [22:11:04]Write to MH i2c: 01 00 00 A6 10 B6 [22:11:04]Write i2c OK [22:11:04]MH_I2C_Read... [22:11:04]OFD Sender: No OFD packet to send [22:11:05]*** Cut start [22:11:05]*** Partial cut [22:11:05]*** CUTSNS_PIN = 1 [22:11:05]*** CUTSNS_PIN = 0 [22:11:05]*** Brake cut motor [22:11:06]Read from MH i2c: 01 [22:11:06]MH_I2C_Read... [22:11:06]*** Stop cut motor [22:11:06]*** Cut end [22:11:06]Read from MH i2c: 01 07 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: 01 07 00 A6 10 00 00 00 00 00 FF 0F CB [22:11:06]process_action close_receipt done [22:11:06]requested_data is exist [22:11:06]produce_requested_data [22:11:06]requested_item fm.sn is exist - process it [22:11:06]wFMCommunicate request_size=4 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 11 00 00 [22:11:06]Write to MH i2c: E2 08 00 A7 10 80 11 00 00 00 00 00 00 31 [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 17 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 17 00 A7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 84 [22:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:11:06]wFMCommunicate OK [22:11:06]requested_item fd.num is exist - process it [22:11:06]SAM_PROTO_GetFieldsCounters [22:11:06]wFMCommunicate request_size=4 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 13 00 00 [22:11:06]Write to MH i2c: E2 08 00 A8 10 80 13 00 00 00 00 00 00 34 [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 62 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 62 00 A8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 30 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [22:11:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 30 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:06]wFMCommunicate OK [22:11:06]SAM_PROTO_GetFieldsCounters done [22:11:06]requested_item shift.num is exist - process it [22:11:06]requested_item shift.opened is exist - process it [22:11:06]req_shift_opened [22:11:06]FM_GetShiftState [22:11:06]SAM_PROTO_GetShiftState [22:11:06]wFMCommunicate request_size=4 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 13 01 00 [22:11:06]Write to MH i2c: E2 08 00 A9 10 80 13 01 00 00 00 00 00 36 [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 0E 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 0E 00 A9 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F9 [22:11:06]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:11:06]wFMCommunicate OK [22:11:06]SAM_PROTO_GetShiftState done [22:11:06]FM_GetShiftState done [22:11:06]req_shift_opened done [22:11:06]requested_item shift.open_date is exist - process it [22:11:06]req_shift_open_date [22:11:06]req_shift_open_date done [22:11:06]produce_requested_data done [22:11:06]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149040,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:11:06]process_action_free close_receipt [22:11:06]json_value_free [22:11:06]json_value_free done [22:11:06]process_json_proto returns [22:11:06]Send response to host [22:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149040,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:11:06]free response buf [22:11:06]execute_script done [22:11:06]execute_script returns [22:11:06]free content buf [22:11:06]Sock 7.Close socket [22:11:06]Sock 7.Thread stoped [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:31]accept exits with 9 [22:12:31]New connection [22:12:31]New thread 3067075940 created [22:12:31]Thread 3067219300 joined [22:12:31]Waiting for new connection... [22:12:31] Sock 9.Parse request [22:12:31]Sock 9.Check first char [22:12:31]Sock 9.First char is OK [22:12:31]request: POST /json_proto HTTP/1.0 [22:12:31]Method: POST [22:12:31]URL: /json_proto [22:12:31]Method is POST - this is cgi request [22:12:31]url: /json_proto [22:12:31]query_string will be loaded in cgi processing [22:12:31]execute_cgi json_proto POST (null) [22:12:31]execute_cgi path=json_proto method=POST [22:12:31]POST find Content-Length [22:12:31]Host: 172.17.38.4:8080 [22:12:31]Content-Length: 678 [22:12:31]Content-Type: application/json [22:12:31] [22:12:31]POST finish read [22:12:31]Found Content-Length = 678 [22:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:31]execute_script... [22:12: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)979973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:31]POST & json_proto [22:12:31]process_json_proto [22:12:31]json parsed OK: [22:12:31]protocol is kg_v1.0 [22:12:31]action value=close_receipt [22:12:31]process_action close_receipt [22:12:31]cmd_close_receipt [22:12:31]MH_GetDate [22:12:31]Write to MH i2c: F0 00 00 AA 10 A9 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: F0 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: F0 09 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: F0 09 00 AA 10 00 4F 91 5F 66 CC 51 87 64 5F [22:12:31]GetLastDocTimeStamp 1717539062 [22:12:31]current date 1717539151 [22:12:31]FM_GetShiftState [22:12:31]SAM_PROTO_GetShiftState [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 13 01 00 [22:12:31]Write to MH i2c: E2 08 00 AB 10 80 13 01 00 00 00 00 00 38 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 0E 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 0E 00 AB 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FB [22:12:31]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:12:31]wFMCommunicate OK [22:12:31]SAM_PROTO_GetShiftState done [22:12:31]FM_GetShiftState done [22:12:31]opened in 1717460629 [22:12:31]opened+sec_in_day 1717547029 [22:12:31]quantity*price = 70044 [22:12:31]sum+1 = 70045 [22:12:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 380 04.06.2024 22:12 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149041 ФПД: 232327048278216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T221231&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149041&fm=232327048278216&tin=02508201610067®Number=0000000000092720&sum=70000 [22:12:32]StoreToDocumentArchive [22:12:32]shift 368 fd 149041 [22:12:32]save to /storage/0368/doc_00149041 [22:12:32]save last doc name /storage/0368/doc_00149041 to /storage/kkm_last_doc_name [22:12:32]save OK [22:12:32]Clear old archive folders... [22:12:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:32]tlvbuf is 009A88D0 [22:12:32]SAM_PROTO_ClearQueue [22:12:32]wFMCommunicate request_size=4 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 09 00 00 [22:12:32]Write to MH i2c: E2 08 00 B8 10 80 09 00 00 00 00 00 00 3A [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 B8 10 00 90 00 3C [22:12:32]RAPDU: 90 00 [22:12:32]wFMCommunicate OK [22:12:32]SAM_PROTO_ClearQueue done [22:12:32]KKMCreateOFDPacket [22:12:32]OFDProtocolAddRootSTLVToBuf [22:12:32]FM_MakeSignedData [22:12:32]FM_MakeSignedData [22:12:32]SAM_PROTO_SignData [22:12:32]wFMCommunicate request_size=4 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 0D 01 02 [22:12:32]Write to MH i2c: E2 08 00 B9 10 80 0D 01 02 00 00 00 00 42 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 B9 10 00 90 00 3D [22:12:32]RAPDU: 90 00 [22:12:32]wFMCommunicate OK [22:12:32]wFMCommunicate request_size=255 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 01 00 00 F4 03 04 00 4F 91 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 31 46 02 00 35 04 06 00 D3 [22:12:32]Write to MH i2c: E2 02 01 BA 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 4F 91 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 31 46 02 00 35 04 06 00 D3 00 00 BB [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 BA 10 00 90 00 3E [22:12:32]RAPDU: 90 00 [22:12:32]wFMCommunicate OK [22:12:32]wFMCommunicate request_size=10 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 0D 02 02 05 4C DB 2F 30 C8 [22:12:32]Write to MH i2c: E2 0D 00 BB 10 80 0D 02 02 05 00 4C DB 2F 30 C8 00 00 9D [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 BB 10 00 90 00 3F [22:12:32]RAPDU: 90 00 [22:12:32]wFMCommunicate OK [22:12:32]wFMCommunicate request_size=4 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 0D 03 02 [22:12:32]Write to MH i2c: E2 08 00 BC 10 80 0D 03 02 00 00 00 00 47 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 0B 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 0B 00 BC 10 00 46 FD E5 61 3D D0 F5 D4 90 00 A7 [22:12:32]RAPDU: 46 FD E5 61 3D D0 F5 D4 90 00 [22:12:32]wFMCommunicate OK [22:12:32]SAM_PROTO_SignData done [22:12:32]FM_MakeSignedData done [22:12:32]CreateOFDProtocolMessage [22:12:32]wFMCommunicate request_size=4 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 11 00 00 [22:12:32]Write to MH i2c: E2 08 00 BD 10 80 11 00 00 00 00 00 00 47 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 17 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 17 00 BD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9A [22:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:12:32]wFMCommunicate OK [22:12:32]CreateOFDProtocolMessage done [22:12:32]OFDSenderStorePacket 149041 [22:12:32]StoreOFDPacket docnum=149041 [22:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 0E 7B 07 01 D9 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 4F 91 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 31 46 02 00 35 04 06 00 D3 4C DB 2F 30 C8 46 FD E5 61 3D D0 F5 D4 [22:12:32]CheckFolder [22:12:32]dirname=/storage/ofd_packets [22:12:32]CheckFolder done [22:12:32]ProducePacketName [22:12:32]name=ofd_packets/00149041 [22:12:32]NVStorageSaveData ofd_packets/00149041 [22:12:32]File name is /storage/ofd_packets/00149041 [22:12:32]Write 301 bytes [22:12:32]NVStorageSaveData done [22:12:32]OFDSenderStorePacket done [22:12:32]KKMCreateOFDPacket done [22:12:32]NVStorageSaveData kkm_last_timestamp [22:12:32]File name is /storage/kkm_last_timestamp [22:12:32]Write 4 bytes [22:12:32]NVStorageSaveData done [22:12:32]ExternCall_PrintAddStr [22:12:32]wPrintStart [22:12:32]Write to MH i2c: 01 00 00 BE 10 CE [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 07 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 07 00 BE 10 00 00 00 00 00 FF 0F E3 [22:12:32]RasterBufferAndPrint [22:12:32]line Счет N : (1)979973 [22:12:32]line ИНН: 02508201610067 [22:12:32]line Контрольно-Кассовый Чек [22:12:32]line ПРОДАЖА [22:12:32]line ТРК (МРК, ГНК) : 22 [22:12:32]line Товар: 2710124130 [22:12:32]line Аи-92-К-5 [22:12:32]line 10.470 * 66.90 [22:12:32]line = 700.44 [22:12:32]line НДС 12% НСП 1% [22:12:32]line > о реализуемом товаре [22:12:32]line ОКРУГЛЕНИЕ: -0.44 [22:12:32]line ИТОГО: 700.00 [22:12:32]line Внесено: 700.00 [22:12:32]line СДАЧА: 0.00 [22:12:32]line НСП 1% : 6.20 [22:12:32]line НДС 12% : 74.38 [22:12:32]line Наличными: 700.00 [22:12:32]line Безнал.: 0.00 [22:12:32]line Место: АЗС № 68 "Партнер Нефть" [22:12:32]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:12:32]line СНО: Общий режим [22:12:32]line Чек 380 04.06.2024 22:12 [22:12:32]line Смена: 368 ФФД: 1.0 [22:12:32]line ЗНМ: 0300000035 [22:12:32]line РНМ: 0000000000092720 [22:12:32]line Версия ККМ: 001 [22:12:32]line ФМ: 0000000000875057 [22:12:32]line ФД: 149041 [22:12:33]line ФПД: 232327048278216 [22:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T221231&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149041&fm=232327048278216&tin=02508201610067®Number=0000000000092720&sum=70000 [22:12:33]OFD Sender: Processing packet 149041 [packets to send 100, broken 99] [22:12:33]ProducePacketName [22:12:33]name=ofd_packets/00149041 [22:12:33]OFD Sender: To server: pG, [22:12:33]CommunicateWithHost lk.salyk.kg:30040 [22:12:33]ConnectInit lk.salyk.kg [22:12:33]written 0, free lines is 4095 [22:12:33]Connected sock=10 [22:12:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 0E 7B 07 01 D9 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 4F 91 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 31 46 02 00 35 04 06 00 D3 4C DB 2F 30 C8 46 FD E5 61 3D D0 F5 D4 [22:12:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B1 A8 47 00 07 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 31 46 02 00 F4 03 04 00 72 38 5F 66 B6 04 01 00 00 A8 4B D3 89 A1 D4 C2 AF [22:12:33]CommunicateWithHost err = 0 [22:12:33]CheckOFDResponse [22:12:33]1017 (14) - 77093643461234 [22:12:33]1041 (16) - 0000000000875057 [22:12:33]1040 (4) - 149041 [22:12:33]1012 (4) - 04.06.2024 15:53 [22:12:33]1206 (1) - 0 [22:12:33]OFD Sender: Remove packet 149041 [22:12:33]ProducePacketName [22:12:33]name=ofd_packets/00149041 [22:12:33]NVStorageDeleteData [22:12:33]Write to MH i2c: 01 00 00 E9 10 F9 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 E9 10 00 00 00 00 00 6C 0C 78 [22:12:33]RasterBufferAndPrint [22:12:33]line [22:12:33]line [22:12:33]line [22:12:33]line [22:12:33]line [22:12:33]written 0, free lines is 3183 [22:12:33]MH_Cut [22:12:33]Write to MH i2c: D1 01 00 F0 10 01 D2 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: D1 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: D1 01 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: D1 01 00 F0 10 00 D1 [22:12:33]Write to MH i2c: 01 00 00 F1 10 01 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]OFD Sender: No OFD packet to send [22:12:34]*** Cut start [22:12:34]*** Partial cut [22:12:34]*** CUTSNS_PIN = 1 [22:12:34]*** CUTSNS_PIN = 0 [22:12:35]*** Brake cut motor [22:12:35]Read from MH i2c: 01 [22:12:35]MH_I2C_Read... [22:12:35]*** Stop cut motor [22:12:35]*** Cut end [22:12:35]Read from MH i2c: 01 07 00 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: 01 07 00 F1 10 00 00 00 00 00 FF 0F 16 [22:12:35]process_action close_receipt done [22:12:35]requested_data is exist [22:12:35]produce_requested_data [22:12:35]requested_item fm.sn is exist - process it [22:12:35]wFMCommunicate request_size=4 [22:12:35]MH_SAM_APDU [22:12:35]CAPDU: 80 11 00 00 [22:12:35]Write to MH i2c: E2 08 00 F2 10 80 11 00 00 00 00 00 00 7C [22:12:35]Write i2c OK [22:12:35]MH_I2C_Read... [22:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:35]Read from MH i2c: E2 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 17 00 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 17 00 F2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CF [22:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:12:35]wFMCommunicate OK [22:12:35]requested_item fd.num is exist - process it [22:12:35]SAM_PROTO_GetFieldsCounters [22:12:35]wFMCommunicate request_size=4 [22:12:35]MH_SAM_APDU [22:12:35]CAPDU: 80 13 00 00 [22:12:35]Write to MH i2c: E2 08 00 F3 10 80 13 00 00 00 00 00 00 7F [22:12:35]Write i2c OK [22:12:35]MH_I2C_Read... [22:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:35]Read from MH i2c: E2 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 62 00 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 62 00 F3 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 31 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [22:12:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 31 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:35]wFMCommunicate OK [22:12:35]SAM_PROTO_GetFieldsCounters done [22:12:35]requested_item shift.num is exist - process it [22:12:35]requested_item shift.opened is exist - process it [22:12:35]req_shift_opened [22:12:35]FM_GetShiftState [22:12:35]SAM_PROTO_GetShiftState [22:12:35]wFMCommunicate request_size=4 [22:12:35]MH_SAM_APDU [22:12:35]CAPDU: 80 13 01 00 [22:12:35]Write to MH i2c: E2 08 00 F4 10 80 13 01 00 00 00 00 00 81 [22:12:35]Write i2c OK [22:12:35]MH_I2C_Read... [22:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:35]Read from MH i2c: E2 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 0E 00 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 0E 00 F4 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 44 [22:12:35]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:12:35]wFMCommunicate OK [22:12:35]SAM_PROTO_GetShiftState done [22:12:35]FM_GetShiftState done [22:12:35]req_shift_opened done [22:12:35]requested_item shift.open_date is exist - process it [22:12:35]req_shift_open_date [22:12:35]req_shift_open_date done [22:12:35]produce_requested_data done [22:12:35]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149041,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:12:35]process_action_free close_receipt [22:12:35]json_value_free [22:12:35]json_value_free done [22:12:35]process_json_proto returns [22:12:35]Send response to host [22:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149041,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:12:35]free response buf [22:12:35]execute_script done [22:12:35]execute_script returns [22:12:35]free content buf [22:12:35]Sock 9.Close socket [22:12:35]Sock 9.Thread stoped [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:46]accept exits with 7 [22:14:46]New connection [22:14:46]New thread 3067219300 created [22:14:46]Thread 3067075940 joined [22:14:46]Waiting for new connection... [22:14:46] Sock 7.Parse request [22:14:46]Sock 7.Check first char [22:14:46]Sock 7.First char is OK [22:14:46]request: POST /json_proto HTTP/1.0 [22:14:46]Method: POST [22:14:46]URL: /json_proto [22:14:46]Method is POST - this is cgi request [22:14:46]url: /json_proto [22:14:46]query_string will be loaded in cgi processing [22:14:46]execute_cgi json_proto POST (null) [22:14:46]execute_cgi path=json_proto method=POST [22:14:46]POST find Content-Length [22:14:46]Host: 172.17.38.4:8080 [22:14:46]Content-Length: 678 [22:14:46]Content-Type: application/json [22:14:46] [22:14:46]POST finish read [22:14:46]Found Content-Length = 678 [22:14:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [22:14:46]execute_script... [22:14: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)979974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [22:14:46]POST & json_proto [22:14:46]process_json_proto [22:14:46]json parsed OK: [22:14:46]protocol is kg_v1.0 [22:14:46]action value=close_receipt [22:14:46]process_action close_receipt [22:14:46]cmd_close_receipt [22:14:46]MH_GetDate [22:14:46]Write to MH i2c: F0 00 00 F5 10 F4 [22:14:46]Write i2c OK [22:14:46]MH_I2C_Read... [22:14:46]Read from MH i2c: F0 [22:14:46]MH_I2C_Read... [22:14:46]Read from MH i2c: F0 09 00 [22:14:46]MH_I2C_Read... [22:14:46]Read from MH i2c: F0 09 00 F5 10 00 D6 91 5F 66 CC 51 87 64 31 [22:14:46]GetLastDocTimeStamp 1717539151 [22:14:46]current date 1717539286 [22:14:46]FM_GetShiftState [22:14:46]SAM_PROTO_GetShiftState [22:14:46]wFMCommunicate request_size=4 [22:14:46]MH_SAM_APDU [22:14:46]CAPDU: 80 13 01 00 [22:14:46]Write to MH i2c: E2 08 00 F6 10 80 13 01 00 00 00 00 00 83 [22:14:46]Write i2c OK [22:14:46]MH_I2C_Read... [22:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:46]Read from MH i2c: E2 [22:14:46]MH_I2C_Read... [22:14:46]Read from MH i2c: E2 0E 00 [22:14:46]MH_I2C_Read... [22:14:46]Read from MH i2c: E2 0E 00 F6 10 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 46 [22:14:46]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:14:46]wFMCommunicate OK [22:14:46]SAM_PROTO_GetShiftState done [22:14:46]FM_GetShiftState done [22:14:46]opened in 1717460629 [22:14:46]opened+sec_in_day 1717547029 [22:14:46]quantity*price = 80012 [22:14:46]sum+1 = 80013 [22:14:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 381 04.06.2024 22:14 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149042 ФПД: 214904352078380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T221446&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149042&fm=214904352078380&tin=02508201610067®Number=0000000000092720&sum=80000 [22:14:47]StoreToDocumentArchive [22:14:47]shift 368 fd 149042 [22:14:47]save to /storage/0368/doc_00149042 [22:14:47]save last doc name /storage/0368/doc_00149042 to /storage/kkm_last_doc_name [22:14:47]save OK [22:14:47]Clear old archive folders... [22:14:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:14:47]tlvbuf is 009512C0 [22:14:47]SAM_PROTO_ClearQueue [22:14:47]wFMCommunicate request_size=4 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 09 00 00 [22:14:47]Write to MH i2c: E2 08 00 03 11 80 09 00 00 00 00 00 00 86 [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 03 11 00 90 00 88 [22:14:47]RAPDU: 90 00 [22:14:47]wFMCommunicate OK [22:14:47]SAM_PROTO_ClearQueue done [22:14:47]KKMCreateOFDPacket [22:14:47]OFDProtocolAddRootSTLVToBuf [22:14:47]FM_MakeSignedData [22:14:47]FM_MakeSignedData [22:14:47]SAM_PROTO_SignData [22:14:47]wFMCommunicate request_size=4 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 0D 01 02 [22:14:47]Write to MH i2c: E2 08 00 04 11 80 0D 01 02 00 00 00 00 8E [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 04 11 00 90 00 89 [22:14:47]RAPDU: 90 00 [22:14:47]wFMCommunicate OK [22:14:47]wFMCommunicate request_size=255 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 01 00 00 F4 03 04 00 D6 91 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 32 46 02 00 35 04 06 00 C3 [22:14:47]Write to MH i2c: E2 02 01 05 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 01 00 00 F4 03 04 00 D6 91 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 32 46 02 00 35 04 06 00 C3 00 00 5C [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 05 11 00 90 00 8A [22:14:47]RAPDU: 90 00 [22:14:47]wFMCommunicate OK [22:14:47]wFMCommunicate request_size=10 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 0D 02 02 05 74 51 90 FA 2C [22:14:47]Write to MH i2c: E2 0D 00 06 11 80 0D 02 02 05 00 74 51 90 FA 2C 00 00 16 [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 03 00 06 11 00 90 00 8B [22:14:47]RAPDU: 90 00 [22:14:47]wFMCommunicate OK [22:14:47]wFMCommunicate request_size=4 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 0D 03 02 [22:14:47]Write to MH i2c: E2 08 00 07 11 80 0D 03 02 00 00 00 00 93 [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 0B 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 0B 00 07 11 00 D8 96 90 BD 59 E9 64 CF 90 00 C4 [22:14:47]RAPDU: D8 96 90 BD 59 E9 64 CF 90 00 [22:14:47]wFMCommunicate OK [22:14:47]SAM_PROTO_SignData done [22:14:47]FM_MakeSignedData done [22:14:47]CreateOFDProtocolMessage [22:14:47]wFMCommunicate request_size=4 [22:14:47]MH_SAM_APDU [22:14:47]CAPDU: 80 11 00 00 [22:14:47]Write to MH i2c: E2 08 00 08 11 80 11 00 00 00 00 00 00 93 [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:47]Read from MH i2c: E2 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 17 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: E2 17 00 08 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E6 [22:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:14:47]wFMCommunicate OK [22:14:47]CreateOFDProtocolMessage done [22:14:47]OFDSenderStorePacket 149042 [22:14:47]StoreOFDPacket docnum=149042 [22:14:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 66 C8 07 01 8D DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 01 00 00 F4 03 04 00 D6 91 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 32 46 02 00 35 04 06 00 C3 74 51 90 FA 2C D8 96 90 BD 59 E9 64 CF [22:14:47]CheckFolder [22:14:47]dirname=/storage/ofd_packets [22:14:47]CheckFolder done [22:14:47]ProducePacketName [22:14:47]name=ofd_packets/00149042 [22:14:47]NVStorageSaveData ofd_packets/00149042 [22:14:47]File name is /storage/ofd_packets/00149042 [22:14:47]Write 301 bytes [22:14:47]NVStorageSaveData done [22:14:47]OFDSenderStorePacket done [22:14:47]KKMCreateOFDPacket done [22:14:47]NVStorageSaveData kkm_last_timestamp [22:14:47]File name is /storage/kkm_last_timestamp [22:14:47]Write 4 bytes [22:14:47]NVStorageSaveData done [22:14:47]OFD Sender: Processing packet 149042 [packets to send 100, broken 99] [22:14:47]ProducePacketName [22:14:47]name=ofd_packets/00149042 [22:14:47]OFD Sender: To server: pG, [22:14:47]CommunicateWithHost lk.salyk.kg:30040 [22:14:47]ConnectInit lk.salyk.kg [22:14:47]ExternCall_PrintAddStr [22:14:47]wPrintStart [22:14:47]Write to MH i2c: 01 00 00 09 11 1A [22:14:47]Write i2c OK [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: 01 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: 01 07 00 [22:14:47]MH_I2C_Read... [22:14:47]Read from MH i2c: 01 07 00 09 11 00 00 00 00 00 FF 0F 2F [22:14:47]RasterBufferAndPrint [22:14:47]line Счет N : (1)979974 [22:14:47]line ИНН: 02508201610067 [22:14:47]line Контрольно-Кассовый Чек [22:14:47]line ПРОДАЖА [22:14:47]line ТРК (МРК, ГНК) : 22 [22:14:47]line Товар: 2710124130 [22:14:47]line Аи-92-К-5 [22:14:47]line 11.960 * 66.90 [22:14:47]line = 800.12 [22:14:47]line НДС 12% НСП 1% [22:14:47]line > о реализуемом товаре [22:14:47]line ОКРУГЛЕНИЕ: -0.12 [22:14:47]line ИТОГО: 800.00 [22:14:47]line Внесено: 800.00 [22:14:47]line СДАЧА: 0.00 [22:14:47]line НСП 1% : 7.08 [22:14:47]line НДС 12% : 84.97 [22:14:47]line Наличными: 800.00 [22:14:47]line Безнал.: 0.00 [22:14:47]line Место: АЗС № 68 "Партнер Нефть" [22:14:47]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:14:47]line СНО: Общий режим [22:14:47]line Чек 381 04.06.2024 22:14 [22:14:47]line Смена: 368 ФФД: 1.0 [22:14:47]line ЗНМ: 0300000035 [22:14:47]line РНМ: 0000000000092720 [22:14:48]line Версия ККМ: 001 [22:14:48]line ФМ: 0000000000875057 [22:14:48]line ФД: 149042 [22:14:48]line ФПД: 214904352078380 [22:14:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T221446&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149042&fm=214904352078380&tin=02508201610067®Number=0000000000092720&sum=80000 [22:14:48]Connected sock=11 [22:14:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 66 C8 07 01 8D DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 01 00 00 F4 03 04 00 D6 91 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 32 46 02 00 35 04 06 00 C3 74 51 90 FA 2C D8 96 90 BD 59 E9 64 CF [22:14:48]written 0, free lines is 4095 [22:14:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 5B E4 47 00 C1 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 32 46 02 00 F4 03 04 00 F9 38 5F 66 B6 04 01 00 00 A8 2C 5C 27 DF 0B 53 CC [22:14:48]CommunicateWithHost err = 0 [22:14:48]CheckOFDResponse [22:14:48]1017 (14) - 77093643461234 [22:14:48]1041 (16) - 0000000000875057 [22:14:48]1040 (4) - 149042 [22:14:48]1012 (4) - 04.06.2024 15:55 [22:14:48]1206 (1) - 0 [22:14:48]OFD Sender: Remove packet 149042 [22:14:48]ProducePacketName [22:14:48]name=ofd_packets/00149042 [22:14:48]NVStorageDeleteData [22:14:48]Write to MH i2c: 01 00 00 34 11 45 [22:14:48]Write i2c OK [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: 01 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: 01 07 00 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: 01 07 00 34 11 00 00 00 00 00 66 0C BE [22:14:48]RasterBufferAndPrint [22:14:48]line [22:14:48]line [22:14:48]line [22:14:48]line [22:14:48]line [22:14:48]written 0, free lines is 3178 [22:14:48]MH_Cut [22:14:48]Write to MH i2c: D1 01 00 3B 11 01 1E [22:14:48]Write i2c OK [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: D1 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: D1 01 00 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: D1 01 00 3B 11 00 1D [22:14:48]Write to MH i2c: 01 00 00 3C 11 4D [22:14:48]Write i2c OK [22:14:48]MH_I2C_Read... [22:14:48]OFD Sender: No OFD packet to send [22:14:49]*** Cut start [22:14:49]*** Partial cut [22:14:49]*** CUTSNS_PIN = 1 [22:14:49]*** CUTSNS_PIN = 0 [22:14:50]*** Brake cut motor [22:14:50]Read from MH i2c: 01 [22:14:50]MH_I2C_Read... [22:14:50]*** Stop cut motor [22:14:50]*** Cut end [22:14:50]Read from MH i2c: 01 07 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: 01 07 00 3C 11 00 00 00 00 00 FF 0F 62 [22:14:50]process_action close_receipt done [22:14:50]requested_data is exist [22:14:50]produce_requested_data [22:14:50]requested_item fm.sn is exist - process it [22:14:50]wFMCommunicate request_size=4 [22:14:50]MH_SAM_APDU [22:14:50]CAPDU: 80 11 00 00 [22:14:50]Write to MH i2c: E2 08 00 3D 11 80 11 00 00 00 00 00 00 C8 [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 17 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 17 00 3D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1B [22:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:14:50]wFMCommunicate OK [22:14:50]requested_item fd.num is exist - process it [22:14:50]SAM_PROTO_GetFieldsCounters [22:14:50]wFMCommunicate request_size=4 [22:14:50]MH_SAM_APDU [22:14:50]CAPDU: 80 13 00 00 [22:14:50]Write to MH i2c: E2 08 00 3E 11 80 13 00 00 00 00 00 00 CB [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 62 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 62 00 3E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 32 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [22:14:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 32 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:14:50]wFMCommunicate OK [22:14:50]SAM_PROTO_GetFieldsCounters done [22:14:50]requested_item shift.num is exist - process it [22:14:50]requested_item shift.opened is exist - process it [22:14:50]req_shift_opened [22:14:50]FM_GetShiftState [22:14:50]SAM_PROTO_GetShiftState [22:14:50]wFMCommunicate request_size=4 [22:14:50]MH_SAM_APDU [22:14:50]CAPDU: 80 13 01 00 [22:14:50]Write to MH i2c: E2 08 00 3F 11 80 13 01 00 00 00 00 00 CD [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 0E 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 0E 00 3F 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 90 [22:14:50]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:14:50]wFMCommunicate OK [22:14:50]SAM_PROTO_GetShiftState done [22:14:50]FM_GetShiftState done [22:14:50]req_shift_opened done [22:14:50]requested_item shift.open_date is exist - process it [22:14:50]req_shift_open_date [22:14:50]req_shift_open_date done [22:14:50]produce_requested_data done [22:14:50]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149042,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:14:50]process_action_free close_receipt [22:14:50]json_value_free [22:14:50]json_value_free done [22:14:50]process_json_proto returns [22:14:50]Send response to host [22:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149042,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:14:50]free response buf [22:14:50]execute_script done [22:14:50]execute_script returns [22:14:50]free content buf [22:14:50]Sock 7.Close socket [22:14:50]Sock 7.Thread stoped [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:40]accept exits with 9 [22:26:40]New connection [22:26:40]New thread 3067075940 created [22:26:40]Thread 3067219300 joined [22:26:40]Waiting for new connection... [22:26:40] Sock 9.Parse request [22:26:40]Sock 9.Check first char [22:26:40]Sock 9.First char is OK [22:26:40]request: POST /json_proto HTTP/1.0 [22:26:40]Method: POST [22:26:40]URL: /json_proto [22:26:40]Method is POST - this is cgi request [22:26:40]url: /json_proto [22:26:40]query_string will be loaded in cgi processing [22:26:40]execute_cgi json_proto POST (null) [22:26:40]execute_cgi path=json_proto method=POST [22:26:40]POST find Content-Length [22:26:40]Host: 172.17.38.4:8080 [22:26:40]Content-Length: 677 [22:26:40]Content-Type: application/json [22:26:40] [22:26:40]POST finish read [22:26:40]Found Content-Length = 677 [22:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 4.060, "sum" : 300.03, "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" ] } } [22:26:40]execute_script... [22:26: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)979975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 4.060, "sum" : 300.03, "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" ] } } [22:26:40]POST & json_proto [22:26:40]process_json_proto [22:26:40]json parsed OK: [22:26:40]protocol is kg_v1.0 [22:26:40]action value=close_receipt [22:26:40]process_action close_receipt [22:26:40]cmd_close_receipt [22:26:40]MH_GetDate [22:26:40]Write to MH i2c: F0 00 00 40 11 40 [22:26:40]Write i2c OK [22:26:40]MH_I2C_Read... [22:26:40]Read from MH i2c: F0 [22:26:40]MH_I2C_Read... [22:26:40]Read from MH i2c: F0 09 00 [22:26:40]MH_I2C_Read... [22:26:40]Read from MH i2c: F0 09 00 40 11 00 A1 94 5F 66 CC 51 87 64 4B [22:26:40]GetLastDocTimeStamp 1717539286 [22:26:40]current date 1717540001 [22:26:40]FM_GetShiftState [22:26:40]SAM_PROTO_GetShiftState [22:26:40]wFMCommunicate request_size=4 [22:26:40]MH_SAM_APDU [22:26:40]CAPDU: 80 13 01 00 [22:26:40]Write to MH i2c: E2 08 00 41 11 80 13 01 00 00 00 00 00 CF [22:26:40]Write i2c OK [22:26:40]MH_I2C_Read... [22:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:40]Read from MH i2c: E2 [22:26:40]MH_I2C_Read... [22:26:40]Read from MH i2c: E2 0E 00 [22:26:40]MH_I2C_Read... [22:26:40]Read from MH i2c: E2 0E 00 41 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 92 [22:26:40]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:26:40]wFMCommunicate OK [22:26:40]SAM_PROTO_GetShiftState done [22:26:40]FM_GetShiftState done [22:26:40]opened in 1717460629 [22:26:40]opened+sec_in_day 1717547029 [22:26:40]quantity*price = 30003 [22:26:40]sum+1 = 30004 [22:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 382 04.06.2024 22:26 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149043 ФПД: 103898904272658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222641&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149043&fm=103898904272658&tin=02508201610067®Number=0000000000092720&sum=30000 [22:26:41]StoreToDocumentArchive [22:26:41]shift 368 fd 149043 [22:26:41]save to /storage/0368/doc_00149043 [22:26:41]save last doc name /storage/0368/doc_00149043 to /storage/kkm_last_doc_name [22:26:41]save OK [22:26:41]Clear old archive folders... [22:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:41]tlvbuf is B6EE94A0 [22:26:41]SAM_PROTO_ClearQueue [22:26:41]wFMCommunicate request_size=4 [22:26:41]MH_SAM_APDU [22:26:41]CAPDU: 80 09 00 00 [22:26:41]Write to MH i2c: E2 08 00 4E 11 80 09 00 00 00 00 00 00 D1 [22:26:41]Write i2c OK [22:26:41]MH_I2C_Read... [22:26:41]Read from MH i2c: E2 [22:26:41]MH_I2C_Read... [22:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:41]Read from MH i2c: E2 03 00 [22:26:41]MH_I2C_Read... [22:26:41]Read from MH i2c: E2 03 00 4E 11 00 90 00 D3 [22:26:41]RAPDU: 90 00 [22:26:41]wFMCommunicate OK [22:26:41]SAM_PROTO_ClearQueue done [22:26:41]KKMCreateOFDPacket [22:26:41]OFDProtocolAddRootSTLVToBuf [22:26:41]FM_MakeSignedData [22:26:41]FM_MakeSignedData [22:26:41]SAM_PROTO_SignData [22:26:41]wFMCommunicate request_size=4 [22:26:41]MH_SAM_APDU [22:26:41]CAPDU: 80 0D 01 02 [22:26:41]Write to MH i2c: E2 08 00 4F 11 80 0D 01 02 00 00 00 00 D9 [22:26:41]Write i2c OK [22:26:41]MH_I2C_Read... [22:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:41]Read from MH i2c: E2 [22:26:41]MH_I2C_Read... [22:26:41]Read from MH i2c: E2 03 00 [22:26:41]MH_I2C_Read... [22:26:41]Read from MH i2c: E2 03 00 4F 11 00 90 00 D4 [22:26:41]RAPDU: 90 00 [22:26:41]wFMCommunicate OK [22:26:41]wFMCommunicate request_size=255 [22:26:41]MH_SAM_APDU [22:26:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 A1 94 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 33 46 02 00 35 04 06 00 5E [22:26:41]Write to MH i2c: E2 02 01 50 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 A1 94 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 33 46 02 00 35 04 06 00 5E 00 00 04 [22:26:41]Write i2c OK [22:26:41]MH_I2C_Read... [22:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:42]Read from MH i2c: E2 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 50 11 00 90 00 D5 [22:26:42]RAPDU: 90 00 [22:26:42]wFMCommunicate OK [22:26:42]wFMCommunicate request_size=10 [22:26:42]MH_SAM_APDU [22:26:42]CAPDU: 80 0D 02 02 05 7E D9 48 1F 12 [22:26:42]Write to MH i2c: E2 0D 00 51 11 80 0D 02 02 05 00 7E D9 48 1F 12 00 00 B6 [22:26:42]Write i2c OK [22:26:42]MH_I2C_Read... [22:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:42]Read from MH i2c: E2 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 03 00 51 11 00 90 00 D6 [22:26:42]RAPDU: 90 00 [22:26:42]wFMCommunicate OK [22:26:42]wFMCommunicate request_size=4 [22:26:42]MH_SAM_APDU [22:26:42]CAPDU: 80 0D 03 02 [22:26:42]Write to MH i2c: E2 08 00 52 11 80 0D 03 02 00 00 00 00 DE [22:26:42]Write i2c OK [22:26:42]MH_I2C_Read... [22:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:42]Read from MH i2c: E2 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 0B 00 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 0B 00 52 11 00 43 F2 60 B8 52 64 0B 55 90 00 42 [22:26:42]RAPDU: 43 F2 60 B8 52 64 0B 55 90 00 [22:26:42]wFMCommunicate OK [22:26:42]SAM_PROTO_SignData done [22:26:42]FM_MakeSignedData done [22:26:42]CreateOFDProtocolMessage [22:26:42]wFMCommunicate request_size=4 [22:26:42]MH_SAM_APDU [22:26:42]CAPDU: 80 11 00 00 [22:26:42]Write to MH i2c: E2 08 00 53 11 80 11 00 00 00 00 00 00 DE [22:26:42]Write i2c OK [22:26:42]MH_I2C_Read... [22:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:42]Read from MH i2c: E2 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 17 00 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: E2 17 00 53 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 31 [22:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:26:42]wFMCommunicate OK [22:26:42]CreateOFDProtocolMessage done [22:26:42]OFDSenderStorePacket 149043 [22:26:42]StoreOFDPacket docnum=149043 [22:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F6 67 07 01 87 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 A1 94 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 33 46 02 00 35 04 06 00 5E 7E D9 48 1F 12 43 F2 60 B8 52 64 0B 55 [22:26:42]CheckFolder [22:26:42]dirname=/storage/ofd_packets [22:26:42]CheckFolder done [22:26:42]ProducePacketName [22:26:42]name=ofd_packets/00149043 [22:26:42]NVStorageSaveData ofd_packets/00149043 [22:26:42]File name is /storage/ofd_packets/00149043 [22:26:42]Write 301 bytes [22:26:42]NVStorageSaveData done [22:26:42]OFDSenderStorePacket done [22:26:42]KKMCreateOFDPacket done [22:26:42]NVStorageSaveData kkm_last_timestamp [22:26:42]File name is /storage/kkm_last_timestamp [22:26:42]Write 4 bytes [22:26:42]NVStorageSaveData done [22:26:42]ExternCall_PrintAddStr [22:26:42]wPrintStart [22:26:42]Write to MH i2c: 01 00 00 54 11 65 [22:26:42]Write i2c OK [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: 01 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: 01 07 00 [22:26:42]MH_I2C_Read... [22:26:42]Read from MH i2c: 01 07 00 54 11 00 00 00 00 00 FF 0F 7A [22:26:42]RasterBufferAndPrint [22:26:42]line Счет N : (1)979975 [22:26:42]line ИНН: 02508201610067 [22:26:42]line Контрольно-Кассовый Чек [22:26:42]line ПРОДАЖА [22:26:42]line ТРК (МРК, ГНК) : 23 [22:26:42]line Товар: 2710124500 [22:26:42]line Аи-95-К-5 [22:26:42]line 4.060 * 73.90 [22:26:42]line = 300.03 [22:26:42]line НДС 12% НСП 1% [22:26:42]line > о реализуемом товаре [22:26:42]line ОКРУГЛЕНИЕ: -0.03 [22:26:42]line ИТОГО: 300.00 [22:26:42]line Внесено: 300.00 [22:26:42]line СДАЧА: 0.00 [22:26:42]line НСП 1% : 2.65 [22:26:42]line НДС 12% : 31.86 [22:26:42]line Наличными: 300.00 [22:26:42]line Безнал.: 0.00 [22:26:42]line Место: АЗС № 68 "Партнер Нефть" [22:26:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:26:42]line СНО: Общий режим [22:26:42]line Чек 382 04.06.2024 22:26 [22:26:42]line Смена: 368 ФФД: 1.0 [22:26:42]line ЗНМ: 0300000035 [22:26:42]line РНМ: 0000000000092720 [22:26:42]line Версия ККМ: 001 [22:26:42]line ФМ: 0000000000875057 [22:26:42]line ФД: 149043 [22:26:42]line ФПД: 103898904272658 [22:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222641&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149043&fm=103898904272658&tin=02508201610067®Number=0000000000092720&sum=30000 [22:26:42]OFD Sender: Processing packet 149043 [packets to send 100, broken 99] [22:26:42]ProducePacketName [22:26:42]name=ofd_packets/00149043 [22:26:42]OFD Sender: To server: pG, [22:26:42]CommunicateWithHost lk.salyk.kg:30040 [22:26:42]ConnectInit lk.salyk.kg [22:26:42]written 0, free lines is 4095 [22:26:42]Connected sock=10 [22:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F6 67 07 01 87 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 33 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 A1 94 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 33 46 02 00 35 04 06 00 5E 7E D9 48 1F 12 43 F2 60 B8 52 64 0B 55 [22:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CB FC 47 00 6F 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 33 46 02 00 F4 03 04 00 C4 3B 5F 66 B6 04 01 00 00 01 80 60 63 F4 B3 29 35 [22:26:42]CommunicateWithHost err = 0 [22:26:42]CheckOFDResponse [22:26:42]1017 (14) - 77093643461234 [22:26:42]1041 (16) - 0000000000875057 [22:26:42]1040 (4) - 149043 [22:26:42]1012 (4) - 04.06.2024 16:07 [22:26:42]1206 (1) - 0 [22:26:42]OFD Sender: Remove packet 149043 [22:26:42]ProducePacketName [22:26:42]name=ofd_packets/00149043 [22:26:42]NVStorageDeleteData [22:26:43]Write to MH i2c: 01 00 00 7F 11 90 [22:26:43]Write i2c OK [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: 01 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: 01 07 00 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: 01 07 00 7F 11 00 00 00 00 00 6B 0C 0E [22:26:43]RasterBufferAndPrint [22:26:43]line [22:26:43]line [22:26:43]line [22:26:43]line [22:26:43]line [22:26:43]written 0, free lines is 3182 [22:26:43]MH_Cut [22:26:43]Write to MH i2c: D1 01 00 86 11 01 69 [22:26:43]Write i2c OK [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: D1 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: D1 01 00 [22:26:43]MH_I2C_Read... [22:26:43]Read from MH i2c: D1 01 00 86 11 00 68 [22:26:43]Write to MH i2c: 01 00 00 87 11 98 [22:26:43]Write i2c OK [22:26:43]MH_I2C_Read... [22:26:43]OFD Sender: No OFD packet to send [22:26:44]*** Cut start [22:26:44]*** Partial cut [22:26:44]*** CUTSNS_PIN = 1 [22:26:44]*** CUTSNS_PIN = 0 [22:26:44]*** Brake cut motor [22:26:45]Read from MH i2c: 01 [22:26:45]MH_I2C_Read... [22:26:45]*** Stop cut motor [22:26:45]*** Cut end [22:26:45]Read from MH i2c: 01 07 00 [22:26:45]MH_I2C_Read... [22:26:45]Read from MH i2c: 01 07 00 87 11 00 00 00 00 00 FF 0F AD [22:26:45]process_action close_receipt done [22:26:45]requested_data is exist [22:26:45]produce_requested_data [22:26:45]requested_item fm.sn is exist - process it [22:26:45]wFMCommunicate request_size=4 [22:26:45]MH_SAM_APDU [22:26:45]CAPDU: 80 11 00 00 [22:26:45]Write to MH i2c: E2 08 00 88 11 80 11 00 00 00 00 00 00 13 [22:26:45]Write i2c OK [22:26:45]MH_I2C_Read... [22:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:45]Read from MH i2c: E2 [22:26:45]MH_I2C_Read... [22:26:45]Read from MH i2c: E2 17 00 [22:26:45]MH_I2C_Read... [22:26:45]Read from MH i2c: E2 17 00 88 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 66 [22:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:26:45]wFMCommunicate OK [22:26:45]requested_item fd.num is exist - process it [22:26:45]SAM_PROTO_GetFieldsCounters [22:26:45]wFMCommunicate request_size=4 [22:26:45]MH_SAM_APDU [22:26:45]CAPDU: 80 13 00 00 [22:26:45]Write to MH i2c: E2 08 00 89 11 80 13 00 00 00 00 00 00 16 [22:26:45]Write i2c OK [22:26:45]MH_I2C_Read... [22:26:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:45]Read from MH i2c: E2 [22:26:45]MH_I2C_Read... [22:26:45]Read from MH i2c: E2 62 00 [22:26:45]MH_I2C_Read... [22:26:45]Read from MH i2c: E2 62 00 89 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 33 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [22:26:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 33 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:45]wFMCommunicate OK [22:26:45]SAM_PROTO_GetFieldsCounters done [22:26:45]requested_item shift.num is exist - process it [22:26:45]requested_item shift.opened is exist - process it [22:26:45]req_shift_opened [22:26:45]FM_GetShiftState [22:26:45]SAM_PROTO_GetShiftState [22:26:45]wFMCommunicate request_size=4 [22:26:45]MH_SAM_APDU [22:26:45]CAPDU: 80 13 01 00 [22:26:45]Write to MH i2c: E2 08 00 8A 11 80 13 01 00 00 00 00 00 18 [22:26:45]Write i2c OK [22:26:45]MH_I2C_Read... [22:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:45]Read from MH i2c: E2 [22:26:45]MH_I2C_Read... [22:26:45]Read from MH i2c: E2 0E 00 [22:26:45]MH_I2C_Read... [22:26:45]Read from MH i2c: E2 0E 00 8A 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DB [22:26:45]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:26:45]wFMCommunicate OK [22:26:45]SAM_PROTO_GetShiftState done [22:26:45]FM_GetShiftState done [22:26:45]req_shift_opened done [22:26:45]requested_item shift.open_date is exist - process it [22:26:45]req_shift_open_date [22:26:45]req_shift_open_date done [22:26:45]produce_requested_data done [22:26:45]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149043,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:26:45]process_action_free close_receipt [22:26:45]json_value_free [22:26:45]json_value_free done [22:26:45]process_json_proto returns [22:26:45]Send response to host [22:26:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149043,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:26:45]free response buf [22:26:45]execute_script done [22:26:45]execute_script returns [22:26:45]free content buf [22:26:45]Sock 9.Close socket [22:26:45]Sock 9.Thread stoped [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:21]accept exits with 7 [22:27:21]New connection [22:27:21]New thread 3067219300 created [22:27:21]Thread 3067075940 joined [22:27:21]Waiting for new connection... [22:27:21] Sock 7.Parse request [22:27:21]Sock 7.Check first char [22:27:21]Sock 7.First char is OK [22:27:21]request: POST /json_proto HTTP/1.0 [22:27:21]Method: POST [22:27:21]URL: /json_proto [22:27:21]Method is POST - this is cgi request [22:27:21]url: /json_proto [22:27:21]query_string will be loaded in cgi processing [22:27:21]execute_cgi json_proto POST (null) [22:27:21]execute_cgi path=json_proto method=POST [22:27:21]POST find Content-Length [22:27:21]Host: 172.17.38.4:8080 [22:27:21]Content-Length: 677 [22:27:21]Content-Type: application/json [22:27:21] [22:27:21]POST finish read [22:27:21]Found Content-Length = 677 [22:27:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.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" ] } } [22:27:21]execute_script... [22:27: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)979976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.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" ] } } [22:27:21]POST & json_proto [22:27:21]process_json_proto [22:27:21]json parsed OK: [22:27:21]protocol is kg_v1.0 [22:27:21]action value=close_receipt [22:27:21]process_action close_receipt [22:27:21]cmd_close_receipt [22:27:21]MH_GetDate [22:27:21]Write to MH i2c: F0 00 00 8B 11 8B [22:27:21]Write i2c OK [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: F0 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: F0 09 00 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: F0 09 00 8B 11 00 CA 94 5F 66 CC 51 87 64 BF [22:27:21]GetLastDocTimeStamp 1717540001 [22:27:21]current date 1717540042 [22:27:21]FM_GetShiftState [22:27:21]SAM_PROTO_GetShiftState [22:27:21]wFMCommunicate request_size=4 [22:27:21]MH_SAM_APDU [22:27:21]CAPDU: 80 13 01 00 [22:27:21]Write to MH i2c: E2 08 00 8C 11 80 13 01 00 00 00 00 00 1A [22:27:21]Write i2c OK [22:27:21]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 0E 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 0E 00 8C 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 DD [22:27:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:27:22]wFMCommunicate OK [22:27:22]SAM_PROTO_GetShiftState done [22:27:22]FM_GetShiftState done [22:27:22]opened in 1717460629 [22:27:22]opened+sec_in_day 1717547029 [22:27:22]quantity*price = 10035 [22:27:22]sum+1 = 10036 [22:27:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 383 04.06.2024 22:27 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149044 ФПД: 147335410539234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222722&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149044&fm=147335410539234&tin=02508201610067®Number=0000000000092720&sum=10000 [22:27:23]StoreToDocumentArchive [22:27:23]shift 368 fd 149044 [22:27:23]save to /storage/0368/doc_00149044 [22:27:23]save last doc name /storage/0368/doc_00149044 to /storage/kkm_last_doc_name [22:27:23]save OK [22:27:23]Clear old archive folders... [22:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:23]tlvbuf is 00950FE0 [22:27:23]SAM_PROTO_ClearQueue [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 09 00 00 [22:27:23]Write to MH i2c: E2 08 00 99 11 80 09 00 00 00 00 00 00 1C [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 99 11 00 90 00 1E [22:27:23]RAPDU: 90 00 [22:27:23]wFMCommunicate OK [22:27:23]SAM_PROTO_ClearQueue done [22:27:23]KKMCreateOFDPacket [22:27:23]OFDProtocolAddRootSTLVToBuf [22:27:23]FM_MakeSignedData [22:27:23]FM_MakeSignedData [22:27:23]SAM_PROTO_SignData [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 0D 01 02 [22:27:23]Write to MH i2c: E2 08 00 9A 11 80 0D 01 02 00 00 00 00 24 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 9A 11 00 90 00 1F [22:27:23]RAPDU: 90 00 [22:27:23]wFMCommunicate OK [22:27:23]wFMCommunicate request_size=255 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 01 00 00 F4 03 04 00 CA 94 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 34 46 02 00 35 04 06 00 86 [22:27:23]Write to MH i2c: E2 02 01 9B 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 01 00 00 F4 03 04 00 CA 94 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 34 46 02 00 35 04 06 00 86 00 00 AB [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [22:27:23]RAPDU: 90 00 [22:27:23]wFMCommunicate OK [22:27:23]wFMCommunicate request_size=10 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 0D 02 02 05 00 32 CE DA E2 [22:27:23]Write to MH i2c: E2 0D 00 9C 11 80 0D 02 02 05 00 00 32 CE DA E2 00 00 ED [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]OFD Sender: No OFD packet to send [22:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 9C 11 00 90 00 21 [22:27:23]RAPDU: 90 00 [22:27:23]wFMCommunicate OK [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 0D 03 02 [22:27:23]Write to MH i2c: E2 08 00 9D 11 80 0D 03 02 00 00 00 00 29 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 0B 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 0B 00 9D 11 00 CB BC 36 42 7F 3C 6D 5B 90 00 AC [22:27:23]RAPDU: CB BC 36 42 7F 3C 6D 5B 90 00 [22:27:23]wFMCommunicate OK [22:27:23]SAM_PROTO_SignData done [22:27:23]FM_MakeSignedData done [22:27:23]CreateOFDProtocolMessage [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 11 00 00 [22:27:23]Write to MH i2c: E2 08 00 9E 11 80 11 00 00 00 00 00 00 29 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 17 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 17 00 9E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7C [22:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:27:23]wFMCommunicate OK [22:27:23]CreateOFDProtocolMessage done [22:27:23]OFDSenderStorePacket 149044 [22:27:23]StoreOFDPacket docnum=149044 [22:27:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F7 84 07 01 BD 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 01 00 00 F4 03 04 00 CA 94 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 34 46 02 00 35 04 06 00 86 00 32 CE DA E2 CB BC 36 42 7F 3C 6D 5B [22:27:23]CheckFolder [22:27:23]dirname=/storage/ofd_packets [22:27:23]CheckFolder done [22:27:23]ProducePacketName [22:27:23]name=ofd_packets/00149044 [22:27:23]NVStorageSaveData ofd_packets/00149044 [22:27:23]File name is /storage/ofd_packets/00149044 [22:27:23]Write 301 bytes [22:27:23]NVStorageSaveData done [22:27:23]OFDSenderStorePacket done [22:27:23]KKMCreateOFDPacket done [22:27:23]NVStorageSaveData kkm_last_timestamp [22:27:23]File name is /storage/kkm_last_timestamp [22:27:23]Write 4 bytes [22:27:23]NVStorageSaveData done [22:27:23]ExternCall_PrintAddStr [22:27:23]wPrintStart [22:27:23]Write to MH i2c: 01 00 00 9F 11 B0 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 07 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 07 00 9F 11 00 00 00 00 00 FF 0F C5 [22:27:23]RasterBufferAndPrint [22:27:23]line Счет N : (1)979976 [22:27:23]line ИНН: 02508201610067 [22:27:23]line Контрольно-Кассовый Чек [22:27:23]line ПРОДАЖА [22:27:23]line ТРК (МРК, ГНК) : 12 [22:27:23]line Товар: 2710124130 [22:27:23]line Аи-92-К-5 [22:27:23]line 1.500 * 66.90 [22:27:23]line = 100.35 [22:27:23]line НДС 12% НСП 1% [22:27:23]line > о реализуемом товаре [22:27:23]line ОКРУГЛЕНИЕ: -0.35 [22:27:23]line ИТОГО: 100.00 [22:27:23]line Внесено: 100.00 [22:27:23]line СДАЧА: 0.00 [22:27:23]line НСП 1% : 0.89 [22:27:23]line НДС 12% : 10.66 [22:27:23]line Наличными: 100.00 [22:27:23]line Безнал.: 0.00 [22:27:23]line Место: АЗС № 68 "Партнер Нефть" [22:27:23]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:27:23]line СНО: Общий режим [22:27:23]line Чек 383 04.06.2024 22:27 [22:27:23]line Смена: 368 ФФД: 1.0 [22:27:23]line ЗНМ: 0300000035 [22:27:23]line РНМ: 0000000000092720 [22:27:23]line Версия ККМ: 001 [22:27:23]line ФМ: 0000000000875057 [22:27:23]line ФД: 149044 [22:27:23]line ФПД: 147335410539234 [22:27:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222722&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149044&fm=147335410539234&tin=02508201610067®Number=0000000000092720&sum=10000 [22:27:23]OFD Sender: Processing packet 149044 [packets to send 100, broken 99] [22:27:23]ProducePacketName [22:27:23]name=ofd_packets/00149044 [22:27:23]OFD Sender: To server: pG, [22:27:23]CommunicateWithHost lk.salyk.kg:30040 [22:27:23]ConnectInit lk.salyk.kg [22:27:23]written 0, free lines is 4095 [22:27:24]Connected sock=10 [22:27:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 F7 84 07 01 BD 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 01 00 00 F4 03 04 00 CA 94 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 34 46 02 00 35 04 06 00 86 00 32 CE DA E2 CB BC 36 42 7F 3C 6D 5B [22:27:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E4 08 47 00 05 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 38 37 35 30 35 37 10 04 04 00 34 46 02 00 F4 03 04 00 ED 3B 5F 66 B6 04 01 00 00 00 23 8F C5 58 7B FE 8F [22:27:24]CommunicateWithHost err = 0 [22:27:24]CheckOFDResponse [22:27:24]1017 (14) - 77093643461234 [22:27:24]1041 (16) - 0000000000875057 [22:27:24]1040 (4) - 149044 [22:27:24]1012 (4) - 04.06.2024 16:08 [22:27:24]1206 (1) - 0 [22:27:24]OFD Sender: Remove packet 149044 [22:27:24]ProducePacketName [22:27:24]name=ofd_packets/00149044 [22:27:24]NVStorageDeleteData [22:27:24]Write to MH i2c: 01 00 00 CA 11 DB [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 07 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 07 00 CA 11 00 00 00 00 00 67 0C 55 [22:27:24]RasterBufferAndPrint [22:27:24]line [22:27:24]line [22:27:24]line [22:27:24]line [22:27:24]line [22:27:24]written 0, free lines is 3179 [22:27:24]MH_Cut [22:27:24]Write to MH i2c: D1 01 00 D1 11 01 B4 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: D1 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: D1 01 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: D1 01 00 D1 11 00 B3 [22:27:24]Write to MH i2c: 01 00 00 D2 11 E3 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]OFD Sender: No OFD packet to send [22:27:25]*** Cut start [22:27:25]*** Partial cut [22:27:25]*** CUTSNS_PIN = 1 [22:27:25]*** CUTSNS_PIN = 0 [22:27:25]*** Brake cut motor [22:27:26]Read from MH i2c: 01 [22:27:26]MH_I2C_Read... [22:27:26]*** Stop cut motor [22:27:26]*** Cut end [22:27:26]Read from MH i2c: 01 07 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: 01 07 00 D2 11 00 00 00 00 00 FF 0F F8 [22:27:26]process_action close_receipt done [22:27:26]requested_data is exist [22:27:26]produce_requested_data [22:27:26]requested_item fm.sn is exist - process it [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 11 00 00 [22:27:26]Write to MH i2c: E2 08 00 D3 11 80 11 00 00 00 00 00 00 5E [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 17 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 17 00 D3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B1 [22:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:27:26]wFMCommunicate OK [22:27:26]requested_item fd.num is exist - process it [22:27:26]SAM_PROTO_GetFieldsCounters [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 13 00 00 [22:27:26]Write to MH i2c: E2 08 00 D4 11 80 13 00 00 00 00 00 00 61 [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 62 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 62 00 D4 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 34 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [22:27:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 34 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:26]wFMCommunicate OK [22:27:26]SAM_PROTO_GetFieldsCounters done [22:27:26]requested_item shift.num is exist - process it [22:27:26]requested_item shift.opened is exist - process it [22:27:26]req_shift_opened [22:27:26]FM_GetShiftState [22:27:26]SAM_PROTO_GetShiftState [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 13 01 00 [22:27:26]Write to MH i2c: E2 08 00 D5 11 80 13 01 00 00 00 00 00 63 [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 0E 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 0E 00 D5 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 26 [22:27:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:27:26]wFMCommunicate OK [22:27:26]SAM_PROTO_GetShiftState done [22:27:26]FM_GetShiftState done [22:27:26]req_shift_opened done [22:27:26]requested_item shift.open_date is exist - process it [22:27:26]req_shift_open_date [22:27:26]req_shift_open_date done [22:27:26]produce_requested_data done [22:27:26]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149044,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:27:26]process_action_free close_receipt [22:27:26]json_value_free [22:27:26]json_value_free done [22:27:26]process_json_proto returns [22:27:26]Send response to host [22:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149044,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:27:26]free response buf [22:27:26]execute_script done [22:27:26]execute_script returns [22:27:26]free content buf [22:27:26]Sock 7.Close socket [22:27:26]Sock 7.Thread stoped [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:08]accept exits with 9 [22:30:08]New connection [22:30:08]New thread 3067075940 created [22:30:08]Thread 3067219300 joined [22:30:08]Waiting for new connection... [22:30:08] Sock 9.Parse request [22:30:08]Sock 9.Check first char [22:30:08]Sock 9.First char is OK [22:30:08]request: POST /json_proto HTTP/1.0 [22:30:08]Method: POST [22:30:08]URL: /json_proto [22:30:08]Method is POST - this is cgi request [22:30:08]url: /json_proto [22:30:08]query_string will be loaded in cgi processing [22:30:08]execute_cgi json_proto POST (null) [22:30:08]execute_cgi path=json_proto method=POST [22:30:08]POST find Content-Length [22:30:08]Host: 172.17.38.4:8080 [22:30:08]Content-Length: 677 [22:30:08]Content-Type: application/json [22:30:08] [22:30:08]POST finish read [22:30:08]Found Content-Length = 677 [22:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:08]execute_script... [22:30: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)979977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:08]POST & json_proto [22:30:08]process_json_proto [22:30:08]json parsed OK: [22:30:08]protocol is kg_v1.0 [22:30:08]action value=close_receipt [22:30:08]process_action close_receipt [22:30:08]cmd_close_receipt [22:30:08]MH_GetDate [22:30:08]Write to MH i2c: F0 00 00 D6 11 D6 [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: F0 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: F0 09 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: F0 09 00 D6 11 00 71 95 5F 66 CC 51 87 64 B2 [22:30:08]GetLastDocTimeStamp 1717540042 [22:30:08]current date 1717540209 [22:30:08]FM_GetShiftState [22:30:08]SAM_PROTO_GetShiftState [22:30:08]wFMCommunicate request_size=4 [22:30:08]MH_SAM_APDU [22:30:08]CAPDU: 80 13 01 00 [22:30:08]Write to MH i2c: E2 08 00 D7 11 80 13 01 00 00 00 00 00 65 [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:08]Read from MH i2c: E2 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 0E 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 0E 00 D7 11 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 28 [22:30:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:30:08]wFMCommunicate OK [22:30:08]SAM_PROTO_GetShiftState done [22:30:08]FM_GetShiftState done [22:30:08]opened in 1717460629 [22:30:08]opened+sec_in_day 1717547029 [22:30:08]quantity*price = 12042 [22:30:08]sum+1 = 12043 [22:30:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 384 04.06.2024 22:30 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149045 ФПД: 127005871448495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223009&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149045&fm=127005871448495&tin=02508201610067®Number=0000000000092720&sum=12000 [22:30:09]StoreToDocumentArchive [22:30:09]shift 368 fd 149045 [22:30:09]save to /storage/0368/doc_00149045 [22:30:09]save last doc name /storage/0368/doc_00149045 to /storage/kkm_last_doc_name [22:30:09]save OK [22:30:09]Clear old archive folders... [22:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:09]tlvbuf is 009958D0 [22:30:09]SAM_PROTO_ClearQueue [22:30:09]wFMCommunicate request_size=4 [22:30:09]MH_SAM_APDU [22:30:09]CAPDU: 80 09 00 00 [22:30:09]Write to MH i2c: E2 08 00 E4 11 80 09 00 00 00 00 00 00 67 [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:09]Read from MH i2c: E2 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 03 00 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 03 00 E4 11 00 90 00 69 [22:30:09]RAPDU: 90 00 [22:30:09]wFMCommunicate OK [22:30:09]SAM_PROTO_ClearQueue done [22:30:09]KKMCreateOFDPacket [22:30:09]OFDProtocolAddRootSTLVToBuf [22:30:09]FM_MakeSignedData [22:30:09]FM_MakeSignedData [22:30:09]SAM_PROTO_SignData [22:30:09]wFMCommunicate request_size=4 [22:30:09]MH_SAM_APDU [22:30:09]CAPDU: 80 0D 01 02 [22:30:09]Write to MH i2c: E2 08 00 E5 11 80 0D 01 02 00 00 00 00 6F [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:09]Read from MH i2c: E2 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 03 00 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 03 00 E5 11 00 90 00 6A [22:30:09]RAPDU: 90 00 [22:30:09]wFMCommunicate OK [22:30:09]wFMCommunicate request_size=255 [22:30:09]MH_SAM_APDU [22:30:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 71 95 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 35 46 02 00 35 04 06 00 73 [22:30:09]Write to MH i2c: E2 02 01 E6 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 71 95 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 35 46 02 00 35 04 06 00 73 00 00 2F [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:10]OFD Sender: No OFD packet to send [22:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:10]Read from MH i2c: E2 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 03 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 03 00 E6 11 00 90 00 6B [22:30:10]RAPDU: 90 00 [22:30:10]wFMCommunicate OK [22:30:10]wFMCommunicate request_size=10 [22:30:10]MH_SAM_APDU [22:30:10]CAPDU: 80 0D 02 02 05 82 DB DA 21 AF [22:30:10]Write to MH i2c: E2 0D 00 E7 11 80 0D 02 02 05 00 82 DB DA 21 AF 00 00 83 [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:10]Read from MH i2c: E2 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 03 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 03 00 E7 11 00 90 00 6C [22:30:10]RAPDU: 90 00 [22:30:10]wFMCommunicate OK [22:30:10]wFMCommunicate request_size=4 [22:30:10]MH_SAM_APDU [22:30:10]CAPDU: 80 0D 03 02 [22:30:10]Write to MH i2c: E2 08 00 E8 11 80 0D 03 02 00 00 00 00 74 [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:10]Read from MH i2c: E2 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 0B 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 0B 00 E8 11 00 B9 16 47 46 12 50 A9 B7 90 00 93 [22:30:10]RAPDU: B9 16 47 46 12 50 A9 B7 90 00 [22:30:10]wFMCommunicate OK [22:30:10]SAM_PROTO_SignData done [22:30:10]FM_MakeSignedData done [22:30:10]CreateOFDProtocolMessage [22:30:10]wFMCommunicate request_size=4 [22:30:10]MH_SAM_APDU [22:30:10]CAPDU: 80 11 00 00 [22:30:10]Write to MH i2c: E2 08 00 E9 11 80 11 00 00 00 00 00 00 74 [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:10]Read from MH i2c: E2 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 17 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 17 00 E9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C7 [22:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:30:10]wFMCommunicate OK [22:30:10]CreateOFDProtocolMessage done [22:30:10]OFDSenderStorePacket 149045 [22:30:10]StoreOFDPacket docnum=149045 [22:30:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 8E 1C 07 01 A5 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 71 95 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 35 46 02 00 35 04 06 00 73 82 DB DA 21 AF B9 16 47 46 12 50 A9 B7 [22:30:10]CheckFolder [22:30:10]dirname=/storage/ofd_packets [22:30:10]CheckFolder done [22:30:10]ProducePacketName [22:30:10]name=ofd_packets/00149045 [22:30:10]NVStorageSaveData ofd_packets/00149045 [22:30:10]File name is /storage/ofd_packets/00149045 [22:30:10]Write 301 bytes [22:30:10]NVStorageSaveData done [22:30:10]OFDSenderStorePacket done [22:30:10]KKMCreateOFDPacket done [22:30:10]NVStorageSaveData kkm_last_timestamp [22:30:10]File name is /storage/kkm_last_timestamp [22:30:10]Write 4 bytes [22:30:10]NVStorageSaveData done [22:30:10]ExternCall_PrintAddStr [22:30:10]wPrintStart [22:30:10]Write to MH i2c: 01 00 00 EA 11 FB [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: 01 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: 01 07 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: 01 07 00 EA 11 00 00 00 00 00 FF 0F 10 [22:30:10]RasterBufferAndPrint [22:30:10]line Счет N : (1)979977 [22:30:10]line ИНН: 02508201610067 [22:30:10]line Контрольно-Кассовый Чек [22:30:10]line ПРОДАЖА [22:30:10]line ТРК (МРК, ГНК) : 22 [22:30:10]line Товар: 2710124130 [22:30:10]line Аи-92-К-5 [22:30:10]line 1.800 * 66.90 [22:30:10]line = 120.42 [22:30:10]line НДС 12% НСП 1% [22:30:10]line > о реализуемом товаре [22:30:10]line ОКРУГЛЕНИЕ: -0.42 [22:30:10]line ИТОГО: 120.00 [22:30:10]line Внесено: 120.00 [22:30:10]line СДАЧА: 0.00 [22:30:10]line НСП 1% : 1.07 [22:30:10]line НДС 12% : 12.79 [22:30:10]line Наличными: 120.00 [22:30:10]line Безнал.: 0.00 [22:30:10]line Место: АЗС № 68 "Партнер Нефть" [22:30:10]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:30:10]line СНО: Общий режим [22:30:10]line Чек 384 04.06.2024 22:30 [22:30:10]line Смена: 368 ФФД: 1.0 [22:30:10]line ЗНМ: 0300000035 [22:30:10]line РНМ: 0000000000092720 [22:30:10]line Версия ККМ: 001 [22:30:10]line ФМ: 0000000000875057 [22:30:10]line ФД: 149045 [22:30:10]line ФПД: 127005871448495 [22:30:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223009&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149045&fm=127005871448495&tin=02508201610067®Number=0000000000092720&sum=12000 [22:30:10]OFD Sender: Processing packet 149045 [packets to send 100, broken 99] [22:30:10]ProducePacketName [22:30:10]name=ofd_packets/00149045 [22:30:10]OFD Sender: To server: pG, [22:30:10]CommunicateWithHost lk.salyk.kg:30040 [22:30:10]ConnectInit lk.salyk.kg [22:30:10]written 0, free lines is 4095 [22:30:10]Connected sock=10 [22:30:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 8E 1C 07 01 A5 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 71 95 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 35 46 02 00 35 04 06 00 73 82 DB DA 21 AF B9 16 47 46 12 50 A9 B7 [22:30:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D6 63 47 00 A2 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 35 46 02 00 F4 03 04 00 94 3C 5F 66 B6 04 01 00 00 98 DD 4A 84 8C FE EE 8A [22:30:11]CommunicateWithHost err = 0 [22:30:11]CheckOFDResponse [22:30:11]1017 (14) - 77093643461234 [22:30:11]1041 (16) - 0000000000875057 [22:30:11]1040 (4) - 149045 [22:30:11]1012 (4) - 04.06.2024 16:11 [22:30:11]1206 (1) - 0 [22:30:11]OFD Sender: Remove packet 149045 [22:30:11]ProducePacketName [22:30:11]name=ofd_packets/00149045 [22:30:11]NVStorageDeleteData [22:30:11]Write to MH i2c: 01 00 00 15 12 27 [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: 01 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: 01 07 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: 01 07 00 15 12 00 00 00 00 00 65 0C 9F [22:30:11]RasterBufferAndPrint [22:30:11]line [22:30:11]line [22:30:11]line [22:30:11]line [22:30:11]line [22:30:11]written 0, free lines is 3177 [22:30:11]MH_Cut [22:30:11]Write to MH i2c: D1 01 00 1C 12 01 00 [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: D1 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: D1 01 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: D1 01 00 1C 12 00 FF [22:30:11]Write to MH i2c: 01 00 00 1D 12 2F [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]OFD Sender: No OFD packet to send [22:30:12]*** Cut start [22:30:12]*** Partial cut [22:30:12]*** CUTSNS_PIN = 1 [22:30:12]*** CUTSNS_PIN = 0 [22:30:12]*** Brake cut motor [22:30:13]Read from MH i2c: 01 [22:30:13]MH_I2C_Read... [22:30:13]*** Stop cut motor [22:30:13]*** Cut end [22:30:13]Read from MH i2c: 01 07 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: 01 07 00 1D 12 00 00 00 00 00 FF 0F 44 [22:30:13]process_action close_receipt done [22:30:13]requested_data is exist [22:30:13]produce_requested_data [22:30:13]requested_item fm.sn is exist - process it [22:30:13]wFMCommunicate request_size=4 [22:30:13]MH_SAM_APDU [22:30:13]CAPDU: 80 11 00 00 [22:30:13]Write to MH i2c: E2 08 00 1E 12 80 11 00 00 00 00 00 00 AA [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:13]Read from MH i2c: E2 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 17 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 17 00 1E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FD [22:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:30:13]wFMCommunicate OK [22:30:13]requested_item fd.num is exist - process it [22:30:13]SAM_PROTO_GetFieldsCounters [22:30:13]wFMCommunicate request_size=4 [22:30:13]MH_SAM_APDU [22:30:13]CAPDU: 80 13 00 00 [22:30:13]Write to MH i2c: E2 08 00 1F 12 80 13 00 00 00 00 00 00 AD [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:13]Read from MH i2c: E2 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 62 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 62 00 1F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 35 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [22:30:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 35 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:13]wFMCommunicate OK [22:30:13]SAM_PROTO_GetFieldsCounters done [22:30:13]requested_item shift.num is exist - process it [22:30:13]requested_item shift.opened is exist - process it [22:30:13]req_shift_opened [22:30:13]FM_GetShiftState [22:30:13]SAM_PROTO_GetShiftState [22:30:13]wFMCommunicate request_size=4 [22:30:13]MH_SAM_APDU [22:30:13]CAPDU: 80 13 01 00 [22:30:13]Write to MH i2c: E2 08 00 20 12 80 13 01 00 00 00 00 00 AF [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:13]Read from MH i2c: E2 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 0E 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 0E 00 20 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 72 [22:30:13]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:30:13]wFMCommunicate OK [22:30:13]SAM_PROTO_GetShiftState done [22:30:13]FM_GetShiftState done [22:30:13]req_shift_opened done [22:30:13]requested_item shift.open_date is exist - process it [22:30:13]req_shift_open_date [22:30:13]req_shift_open_date done [22:30:13]produce_requested_data done [22:30:13]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149045,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:30:13]process_action_free close_receipt [22:30:13]json_value_free [22:30:13]json_value_free done [22:30:13]process_json_proto returns [22:30:13]Send response to host [22:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149045,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:30:13]free response buf [22:30:13]execute_script done [22:30:13]execute_script returns [22:30:13]free content buf [22:30:13]Sock 9.Close socket [22:30:13]Sock 9.Thread stoped [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:10]accept exits with 7 [22:33:10]New connection [22:33:10]New thread 3067219300 created [22:33:10]Thread 3067075940 joined [22:33:10]Waiting for new connection... [22:33:10] Sock 7.Parse request [22:33:10]Sock 7.Check first char [22:33:10]Sock 7.First char is OK [22:33:10]request: POST /json_proto HTTP/1.0 [22:33:10]Method: POST [22:33:10]URL: /json_proto [22:33:10]Method is POST - this is cgi request [22:33:10]url: /json_proto [22:33:10]query_string will be loaded in cgi processing [22:33:10]execute_cgi json_proto POST (null) [22:33:10]execute_cgi path=json_proto method=POST [22:33:10]POST find Content-Length [22:33:10]Host: 172.17.38.4:8080 [22:33:10]Content-Length: 818 [22:33:10]Content-Type: application/json [22:33:10] [22:33:10]POST finish read [22:33:10]Found Content-Length = 818 [22:33:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11914", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:10]execute_script... [22:33:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11914", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:10]POST & json_proto [22:33:10]process_json_proto [22:33:10]json parsed OK: [22:33:10]protocol is kg_v1.0 [22:33:10]action value=close_receipt [22:33:10]process_action close_receipt [22:33:10]cmd_close_receipt [22:33:10]MH_GetDate [22:33:10]Write to MH i2c: F0 00 00 21 12 22 [22:33:10]Write i2c OK [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: F0 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: F0 09 00 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: F0 09 00 21 12 00 27 96 5F 66 CC 51 87 64 B5 [22:33:10]GetLastDocTimeStamp 1717540209 [22:33:10]current date 1717540391 [22:33:10]FM_GetShiftState [22:33:10]SAM_PROTO_GetShiftState [22:33:10]wFMCommunicate request_size=4 [22:33:10]MH_SAM_APDU [22:33:10]CAPDU: 80 13 01 00 [22:33:10]Write to MH i2c: E2 08 00 22 12 80 13 01 00 00 00 00 00 B1 [22:33:10]Write i2c OK [22:33:10]MH_I2C_Read... [22:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:10]Read from MH i2c: E2 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 0E 00 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 0E 00 22 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 74 [22:33:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:33:10]wFMCommunicate OK [22:33:10]SAM_PROTO_GetShiftState done [22:33:10]FM_GetShiftState done [22:33:10]opened in 1717460629 [22:33:10]opened+sec_in_day 1717547029 [22:33:10]quantity*price = 11300 [22:33:10]sum+1 = 11301 [22:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 0.00 Безнал.: 113.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 385 04.06.2024 22:33 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 149046 ФПД: 112109864762693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223311&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149046&fm=112109864762693&tin=02508201610067®Number=0000000000092720&sum=11300 0 [22:33:11]StoreToDocumentArchive [22:33:11]shift 368 fd 149046 [22:33:11]save to /storage/0368/doc_00149046 [22:33:11]save last doc name /storage/0368/doc_00149046 to /storage/kkm_last_doc_name [22:33:11]save OK [22:33:11]Clear old archive folders... [22:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=278 [22:33:11]tlvbuf is 00950FA0 [22:33:11]SAM_PROTO_ClearQueue [22:33:11]wFMCommunicate request_size=4 [22:33:11]MH_SAM_APDU [22:33:11]CAPDU: 80 09 00 00 [22:33:11]Write to MH i2c: E2 08 00 2F 12 80 09 00 00 00 00 00 00 B3 [22:33:11]Write i2c OK [22:33:11]MH_I2C_Read... [22:33:11]OFD Sender: No OFD packet to send [22:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:11]Read from MH i2c: E2 [22:33:11]MH_I2C_Read... [22:33:11]Read from MH i2c: E2 03 00 [22:33:11]MH_I2C_Read... [22:33:11]Read from MH i2c: E2 03 00 2F 12 00 90 00 B5 [22:33:11]RAPDU: 90 00 [22:33:11]wFMCommunicate OK [22:33:11]SAM_PROTO_ClearQueue done [22:33:11]KKMCreateOFDPacket [22:33:11]OFDProtocolAddRootSTLVToBuf [22:33:11]FM_MakeSignedData [22:33:11]FM_MakeSignedData [22:33:11]SAM_PROTO_SignData [22:33:11]wFMCommunicate request_size=4 [22:33:11]MH_SAM_APDU [22:33:11]CAPDU: 80 0D 01 02 [22:33:11]Write to MH i2c: E2 08 00 30 12 80 0D 01 02 00 00 00 00 BB [22:33:11]Write i2c OK [22:33:11]MH_I2C_Read... [22:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:11]Read from MH i2c: E2 [22:33:11]MH_I2C_Read... [22:33:11]Read from MH i2c: E2 03 00 [22:33:11]MH_I2C_Read... [22:33:11]Read from MH i2c: E2 03 00 30 12 00 90 00 B6 [22:33:11]RAPDU: 90 00 [22:33:11]wFMCommunicate OK [22:33:11]wFMCommunicate request_size=255 [22:33:11]MH_SAM_APDU [22:33:11]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 27 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 [22:33:11]Write to MH i2c: E2 02 01 31 12 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 27 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 00 00 7C [22:33:11]Write i2c OK [22:33:11]MH_I2C_Read... [22:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:12]Read from MH i2c: E2 [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: E2 03 00 [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: E2 03 00 31 12 00 90 00 B7 [22:33:12]RAPDU: 90 00 [22:33:12]wFMCommunicate OK [22:33:12]wFMCommunicate request_size=37 [22:33:12]MH_SAM_APDU [22:33:12]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 36 46 02 00 35 04 06 00 65 F6 9C AA 3D 45 [22:33:12]Write to MH i2c: E2 28 00 32 12 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 36 46 02 00 35 04 06 00 65 F6 9C AA 3D 45 00 00 B6 [22:33:12]Write i2c OK [22:33:12]MH_I2C_Read... [22:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:12]Read from MH i2c: E2 [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: E2 03 00 [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: E2 03 00 32 12 00 90 00 B8 [22:33:12]RAPDU: 90 00 [22:33:12]wFMCommunicate OK [22:33:12]wFMCommunicate request_size=4 [22:33:12]MH_SAM_APDU [22:33:12]CAPDU: 80 0D 03 02 [22:33:12]Write to MH i2c: E2 08 00 33 12 80 0D 03 02 00 00 00 00 C0 [22:33:12]Write i2c OK [22:33:12]MH_I2C_Read... [22:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:12]Read from MH i2c: E2 [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: E2 0B 00 [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: E2 0B 00 33 12 00 74 F7 5B 14 DA 86 29 FF 90 00 23 [22:33:12]RAPDU: 74 F7 5B 14 DA 86 29 FF 90 00 [22:33:12]wFMCommunicate OK [22:33:12]SAM_PROTO_SignData done [22:33:12]FM_MakeSignedData done [22:33:12]CreateOFDProtocolMessage [22:33:12]wFMCommunicate request_size=4 [22:33:12]MH_SAM_APDU [22:33:12]CAPDU: 80 11 00 00 [22:33:12]Write to MH i2c: E2 08 00 34 12 80 11 00 00 00 00 00 00 C0 [22:33:12]Write i2c OK [22:33:12]MH_I2C_Read... [22:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:12]Read from MH i2c: E2 [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: E2 17 00 [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: E2 17 00 34 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 13 [22:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:33:12]wFMCommunicate OK [22:33:12]CreateOFDProtocolMessage done [22:33:12]OFDSenderStorePacket 149046 [22:33:12]StoreOFDPacket docnum=149046 [22:33:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2A 01 00 00 E0 7A 22 01 E4 43 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 27 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 36 46 02 00 35 04 06 00 65 F6 9C AA 3D 45 74 F7 5B 14 DA 86 29 FF [22:33:12]CheckFolder [22:33:12]dirname=/storage/ofd_packets [22:33:12]CheckFolder done [22:33:12]ProducePacketName [22:33:12]name=ofd_packets/00149046 [22:33:12]NVStorageSaveData ofd_packets/00149046 [22:33:12]File name is /storage/ofd_packets/00149046 [22:33:12]Write 328 bytes [22:33:12]NVStorageSaveData done [22:33:12]OFDSenderStorePacket done [22:33:12]KKMCreateOFDPacket done [22:33:12]NVStorageSaveData kkm_last_timestamp [22:33:12]File name is /storage/kkm_last_timestamp [22:33:12]Write 4 bytes [22:33:12]NVStorageSaveData done [22:33:12]ExternCall_PrintAddStr [22:33:12]wPrintStart [22:33:12]Write to MH i2c: 01 00 00 35 12 47 [22:33:12]Write i2c OK [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: 01 [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: 01 07 00 [22:33:12]MH_I2C_Read... [22:33:12]Read from MH i2c: 01 07 00 35 12 00 00 00 00 00 FF 0F 5C [22:33:12]RasterBufferAndPrint [22:33:12]line Счет N : (3)11914 [22:33:12]line ИНН: 02508201610067 [22:33:12]line Контрольно-Кассовый Чек [22:33:12]line ПРОДАЖА [22:33:12]line Товар: 5449000054227 [22:33:12]line Напиток Кока-Кола 1л [22:33:12]line 1.000 * 113.00 [22:33:12]line = 113.00 [22:33:12]line НДС 12% НСП 1% [22:33:12]line > о реализуемом товаре [22:33:12]line ИТОГО: 113.00 [22:33:12]line НСП 1% : 1.00 [22:33:12]line НДС 12% : 12.00 [22:33:12]line Наличными: 0.00 [22:33:12]line Безнал.: 113.00 [22:33:12]line Место: АЗС № 68 "Партнер Нефть" [22:33:12]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:33:12]line СНО: Общий режим [22:33:12]line Чек 385 04.06.2024 22:33 [22:33:12]line Смена: 368 ФФД: 1.0 [22:33:12]line ЗНМ: 0300000035 [22:33:12]line РНМ: 0000000000092720 [22:33:12]line Версия ККМ: 001 [22:33:12]line Платежная система: O! деньги [22:33:12]line ФМ: 0000000000875057 [22:33:12]line ФД: 149046 [22:33:12]line ФПД: 112109864762693 [22:33:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223311&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149046&fm=112109864762693&tin=02508201610067®Number=0000000000092720&sum=11300 [22:33:12]line 0 [22:33:12]OFD Sender: Processing packet 149046 [packets to send 100, broken 99] [22:33:12]ProducePacketName [22:33:12]name=ofd_packets/00149046 [22:33:12]OFD Sender: To server: pG, [22:33:12]CommunicateWithHost lk.salyk.kg:30040 [22:33:12]ConnectInit lk.salyk.kg [22:33:12]written 0, free lines is 4095 [22:33:12]Connected sock=10 [22:33:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2A 01 00 00 E0 7A 22 01 E4 43 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 27 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 36 46 02 00 35 04 06 00 65 F6 9C AA 3D 45 74 F7 5B 14 DA 86 29 FF [22:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B2 3E 47 00 6C 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 36 46 02 00 F4 03 04 00 4A 3D 5F 66 B6 04 01 00 00 5C 40 80 57 F2 B0 11 87 [22:33:12]CommunicateWithHost err = 0 [22:33:12]CheckOFDResponse [22:33:12]1017 (14) - 77093643461234 [22:33:12]1041 (16) - 0000000000875057 [22:33:12]1040 (4) - 149046 [22:33:12]1012 (4) - 04.06.2024 16:14 [22:33:12]1206 (1) - 0 [22:33:12]OFD Sender: Remove packet 149046 [22:33:12]ProducePacketName [22:33:12]name=ofd_packets/00149046 [22:33:12]NVStorageDeleteData [22:33:13]Write to MH i2c: 01 00 00 5F 12 71 [22:33:13]Write i2c OK [22:33:13]MH_I2C_Read... [22:33:13]Read from MH i2c: 01 [22:33:13]MH_I2C_Read... [22:33:13]Read from MH i2c: 01 07 00 [22:33:13]MH_I2C_Read... [22:33:13]Read from MH i2c: 01 07 00 5F 12 00 00 00 00 00 67 0C EB [22:33:13]RasterBufferAndPrint [22:33:13]line [22:33:13]line [22:33:13]line [22:33:13]line [22:33:13]line [22:33:13]written 0, free lines is 3179 [22:33:13]MH_Cut [22:33:13]Write to MH i2c: D1 01 00 66 12 01 4A [22:33:13]Write i2c OK [22:33:13]MH_I2C_Read... [22:33:13]Read from MH i2c: D1 [22:33:13]MH_I2C_Read... [22:33:13]Read from MH i2c: D1 01 00 [22:33:13]MH_I2C_Read... [22:33:13]Read from MH i2c: D1 01 00 66 12 00 49 [22:33:13]Write to MH i2c: 01 00 00 67 12 79 [22:33:13]Write i2c OK [22:33:13]MH_I2C_Read... [22:33:13]OFD Sender: No OFD packet to send [22:33:14]*** Cut start [22:33:14]*** Partial cut [22:33:14]*** CUTSNS_PIN = 1 [22:33:14]*** CUTSNS_PIN = 0 [22:33:14]*** Brake cut motor [22:33:14]Read from MH i2c: 01 [22:33:14]MH_I2C_Read... [22:33:14]*** Stop cut motor [22:33:15]*** Cut end [22:33:15]Read from MH i2c: 01 07 00 [22:33:15]MH_I2C_Read... [22:33:15]Read from MH i2c: 01 07 00 67 12 00 00 00 00 00 FF 0F 8E [22:33:15]process_action close_receipt done [22:33:15]requested_data is exist [22:33:15]produce_requested_data [22:33:15]requested_item fm.sn is exist - process it [22:33:15]wFMCommunicate request_size=4 [22:33:15]MH_SAM_APDU [22:33:15]CAPDU: 80 11 00 00 [22:33:15]Write to MH i2c: E2 08 00 68 12 80 11 00 00 00 00 00 00 F4 [22:33:15]Write i2c OK [22:33:15]MH_I2C_Read... [22:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:15]Read from MH i2c: E2 [22:33:15]MH_I2C_Read... [22:33:15]Read from MH i2c: E2 17 00 [22:33:15]MH_I2C_Read... [22:33:15]Read from MH i2c: E2 17 00 68 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 47 [22:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:33:15]wFMCommunicate OK [22:33:15]requested_item fd.num is exist - process it [22:33:15]SAM_PROTO_GetFieldsCounters [22:33:15]wFMCommunicate request_size=4 [22:33:15]MH_SAM_APDU [22:33:15]CAPDU: 80 13 00 00 [22:33:15]Write to MH i2c: E2 08 00 69 12 80 13 00 00 00 00 00 00 F7 [22:33:15]Write i2c OK [22:33:15]MH_I2C_Read... [22:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:15]Read from MH i2c: E2 [22:33:15]MH_I2C_Read... [22:33:15]Read from MH i2c: E2 62 00 [22:33:15]MH_I2C_Read... [22:33:15]Read from MH i2c: E2 62 00 69 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 36 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [22:33:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 36 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:15]wFMCommunicate OK [22:33:15]SAM_PROTO_GetFieldsCounters done [22:33:15]requested_item shift.num is exist - process it [22:33:15]requested_item shift.opened is exist - process it [22:33:15]req_shift_opened [22:33:15]FM_GetShiftState [22:33:15]SAM_PROTO_GetShiftState [22:33:15]wFMCommunicate request_size=4 [22:33:15]MH_SAM_APDU [22:33:15]CAPDU: 80 13 01 00 [22:33:15]Write to MH i2c: E2 08 00 6A 12 80 13 01 00 00 00 00 00 F9 [22:33:15]Write i2c OK [22:33:15]MH_I2C_Read... [22:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:15]Read from MH i2c: E2 [22:33:15]MH_I2C_Read... [22:33:15]Read from MH i2c: E2 0E 00 [22:33:15]MH_I2C_Read... [22:33:15]Read from MH i2c: E2 0E 00 6A 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BC [22:33:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:33:15]wFMCommunicate OK [22:33:15]SAM_PROTO_GetShiftState done [22:33:15]FM_GetShiftState done [22:33:15]req_shift_opened done [22:33:15]requested_item shift.open_date is exist - process it [22:33:15]req_shift_open_date [22:33:15]req_shift_open_date done [22:33:15]produce_requested_data done [22:33:15]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149046,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:33:15]process_action_free close_receipt [22:33:15]json_value_free [22:33:15]json_value_free done [22:33:15]process_json_proto returns [22:33:15]Send response to host [22:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149046,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:33:15]free response buf [22:33:15]execute_script done [22:33:15]execute_script returns [22:33:15]free content buf [22:33:15]Sock 7.Close socket [22:33:15]Sock 7.Thread stoped [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:44]accept exits with 9 [22:33:44]New connection [22:33:44]New thread 3067075940 created [22:33:44]Thread 3067219300 joined [22:33:44]Waiting for new connection... [22:33:44] Sock 9.Parse request [22:33:44]Sock 9.Check first char [22:33:44]Sock 9.First char is OK [22:33:44]request: POST /json_proto HTTP/1.0 [22:33:44]Method: POST [22:33:44]URL: /json_proto [22:33:44]Method is POST - this is cgi request [22:33:44]url: /json_proto [22:33:44]query_string will be loaded in cgi processing [22:33:44]execute_cgi json_proto POST (null) [22:33:44]execute_cgi path=json_proto method=POST [22:33:44]POST find Content-Length [22:33:44]Host: 172.17.38.4:8080 [22:33:44]Content-Length: 680 [22:33:44]Content-Type: application/json [22:33:44] [22:33:44]POST finish read [22:33:44]Found Content-Length = 680 [22:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11915", "tax_sys" : 0, "items" : [ { "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:44]execute_script... [22:33:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11915", "tax_sys" : 0, "items" : [ { "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:44]POST & json_proto [22:33:44]process_json_proto [22:33:44]json parsed OK: [22:33:44]protocol is kg_v1.0 [22:33:44]action value=close_receipt [22:33:44]process_action close_receipt [22:33:44]cmd_close_receipt [22:33:44]MH_GetDate [22:33:44]Write to MH i2c: F0 00 00 6B 12 6C [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: F0 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: F0 09 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: F0 09 00 6B 12 00 49 96 5F 66 CC 51 87 64 21 [22:33:44]GetLastDocTimeStamp 1717540391 [22:33:44]current date 1717540425 [22:33:44]FM_GetShiftState [22:33:44]SAM_PROTO_GetShiftState [22:33:44]wFMCommunicate request_size=4 [22:33:44]MH_SAM_APDU [22:33:44]CAPDU: 80 13 01 00 [22:33:44]Write to MH i2c: E2 08 00 6C 12 80 13 01 00 00 00 00 00 FB [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:44]Read from MH i2c: E2 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 0E 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 0E 00 6C 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 BE [22:33:44]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:33:44]wFMCommunicate OK [22:33:44]SAM_PROTO_GetShiftState done [22:33:44]FM_GetShiftState done [22:33:44]opened in 1717460629 [22:33:44]opened+sec_in_day 1717547029 [22:33:44]quantity*price = 3500 [22:33:44]sum+1 = 3501 [22:33:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 386 04.06.2024 22:33 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149047 ФПД: 57184427953445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223345&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149047&fm=57184427953445&tin=02508201610067®Number=0000000000092720&sum=3500 0 [22:33:45]StoreToDocumentArchive [22:33:45]shift 368 fd 149047 [22:33:45]save to /storage/0368/doc_00149047 [22:33:45]save last doc name /storage/0368/doc_00149047 to /storage/kkm_last_doc_name [22:33:45]save OK [22:33:45]Clear old archive folders... [22:33:45]ProcessDocumentItem done err = 0, tmpTLVsize=288 [22:33:45]tlvbuf is 0094F000 [22:33:45]SAM_PROTO_ClearQueue [22:33:45]wFMCommunicate request_size=4 [22:33:45]MH_SAM_APDU [22:33:45]CAPDU: 80 09 00 00 [22:33:45]Write to MH i2c: E2 08 00 79 12 80 09 00 00 00 00 00 00 FD [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:45]Read from MH i2c: E2 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [22:33:45]RAPDU: 90 00 [22:33:45]wFMCommunicate OK [22:33:45]SAM_PROTO_ClearQueue done [22:33:45]KKMCreateOFDPacket [22:33:45]OFDProtocolAddRootSTLVToBuf [22:33:45]FM_MakeSignedData [22:33:45]FM_MakeSignedData [22:33:45]SAM_PROTO_SignData [22:33:45]wFMCommunicate request_size=4 [22:33:45]MH_SAM_APDU [22:33:45]CAPDU: 80 0D 01 02 [22:33:45]Write to MH i2c: E2 08 00 7A 12 80 0D 01 02 00 00 00 00 05 [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:45]Read from MH i2c: E2 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: E2 03 00 7A 12 00 90 00 00 [22:33:45]RAPDU: 90 00 [22:33:45]wFMCommunicate OK [22:33:45]wFMCommunicate request_size=255 [22:33:45]MH_SAM_APDU [22:33:45]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 49 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [22:33:45]Write to MH i2c: E2 02 01 7B 12 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 49 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 EB [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:46]Read from MH i2c: E2 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: E2 03 00 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: E2 03 00 7B 12 00 90 00 01 [22:33:46]RAPDU: 90 00 [22:33:46]wFMCommunicate OK [22:33:46]wFMCommunicate request_size=47 [22:33:46]MH_SAM_APDU [22:33:46]CAPDU: 80 0D 02 02 2A 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 37 46 02 00 35 04 06 00 34 02 49 83 CD 25 [22:33:46]Write to MH i2c: E2 32 00 7C 12 80 0D 02 02 2A 00 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 37 46 02 00 35 04 06 00 34 02 49 83 CD 25 00 00 36 [22:33:46]Write i2c OK [22:33:46]MH_I2C_Read... [22:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:46]Read from MH i2c: E2 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: E2 03 00 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: E2 03 00 7C 12 00 90 00 02 [22:33:46]RAPDU: 90 00 [22:33:46]wFMCommunicate OK [22:33:46]wFMCommunicate request_size=4 [22:33:46]MH_SAM_APDU [22:33:46]CAPDU: 80 0D 03 02 [22:33:46]Write to MH i2c: E2 08 00 7D 12 80 0D 03 02 00 00 00 00 0A [22:33:46]Write i2c OK [22:33:46]MH_I2C_Read... [22:33:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:46]Read from MH i2c: E2 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: E2 0B 00 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: E2 0B 00 7D 12 00 D4 DC 82 79 6D 1C 66 6A 90 00 0F [22:33:46]RAPDU: D4 DC 82 79 6D 1C 66 6A 90 00 [22:33:46]wFMCommunicate OK [22:33:46]SAM_PROTO_SignData done [22:33:46]FM_MakeSignedData done [22:33:46]CreateOFDProtocolMessage [22:33:46]wFMCommunicate request_size=4 [22:33:46]MH_SAM_APDU [22:33:46]CAPDU: 80 11 00 00 [22:33:46]Write to MH i2c: E2 08 00 7E 12 80 11 00 00 00 00 00 00 0A [22:33:46]Write i2c OK [22:33:46]MH_I2C_Read... [22:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:46]Read from MH i2c: E2 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: E2 17 00 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: E2 17 00 7E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5D [22:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:33:46]wFMCommunicate OK [22:33:46]CreateOFDProtocolMessage done [22:33:46]OFDSenderStorePacket 149047 [22:33:46]StoreOFDPacket docnum=149047 [22:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 34 01 00 00 34 38 2C 01 38 76 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 49 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 37 46 02 00 35 04 06 00 34 02 49 83 CD 25 D4 DC 82 79 6D 1C 66 6A [22:33:46]CheckFolder [22:33:46]dirname=/storage/ofd_packets [22:33:46]CheckFolder done [22:33:46]ProducePacketName [22:33:46]name=ofd_packets/00149047 [22:33:46]NVStorageSaveData ofd_packets/00149047 [22:33:46]File name is /storage/ofd_packets/00149047 [22:33:46]Write 338 bytes [22:33:46]NVStorageSaveData done [22:33:46]OFDSenderStorePacket done [22:33:46]KKMCreateOFDPacket done [22:33:46]NVStorageSaveData kkm_last_timestamp [22:33:46]File name is /storage/kkm_last_timestamp [22:33:46]Write 4 bytes [22:33:46]NVStorageSaveData done [22:33:46]ExternCall_PrintAddStr [22:33:46]wPrintStart [22:33:46]Write to MH i2c: 01 00 00 7F 12 91 [22:33:46]Write i2c OK [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: 01 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: 01 07 00 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: 01 07 00 7F 12 00 00 00 00 00 FF 0F A6 [22:33:46]RasterBufferAndPrint [22:33:46]line Счет N : (3)11915 [22:33:46]line ИНН: 02508201610067 [22:33:46]line Контрольно-Кассовый Чек [22:33:46]line ПРОДАЖА [22:33:46]line Товар: 4011100091993 [22:33:46]line Шок Батончик Милки Вей 26г [22:33:46]line 1.000 * 35.00 [22:33:46]line = 35.00 [22:33:46]line НДС 12% НСП 1% [22:33:46]line > о реализуемом товаре [22:33:46]line ИТОГО: 35.00 [22:33:46]line НСП 1% : 0.31 [22:33:46]line НДС 12% : 3.72 [22:33:46]line Наличными: 35.00 [22:33:46]line Безнал.: 0.00 [22:33:46]line Место: АЗС № 68 "Партнер Нефть" [22:33:46]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:33:46]line СНО: Общий режим [22:33:46]line Чек 386 04.06.2024 22:33 [22:33:46]line Смена: 368 ФФД: 1.0 [22:33:46]line ЗНМ: 0300000035 [22:33:46]line РНМ: 0000000000092720 [22:33:46]line Версия ККМ: 001 [22:33:46]line ФМ: 0000000000875057 [22:33:46]line ФД: 149047 [22:33:46]line ФПД: 57184427953445 [22:33:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223345&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149047&fm=57184427953445&tin=02508201610067®Number=0000000000092720&sum=3500 [22:33:46]line 0 [22:33:46]OFD Sender: Processing packet 149047 [packets to send 100, broken 99] [22:33:46]ProducePacketName [22:33:46]name=ofd_packets/00149047 [22:33:46]OFD Sender: To server: pG, [22:33:46]CommunicateWithHost lk.salyk.kg:30040 [22:33:46]ConnectInit lk.salyk.kg [22:33:46]written 0, free lines is 4095 [22:33:46]Connected sock=10 [22:33:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 34 01 00 00 34 38 2C 01 38 76 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 49 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 37 46 02 00 35 04 06 00 34 02 49 83 CD 25 D4 DC 82 79 6D 1C 66 6A [22:33:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C6 7A 47 00 30 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 38 37 35 30 35 37 10 04 04 00 37 46 02 00 F4 03 04 00 6C 3D 5F 66 B6 04 01 00 00 98 0D 01 02 03 01 DB B4 [22:33:46]CommunicateWithHost err = 0 [22:33:46]CheckOFDResponse [22:33:46]1017 (14) - 77093643461234 [22:33:46]1041 (16) - 0000000000875057 [22:33:46]1040 (4) - 149047 [22:33:46]1012 (4) - 04.06.2024 16:14 [22:33:46]1206 (1) - 0 [22:33:46]OFD Sender: Remove packet 149047 [22:33:46]ProducePacketName [22:33:46]name=ofd_packets/00149047 [22:33:46]NVStorageDeleteData [22:33:47]Write to MH i2c: 01 00 00 A7 12 B9 [22:33:47]Write i2c OK [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: 01 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: 01 07 00 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: 01 07 00 A7 12 00 00 00 00 00 94 0C 60 [22:33:47]RasterBufferAndPrint [22:33:47]line [22:33:47]line [22:33:47]line [22:33:47]line [22:33:47]line [22:33:47]written 0, free lines is 3223 [22:33:47]MH_Cut [22:33:47]Write to MH i2c: D1 01 00 AE 12 01 92 [22:33:47]Write i2c OK [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: D1 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: D1 01 00 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: D1 01 00 AE 12 00 91 [22:33:47]Write to MH i2c: 01 00 00 AF 12 C1 [22:33:47]Write i2c OK [22:33:47]MH_I2C_Read... [22:33:47]OFD Sender: No OFD packet to send [22:33:48]*** Cut start [22:33:48]*** Partial cut [22:33:48]*** CUTSNS_PIN = 1 [22:33:48]*** CUTSNS_PIN = 0 [22:33:48]*** Brake cut motor [22:33:48]Read from MH i2c: 01 [22:33:48]MH_I2C_Read... [22:33:48]*** Stop cut motor [22:33:48]*** Cut end [22:33:48]Read from MH i2c: 01 07 00 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: 01 07 00 AF 12 00 00 00 00 00 FF 0F D6 [22:33:48]process_action close_receipt done [22:33:48]requested_data is exist [22:33:48]produce_requested_data [22:33:48]requested_item fm.sn is exist - process it [22:33:48]wFMCommunicate request_size=4 [22:33:48]MH_SAM_APDU [22:33:48]CAPDU: 80 11 00 00 [22:33:48]Write to MH i2c: E2 08 00 B0 12 80 11 00 00 00 00 00 00 3C [22:33:48]Write i2c OK [22:33:48]MH_I2C_Read... [22:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:48]Read from MH i2c: E2 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 17 00 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 17 00 B0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8F [22:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:33:48]wFMCommunicate OK [22:33:48]requested_item fd.num is exist - process it [22:33:48]SAM_PROTO_GetFieldsCounters [22:33:48]wFMCommunicate request_size=4 [22:33:48]MH_SAM_APDU [22:33:48]CAPDU: 80 13 00 00 [22:33:48]Write to MH i2c: E2 08 00 B1 12 80 13 00 00 00 00 00 00 3F [22:33:48]Write i2c OK [22:33:48]MH_I2C_Read... [22:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:49]Read from MH i2c: E2 [22:33:49]MH_I2C_Read... [22:33:49]Read from MH i2c: E2 62 00 [22:33:49]MH_I2C_Read... [22:33:49]Read from MH i2c: E2 62 00 B1 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 37 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [22:33:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 37 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:49]wFMCommunicate OK [22:33:49]SAM_PROTO_GetFieldsCounters done [22:33:49]requested_item shift.num is exist - process it [22:33:49]requested_item shift.opened is exist - process it [22:33:49]req_shift_opened [22:33:49]FM_GetShiftState [22:33:49]SAM_PROTO_GetShiftState [22:33:49]wFMCommunicate request_size=4 [22:33:49]MH_SAM_APDU [22:33:49]CAPDU: 80 13 01 00 [22:33:49]Write to MH i2c: E2 08 00 B2 12 80 13 01 00 00 00 00 00 41 [22:33:49]Write i2c OK [22:33:49]MH_I2C_Read... [22:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:49]Read from MH i2c: E2 [22:33:49]MH_I2C_Read... [22:33:49]Read from MH i2c: E2 0E 00 [22:33:49]MH_I2C_Read... [22:33:49]Read from MH i2c: E2 0E 00 B2 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 04 [22:33:49]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:33:49]wFMCommunicate OK [22:33:49]SAM_PROTO_GetShiftState done [22:33:49]FM_GetShiftState done [22:33:49]req_shift_opened done [22:33:49]requested_item shift.open_date is exist - process it [22:33:49]req_shift_open_date [22:33:49]req_shift_open_date done [22:33:49]produce_requested_data done [22:33:49]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149047,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:33:49]process_action_free close_receipt [22:33:49]json_value_free [22:33:49]json_value_free done [22:33:49]process_json_proto returns [22:33:49]Send response to host [22:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149047,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:33:49]free response buf [22:33:49]execute_script done [22:33:49]execute_script returns [22:33:49]free content buf [22:33:49]Sock 9.Close socket [22:33:49]Sock 9.Thread stoped [22:33:52]OFD Sender: No OFD packet to send [22:33:57]accept exits with 7 [22:33:57]New connection [22:33:57]New thread 3067219300 created [22:33:57]Thread 3067075940 joined [22:33:57]Waiting for new connection... [22:33:57] Sock 7.Parse request [22:33:57]Sock 7.Check first char [22:33:57]Sock 7.First char is OK [22:33:57]request: POST /json_proto HTTP/1.0 [22:33:57]Method: POST [22:33:57]URL: /json_proto [22:33:57]Method is POST - this is cgi request [22:33:57]url: /json_proto [22:33:57]query_string will be loaded in cgi processing [22:33:57]execute_cgi json_proto POST (null) [22:33:57]execute_cgi path=json_proto method=POST [22:33:57]POST find Content-Length [22:33:57]Host: 172.17.38.4:8080 [22:33:57]Content-Length: 800 [22:33:57]Content-Type: application/json [22:33:57] [22:33:57]POST finish read [22:33:57]Found Content-Length = 800 [22:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [22:33:57]execute_script... [22:33: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)979978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [22:33:57]POST & json_proto [22:33:57]process_json_proto [22:33:57]json parsed OK: [22:33:57]protocol is kg_v1.0 [22:33:57]action value=close_receipt [22:33:57]process_action close_receipt [22:33:57]cmd_close_receipt [22:33:57]MH_GetDate [22:33:57]Write to MH i2c: F0 00 00 B3 12 B4 [22:33:57]Write i2c OK [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: F0 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: F0 09 00 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: F0 09 00 B3 12 00 55 96 5F 66 CC 51 87 64 75 [22:33:57]GetLastDocTimeStamp 1717540425 [22:33:57]current date 1717540437 [22:33:57]FM_GetShiftState [22:33:57]SAM_PROTO_GetShiftState [22:33:57]wFMCommunicate request_size=4 [22:33:57]MH_SAM_APDU [22:33:57]CAPDU: 80 13 01 00 [22:33:57]Write to MH i2c: E2 08 00 B4 12 80 13 01 00 00 00 00 00 43 [22:33:57]Write i2c OK [22:33:57]MH_I2C_Read... [22:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:57]Read from MH i2c: E2 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 0E 00 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 0E 00 B4 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 06 [22:33:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:33:57]wFMCommunicate OK [22:33:57]SAM_PROTO_GetShiftState done [22:33:57]FM_GetShiftState done [22:33:57]opened in 1717460629 [22:33:57]opened+sec_in_day 1717547029 [22:33:57]quantity*price = 20003 [22:33:57]sum+1 = 20004 [22:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 387 04.06.2024 22:33 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875057 ФД: 149048 ФПД: 128862286134875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223358&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149048&fm=128862286134875&tin=02508201610067®Number=0000000000092720&sum=20003 [22:33:58]StoreToDocumentArchive [22:33:58]shift 368 fd 149048 [22:33:58]save to /storage/0368/doc_00149048 [22:33:58]save last doc name /storage/0368/doc_00149048 to /storage/kkm_last_doc_name [22:33:58]save OK [22:33:58]Clear old archive folders... [22:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:58]tlvbuf is B6F020E0 [22:33:58]SAM_PROTO_ClearQueue [22:33:58]wFMCommunicate request_size=4 [22:33:58]MH_SAM_APDU [22:33:58]CAPDU: 80 09 00 00 [22:33:58]Write to MH i2c: E2 08 00 C1 12 80 09 00 00 00 00 00 00 45 [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:58]Read from MH i2c: E2 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 03 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [22:33:58]RAPDU: 90 00 [22:33:58]wFMCommunicate OK [22:33:58]SAM_PROTO_ClearQueue done [22:33:58]KKMCreateOFDPacket [22:33:58]OFDProtocolAddRootSTLVToBuf [22:33:58]FM_MakeSignedData [22:33:58]FM_MakeSignedData [22:33:58]SAM_PROTO_SignData [22:33:58]wFMCommunicate request_size=4 [22:33:58]MH_SAM_APDU [22:33:58]CAPDU: 80 0D 01 02 [22:33:58]Write to MH i2c: E2 08 00 C2 12 80 0D 01 02 00 00 00 00 4D [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:58]Read from MH i2c: E2 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 03 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 03 00 C2 12 00 90 00 48 [22:33:58]RAPDU: 90 00 [22:33:58]wFMCommunicate OK [22:33:58]wFMCommunicate request_size=255 [22:33:58]MH_SAM_APDU [22:33:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 01 00 00 F4 03 04 00 56 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 38 46 02 00 35 04 06 00 75 [22:33:58]Write to MH i2c: E2 02 01 C3 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 01 00 00 F4 03 04 00 56 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 38 46 02 00 35 04 06 00 75 00 00 3A [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:58]Read from MH i2c: E2 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 03 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 03 00 C3 12 00 90 00 49 [22:33:58]RAPDU: 90 00 [22:33:58]wFMCommunicate OK [22:33:58]wFMCommunicate request_size=10 [22:33:58]MH_SAM_APDU [22:33:58]CAPDU: 80 0D 02 02 05 33 16 CA 3E 5B [22:33:58]Write to MH i2c: E2 0D 00 C4 12 80 0D 02 02 05 00 33 16 CA 3E 5B 00 00 06 [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:58]Read from MH i2c: E2 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 03 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 03 00 C4 12 00 90 00 4A [22:33:58]RAPDU: 90 00 [22:33:58]wFMCommunicate OK [22:33:58]wFMCommunicate request_size=4 [22:33:58]MH_SAM_APDU [22:33:58]CAPDU: 80 0D 03 02 [22:33:58]Write to MH i2c: E2 08 00 C5 12 80 0D 03 02 00 00 00 00 52 [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:58]Read from MH i2c: E2 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 0B 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 0B 00 C5 12 00 D4 72 ED C7 87 FB C4 E0 90 00 73 [22:33:58]RAPDU: D4 72 ED C7 87 FB C4 E0 90 00 [22:33:58]wFMCommunicate OK [22:33:58]SAM_PROTO_SignData done [22:33:58]FM_MakeSignedData done [22:33:58]CreateOFDProtocolMessage [22:33:58]wFMCommunicate request_size=4 [22:33:58]MH_SAM_APDU [22:33:58]CAPDU: 80 11 00 00 [22:33:58]Write to MH i2c: E2 08 00 C6 12 80 11 00 00 00 00 00 00 52 [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:58]Read from MH i2c: E2 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 17 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 17 00 C6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A5 [22:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:33:58]wFMCommunicate OK [22:33:58]CreateOFDProtocolMessage done [22:33:58]OFDSenderStorePacket 149048 [22:33:58]StoreOFDPacket docnum=149048 [22:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 36 E5 07 01 1D 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 01 00 00 F4 03 04 00 56 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 38 46 02 00 35 04 06 00 75 33 16 CA 3E 5B D4 72 ED C7 87 FB C4 E0 [22:33:58]CheckFolder [22:33:58]dirname=/storage/ofd_packets [22:33:58]CheckFolder done [22:33:58]ProducePacketName [22:33:58]name=ofd_packets/00149048 [22:33:58]NVStorageSaveData ofd_packets/00149048 [22:33:58]File name is /storage/ofd_packets/00149048 [22:33:58]Write 301 bytes [22:33:58]NVStorageSaveData done [22:33:58]OFDSenderStorePacket done [22:33:58]KKMCreateOFDPacket done [22:33:58]NVStorageSaveData kkm_last_timestamp [22:33:58]File name is /storage/kkm_last_timestamp [22:33:58]Write 4 bytes [22:33:58]NVStorageSaveData done [22:33:58]ExternCall_PrintAddStr [22:33:58]wPrintStart [22:33:58]Write to MH i2c: 01 00 00 C7 12 D9 [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: 01 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: 01 07 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: 01 07 00 C7 12 00 00 00 00 00 FF 0F EE [22:33:58]RasterBufferAndPrint [22:33:58]line Счет N : (1)979978 [22:33:58]line ИНН: 02508201610067 [22:33:58]line Контрольно-Кассовый Чек [22:33:58]line ПРОДАЖА [22:33:58]line ТРК (МРК, ГНК) : 41 [22:33:58]line Товар: 2710124130 [22:33:58]line Аи-92-К-5 [22:33:58]line 2.990 * 66.90 [22:33:58]line = 200.03 [22:33:58]line НДС 12% НСП 1% [22:33:58]line > о реализуемом товаре [22:33:58]line ИТОГО: 200.03 [22:33:58]line НСП 1% : 1.77 [22:33:58]line НДС 12% : 21.24 [22:33:58]line Наличными: 0.00 [22:33:58]line Безнал.: 200.03 [22:33:58]line Место: АЗС № 68 "Партнер Нефть" [22:33:58]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:33:58]line СНО: Общий режим [22:33:58]line Чек 387 04.06.2024 22:33 [22:33:58]line Смена: 368 ФФД: 1.0 [22:33:58]line ЗНМ: 0300000035 [22:33:58]line РНМ: 0000000000092720 [22:33:58]line Версия ККМ: 001 [22:33:58]line Платежная система: O! деньги [22:33:58]line ФМ: 0000000000875057 [22:33:58]line ФД: 149048 [22:33:58]line ФПД: 128862286134875 [22:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223358&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149048&fm=128862286134875&tin=02508201610067®Number=0000000000092720&sum=20003 [22:33:59]OFD Sender: Processing packet 149048 [packets to send 100, broken 99] [22:33:59]ProducePacketName [22:33:59]name=ofd_packets/00149048 [22:33:59]OFD Sender: To server: pG, [22:33:59]CommunicateWithHost lk.salyk.kg:30040 [22:33:59]ConnectInit lk.salyk.kg [22:33:59]written 0, free lines is 4095 [22:33:59]Connected sock=10 [22:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 36 E5 07 01 1D 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 01 00 00 F4 03 04 00 56 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 38 46 02 00 35 04 06 00 75 33 16 CA 3E 5B D4 72 ED C7 87 FB C4 E0 [22:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 14 51 47 00 B0 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 38 46 02 00 F4 03 04 00 78 3D 5F 66 B6 04 01 00 00 05 3F BB 37 17 E1 20 49 [22:33:59]CommunicateWithHost err = 0 [22:33:59]CheckOFDResponse [22:33:59]1017 (14) - 77093643461234 [22:33:59]1041 (16) - 0000000000875057 [22:33:59]1040 (4) - 149048 [22:33:59]1012 (4) - 04.06.2024 16:14 [22:33:59]1206 (1) - 0 [22:33:59]OFD Sender: Remove packet 149048 [22:33:59]ProducePacketName [22:33:59]name=ofd_packets/00149048 [22:33:59]NVStorageDeleteData [22:33:59]Write to MH i2c: 01 00 00 F1 12 03 [22:33:59]Write i2c OK [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: 01 [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: 01 07 00 [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: 01 07 00 F1 12 00 00 00 00 00 84 0C 9A [22:33:59]RasterBufferAndPrint [22:33:59]line [22:33:59]line [22:33:59]line [22:33:59]line [22:33:59]line [22:33:59]written 0, free lines is 3209 [22:33:59]MH_Cut [22:33:59]Write to MH i2c: D1 01 00 F8 12 01 DC [22:33:59]Write i2c OK [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: D1 [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: D1 01 00 [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: D1 01 00 F8 12 00 DB [22:33:59]Write to MH i2c: 01 00 00 F9 12 0B [22:33:59]Write i2c OK [22:33:59]MH_I2C_Read... [22:34:00]OFD Sender: No OFD packet to send [22:34:00]*** Cut start [22:34:00]*** Partial cut [22:34:00]*** CUTSNS_PIN = 1 [22:34:00]*** CUTSNS_PIN = 0 [22:34:01]*** Brake cut motor [22:34:01]Read from MH i2c: 01 [22:34:01]MH_I2C_Read... [22:34:01]*** Stop cut motor [22:34:01]*** Cut end [22:34:01]Read from MH i2c: 01 07 00 [22:34:01]MH_I2C_Read... [22:34:01]Read from MH i2c: 01 07 00 F9 12 00 00 00 00 00 FF 0F 20 [22:34:01]process_action close_receipt done [22:34:01]requested_data is exist [22:34:01]produce_requested_data [22:34:01]requested_item fm.sn is exist - process it [22:34:01]wFMCommunicate request_size=4 [22:34:01]MH_SAM_APDU [22:34:01]CAPDU: 80 11 00 00 [22:34:01]Write to MH i2c: E2 08 00 FA 12 80 11 00 00 00 00 00 00 86 [22:34:01]Write i2c OK [22:34:01]MH_I2C_Read... [22:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:01]Read from MH i2c: E2 [22:34:01]MH_I2C_Read... [22:34:01]Read from MH i2c: E2 17 00 [22:34:01]MH_I2C_Read... [22:34:01]Read from MH i2c: E2 17 00 FA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D9 [22:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:34:01]wFMCommunicate OK [22:34:01]requested_item fd.num is exist - process it [22:34:01]SAM_PROTO_GetFieldsCounters [22:34:01]wFMCommunicate request_size=4 [22:34:01]MH_SAM_APDU [22:34:01]CAPDU: 80 13 00 00 [22:34:01]Write to MH i2c: E2 08 00 FB 12 80 13 00 00 00 00 00 00 89 [22:34:01]Write i2c OK [22:34:01]MH_I2C_Read... [22:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:01]Read from MH i2c: E2 [22:34:01]MH_I2C_Read... [22:34:01]Read from MH i2c: E2 62 00 [22:34:01]MH_I2C_Read... [22:34:01]Read from MH i2c: E2 62 00 FB 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 38 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [22:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 38 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:01]wFMCommunicate OK [22:34:01]SAM_PROTO_GetFieldsCounters done [22:34:01]requested_item shift.num is exist - process it [22:34:01]requested_item shift.opened is exist - process it [22:34:01]req_shift_opened [22:34:01]FM_GetShiftState [22:34:01]SAM_PROTO_GetShiftState [22:34:01]wFMCommunicate request_size=4 [22:34:01]MH_SAM_APDU [22:34:01]CAPDU: 80 13 01 00 [22:34:01]Write to MH i2c: E2 08 00 FC 12 80 13 01 00 00 00 00 00 8B [22:34:01]Write i2c OK [22:34:01]MH_I2C_Read... [22:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:01]Read from MH i2c: E2 [22:34:01]MH_I2C_Read... [22:34:01]Read from MH i2c: E2 0E 00 [22:34:01]MH_I2C_Read... [22:34:01]Read from MH i2c: E2 0E 00 FC 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4E [22:34:01]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:34:01]wFMCommunicate OK [22:34:01]SAM_PROTO_GetShiftState done [22:34:01]FM_GetShiftState done [22:34:01]req_shift_opened done [22:34:01]requested_item shift.open_date is exist - process it [22:34:01]req_shift_open_date [22:34:01]req_shift_open_date done [22:34:01]produce_requested_data done [22:34:01]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149048,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:34:01]process_action_free close_receipt [22:34:01]json_value_free [22:34:01]json_value_free done [22:34:01]process_json_proto returns [22:34:01]Send response to host [22:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149048,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:34:01]free response buf [22:34:01]execute_script done [22:34:01]execute_script returns [22:34:01]free content buf [22:34:01]Sock 7.Close socket [22:34:01]Sock 7.Thread stoped [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:18]accept exits with 9 [22:34:18]New connection [22:34:18]New thread 3067075940 created [22:34:18]Thread 3067219300 joined [22:34:18]Waiting for new connection... [22:34:18] Sock 9.Parse request [22:34:18]Sock 9.Check first char [22:34:18]Sock 9.First char is OK [22:34:18]request: POST /json_proto HTTP/1.0 [22:34:18]Method: POST [22:34:18]URL: /json_proto [22:34:18]Method is POST - this is cgi request [22:34:18]url: /json_proto [22:34:18]query_string will be loaded in cgi processing [22:34:18]execute_cgi json_proto POST (null) [22:34:18]execute_cgi path=json_proto method=POST [22:34:18]POST find Content-Length [22:34:18]Host: 172.17.38.4:8080 [22:34:18]Content-Length: 677 [22:34:18]Content-Type: application/json [22:34:18] [22:34:18]POST finish read [22:34:18]Found Content-Length = 677 [22:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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:34:18]execute_script... [22:34: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)979979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 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:34:18]POST & json_proto [22:34:18]process_json_proto [22:34:18]json parsed OK: [22:34:18]protocol is kg_v1.0 [22:34:18]action value=close_receipt [22:34:18]process_action close_receipt [22:34:18]cmd_close_receipt [22:34:18]MH_GetDate [22:34:18]Write to MH i2c: F0 00 00 FD 12 FE [22:34:18]Write i2c OK [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: F0 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: F0 09 00 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: F0 09 00 FD 12 00 6A 96 5F 66 CC 51 87 64 D4 [22:34:18]GetLastDocTimeStamp 1717540438 [22:34:18]current date 1717540458 [22:34:18]FM_GetShiftState [22:34:18]SAM_PROTO_GetShiftState [22:34:18]wFMCommunicate request_size=4 [22:34:18]MH_SAM_APDU [22:34:18]CAPDU: 80 13 01 00 [22:34:18]Write to MH i2c: E2 08 00 FE 12 80 13 01 00 00 00 00 00 8D [22:34:18]Write i2c OK [22:34:18]MH_I2C_Read... [22:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:18]Read from MH i2c: E2 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 0E 00 [22:34:18]MH_I2C_Read... [22:34:18]Read from MH i2c: E2 0E 00 FE 12 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 50 [22:34:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:34:18]wFMCommunicate OK [22:34:18]SAM_PROTO_GetShiftState done [22:34:18]FM_GetShiftState done [22:34:18]opened in 1717460629 [22:34:18]opened+sec_in_day 1717547029 [22:34:18]quantity*price = 20003 [22:34:18]sum+1 = 20004 [22:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 388 04.06.2024 22:34 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149049 ФПД: 155172408585035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223419&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149049&fm=155172408585035&tin=02508201610067®Number=0000000000092720&sum=20000 [22:34:19]StoreToDocumentArchive [22:34:19]shift 368 fd 149049 [22:34:19]save to /storage/0368/doc_00149049 [22:34:19]save last doc name /storage/0368/doc_00149049 to /storage/kkm_last_doc_name [22:34:19]save OK [22:34:19]Clear old archive folders... [22:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:34:19]tlvbuf is B6F1B920 [22:34:19]SAM_PROTO_ClearQueue [22:34:19]wFMCommunicate request_size=4 [22:34:19]MH_SAM_APDU [22:34:19]CAPDU: 80 09 00 00 [22:34:19]Write to MH i2c: E2 08 00 0B 13 80 09 00 00 00 00 00 00 90 [22:34:19]Write i2c OK [22:34:19]MH_I2C_Read... [22:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:19]Read from MH i2c: E2 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 03 00 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 03 00 0B 13 00 90 00 92 [22:34:19]RAPDU: 90 00 [22:34:19]wFMCommunicate OK [22:34:19]SAM_PROTO_ClearQueue done [22:34:19]KKMCreateOFDPacket [22:34:19]OFDProtocolAddRootSTLVToBuf [22:34:19]FM_MakeSignedData [22:34:19]FM_MakeSignedData [22:34:19]SAM_PROTO_SignData [22:34:19]wFMCommunicate request_size=4 [22:34:19]MH_SAM_APDU [22:34:19]CAPDU: 80 0D 01 02 [22:34:19]Write to MH i2c: E2 08 00 0C 13 80 0D 01 02 00 00 00 00 98 [22:34:19]Write i2c OK [22:34:19]MH_I2C_Read... [22:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:19]Read from MH i2c: E2 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 03 00 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 03 00 0C 13 00 90 00 93 [22:34:19]RAPDU: 90 00 [22:34:19]wFMCommunicate OK [22:34:19]wFMCommunicate request_size=255 [22:34:19]MH_SAM_APDU [22:34:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 84 01 00 00 F4 03 04 00 6B 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 39 46 02 00 35 04 06 00 8D [22:34:19]Write to MH i2c: E2 02 01 0D 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 84 01 00 00 F4 03 04 00 6B 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 39 46 02 00 35 04 06 00 8D 00 00 AE [22:34:19]Write i2c OK [22:34:19]MH_I2C_Read... [22:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:19]Read from MH i2c: E2 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 03 00 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 03 00 0D 13 00 90 00 94 [22:34:19]RAPDU: 90 00 [22:34:19]wFMCommunicate OK [22:34:19]wFMCommunicate request_size=10 [22:34:19]MH_SAM_APDU [22:34:19]CAPDU: 80 0D 02 02 05 20 E4 4A EB 4B [22:34:19]Write to MH i2c: E2 0D 00 0E 13 80 0D 02 02 05 00 20 E4 4A EB 4B 00 00 29 [22:34:19]Write i2c OK [22:34:19]MH_I2C_Read... [22:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:19]Read from MH i2c: E2 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 03 00 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 03 00 0E 13 00 90 00 95 [22:34:19]RAPDU: 90 00 [22:34:19]wFMCommunicate OK [22:34:19]wFMCommunicate request_size=4 [22:34:19]MH_SAM_APDU [22:34:19]CAPDU: 80 0D 03 02 [22:34:19]Write to MH i2c: E2 08 00 0F 13 80 0D 03 02 00 00 00 00 9D [22:34:19]Write i2c OK [22:34:19]MH_I2C_Read... [22:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:19]Read from MH i2c: E2 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 0B 00 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 0B 00 0F 13 00 B7 98 C9 6C E4 50 DB 18 90 00 49 [22:34:19]RAPDU: B7 98 C9 6C E4 50 DB 18 90 00 [22:34:19]wFMCommunicate OK [22:34:19]SAM_PROTO_SignData done [22:34:19]FM_MakeSignedData done [22:34:19]CreateOFDProtocolMessage [22:34:19]wFMCommunicate request_size=4 [22:34:19]MH_SAM_APDU [22:34:19]CAPDU: 80 11 00 00 [22:34:19]Write to MH i2c: E2 08 00 10 13 80 11 00 00 00 00 00 00 9D [22:34:19]Write i2c OK [22:34:19]MH_I2C_Read... [22:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:19]Read from MH i2c: E2 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 17 00 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: E2 17 00 10 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F0 [22:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:34:19]wFMCommunicate OK [22:34:19]CreateOFDProtocolMessage done [22:34:19]OFDSenderStorePacket 149049 [22:34:19]StoreOFDPacket docnum=149049 [22:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 37 C6 07 01 12 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 84 01 00 00 F4 03 04 00 6B 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 39 46 02 00 35 04 06 00 8D 20 E4 4A EB 4B B7 98 C9 6C E4 50 DB 18 [22:34:19]CheckFolder [22:34:19]dirname=/storage/ofd_packets [22:34:19]CheckFolder done [22:34:19]ProducePacketName [22:34:19]name=ofd_packets/00149049 [22:34:19]NVStorageSaveData ofd_packets/00149049 [22:34:19]File name is /storage/ofd_packets/00149049 [22:34:19]Write 301 bytes [22:34:19]NVStorageSaveData done [22:34:19]OFDSenderStorePacket done [22:34:19]KKMCreateOFDPacket done [22:34:19]NVStorageSaveData kkm_last_timestamp [22:34:19]File name is /storage/kkm_last_timestamp [22:34:19]Write 4 bytes [22:34:19]NVStorageSaveData done [22:34:19]ExternCall_PrintAddStr [22:34:19]wPrintStart [22:34:19]Write to MH i2c: 01 00 00 11 13 24 [22:34:19]Write i2c OK [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: 01 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: 01 07 00 [22:34:19]MH_I2C_Read... [22:34:19]Read from MH i2c: 01 07 00 11 13 00 00 00 00 00 FF 0F 39 [22:34:19]RasterBufferAndPrint [22:34:19]line Счет N : (1)979979 [22:34:19]line ИНН: 02508201610067 [22:34:19]line Контрольно-Кассовый Чек [22:34:19]line ПРОДАЖА [22:34:19]line ТРК (МРК, ГНК) : 22 [22:34:19]line Товар: 2710124130 [22:34:19]line Аи-92-К-5 [22:34:19]line 2.990 * 66.90 [22:34:19]line = 200.03 [22:34:19]line НДС 12% НСП 1% [22:34:19]line > о реализуемом товаре [22:34:19]line ОКРУГЛЕНИЕ: -0.03 [22:34:19]line ИТОГО: 200.00 [22:34:19]line Внесено: 200.00 [22:34:19]line СДАЧА: 0.00 [22:34:19]line НСП 1% : 1.77 [22:34:19]line НДС 12% : 21.24 [22:34:19]line Наличными: 200.00 [22:34:19]line Безнал.: 0.00 [22:34:19]line Место: АЗС № 68 "Партнер Нефть" [22:34:19]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:34:19]line СНО: Общий режим [22:34:19]line Чек 388 04.06.2024 22:34 [22:34:19]line Смена: 368 ФФД: 1.0 [22:34:19]line ЗНМ: 0300000035 [22:34:19]line РНМ: 0000000000092720 [22:34:19]line Версия ККМ: 001 [22:34:19]line ФМ: 0000000000875057 [22:34:19]line ФД: 149049 [22:34:19]line ФПД: 155172408585035 [22:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223419&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149049&fm=155172408585035&tin=02508201610067®Number=0000000000092720&sum=20000 [22:34:20]OFD Sender: Processing packet 149049 [packets to send 100, broken 99] [22:34:20]ProducePacketName [22:34:20]name=ofd_packets/00149049 [22:34:20]OFD Sender: To server: pG, [22:34:20]CommunicateWithHost lk.salyk.kg:30040 [22:34:20]ConnectInit lk.salyk.kg [22:34:20]written 0, free lines is 4095 [22:34:20]Connected sock=10 [22:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 37 C6 07 01 12 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 84 01 00 00 F4 03 04 00 6B 96 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 39 46 02 00 35 04 06 00 8D 20 E4 4A EB 4B B7 98 C9 6C E4 50 DB 18 [22:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BB A4 47 00 C5 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 39 46 02 00 F4 03 04 00 8D 3D 5F 66 B6 04 01 00 00 E1 66 DF 74 A8 38 63 EE [22:34:20]CommunicateWithHost err = 0 [22:34:20]CheckOFDResponse [22:34:20]1017 (14) - 77093643461234 [22:34:20]1041 (16) - 0000000000875057 [22:34:20]1040 (4) - 149049 [22:34:20]1012 (4) - 04.06.2024 16:15 [22:34:20]1206 (1) - 0 [22:34:20]OFD Sender: Remove packet 149049 [22:34:20]ProducePacketName [22:34:20]name=ofd_packets/00149049 [22:34:20]NVStorageDeleteData [22:34:20]Write to MH i2c: 01 00 00 3C 13 4F [22:34:20]Write i2c OK [22:34:20]MH_I2C_Read... [22:34:20]Read from MH i2c: 01 [22:34:20]MH_I2C_Read... [22:34:20]Read from MH i2c: 01 07 00 [22:34:20]MH_I2C_Read... [22:34:20]Read from MH i2c: 01 07 00 3C 13 00 00 00 00 00 6D 0C CF [22:34:20]RasterBufferAndPrint [22:34:20]line [22:34:20]line [22:34:20]line [22:34:20]line [22:34:20]line [22:34:20]written 0, free lines is 3184 [22:34:20]MH_Cut [22:34:20]Write to MH i2c: D1 01 00 43 13 01 28 [22:34:20]Write i2c OK [22:34:20]MH_I2C_Read... [22:34:20]Read from MH i2c: D1 [22:34:20]MH_I2C_Read... [22:34:20]Read from MH i2c: D1 01 00 [22:34:20]MH_I2C_Read... [22:34:20]Read from MH i2c: D1 01 00 43 13 00 27 [22:34:20]Write to MH i2c: 01 00 00 44 13 57 [22:34:20]Write i2c OK [22:34:20]MH_I2C_Read... [22:34:20]OFD Sender: No OFD packet to send [22:34:21]*** Cut start [22:34:21]*** Partial cut [22:34:21]*** CUTSNS_PIN = 1 [22:34:21]*** CUTSNS_PIN = 0 [22:34:22]*** Brake cut motor [22:34:22]Read from MH i2c: 01 [22:34:22]MH_I2C_Read... [22:34:22]*** Stop cut motor [22:34:22]*** Cut end [22:34:22]Read from MH i2c: 01 07 00 [22:34:22]MH_I2C_Read... [22:34:22]Read from MH i2c: 01 07 00 44 13 00 00 00 00 00 FF 0F 6C [22:34:22]process_action close_receipt done [22:34:22]requested_data is exist [22:34:22]produce_requested_data [22:34:22]requested_item fm.sn is exist - process it [22:34:22]wFMCommunicate request_size=4 [22:34:22]MH_SAM_APDU [22:34:22]CAPDU: 80 11 00 00 [22:34:22]Write to MH i2c: E2 08 00 45 13 80 11 00 00 00 00 00 00 D2 [22:34:22]Write i2c OK [22:34:22]MH_I2C_Read... [22:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:22]Read from MH i2c: E2 [22:34:22]MH_I2C_Read... [22:34:22]Read from MH i2c: E2 17 00 [22:34:22]MH_I2C_Read... [22:34:22]Read from MH i2c: E2 17 00 45 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 25 [22:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:34:22]wFMCommunicate OK [22:34:22]requested_item fd.num is exist - process it [22:34:22]SAM_PROTO_GetFieldsCounters [22:34:22]wFMCommunicate request_size=4 [22:34:22]MH_SAM_APDU [22:34:22]CAPDU: 80 13 00 00 [22:34:22]Write to MH i2c: E2 08 00 46 13 80 13 00 00 00 00 00 00 D5 [22:34:22]Write i2c OK [22:34:22]MH_I2C_Read... [22:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:22]Read from MH i2c: E2 [22:34:22]MH_I2C_Read... [22:34:22]Read from MH i2c: E2 62 00 [22:34:22]MH_I2C_Read... [22:34:22]Read from MH i2c: E2 62 00 46 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 39 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [22:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 39 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:22]wFMCommunicate OK [22:34:22]SAM_PROTO_GetFieldsCounters done [22:34:22]requested_item shift.num is exist - process it [22:34:22]requested_item shift.opened is exist - process it [22:34:22]req_shift_opened [22:34:22]FM_GetShiftState [22:34:22]SAM_PROTO_GetShiftState [22:34:22]wFMCommunicate request_size=4 [22:34:22]MH_SAM_APDU [22:34:22]CAPDU: 80 13 01 00 [22:34:22]Write to MH i2c: E2 08 00 47 13 80 13 01 00 00 00 00 00 D7 [22:34:22]Write i2c OK [22:34:22]MH_I2C_Read... [22:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:22]Read from MH i2c: E2 [22:34:22]MH_I2C_Read... [22:34:22]Read from MH i2c: E2 0E 00 [22:34:22]MH_I2C_Read... [22:34:22]Read from MH i2c: E2 0E 00 47 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9A [22:34:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:34:22]wFMCommunicate OK [22:34:22]SAM_PROTO_GetShiftState done [22:34:22]FM_GetShiftState done [22:34:22]req_shift_opened done [22:34:22]requested_item shift.open_date is exist - process it [22:34:22]req_shift_open_date [22:34:22]req_shift_open_date done [22:34:22]produce_requested_data done [22:34:22]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149049,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:34:22]process_action_free close_receipt [22:34:22]json_value_free [22:34:22]json_value_free done [22:34:22]process_json_proto returns [22:34:22]Send response to host [22:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149049,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:34:22]free response buf [22:34:22]execute_script done [22:34:22]execute_script returns [22:34:22]free content buf [22:34:22]Sock 9.Close socket [22:34:22]Sock 9.Thread stoped [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:05]accept exits with 7 [22:38:05]New connection [22:38:05]New thread 3067219300 created [22:38:05]Thread 3067075940 joined [22:38:05]Waiting for new connection... [22:38:05] Sock 7.Parse request [22:38:05]Sock 7.Check first char [22:38:05]Sock 7.First char is OK [22:38:05]request: POST /json_proto HTTP/1.0 [22:38:05]Method: POST [22:38:05]URL: /json_proto [22:38:05]Method is POST - this is cgi request [22:38:05]url: /json_proto [22:38:05]query_string will be loaded in cgi processing [22:38:05]execute_cgi json_proto POST (null) [22:38:05]execute_cgi path=json_proto method=POST [22:38:05]POST find Content-Length [22:38:05]Host: 172.17.38.4:8080 [22:38:05]Content-Length: 678 [22:38:05]Content-Type: application/json [22:38:05] [22:38:05]POST finish read [22:38:05]Found Content-Length = 678 [22:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:05]execute_script... [22:38:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:05]POST & json_proto [22:38:05]process_json_proto [22:38:05]json parsed OK: [22:38:05]protocol is kg_v1.0 [22:38:05]action value=close_receipt [22:38:05]process_action close_receipt [22:38:05]cmd_close_receipt [22:38:05]MH_GetDate [22:38:05]Write to MH i2c: F0 00 00 48 13 4A [22:38:05]Write i2c OK [22:38:05]MH_I2C_Read... [22:38:05]Read from MH i2c: F0 [22:38:05]MH_I2C_Read... [22:38:05]Read from MH i2c: F0 09 00 [22:38:05]MH_I2C_Read... [22:38:05]Read from MH i2c: F0 09 00 48 13 00 4E 97 5F 66 CC 51 87 64 05 [22:38:05]GetLastDocTimeStamp 1717540459 [22:38:05]current date 1717540686 [22:38:05]FM_GetShiftState [22:38:05]SAM_PROTO_GetShiftState [22:38:05]wFMCommunicate request_size=4 [22:38:05]MH_SAM_APDU [22:38:05]CAPDU: 80 13 01 00 [22:38:05]Write to MH i2c: E2 08 00 49 13 80 13 01 00 00 00 00 00 D9 [22:38:05]Write i2c OK [22:38:05]MH_I2C_Read... [22:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:05]Read from MH i2c: E2 [22:38:05]MH_I2C_Read... [22:38:05]Read from MH i2c: E2 0E 00 [22:38:05]MH_I2C_Read... [22:38:05]Read from MH i2c: E2 0E 00 49 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 9C [22:38:05]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:38:05]wFMCommunicate OK [22:38:05]SAM_PROTO_GetShiftState done [22:38:05]FM_GetShiftState done [22:38:05]opened in 1717460629 [22:38:05]opened+sec_in_day 1717547029 [22:38:05]quantity*price = 80012 [22:38:05]sum+1 = 80013 [22:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 389 04.06.2024 22:38 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149050 ФПД: 138842612549529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223806&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149050&fm=138842612549529&tin=02508201610067®Number=0000000000092720&sum=80000 [22:38:06]StoreToDocumentArchive [22:38:06]shift 368 fd 149050 [22:38:06]save to /storage/0368/doc_00149050 [22:38:06]save last doc name /storage/0368/doc_00149050 to /storage/kkm_last_doc_name [22:38:06]save OK [22:38:06]Clear old archive folders... [22:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:06]tlvbuf is B6F1B940 [22:38:06]SAM_PROTO_ClearQueue [22:38:06]wFMCommunicate request_size=4 [22:38:06]MH_SAM_APDU [22:38:06]CAPDU: 80 09 00 00 [22:38:06]Write to MH i2c: E2 08 00 56 13 80 09 00 00 00 00 00 00 DB [22:38:06]Write i2c OK [22:38:06]MH_I2C_Read... [22:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:06]Read from MH i2c: E2 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 03 00 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 03 00 56 13 00 90 00 DD [22:38:06]RAPDU: 90 00 [22:38:06]wFMCommunicate OK [22:38:06]SAM_PROTO_ClearQueue done [22:38:06]KKMCreateOFDPacket [22:38:06]OFDProtocolAddRootSTLVToBuf [22:38:06]FM_MakeSignedData [22:38:06]FM_MakeSignedData [22:38:06]SAM_PROTO_SignData [22:38:06]wFMCommunicate request_size=4 [22:38:06]MH_SAM_APDU [22:38:06]CAPDU: 80 0D 01 02 [22:38:06]Write to MH i2c: E2 08 00 57 13 80 0D 01 02 00 00 00 00 E3 [22:38:06]Write i2c OK [22:38:06]MH_I2C_Read... [22:38:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:06]Read from MH i2c: E2 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 03 00 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 03 00 57 13 00 90 00 DE [22:38:06]RAPDU: 90 00 [22:38:06]wFMCommunicate OK [22:38:06]wFMCommunicate request_size=255 [22:38:06]MH_SAM_APDU [22:38:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 85 01 00 00 F4 03 04 00 4E 97 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3A 46 02 00 35 04 06 00 7E [22:38:06]Write to MH i2c: E2 02 01 58 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 85 01 00 00 F4 03 04 00 4E 97 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3A 46 02 00 35 04 06 00 7E 00 00 FA [22:38:06]Write i2c OK [22:38:06]MH_I2C_Read... [22:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:06]Read from MH i2c: E2 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 03 00 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 03 00 58 13 00 90 00 DF [22:38:06]RAPDU: 90 00 [22:38:06]wFMCommunicate OK [22:38:06]wFMCommunicate request_size=10 [22:38:06]MH_SAM_APDU [22:38:06]CAPDU: 80 0D 02 02 05 46 D0 99 C7 99 [22:38:06]Write to MH i2c: E2 0D 00 59 13 80 0D 02 02 05 00 46 D0 99 C7 99 00 00 FF [22:38:06]Write i2c OK [22:38:06]MH_I2C_Read... [22:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:06]Read from MH i2c: E2 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 03 00 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 03 00 59 13 00 90 00 E0 [22:38:06]RAPDU: 90 00 [22:38:06]wFMCommunicate OK [22:38:06]wFMCommunicate request_size=4 [22:38:06]MH_SAM_APDU [22:38:06]CAPDU: 80 0D 03 02 [22:38:06]Write to MH i2c: E2 08 00 5A 13 80 0D 03 02 00 00 00 00 E8 [22:38:06]Write i2c OK [22:38:06]MH_I2C_Read... [22:38:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:06]Read from MH i2c: E2 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 0B 00 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 0B 00 5A 13 00 30 9D 19 D2 BA 3E F0 97 90 00 20 [22:38:06]RAPDU: 30 9D 19 D2 BA 3E F0 97 90 00 [22:38:06]wFMCommunicate OK [22:38:06]SAM_PROTO_SignData done [22:38:06]FM_MakeSignedData done [22:38:06]CreateOFDProtocolMessage [22:38:06]wFMCommunicate request_size=4 [22:38:06]MH_SAM_APDU [22:38:06]CAPDU: 80 11 00 00 [22:38:06]Write to MH i2c: E2 08 00 5B 13 80 11 00 00 00 00 00 00 E8 [22:38:06]Write i2c OK [22:38:06]MH_I2C_Read... [22:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:07]Read from MH i2c: E2 [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: E2 17 00 [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: E2 17 00 5B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3B [22:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:38:07]wFMCommunicate OK [22:38:07]CreateOFDProtocolMessage done [22:38:07]OFDSenderStorePacket 149050 [22:38:07]StoreOFDPacket docnum=149050 [22:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A3 26 07 01 0F 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 4E 97 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3A 46 02 00 35 04 06 00 7E 46 D0 99 C7 99 30 9D 19 D2 BA 3E F0 97 [22:38:07]CheckFolder [22:38:07]dirname=/storage/ofd_packets [22:38:07]CheckFolder done [22:38:07]ProducePacketName [22:38:07]name=ofd_packets/00149050 [22:38:07]NVStorageSaveData ofd_packets/00149050 [22:38:07]File name is /storage/ofd_packets/00149050 [22:38:07]Write 301 bytes [22:38:07]NVStorageSaveData done [22:38:07]OFDSenderStorePacket done [22:38:07]KKMCreateOFDPacket done [22:38:07]NVStorageSaveData kkm_last_timestamp [22:38:07]File name is /storage/kkm_last_timestamp [22:38:07]Write 4 bytes [22:38:07]NVStorageSaveData done [22:38:07]ExternCall_PrintAddStr [22:38:07]wPrintStart [22:38:07]Write to MH i2c: 01 00 00 5C 13 6F [22:38:07]Write i2c OK [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: 01 [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: 01 07 00 [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: 01 07 00 5C 13 00 00 00 00 00 FF 0F 84 [22:38:07]RasterBufferAndPrint [22:38:07]line Счет N : (1)979980 [22:38:07]line ИНН: 02508201610067 [22:38:07]line Контрольно-Кассовый Чек [22:38:07]line ПРОДАЖА [22:38:07]line ТРК (МРК, ГНК) : 31 [22:38:07]line Товар: 2710124130 [22:38:07]line Аи-92-К-5 [22:38:07]line 11.960 * 66.90 [22:38:07]line = 800.12 [22:38:07]line НДС 12% НСП 1% [22:38:07]line > о реализуемом товаре [22:38:07]line ОКРУГЛЕНИЕ: -0.12 [22:38:07]line ИТОГО: 800.00 [22:38:07]line Внесено: 800.00 [22:38:07]line СДАЧА: 0.00 [22:38:07]line НСП 1% : 7.08 [22:38:07]line НДС 12% : 84.97 [22:38:07]line Наличными: 800.00 [22:38:07]line Безнал.: 0.00 [22:38:07]line Место: АЗС № 68 "Партнер Нефть" [22:38:07]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:38:07]line СНО: Общий режим [22:38:07]line Чек 389 04.06.2024 22:38 [22:38:07]line Смена: 368 ФФД: 1.0 [22:38:07]line ЗНМ: 0300000035 [22:38:07]line РНМ: 0000000000092720 [22:38:07]line Версия ККМ: 001 [22:38:07]line ФМ: 0000000000875057 [22:38:07]line ФД: 149050 [22:38:07]line ФПД: 138842612549529 [22:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223806&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149050&fm=138842612549529&tin=02508201610067®Number=0000000000092720&sum=80000 [22:38:07]OFD Sender: Processing packet 149050 [packets to send 100, broken 99] [22:38:07]ProducePacketName [22:38:07]name=ofd_packets/00149050 [22:38:07]OFD Sender: To server: pG, [22:38:07]CommunicateWithHost lk.salyk.kg:30040 [22:38:07]ConnectInit lk.salyk.kg [22:38:07]written 0, free lines is 4095 [22:38:07]Connected sock=10 [22:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A3 26 07 01 0F 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 4E 97 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3A 46 02 00 35 04 06 00 7E 46 D0 99 C7 99 30 9D 19 D2 BA 3E F0 97 [22:38:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DE 6E 47 00 D7 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3A 46 02 00 F4 03 04 00 70 3E 5F 66 B6 04 01 00 00 D4 47 15 84 3B 93 73 93 [22:38:07]CommunicateWithHost err = 0 [22:38:07]CheckOFDResponse [22:38:07]1017 (14) - 77093643461234 [22:38:07]1041 (16) - 0000000000875057 [22:38:07]1040 (4) - 149050 [22:38:07]1012 (4) - 04.06.2024 16:18 [22:38:07]1206 (1) - 0 [22:38:07]OFD Sender: Remove packet 149050 [22:38:07]ProducePacketName [22:38:07]name=ofd_packets/00149050 [22:38:07]NVStorageDeleteData [22:38:07]Write to MH i2c: 01 00 00 87 13 9A [22:38:07]Write i2c OK [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: 01 [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: 01 07 00 [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: 01 07 00 87 13 00 00 00 00 00 67 0C 14 [22:38:07]RasterBufferAndPrint [22:38:07]line [22:38:07]line [22:38:07]line [22:38:07]line [22:38:07]line [22:38:07]written 0, free lines is 3179 [22:38:07]MH_Cut [22:38:07]Write to MH i2c: D1 01 00 8E 13 01 73 [22:38:07]Write i2c OK [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: D1 [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: D1 01 00 [22:38:07]MH_I2C_Read... [22:38:07]Read from MH i2c: D1 01 00 8E 13 00 72 [22:38:07]Write to MH i2c: 01 00 00 8F 13 A2 [22:38:07]Write i2c OK [22:38:07]MH_I2C_Read... [22:38:08]OFD Sender: No OFD packet to send [22:38:09]*** Cut start [22:38:09]*** Partial cut [22:38:09]*** CUTSNS_PIN = 1 [22:38:09]*** CUTSNS_PIN = 0 [22:38:09]*** Brake cut motor [22:38:09]Read from MH i2c: 01 [22:38:09]MH_I2C_Read... [22:38:09]*** Stop cut motor [22:38:09]*** Cut end [22:38:09]Read from MH i2c: 01 07 00 [22:38:09]MH_I2C_Read... [22:38:09]Read from MH i2c: 01 07 00 8F 13 00 00 00 00 00 FF 0F B7 [22:38:09]process_action close_receipt done [22:38:09]requested_data is exist [22:38:09]produce_requested_data [22:38:09]requested_item fm.sn is exist - process it [22:38:09]wFMCommunicate request_size=4 [22:38:09]MH_SAM_APDU [22:38:09]CAPDU: 80 11 00 00 [22:38:09]Write to MH i2c: E2 08 00 90 13 80 11 00 00 00 00 00 00 1D [22:38:09]Write i2c OK [22:38:09]MH_I2C_Read... [22:38:09]Read from MH i2c: E2 [22:38:09]MH_I2C_Read... [22:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:09]Read from MH i2c: E2 17 00 [22:38:09]MH_I2C_Read... [22:38:09]Read from MH i2c: E2 17 00 90 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 70 [22:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:38:09]wFMCommunicate OK [22:38:09]requested_item fd.num is exist - process it [22:38:09]SAM_PROTO_GetFieldsCounters [22:38:09]wFMCommunicate request_size=4 [22:38:09]MH_SAM_APDU [22:38:09]CAPDU: 80 13 00 00 [22:38:09]Write to MH i2c: E2 08 00 91 13 80 13 00 00 00 00 00 00 20 [22:38:09]Write i2c OK [22:38:09]MH_I2C_Read... [22:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:09]Read from MH i2c: E2 [22:38:09]MH_I2C_Read... [22:38:09]Read from MH i2c: E2 62 00 [22:38:09]MH_I2C_Read... [22:38:09]Read from MH i2c: E2 62 00 91 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3A 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [22:38:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3A 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:09]wFMCommunicate OK [22:38:09]SAM_PROTO_GetFieldsCounters done [22:38:09]requested_item shift.num is exist - process it [22:38:09]requested_item shift.opened is exist - process it [22:38:09]req_shift_opened [22:38:09]FM_GetShiftState [22:38:09]SAM_PROTO_GetShiftState [22:38:09]wFMCommunicate request_size=4 [22:38:09]MH_SAM_APDU [22:38:09]CAPDU: 80 13 01 00 [22:38:09]Write to MH i2c: E2 08 00 92 13 80 13 01 00 00 00 00 00 22 [22:38:09]Write i2c OK [22:38:09]MH_I2C_Read... [22:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:09]Read from MH i2c: E2 [22:38:09]MH_I2C_Read... [22:38:09]Read from MH i2c: E2 0E 00 [22:38:09]MH_I2C_Read... [22:38:09]Read from MH i2c: E2 0E 00 92 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E5 [22:38:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:38:10]wFMCommunicate OK [22:38:10]SAM_PROTO_GetShiftState done [22:38:10]FM_GetShiftState done [22:38:10]req_shift_opened done [22:38:10]requested_item shift.open_date is exist - process it [22:38:10]req_shift_open_date [22:38:10]req_shift_open_date done [22:38:10]produce_requested_data done [22:38:10]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149050,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:38:10]process_action_free close_receipt [22:38:10]json_value_free [22:38:10]json_value_free done [22:38:10]process_json_proto returns [22:38:10]Send response to host [22:38:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149050,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:38:10]free response buf [22:38:10]execute_script done [22:38:10]execute_script returns [22:38:10]free content buf [22:38:10]Sock 7.Close socket [22:38:10]Sock 7.Thread stoped [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:15]accept exits with 9 [22:44:15]New connection [22:44:15]New thread 3067075940 created [22:44:15]Thread 3067219300 joined [22:44:15]Waiting for new connection... [22:44:15] Sock 9.Parse request [22:44:15]Sock 9.Check first char [22:44:15]Sock 9.First char is OK [22:44:15]request: POST /json_proto HTTP/1.0 [22:44:15]Method: POST [22:44:15]URL: /json_proto [22:44:15]Method is POST - this is cgi request [22:44:15]url: /json_proto [22:44:15]query_string will be loaded in cgi processing [22:44:15]execute_cgi json_proto POST (null) [22:44:15]execute_cgi path=json_proto method=POST [22:44:15]POST find Content-Length [22:44:15]Host: 172.17.38.4:8080 [22:44:15]Content-Length: 678 [22:44:15]Content-Type: application/json [22:44:15] [22:44:15]POST finish read [22:44:15]Found Content-Length = 678 [22:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.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" ] } } [22:44:15]execute_script... [22:44:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.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" ] } } [22:44:15]POST & json_proto [22:44:15]process_json_proto [22:44:15]json parsed OK: [22:44:15]protocol is kg_v1.0 [22:44:15]action value=close_receipt [22:44:15]process_action close_receipt [22:44:15]cmd_close_receipt [22:44:15]MH_GetDate [22:44:15]Write to MH i2c: F0 00 00 93 13 95 [22:44:15]Write i2c OK [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: F0 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: F0 09 00 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: F0 09 00 93 13 00 C0 98 5F 66 CC 51 87 64 C3 [22:44:15]GetLastDocTimeStamp 1717540686 [22:44:15]current date 1717541056 [22:44:15]FM_GetShiftState [22:44:15]SAM_PROTO_GetShiftState [22:44:15]wFMCommunicate request_size=4 [22:44:15]MH_SAM_APDU [22:44:15]CAPDU: 80 13 01 00 [22:44:15]Write to MH i2c: E2 08 00 94 13 80 13 01 00 00 00 00 00 24 [22:44:15]Write i2c OK [22:44:15]MH_I2C_Read... [22:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:15]Read from MH i2c: E2 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: E2 0E 00 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: E2 0E 00 94 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E7 [22:44:15]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:44:15]wFMCommunicate OK [22:44:15]SAM_PROTO_GetShiftState done [22:44:15]FM_GetShiftState done [22:44:15]opened in 1717460629 [22:44:15]opened+sec_in_day 1717547029 [22:44:15]quantity*price = 67033 [22:44:15]sum+1 = 67035 [22:44:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 390 04.06.2024 22:44 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149051 ФПД: 78103391430673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224416&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149051&fm=78103391430673&tin=02508201610067®Number=0000000000092720&sum=67000 [22:44:16]StoreToDocumentArchive [22:44:16]shift 368 fd 149051 [22:44:16]save to /storage/0368/doc_00149051 [22:44:16]save last doc name /storage/0368/doc_00149051 to /storage/kkm_last_doc_name [22:44:16]save OK [22:44:16]Clear old archive folders... [22:44:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:16]tlvbuf is B6F027B0 [22:44:16]SAM_PROTO_ClearQueue [22:44:16]wFMCommunicate request_size=4 [22:44:16]MH_SAM_APDU [22:44:16]CAPDU: 80 09 00 00 [22:44:16]Write to MH i2c: E2 08 00 A1 13 80 09 00 00 00 00 00 00 26 [22:44:16]Write i2c OK [22:44:16]MH_I2C_Read... [22:44:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:16]Read from MH i2c: E2 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 03 00 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [22:44:16]RAPDU: 90 00 [22:44:16]wFMCommunicate OK [22:44:16]SAM_PROTO_ClearQueue done [22:44:16]KKMCreateOFDPacket [22:44:16]OFDProtocolAddRootSTLVToBuf [22:44:16]FM_MakeSignedData [22:44:16]FM_MakeSignedData [22:44:16]SAM_PROTO_SignData [22:44:16]wFMCommunicate request_size=4 [22:44:16]MH_SAM_APDU [22:44:16]CAPDU: 80 0D 01 02 [22:44:16]Write to MH i2c: E2 08 00 A2 13 80 0D 01 02 00 00 00 00 2E [22:44:16]Write i2c OK [22:44:16]MH_I2C_Read... [22:44:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:16]Read from MH i2c: E2 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 03 00 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 03 00 A2 13 00 90 00 29 [22:44:16]RAPDU: 90 00 [22:44:16]wFMCommunicate OK [22:44:16]wFMCommunicate request_size=255 [22:44:16]MH_SAM_APDU [22:44:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 86 01 00 00 F4 03 04 00 C0 98 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3B 46 02 00 35 04 06 00 47 [22:44:16]Write to MH i2c: E2 02 01 A3 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 86 01 00 00 F4 03 04 00 C0 98 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3B 46 02 00 35 04 06 00 47 00 00 32 [22:44:16]Write i2c OK [22:44:16]MH_I2C_Read... [22:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:16]Read from MH i2c: E2 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 03 00 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 03 00 A3 13 00 90 00 2A [22:44:16]RAPDU: 90 00 [22:44:16]wFMCommunicate OK [22:44:16]wFMCommunicate request_size=10 [22:44:16]MH_SAM_APDU [22:44:16]CAPDU: 80 0D 02 02 05 08 DC E6 E8 11 [22:44:16]Write to MH i2c: E2 0D 00 A4 13 80 0D 02 02 05 00 08 DC E6 E8 11 00 00 FE [22:44:16]Write i2c OK [22:44:16]MH_I2C_Read... [22:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:16]Read from MH i2c: E2 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 03 00 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 03 00 A4 13 00 90 00 2B [22:44:16]RAPDU: 90 00 [22:44:16]wFMCommunicate OK [22:44:16]wFMCommunicate request_size=4 [22:44:16]MH_SAM_APDU [22:44:16]CAPDU: 80 0D 03 02 [22:44:16]Write to MH i2c: E2 08 00 A5 13 80 0D 03 02 00 00 00 00 33 [22:44:16]Write i2c OK [22:44:16]MH_I2C_Read... [22:44:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:16]Read from MH i2c: E2 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 0B 00 [22:44:16]MH_I2C_Read... [22:44:16]Read from MH i2c: E2 0B 00 A5 13 00 B9 3A CA B6 59 EB 12 D5 90 00 D2 [22:44:16]RAPDU: B9 3A CA B6 59 EB 12 D5 90 00 [22:44:16]wFMCommunicate OK [22:44:16]SAM_PROTO_SignData done [22:44:16]FM_MakeSignedData done [22:44:16]CreateOFDProtocolMessage [22:44:16]wFMCommunicate request_size=4 [22:44:16]MH_SAM_APDU [22:44:16]CAPDU: 80 11 00 00 [22:44:16]Write to MH i2c: E2 08 00 A6 13 80 11 00 00 00 00 00 00 33 [22:44:16]Write i2c OK [22:44:16]MH_I2C_Read... [22:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:17]Read from MH i2c: E2 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 17 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: E2 17 00 A6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 86 [22:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:44:17]wFMCommunicate OK [22:44:17]CreateOFDProtocolMessage done [22:44:17]OFDSenderStorePacket 149051 [22:44:17]StoreOFDPacket docnum=149051 [22:44:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3A 4F 07 01 76 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 35 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 86 01 00 00 F4 03 04 00 C0 98 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3B 46 02 00 35 04 06 00 47 08 DC E6 E8 11 B9 3A CA B6 59 EB 12 D5 [22:44:17]CheckFolder [22:44:17]dirname=/storage/ofd_packets [22:44:17]CheckFolder done [22:44:17]ProducePacketName [22:44:17]name=ofd_packets/00149051 [22:44:17]NVStorageSaveData ofd_packets/00149051 [22:44:17]File name is /storage/ofd_packets/00149051 [22:44:17]Write 301 bytes [22:44:17]NVStorageSaveData done [22:44:17]OFDSenderStorePacket done [22:44:17]KKMCreateOFDPacket done [22:44:17]NVStorageSaveData kkm_last_timestamp [22:44:17]File name is /storage/kkm_last_timestamp [22:44:17]Write 4 bytes [22:44:17]NVStorageSaveData done [22:44:17]ExternCall_PrintAddStr [22:44:17]wPrintStart [22:44:17]Write to MH i2c: 01 00 00 A7 13 BA [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: 01 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: 01 07 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: 01 07 00 A7 13 00 00 00 00 00 FF 0F CF [22:44:17]RasterBufferAndPrint [22:44:17]line Счет N : (1)979981 [22:44:17]line ИНН: 02508201610067 [22:44:17]line Контрольно-Кассовый Чек [22:44:17]line ПРОДАЖА [22:44:17]line ТРК (МРК, ГНК) : 22 [22:44:17]line Товар: 2710124130 [22:44:17]line Аи-92-К-5 [22:44:17]line 10.020 * 66.90 [22:44:17]line = 670.34 [22:44:17]line НДС 12% НСП 1% [22:44:17]line > о реализуемом товаре [22:44:17]line ОКРУГЛЕНИЕ: -0.34 [22:44:17]line ИТОГО: 670.00 [22:44:17]line Внесено: 670.00 [22:44:17]line СДАЧА: 0.00 [22:44:17]line НСП 1% : 5.93 [22:44:17]line НДС 12% : 71.19 [22:44:17]line Наличными: 670.00 [22:44:17]line Безнал.: 0.00 [22:44:17]line Место: АЗС № 68 "Партнер Нефть" [22:44:17]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:44:17]line СНО: Общий режим [22:44:17]line Чек 390 04.06.2024 22:44 [22:44:17]line Смена: 368 ФФД: 1.0 [22:44:17]line ЗНМ: 0300000035 [22:44:17]line РНМ: 0000000000092720 [22:44:17]line Версия ККМ: 001 [22:44:17]line ФМ: 0000000000875057 [22:44:17]line ФД: 149051 [22:44:17]line ФПД: 78103391430673 [22:44:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224416&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149051&fm=78103391430673&tin=02508201610067®Number=0000000000092720&sum=67000 [22:44:17]OFD Sender: Processing packet 149051 [packets to send 100, broken 99] [22:44:17]ProducePacketName [22:44:17]name=ofd_packets/00149051 [22:44:17]OFD Sender: To server: pG, [22:44:17]CommunicateWithHost lk.salyk.kg:30040 [22:44:17]ConnectInit lk.salyk.kg [22:44:17]written 0, free lines is 4095 [22:44:17]Connected sock=7 [22:44:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3A 4F 07 01 76 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 35 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 86 01 00 00 F4 03 04 00 C0 98 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3B 46 02 00 35 04 06 00 47 08 DC E6 E8 11 B9 3A CA B6 59 EB 12 D5 [22:44:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 5B AC 47 00 05 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3B 46 02 00 F4 03 04 00 E2 3F 5F 66 B6 04 01 00 00 AB 3D D2 47 CA D6 A5 C6 [22:44:17]CommunicateWithHost err = 0 [22:44:17]CheckOFDResponse [22:44:17]1017 (14) - 77093643461234 [22:44:17]1041 (16) - 0000000000875057 [22:44:17]1040 (4) - 149051 [22:44:17]1012 (4) - 04.06.2024 16:25 [22:44:17]1206 (1) - 0 [22:44:17]OFD Sender: Remove packet 149051 [22:44:17]ProducePacketName [22:44:17]name=ofd_packets/00149051 [22:44:17]NVStorageDeleteData [22:44:17]Write to MH i2c: 01 00 00 D2 13 E5 [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: 01 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: 01 07 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: 01 07 00 D2 13 00 00 00 00 00 6B 0C 63 [22:44:17]RasterBufferAndPrint [22:44:17]line [22:44:17]line [22:44:17]line [22:44:17]line [22:44:17]line [22:44:17]written 0, free lines is 3183 [22:44:17]MH_Cut [22:44:17]Write to MH i2c: D1 01 00 D9 13 01 BE [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: D1 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: D1 01 00 [22:44:17]MH_I2C_Read... [22:44:17]Read from MH i2c: D1 01 00 D9 13 00 BD [22:44:17]Write to MH i2c: 01 00 00 DA 13 ED [22:44:17]Write i2c OK [22:44:17]MH_I2C_Read... [22:44:18]OFD Sender: No OFD packet to send [22:44:19]*** Cut start [22:44:19]*** Partial cut [22:44:19]*** CUTSNS_PIN = 1 [22:44:19]*** CUTSNS_PIN = 0 [22:44:19]*** Brake cut motor [22:44:19]Read from MH i2c: 01 [22:44:19]MH_I2C_Read... [22:44:19]*** Stop cut motor [22:44:19]*** Cut end [22:44:19]Read from MH i2c: 01 07 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: 01 07 00 DA 13 00 00 00 00 00 FF 0F 02 [22:44:19]process_action close_receipt done [22:44:19]requested_data is exist [22:44:19]produce_requested_data [22:44:19]requested_item fm.sn is exist - process it [22:44:19]wFMCommunicate request_size=4 [22:44:19]MH_SAM_APDU [22:44:19]CAPDU: 80 11 00 00 [22:44:19]Write to MH i2c: E2 08 00 DB 13 80 11 00 00 00 00 00 00 68 [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 17 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 17 00 DB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BB [22:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:44:19]wFMCommunicate OK [22:44:19]requested_item fd.num is exist - process it [22:44:19]SAM_PROTO_GetFieldsCounters [22:44:19]wFMCommunicate request_size=4 [22:44:19]MH_SAM_APDU [22:44:19]CAPDU: 80 13 00 00 [22:44:19]Write to MH i2c: E2 08 00 DC 13 80 13 00 00 00 00 00 00 6B [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:19]Read from MH i2c: E2 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 62 00 [22:44:19]MH_I2C_Read... [22:44:19]Read from MH i2c: E2 62 00 DC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3B 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [22:44:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3B 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:19]wFMCommunicate OK [22:44:19]SAM_PROTO_GetFieldsCounters done [22:44:19]requested_item shift.num is exist - process it [22:44:19]requested_item shift.opened is exist - process it [22:44:19]req_shift_opened [22:44:19]FM_GetShiftState [22:44:19]SAM_PROTO_GetShiftState [22:44:19]wFMCommunicate request_size=4 [22:44:19]MH_SAM_APDU [22:44:19]CAPDU: 80 13 01 00 [22:44:19]Write to MH i2c: E2 08 00 DD 13 80 13 01 00 00 00 00 00 6D [22:44:19]Write i2c OK [22:44:19]MH_I2C_Read... [22:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:20]Read from MH i2c: E2 [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: E2 0E 00 [22:44:20]MH_I2C_Read... [22:44:20]Read from MH i2c: E2 0E 00 DD 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 30 [22:44:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:44:20]wFMCommunicate OK [22:44:20]SAM_PROTO_GetShiftState done [22:44:20]FM_GetShiftState done [22:44:20]req_shift_opened done [22:44:20]requested_item shift.open_date is exist - process it [22:44:20]req_shift_open_date [22:44:20]req_shift_open_date done [22:44:20]produce_requested_data done [22:44:20]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149051,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:44:20]process_action_free close_receipt [22:44:20]json_value_free [22:44:20]json_value_free done [22:44:20]process_json_proto returns [22:44:20]Send response to host [22:44:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149051,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:44:20]free response buf [22:44:20]execute_script done [22:44:20]execute_script returns [22:44:20]free content buf [22:44:20]Sock 9.Close socket [22:44:20]Sock 9.Thread stoped [22:44:23]OFD Sender: No OFD packet to send [22:44:23]accept exits with 10 [22:44:23]New connection [22:44:23]New thread 3067219300 created [22:44:23]Thread 3067075940 joined [22:44:23]Waiting for new connection... [22:44:23] Sock 10.Parse request [22:44:23]Sock 10.Check first char [22:44:23]Sock 10.First char is OK [22:44:23]request: POST /json_proto HTTP/1.0 [22:44:23]Method: POST [22:44:23]URL: /json_proto [22:44:23]Method is POST - this is cgi request [22:44:23]url: /json_proto [22:44:23]query_string will be loaded in cgi processing [22:44:23]execute_cgi json_proto POST (null) [22:44:23]execute_cgi path=json_proto method=POST [22:44:23]POST find Content-Length [22:44:23]Host: 172.17.38.4:8080 [22:44:23]Content-Length: 679 [22:44:23]Content-Type: application/json [22:44:23] [22:44:23]POST finish read [22:44:23]Found Content-Length = 679 [22:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [22:44:23]execute_script... [22:44: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)979982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [22:44:23]POST & json_proto [22:44:23]process_json_proto [22:44:23]json parsed OK: [22:44:23]protocol is kg_v1.0 [22:44:23]action value=close_receipt [22:44:23]process_action close_receipt [22:44:23]cmd_close_receipt [22:44:23]MH_GetDate [22:44:23]Write to MH i2c: F0 00 00 DE 13 E0 [22:44:23]Write i2c OK [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: F0 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: F0 09 00 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: F0 09 00 DE 13 00 C8 98 5F 66 CC 51 87 64 16 [22:44:23]GetLastDocTimeStamp 1717541056 [22:44:23]current date 1717541064 [22:44:23]FM_GetShiftState [22:44:23]SAM_PROTO_GetShiftState [22:44:23]wFMCommunicate request_size=4 [22:44:23]MH_SAM_APDU [22:44:23]CAPDU: 80 13 01 00 [22:44:23]Write to MH i2c: E2 08 00 DF 13 80 13 01 00 00 00 00 00 6F [22:44:23]Write i2c OK [22:44:23]MH_I2C_Read... [22:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:23]Read from MH i2c: E2 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: E2 0E 00 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: E2 0E 00 DF 13 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 32 [22:44:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:44:23]wFMCommunicate OK [22:44:23]SAM_PROTO_GetShiftState done [22:44:23]FM_GetShiftState done [22:44:23]opened in 1717460629 [22:44:23]opened+sec_in_day 1717547029 [22:44:23]quantity*price = 100018 [22:44:23]sum+1 = 100020 [22:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 391 04.06.2024 22:44 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149052 ФПД: 270515488793248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224424&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149052&fm=270515488793248&tin=02508201610067®Number=0000000000092720&sum=100000 [22:44:25]StoreToDocumentArchive [22:44:25]shift 368 fd 149052 [22:44:25]save to /storage/0368/doc_00149052 [22:44:25]save last doc name /storage/0368/doc_00149052 to /storage/kkm_last_doc_name [22:44:25]save OK [22:44:25]Clear old archive folders... [22:44:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:44:25]tlvbuf is 009D7040 [22:44:25]SAM_PROTO_ClearQueue [22:44:25]wFMCommunicate request_size=4 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 09 00 00 [22:44:25]Write to MH i2c: E2 08 00 EC 13 80 09 00 00 00 00 00 00 71 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [22:44:25]RAPDU: 90 00 [22:44:25]wFMCommunicate OK [22:44:25]SAM_PROTO_ClearQueue done [22:44:25]KKMCreateOFDPacket [22:44:25]OFDProtocolAddRootSTLVToBuf [22:44:25]FM_MakeSignedData [22:44:25]FM_MakeSignedData [22:44:25]SAM_PROTO_SignData [22:44:25]wFMCommunicate request_size=4 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 0D 01 02 [22:44:25]Write to MH i2c: E2 08 00 ED 13 80 0D 01 02 00 00 00 00 79 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 ED 13 00 90 00 74 [22:44:25]RAPDU: 90 00 [22:44:25]wFMCommunicate OK [22:44:25]wFMCommunicate request_size=255 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 87 01 00 00 F4 03 04 00 C8 98 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3C 46 02 00 35 04 06 00 F6 08 4B 9D [22:44:25]Write to MH i2c: E2 02 01 EE 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 87 01 00 00 F4 03 04 00 C8 98 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3C 46 02 00 35 04 06 00 F6 08 4B 9D 00 00 62 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 EE 13 00 90 00 75 [22:44:25]RAPDU: 90 00 [22:44:25]wFMCommunicate OK [22:44:25]wFMCommunicate request_size=7 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 0D 02 02 02 A2 A0 [22:44:25]Write to MH i2c: E2 0A 00 EF 13 80 0D 02 02 02 00 A2 A0 00 00 C2 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 EF 13 00 90 00 76 [22:44:25]RAPDU: 90 00 [22:44:25]wFMCommunicate OK [22:44:25]wFMCommunicate request_size=4 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 0D 03 02 [22:44:25]Write to MH i2c: E2 08 00 F0 13 80 0D 03 02 00 00 00 00 7E [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 0B 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 0B 00 F0 13 00 9F 36 32 E2 92 49 2A EF 90 00 5C [22:44:25]RAPDU: 9F 36 32 E2 92 49 2A EF 90 00 [22:44:25]wFMCommunicate OK [22:44:25]SAM_PROTO_SignData done [22:44:25]FM_MakeSignedData done [22:44:25]CreateOFDProtocolMessage [22:44:25]wFMCommunicate request_size=4 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 11 00 00 [22:44:25]Write to MH i2c: E2 08 00 F1 13 80 11 00 00 00 00 00 00 7E [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 17 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 17 00 F1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D1 [22:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:44:25]wFMCommunicate OK [22:44:25]CreateOFDProtocolMessage done [22:44:25]OFDSenderStorePacket 149052 [22:44:25]StoreOFDPacket docnum=149052 [22:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 09 C7 04 01 DD DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 87 01 00 00 F4 03 04 00 C8 98 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3C 46 02 00 35 04 06 00 F6 08 4B 9D A2 A0 9F 36 32 E2 92 49 2A EF [22:44:25]CheckFolder [22:44:25]dirname=/storage/ofd_packets [22:44:25]CheckFolder done [22:44:25]ProducePacketName [22:44:25]name=ofd_packets/00149052 [22:44:25]NVStorageSaveData ofd_packets/00149052 [22:44:25]File name is /storage/ofd_packets/00149052 [22:44:25]Write 298 bytes [22:44:25]NVStorageSaveData done [22:44:25]OFDSenderStorePacket done [22:44:25]KKMCreateOFDPacket done [22:44:25]NVStorageSaveData kkm_last_timestamp [22:44:25]File name is /storage/kkm_last_timestamp [22:44:25]Write 4 bytes [22:44:25]NVStorageSaveData done [22:44:25]ExternCall_PrintAddStr [22:44:25]wPrintStart [22:44:25]Write to MH i2c: 01 00 00 F2 13 05 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 F2 13 00 00 00 00 00 FF 0F 1A [22:44:25]RasterBufferAndPrint [22:44:25]line Счет N : (1)979982 [22:44:25]line ИНН: 02508201610067 [22:44:25]line Контрольно-Кассовый Чек [22:44:25]line ПРОДАЖА [22:44:25]line ТРК (МРК, ГНК) : 52 [22:44:25]line Товар: 2710194210 [22:44:25]line ДТ-К-5 [22:44:25]line 13.720 * 72.90 [22:44:25]line = 1000.19 [22:44:25]line НДС 12% НСП 1% [22:44:25]line > о реализуемом товаре [22:44:25]line ОКРУГЛЕНИЕ: -0.19 [22:44:25]line ИТОГО: 1000.00 [22:44:25]line Внесено: 1000.00 [22:44:25]line СДАЧА: 0.00 [22:44:25]line НСП 1% : 8.85 [22:44:25]line НДС 12% : 106.21 [22:44:25]line Наличными: 1000.00 [22:44:25]line Безнал.: 0.00 [22:44:25]line Место: АЗС № 68 "Партнер Нефть" [22:44:25]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:44:25]line СНО: Общий режим [22:44:25]line Чек 391 04.06.2024 22:44 [22:44:25]line Смена: 368 ФФД: 1.0 [22:44:25]line ЗНМ: 0300000035 [22:44:25]line РНМ: 0000000000092720 [22:44:25]line Версия ККМ: 001 [22:44:25]line ФМ: 0000000000875057 [22:44:25]line ФД: 149052 [22:44:25]line ФПД: 270515488793248 [22:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224424&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149052&fm=270515488793248&tin=02508201610067®Number=0000000000092720&sum=100000 [22:44:25]written 0, free lines is 4095 [22:44:25]OFD Sender: Processing packet 149052 [packets to send 100, broken 99] [22:44:25]ProducePacketName [22:44:25]name=ofd_packets/00149052 [22:44:25]OFD Sender: To server: pG, [22:44:25]CommunicateWithHost lk.salyk.kg:30040 [22:44:25]ConnectInit lk.salyk.kg [22:44:25]Connected sock=11 [22:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 09 C7 04 01 DD DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 87 01 00 00 F4 03 04 00 C8 98 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3C 46 02 00 35 04 06 00 F6 08 4B 9D A2 A0 9F 36 32 E2 92 49 2A EF [22:44:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9B 87 47 00 96 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 38 37 35 30 35 37 10 04 04 00 3C 46 02 00 F4 03 04 00 EB 3F 5F 66 B6 04 01 00 00 E8 B2 05 17 03 CA 3A BB [22:44:26]CommunicateWithHost err = 0 [22:44:26]CheckOFDResponse [22:44:26]1017 (14) - 77093643461234 [22:44:26]1041 (16) - 0000000000875057 [22:44:26]1040 (4) - 149052 [22:44:26]1012 (4) - 04.06.2024 16:25 [22:44:26]1206 (1) - 0 [22:44:26]OFD Sender: Remove packet 149052 [22:44:26]ProducePacketName [22:44:26]name=ofd_packets/00149052 [22:44:26]NVStorageDeleteData [22:44:26]Write to MH i2c: 01 00 00 1D 14 31 [22:44:26]Write i2c OK [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: 01 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: 01 07 00 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: 01 07 00 1D 14 00 00 00 00 00 71 0C B5 [22:44:26]RasterBufferAndPrint [22:44:26]line [22:44:26]line [22:44:26]line [22:44:26]line [22:44:26]line [22:44:26]written 0, free lines is 3189 [22:44:26]MH_Cut [22:44:26]Write to MH i2c: D1 01 00 24 14 01 0A [22:44:26]Write i2c OK [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: D1 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: D1 01 00 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: D1 01 00 24 14 00 09 [22:44:26]Write to MH i2c: 01 00 00 25 14 39 [22:44:26]Write i2c OK [22:44:26]MH_I2C_Read... [22:44:26]OFD Sender: No OFD packet to send [22:44:27]*** Cut start [22:44:27]*** Partial cut [22:44:27]*** CUTSNS_PIN = 1 [22:44:27]*** CUTSNS_PIN = 0 [22:44:27]*** Brake cut motor [22:44:28]Read from MH i2c: 01 [22:44:28]MH_I2C_Read... [22:44:28]*** Stop cut motor [22:44:28]*** Cut end [22:44:28]Read from MH i2c: 01 07 00 [22:44:28]MH_I2C_Read... [22:44:28]Read from MH i2c: 01 07 00 25 14 00 00 00 00 00 FF 0F 4E [22:44:28]process_action close_receipt done [22:44:28]requested_data is exist [22:44:28]produce_requested_data [22:44:28]requested_item fm.sn is exist - process it [22:44:28]wFMCommunicate request_size=4 [22:44:28]MH_SAM_APDU [22:44:28]CAPDU: 80 11 00 00 [22:44:28]Write to MH i2c: E2 08 00 26 14 80 11 00 00 00 00 00 00 B4 [22:44:28]Write i2c OK [22:44:28]MH_I2C_Read... [22:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:28]Read from MH i2c: E2 [22:44:28]MH_I2C_Read... [22:44:28]Read from MH i2c: E2 17 00 [22:44:28]MH_I2C_Read... [22:44:28]Read from MH i2c: E2 17 00 26 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 07 [22:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:44:28]wFMCommunicate OK [22:44:28]requested_item fd.num is exist - process it [22:44:28]SAM_PROTO_GetFieldsCounters [22:44:28]wFMCommunicate request_size=4 [22:44:28]MH_SAM_APDU [22:44:28]CAPDU: 80 13 00 00 [22:44:28]Write to MH i2c: E2 08 00 27 14 80 13 00 00 00 00 00 00 B7 [22:44:28]Write i2c OK [22:44:28]MH_I2C_Read... [22:44:28]Read from MH i2c: E2 [22:44:28]MH_I2C_Read... [22:44:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:28]Read from MH i2c: E2 62 00 [22:44:28]MH_I2C_Read... [22:44:28]Read from MH i2c: E2 62 00 27 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [22:44:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:28]wFMCommunicate OK [22:44:28]SAM_PROTO_GetFieldsCounters done [22:44:28]requested_item shift.num is exist - process it [22:44:28]requested_item shift.opened is exist - process it [22:44:28]req_shift_opened [22:44:28]FM_GetShiftState [22:44:28]SAM_PROTO_GetShiftState [22:44:28]wFMCommunicate request_size=4 [22:44:28]MH_SAM_APDU [22:44:28]CAPDU: 80 13 01 00 [22:44:28]Write to MH i2c: E2 08 00 28 14 80 13 01 00 00 00 00 00 B9 [22:44:28]Write i2c OK [22:44:28]MH_I2C_Read... [22:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:28]Read from MH i2c: E2 [22:44:28]MH_I2C_Read... [22:44:28]Read from MH i2c: E2 0E 00 [22:44:28]MH_I2C_Read... [22:44:28]Read from MH i2c: E2 0E 00 28 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7C [22:44:28]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:44:28]wFMCommunicate OK [22:44:28]SAM_PROTO_GetShiftState done [22:44:28]FM_GetShiftState done [22:44:28]req_shift_opened done [22:44:28]requested_item shift.open_date is exist - process it [22:44:28]req_shift_open_date [22:44:28]req_shift_open_date done [22:44:28]produce_requested_data done [22:44:28]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149052,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:44:28]process_action_free close_receipt [22:44:28]json_value_free [22:44:28]json_value_free done [22:44:28]process_json_proto returns [22:44:28]Send response to host [22:44:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149052,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:44:28]free response buf [22:44:28]execute_script done [22:44:28]execute_script returns [22:44:28]free content buf [22:44:28]Sock 10.Close socket [22:44:28]Sock 10.Thread stoped [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:29]accept exits with 7 [22:46:29]New connection [22:46:29]New thread 3067075940 created [22:46:29]Thread 3067219300 joined [22:46:29]Waiting for new connection... [22:46:29] Sock 7.Parse request [22:46:29]Sock 7.Check first char [22:46:29]Sock 7.First char is OK [22:46:29]request: POST /json_proto HTTP/1.0 [22:46:29]Method: POST [22:46:29]URL: /json_proto [22:46:29]Method is POST - this is cgi request [22:46:29]url: /json_proto [22:46:29]query_string will be loaded in cgi processing [22:46:29]execute_cgi json_proto POST (null) [22:46:29]execute_cgi path=json_proto method=POST [22:46:29]POST find Content-Length [22:46:29]Host: 172.17.38.4:8080 [22:46:29]Content-Length: 678 [22:46:29]Content-Type: application/json [22:46:29] [22:46:29]POST finish read [22:46:29]Found Content-Length = 678 [22:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:29]execute_script... [22:46:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:29]POST & json_proto [22:46:29]process_json_proto [22:46:29]json parsed OK: [22:46:29]protocol is kg_v1.0 [22:46:29]action value=close_receipt [22:46:29]process_action close_receipt [22:46:29]cmd_close_receipt [22:46:29]MH_GetDate [22:46:29]Write to MH i2c: F0 00 00 29 14 2C [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: F0 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: F0 09 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: F0 09 00 29 14 00 46 99 5F 66 CC 51 87 64 E1 [22:46:29]GetLastDocTimeStamp 1717541064 [22:46:29]current date 1717541190 [22:46:29]FM_GetShiftState [22:46:29]SAM_PROTO_GetShiftState [22:46:29]wFMCommunicate request_size=4 [22:46:29]MH_SAM_APDU [22:46:29]CAPDU: 80 13 01 00 [22:46:29]Write to MH i2c: E2 08 00 2A 14 80 13 01 00 00 00 00 00 BB [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:29]Read from MH i2c: E2 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 0E 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 0E 00 2A 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 7E [22:46:29]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:46:29]wFMCommunicate OK [22:46:29]SAM_PROTO_GetShiftState done [22:46:29]FM_GetShiftState done [22:46:29]opened in 1717460629 [22:46:29]opened+sec_in_day 1717547029 [22:46:29]quantity*price = 70044 [22:46:29]sum+1 = 70045 [22:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 392 04.06.2024 22:46 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149053 ФПД: 44724635398404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224630&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149053&fm=44724635398404&tin=02508201610067®Number=0000000000092720&sum=70000 [22:46:31]StoreToDocumentArchive [22:46:31]shift 368 fd 149053 [22:46:31]save to /storage/0368/doc_00149053 [22:46:31]save last doc name /storage/0368/doc_00149053 to /storage/kkm_last_doc_name [22:46:31]save OK [22:46:31]Clear old archive folders... [22:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:46:31]tlvbuf is 00950F20 [22:46:31]SAM_PROTO_ClearQueue [22:46:31]wFMCommunicate request_size=4 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 09 00 00 [22:46:31]Write to MH i2c: E2 08 00 37 14 80 09 00 00 00 00 00 00 BD [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:31]Read from MH i2c: E2 03 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 37 14 00 90 00 BF [22:46:31]RAPDU: 90 00 [22:46:31]wFMCommunicate OK [22:46:31]SAM_PROTO_ClearQueue done [22:46:31]KKMCreateOFDPacket [22:46:31]OFDProtocolAddRootSTLVToBuf [22:46:31]FM_MakeSignedData [22:46:31]FM_MakeSignedData [22:46:31]SAM_PROTO_SignData [22:46:31]wFMCommunicate request_size=4 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 0D 01 02 [22:46:31]Write to MH i2c: E2 08 00 38 14 80 0D 01 02 00 00 00 00 C5 [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 38 14 00 90 00 C0 [22:46:31]RAPDU: 90 00 [22:46:31]wFMCommunicate OK [22:46:31]wFMCommunicate request_size=255 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 88 01 00 00 F4 03 04 00 46 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3D 46 02 00 35 04 06 00 28 [22:46:31]Write to MH i2c: E2 02 01 39 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 46 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3D 46 02 00 35 04 06 00 28 00 00 AA [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 39 14 00 90 00 C1 [22:46:31]RAPDU: 90 00 [22:46:31]wFMCommunicate OK [22:46:31]wFMCommunicate request_size=10 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 0D 02 02 05 AD 44 01 71 04 [22:46:31]Write to MH i2c: E2 0D 00 3A 14 80 0D 02 02 05 00 AD 44 01 71 04 00 00 39 [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 3A 14 00 90 00 C2 [22:46:31]RAPDU: 90 00 [22:46:31]wFMCommunicate OK [22:46:31]wFMCommunicate request_size=4 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 0D 03 02 [22:46:31]Write to MH i2c: E2 08 00 3B 14 80 0D 03 02 00 00 00 00 CA [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 0B 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 0B 00 3B 14 00 43 68 91 CC E4 D1 C5 7D 90 00 CA [22:46:31]RAPDU: 43 68 91 CC E4 D1 C5 7D 90 00 [22:46:31]wFMCommunicate OK [22:46:31]SAM_PROTO_SignData done [22:46:31]FM_MakeSignedData done [22:46:31]CreateOFDProtocolMessage [22:46:31]wFMCommunicate request_size=4 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 11 00 00 [22:46:31]Write to MH i2c: E2 08 00 3C 14 80 11 00 00 00 00 00 00 CA [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 17 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 17 00 3C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1D [22:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:46:31]wFMCommunicate OK [22:46:31]CreateOFDProtocolMessage done [22:46:31]OFDSenderStorePacket 149053 [22:46:31]StoreOFDPacket docnum=149053 [22:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B8 5B 07 01 44 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 46 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3D 46 02 00 35 04 06 00 28 AD 44 01 71 04 43 68 91 CC E4 D1 C5 7D [22:46:31]CheckFolder [22:46:31]dirname=/storage/ofd_packets [22:46:31]CheckFolder done [22:46:31]ProducePacketName [22:46:31]name=ofd_packets/00149053 [22:46:31]NVStorageSaveData ofd_packets/00149053 [22:46:31]File name is /storage/ofd_packets/00149053 [22:46:31]Write 301 bytes [22:46:31]NVStorageSaveData done [22:46:31]OFDSenderStorePacket done [22:46:31]KKMCreateOFDPacket done [22:46:31]NVStorageSaveData kkm_last_timestamp [22:46:31]File name is /storage/kkm_last_timestamp [22:46:31]Write 4 bytes [22:46:31]NVStorageSaveData done [22:46:31]OFD Sender: Processing packet 149053 [packets to send 100, broken 99] [22:46:31]ProducePacketName [22:46:31]name=ofd_packets/00149053 [22:46:31]OFD Sender: To server: pG, [22:46:31]CommunicateWithHost lk.salyk.kg:30040 [22:46:31]ConnectInit lk.salyk.kg [22:46:31]ExternCall_PrintAddStr [22:46:31]wPrintStart [22:46:31]Write to MH i2c: 01 00 00 3D 14 51 [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: 01 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: 01 07 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: 01 07 00 3D 14 00 00 00 00 00 FF 0F 66 [22:46:31]RasterBufferAndPrint [22:46:31]line Счет N : (1)979983 [22:46:31]line ИНН: 02508201610067 [22:46:31]line Контрольно-Кассовый Чек [22:46:31]line ПРОДАЖА [22:46:31]line ТРК (МРК, ГНК) : 31 [22:46:31]line Товар: 2710124130 [22:46:31]line Аи-92-К-5 [22:46:31]line 10.470 * 66.90 [22:46:31]line = 700.44 [22:46:31]line НДС 12% НСП 1% [22:46:31]line > о реализуемом товаре [22:46:31]line ОКРУГЛЕНИЕ: -0.44 [22:46:31]line ИТОГО: 700.00 [22:46:31]line Внесено: 700.00 [22:46:31]line СДАЧА: 0.00 [22:46:31]line НСП 1% : 6.20 [22:46:31]line НДС 12% : 74.38 [22:46:31]line Наличными: 700.00 [22:46:31]line Безнал.: 0.00 [22:46:31]line Место: АЗС № 68 "Партнер Нефть" [22:46:31]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:46:31]line СНО: Общий режим [22:46:31]line Чек 392 04.06.2024 22:46 [22:46:31]line Смена: 368 ФФД: 1.0 [22:46:31]line ЗНМ: 0300000035 [22:46:31]line РНМ: 0000000000092720 [22:46:31]line Версия ККМ: 001 [22:46:31]line ФМ: 0000000000875057 [22:46:31]line ФД: 149053 [22:46:31]line ФПД: 44724635398404 [22:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224630&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149053&fm=44724635398404&tin=02508201610067®Number=0000000000092720&sum=70000 [22:46:31]Connected sock=11 [22:46:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 B8 5B 07 01 44 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 46 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3D 46 02 00 35 04 06 00 28 AD 44 01 71 04 43 68 91 CC E4 D1 C5 7D [22:46:31]written 0, free lines is 4095 [22:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 70 0C 47 00 5D FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3D 46 02 00 F4 03 04 00 69 40 5F 66 B6 04 01 00 00 AA 85 E7 94 F0 0A B0 3C [22:46:32]CommunicateWithHost err = 0 [22:46:32]CheckOFDResponse [22:46:32]1017 (14) - 77093643461234 [22:46:32]1041 (16) - 0000000000875057 [22:46:32]1040 (4) - 149053 [22:46:32]1012 (4) - 04.06.2024 16:27 [22:46:32]1206 (1) - 0 [22:46:32]OFD Sender: Remove packet 149053 [22:46:32]ProducePacketName [22:46:32]name=ofd_packets/00149053 [22:46:32]NVStorageDeleteData [22:46:32]Write to MH i2c: 01 00 00 68 14 7C [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: 01 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: 01 07 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: 01 07 00 68 14 00 00 00 00 00 65 0C F4 [22:46:32]RasterBufferAndPrint [22:46:32]line [22:46:32]line [22:46:32]line [22:46:32]line [22:46:32]line [22:46:32]written 0, free lines is 3176 [22:46:32]MH_Cut [22:46:32]Write to MH i2c: D1 01 00 6F 14 01 55 [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: D1 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: D1 01 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: D1 01 00 6F 14 00 54 [22:46:32]Write to MH i2c: 01 00 00 70 14 84 [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]OFD Sender: No OFD packet to send [22:46:33]*** Cut start [22:46:33]*** Partial cut [22:46:33]*** CUTSNS_PIN = 1 [22:46:33]*** CUTSNS_PIN = 0 [22:46:33]*** Brake cut motor [22:46:34]Read from MH i2c: 01 [22:46:34]MH_I2C_Read... [22:46:34]*** Stop cut motor [22:46:34]*** Cut end [22:46:34]Read from MH i2c: 01 07 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: 01 07 00 70 14 00 00 00 00 00 FF 0F 99 [22:46:34]process_action close_receipt done [22:46:34]requested_data is exist [22:46:34]produce_requested_data [22:46:34]requested_item fm.sn is exist - process it [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 11 00 00 [22:46:34]Write to MH i2c: E2 08 00 71 14 80 11 00 00 00 00 00 00 FF [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 17 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 17 00 71 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 52 [22:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:46:34]wFMCommunicate OK [22:46:34]requested_item fd.num is exist - process it [22:46:34]SAM_PROTO_GetFieldsCounters [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 13 00 00 [22:46:34]Write to MH i2c: E2 08 00 72 14 80 13 00 00 00 00 00 00 02 [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 62 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 62 00 72 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [22:46:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:34]wFMCommunicate OK [22:46:34]SAM_PROTO_GetFieldsCounters done [22:46:34]requested_item shift.num is exist - process it [22:46:34]requested_item shift.opened is exist - process it [22:46:34]req_shift_opened [22:46:34]FM_GetShiftState [22:46:34]SAM_PROTO_GetShiftState [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 13 01 00 [22:46:34]Write to MH i2c: E2 08 00 73 14 80 13 01 00 00 00 00 00 04 [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 0E 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 0E 00 73 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C7 [22:46:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:46:34]wFMCommunicate OK [22:46:34]SAM_PROTO_GetShiftState done [22:46:34]FM_GetShiftState done [22:46:34]req_shift_opened done [22:46:34]requested_item shift.open_date is exist - process it [22:46:34]req_shift_open_date [22:46:34]req_shift_open_date done [22:46:34]produce_requested_data done [22:46:34]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149053,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:46:34]process_action_free close_receipt [22:46:34]json_value_free [22:46:34]json_value_free done [22:46:34]process_json_proto returns [22:46:34]Send response to host [22:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149053,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:46:34]free response buf [22:46:34]execute_script done [22:46:34]execute_script returns [22:46:34]free content buf [22:46:34]Sock 7.Close socket [22:46:34]Sock 7.Thread stoped [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:03]accept exits with 9 [22:47:03]New connection [22:47:03]New thread 3067219300 created [22:47:03]Thread 3067075940 joined [22:47:03]Waiting for new connection... [22:47:03] Sock 9.Parse request [22:47:03]Sock 9.Check first char [22:47:03]Sock 9.First char is OK [22:47:03]request: POST /json_proto HTTP/1.0 [22:47:03]Method: POST [22:47:03]URL: /json_proto [22:47:03]Method is POST - this is cgi request [22:47:03]url: /json_proto [22:47:03]query_string will be loaded in cgi processing [22:47:03]execute_cgi json_proto POST (null) [22:47:03]execute_cgi path=json_proto method=POST [22:47:03]POST find Content-Length [22:47:03]Host: 172.17.38.4:8080 [22:47:03]Content-Length: 677 [22:47:03]Content-Type: application/json [22:47:03] [22:47:03]POST finish read [22:47:03]Found Content-Length = 677 [22:47:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:03]execute_script... [22:47: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)979984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:03]POST & json_proto [22:47:03]process_json_proto [22:47:03]json parsed OK: [22:47:03]protocol is kg_v1.0 [22:47:03]action value=close_receipt [22:47:03]process_action close_receipt [22:47:03]cmd_close_receipt [22:47:03]MH_GetDate [22:47:03]Write to MH i2c: F0 00 00 74 14 77 [22:47:03]Write i2c OK [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: F0 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: F0 09 00 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: F0 09 00 74 14 00 68 99 5F 66 CC 51 87 64 4E [22:47:03]GetLastDocTimeStamp 1717541190 [22:47:03]current date 1717541224 [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 75 14 80 13 01 00 00 00 00 00 06 [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 75 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C9 [22:47:03]RAPDU: 09 00 01 95 5E 5E 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]opened in 1717460629 [22:47:03]opened+sec_in_day 1717547029 [22:47:03]quantity*price = 30038 [22:47:03]sum+1 = 30039 [22:47:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 393 04.06.2024 22:47 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149054 ФПД: 228710699636596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224704&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149054&fm=228710699636596&tin=02508201610067®Number=0000000000092720&sum=30000 [22:47:05]StoreToDocumentArchive [22:47:05]shift 368 fd 149054 [22:47:05]save to /storage/0368/doc_00149054 [22:47:05]save last doc name /storage/0368/doc_00149054 to /storage/kkm_last_doc_name [22:47:05]save OK [22:47:05]Clear old archive folders... [22:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:05]tlvbuf is 00994F60 [22:47:05]SAM_PROTO_ClearQueue [22:47:05]wFMCommunicate request_size=4 [22:47:05]MH_SAM_APDU [22:47:05]CAPDU: 80 09 00 00 [22:47:05]Write to MH i2c: E2 08 00 82 14 80 09 00 00 00 00 00 00 08 [22:47:05]Write i2c OK [22:47:05]MH_I2C_Read... [22:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:05]Read from MH i2c: E2 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 03 00 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 03 00 82 14 00 90 00 0A [22:47:05]RAPDU: 90 00 [22:47:05]wFMCommunicate OK [22:47:05]SAM_PROTO_ClearQueue done [22:47:05]KKMCreateOFDPacket [22:47:05]OFDProtocolAddRootSTLVToBuf [22:47:05]FM_MakeSignedData [22:47:05]FM_MakeSignedData [22:47:05]SAM_PROTO_SignData [22:47:05]wFMCommunicate request_size=4 [22:47:05]MH_SAM_APDU [22:47:05]CAPDU: 80 0D 01 02 [22:47:05]Write to MH i2c: E2 08 00 83 14 80 0D 01 02 00 00 00 00 10 [22:47:05]Write i2c OK [22:47:05]MH_I2C_Read... [22:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:05]Read from MH i2c: E2 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 03 00 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 03 00 83 14 00 90 00 0B [22:47:05]RAPDU: 90 00 [22:47:05]wFMCommunicate OK [22:47:05]wFMCommunicate request_size=255 [22:47:05]MH_SAM_APDU [22:47:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 89 01 00 00 F4 03 04 00 68 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3E 46 02 00 35 04 06 00 D0 [22:47:05]Write to MH i2c: E2 02 01 84 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 68 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3E 46 02 00 35 04 06 00 D0 00 00 A5 [22:47:05]Write i2c OK [22:47:05]MH_I2C_Read... [22:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:05]Read from MH i2c: E2 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 03 00 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 03 00 84 14 00 90 00 0C [22:47:05]RAPDU: 90 00 [22:47:05]wFMCommunicate OK [22:47:05]wFMCommunicate request_size=10 [22:47:05]MH_SAM_APDU [22:47:05]CAPDU: 80 0D 02 02 05 02 DC 02 17 74 [22:47:05]Write to MH i2c: E2 0D 00 85 14 80 0D 02 02 05 00 02 DC 02 17 74 00 00 88 [22:47:05]Write i2c OK [22:47:05]MH_I2C_Read... [22:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:05]Read from MH i2c: E2 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 03 00 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 03 00 85 14 00 90 00 0D [22:47:05]RAPDU: 90 00 [22:47:05]wFMCommunicate OK [22:47:05]wFMCommunicate request_size=4 [22:47:05]MH_SAM_APDU [22:47:05]CAPDU: 80 0D 03 02 [22:47:05]Write to MH i2c: E2 08 00 86 14 80 0D 03 02 00 00 00 00 15 [22:47:05]Write i2c OK [22:47:05]MH_I2C_Read... [22:47:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:05]Read from MH i2c: E2 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 0B 00 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 0B 00 86 14 00 B0 BF DF FD 7E BF 97 F3 90 00 28 [22:47:05]RAPDU: B0 BF DF FD 7E BF 97 F3 90 00 [22:47:05]wFMCommunicate OK [22:47:05]SAM_PROTO_SignData done [22:47:05]FM_MakeSignedData done [22:47:05]CreateOFDProtocolMessage [22:47:05]wFMCommunicate request_size=4 [22:47:05]MH_SAM_APDU [22:47:05]CAPDU: 80 11 00 00 [22:47:05]Write to MH i2c: E2 08 00 87 14 80 11 00 00 00 00 00 00 15 [22:47:05]Write i2c OK [22:47:05]MH_I2C_Read... [22:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:05]Read from MH i2c: E2 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 17 00 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: E2 17 00 87 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 68 [22:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:47:05]wFMCommunicate OK [22:47:05]CreateOFDProtocolMessage done [22:47:05]OFDSenderStorePacket 149054 [22:47:05]StoreOFDPacket docnum=149054 [22:47:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 51 1B 07 01 7C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 68 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3E 46 02 00 35 04 06 00 D0 02 DC 02 17 74 B0 BF DF FD 7E BF 97 F3 [22:47:05]CheckFolder [22:47:05]dirname=/storage/ofd_packets [22:47:05]CheckFolder done [22:47:05]ProducePacketName [22:47:05]name=ofd_packets/00149054 [22:47:05]NVStorageSaveData ofd_packets/00149054 [22:47:05]File name is /storage/ofd_packets/00149054 [22:47:05]Write 301 bytes [22:47:05]NVStorageSaveData done [22:47:05]OFDSenderStorePacket done [22:47:05]KKMCreateOFDPacket done [22:47:05]NVStorageSaveData kkm_last_timestamp [22:47:05]File name is /storage/kkm_last_timestamp [22:47:05]Write 4 bytes [22:47:05]NVStorageSaveData done [22:47:05]ExternCall_PrintAddStr [22:47:05]wPrintStart [22:47:05]Write to MH i2c: 01 00 00 88 14 9C [22:47:05]Write i2c OK [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: 01 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: 01 07 00 [22:47:05]MH_I2C_Read... [22:47:05]Read from MH i2c: 01 07 00 88 14 00 00 00 00 00 FF 0F B1 [22:47:05]RasterBufferAndPrint [22:47:05]line Счет N : (1)979984 [22:47:05]line ИНН: 02508201610067 [22:47:05]line Контрольно-Кассовый Чек [22:47:05]line ПРОДАЖА [22:47:05]line ТРК (МРК, ГНК) : 22 [22:47:05]line Товар: 2710124130 [22:47:05]line Аи-92-К-5 [22:47:05]line 4.490 * 66.90 [22:47:05]line = 300.38 [22:47:05]line НДС 12% НСП 1% [22:47:05]line > о реализуемом товаре [22:47:05]line ОКРУГЛЕНИЕ: -0.38 [22:47:05]line ИТОГО: 300.00 [22:47:05]line Внесено: 300.00 [22:47:05]line СДАЧА: 0.00 [22:47:05]line НСП 1% : 2.66 [22:47:05]line НДС 12% : 31.90 [22:47:05]line Наличными: 300.00 [22:47:05]line Безнал.: 0.00 [22:47:05]line Место: АЗС № 68 "Партнер Нефть" [22:47:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:47:05]line СНО: Общий режим [22:47:05]line Чек 393 04.06.2024 22:47 [22:47:05]line Смена: 368 ФФД: 1.0 [22:47:05]line ЗНМ: 0300000035 [22:47:05]line РНМ: 0000000000092720 [22:47:05]line Версия ККМ: 001 [22:47:05]line ФМ: 0000000000875057 [22:47:05]line ФД: 149054 [22:47:05]line ФПД: 228710699636596 [22:47:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224704&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149054&fm=228710699636596&tin=02508201610067®Number=0000000000092720&sum=30000 [22:47:05]OFD Sender: Processing packet 149054 [packets to send 100, broken 99] [22:47:05]ProducePacketName [22:47:05]name=ofd_packets/00149054 [22:47:05]OFD Sender: To server: pG, [22:47:05]CommunicateWithHost lk.salyk.kg:30040 [22:47:05]ConnectInit lk.salyk.kg [22:47:05]written 0, free lines is 4095 [22:47:06]Connected sock=10 [22:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 51 1B 07 01 7C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 68 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3E 46 02 00 35 04 06 00 D0 02 DC 02 17 74 B0 BF DF FD 7E BF 97 F3 [22:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A5 1C 47 00 19 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3E 46 02 00 F4 03 04 00 8B 40 5F 66 B6 04 01 00 00 51 65 6D 5A B2 F8 BF 42 [22:47:06]CommunicateWithHost err = 0 [22:47:06]CheckOFDResponse [22:47:06]1017 (14) - 77093643461234 [22:47:06]1041 (16) - 0000000000875057 [22:47:06]1040 (4) - 149054 [22:47:06]1012 (4) - 04.06.2024 16:27 [22:47:06]1206 (1) - 0 [22:47:06]OFD Sender: Remove packet 149054 [22:47:06]ProducePacketName [22:47:06]name=ofd_packets/00149054 [22:47:06]NVStorageDeleteData [22:47:06]Write to MH i2c: 01 00 00 B3 14 C7 [22:47:06]Write i2c OK [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: 01 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: 01 07 00 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: 01 07 00 B3 14 00 00 00 00 00 70 0C 4A [22:47:06]RasterBufferAndPrint [22:47:06]line [22:47:06]line [22:47:06]line [22:47:06]line [22:47:06]line [22:47:06]written 0, free lines is 3187 [22:47:06]MH_Cut [22:47:06]Write to MH i2c: D1 01 00 BA 14 01 A0 [22:47:06]Write i2c OK [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: D1 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: D1 01 00 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: D1 01 00 BA 14 00 9F [22:47:06]Write to MH i2c: 01 00 00 BB 14 CF [22:47:06]Write i2c OK [22:47:06]MH_I2C_Read... [22:47:06]OFD Sender: No OFD packet to send [22:47:07]*** Cut start [22:47:07]*** Partial cut [22:47:07]*** CUTSNS_PIN = 1 [22:47:07]*** CUTSNS_PIN = 0 [22:47:07]*** Brake cut motor [22:47:08]Read from MH i2c: 01 [22:47:08]MH_I2C_Read... [22:47:08]*** Stop cut motor [22:47:08]*** Cut end [22:47:08]Read from MH i2c: 01 07 00 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: 01 07 00 BB 14 00 00 00 00 00 FF 0F E4 [22:47:08]process_action close_receipt done [22:47:08]requested_data is exist [22:47:08]produce_requested_data [22:47:08]requested_item fm.sn is exist - process it [22:47:08]wFMCommunicate request_size=4 [22:47:08]MH_SAM_APDU [22:47:08]CAPDU: 80 11 00 00 [22:47:08]Write to MH i2c: E2 08 00 BC 14 80 11 00 00 00 00 00 00 4A [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:08]Read from MH i2c: E2 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 17 00 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 17 00 BC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9D [22:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:47:08]wFMCommunicate OK [22:47:08]requested_item fd.num is exist - process it [22:47:08]SAM_PROTO_GetFieldsCounters [22:47:08]wFMCommunicate request_size=4 [22:47:08]MH_SAM_APDU [22:47:08]CAPDU: 80 13 00 00 [22:47:08]Write to MH i2c: E2 08 00 BD 14 80 13 00 00 00 00 00 00 4D [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:08]Read from MH i2c: E2 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 62 00 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 62 00 BD 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3E 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [22:47:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3E 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:08]wFMCommunicate OK [22:47:08]SAM_PROTO_GetFieldsCounters done [22:47:08]requested_item shift.num is exist - process it [22:47:08]requested_item shift.opened is exist - process it [22:47:08]req_shift_opened [22:47:08]FM_GetShiftState [22:47:08]SAM_PROTO_GetShiftState [22:47:08]wFMCommunicate request_size=4 [22:47:08]MH_SAM_APDU [22:47:08]CAPDU: 80 13 01 00 [22:47:08]Write to MH i2c: E2 08 00 BE 14 80 13 01 00 00 00 00 00 4F [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:08]Read from MH i2c: E2 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 0E 00 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 0E 00 BE 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 12 [22:47:08]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:47:08]wFMCommunicate OK [22:47:08]SAM_PROTO_GetShiftState done [22:47:08]FM_GetShiftState done [22:47:08]req_shift_opened done [22:47:08]requested_item shift.open_date is exist - process it [22:47:08]req_shift_open_date [22:47:08]req_shift_open_date done [22:47:08]produce_requested_data done [22:47:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149054,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:47:08]process_action_free close_receipt [22:47:08]json_value_free [22:47:08]json_value_free done [22:47:08]process_json_proto returns [22:47:08]Send response to host [22:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149054,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:47:08]free response buf [22:47:08]execute_script done [22:47:08]execute_script returns [22:47:08]free content buf [22:47:08]Sock 9.Close socket [22:47:08]Sock 9.Thread stoped [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:25]accept exits with 7 [22:47:25]New connection [22:47:25]New thread 3067075940 created [22:47:25]Thread 3067219300 joined [22:47:25]Waiting for new connection... [22:47:25] Sock 7.Parse request [22:47:25]Sock 7.Check first char [22:47:25]Sock 7.First char is OK [22:47:25]request: POST /json_proto HTTP/1.0 [22:47:25]Method: POST [22:47:25]URL: /json_proto [22:47:25]Method is POST - this is cgi request [22:47:25]url: /json_proto [22:47:25]query_string will be loaded in cgi processing [22:47:25]execute_cgi json_proto POST (null) [22:47:25]execute_cgi path=json_proto method=POST [22:47:25]POST find Content-Length [22:47:25]Host: 172.17.38.4:8080 [22:47:25]Content-Length: 677 [22:47:25]Content-Type: application/json [22:47:25] [22:47:25]POST finish read [22:47:25]Found Content-Length = 677 [22:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:25]execute_script... [22: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)979985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:25]POST & json_proto [22:47:25]process_json_proto [22:47:25]json parsed OK: [22:47:25]protocol is kg_v1.0 [22:47:25]action value=close_receipt [22:47:25]process_action close_receipt [22:47:25]cmd_close_receipt [22:47:25]MH_GetDate [22:47:25]Write to MH i2c: F0 00 00 BF 14 C2 [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: F0 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: F0 09 00 [22:47:25]MH_I2C_Read... [22:47:25]Read from MH i2c: F0 09 00 BF 14 00 7E 99 5F 66 CC 51 87 64 AF [22:47:25]GetLastDocTimeStamp 1717541224 [22:47:25]current date 1717541246 [22:47:25]FM_GetShiftState [22:47:25]SAM_PROTO_GetShiftState [22:47:25]wFMCommunicate request_size=4 [22:47:25]MH_SAM_APDU [22:47:25]CAPDU: 80 13 01 00 [22:47:25]Write to MH i2c: E2 08 00 C0 14 80 13 01 00 00 00 00 00 51 [22:47:25]Write i2c OK [22:47:25]MH_I2C_Read... [22:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:26]Read from MH i2c: E2 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 0E 00 [22:47:26]MH_I2C_Read... [22:47:26]Read from MH i2c: E2 0E 00 C0 14 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 14 [22:47:26]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:47:26]wFMCommunicate OK [22:47:26]SAM_PROTO_GetShiftState done [22:47:26]FM_GetShiftState done [22:47:26]opened in 1717460629 [22:47:26]opened+sec_in_day 1717547029 [22:47:26]quantity*price = 25020 [22:47:26]sum+1 = 25022 [22:47:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 394 04.06.2024 22:47 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149055 ФПД: 227734964994940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224726&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149055&fm=227734964994940&tin=02508201610067®Number=0000000000092720&sum=25000 [22:47:27]StoreToDocumentArchive [22:47:27]shift 368 fd 149055 [22:47:27]save to /storage/0368/doc_00149055 [22:47:27]save last doc name /storage/0368/doc_00149055 to /storage/kkm_last_doc_name [22:47:27]save OK [22:47:27]Clear old archive folders... [22:47:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:27]tlvbuf is B6EE9210 [22:47:27]SAM_PROTO_ClearQueue [22:47:27]wFMCommunicate request_size=4 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 09 00 00 [22:47:27]Write to MH i2c: E2 08 00 CD 14 80 09 00 00 00 00 00 00 53 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 CD 14 00 90 00 55 [22:47:27]RAPDU: 90 00 [22:47:27]wFMCommunicate OK [22:47:27]SAM_PROTO_ClearQueue done [22:47:27]KKMCreateOFDPacket [22:47:27]OFDProtocolAddRootSTLVToBuf [22:47:27]FM_MakeSignedData [22:47:27]FM_MakeSignedData [22:47:27]SAM_PROTO_SignData [22:47:27]wFMCommunicate request_size=4 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 0D 01 02 [22:47:27]Write to MH i2c: E2 08 00 CE 14 80 0D 01 02 00 00 00 00 5B [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 CE 14 00 90 00 56 [22:47:27]RAPDU: 90 00 [22:47:27]wFMCommunicate OK [22:47:27]wFMCommunicate request_size=255 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 7E 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3F 46 02 00 35 04 06 00 CF [22:47:27]Write to MH i2c: E2 02 01 CF 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 7E 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3F 46 02 00 35 04 06 00 CF 00 00 EC [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 CF 14 00 90 00 57 [22:47:27]RAPDU: 90 00 [22:47:27]wFMCommunicate OK [22:47:27]wFMCommunicate request_size=10 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 0D 02 02 05 1F AD B1 03 7C [22:47:27]Write to MH i2c: E2 0D 00 D0 14 80 0D 02 02 05 00 1F AD B1 03 7C 00 00 64 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 03 00 D0 14 00 90 00 58 [22:47:27]RAPDU: 90 00 [22:47:27]wFMCommunicate OK [22:47:27]wFMCommunicate request_size=4 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 0D 03 02 [22:47:27]Write to MH i2c: E2 08 00 D1 14 80 0D 03 02 00 00 00 00 60 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 0B 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 0B 00 D1 14 00 BF 9F 5F 9B A5 15 0B 44 90 00 C2 [22:47:27]RAPDU: BF 9F 5F 9B A5 15 0B 44 90 00 [22:47:27]wFMCommunicate OK [22:47:27]SAM_PROTO_SignData done [22:47:27]FM_MakeSignedData done [22:47:27]CreateOFDProtocolMessage [22:47:27]wFMCommunicate request_size=4 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 11 00 00 [22:47:27]Write to MH i2c: E2 08 00 D2 14 80 11 00 00 00 00 00 00 60 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 17 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 17 00 D2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B3 [22:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:47:27]wFMCommunicate OK [22:47:27]CreateOFDProtocolMessage done [22:47:27]OFDSenderStorePacket 149055 [22:47:27]StoreOFDPacket docnum=149055 [22:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 86 93 07 01 FE 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 7E 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3F 46 02 00 35 04 06 00 CF 1F AD B1 03 7C BF 9F 5F 9B A5 15 0B 44 [22:47:27]CheckFolder [22:47:27]dirname=/storage/ofd_packets [22:47:27]CheckFolder done [22:47:27]ProducePacketName [22:47:27]name=ofd_packets/00149055 [22:47:27]NVStorageSaveData ofd_packets/00149055 [22:47:27]File name is /storage/ofd_packets/00149055 [22:47:27]Write 301 bytes [22:47:27]NVStorageSaveData done [22:47:27]OFDSenderStorePacket done [22:47:27]KKMCreateOFDPacket done [22:47:27]NVStorageSaveData kkm_last_timestamp [22:47:27]File name is /storage/kkm_last_timestamp [22:47:27]Write 4 bytes [22:47:27]NVStorageSaveData done [22:47:27]ExternCall_PrintAddStr [22:47:27]wPrintStart [22:47:27]Write to MH i2c: 01 00 00 D3 14 E7 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: 01 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: 01 07 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: 01 07 00 D3 14 00 00 00 00 00 FF 0F FC [22:47:27]RasterBufferAndPrint [22:47:27]line Счет N : (1)979985 [22:47:27]line ИНН: 02508201610067 [22:47:27]line Контрольно-Кассовый Чек [22:47:27]line ПРОДАЖА [22:47:27]line ТРК (МРК, ГНК) : 12 [22:47:27]line Товар: 2710124130 [22:47:27]line Аи-92-К-5 [22:47:27]line 3.740 * 66.90 [22:47:27]line = 250.21 [22:47:27]line НДС 12% НСП 1% [22:47:27]line > о реализуемом товаре [22:47:27]line ОКРУГЛЕНИЕ: -0.21 [22:47:27]line ИТОГО: 250.00 [22:47:27]line Внесено: 250.00 [22:47:27]line СДАЧА: 0.00 [22:47:27]line НСП 1% : 2.21 [22:47:27]line НДС 12% : 26.57 [22:47:27]line Наличными: 250.00 [22:47:27]line Безнал.: 0.00 [22:47:27]line Место: АЗС № 68 "Партнер Нефть" [22:47:27]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:47:27]line СНО: Общий режим [22:47:27]line Чек 394 04.06.2024 22:47 [22:47:27]line Смена: 368 ФФД: 1.0 [22:47:27]line ЗНМ: 0300000035 [22:47:27]line РНМ: 0000000000092720 [22:47:27]line Версия ККМ: 001 [22:47:27]line ФМ: 0000000000875057 [22:47:27]line ФД: 149055 [22:47:27]line ФПД: 227734964994940 [22:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224726&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149055&fm=227734964994940&tin=02508201610067®Number=0000000000092720&sum=25000 [22:47:28]OFD Sender: Processing packet 149055 [packets to send 100, broken 99] [22:47:28]ProducePacketName [22:47:28]name=ofd_packets/00149055 [22:47:28]OFD Sender: To server: pG, [22:47:28]CommunicateWithHost lk.salyk.kg:30040 [22:47:28]ConnectInit lk.salyk.kg [22:47:28]written 0, free lines is 4095 [22:47:28]Connected sock=10 [22:47:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 86 93 07 01 FE 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 7E 99 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 3F 46 02 00 35 04 06 00 CF 1F AD B1 03 7C BF 9F 5F 9B A5 15 0B 44 [22:47:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 7F 4E 47 00 19 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 38 37 35 30 35 37 10 04 04 00 3F 46 02 00 F4 03 04 00 A1 40 5F 66 B6 04 01 00 00 CA A7 83 8A 55 02 99 41 [22:47:28]CommunicateWithHost err = 0 [22:47:28]CheckOFDResponse [22:47:28]1017 (14) - 77093643461234 [22:47:28]1041 (16) - 0000000000875057 [22:47:28]1040 (4) - 149055 [22:47:28]1012 (4) - 04.06.2024 16:28 [22:47:28]1206 (1) - 0 [22:47:28]OFD Sender: Remove packet 149055 [22:47:28]ProducePacketName [22:47:28]name=ofd_packets/00149055 [22:47:28]NVStorageDeleteData [22:47:28]Write to MH i2c: 01 00 00 FE 14 12 [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: 01 07 00 FE 14 00 00 00 00 00 73 0C 98 [22:47:28]RasterBufferAndPrint [22:47:28]line [22:47:28]line [22:47:28]line [22:47:28]line [22:47:28]line [22:47:28]written 0, free lines is 3189 [22:47:28]MH_Cut [22:47:28]Write to MH i2c: D1 01 00 05 15 01 EC [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D1 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D1 01 00 [22:47:28]MH_I2C_Read... [22:47:28]Read from MH i2c: D1 01 00 05 15 00 EB [22:47:28]Write to MH i2c: 01 00 00 06 15 1B [22:47:28]Write i2c OK [22:47:28]MH_I2C_Read... [22:47:28]OFD Sender: No OFD packet to send [22:47:29]*** Cut start [22:47:29]*** Partial cut [22:47:29]*** CUTSNS_PIN = 1 [22:47:29]*** CUTSNS_PIN = 0 [22:47:30]*** Brake cut motor [22:47:30]Read from MH i2c: 01 [22:47:30]MH_I2C_Read... [22:47:30]*** Stop cut motor [22:47:30]*** Cut end [22:47:30]Read from MH i2c: 01 07 00 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: 01 07 00 06 15 00 00 00 00 00 FF 0F 30 [22:47:30]process_action close_receipt done [22:47:30]requested_data is exist [22:47:30]produce_requested_data [22:47:30]requested_item fm.sn is exist - process it [22:47:30]wFMCommunicate request_size=4 [22:47:30]MH_SAM_APDU [22:47:30]CAPDU: 80 11 00 00 [22:47:30]Write to MH i2c: E2 08 00 07 15 80 11 00 00 00 00 00 00 96 [22:47:30]Write i2c OK [22:47:30]MH_I2C_Read... [22:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:30]Read from MH i2c: E2 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: E2 17 00 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: E2 17 00 07 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E9 [22:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:47:30]wFMCommunicate OK [22:47:30]requested_item fd.num is exist - process it [22:47:30]SAM_PROTO_GetFieldsCounters [22:47:30]wFMCommunicate request_size=4 [22:47:30]MH_SAM_APDU [22:47:30]CAPDU: 80 13 00 00 [22:47:30]Write to MH i2c: E2 08 00 08 15 80 13 00 00 00 00 00 00 99 [22:47:30]Write i2c OK [22:47:30]MH_I2C_Read... [22:47:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:30]Read from MH i2c: E2 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: E2 62 00 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: E2 62 00 08 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3F 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [22:47:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 3F 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:30]wFMCommunicate OK [22:47:30]SAM_PROTO_GetFieldsCounters done [22:47:30]requested_item shift.num is exist - process it [22:47:30]requested_item shift.opened is exist - process it [22:47:30]req_shift_opened [22:47:30]FM_GetShiftState [22:47:30]SAM_PROTO_GetShiftState [22:47:30]wFMCommunicate request_size=4 [22:47:30]MH_SAM_APDU [22:47:30]CAPDU: 80 13 01 00 [22:47:30]Write to MH i2c: E2 08 00 09 15 80 13 01 00 00 00 00 00 9B [22:47:30]Write i2c OK [22:47:30]MH_I2C_Read... [22:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:30]Read from MH i2c: E2 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: E2 0E 00 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: E2 0E 00 09 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 5E [22:47:30]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:47:30]wFMCommunicate OK [22:47:30]SAM_PROTO_GetShiftState done [22:47:30]FM_GetShiftState done [22:47:30]req_shift_opened done [22:47:30]requested_item shift.open_date is exist - process it [22:47:30]req_shift_open_date [22:47:30]req_shift_open_date done [22:47:30]produce_requested_data done [22:47:30]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149055,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:47:30]process_action_free close_receipt [22:47:30]json_value_free [22:47:30]json_value_free done [22:47:30]process_json_proto returns [22:47:30]Send response to host [22:47:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149055,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:47:30]free response buf [22:47:30]execute_script done [22:47:30]execute_script returns [22:47:30]free content buf [22:47:30]Sock 7.Close socket [22:47:30]Sock 7.Thread stoped [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:09]accept exits with 9 [22:50:09]New connection [22:50:09]New thread 3067219300 created [22:50:09]Thread 3067075940 joined [22:50:09]Waiting for new connection... [22:50:09] Sock 9.Parse request [22:50:09]Sock 9.Check first char [22:50:09]Sock 9.First char is OK [22:50:09]request: POST /json_proto HTTP/1.0 [22:50:09]Method: POST [22:50:09]URL: /json_proto [22:50:09]Method is POST - this is cgi request [22:50:09]url: /json_proto [22:50:09]query_string will be loaded in cgi processing [22:50:09]execute_cgi json_proto POST (null) [22:50:09]execute_cgi path=json_proto method=POST [22:50:09]POST find Content-Length [22:50:09]Host: 172.17.38.4:8080 [22:50:09]Content-Length: 772 [22:50:09]Content-Type: application/json [22:50:09] [22:50:09]POST finish read [22:50:09]Found Content-Length = 772 [22:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11916", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:09]execute_script... [22:50:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11916", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:09]POST & json_proto [22:50:09]process_json_proto [22:50:09]json parsed OK: [22:50:09]protocol is kg_v1.0 [22:50:09]action value=close_receipt [22:50:09]process_action close_receipt [22:50:09]cmd_close_receipt [22:50:09]MH_GetDate [22:50:09]Write to MH i2c: F0 00 00 0A 15 0E [22:50:09]Write i2c OK [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: F0 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: F0 09 00 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: F0 09 00 0A 15 00 22 9A 5F 66 CC 51 87 64 A0 [22:50:09]GetLastDocTimeStamp 1717541246 [22:50:09]current date 1717541410 [22:50:09]FM_GetShiftState [22:50:09]SAM_PROTO_GetShiftState [22:50:09]wFMCommunicate request_size=4 [22:50:09]MH_SAM_APDU [22:50:09]CAPDU: 80 13 01 00 [22:50:09]Write to MH i2c: E2 08 00 0B 15 80 13 01 00 00 00 00 00 9D [22:50:09]Write i2c OK [22:50:09]MH_I2C_Read... [22:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:09]Read from MH i2c: E2 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 0E 00 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 0E 00 0B 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 60 [22:50:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:50:09]wFMCommunicate OK [22:50:09]SAM_PROTO_GetShiftState done [22:50:09]FM_GetShiftState done [22:50:09]opened in 1717460629 [22:50:09]opened+sec_in_day 1717547029 [22:50:09]quantity*price = 15100 [22:50:09]sum+1 = 15101 [22:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 395 04.06.2024 22:50 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 149056 ФПД: 210869981896696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T225010&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149056&fm=210869981896696&tin=02508201610067®Number=0000000000092720&sum=15100 0 [22:50:10]StoreToDocumentArchive [22:50:10]shift 368 fd 149056 [22:50:10]save to /storage/0368/doc_00149056 [22:50:10]save last doc name /storage/0368/doc_00149056 to /storage/kkm_last_doc_name [22:50:10]save OK [22:50:10]Clear old archive folders... [22:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:50:10]tlvbuf is 009514E0 [22:50:10]SAM_PROTO_ClearQueue [22:50:10]wFMCommunicate request_size=4 [22:50:10]MH_SAM_APDU [22:50:10]CAPDU: 80 09 00 00 [22:50:10]Write to MH i2c: E2 08 00 18 15 80 09 00 00 00 00 00 00 9F [22:50:10]Write i2c OK [22:50:10]MH_I2C_Read... [22:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:10]Read from MH i2c: E2 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 03 00 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 03 00 18 15 00 90 00 A1 [22:50:10]RAPDU: 90 00 [22:50:10]wFMCommunicate OK [22:50:10]SAM_PROTO_ClearQueue done [22:50:10]KKMCreateOFDPacket [22:50:10]OFDProtocolAddRootSTLVToBuf [22:50:10]FM_MakeSignedData [22:50:10]FM_MakeSignedData [22:50:10]SAM_PROTO_SignData [22:50:10]wFMCommunicate request_size=4 [22:50:10]MH_SAM_APDU [22:50:10]CAPDU: 80 0D 01 02 [22:50:10]Write to MH i2c: E2 08 00 19 15 80 0D 01 02 00 00 00 00 A7 [22:50:10]Write i2c OK [22:50:10]MH_I2C_Read... [22:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:10]Read from MH i2c: E2 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 03 00 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 03 00 19 15 00 90 00 A2 [22:50:10]RAPDU: 90 00 [22:50:10]wFMCommunicate OK [22:50:10]wFMCommunicate request_size=255 [22:50:10]MH_SAM_APDU [22:50:10]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 22 9A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 [22:50:10]Write to MH i2c: E2 02 01 1A 15 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 22 9A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 00 00 E9 [22:50:10]Write i2c OK [22:50:10]MH_I2C_Read... [22:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:11]Read from MH i2c: E2 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: E2 03 00 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: E2 03 00 1A 15 00 90 00 A3 [22:50:11]RAPDU: 90 00 [22:50:11]wFMCommunicate OK [22:50:11]wFMCommunicate request_size=33 [22:50:11]MH_SAM_APDU [22:50:11]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 35 37 10 04 04 00 40 46 02 00 35 04 06 00 BF C8 FE 5D 5F F8 [22:50:11]Write to MH i2c: E2 24 00 1B 15 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 35 37 10 04 04 00 40 46 02 00 35 04 06 00 BF C8 FE 5D 5F F8 00 00 FA [22:50:11]Write i2c OK [22:50:11]MH_I2C_Read... [22:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:11]Read from MH i2c: E2 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: E2 03 00 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: E2 03 00 1B 15 00 90 00 A4 [22:50:11]RAPDU: 90 00 [22:50:11]wFMCommunicate OK [22:50:11]wFMCommunicate request_size=4 [22:50:11]MH_SAM_APDU [22:50:11]CAPDU: 80 0D 03 02 [22:50:11]Write to MH i2c: E2 08 00 1C 15 80 0D 03 02 00 00 00 00 AC [22:50:11]Write i2c OK [22:50:11]MH_I2C_Read... [22:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:11]Read from MH i2c: E2 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: E2 0B 00 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: E2 0B 00 1C 15 00 C0 2C B4 07 9F 47 82 B0 90 00 6C [22:50:11]RAPDU: C0 2C B4 07 9F 47 82 B0 90 00 [22:50:11]wFMCommunicate OK [22:50:11]SAM_PROTO_SignData done [22:50:11]FM_MakeSignedData done [22:50:11]CreateOFDProtocolMessage [22:50:11]wFMCommunicate request_size=4 [22:50:11]MH_SAM_APDU [22:50:11]CAPDU: 80 11 00 00 [22:50:11]Write to MH i2c: E2 08 00 1D 15 80 11 00 00 00 00 00 00 AC [22:50:11]Write i2c OK [22:50:11]MH_I2C_Read... [22:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:11]Read from MH i2c: E2 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: E2 17 00 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: E2 17 00 1D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 FF [22:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:50:11]wFMCommunicate OK [22:50:11]CreateOFDProtocolMessage done [22:50:11]OFDSenderStorePacket 149056 [22:50:11]StoreOFDPacket docnum=149056 [22:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 35 82 1E 01 8E C4 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 22 9A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 40 46 02 00 35 04 06 00 BF C8 FE 5D 5F F8 C0 2C B4 07 9F 47 82 B0 [22:50:11]CheckFolder [22:50:11]dirname=/storage/ofd_packets [22:50:11]CheckFolder done [22:50:11]ProducePacketName [22:50:11]name=ofd_packets/00149056 [22:50:11]NVStorageSaveData ofd_packets/00149056 [22:50:11]File name is /storage/ofd_packets/00149056 [22:50:11]Write 324 bytes [22:50:11]NVStorageSaveData done [22:50:11]OFDSenderStorePacket done [22:50:11]KKMCreateOFDPacket done [22:50:11]NVStorageSaveData kkm_last_timestamp [22:50:11]File name is /storage/kkm_last_timestamp [22:50:11]Write 4 bytes [22:50:11]NVStorageSaveData done [22:50:11]ExternCall_PrintAddStr [22:50:11]wPrintStart [22:50:11]Write to MH i2c: 01 00 00 1E 15 33 [22:50:11]Write i2c OK [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: 01 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: 01 07 00 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: 01 07 00 1E 15 00 00 00 00 00 FF 0F 48 [22:50:11]RasterBufferAndPrint [22:50:11]line Счет N : (3)11916 [22:50:11]line ИНН: 02508201610067 [22:50:11]line Контрольно-Кассовый Чек [22:50:11]line ПРОДАЖА [22:50:11]line Товар: 48741958 [22:50:11]line Сигареты Parliament Aqua Blue [22:50:11]line 1.000 * 151.00 [22:50:11]line = 151.00 [22:50:11]line НДС 12% НСП 1% [22:50:11]line > о реализуемом товаре [22:50:11]line ИТОГО: 151.00 [22:50:11]line НСП 1% : 1.34 [22:50:11]line НДС 12% : 16.03 [22:50:11]line Наличными: 0.00 [22:50:11]line Безнал.: 151.00 [22:50:11]line Место: АЗС № 68 "Партнер Нефть" [22:50:11]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:50:11]line СНО: Общий режим [22:50:11]line Чек 395 04.06.2024 22:50 [22:50:11]line Смена: 368 ФФД: 1.0 [22:50:11]line ЗНМ: 0300000035 [22:50:11]line РНМ: 0000000000092720 [22:50:11]line Версия ККМ: 001 [22:50:11]line Платежная система: KICB Банк [22:50:11]line ФМ: 0000000000875057 [22:50:11]line ФД: 149056 [22:50:11]line ФПД: 210869981896696 [22:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T225010&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149056&fm=210869981896696&tin=02508201610067®Number=0000000000092720&sum=15100 [22:50:11]line 0 [22:50:11]OFD Sender: Processing packet 149056 [packets to send 100, broken 99] [22:50:11]ProducePacketName [22:50:11]name=ofd_packets/00149056 [22:50:11]OFD Sender: To server: pG, [22:50:11]CommunicateWithHost lk.salyk.kg:30040 [22:50:11]ConnectInit lk.salyk.kg [22:50:11]written 0, free lines is 4095 [22:50:12]Write to MH i2c: 01 00 00 49 15 5E [22:50:12]Write i2c OK [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: 01 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: 01 07 00 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: 01 07 00 49 15 00 00 00 00 00 3E 0C AF [22:50:12]RasterBufferAndPrint [22:50:12]line [22:50:12]line [22:50:12]line [22:50:12]line [22:50:12]line [22:50:12]written 0, free lines is 3139 [22:50:12]MH_Cut [22:50:12]Write to MH i2c: D1 01 00 50 15 01 37 [22:50:12]Write i2c OK [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: D1 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: D1 01 00 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: D1 01 00 50 15 00 36 [22:50:12]Write to MH i2c: 01 00 00 51 15 66 [22:50:12]Write i2c OK [22:50:12]MH_I2C_Read... [22:50:12]Connected sock=10 [22:50:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 35 82 1E 01 8E C4 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 22 9A 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 40 46 02 00 35 04 06 00 BF C8 FE 5D 5F F8 C0 2C B4 07 9F 47 82 B0 [22:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A9 AB 47 00 7F 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 40 46 02 00 F4 03 04 00 45 41 5F 66 B6 04 01 00 00 98 62 47 8B 26 62 8C 8E [22:50:12]CommunicateWithHost err = 0 [22:50:12]CheckOFDResponse [22:50:12]1017 (14) - 77093643461234 [22:50:12]1041 (16) - 0000000000875057 [22:50:12]1040 (4) - 149056 [22:50:12]1012 (4) - 04.06.2024 16:31 [22:50:12]1206 (1) - 0 [22:50:12]OFD Sender: Remove packet 149056 [22:50:12]ProducePacketName [22:50:12]name=ofd_packets/00149056 [22:50:12]NVStorageDeleteData [22:50:12]OFD Sender: No OFD packet to send [22:50:13]*** Cut start [22:50:13]*** Partial cut [22:50:13]*** CUTSNS_PIN = 1 [22:50:13]*** CUTSNS_PIN = 0 [22:50:13]*** Brake cut motor [22:50:14]Read from MH i2c: 01 [22:50:14]MH_I2C_Read... [22:50:14]*** Stop cut motor [22:50:14]*** Cut end [22:50:14]Read from MH i2c: 01 07 00 [22:50:14]MH_I2C_Read... [22:50:14]Read from MH i2c: 01 07 00 51 15 00 00 00 00 00 FF 0F 7B [22:50:14]process_action close_receipt done [22:50:14]requested_data is exist [22:50:14]produce_requested_data [22:50:14]requested_item fm.sn is exist - process it [22:50:14]wFMCommunicate request_size=4 [22:50:14]MH_SAM_APDU [22:50:14]CAPDU: 80 11 00 00 [22:50:14]Write to MH i2c: E2 08 00 52 15 80 11 00 00 00 00 00 00 E1 [22:50:14]Write i2c OK [22:50:14]MH_I2C_Read... [22:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:14]Read from MH i2c: E2 [22:50:14]MH_I2C_Read... [22:50:14]Read from MH i2c: E2 17 00 [22:50:14]MH_I2C_Read... [22:50:14]Read from MH i2c: E2 17 00 52 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 34 [22:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:50:14]wFMCommunicate OK [22:50:14]requested_item fd.num is exist - process it [22:50:14]SAM_PROTO_GetFieldsCounters [22:50:14]wFMCommunicate request_size=4 [22:50:14]MH_SAM_APDU [22:50:14]CAPDU: 80 13 00 00 [22:50:14]Write to MH i2c: E2 08 00 53 15 80 13 00 00 00 00 00 00 E4 [22:50:14]Write i2c OK [22:50:14]MH_I2C_Read... [22:50:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:14]Read from MH i2c: E2 [22:50:14]MH_I2C_Read... [22:50:14]Read from MH i2c: E2 62 00 [22:50:14]MH_I2C_Read... [22:50:14]Read from MH i2c: E2 62 00 53 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 40 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [22:50:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 40 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:14]wFMCommunicate OK [22:50:14]SAM_PROTO_GetFieldsCounters done [22:50:14]requested_item shift.num is exist - process it [22:50:14]requested_item shift.opened is exist - process it [22:50:14]req_shift_opened [22:50:14]FM_GetShiftState [22:50:14]SAM_PROTO_GetShiftState [22:50:14]wFMCommunicate request_size=4 [22:50:14]MH_SAM_APDU [22:50:14]CAPDU: 80 13 01 00 [22:50:14]Write to MH i2c: E2 08 00 54 15 80 13 01 00 00 00 00 00 E6 [22:50:14]Write i2c OK [22:50:14]MH_I2C_Read... [22:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:14]Read from MH i2c: E2 [22:50:14]MH_I2C_Read... [22:50:14]Read from MH i2c: E2 0E 00 [22:50:14]MH_I2C_Read... [22:50:14]Read from MH i2c: E2 0E 00 54 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 A9 [22:50:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:50:14]wFMCommunicate OK [22:50:14]SAM_PROTO_GetShiftState done [22:50:14]FM_GetShiftState done [22:50:14]req_shift_opened done [22:50:14]requested_item shift.open_date is exist - process it [22:50:14]req_shift_open_date [22:50:14]req_shift_open_date done [22:50:14]produce_requested_data done [22:50:14]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149056,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:50:14]process_action_free close_receipt [22:50:14]json_value_free [22:50:14]json_value_free done [22:50:14]process_json_proto returns [22:50:14]Send response to host [22:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149056,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:50:14]free response buf [22:50:14]execute_script done [22:50:14]execute_script returns [22:50:14]free content buf [22:50:14]Sock 9.Close socket [22:50:14]Sock 9.Thread stoped [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:04]accept exits with 7 [22:54:04]New connection [22:54:04]New thread 3067075940 created [22:54:04]Thread 3067219300 joined [22:54:04]Waiting for new connection... [22:54:04] Sock 7.Parse request [22:54:04]Sock 7.Check first char [22:54:04]Sock 7.First char is OK [22:54:04]request: POST /json_proto HTTP/1.0 [22:54:04]Method: POST [22:54:04]URL: /json_proto [22:54:04]Method is POST - this is cgi request [22:54:04]url: /json_proto [22:54:04]query_string will be loaded in cgi processing [22:54:04]execute_cgi json_proto POST (null) [22:54:04]execute_cgi path=json_proto method=POST [22:54:04]POST find Content-Length [22:54:04]Host: 172.17.38.4:8080 [22:54:04]Content-Length: 677 [22:54:04]Content-Type: application/json [22:54:04] [22:54:04]POST finish read [22:54:04]Found Content-Length = 677 [22:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:04]execute_script... [22:54:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:04]POST & json_proto [22:54:04]process_json_proto [22:54:04]json parsed OK: [22:54:04]protocol is kg_v1.0 [22:54:04]action value=close_receipt [22:54:04]process_action close_receipt [22:54:04]cmd_close_receipt [22:54:04]MH_GetDate [22:54:04]Write to MH i2c: F0 00 00 55 15 59 [22:54:04]Write i2c OK [22:54:04]MH_I2C_Read... [22:54:04]Read from MH i2c: F0 [22:54:04]MH_I2C_Read... [22:54:04]Read from MH i2c: F0 09 00 [22:54:04]MH_I2C_Read... [22:54:04]Read from MH i2c: F0 09 00 55 15 00 0D 9B 5F 66 CC 51 87 64 D7 [22:54:04]GetLastDocTimeStamp 1717541410 [22:54:04]current date 1717541645 [22:54:04]FM_GetShiftState [22:54:04]SAM_PROTO_GetShiftState [22:54:04]wFMCommunicate request_size=4 [22:54:04]MH_SAM_APDU [22:54:04]CAPDU: 80 13 01 00 [22:54:04]Write to MH i2c: E2 08 00 56 15 80 13 01 00 00 00 00 00 E8 [22:54:04]Write i2c OK [22:54:04]MH_I2C_Read... [22:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:04]Read from MH i2c: E2 [22:54:04]MH_I2C_Read... [22:54:04]Read from MH i2c: E2 0E 00 [22:54:04]MH_I2C_Read... [22:54:04]Read from MH i2c: E2 0E 00 56 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AB [22:54:04]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:54:04]wFMCommunicate OK [22:54:04]SAM_PROTO_GetShiftState done [22:54:04]FM_GetShiftState done [22:54:04]opened in 1717460629 [22:54:04]opened+sec_in_day 1717547029 [22:54:04]quantity*price = 50041 [22:54:04]sum+1 = 50042 [22:54:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 396 04.06.2024 22:54 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149057 ФПД: 85995077300389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T225405&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149057&fm=85995077300389&tin=02508201610067®Number=0000000000092720&sum=50000 [22:54:05]StoreToDocumentArchive [22:54:05]shift 368 fd 149057 [22:54:05]save to /storage/0368/doc_00149057 [22:54:05]save last doc name /storage/0368/doc_00149057 to /storage/kkm_last_doc_name [22:54:05]save OK [22:54:05]Clear old archive folders... [22:54:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:05]tlvbuf is B6EE9090 [22:54:05]SAM_PROTO_ClearQueue [22:54:05]wFMCommunicate request_size=4 [22:54:05]MH_SAM_APDU [22:54:05]CAPDU: 80 09 00 00 [22:54:05]Write to MH i2c: E2 08 00 63 15 80 09 00 00 00 00 00 00 EA [22:54:05]Write i2c OK [22:54:05]MH_I2C_Read... [22:54:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:05]Read from MH i2c: E2 [22:54:05]MH_I2C_Read... [22:54:05]Read from MH i2c: E2 03 00 [22:54:05]MH_I2C_Read... [22:54:05]Read from MH i2c: E2 03 00 63 15 00 90 00 EC [22:54:05]RAPDU: 90 00 [22:54:05]wFMCommunicate OK [22:54:05]SAM_PROTO_ClearQueue done [22:54:05]KKMCreateOFDPacket [22:54:05]OFDProtocolAddRootSTLVToBuf [22:54:05]FM_MakeSignedData [22:54:05]FM_MakeSignedData [22:54:05]SAM_PROTO_SignData [22:54:05]wFMCommunicate request_size=4 [22:54:05]MH_SAM_APDU [22:54:05]CAPDU: 80 0D 01 02 [22:54:05]Write to MH i2c: E2 08 00 64 15 80 0D 01 02 00 00 00 00 F2 [22:54:05]Write i2c OK [22:54:05]MH_I2C_Read... [22:54:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:05]Read from MH i2c: E2 [22:54:05]MH_I2C_Read... [22:54:05]Read from MH i2c: E2 03 00 [22:54:05]MH_I2C_Read... [22:54:05]Read from MH i2c: E2 03 00 64 15 00 90 00 ED [22:54:05]RAPDU: 90 00 [22:54:05]wFMCommunicate OK [22:54:05]wFMCommunicate request_size=255 [22:54:05]MH_SAM_APDU [22:54:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 0D 9B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 41 46 02 00 35 04 06 00 4E [22:54:05]Write to MH i2c: E2 02 01 65 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 0D 9B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 41 46 02 00 35 04 06 00 4E 00 00 BE [22:54:05]Write i2c OK [22:54:05]MH_I2C_Read... [22:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:06]Read from MH i2c: E2 [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: E2 03 00 [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: E2 03 00 65 15 00 90 00 EE [22:54:06]RAPDU: 90 00 [22:54:06]wFMCommunicate OK [22:54:06]wFMCommunicate request_size=10 [22:54:06]MH_SAM_APDU [22:54:06]CAPDU: 80 0D 02 02 05 36 4A 08 F0 A5 [22:54:06]Write to MH i2c: E2 0D 00 66 15 80 0D 02 02 05 00 36 4A 08 F0 A5 00 00 1C [22:54:06]Write i2c OK [22:54:06]MH_I2C_Read... [22:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:06]Read from MH i2c: E2 [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: E2 03 00 [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [22:54:06]RAPDU: 90 00 [22:54:06]wFMCommunicate OK [22:54:06]wFMCommunicate request_size=4 [22:54:06]MH_SAM_APDU [22:54:06]CAPDU: 80 0D 03 02 [22:54:06]Write to MH i2c: E2 08 00 67 15 80 0D 03 02 00 00 00 00 F7 [22:54:06]Write i2c OK [22:54:06]MH_I2C_Read... [22:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:06]Read from MH i2c: E2 [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: E2 0B 00 [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: E2 0B 00 67 15 00 AF 06 22 3D 62 51 69 A5 90 00 CD [22:54:06]RAPDU: AF 06 22 3D 62 51 69 A5 90 00 [22:54:06]wFMCommunicate OK [22:54:06]SAM_PROTO_SignData done [22:54:06]FM_MakeSignedData done [22:54:06]CreateOFDProtocolMessage [22:54:06]wFMCommunicate request_size=4 [22:54:06]MH_SAM_APDU [22:54:06]CAPDU: 80 11 00 00 [22:54:06]Write to MH i2c: E2 08 00 68 15 80 11 00 00 00 00 00 00 F7 [22:54:06]Write i2c OK [22:54:06]MH_I2C_Read... [22:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:06]Read from MH i2c: E2 [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: E2 17 00 [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: E2 17 00 68 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4A [22:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:54:06]wFMCommunicate OK [22:54:06]CreateOFDProtocolMessage done [22:54:06]OFDSenderStorePacket 149057 [22:54:06]StoreOFDPacket docnum=149057 [22:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D3 30 07 01 76 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 0D 9B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 41 46 02 00 35 04 06 00 4E 36 4A 08 F0 A5 AF 06 22 3D 62 51 69 A5 [22:54:06]CheckFolder [22:54:06]dirname=/storage/ofd_packets [22:54:06]CheckFolder done [22:54:06]ProducePacketName [22:54:06]name=ofd_packets/00149057 [22:54:06]NVStorageSaveData ofd_packets/00149057 [22:54:06]File name is /storage/ofd_packets/00149057 [22:54:06]Write 301 bytes [22:54:06]NVStorageSaveData done [22:54:06]OFDSenderStorePacket done [22:54:06]KKMCreateOFDPacket done [22:54:06]NVStorageSaveData kkm_last_timestamp [22:54:06]File name is /storage/kkm_last_timestamp [22:54:06]Write 4 bytes [22:54:06]NVStorageSaveData done [22:54:06]ExternCall_PrintAddStr [22:54:06]wPrintStart [22:54:06]Write to MH i2c: 01 00 00 69 15 7E [22:54:06]Write i2c OK [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: 01 [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: 01 07 00 [22:54:06]MH_I2C_Read... [22:54:06]Read from MH i2c: 01 07 00 69 15 00 00 00 00 00 FF 0F 93 [22:54:06]RasterBufferAndPrint [22:54:06]line Счет N : (1)979986 [22:54:06]line ИНН: 02508201610067 [22:54:06]line Контрольно-Кассовый Чек [22:54:06]line ПРОДАЖА [22:54:06]line ТРК (МРК, ГНК) : 22 [22:54:06]line Товар: 2710124130 [22:54:06]line Аи-92-К-5 [22:54:06]line 7.480 * 66.90 [22:54:06]line = 500.41 [22:54:06]line НДС 12% НСП 1% [22:54:06]line > о реализуемом товаре [22:54:06]line ОКРУГЛЕНИЕ: -0.41 [22:54:06]line ИТОГО: 500.00 [22:54:06]line Внесено: 500.00 [22:54:06]line СДАЧА: 0.00 [22:54:06]line НСП 1% : 4.43 [22:54:06]line НДС 12% : 53.14 [22:54:06]line Наличными: 500.00 [22:54:06]line Безнал.: 0.00 [22:54:06]line Место: АЗС № 68 "Партнер Нефть" [22:54:06]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:54:06]line СНО: Общий режим [22:54:06]line Чек 396 04.06.2024 22:54 [22:54:06]line Смена: 368 ФФД: 1.0 [22:54:06]line ЗНМ: 0300000035 [22:54:06]line РНМ: 0000000000092720 [22:54:06]line Версия ККМ: 001 [22:54:06]line ФМ: 0000000000875057 [22:54:06]line ФД: 149057 [22:54:06]line ФПД: 85995077300389 [22:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T225405&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149057&fm=85995077300389&tin=02508201610067®Number=0000000000092720&sum=50000 [22:54:06]OFD Sender: Processing packet 149057 [packets to send 100, broken 99] [22:54:06]ProducePacketName [22:54:06]name=ofd_packets/00149057 [22:54:06]OFD Sender: To server: pG, [22:54:06]CommunicateWithHost lk.salyk.kg:30040 [22:54:06]ConnectInit lk.salyk.kg [22:54:06]written 0, free lines is 4095 [22:54:06]Connected sock=10 [22:54:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D3 30 07 01 76 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 0D 9B 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 41 46 02 00 35 04 06 00 4E 36 4A 08 F0 A5 AF 06 22 3D 62 51 69 A5 [22:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 45 4B 47 00 82 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 38 37 35 30 35 37 10 04 04 00 41 46 02 00 F4 03 04 00 30 42 5F 66 B6 04 01 00 00 C8 86 CB C5 02 F4 4B 80 [22:54:07]CommunicateWithHost err = 0 [22:54:07]CheckOFDResponse [22:54:07]1017 (14) - 77093643461234 [22:54:07]1041 (16) - 0000000000875057 [22:54:07]1040 (4) - 149057 [22:54:07]1012 (4) - 04.06.2024 16:34 [22:54:07]1206 (1) - 0 [22:54:07]OFD Sender: Remove packet 149057 [22:54:07]ProducePacketName [22:54:07]name=ofd_packets/00149057 [22:54:07]NVStorageDeleteData [22:54:07]Write to MH i2c: 01 00 00 94 15 A9 [22:54:07]Write i2c OK [22:54:07]MH_I2C_Read... [22:54:07]Read from MH i2c: 01 [22:54:07]MH_I2C_Read... [22:54:07]Read from MH i2c: 01 07 00 [22:54:07]MH_I2C_Read... [22:54:07]Read from MH i2c: 01 07 00 94 15 00 00 00 00 00 6A 0C 26 [22:54:07]RasterBufferAndPrint [22:54:07]line [22:54:07]line [22:54:07]line [22:54:07]line [22:54:07]line [22:54:07]written 0, free lines is 3181 [22:54:07]MH_Cut [22:54:07]Write to MH i2c: D1 01 00 9B 15 01 82 [22:54:07]Write i2c OK [22:54:07]MH_I2C_Read... [22:54:07]Read from MH i2c: D1 [22:54:07]MH_I2C_Read... [22:54:07]Read from MH i2c: D1 01 00 [22:54:07]MH_I2C_Read... [22:54:07]Read from MH i2c: D1 01 00 9B 15 00 81 [22:54:07]Write to MH i2c: 01 00 00 9C 15 B1 [22:54:07]Write i2c OK [22:54:07]MH_I2C_Read... [22:54:07]OFD Sender: No OFD packet to send [22:54:08]*** Cut start [22:54:08]*** Partial cut [22:54:08]*** CUTSNS_PIN = 1 [22:54:08]*** CUTSNS_PIN = 0 [22:54:08]*** Brake cut motor [22:54:09]Read from MH i2c: 01 [22:54:09]MH_I2C_Read... [22:54:09]*** Stop cut motor [22:54:09]*** Cut end [22:54:09]Read from MH i2c: 01 07 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: 01 07 00 9C 15 00 00 00 00 00 FF 0F C6 [22:54:09]process_action close_receipt done [22:54:09]requested_data is exist [22:54:09]produce_requested_data [22:54:09]requested_item fm.sn is exist - process it [22:54:09]wFMCommunicate request_size=4 [22:54:09]MH_SAM_APDU [22:54:09]CAPDU: 80 11 00 00 [22:54:09]Write to MH i2c: E2 08 00 9D 15 80 11 00 00 00 00 00 00 2C [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:09]Read from MH i2c: E2 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 17 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 17 00 9D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7F [22:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:54:09]wFMCommunicate OK [22:54:09]requested_item fd.num is exist - process it [22:54:09]SAM_PROTO_GetFieldsCounters [22:54:09]wFMCommunicate request_size=4 [22:54:09]MH_SAM_APDU [22:54:09]CAPDU: 80 13 00 00 [22:54:09]Write to MH i2c: E2 08 00 9E 15 80 13 00 00 00 00 00 00 2F [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:09]Read from MH i2c: E2 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 62 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 62 00 9E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 41 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [22:54:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 41 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:09]wFMCommunicate OK [22:54:09]SAM_PROTO_GetFieldsCounters done [22:54:09]requested_item shift.num is exist - process it [22:54:09]requested_item shift.opened is exist - process it [22:54:09]req_shift_opened [22:54:09]FM_GetShiftState [22:54:09]SAM_PROTO_GetShiftState [22:54:09]wFMCommunicate request_size=4 [22:54:09]MH_SAM_APDU [22:54:09]CAPDU: 80 13 01 00 [22:54:09]Write to MH i2c: E2 08 00 9F 15 80 13 01 00 00 00 00 00 31 [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:09]Read from MH i2c: E2 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 0E 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 0E 00 9F 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F4 [22:54:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [22:54:09]wFMCommunicate OK [22:54:09]SAM_PROTO_GetShiftState done [22:54:09]FM_GetShiftState done [22:54:09]req_shift_opened done [22:54:09]requested_item shift.open_date is exist - process it [22:54:09]req_shift_open_date [22:54:09]req_shift_open_date done [22:54:09]produce_requested_data done [22:54:09]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149057,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [22:54:09]process_action_free close_receipt [22:54:09]json_value_free [22:54:09]json_value_free done [22:54:09]process_json_proto returns [22:54:09]Send response to host [22:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149057,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [22:54:09]free response buf [22:54:09]execute_script done [22:54:09]execute_script returns [22:54:09]free content buf [22:54:09]Sock 7.Close socket [22:54:09]Sock 7.Thread stoped [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:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]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:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:38]accept exits with 9 [23:25:38]New connection [23:25:38]New thread 3067219300 created [23:25:38]Thread 3067075940 joined [23:25:38]Waiting for new connection... [23:25:38] Sock 9.Parse request [23:25:38]Sock 9.Check first char [23:25:38]Sock 9.First char is OK [23:25:38]request: POST /json_proto HTTP/1.0 [23:25:38]Method: POST [23:25:38]URL: /json_proto [23:25:38]Method is POST - this is cgi request [23:25:38]url: /json_proto [23:25:38]query_string will be loaded in cgi processing [23:25:38]execute_cgi json_proto POST (null) [23:25:38]execute_cgi path=json_proto method=POST [23:25:38]POST find Content-Length [23:25:38]Host: 172.17.38.4:8080 [23:25:38]Content-Length: 790 [23:25:38]Content-Type: application/json [23:25:38] [23:25:38]POST finish read [23:25:38]Found Content-Length = 790 [23:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:38]execute_script... [23: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)979987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:38]POST & json_proto [23:25:38]process_json_proto [23:25:38]json parsed OK: [23:25:38]protocol is kg_v1.0 [23:25:38]action value=close_receipt [23:25:38]process_action close_receipt [23:25:38]cmd_close_receipt [23:25:38]MH_GetDate [23:25:38]Write to MH i2c: F0 00 00 A0 15 A4 [23:25:38]Write i2c OK [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: F0 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: F0 09 00 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: F0 09 00 A0 15 00 73 A2 5F 66 CC 51 87 64 8F [23:25:38]GetLastDocTimeStamp 1717541645 [23:25:38]current date 1717543539 [23:25:38]FM_GetShiftState [23:25:38]SAM_PROTO_GetShiftState [23:25:38]wFMCommunicate request_size=4 [23:25:38]MH_SAM_APDU [23:25:38]CAPDU: 80 13 01 00 [23:25:38]Write to MH i2c: E2 08 00 A1 15 80 13 01 00 00 00 00 00 33 [23:25:38]Write i2c OK [23:25:38]MH_I2C_Read... [23:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:38]Read from MH i2c: E2 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 0E 00 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 0E 00 A1 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 F6 [23:25:38]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [23:25:38]wFMCommunicate OK [23:25:38]SAM_PROTO_GetShiftState done [23:25:38]FM_GetShiftState done [23:25:38]opened in 1717460629 [23:25:38]opened+sec_in_day 1717547029 [23:25:38]quantity*price = 40006 [23:25:38]sum+1 = 40007 [23:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 397 04.06.2024 23:25 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 149058 ФПД: 139534295814576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T232539&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149058&fm=139534295814576&tin=02508201610067®Number=0000000000092720&sum=40006 [23:25:39]StoreToDocumentArchive [23:25:39]shift 368 fd 149058 [23:25:39]save to /storage/0368/doc_00149058 [23:25:39]save last doc name /storage/0368/doc_00149058 to /storage/kkm_last_doc_name [23:25:39]save OK [23:25:39]Clear old archive folders... [23:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:25:39]tlvbuf is B6F96300 [23:25:39]SAM_PROTO_ClearQueue [23:25:39]wFMCommunicate request_size=4 [23:25:39]MH_SAM_APDU [23:25:39]CAPDU: 80 09 00 00 [23:25:39]Write to MH i2c: E2 08 00 AE 15 80 09 00 00 00 00 00 00 35 [23:25:39]Write i2c OK [23:25:39]MH_I2C_Read... [23:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:39]Read from MH i2c: E2 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 03 00 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 03 00 AE 15 00 90 00 37 [23:25:39]RAPDU: 90 00 [23:25:39]wFMCommunicate OK [23:25:39]SAM_PROTO_ClearQueue done [23:25:39]KKMCreateOFDPacket [23:25:39]OFDProtocolAddRootSTLVToBuf [23:25:39]FM_MakeSignedData [23:25:39]FM_MakeSignedData [23:25:39]SAM_PROTO_SignData [23:25:39]wFMCommunicate request_size=4 [23:25:39]MH_SAM_APDU [23:25:39]CAPDU: 80 0D 01 02 [23:25:39]Write to MH i2c: E2 08 00 AF 15 80 0D 01 02 00 00 00 00 3D [23:25:39]Write i2c OK [23:25:39]MH_I2C_Read... [23:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:39]Read from MH i2c: E2 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 03 00 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 03 00 AF 15 00 90 00 38 [23:25:39]RAPDU: 90 00 [23:25:39]wFMCommunicate OK [23:25:39]wFMCommunicate request_size=255 [23:25:39]MH_SAM_APDU [23:25:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 01 00 00 F4 03 04 00 73 A2 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 42 46 02 00 35 04 06 00 7E [23:25:39]Write to MH i2c: E2 02 01 B0 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 01 00 00 F4 03 04 00 73 A2 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 42 46 02 00 35 04 06 00 7E 00 00 83 [23:25:39]Write i2c OK [23:25:39]MH_I2C_Read... [23:25:39]OFD Sender: No OFD packet to send [23:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:39]Read from MH i2c: E2 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 03 00 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 03 00 B0 15 00 90 00 39 [23:25:39]RAPDU: 90 00 [23:25:39]wFMCommunicate OK [23:25:39]wFMCommunicate request_size=10 [23:25:39]MH_SAM_APDU [23:25:39]CAPDU: 80 0D 02 02 05 E7 DC 22 D1 B0 [23:25:39]Write to MH i2c: E2 0D 00 B1 15 80 0D 02 02 05 00 E7 DC 22 D1 B0 00 00 B0 [23:25:39]Write i2c OK [23:25:39]MH_I2C_Read... [23:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:39]Read from MH i2c: E2 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 03 00 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 03 00 B1 15 00 90 00 3A [23:25:39]RAPDU: 90 00 [23:25:39]wFMCommunicate OK [23:25:39]wFMCommunicate request_size=4 [23:25:39]MH_SAM_APDU [23:25:39]CAPDU: 80 0D 03 02 [23:25:39]Write to MH i2c: E2 08 00 B2 15 80 0D 03 02 00 00 00 00 42 [23:25:39]Write i2c OK [23:25:39]MH_I2C_Read... [23:25:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:39]Read from MH i2c: E2 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 0B 00 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 0B 00 B2 15 00 02 7D DC F8 2C 31 73 52 90 00 B8 [23:25:39]RAPDU: 02 7D DC F8 2C 31 73 52 90 00 [23:25:39]wFMCommunicate OK [23:25:39]SAM_PROTO_SignData done [23:25:39]FM_MakeSignedData done [23:25:39]CreateOFDProtocolMessage [23:25:39]wFMCommunicate request_size=4 [23:25:39]MH_SAM_APDU [23:25:39]CAPDU: 80 11 00 00 [23:25:39]Write to MH i2c: E2 08 00 B3 15 80 11 00 00 00 00 00 00 42 [23:25:39]Write i2c OK [23:25:39]MH_I2C_Read... [23:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:39]Read from MH i2c: E2 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 17 00 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: E2 17 00 B3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 95 [23:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:25:39]wFMCommunicate OK [23:25:39]CreateOFDProtocolMessage done [23:25:39]OFDSenderStorePacket 149058 [23:25:39]StoreOFDPacket docnum=149058 [23:25:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E3 6A 07 01 62 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 73 A2 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 42 46 02 00 35 04 06 00 7E E7 DC 22 D1 B0 02 7D DC F8 2C 31 73 52 [23:25:39]CheckFolder [23:25:39]dirname=/storage/ofd_packets [23:25:39]CheckFolder done [23:25:39]ProducePacketName [23:25:39]name=ofd_packets/00149058 [23:25:39]NVStorageSaveData ofd_packets/00149058 [23:25:39]File name is /storage/ofd_packets/00149058 [23:25:39]Write 301 bytes [23:25:39]NVStorageSaveData done [23:25:39]OFDSenderStorePacket done [23:25:39]KKMCreateOFDPacket done [23:25:39]NVStorageSaveData kkm_last_timestamp [23:25:39]File name is /storage/kkm_last_timestamp [23:25:39]Write 4 bytes [23:25:39]NVStorageSaveData done [23:25:39]ExternCall_PrintAddStr [23:25:39]wPrintStart [23:25:39]Write to MH i2c: 01 00 00 B4 15 C9 [23:25:39]Write i2c OK [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: 01 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: 01 07 00 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: 01 07 00 B4 15 00 00 00 00 00 FF 0F DE [23:25:39]RasterBufferAndPrint [23:25:39]line Счет N : (1)979987 [23:25:39]line ИНН: 02508201610067 [23:25:39]line Контрольно-Кассовый Чек [23:25:39]line ПРОДАЖА [23:25:39]line ТРК (МРК, ГНК) : 22 [23:25:39]line Товар: 2710124130 [23:25:39]line Аи-92-К-5 [23:25:39]line 5.980 * 66.90 [23:25:39]line = 400.06 [23:25:39]line НДС 12% НСП 1% [23:25:39]line > о реализуемом товаре [23:25:39]line ИТОГО: 400.06 [23:25:39]line НСП 1% : 3.54 [23:25:39]line НДС 12% : 42.48 [23:25:39]line Наличными: 0.00 [23:25:39]line Безнал.: 400.06 [23:25:39]line Место: АЗС № 68 "Партнер Нефть" [23:25:39]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:25:39]line СНО: Общий режим [23:25:39]line Чек 397 04.06.2024 23:25 [23:25:39]line Смена: 368 ФФД: 1.0 [23:25:39]line ЗНМ: 0300000035 [23:25:39]line РНМ: 0000000000092720 [23:25:39]line Версия ККМ: 001 [23:25:39]line Платежная система: KICB Банк [23:25:39]line ФМ: 0000000000875057 [23:25:39]line ФД: 149058 [23:25:39]line ФПД: 139534295814576 [23:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T232539&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149058&fm=139534295814576&tin=02508201610067®Number=0000000000092720&sum=40006 [23:25:40]OFD Sender: Processing packet 149058 [packets to send 100, broken 99] [23:25:40]ProducePacketName [23:25:40]name=ofd_packets/00149058 [23:25:40]OFD Sender: To server: pG, [23:25:40]CommunicateWithHost lk.salyk.kg:30040 [23:25:40]ConnectInit lk.salyk.kg [23:25:40]written 0, free lines is 4095 [23:25:40]Connected sock=10 [23:25:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E3 6A 07 01 62 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 73 A2 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 42 46 02 00 35 04 06 00 7E E7 DC 22 D1 B0 02 7D DC F8 2C 31 73 52 [23:25:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D7 3D 47 00 EA 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 42 46 02 00 F4 03 04 00 95 49 5F 66 B6 04 01 00 00 09 BA 80 41 AA CA 1A 6D [23:25:40]CommunicateWithHost err = 0 [23:25:40]CheckOFDResponse [23:25:40]1017 (14) - 77093643461234 [23:25:40]1041 (16) - 0000000000875057 [23:25:40]1040 (4) - 149058 [23:25:40]1012 (4) - 04.06.2024 17:06 [23:25:40]1206 (1) - 0 [23:25:40]OFD Sender: Remove packet 149058 [23:25:40]ProducePacketName [23:25:40]name=ofd_packets/00149058 [23:25:40]NVStorageDeleteData [23:25:40]Write to MH i2c: 01 00 00 DE 15 F3 [23:25:40]Write i2c OK [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: 01 [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: 01 07 00 [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: 01 07 00 DE 15 00 00 00 00 00 76 0C 7C [23:25:40]RasterBufferAndPrint [23:25:40]line [23:25:40]line [23:25:40]line [23:25:40]line [23:25:40]line [23:25:40]written 0, free lines is 3195 [23:25:40]MH_Cut [23:25:40]Write to MH i2c: D1 01 00 E5 15 01 CC [23:25:40]Write i2c OK [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: D1 [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: D1 01 00 [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: D1 01 00 E5 15 00 CB [23:25:40]Write to MH i2c: 01 00 00 E6 15 FB [23:25:40]Write i2c OK [23:25:40]MH_I2C_Read... [23:25:40]OFD Sender: No OFD packet to send [23:25:41]*** Cut start [23:25:41]*** Partial cut [23:25:41]*** CUTSNS_PIN = 1 [23:25:41]*** CUTSNS_PIN = 0 [23:25:42]*** Brake cut motor [23:25:42]Read from MH i2c: 01 [23:25:42]MH_I2C_Read... [23:25:42]*** Stop cut motor [23:25:42]*** Cut end [23:25:42]Read from MH i2c: 01 07 00 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: 01 07 00 E6 15 00 00 00 00 00 FF 0F 10 [23:25:42]process_action close_receipt done [23:25:42]requested_data is exist [23:25:42]produce_requested_data [23:25:42]requested_item fm.sn is exist - process it [23:25:42]wFMCommunicate request_size=4 [23:25:42]MH_SAM_APDU [23:25:42]CAPDU: 80 11 00 00 [23:25:42]Write to MH i2c: E2 08 00 E7 15 80 11 00 00 00 00 00 00 76 [23:25:42]Write i2c OK [23:25:42]MH_I2C_Read... [23:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:42]Read from MH i2c: E2 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 17 00 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 17 00 E7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C9 [23:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:25:42]wFMCommunicate OK [23:25:42]requested_item fd.num is exist - process it [23:25:42]SAM_PROTO_GetFieldsCounters [23:25:42]wFMCommunicate request_size=4 [23:25:42]MH_SAM_APDU [23:25:42]CAPDU: 80 13 00 00 [23:25:42]Write to MH i2c: E2 08 00 E8 15 80 13 00 00 00 00 00 00 79 [23:25:42]Write i2c OK [23:25:42]MH_I2C_Read... [23:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:42]Read from MH i2c: E2 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 62 00 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 62 00 E8 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 42 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [23:25:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 42 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:42]wFMCommunicate OK [23:25:42]SAM_PROTO_GetFieldsCounters done [23:25:42]requested_item shift.num is exist - process it [23:25:42]requested_item shift.opened is exist - process it [23:25:42]req_shift_opened [23:25:42]FM_GetShiftState [23:25:42]SAM_PROTO_GetShiftState [23:25:42]wFMCommunicate request_size=4 [23:25:42]MH_SAM_APDU [23:25:42]CAPDU: 80 13 01 00 [23:25:42]Write to MH i2c: E2 08 00 E9 15 80 13 01 00 00 00 00 00 7B [23:25:42]Write i2c OK [23:25:42]MH_I2C_Read... [23:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:42]Read from MH i2c: E2 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 0E 00 [23:25:42]MH_I2C_Read... [23:25:42]Read from MH i2c: E2 0E 00 E9 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 3E [23:25:42]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [23:25:42]wFMCommunicate OK [23:25:42]SAM_PROTO_GetShiftState done [23:25:42]FM_GetShiftState done [23:25:42]req_shift_opened done [23:25:42]requested_item shift.open_date is exist - process it [23:25:42]req_shift_open_date [23:25:42]req_shift_open_date done [23:25:42]produce_requested_data done [23:25:42]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149058,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [23:25:42]process_action_free close_receipt [23:25:42]json_value_free [23:25:42]json_value_free done [23:25:42]process_json_proto returns [23:25:42]Send response to host [23:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149058,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [23:25:42]free response buf [23:25:42]execute_script done [23:25:42]execute_script returns [23:25:42]free content buf [23:25:42]Sock 9.Close socket [23:25:42]Sock 9.Thread stoped [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:13]accept exits with 7 [23:31:13]New connection [23:31:13]New thread 3067075940 created [23:31:13]Thread 3067219300 joined [23:31:13]Waiting for new connection... [23:31:13] Sock 7.Parse request [23:31:13]Sock 7.Check first char [23:31:13]Sock 7.First char is OK [23:31:13]request: POST /json_proto HTTP/1.0 [23:31:13]Method: POST [23:31:13]URL: /json_proto [23:31:13]Method is POST - this is cgi request [23:31:13]url: /json_proto [23:31:13]query_string will be loaded in cgi processing [23:31:13]execute_cgi json_proto POST (null) [23:31:13]execute_cgi path=json_proto method=POST [23:31:13]POST find Content-Length [23:31:13]Host: 172.17.38.4:8080 [23:31:13]Content-Length: 675 [23:31:13]Content-Type: application/json [23:31:13] [23:31:13]POST finish read [23:31:13]Found Content-Length = 675 [23:31:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11917", "tax_sys" : 0, "items" : [ { "code": "4870145004302", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 7 \u044D\u043A\u0441\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:13]execute_script... [23:31:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11917", "tax_sys" : 0, "items" : [ { "code": "4870145004302", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 7 \u044D\u043A\u0441\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:13]POST & json_proto [23:31:13]process_json_proto [23:31:13]json parsed OK: [23:31:13]protocol is kg_v1.0 [23:31:13]action value=close_receipt [23:31:13]process_action close_receipt [23:31:13]cmd_close_receipt [23:31:13]MH_GetDate [23:31:13]Write to MH i2c: F0 00 00 EA 15 EE [23:31:13]Write i2c OK [23:31:13]MH_I2C_Read... [23:31:13]Read from MH i2c: F0 [23:31:13]MH_I2C_Read... [23:31:13]Read from MH i2c: F0 09 00 [23:31:13]MH_I2C_Read... [23:31:13]Read from MH i2c: F0 09 00 EA 15 00 C2 A3 5F 66 CC 51 87 64 29 [23:31:13]GetLastDocTimeStamp 1717543539 [23:31:13]current date 1717543874 [23:31:13]FM_GetShiftState [23:31:13]SAM_PROTO_GetShiftState [23:31:13]wFMCommunicate request_size=4 [23:31:13]MH_SAM_APDU [23:31:13]CAPDU: 80 13 01 00 [23:31:13]Write to MH i2c: E2 08 00 EB 15 80 13 01 00 00 00 00 00 7D [23:31:13]Write i2c OK [23:31:13]MH_I2C_Read... [23:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:13]Read from MH i2c: E2 [23:31:13]MH_I2C_Read... [23:31:13]Read from MH i2c: E2 0E 00 [23:31:13]MH_I2C_Read... [23:31:13]Read from MH i2c: E2 0E 00 EB 15 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 40 [23:31:13]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [23:31:13]wFMCommunicate OK [23:31:13]SAM_PROTO_GetShiftState done [23:31:13]FM_GetShiftState done [23:31:13]opened in 1717460629 [23:31:13]opened+sec_in_day 1717547029 [23:31:13]quantity*price = 12000 [23:31:13]sum+1 = 12001 [23:31:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 398 04.06.2024 23:31 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149059 ФПД: 43113329948968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T233114&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149059&fm=43113329948968&tin=02508201610067®Number=0000000000092720&sum=12000 0 [23:31:14]StoreToDocumentArchive [23:31:14]shift 368 fd 149059 [23:31:14]save to /storage/0368/doc_00149059 [23:31:14]save last doc name /storage/0368/doc_00149059 to /storage/kkm_last_doc_name [23:31:14]save OK [23:31:14]Clear old archive folders... [23:31:14]ProcessDocumentItem done err = 0, tmpTLVsize=288 [23:31:14]tlvbuf is 009A0680 [23:31:14]SAM_PROTO_ClearQueue [23:31:14]wFMCommunicate request_size=4 [23:31:14]MH_SAM_APDU [23:31:14]CAPDU: 80 09 00 00 [23:31:14]Write to MH i2c: E2 08 00 F8 15 80 09 00 00 00 00 00 00 7F [23:31:14]Write i2c OK [23:31:14]MH_I2C_Read... [23:31:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:14]Read from MH i2c: E2 [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: E2 03 00 [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: E2 03 00 F8 15 00 90 00 81 [23:31:14]RAPDU: 90 00 [23:31:14]wFMCommunicate OK [23:31:14]SAM_PROTO_ClearQueue done [23:31:14]KKMCreateOFDPacket [23:31:14]OFDProtocolAddRootSTLVToBuf [23:31:14]FM_MakeSignedData [23:31:14]FM_MakeSignedData [23:31:14]SAM_PROTO_SignData [23:31:14]wFMCommunicate request_size=4 [23:31:14]MH_SAM_APDU [23:31:14]CAPDU: 80 0D 01 02 [23:31:14]Write to MH i2c: E2 08 00 F9 15 80 0D 01 02 00 00 00 00 87 [23:31:14]Write i2c OK [23:31:14]MH_I2C_Read... [23:31:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:14]Read from MH i2c: E2 [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: E2 03 00 [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: E2 03 00 F9 15 00 90 00 82 [23:31:14]RAPDU: 90 00 [23:31:14]wFMCommunicate OK [23:31:14]wFMCommunicate request_size=255 [23:31:14]MH_SAM_APDU [23:31:14]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 C2 A3 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [23:31:14]Write to MH i2c: E2 02 01 FA 15 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 C2 A3 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 BC [23:31:14]Write i2c OK [23:31:14]MH_I2C_Read... [23:31:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:14]Read from MH i2c: E2 [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: E2 03 00 [23:31:14]MH_I2C_Read... [23:31:14]Read from MH i2c: E2 03 00 FA 15 00 90 00 83 [23:31:14]RAPDU: 90 00 [23:31:14]wFMCommunicate OK [23:31:14]wFMCommunicate request_size=47 [23:31:14]MH_SAM_APDU [23:31:14]CAPDU: 80 0D 02 02 2A 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 43 46 02 00 35 04 06 00 27 36 1A B7 79 28 [23:31:14]Write to MH i2c: E2 32 00 FB 15 80 0D 02 02 2A 00 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 43 46 02 00 35 04 06 00 27 36 1A B7 79 28 00 00 9F [23:31:14]Write i2c OK [23:31:14]MH_I2C_Read... [23:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:15]Read from MH i2c: E2 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: E2 03 00 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: E2 03 00 FB 15 00 90 00 84 [23:31:15]RAPDU: 90 00 [23:31:15]wFMCommunicate OK [23:31:15]wFMCommunicate request_size=4 [23:31:15]MH_SAM_APDU [23:31:15]CAPDU: 80 0D 03 02 [23:31:15]Write to MH i2c: E2 08 00 FC 15 80 0D 03 02 00 00 00 00 8C [23:31:15]Write i2c OK [23:31:15]MH_I2C_Read... [23:31:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:15]Read from MH i2c: E2 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: E2 0B 00 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: E2 0B 00 FC 15 00 70 D4 D2 F0 1C 10 EB 65 90 00 0F [23:31:15]RAPDU: 70 D4 D2 F0 1C 10 EB 65 90 00 [23:31:15]wFMCommunicate OK [23:31:15]SAM_PROTO_SignData done [23:31:15]FM_MakeSignedData done [23:31:15]CreateOFDProtocolMessage [23:31:15]wFMCommunicate request_size=4 [23:31:15]MH_SAM_APDU [23:31:15]CAPDU: 80 11 00 00 [23:31:15]Write to MH i2c: E2 08 00 FD 15 80 11 00 00 00 00 00 00 8C [23:31:15]Write i2c OK [23:31:15]MH_I2C_Read... [23:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:15]Read from MH i2c: E2 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: E2 17 00 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: E2 17 00 FD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DF [23:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:31:15]wFMCommunicate OK [23:31:15]CreateOFDProtocolMessage done [23:31:15]OFDSenderStorePacket 149059 [23:31:15]StoreOFDPacket docnum=149059 [23:31:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 34 01 00 00 F8 85 2C 01 78 43 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 C2 A3 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 43 46 02 00 35 04 06 00 27 36 1A B7 79 28 70 D4 D2 F0 1C 10 EB 65 [23:31:15]CheckFolder [23:31:15]dirname=/storage/ofd_packets [23:31:15]CheckFolder done [23:31:15]ProducePacketName [23:31:15]name=ofd_packets/00149059 [23:31:15]NVStorageSaveData ofd_packets/00149059 [23:31:15]File name is /storage/ofd_packets/00149059 [23:31:15]Write 338 bytes [23:31:15]NVStorageSaveData done [23:31:15]OFDSenderStorePacket done [23:31:15]KKMCreateOFDPacket done [23:31:15]NVStorageSaveData kkm_last_timestamp [23:31:15]File name is /storage/kkm_last_timestamp [23:31:15]Write 4 bytes [23:31:15]NVStorageSaveData done [23:31:15]ExternCall_PrintAddStr [23:31:15]wPrintStart [23:31:15]Write to MH i2c: 01 00 00 FE 15 13 [23:31:15]Write i2c OK [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: 01 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: 01 07 00 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: 01 07 00 FE 15 00 00 00 00 00 FF 0F 28 [23:31:15]RasterBufferAndPrint [23:31:15]line Счет N : (3)11917 [23:31:15]line ИНН: 02508201610067 [23:31:15]line Контрольно-Кассовый Чек [23:31:15]line ПРОДАЖА [23:31:15]line Товар: 4870145004302 [23:31:15]line Пиво Балтика 7 эксп 0,5л ж/б [23:31:15]line 1.000 * 120.00 [23:31:15]line = 120.00 [23:31:15]line НДС 12% НСП 1% [23:31:15]line > о реализуемом товаре [23:31:15]line ИТОГО: 120.00 [23:31:15]line НСП 1% : 1.06 [23:31:15]line НДС 12% : 12.74 [23:31:15]line Наличными: 120.00 [23:31:15]line Безнал.: 0.00 [23:31:15]line Место: АЗС № 68 "Партнер Нефть" [23:31:15]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:31:15]line СНО: Общий режим [23:31:15]line Чек 398 04.06.2024 23:31 [23:31:15]line Смена: 368 ФФД: 1.0 [23:31:15]line ЗНМ: 0300000035 [23:31:15]line РНМ: 0000000000092720 [23:31:15]line Версия ККМ: 001 [23:31:15]line ФМ: 0000000000875057 [23:31:15]line ФД: 149059 [23:31:15]line ФПД: 43113329948968 [23:31:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T233114&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149059&fm=43113329948968&tin=02508201610067®Number=0000000000092720&sum=12000 [23:31:15]line 0 [23:31:15]OFD Sender: Processing packet 149059 [packets to send 100, broken 99] [23:31:15]ProducePacketName [23:31:15]name=ofd_packets/00149059 [23:31:15]OFD Sender: To server: pG, [23:31:15]CommunicateWithHost lk.salyk.kg:30040 [23:31:15]ConnectInit lk.salyk.kg [23:31:15]written 0, free lines is 4095 [23:31:15]Connected sock=10 [23:31:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 34 01 00 00 F8 85 2C 01 78 43 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 C2 A3 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 43 46 02 00 35 04 06 00 27 36 1A B7 79 28 70 D4 D2 F0 1C 10 EB 65 [23:31:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 0A C2 47 00 A7 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 38 37 35 30 35 37 10 04 04 00 43 46 02 00 F4 03 04 00 E5 4A 5F 66 B6 04 01 00 00 DF DF FE 64 FF CA FB 4E [23:31:15]CommunicateWithHost err = 0 [23:31:15]CheckOFDResponse [23:31:15]1017 (14) - 77093643461234 [23:31:15]1041 (16) - 0000000000875057 [23:31:15]1040 (4) - 149059 [23:31:15]1012 (4) - 04.06.2024 17:12 [23:31:15]1206 (1) - 0 [23:31:15]OFD Sender: Remove packet 149059 [23:31:15]ProducePacketName [23:31:15]name=ofd_packets/00149059 [23:31:15]NVStorageDeleteData [23:31:15]Write to MH i2c: 01 00 00 26 16 3C [23:31:15]Write i2c OK [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: 01 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: 01 07 00 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: 01 07 00 26 16 00 00 00 00 00 8C 0C DB [23:31:15]RasterBufferAndPrint [23:31:15]line [23:31:15]line [23:31:15]line [23:31:15]line [23:31:15]line [23:31:15]written 0, free lines is 3217 [23:31:15]MH_Cut [23:31:15]Write to MH i2c: D1 01 00 2D 16 01 15 [23:31:15]Write i2c OK [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: D1 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: D1 01 00 [23:31:15]MH_I2C_Read... [23:31:15]Read from MH i2c: D1 01 00 2D 16 00 14 [23:31:15]Write to MH i2c: 01 00 00 2E 16 44 [23:31:15]Write i2c OK [23:31:15]MH_I2C_Read... [23:31:16]OFD Sender: No OFD packet to send [23:31:17]*** Cut start [23:31:17]*** Partial cut [23:31:17]*** CUTSNS_PIN = 1 [23:31:17]*** CUTSNS_PIN = 0 [23:31:17]*** Brake cut motor [23:31:17]Read from MH i2c: 01 [23:31:17]MH_I2C_Read... [23:31:17]*** Stop cut motor [23:31:17]*** Cut end [23:31:17]Read from MH i2c: 01 07 00 [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: 01 07 00 2E 16 00 00 00 00 00 FF 0F 59 [23:31:17]process_action close_receipt done [23:31:17]requested_data is exist [23:31:17]produce_requested_data [23:31:17]requested_item fm.sn is exist - process it [23:31:17]wFMCommunicate request_size=4 [23:31:17]MH_SAM_APDU [23:31:17]CAPDU: 80 11 00 00 [23:31:17]Write to MH i2c: E2 08 00 2F 16 80 11 00 00 00 00 00 00 BF [23:31:17]Write i2c OK [23:31:17]MH_I2C_Read... [23:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:17]Read from MH i2c: E2 [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: E2 17 00 [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: E2 17 00 2F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 12 [23:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:31:17]wFMCommunicate OK [23:31:17]requested_item fd.num is exist - process it [23:31:17]SAM_PROTO_GetFieldsCounters [23:31:17]wFMCommunicate request_size=4 [23:31:17]MH_SAM_APDU [23:31:17]CAPDU: 80 13 00 00 [23:31:17]Write to MH i2c: E2 08 00 30 16 80 13 00 00 00 00 00 00 C2 [23:31:17]Write i2c OK [23:31:17]MH_I2C_Read... [23:31:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:17]Read from MH i2c: E2 [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: E2 62 00 [23:31:17]MH_I2C_Read... [23:31:17]Read from MH i2c: E2 62 00 30 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 43 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [23:31:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 43 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:17]wFMCommunicate OK [23:31:17]SAM_PROTO_GetFieldsCounters done [23:31:17]requested_item shift.num is exist - process it [23:31:17]requested_item shift.opened is exist - process it [23:31:17]req_shift_opened [23:31:17]FM_GetShiftState [23:31:17]SAM_PROTO_GetShiftState [23:31:17]wFMCommunicate request_size=4 [23:31:17]MH_SAM_APDU [23:31:17]CAPDU: 80 13 01 00 [23:31:17]Write to MH i2c: E2 08 00 31 16 80 13 01 00 00 00 00 00 C4 [23:31:17]Write i2c OK [23:31:17]MH_I2C_Read... [23:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:18]Read from MH i2c: E2 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: E2 0E 00 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: E2 0E 00 31 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 87 [23:31:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [23:31:18]wFMCommunicate OK [23:31:18]SAM_PROTO_GetShiftState done [23:31:18]FM_GetShiftState done [23:31:18]req_shift_opened done [23:31:18]requested_item shift.open_date is exist - process it [23:31:18]req_shift_open_date [23:31:18]req_shift_open_date done [23:31:18]produce_requested_data done [23:31:18]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149059,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [23:31:18]process_action_free close_receipt [23:31:18]json_value_free [23:31:18]json_value_free done [23:31:18]process_json_proto returns [23:31:18]Send response to host [23:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149059,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [23:31:18]free response buf [23:31:18]execute_script done [23:31:18]execute_script returns [23:31:18]free content buf [23:31:18]Sock 7.Close socket [23:31:18]Sock 7.Thread stoped [23:31:18]accept exits with 9 [23:31:18]New connection [23:31:18]New thread 3067219300 created [23:31:18]Thread 3067075940 joined [23:31:18]Waiting for new connection... [23:31:18] Sock 9.Parse request [23:31:18]Sock 9.Check first char [23:31:18]Sock 9.First char is OK [23:31:18]request: POST /json_proto HTTP/1.0 [23:31:18]Method: POST [23:31:18]URL: /json_proto [23:31:18]Method is POST - this is cgi request [23:31:18]url: /json_proto [23:31:18]query_string will be loaded in cgi processing [23:31:18]execute_cgi json_proto POST (null) [23:31:18]execute_cgi path=json_proto method=POST [23:31:18]POST find Content-Length [23:31:18]Host: 172.17.38.4:8080 [23:31:18]Content-Length: 677 [23:31:18]Content-Type: application/json [23:31:18] [23:31:18]POST finish read [23:31:18]Found Content-Length = 677 [23:31:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:18]execute_script... [23:31: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)979988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:18]POST & json_proto [23:31:18]process_json_proto [23:31:18]json parsed OK: [23:31:18]protocol is kg_v1.0 [23:31:18]action value=close_receipt [23:31:18]process_action close_receipt [23:31:18]cmd_close_receipt [23:31:18]MH_GetDate [23:31:18]Write to MH i2c: F0 00 00 32 16 37 [23:31:18]Write i2c OK [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: F0 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: F0 09 00 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: F0 09 00 32 16 00 C7 A3 5F 66 CC 51 87 64 77 [23:31:18]GetLastDocTimeStamp 1717543874 [23:31:18]current date 1717543879 [23:31:18]FM_GetShiftState [23:31:18]SAM_PROTO_GetShiftState [23:31:18]wFMCommunicate request_size=4 [23:31:18]MH_SAM_APDU [23:31:18]CAPDU: 80 13 01 00 [23:31:18]Write to MH i2c: E2 08 00 33 16 80 13 01 00 00 00 00 00 C6 [23:31:18]Write i2c OK [23:31:18]MH_I2C_Read... [23:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:18]Read from MH i2c: E2 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: E2 0E 00 [23:31:18]MH_I2C_Read... [23:31:18]Read from MH i2c: E2 0E 00 33 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 89 [23:31:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [23:31:18]wFMCommunicate OK [23:31:18]SAM_PROTO_GetShiftState done [23:31:18]FM_GetShiftState done [23:31:18]opened in 1717460629 [23:31:18]opened+sec_in_day 1717547029 [23:31:18]quantity*price = 30038 [23:31:18]sum+1 = 30039 [23:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 399 04.06.2024 23:31 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149060 ФПД: 4013378722180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T233119&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149060&fm=4013378722180&tin=02508201610067®Number=0000000000092720&sum=30000 [23:31:19]StoreToDocumentArchive [23:31:19]shift 368 fd 149060 [23:31:19]save to /storage/0368/doc_00149060 [23:31:19]save last doc name /storage/0368/doc_00149060 to /storage/kkm_last_doc_name [23:31:19]save OK [23:31:19]Clear old archive folders... [23:31:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:31:19]tlvbuf is 009D9420 [23:31:19]SAM_PROTO_ClearQueue [23:31:19]wFMCommunicate request_size=4 [23:31:19]MH_SAM_APDU [23:31:19]CAPDU: 80 09 00 00 [23:31:19]Write to MH i2c: E2 08 00 40 16 80 09 00 00 00 00 00 00 C8 [23:31:19]Write i2c OK [23:31:19]MH_I2C_Read... [23:31:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:19]Read from MH i2c: E2 [23:31:19]MH_I2C_Read... [23:31:19]Read from MH i2c: E2 03 00 [23:31:19]MH_I2C_Read... [23:31:19]Read from MH i2c: E2 03 00 40 16 00 90 00 CA [23:31:19]RAPDU: 90 00 [23:31:19]wFMCommunicate OK [23:31:19]SAM_PROTO_ClearQueue done [23:31:19]KKMCreateOFDPacket [23:31:19]OFDProtocolAddRootSTLVToBuf [23:31:19]FM_MakeSignedData [23:31:19]FM_MakeSignedData [23:31:19]SAM_PROTO_SignData [23:31:19]wFMCommunicate request_size=4 [23:31:19]MH_SAM_APDU [23:31:19]CAPDU: 80 0D 01 02 [23:31:19]Write to MH i2c: E2 08 00 41 16 80 0D 01 02 00 00 00 00 D0 [23:31:19]Write i2c OK [23:31:19]MH_I2C_Read... [23:31:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:19]Read from MH i2c: E2 [23:31:19]MH_I2C_Read... [23:31:19]Read from MH i2c: E2 03 00 [23:31:19]MH_I2C_Read... [23:31:19]Read from MH i2c: E2 03 00 41 16 00 90 00 CB [23:31:19]RAPDU: 90 00 [23:31:19]wFMCommunicate OK [23:31:19]wFMCommunicate request_size=255 [23:31:19]MH_SAM_APDU [23:31:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 01 00 00 F4 03 04 00 C7 A3 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 44 46 02 00 35 04 06 00 03 [23:31:19]Write to MH i2c: E2 02 01 42 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 01 00 00 F4 03 04 00 C7 A3 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 44 46 02 00 35 04 06 00 03 00 00 0D [23:31:20]Write i2c OK [23:31:20]MH_I2C_Read... [23:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:20]Read from MH i2c: E2 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: E2 03 00 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: E2 03 00 42 16 00 90 00 CC [23:31:20]RAPDU: 90 00 [23:31:20]wFMCommunicate OK [23:31:20]wFMCommunicate request_size=10 [23:31:20]MH_SAM_APDU [23:31:20]CAPDU: 80 0D 02 02 05 A6 70 03 59 84 [23:31:20]Write to MH i2c: E2 0D 00 43 16 80 0D 02 02 05 00 A6 70 03 59 84 00 00 D3 [23:31:20]Write i2c OK [23:31:20]MH_I2C_Read... [23:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:20]Read from MH i2c: E2 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: E2 03 00 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: E2 03 00 43 16 00 90 00 CD [23:31:20]RAPDU: 90 00 [23:31:20]wFMCommunicate OK [23:31:20]wFMCommunicate request_size=4 [23:31:20]MH_SAM_APDU [23:31:20]CAPDU: 80 0D 03 02 [23:31:20]Write to MH i2c: E2 08 00 44 16 80 0D 03 02 00 00 00 00 D5 [23:31:20]Write i2c OK [23:31:20]MH_I2C_Read... [23:31:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:20]Read from MH i2c: E2 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: E2 0B 00 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: E2 0B 00 44 16 00 BE A0 02 B4 8B 4D 5F 3A 90 00 5B [23:31:20]RAPDU: BE A0 02 B4 8B 4D 5F 3A 90 00 [23:31:20]wFMCommunicate OK [23:31:20]SAM_PROTO_SignData done [23:31:20]FM_MakeSignedData done [23:31:20]CreateOFDProtocolMessage [23:31:20]wFMCommunicate request_size=4 [23:31:20]MH_SAM_APDU [23:31:20]CAPDU: 80 11 00 00 [23:31:20]Write to MH i2c: E2 08 00 45 16 80 11 00 00 00 00 00 00 D5 [23:31:20]Write i2c OK [23:31:20]MH_I2C_Read... [23:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:20]Read from MH i2c: E2 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: E2 17 00 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: E2 17 00 45 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 28 [23:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:31:20]wFMCommunicate OK [23:31:20]CreateOFDProtocolMessage done [23:31:20]OFDSenderStorePacket 149060 [23:31:20]StoreOFDPacket docnum=149060 [23:31:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 72 0E 07 01 0F 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 01 00 00 F4 03 04 00 C7 A3 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 44 46 02 00 35 04 06 00 03 A6 70 03 59 84 BE A0 02 B4 8B 4D 5F 3A [23:31:20]CheckFolder [23:31:20]dirname=/storage/ofd_packets [23:31:20]CheckFolder done [23:31:20]ProducePacketName [23:31:20]name=ofd_packets/00149060 [23:31:20]NVStorageSaveData ofd_packets/00149060 [23:31:20]File name is /storage/ofd_packets/00149060 [23:31:20]Write 301 bytes [23:31:20]NVStorageSaveData done [23:31:20]OFDSenderStorePacket done [23:31:20]KKMCreateOFDPacket done [23:31:20]NVStorageSaveData kkm_last_timestamp [23:31:20]File name is /storage/kkm_last_timestamp [23:31:20]Write 4 bytes [23:31:20]NVStorageSaveData done [23:31:20]ExternCall_PrintAddStr [23:31:20]wPrintStart [23:31:20]Write to MH i2c: 01 00 00 46 16 5C [23:31:20]Write i2c OK [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: 01 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: 01 07 00 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: 01 07 00 46 16 00 00 00 00 00 FF 0F 71 [23:31:20]RasterBufferAndPrint [23:31:20]line Счет N : (1)979988 [23:31:20]line ИНН: 02508201610067 [23:31:20]line Контрольно-Кассовый Чек [23:31:20]line ПРОДАЖА [23:31:20]line ТРК (МРК, ГНК) : 12 [23:31:20]line Товар: 2710124130 [23:31:20]line Аи-92-К-5 [23:31:20]line 4.490 * 66.90 [23:31:20]line = 300.38 [23:31:20]line НДС 12% НСП 1% [23:31:20]line > о реализуемом товаре [23:31:20]line ОКРУГЛЕНИЕ: -0.38 [23:31:20]line ИТОГО: 300.00 [23:31:20]line Внесено: 300.00 [23:31:20]line СДАЧА: 0.00 [23:31:20]line НСП 1% : 2.66 [23:31:20]line НДС 12% : 31.90 [23:31:20]line Наличными: 300.00 [23:31:20]line Безнал.: 0.00 [23:31:20]line Место: АЗС № 68 "Партнер Нефть" [23:31:20]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:31:20]line СНО: Общий режим [23:31:20]line Чек 399 04.06.2024 23:31 [23:31:20]line Смена: 368 ФФД: 1.0 [23:31:20]line ЗНМ: 0300000035 [23:31:20]line РНМ: 0000000000092720 [23:31:20]line Версия ККМ: 001 [23:31:20]line ФМ: 0000000000875057 [23:31:20]line ФД: 149060 [23:31:20]line ФПД: 4013378722180 [23:31:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T233119&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149060&fm=4013378722180&tin=02508201610067®Number=0000000000092720&sum=30000 [23:31:20]written 0, free lines is 4095 [23:31:20]OFD Sender: Processing packet 149060 [packets to send 100, broken 99] [23:31:20]ProducePacketName [23:31:20]name=ofd_packets/00149060 [23:31:20]OFD Sender: To server: pG, [23:31:20]CommunicateWithHost lk.salyk.kg:30040 [23:31:20]ConnectInit lk.salyk.kg [23:31:20]Connected sock=10 [23:31:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 72 0E 07 01 0F 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 01 00 00 F4 03 04 00 C7 A3 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 44 46 02 00 35 04 06 00 03 A6 70 03 59 84 BE A0 02 B4 8B 4D 5F 3A [23:31:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 45 77 47 00 F5 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 38 37 35 30 35 37 10 04 04 00 44 46 02 00 F4 03 04 00 EA 4A 5F 66 B6 04 01 00 00 B9 00 0B B6 09 53 AA 32 [23:31:20]CommunicateWithHost err = 0 [23:31:20]CheckOFDResponse [23:31:20]1017 (14) - 77093643461234 [23:31:20]1041 (16) - 0000000000875057 [23:31:20]1040 (4) - 149060 [23:31:20]1012 (4) - 04.06.2024 17:12 [23:31:20]1206 (1) - 0 [23:31:20]OFD Sender: Remove packet 149060 [23:31:20]ProducePacketName [23:31:20]name=ofd_packets/00149060 [23:31:20]NVStorageDeleteData [23:31:20]Write to MH i2c: 01 00 00 71 16 87 [23:31:20]Write i2c OK [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: 01 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: 01 07 00 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: 01 07 00 71 16 00 00 00 00 00 6F 0C 09 [23:31:20]RasterBufferAndPrint [23:31:20]line [23:31:20]line [23:31:20]line [23:31:20]line [23:31:20]line [23:31:20]written 0, free lines is 3189 [23:31:20]MH_Cut [23:31:20]Write to MH i2c: D1 01 00 78 16 01 60 [23:31:20]Write i2c OK [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: D1 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: D1 01 00 [23:31:20]MH_I2C_Read... [23:31:20]Read from MH i2c: D1 01 00 78 16 00 5F [23:31:20]Write to MH i2c: 01 00 00 79 16 8F [23:31:20]Write i2c OK [23:31:20]MH_I2C_Read... [23:31:21]OFD Sender: No OFD packet to send [23:31:22]*** Cut start [23:31:22]*** Partial cut [23:31:22]*** CUTSNS_PIN = 1 [23:31:22]*** CUTSNS_PIN = 0 [23:31:22]*** Brake cut motor [23:31:22]Read from MH i2c: 01 [23:31:22]MH_I2C_Read... [23:31:22]*** Stop cut motor [23:31:22]*** Cut end [23:31:22]Read from MH i2c: 01 07 00 [23:31:22]MH_I2C_Read... [23:31:22]Read from MH i2c: 01 07 00 79 16 00 00 00 00 00 FF 0F A4 [23:31:22]process_action close_receipt done [23:31:22]requested_data is exist [23:31:22]produce_requested_data [23:31:22]requested_item fm.sn is exist - process it [23:31:22]wFMCommunicate request_size=4 [23:31:22]MH_SAM_APDU [23:31:22]CAPDU: 80 11 00 00 [23:31:22]Write to MH i2c: E2 08 00 7A 16 80 11 00 00 00 00 00 00 0A [23:31:22]Write i2c OK [23:31:22]MH_I2C_Read... [23:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:22]Read from MH i2c: E2 [23:31:22]MH_I2C_Read... [23:31:22]Read from MH i2c: E2 17 00 [23:31:22]MH_I2C_Read... [23:31:22]Read from MH i2c: E2 17 00 7A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 5D [23:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:31:22]wFMCommunicate OK [23:31:22]requested_item fd.num is exist - process it [23:31:22]SAM_PROTO_GetFieldsCounters [23:31:22]wFMCommunicate request_size=4 [23:31:22]MH_SAM_APDU [23:31:22]CAPDU: 80 13 00 00 [23:31:22]Write to MH i2c: E2 08 00 7B 16 80 13 00 00 00 00 00 00 0D [23:31:22]Write i2c OK [23:31:22]MH_I2C_Read... [23:31:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:23]Read from MH i2c: E2 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: E2 62 00 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: E2 62 00 7B 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 44 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [23:31:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 44 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:23]wFMCommunicate OK [23:31:23]SAM_PROTO_GetFieldsCounters done [23:31:23]requested_item shift.num is exist - process it [23:31:23]requested_item shift.opened is exist - process it [23:31:23]req_shift_opened [23:31:23]FM_GetShiftState [23:31:23]SAM_PROTO_GetShiftState [23:31:23]wFMCommunicate request_size=4 [23:31:23]MH_SAM_APDU [23:31:23]CAPDU: 80 13 01 00 [23:31:23]Write to MH i2c: E2 08 00 7C 16 80 13 01 00 00 00 00 00 0F [23:31:23]Write i2c OK [23:31:23]MH_I2C_Read... [23:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:23]Read from MH i2c: E2 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: E2 0E 00 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: E2 0E 00 7C 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D2 [23:31:23]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [23:31:23]wFMCommunicate OK [23:31:23]SAM_PROTO_GetShiftState done [23:31:23]FM_GetShiftState done [23:31:23]req_shift_opened done [23:31:23]requested_item shift.open_date is exist - process it [23:31:23]req_shift_open_date [23:31:23]req_shift_open_date done [23:31:23]produce_requested_data done [23:31:23]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149060,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [23:31:23]process_action_free close_receipt [23:31:23]json_value_free [23:31:23]json_value_free done [23:31:23]process_json_proto returns [23:31:23]Send response to host [23:31:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149060,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [23:31:23]free response buf [23:31:23]execute_script done [23:31:23]execute_script returns [23:31:23]free content buf [23:31:23]Sock 9.Close socket [23:31:23]Sock 9.Thread stoped [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:14]accept exits with 7 [23:45:14]New connection [23:45:14]New thread 3067075940 created [23:45:14]Thread 3067219300 joined [23:45:14]Waiting for new connection... [23:45:14] Sock 7.Parse request [23:45:14]Sock 7.Check first char [23:45:14]Sock 7.First char is OK [23:45:14]request: POST /json_proto HTTP/1.0 [23:45:14]Method: POST [23:45:14]URL: /json_proto [23:45:14]Method is POST - this is cgi request [23:45:14]url: /json_proto [23:45:14]query_string will be loaded in cgi processing [23:45:14]execute_cgi json_proto POST (null) [23:45:14]execute_cgi path=json_proto method=POST [23:45:14]POST find Content-Length [23:45:14]Host: 172.17.38.4:8080 [23:45:14]Content-Length: 677 [23:45:14]Content-Type: application/json [23:45:14] [23:45:14]POST finish read [23:45:14]Found Content-Length = 677 [23:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:14]execute_script... [23:45: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)979989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:14]POST & json_proto [23:45:14]process_json_proto [23:45:14]json parsed OK: [23:45:14]protocol is kg_v1.0 [23:45:14]action value=close_receipt [23:45:14]process_action close_receipt [23:45:14]cmd_close_receipt [23:45:14]MH_GetDate [23:45:14]Write to MH i2c: F0 00 00 7D 16 82 [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: F0 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: F0 09 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: F0 09 00 7D 16 00 0B A7 5F 66 CC 51 87 64 0A [23:45:14]GetLastDocTimeStamp 1717543879 [23:45:14]current date 1717544715 [23:45:14]FM_GetShiftState [23:45:14]SAM_PROTO_GetShiftState [23:45:14]wFMCommunicate request_size=4 [23:45:14]MH_SAM_APDU [23:45:14]CAPDU: 80 13 01 00 [23:45:14]Write to MH i2c: E2 08 00 7E 16 80 13 01 00 00 00 00 00 11 [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:14]Read from MH i2c: E2 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 0E 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: E2 0E 00 7E 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 D4 [23:45:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [23:45:14]wFMCommunicate OK [23:45:14]SAM_PROTO_GetShiftState done [23:45:14]FM_GetShiftState done [23:45:14]opened in 1717460629 [23:45:14]opened+sec_in_day 1717547029 [23:45:14]quantity*price = 50041 [23:45:14]sum+1 = 50042 [23:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 400 04.06.2024 23:45 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149061 ФПД: 140710360212723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T234515&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149061&fm=140710360212723&tin=02508201610067®Number=0000000000092720&sum=50000 [23:45:15]StoreToDocumentArchive [23:45:15]shift 368 fd 149061 [23:45:15]save to /storage/0368/doc_00149061 [23:45:15]save last doc name /storage/0368/doc_00149061 to /storage/kkm_last_doc_name [23:45:15]save OK [23:45:15]Clear old archive folders... [23:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:45:15]tlvbuf is 00997680 [23:45:15]SAM_PROTO_ClearQueue [23:45:15]wFMCommunicate request_size=4 [23:45:15]MH_SAM_APDU [23:45:15]CAPDU: 80 09 00 00 [23:45:15]Write to MH i2c: E2 08 00 8B 16 80 09 00 00 00 00 00 00 13 [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:15]Read from MH i2c: E2 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 03 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 03 00 8B 16 00 90 00 15 [23:45:15]RAPDU: 90 00 [23:45:15]wFMCommunicate OK [23:45:15]SAM_PROTO_ClearQueue done [23:45:15]KKMCreateOFDPacket [23:45:15]OFDProtocolAddRootSTLVToBuf [23:45:15]FM_MakeSignedData [23:45:15]FM_MakeSignedData [23:45:15]SAM_PROTO_SignData [23:45:15]wFMCommunicate request_size=4 [23:45:15]MH_SAM_APDU [23:45:15]CAPDU: 80 0D 01 02 [23:45:15]Write to MH i2c: E2 08 00 8C 16 80 0D 01 02 00 00 00 00 1B [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:15]Read from MH i2c: E2 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 03 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 03 00 8C 16 00 90 00 16 [23:45:15]RAPDU: 90 00 [23:45:15]wFMCommunicate OK [23:45:15]wFMCommunicate request_size=255 [23:45:15]MH_SAM_APDU [23:45:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 0B A7 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 45 46 02 00 35 04 06 00 7F [23:45:15]Write to MH i2c: E2 02 01 8D 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 0B A7 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 45 46 02 00 35 04 06 00 7F 00 00 2A [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:15]Read from MH i2c: E2 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 03 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 03 00 8D 16 00 90 00 17 [23:45:15]RAPDU: 90 00 [23:45:15]wFMCommunicate OK [23:45:15]wFMCommunicate request_size=10 [23:45:15]MH_SAM_APDU [23:45:15]CAPDU: 80 0D 02 02 05 F9 AF 09 64 F3 [23:45:15]Write to MH i2c: E2 0D 00 8E 16 80 0D 02 02 05 00 F9 AF 09 64 F3 00 00 30 [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:15]Read from MH i2c: E2 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 03 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 03 00 8E 16 00 90 00 18 [23:45:15]RAPDU: 90 00 [23:45:15]wFMCommunicate OK [23:45:15]wFMCommunicate request_size=4 [23:45:15]MH_SAM_APDU [23:45:15]CAPDU: 80 0D 03 02 [23:45:15]Write to MH i2c: E2 08 00 8F 16 80 0D 03 02 00 00 00 00 20 [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:15]Read from MH i2c: E2 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 0B 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 0B 00 8F 16 00 1D 7F 1D 47 AB 7A 74 12 90 00 CC [23:45:15]RAPDU: 1D 7F 1D 47 AB 7A 74 12 90 00 [23:45:15]wFMCommunicate OK [23:45:15]SAM_PROTO_SignData done [23:45:15]FM_MakeSignedData done [23:45:15]CreateOFDProtocolMessage [23:45:15]wFMCommunicate request_size=4 [23:45:15]MH_SAM_APDU [23:45:15]CAPDU: 80 11 00 00 [23:45:15]Write to MH i2c: E2 08 00 90 16 80 11 00 00 00 00 00 00 20 [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:15]Read from MH i2c: E2 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 17 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 17 00 90 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 73 [23:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:45:15]wFMCommunicate OK [23:45:15]CreateOFDProtocolMessage done [23:45:15]OFDSenderStorePacket 149061 [23:45:15]StoreOFDPacket docnum=149061 [23:45:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 13 8E 07 01 4D 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 0B A7 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 45 46 02 00 35 04 06 00 7F F9 AF 09 64 F3 1D 7F 1D 47 AB 7A 74 12 [23:45:15]CheckFolder [23:45:15]dirname=/storage/ofd_packets [23:45:15]CheckFolder done [23:45:15]ProducePacketName [23:45:15]name=ofd_packets/00149061 [23:45:15]NVStorageSaveData ofd_packets/00149061 [23:45:15]File name is /storage/ofd_packets/00149061 [23:45:15]Write 301 bytes [23:45:15]NVStorageSaveData done [23:45:15]OFDSenderStorePacket done [23:45:15]KKMCreateOFDPacket done [23:45:15]NVStorageSaveData kkm_last_timestamp [23:45:15]File name is /storage/kkm_last_timestamp [23:45:15]Write 4 bytes [23:45:15]NVStorageSaveData done [23:45:15]ExternCall_PrintAddStr [23:45:15]wPrintStart [23:45:15]Write to MH i2c: 01 00 00 91 16 A7 [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: 01 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: 01 07 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: 01 07 00 91 16 00 00 00 00 00 FF 0F BC [23:45:15]RasterBufferAndPrint [23:45:15]line Счет N : (1)979989 [23:45:15]line ИНН: 02508201610067 [23:45:15]line Контрольно-Кассовый Чек [23:45:15]line ПРОДАЖА [23:45:15]line ТРК (МРК, ГНК) : 31 [23:45:15]line Товар: 2710124130 [23:45:15]line Аи-92-К-5 [23:45:15]line 7.480 * 66.90 [23:45:15]line = 500.41 [23:45:15]line НДС 12% НСП 1% [23:45:15]line > о реализуемом товаре [23:45:15]line ОКРУГЛЕНИЕ: -0.41 [23:45:15]line ИТОГО: 500.00 [23:45:15]line Внесено: 500.00 [23:45:15]line СДАЧА: 0.00 [23:45:15]line НСП 1% : 4.43 [23:45:15]line НДС 12% : 53.14 [23:45:15]line Наличными: 500.00 [23:45:15]line Безнал.: 0.00 [23:45:15]line Место: АЗС № 68 "Партнер Нефть" [23:45:15]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:45:15]line СНО: Общий режим [23:45:15]line Чек 400 04.06.2024 23:45 [23:45:15]line Смена: 368 ФФД: 1.0 [23:45:15]line ЗНМ: 0300000035 [23:45:15]line РНМ: 0000000000092720 [23:45:15]line Версия ККМ: 001 [23:45:15]line ФМ: 0000000000875057 [23:45:15]line ФД: 149061 [23:45:15]line ФПД: 140710360212723 [23:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T234515&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149061&fm=140710360212723&tin=02508201610067®Number=0000000000092720&sum=50000 [23:45:16]OFD Sender: Processing packet 149061 [packets to send 100, broken 99] [23:45:16]ProducePacketName [23:45:16]name=ofd_packets/00149061 [23:45:16]OFD Sender: To server: pG, [23:45:16]CommunicateWithHost lk.salyk.kg:30040 [23:45:16]ConnectInit lk.salyk.kg [23:45:16]written 0, free lines is 4095 [23:45:16]Connected sock=10 [23:45:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 13 8E 07 01 4D 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 0B A7 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 45 46 02 00 35 04 06 00 7F F9 AF 09 64 F3 1D 7F 1D 47 AB 7A 74 12 [23:45:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8E F8 47 00 9E 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 45 46 02 00 F4 03 04 00 2D 4E 5F 66 B6 04 01 00 00 72 2A 7E 84 60 D0 9C 15 [23:45:16]CommunicateWithHost err = 0 [23:45:16]CheckOFDResponse [23:45:16]1017 (14) - 77093643461234 [23:45:16]1041 (16) - 0000000000875057 [23:45:16]1040 (4) - 149061 [23:45:16]1012 (4) - 04.06.2024 17:26 [23:45:16]1206 (1) - 0 [23:45:16]OFD Sender: Remove packet 149061 [23:45:16]ProducePacketName [23:45:16]name=ofd_packets/00149061 [23:45:16]NVStorageDeleteData [23:45:16]Write to MH i2c: 01 00 00 BC 16 D2 [23:45:16]Write i2c OK [23:45:16]MH_I2C_Read... [23:45:16]Read from MH i2c: 01 [23:45:16]MH_I2C_Read... [23:45:16]Read from MH i2c: 01 07 00 [23:45:16]MH_I2C_Read... [23:45:16]Read from MH i2c: 01 07 00 BC 16 00 00 00 00 00 63 0C 48 [23:45:16]RasterBufferAndPrint [23:45:16]line [23:45:16]line [23:45:16]line [23:45:16]line [23:45:16]line [23:45:16]written 0, free lines is 3176 [23:45:16]MH_Cut [23:45:16]Write to MH i2c: D1 01 00 C3 16 01 AB [23:45:16]Write i2c OK [23:45:16]MH_I2C_Read... [23:45:16]Read from MH i2c: D1 [23:45:16]MH_I2C_Read... [23:45:16]Read from MH i2c: D1 01 00 [23:45:16]MH_I2C_Read... [23:45:16]Read from MH i2c: D1 01 00 C3 16 00 AA [23:45:16]Write to MH i2c: 01 00 00 C4 16 DA [23:45:16]Write i2c OK [23:45:16]MH_I2C_Read... [23:45:16]OFD Sender: No OFD packet to send [23:45:17]*** Cut start [23:45:17]*** Partial cut [23:45:17]*** CUTSNS_PIN = 1 [23:45:17]*** CUTSNS_PIN = 0 [23:45:18]*** Brake cut motor [23:45:18]Read from MH i2c: 01 [23:45:18]MH_I2C_Read... [23:45:18]*** Stop cut motor [23:45:18]*** Cut end [23:45:18]Read from MH i2c: 01 07 00 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: 01 07 00 C4 16 00 00 00 00 00 FF 0F EF [23:45:18]process_action close_receipt done [23:45:18]requested_data is exist [23:45:18]produce_requested_data [23:45:18]requested_item fm.sn is exist - process it [23:45:18]wFMCommunicate request_size=4 [23:45:18]MH_SAM_APDU [23:45:18]CAPDU: 80 11 00 00 [23:45:18]Write to MH i2c: E2 08 00 C5 16 80 11 00 00 00 00 00 00 55 [23:45:18]Write i2c OK [23:45:18]MH_I2C_Read... [23:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:18]Read from MH i2c: E2 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: E2 17 00 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: E2 17 00 C5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A8 [23:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:45:18]wFMCommunicate OK [23:45:18]requested_item fd.num is exist - process it [23:45:18]SAM_PROTO_GetFieldsCounters [23:45:18]wFMCommunicate request_size=4 [23:45:18]MH_SAM_APDU [23:45:18]CAPDU: 80 13 00 00 [23:45:18]Write to MH i2c: E2 08 00 C6 16 80 13 00 00 00 00 00 00 58 [23:45:18]Write i2c OK [23:45:18]MH_I2C_Read... [23:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:18]Read from MH i2c: E2 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: E2 62 00 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: E2 62 00 C6 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 45 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [23:45:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 45 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:18]wFMCommunicate OK [23:45:18]SAM_PROTO_GetFieldsCounters done [23:45:18]requested_item shift.num is exist - process it [23:45:18]requested_item shift.opened is exist - process it [23:45:18]req_shift_opened [23:45:18]FM_GetShiftState [23:45:18]SAM_PROTO_GetShiftState [23:45:18]wFMCommunicate request_size=4 [23:45:18]MH_SAM_APDU [23:45:18]CAPDU: 80 13 01 00 [23:45:18]Write to MH i2c: E2 08 00 C7 16 80 13 01 00 00 00 00 00 5A [23:45:18]Write i2c OK [23:45:18]MH_I2C_Read... [23:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:18]Read from MH i2c: E2 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: E2 0E 00 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: E2 0E 00 C7 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1D [23:45:18]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [23:45:18]wFMCommunicate OK [23:45:18]SAM_PROTO_GetShiftState done [23:45:18]FM_GetShiftState done [23:45:18]req_shift_opened done [23:45:18]requested_item shift.open_date is exist - process it [23:45:18]req_shift_open_date [23:45:18]req_shift_open_date done [23:45:18]produce_requested_data done [23:45:18]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149061,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [23:45:18]process_action_free close_receipt [23:45:18]json_value_free [23:45:18]json_value_free done [23:45:18]process_json_proto returns [23:45:18]Send response to host [23:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149061,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [23:45:18]free response buf [23:45:18]execute_script done [23:45:18]execute_script returns [23:45:18]free content buf [23:45:18]Sock 7.Close socket [23:45:18]Sock 7.Thread stoped [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:10]accept exits with 9 [23:49:10]New connection [23:49:10]New thread 3067219300 created [23:49:10]Thread 3067075940 joined [23:49:10]Waiting for new connection... [23:49:10] Sock 9.Parse request [23:49:10]Sock 9.Check first char [23:49:10]Sock 9.First char is OK [23:49:10]request: POST /json_proto HTTP/1.0 [23:49:10]Method: POST [23:49:10]URL: /json_proto [23:49:10]Method is POST - this is cgi request [23:49:10]url: /json_proto [23:49:10]query_string will be loaded in cgi processing [23:49:10]execute_cgi json_proto POST (null) [23:49:10]execute_cgi path=json_proto method=POST [23:49:10]POST find Content-Length [23:49:10]Host: 172.17.38.4:8080 [23:49:10]Content-Length: 679 [23:49:10]Content-Type: application/json [23:49:10] [23:49:10]POST finish read [23:49:10]Found Content-Length = 679 [23:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [23:49:10]execute_script... [23:49: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)979990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [23:49:10]POST & json_proto [23:49:10]process_json_proto [23:49:10]json parsed OK: [23:49:10]protocol is kg_v1.0 [23:49:10]action value=close_receipt [23:49:10]process_action close_receipt [23:49:10]cmd_close_receipt [23:49:10]MH_GetDate [23:49:10]Write to MH i2c: F0 00 00 C8 16 CD [23:49:10]Write i2c OK [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: F0 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: F0 09 00 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: F0 09 00 C8 16 00 F7 A7 5F 66 CC 51 87 64 41 [23:49:10]GetLastDocTimeStamp 1717544715 [23:49:10]current date 1717544951 [23:49:10]FM_GetShiftState [23:49:10]SAM_PROTO_GetShiftState [23:49:10]wFMCommunicate request_size=4 [23:49:10]MH_SAM_APDU [23:49:10]CAPDU: 80 13 01 00 [23:49:10]Write to MH i2c: E2 08 00 C9 16 80 13 01 00 00 00 00 00 5C [23:49:10]Write i2c OK [23:49:10]MH_I2C_Read... [23:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:10]Read from MH i2c: E2 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 0E 00 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 0E 00 C9 16 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 1F [23:49:10]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [23:49:10]wFMCommunicate OK [23:49:10]SAM_PROTO_GetShiftState done [23:49:10]FM_GetShiftState done [23:49:10]opened in 1717460629 [23:49:10]opened+sec_in_day 1717547029 [23:49:10]quantity*price = 100018 [23:49:10]sum+1 = 100020 [23:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 401 04.06.2024 23:49 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149062 ФПД: 46903935343790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T234911&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149062&fm=46903935343790&tin=02508201610067®Number=0000000000092720&sum=100000 [23:49:11]StoreToDocumentArchive [23:49:11]shift 368 fd 149062 [23:49:11]save to /storage/0368/doc_00149062 [23:49:11]save last doc name /storage/0368/doc_00149062 to /storage/kkm_last_doc_name [23:49:11]save OK [23:49:11]Clear old archive folders... [23:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:49:11]tlvbuf is 009464B0 [23:49:11]SAM_PROTO_ClearQueue [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 09 00 00 [23:49:11]Write to MH i2c: E2 08 00 D6 16 80 09 00 00 00 00 00 00 5E [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 03 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 03 00 D6 16 00 90 00 60 [23:49:11]RAPDU: 90 00 [23:49:11]wFMCommunicate OK [23:49:11]SAM_PROTO_ClearQueue done [23:49:11]KKMCreateOFDPacket [23:49:11]OFDProtocolAddRootSTLVToBuf [23:49:11]FM_MakeSignedData [23:49:11]FM_MakeSignedData [23:49:11]SAM_PROTO_SignData [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 0D 01 02 [23:49:11]Write to MH i2c: E2 08 00 D7 16 80 0D 01 02 00 00 00 00 66 [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 03 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 03 00 D7 16 00 90 00 61 [23:49:11]RAPDU: 90 00 [23:49:11]wFMCommunicate OK [23:49:11]wFMCommunicate request_size=255 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 91 01 00 00 F4 03 04 00 F7 A7 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 46 46 02 00 35 04 06 00 2A A8 AC 67 [23:49:11]Write to MH i2c: E2 02 01 D8 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 91 01 00 00 F4 03 04 00 F7 A7 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 46 46 02 00 35 04 06 00 2A A8 AC 67 00 00 A0 [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 03 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 03 00 D8 16 00 90 00 62 [23:49:11]RAPDU: 90 00 [23:49:11]wFMCommunicate OK [23:49:11]wFMCommunicate request_size=7 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 0D 02 02 02 9C AE [23:49:11]Write to MH i2c: E2 0A 00 D9 16 80 0D 02 02 02 00 9C AE 00 00 B7 [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 03 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 03 00 D9 16 00 90 00 63 [23:49:11]RAPDU: 90 00 [23:49:11]wFMCommunicate OK [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 0D 03 02 [23:49:11]Write to MH i2c: E2 08 00 DA 16 80 0D 03 02 00 00 00 00 6B [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 0B 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 0B 00 DA 16 00 30 5C 65 44 83 94 CD 49 90 00 CE [23:49:11]RAPDU: 30 5C 65 44 83 94 CD 49 90 00 [23:49:11]wFMCommunicate OK [23:49:11]SAM_PROTO_SignData done [23:49:11]FM_MakeSignedData done [23:49:11]CreateOFDProtocolMessage [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 11 00 00 [23:49:11]Write to MH i2c: E2 08 00 DB 16 80 11 00 00 00 00 00 00 6B [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 17 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 17 00 DB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BE [23:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:49:11]wFMCommunicate OK [23:49:11]CreateOFDProtocolMessage done [23:49:11]OFDSenderStorePacket 149062 [23:49:11]StoreOFDPacket docnum=149062 [23:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 34 E1 04 01 50 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 91 01 00 00 F4 03 04 00 F7 A7 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 46 46 02 00 35 04 06 00 2A A8 AC 67 9C AE 30 5C 65 44 83 94 CD 49 [23:49:11]CheckFolder [23:49:11]dirname=/storage/ofd_packets [23:49:11]CheckFolder done [23:49:11]ProducePacketName [23:49:11]name=ofd_packets/00149062 [23:49:11]NVStorageSaveData ofd_packets/00149062 [23:49:11]File name is /storage/ofd_packets/00149062 [23:49:11]Write 298 bytes [23:49:11]NVStorageSaveData done [23:49:11]OFDSenderStorePacket done [23:49:11]KKMCreateOFDPacket done [23:49:11]NVStorageSaveData kkm_last_timestamp [23:49:11]File name is /storage/kkm_last_timestamp [23:49:11]Write 4 bytes [23:49:11]NVStorageSaveData done [23:49:11]ExternCall_PrintAddStr [23:49:11]wPrintStart [23:49:11]Write to MH i2c: 01 00 00 DC 16 F2 [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: 01 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: 01 07 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: 01 07 00 DC 16 00 00 00 00 00 FF 0F 07 [23:49:11]RasterBufferAndPrint [23:49:11]line Счет N : (1)979990 [23:49:11]line ИНН: 02508201610067 [23:49:11]line Контрольно-Кассовый Чек [23:49:11]line ПРОДАЖА [23:49:11]line ТРК (МРК, ГНК) : 51 [23:49:11]line Товар: 2710194210 [23:49:11]line ДТ-К-5 [23:49:11]line 13.720 * 72.90 [23:49:11]line = 1000.19 [23:49:11]line НДС 12% НСП 1% [23:49:11]line > о реализуемом товаре [23:49:11]line ОКРУГЛЕНИЕ: -0.19 [23:49:11]line ИТОГО: 1000.00 [23:49:11]line Внесено: 1000.00 [23:49:11]line СДАЧА: 0.00 [23:49:11]line НСП 1% : 8.85 [23:49:11]line НДС 12% : 106.21 [23:49:11]line Наличными: 1000.00 [23:49:11]line Безнал.: 0.00 [23:49:11]line Место: АЗС № 68 "Партнер Нефть" [23:49:11]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:49:11]line СНО: Общий режим [23:49:11]line Чек 401 04.06.2024 23:49 [23:49:11]line Смена: 368 ФФД: 1.0 [23:49:11]line ЗНМ: 0300000035 [23:49:11]line РНМ: 0000000000092720 [23:49:11]line Версия ККМ: 001 [23:49:11]line ФМ: 0000000000875057 [23:49:12]line ФД: 149062 [23:49:12]line ФПД: 46903935343790 [23:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T234911&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149062&fm=46903935343790&tin=02508201610067®Number=0000000000092720&sum=100000 [23:49:12]OFD Sender: Processing packet 149062 [packets to send 100, broken 99] [23:49:12]ProducePacketName [23:49:12]name=ofd_packets/00149062 [23:49:12]OFD Sender: To server: pG, [23:49:12]CommunicateWithHost lk.salyk.kg:30040 [23:49:12]ConnectInit lk.salyk.kg [23:49:12]written 0, free lines is 4095 [23:49:12]Connected sock=10 [23:49:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 34 E1 04 01 50 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 91 01 00 00 F4 03 04 00 F7 A7 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 46 46 02 00 35 04 06 00 2A A8 AC 67 9C AE 30 5C 65 44 83 94 CD 49 [23:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 3B 95 47 00 B6 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 38 37 35 30 35 37 10 04 04 00 46 46 02 00 F4 03 04 00 19 4F 5F 66 B6 04 01 00 00 F0 C9 E4 69 6C 65 B1 1F [23:49:12]CommunicateWithHost err = 0 [23:49:12]CheckOFDResponse [23:49:12]1017 (14) - 77093643461234 [23:49:12]1041 (16) - 0000000000875057 [23:49:12]1040 (4) - 149062 [23:49:12]1012 (4) - 04.06.2024 17:30 [23:49:12]1206 (1) - 0 [23:49:12]OFD Sender: Remove packet 149062 [23:49:12]ProducePacketName [23:49:12]name=ofd_packets/00149062 [23:49:12]NVStorageDeleteData [23:49:12]Write to MH i2c: 01 00 00 07 17 1E [23:49:12]Write i2c OK [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: 01 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: 01 07 00 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: 01 07 00 07 17 00 00 00 00 00 66 0C 97 [23:49:12]RasterBufferAndPrint [23:49:12]line [23:49:12]line [23:49:12]line [23:49:12]line [23:49:12]line [23:49:12]written 0, free lines is 3178 [23:49:12]MH_Cut [23:49:12]Write to MH i2c: D1 01 00 0E 17 01 F7 [23:49:12]Write i2c OK [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: D1 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: D1 01 00 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: D1 01 00 0E 17 00 F6 [23:49:12]Write to MH i2c: 01 00 00 0F 17 26 [23:49:12]Write i2c OK [23:49:12]MH_I2C_Read... [23:49:12]OFD Sender: No OFD packet to send [23:49:13]*** Cut start [23:49:13]*** Partial cut [23:49:13]*** CUTSNS_PIN = 1 [23:49:13]*** CUTSNS_PIN = 0 [23:49:14]*** Brake cut motor [23:49:14]Read from MH i2c: 01 [23:49:14]MH_I2C_Read... [23:49:14]*** Stop cut motor [23:49:14]*** Cut end [23:49:14]Read from MH i2c: 01 07 00 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: 01 07 00 0F 17 00 00 00 00 00 FF 0F 3B [23:49:14]process_action close_receipt done [23:49:14]requested_data is exist [23:49:14]produce_requested_data [23:49:14]requested_item fm.sn is exist - process it [23:49:14]wFMCommunicate request_size=4 [23:49:14]MH_SAM_APDU [23:49:14]CAPDU: 80 11 00 00 [23:49:14]Write to MH i2c: E2 08 00 10 17 80 11 00 00 00 00 00 00 A1 [23:49:14]Write i2c OK [23:49:14]MH_I2C_Read... [23:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:14]Read from MH i2c: E2 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 17 00 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 17 00 10 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F4 [23:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:49:14]wFMCommunicate OK [23:49:14]requested_item fd.num is exist - process it [23:49:14]SAM_PROTO_GetFieldsCounters [23:49:14]wFMCommunicate request_size=4 [23:49:14]MH_SAM_APDU [23:49:14]CAPDU: 80 13 00 00 [23:49:14]Write to MH i2c: E2 08 00 11 17 80 13 00 00 00 00 00 00 A4 [23:49:14]Write i2c OK [23:49:14]MH_I2C_Read... [23:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:14]Read from MH i2c: E2 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 62 00 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 62 00 11 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 46 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [23:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 46 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:14]wFMCommunicate OK [23:49:14]SAM_PROTO_GetFieldsCounters done [23:49:14]requested_item shift.num is exist - process it [23:49:14]requested_item shift.opened is exist - process it [23:49:14]req_shift_opened [23:49:14]FM_GetShiftState [23:49:14]SAM_PROTO_GetShiftState [23:49:14]wFMCommunicate request_size=4 [23:49:14]MH_SAM_APDU [23:49:14]CAPDU: 80 13 01 00 [23:49:14]Write to MH i2c: E2 08 00 12 17 80 13 01 00 00 00 00 00 A6 [23:49:14]Write i2c OK [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 [23:49:14]MH_I2C_Read... [23:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:14]Read from MH i2c: E2 0E 00 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 0E 00 12 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 69 [23:49:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [23:49:14]wFMCommunicate OK [23:49:14]SAM_PROTO_GetShiftState done [23:49:14]FM_GetShiftState done [23:49:14]req_shift_opened done [23:49:14]requested_item shift.open_date is exist - process it [23:49:14]req_shift_open_date [23:49:14]req_shift_open_date done [23:49:14]produce_requested_data done [23:49:14]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149062,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [23:49:14]process_action_free close_receipt [23:49:14]json_value_free [23:49:14]json_value_free done [23:49:14]process_json_proto returns [23:49:14]Send response to host [23:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149062,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [23:49:14]free response buf [23:49:14]execute_script done [23:49:14]execute_script returns [23:49:14]free content buf [23:49:14]Sock 9.Close socket [23:49:14]Sock 9.Thread stoped [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [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:20]accept exits with 7 [00:00:20]New connection [00:00:20]New thread 3067075940 created [00:00:20]Thread 3067219300 joined [00:00:20]Waiting for new connection... [00:00:20] Sock 7.Parse request [00:00:20]Sock 7.Check first char [00:00:20]Sock 7.First char is OK [00:00:20]request: POST /json_proto HTTP/1.0 [00:00:20]Method: POST [00:00:20]URL: /json_proto [00:00:20]Method is POST - this is cgi request [00:00:20]url: /json_proto [00:00:20]query_string will be loaded in cgi processing [00:00:20]execute_cgi json_proto POST (null) [00:00:20]execute_cgi path=json_proto method=POST [00:00:20]POST find Content-Length [00:00:20]Host: 172.17.38.4:8080 [00:00:20]Content-Length: 682 [00:00:20]Content-Type: application/json [00:00:20] [00:00:20]POST finish read [00:00:20]Found Content-Length = 682 [00:00:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:20]execute_script... [00:00: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)979991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:20]POST & json_proto [00:00:20]process_json_proto [00:00:20]json parsed OK: [00:00:20]protocol is kg_v1.0 [00:00:20]action value=close_receipt [00:00:20]process_action close_receipt [00:00:20]cmd_close_receipt [00:00:20]MH_GetDate [00:00:20]Write to MH i2c: F0 00 00 13 17 19 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: F0 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: F0 09 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: F0 09 00 13 17 00 95 AA 5F 66 CC 51 87 64 2E [00:00:20]GetLastDocTimeStamp 1717544951 [00:00:20]current date 1717545621 [00:00:20]FM_GetShiftState [00:00:20]SAM_PROTO_GetShiftState [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 13 01 00 [00:00:20]Write to MH i2c: E2 08 00 14 17 80 13 01 00 00 00 00 00 A8 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 0E 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 0E 00 14 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 6B [00:00:20]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:00:20]wFMCommunicate OK [00:00:20]SAM_PROTO_GetShiftState done [00:00:20]FM_GetShiftState done [00:00:20]opened in 1717460629 [00:00:20]opened+sec_in_day 1717547029 [00:00:20]quantity*price = 100015 [00:00:20]sum+1 = 100017 [00:00:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 402 05.06.2024 00:00 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149063 ФПД: 140152616814418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T000021&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149063&fm=140152616814418&tin=02508201610067®Number=0000000000092720&sum=100000 [00:00:21]StoreToDocumentArchive [00:00:21]shift 368 fd 149063 [00:00:21]save to /storage/0368/doc_00149063 [00:00:21]save last doc name /storage/0368/doc_00149063 to /storage/kkm_last_doc_name [00:00:21]save OK [00:00:21]Clear old archive folders... [00:00:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:00:21]tlvbuf is B6F99A70 [00:00:21]SAM_PROTO_ClearQueue [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 09 00 00 [00:00:21]Write to MH i2c: E2 08 00 21 17 80 09 00 00 00 00 00 00 AA [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 21 17 00 90 00 AC [00:00:21]RAPDU: 90 00 [00:00:21]wFMCommunicate OK [00:00:21]SAM_PROTO_ClearQueue done [00:00:21]KKMCreateOFDPacket [00:00:21]OFDProtocolAddRootSTLVToBuf [00:00:21]FM_MakeSignedData [00:00:21]FM_MakeSignedData [00:00:21]SAM_PROTO_SignData [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 0D 01 02 [00:00:21]Write to MH i2c: E2 08 00 22 17 80 0D 01 02 00 00 00 00 B2 [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 22 17 00 90 00 AD [00:00:21]RAPDU: 90 00 [00:00:21]wFMCommunicate OK [00:00:21]wFMCommunicate request_size=255 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 95 AA 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 47 46 02 00 35 04 06 00 7F [00:00:21]Write to MH i2c: E2 02 01 23 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 95 AA 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 47 46 02 00 35 04 06 00 7F 00 00 4C [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 23 17 00 90 00 AE [00:00:21]RAPDU: 90 00 [00:00:21]wFMCommunicate OK [00:00:21]wFMCommunicate request_size=10 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 0D 02 02 05 77 D2 F0 87 52 [00:00:21]Write to MH i2c: E2 0D 00 24 17 80 0D 02 02 05 00 77 D2 F0 87 52 00 00 D1 [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 03 00 24 17 00 90 00 AF [00:00:21]RAPDU: 90 00 [00:00:21]wFMCommunicate OK [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 0D 03 02 [00:00:21]Write to MH i2c: E2 08 00 25 17 80 0D 03 02 00 00 00 00 B7 [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 0B 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 0B 00 25 17 00 BD E1 1E 95 BC A9 39 49 90 00 F0 [00:00:21]RAPDU: BD E1 1E 95 BC A9 39 49 90 00 [00:00:21]wFMCommunicate OK [00:00:21]SAM_PROTO_SignData done [00:00:21]FM_MakeSignedData done [00:00:21]CreateOFDProtocolMessage [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 11 00 00 [00:00:21]Write to MH i2c: E2 08 00 26 17 80 11 00 00 00 00 00 00 B7 [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 17 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 17 00 26 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0A [00:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:00:21]wFMCommunicate OK [00:00:21]CreateOFDProtocolMessage done [00:00:21]OFDSenderStorePacket 149063 [00:00:21]StoreOFDPacket docnum=149063 [00:00:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 37 F3 07 01 C5 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 95 AA 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 47 46 02 00 35 04 06 00 7F 77 D2 F0 87 52 BD E1 1E 95 BC A9 39 49 [00:00:21]CheckFolder [00:00:21]dirname=/storage/ofd_packets [00:00:21]CheckFolder done [00:00:21]ProducePacketName [00:00:21]name=ofd_packets/00149063 [00:00:21]NVStorageSaveData ofd_packets/00149063 [00:00:21]File name is /storage/ofd_packets/00149063 [00:00:21]Write 301 bytes [00:00:21]NVStorageSaveData done [00:00:21]OFDSenderStorePacket done [00:00:21]KKMCreateOFDPacket done [00:00:21]NVStorageSaveData kkm_last_timestamp [00:00:21]File name is /storage/kkm_last_timestamp [00:00:21]Write 4 bytes [00:00:21]NVStorageSaveData done [00:00:21]ExternCall_PrintAddStr [00:00:21]wPrintStart [00:00:21]Write to MH i2c: 01 00 00 27 17 3E [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: 01 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: 01 07 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: 01 07 00 27 17 00 00 00 00 00 FF 0F 53 [00:00:21]RasterBufferAndPrint [00:00:21]line Счет N : (1)979991 [00:00:21]line ИНН: 02508201610067 [00:00:21]line Контрольно-Кассовый Чек [00:00:21]line ПРОДАЖА [00:00:21]line ТРК (МРК, ГНК) : 31 [00:00:21]line Товар: 2710124130 [00:00:21]line Аи-92-К-5 [00:00:21]line 14.950 * 66.90 [00:00:21]line = 1000.16 [00:00:21]line НДС 12% НСП 1% [00:00:21]line > о реализуемом товаре [00:00:21]line ОКРУГЛЕНИЕ: -0.16 [00:00:21]line ИТОГО: 1000.00 [00:00:21]line Внесено: 1000.00 [00:00:21]line СДАЧА: 0.00 [00:00:21]line НСП 1% : 8.85 [00:00:21]line НДС 12% : 106.21 [00:00:21]line Наличными: 1000.00 [00:00:21]line Безнал.: 0.00 [00:00:21]line Место: АЗС № 68 "Партнер Нефть" [00:00:21]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:00:21]line СНО: Общий режим [00:00:21]line Чек 402 05.06.2024 00:00 [00:00:21]line Смена: 368 ФФД: 1.0 [00:00:21]line ЗНМ: 0300000035 [00:00:21]line РНМ: 0000000000092720 [00:00:21]line Версия ККМ: 001 [00:00:21]line ФМ: 0000000000875057 [00:00:21]line ФД: 149063 [00:00:21]line ФПД: 140152616814418 [00:00:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T000021&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149063&fm=140152616814418&tin=02508201610067®Number=0000000000092720&sum=100000 [00:00:22]OFD Sender: Processing packet 149063 [packets to send 100, broken 99] [00:00:22]ProducePacketName [00:00:22]name=ofd_packets/00149063 [00:00:22]OFD Sender: To server: pG, [00:00:22]CommunicateWithHost lk.salyk.kg:30040 [00:00:22]ConnectInit lk.salyk.kg [00:00:22]written 0, free lines is 4095 [00:00:22]Connected sock=10 [00:00:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 37 F3 07 01 C5 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 95 AA 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 47 46 02 00 35 04 06 00 7F 77 D2 F0 87 52 BD E1 1E 95 BC A9 39 49 [00:00:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C2 21 47 00 88 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 38 37 35 30 35 37 10 04 04 00 47 46 02 00 F4 03 04 00 B7 51 5F 66 B6 04 01 00 00 87 4C CA 7B 26 64 2D 69 [00:00:22]CommunicateWithHost err = 0 [00:00:22]CheckOFDResponse [00:00:22]1017 (14) - 77093643461234 [00:00:22]1041 (16) - 0000000000875057 [00:00:22]1040 (4) - 149063 [00:00:22]1012 (4) - 04.06.2024 17:41 [00:00:22]1206 (1) - 0 [00:00:22]OFD Sender: Remove packet 149063 [00:00:22]ProducePacketName [00:00:22]name=ofd_packets/00149063 [00:00:22]NVStorageDeleteData [00:00:22]Write to MH i2c: 01 00 00 52 17 69 [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: 01 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: 01 07 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: 01 07 00 52 17 00 00 00 00 00 5F 0C DB [00:00:22]RasterBufferAndPrint [00:00:22]line [00:00:22]line [00:00:22]line [00:00:22]line [00:00:22]line [00:00:22]written 0, free lines is 3170 [00:00:22]MH_Cut [00:00:22]Write to MH i2c: D1 01 00 59 17 01 42 [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: D1 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: D1 01 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: D1 01 00 59 17 00 41 [00:00:22]Write to MH i2c: 01 00 00 5A 17 71 [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]OFD Sender: No OFD packet to send [00:00:23]*** Cut start [00:00:23]*** Partial cut [00:00:23]*** CUTSNS_PIN = 1 [00:00:23]*** CUTSNS_PIN = 0 [00:00:24]*** Brake cut motor [00:00:24]Read from MH i2c: 01 [00:00:24]MH_I2C_Read... [00:00:24]*** Stop cut motor [00:00:24]*** Cut end [00:00:24]Read from MH i2c: 01 07 00 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: 01 07 00 5A 17 00 00 00 00 00 FF 0F 86 [00:00:24]process_action close_receipt done [00:00:24]requested_data is exist [00:00:24]produce_requested_data [00:00:24]requested_item fm.sn is exist - process it [00:00:24]wFMCommunicate request_size=4 [00:00:24]MH_SAM_APDU [00:00:24]CAPDU: 80 11 00 00 [00:00:24]Write to MH i2c: E2 08 00 5B 17 80 11 00 00 00 00 00 00 EC [00:00:24]Write i2c OK [00:00:24]MH_I2C_Read... [00:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:24]Read from MH i2c: E2 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 17 00 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 17 00 5B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3F [00:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:00:24]wFMCommunicate OK [00:00:24]requested_item fd.num is exist - process it [00:00:24]SAM_PROTO_GetFieldsCounters [00:00:24]wFMCommunicate request_size=4 [00:00:24]MH_SAM_APDU [00:00:24]CAPDU: 80 13 00 00 [00:00:24]Write to MH i2c: E2 08 00 5C 17 80 13 00 00 00 00 00 00 EF [00:00:24]Write i2c OK [00:00:24]MH_I2C_Read... [00:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:24]Read from MH i2c: E2 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 62 00 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 62 00 5C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 47 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [00:00:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 47 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:24]wFMCommunicate OK [00:00:24]SAM_PROTO_GetFieldsCounters done [00:00:24]requested_item shift.num is exist - process it [00:00:24]requested_item shift.opened is exist - process it [00:00:24]req_shift_opened [00:00:24]FM_GetShiftState [00:00:24]SAM_PROTO_GetShiftState [00:00:24]wFMCommunicate request_size=4 [00:00:24]MH_SAM_APDU [00:00:24]CAPDU: 80 13 01 00 [00:00:24]Write to MH i2c: E2 08 00 5D 17 80 13 01 00 00 00 00 00 F1 [00:00:24]Write i2c OK [00:00:24]MH_I2C_Read... [00:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:24]Read from MH i2c: E2 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 0E 00 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: E2 0E 00 5D 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B4 [00:00:24]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:00:24]wFMCommunicate OK [00:00:24]SAM_PROTO_GetShiftState done [00:00:24]FM_GetShiftState done [00:00:24]req_shift_opened done [00:00:24]requested_item shift.open_date is exist - process it [00:00:24]req_shift_open_date [00:00:24]req_shift_open_date done [00:00:24]produce_requested_data done [00:00:24]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149063,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [00:00:24]process_action_free close_receipt [00:00:24]json_value_free [00:00:24]json_value_free done [00:00:24]process_json_proto returns [00:00:24]Send response to host [00:00:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149063,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [00:00:24]free response buf [00:00:24]execute_script done [00:00:24]execute_script returns [00:00:24]free content buf [00:00:24]Sock 7.Close socket [00:00:24]Sock 7.Thread stoped [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01: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:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]accept exits with 9 [00:12:48]New connection [00:12:48]New thread 3067219300 created [00:12:48]Thread 3067075940 joined [00:12:48]Waiting for new connection... [00:12:48] Sock 9.Parse request [00:12:48]Sock 9.Check first char [00:12:48]Sock 9.First char is OK [00:12:48]request: POST /json_proto HTTP/1.0 [00:12:48]Method: POST [00:12:48]URL: /json_proto [00:12:48]Method is POST - this is cgi request [00:12:48]url: /json_proto [00:12:48]query_string will be loaded in cgi processing [00:12:48]execute_cgi json_proto POST (null) [00:12:48]execute_cgi path=json_proto method=POST [00:12:48]POST find Content-Length [00:12:48]Host: 172.17.38.4:8080 [00:12:48]Content-Length: 621 [00:12:48]Content-Type: application/json [00:12:48] [00:12:48]POST finish read [00:12:48]Found Content-Length = 621 [00:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11918", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:48]execute_script... [00:12:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11918", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:48]POST & json_proto [00:12:48]process_json_proto [00:12:48]json parsed OK: [00:12:48]protocol is kg_v1.0 [00:12:48]action value=close_receipt [00:12:48]process_action close_receipt [00:12:48]cmd_close_receipt [00:12:48]MH_GetDate [00:12:48]Write to MH i2c: F0 00 00 5E 17 64 [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: F0 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: F0 09 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: F0 09 00 5E 17 00 81 AD 5F 66 CC 51 87 64 68 [00:12:48]GetLastDocTimeStamp 1717545621 [00:12:48]current date 1717546369 [00:12:48]FM_GetShiftState [00:12:48]SAM_PROTO_GetShiftState [00:12:48]wFMCommunicate request_size=4 [00:12:48]MH_SAM_APDU [00:12:48]CAPDU: 80 13 01 00 [00:12:48]Write to MH i2c: E2 08 00 5F 17 80 13 01 00 00 00 00 00 F3 [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 0E 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 0E 00 5F 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 B6 [00:12:48]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:12:48]wFMCommunicate OK [00:12:48]SAM_PROTO_GetShiftState done [00:12:48]FM_GetShiftState done [00:12:48]opened in 1717460629 [00:12:48]opened+sec_in_day 1717547029 [00:12:48]quantity*price = 15100 [00:12:48]sum+1 = 15101 [00:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 403 05.06.2024 00:12 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149064 ФПД: 266738352870510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T001249&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149064&fm=266738352870510&tin=02508201610067®Number=0000000000092720&sum=15100 0 [00:12:49]StoreToDocumentArchive [00:12:49]shift 368 fd 149064 [00:12:49]save to /storage/0368/doc_00149064 [00:12:49]save last doc name /storage/0368/doc_00149064 to /storage/kkm_last_doc_name [00:12:49]save OK [00:12:49]Clear old archive folders... [00:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=274 [00:12:49]tlvbuf is B6F997A0 [00:12:49]SAM_PROTO_ClearQueue [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 09 00 00 [00:12:49]Write to MH i2c: E2 08 00 6C 17 80 09 00 00 00 00 00 00 F5 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 6C 17 00 90 00 F7 [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]SAM_PROTO_ClearQueue done [00:12:49]KKMCreateOFDPacket [00:12:49]OFDProtocolAddRootSTLVToBuf [00:12:49]FM_MakeSignedData [00:12:49]FM_MakeSignedData [00:12:49]SAM_PROTO_SignData [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 0D 01 02 [00:12:49]Write to MH i2c: E2 08 00 6D 17 80 0D 01 02 00 00 00 00 FD [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 6D 17 00 90 00 F8 [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=255 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 93 01 00 00 F4 03 04 00 81 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 [00:12:49]Write to MH i2c: E2 02 01 6E 17 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 93 01 00 00 F4 03 04 00 81 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 00 00 B9 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 6E 17 00 90 00 F9 [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=33 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 35 37 10 04 04 00 48 46 02 00 35 04 06 00 F2 98 DC C5 54 6E [00:12:49]Write to MH i2c: E2 24 00 6F 17 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 35 37 10 04 04 00 48 46 02 00 35 04 06 00 F2 98 DC C5 54 6E 00 00 0C [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 6F 17 00 90 00 FA [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 0D 03 02 [00:12:49]Write to MH i2c: E2 08 00 70 17 80 0D 03 02 00 00 00 00 02 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 0B 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 0B 00 70 17 00 60 D6 BD 8A 86 29 CD 76 90 00 72 [00:12:49]RAPDU: 60 D6 BD 8A 86 29 CD 76 90 00 [00:12:49]wFMCommunicate OK [00:12:49]SAM_PROTO_SignData done [00:12:49]FM_MakeSignedData done [00:12:49]CreateOFDProtocolMessage [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 11 00 00 [00:12:49]Write to MH i2c: E2 08 00 71 17 80 11 00 00 00 00 00 00 02 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 17 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 17 00 71 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 55 [00:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:12:49]wFMCommunicate OK [00:12:49]CreateOFDProtocolMessage done [00:12:49]OFDSenderStorePacket 149064 [00:12:49]StoreOFDPacket docnum=149064 [00:12:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 93 BB 1E 01 86 9D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 93 01 00 00 F4 03 04 00 81 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 48 46 02 00 35 04 06 00 F2 98 DC C5 54 6E 60 D6 BD 8A 86 29 CD 76 [00:12:49]CheckFolder [00:12:49]dirname=/storage/ofd_packets [00:12:49]CheckFolder done [00:12:49]ProducePacketName [00:12:49]name=ofd_packets/00149064 [00:12:49]NVStorageSaveData ofd_packets/00149064 [00:12:49]File name is /storage/ofd_packets/00149064 [00:12:49]Write 324 bytes [00:12:49]NVStorageSaveData done [00:12:49]OFDSenderStorePacket done [00:12:49]KKMCreateOFDPacket done [00:12:49]NVStorageSaveData kkm_last_timestamp [00:12:49]File name is /storage/kkm_last_timestamp [00:12:49]Write 4 bytes [00:12:49]NVStorageSaveData done [00:12:49]ExternCall_PrintAddStr [00:12:49]wPrintStart [00:12:49]Write to MH i2c: 01 00 00 72 17 89 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: 01 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: 01 07 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: 01 07 00 72 17 00 00 00 00 00 FF 0F 9E [00:12:49]RasterBufferAndPrint [00:12:49]line Счет N : (3)11918 [00:12:49]line ИНН: 02508201610067 [00:12:49]line Контрольно-Кассовый Чек [00:12:49]line ПРОДАЖА [00:12:49]line Товар: 48741958 [00:12:49]line Сигареты Parliament Aqua Blue [00:12:49]line 1.000 * 151.00 [00:12:49]line = 151.00 [00:12:49]line НДС 12% НСП 1% [00:12:49]line > о реализуемом товаре [00:12:49]line ИТОГО: 151.00 [00:12:49]line НСП 1% : 1.34 [00:12:49]line НДС 12% : 16.03 [00:12:49]line Наличными: 151.00 [00:12:49]line Безнал.: 0.00 [00:12:49]line Место: АЗС № 68 "Партнер Нефть" [00:12:49]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:12:49]line СНО: Общий режим [00:12:49]line Чек 403 05.06.2024 00:12 [00:12:49]line Смена: 368 ФФД: 1.0 [00:12:49]line ЗНМ: 0300000035 [00:12:49]line РНМ: 0000000000092720 [00:12:49]line Версия ККМ: 001 [00:12:49]line ФМ: 0000000000875057 [00:12:49]line ФД: 149064 [00:12:49]line ФПД: 266738352870510 [00:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T001249&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149064&fm=266738352870510&tin=02508201610067®Number=0000000000092720&sum=15100 [00:12:50]line 0 [00:12:50]OFD Sender: Processing packet 149064 [packets to send 100, broken 99] [00:12:50]ProducePacketName [00:12:50]name=ofd_packets/00149064 [00:12:50]OFD Sender: To server: pG, [00:12:50]CommunicateWithHost lk.salyk.kg:30040 [00:12:50]ConnectInit lk.salyk.kg [00:12:50]written 0, free lines is 4095 [00:12:50]Connected sock=10 [00:12:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 26 01 00 00 93 BB 1E 01 86 9D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 93 01 00 00 F4 03 04 00 81 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 48 46 02 00 35 04 06 00 F2 98 DC C5 54 6E 60 D6 BD 8A 86 29 CD 76 [00:12:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 17 5D 47 00 49 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 48 46 02 00 F4 03 04 00 A3 54 5F 66 B6 04 01 00 00 AD 81 A3 AE 3C 74 8C D7 [00:12:50]CommunicateWithHost err = 0 [00:12:50]CheckOFDResponse [00:12:50]1017 (14) - 77093643461234 [00:12:50]1041 (16) - 0000000000875057 [00:12:50]1040 (4) - 149064 [00:12:50]1012 (4) - 04.06.2024 17:53 [00:12:50]1206 (1) - 0 [00:12:50]OFD Sender: Remove packet 149064 [00:12:50]ProducePacketName [00:12:50]name=ofd_packets/00149064 [00:12:50]NVStorageDeleteData [00:12:50]Write to MH i2c: 01 00 00 9B 17 B2 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: 01 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: 01 07 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 65 0C 2A [00:12:50]RasterBufferAndPrint [00:12:50]line [00:12:50]line [00:12:50]line [00:12:50]line [00:12:50]line [00:12:50]written 0, free lines is 3178 [00:12:50]MH_Cut [00:12:50]Write to MH i2c: D1 01 00 A2 17 01 8B [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: D1 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: D1 01 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: D1 01 00 A2 17 00 8A [00:12:50]Write to MH i2c: 01 00 00 A3 17 BA [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:51]OFD Sender: No OFD packet to send [00:12:51]*** Cut start [00:12:51]*** Partial cut [00:12:51]*** CUTSNS_PIN = 1 [00:12:52]*** CUTSNS_PIN = 0 [00:12:52]*** Brake cut motor [00:12:52]Read from MH i2c: 01 [00:12:52]MH_I2C_Read... [00:12:52]*** Stop cut motor [00:12:52]*** Cut end [00:12:52]Read from MH i2c: 01 07 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 07 00 A3 17 00 00 00 00 00 FF 0F CF [00:12:52]process_action close_receipt done [00:12:52]requested_data is exist [00:12:52]produce_requested_data [00:12:52]requested_item fm.sn is exist - process it [00:12:52]wFMCommunicate request_size=4 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 11 00 00 [00:12:52]Write to MH i2c: E2 08 00 A4 17 80 11 00 00 00 00 00 00 35 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:52]Read from MH i2c: E2 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 17 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 17 00 A4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 88 [00:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:12:52]wFMCommunicate OK [00:12:52]requested_item fd.num is exist - process it [00:12:52]SAM_PROTO_GetFieldsCounters [00:12:52]wFMCommunicate request_size=4 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 13 00 00 [00:12:52]Write to MH i2c: E2 08 00 A5 17 80 13 00 00 00 00 00 00 38 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:52]Read from MH i2c: E2 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 62 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 62 00 A5 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 48 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [00:12:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 48 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:52]wFMCommunicate OK [00:12:52]SAM_PROTO_GetFieldsCounters done [00:12:52]requested_item shift.num is exist - process it [00:12:52]requested_item shift.opened is exist - process it [00:12:52]req_shift_opened [00:12:52]FM_GetShiftState [00:12:52]SAM_PROTO_GetShiftState [00:12:52]wFMCommunicate request_size=4 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 13 01 00 [00:12:52]Write to MH i2c: E2 08 00 A6 17 80 13 01 00 00 00 00 00 3A [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:52]Read from MH i2c: E2 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 0E 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 0E 00 A6 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FD [00:12:52]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:12:52]wFMCommunicate OK [00:12:52]SAM_PROTO_GetShiftState done [00:12:52]FM_GetShiftState done [00:12:52]req_shift_opened done [00:12:52]requested_item shift.open_date is exist - process it [00:12:52]req_shift_open_date [00:12:52]req_shift_open_date done [00:12:52]produce_requested_data done [00:12:52]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149064,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [00:12:52]process_action_free close_receipt [00:12:52]json_value_free [00:12:52]json_value_free done [00:12:52]process_json_proto returns [00:12:52]Send response to host [00:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149064,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [00:12:52]free response buf [00:12:52]execute_script done [00:12:52]execute_script returns [00:12:52]free content buf [00:12:52]Sock 9.Close socket [00:12:52]Sock 9.Thread stoped [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:11]accept exits with 7 [00:13:11]New connection [00:13:11]New thread 3067075940 created [00:13:11]Thread 3067219300 joined [00:13:11]Waiting for new connection... [00:13:11] Sock 7.Parse request [00:13:11]Sock 7.Check first char [00:13:11]Sock 7.First char is OK [00:13:11]request: POST /json_proto HTTP/1.0 [00:13:11]Method: POST [00:13:11]URL: /json_proto [00:13:11]Method is POST - this is cgi request [00:13:11]url: /json_proto [00:13:11]query_string will be loaded in cgi processing [00:13:11]execute_cgi json_proto POST (null) [00:13:11]execute_cgi path=json_proto method=POST [00:13:11]POST find Content-Length [00:13:11]Host: 172.17.38.4:8080 [00:13:11]Content-Length: 679 [00:13:11]Content-Type: application/json [00:13:11] [00:13:11]POST finish read [00:13:11]Found Content-Length = 679 [00:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [00:13:11]execute_script... [00:13: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)979992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [00:13:11]POST & json_proto [00:13:11]process_json_proto [00:13:11]json parsed OK: [00:13:11]protocol is kg_v1.0 [00:13:11]action value=close_receipt [00:13:11]process_action close_receipt [00:13:11]cmd_close_receipt [00:13:11]MH_GetDate [00:13:11]Write to MH i2c: F0 00 00 A7 17 AD [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: F0 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: F0 09 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: F0 09 00 A7 17 00 98 AD 5F 66 CC 51 87 64 C8 [00:13:11]GetLastDocTimeStamp 1717546369 [00:13:11]current date 1717546392 [00:13:11]FM_GetShiftState [00:13:11]SAM_PROTO_GetShiftState [00:13:11]wFMCommunicate request_size=4 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 13 01 00 [00:13:11]Write to MH i2c: E2 08 00 A8 17 80 13 01 00 00 00 00 00 3C [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 0E 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 0E 00 A8 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 FF [00:13:11]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:13:11]wFMCommunicate OK [00:13:11]SAM_PROTO_GetShiftState done [00:13:11]FM_GetShiftState done [00:13:11]opened in 1717460629 [00:13:11]opened+sec_in_day 1717547029 [00:13:11]quantity*price = 100018 [00:13:11]sum+1 = 100020 [00:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 404 05.06.2024 00:13 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149065 ФПД: 249350883649421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T001312&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149065&fm=249350883649421&tin=02508201610067®Number=0000000000092720&sum=100000 [00:13:12]StoreToDocumentArchive [00:13:12]shift 368 fd 149065 [00:13:12]save to /storage/0368/doc_00149065 [00:13:12]save last doc name /storage/0368/doc_00149065 to /storage/kkm_last_doc_name [00:13:12]save OK [00:13:12]Clear old archive folders... [00:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:13:12]tlvbuf is 00A10910 [00:13:12]SAM_PROTO_ClearQueue [00:13:12]wFMCommunicate request_size=4 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 09 00 00 [00:13:12]Write to MH i2c: E2 08 00 B5 17 80 09 00 00 00 00 00 00 3E [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 B5 17 00 90 00 40 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]SAM_PROTO_ClearQueue done [00:13:12]KKMCreateOFDPacket [00:13:12]OFDProtocolAddRootSTLVToBuf [00:13:12]FM_MakeSignedData [00:13:12]FM_MakeSignedData [00:13:12]SAM_PROTO_SignData [00:13:12]wFMCommunicate request_size=4 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 0D 01 02 [00:13:12]Write to MH i2c: E2 08 00 B6 17 80 0D 01 02 00 00 00 00 46 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 B6 17 00 90 00 41 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=255 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 94 01 00 00 F4 03 04 00 98 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 49 46 02 00 35 04 06 00 E2 C8 86 D8 [00:13:12]Write to MH i2c: E2 02 01 B7 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 94 01 00 00 F4 03 04 00 98 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 49 46 02 00 35 04 06 00 E2 C8 86 D8 00 00 50 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 B7 17 00 90 00 42 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=7 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 0D 02 02 02 27 8D [00:13:12]Write to MH i2c: E2 0A 00 B8 17 80 0D 02 02 02 00 27 8D 00 00 01 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 B8 17 00 90 00 43 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=4 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 0D 03 02 [00:13:12]Write to MH i2c: E2 08 00 B9 17 80 0D 03 02 00 00 00 00 4B [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 0B 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 0B 00 B9 17 00 DF D9 82 D3 04 41 0A AB 90 00 53 [00:13:12]RAPDU: DF D9 82 D3 04 41 0A AB 90 00 [00:13:12]wFMCommunicate OK [00:13:12]SAM_PROTO_SignData done [00:13:12]FM_MakeSignedData done [00:13:12]CreateOFDProtocolMessage [00:13:12]wFMCommunicate request_size=4 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 11 00 00 [00:13:12]Write to MH i2c: E2 08 00 BA 17 80 11 00 00 00 00 00 00 4B [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:13]Read from MH i2c: E2 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 17 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 17 00 BA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9E [00:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:13:13]wFMCommunicate OK [00:13:13]CreateOFDProtocolMessage done [00:13:13]OFDSenderStorePacket 149065 [00:13:13]StoreOFDPacket docnum=149065 [00:13:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 5C 9E 04 01 13 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 94 01 00 00 F4 03 04 00 98 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 49 46 02 00 35 04 06 00 E2 C8 86 D8 27 8D DF D9 82 D3 04 41 0A AB [00:13:13]CheckFolder [00:13:13]dirname=/storage/ofd_packets [00:13:13]CheckFolder done [00:13:13]ProducePacketName [00:13:13]name=ofd_packets/00149065 [00:13:13]NVStorageSaveData ofd_packets/00149065 [00:13:13]File name is /storage/ofd_packets/00149065 [00:13:13]Write 298 bytes [00:13:13]NVStorageSaveData done [00:13:13]OFDSenderStorePacket done [00:13:13]KKMCreateOFDPacket done [00:13:13]NVStorageSaveData kkm_last_timestamp [00:13:13]File name is /storage/kkm_last_timestamp [00:13:13]Write 4 bytes [00:13:13]NVStorageSaveData done [00:13:13]ExternCall_PrintAddStr [00:13:13]wPrintStart [00:13:13]Write to MH i2c: 01 00 00 BB 17 D2 [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: 01 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: 01 07 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: 01 07 00 BB 17 00 00 00 00 00 FF 0F E7 [00:13:13]RasterBufferAndPrint [00:13:13]line Счет N : (1)979992 [00:13:13]line ИНН: 02508201610067 [00:13:13]line Контрольно-Кассовый Чек [00:13:13]line ПРОДАЖА [00:13:13]line ТРК (МРК, ГНК) : 11 [00:13:13]line Товар: 2710194210 [00:13:13]line ДТ-К-5 [00:13:13]line 13.720 * 72.90 [00:13:13]line = 1000.19 [00:13:13]line НДС 12% НСП 1% [00:13:13]line > о реализуемом товаре [00:13:13]line ОКРУГЛЕНИЕ: -0.19 [00:13:13]line ИТОГО: 1000.00 [00:13:13]line Внесено: 1000.00 [00:13:13]line СДАЧА: 0.00 [00:13:13]line НСП 1% : 8.85 [00:13:13]line НДС 12% : 106.21 [00:13:13]line Наличными: 1000.00 [00:13:13]line Безнал.: 0.00 [00:13:13]line Место: АЗС № 68 "Партнер Нефть" [00:13:13]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:13:13]line СНО: Общий режим [00:13:13]line Чек 404 05.06.2024 00:13 [00:13:13]line Смена: 368 ФФД: 1.0 [00:13:13]line ЗНМ: 0300000035 [00:13:13]line РНМ: 0000000000092720 [00:13:13]line Версия ККМ: 001 [00:13:13]line ФМ: 0000000000875057 [00:13:13]line ФД: 149065 [00:13:13]line ФПД: 249350883649421 [00:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T001312&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149065&fm=249350883649421&tin=02508201610067®Number=0000000000092720&sum=100000 [00:13:13]OFD Sender: Processing packet 149065 [packets to send 100, broken 99] [00:13:13]ProducePacketName [00:13:13]name=ofd_packets/00149065 [00:13:13]OFD Sender: To server: pG, [00:13:13]CommunicateWithHost lk.salyk.kg:30040 [00:13:13]ConnectInit lk.salyk.kg [00:13:13]written 0, free lines is 4095 [00:13:13]Connected sock=10 [00:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 5C 9E 04 01 13 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 94 01 00 00 F4 03 04 00 98 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 49 46 02 00 35 04 06 00 E2 C8 86 D8 27 8D DF D9 82 D3 04 41 0A AB [00:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 5C 3E 47 00 AE 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 38 37 35 30 35 37 10 04 04 00 49 46 02 00 F4 03 04 00 BB 54 5F 66 B6 04 01 00 00 14 EE 84 29 3D C3 9F E7 [00:13:13]CommunicateWithHost err = 0 [00:13:13]CheckOFDResponse [00:13:13]1017 (14) - 77093643461234 [00:13:13]1041 (16) - 0000000000875057 [00:13:13]1040 (4) - 149065 [00:13:13]1012 (4) - 04.06.2024 17:54 [00:13:13]1206 (1) - 0 [00:13:13]OFD Sender: Remove packet 149065 [00:13:13]ProducePacketName [00:13:13]name=ofd_packets/00149065 [00:13:13]NVStorageDeleteData [00:13:13]Write to MH i2c: 01 00 00 E6 17 FD [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: 01 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: 01 07 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: 01 07 00 E6 17 00 00 00 00 00 63 0C 73 [00:13:13]RasterBufferAndPrint [00:13:13]line [00:13:13]line [00:13:13]line [00:13:13]line [00:13:13]line [00:13:13]written 0, free lines is 3174 [00:13:13]MH_Cut [00:13:13]Write to MH i2c: D1 01 00 ED 17 01 D6 [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: D1 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: D1 01 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: D1 01 00 ED 17 00 D5 [00:13:13]Write to MH i2c: 01 00 00 EE 17 05 [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:14]OFD Sender: No OFD packet to send [00:13:15]*** Cut start [00:13:15]*** Partial cut [00:13:15]*** CUTSNS_PIN = 1 [00:13:15]*** CUTSNS_PIN = 0 [00:13:15]*** Brake cut motor [00:13:15]Read from MH i2c: 01 [00:13:15]MH_I2C_Read... [00:13:15]*** Stop cut motor [00:13:15]*** Cut end [00:13:15]Read from MH i2c: 01 07 00 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: 01 07 00 EE 17 00 00 00 00 00 FF 0F 1A [00:13:15]process_action close_receipt done [00:13:15]requested_data is exist [00:13:15]produce_requested_data [00:13:15]requested_item fm.sn is exist - process it [00:13:15]wFMCommunicate request_size=4 [00:13:15]MH_SAM_APDU [00:13:15]CAPDU: 80 11 00 00 [00:13:15]Write to MH i2c: E2 08 00 EF 17 80 11 00 00 00 00 00 00 80 [00:13:15]Write i2c OK [00:13:15]MH_I2C_Read... [00:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:15]Read from MH i2c: E2 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 17 00 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 17 00 EF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D3 [00:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:13:15]wFMCommunicate OK [00:13:15]requested_item fd.num is exist - process it [00:13:15]SAM_PROTO_GetFieldsCounters [00:13:15]wFMCommunicate request_size=4 [00:13:15]MH_SAM_APDU [00:13:15]CAPDU: 80 13 00 00 [00:13:15]Write to MH i2c: E2 08 00 F0 17 80 13 00 00 00 00 00 00 83 [00:13:15]Write i2c OK [00:13:15]MH_I2C_Read... [00:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:15]Read from MH i2c: E2 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 62 00 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 62 00 F0 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 49 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [00:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 49 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:13:15]wFMCommunicate OK [00:13:15]SAM_PROTO_GetFieldsCounters done [00:13:15]requested_item shift.num is exist - process it [00:13:15]requested_item shift.opened is exist - process it [00:13:15]req_shift_opened [00:13:15]FM_GetShiftState [00:13:15]SAM_PROTO_GetShiftState [00:13:15]wFMCommunicate request_size=4 [00:13:15]MH_SAM_APDU [00:13:15]CAPDU: 80 13 01 00 [00:13:15]Write to MH i2c: E2 08 00 F1 17 80 13 01 00 00 00 00 00 85 [00:13:15]Write i2c OK [00:13:15]MH_I2C_Read... [00:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:16]Read from MH i2c: E2 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: E2 0E 00 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: E2 0E 00 F1 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 48 [00:13:16]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:13:16]wFMCommunicate OK [00:13:16]SAM_PROTO_GetShiftState done [00:13:16]FM_GetShiftState done [00:13:16]req_shift_opened done [00:13:16]requested_item shift.open_date is exist - process it [00:13:16]req_shift_open_date [00:13:16]req_shift_open_date done [00:13:16]produce_requested_data done [00:13:16]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149065,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [00:13:16]process_action_free close_receipt [00:13:16]json_value_free [00:13:16]json_value_free done [00:13:16]process_json_proto returns [00:13:16]Send response to host [00:13:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149065,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [00:13:16]free response buf [00:13:16]execute_script done [00:13:16]execute_script returns [00:13:16]free content buf [00:13:16]Sock 7.Close socket [00:13:16]Sock 7.Thread stoped [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:57]accept exits with 9 [00:13:57]New connection [00:13:57]New thread 3067219300 created [00:13:57]Thread 3067075940 joined [00:13:57]Waiting for new connection... [00:13:57] Sock 9.Parse request [00:13:57]Sock 9.Check first char [00:13:57]Sock 9.First char is OK [00:13:57]request: POST /json_proto HTTP/1.0 [00:13:57]Method: POST [00:13:57]URL: /json_proto [00:13:57]Method is POST - this is cgi request [00:13:57]url: /json_proto [00:13:57]query_string will be loaded in cgi processing [00:13:57]execute_cgi json_proto POST (null) [00:13:57]execute_cgi path=json_proto method=POST [00:13:57]POST find Content-Length [00:13:57]Host: 172.17.38.4:8080 [00:13:57]Content-Length: 736 [00:13:57]Content-Type: application/json [00:13:57] [00:13:57]POST finish read [00:13:57]Found Content-Length = 736 [00:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 149065, "base_FM": "0000000000875057", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [00:13:57]execute_script... [00:13:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 149065, "base_FM": "0000000000875057", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [00:13:57]POST & json_proto [00:13:57]process_json_proto [00:13:57]json parsed OK: [00:13:57]protocol is kg_v1.0 [00:13:57]action value=close_receipt [00:13:57]process_action close_receipt [00:13:57]cmd_close_receipt [00:13:57]MH_GetDate [00:13:57]Write to MH i2c: F0 00 00 F2 17 F8 [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: F0 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: F0 09 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: F0 09 00 F2 17 00 C6 AD 5F 66 CC 51 87 64 41 [00:13:57]GetLastDocTimeStamp 1717546392 [00:13:57]current date 1717546438 [00:13:57]FM_GetShiftState [00:13:57]SAM_PROTO_GetShiftState [00:13:57]wFMCommunicate request_size=4 [00:13:57]MH_SAM_APDU [00:13:57]CAPDU: 80 13 01 00 [00:13:57]Write to MH i2c: E2 08 00 F3 17 80 13 01 00 00 00 00 00 87 [00:13:57]Write i2c OK [00:13:57]MH_I2C_Read... [00:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:57]Read from MH i2c: E2 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 0E 00 [00:13:57]MH_I2C_Read... [00:13:57]Read from MH i2c: E2 0E 00 F3 17 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 4A [00:13:57]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:13:57]wFMCommunicate OK [00:13:57]SAM_PROTO_GetShiftState done [00:13:57]FM_GetShiftState done [00:13:57]opened in 1717460629 [00:13:57]opened+sec_in_day 1717547029 [00:13:57]quantity*price = 100018 [00:13:57]sum+1 = 100020 [00:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 405 05.06.2024 00:13 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФД осн.: 149065 ФМ осн.: 0000000000875057 ФМ: 0000000000875057 ФД: 149066 ФПД: 5924527164581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T001358&type=2&operation_type=1&fn_number=0000000000875057&fd_number=149066&fm=5924527164581&tin=02508201610067®Number=0000000000092720&sum=100000 [00:13:59]StoreToDocumentArchive [00:13:59]shift 368 fd 149066 [00:13:59]save to /storage/0368/doc_00149066 [00:13:59]save last doc name /storage/0368/doc_00149066 to /storage/kkm_last_doc_name [00:13:59]save OK [00:13:59]Clear old archive folders... [00:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=276 [00:13:59]tlvbuf is B6DE9910 [00:13:59]SAM_PROTO_ClearQueue [00:13:59]wFMCommunicate request_size=4 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 09 00 00 [00:13:59]Write to MH i2c: E2 08 00 02 18 80 09 00 00 00 00 00 00 8C [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 03 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 03 00 02 18 00 90 00 8E [00:13:59]RAPDU: 90 00 [00:13:59]wFMCommunicate OK [00:13:59]SAM_PROTO_ClearQueue done [00:13:59]KKMCreateOFDPacket [00:13:59]OFDProtocolAddRootSTLVToBuf [00:13:59]FM_MakeSignedData [00:13:59]FM_MakeSignedData [00:13:59]SAM_PROTO_SignData [00:13:59]wFMCommunicate request_size=4 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 0D 01 02 [00:13:59]Write to MH i2c: E2 08 00 03 18 80 0D 01 02 00 00 00 00 94 [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 03 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [00:13:59]RAPDU: 90 00 [00:13:59]wFMCommunicate OK [00:13:59]wFMCommunicate request_size=255 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 95 01 00 00 F4 03 04 00 C6 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 49 46 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 30 30 30 [00:13:59]Write to MH i2c: E2 02 01 04 18 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 95 01 00 00 F4 03 04 00 C6 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 49 46 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 30 30 30 00 00 B7 [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]OFD Sender: No OFD packet to send [00:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 03 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [00:13:59]RAPDU: 90 00 [00:13:59]wFMCommunicate OK [00:13:59]wFMCommunicate request_size=35 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4A 46 02 00 35 04 06 00 05 63 69 56 4C A5 [00:13:59]Write to MH i2c: E2 26 00 05 18 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4A 46 02 00 35 04 06 00 05 63 69 56 4C A5 00 00 34 [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 03 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [00:13:59]RAPDU: 90 00 [00:13:59]wFMCommunicate OK [00:13:59]wFMCommunicate request_size=4 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 0D 03 02 [00:13:59]Write to MH i2c: E2 08 00 06 18 80 0D 03 02 00 00 00 00 99 [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 0B 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 0B 00 06 18 00 09 8E 77 CD A4 6C 2A 9F 90 00 4E [00:13:59]RAPDU: 09 8E 77 CD A4 6C 2A 9F 90 00 [00:13:59]wFMCommunicate OK [00:13:59]SAM_PROTO_SignData done [00:13:59]FM_MakeSignedData done [00:13:59]CreateOFDProtocolMessage [00:13:59]wFMCommunicate request_size=4 [00:13:59]MH_SAM_APDU [00:13:59]CAPDU: 80 11 00 00 [00:13:59]Write to MH i2c: E2 08 00 07 18 80 11 00 00 00 00 00 00 99 [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:59]Read from MH i2c: E2 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 17 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: E2 17 00 07 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EC [00:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:13:59]wFMCommunicate OK [00:13:59]CreateOFDProtocolMessage done [00:13:59]OFDSenderStorePacket 149066 [00:13:59]StoreOFDPacket docnum=149066 [00:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 28 01 00 00 0E 06 20 01 99 E9 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 95 01 00 00 F4 03 04 00 C6 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 49 46 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4A 46 02 00 35 04 06 00 05 63 69 56 4C A5 09 8E 77 CD A4 6C 2A 9F [00:13:59]CheckFolder [00:13:59]dirname=/storage/ofd_packets [00:13:59]CheckFolder done [00:13:59]ProducePacketName [00:13:59]name=ofd_packets/00149066 [00:13:59]NVStorageSaveData ofd_packets/00149066 [00:13:59]File name is /storage/ofd_packets/00149066 [00:13:59]Write 326 bytes [00:13:59]NVStorageSaveData done [00:13:59]OFDSenderStorePacket done [00:13:59]KKMCreateOFDPacket done [00:13:59]NVStorageSaveData kkm_last_timestamp [00:13:59]File name is /storage/kkm_last_timestamp [00:13:59]Write 4 bytes [00:13:59]NVStorageSaveData done [00:13:59]ExternCall_PrintAddStr [00:13:59]wPrintStart [00:13:59]Write to MH i2c: 01 00 00 08 18 20 [00:13:59]OFD Sender: Processing packet 149066 [packets to send 100, broken 99] [00:13:59]ProducePacketName [00:13:59]name=ofd_packets/00149066 [00:13:59]OFD Sender: To server: pG, [00:13:59]CommunicateWithHost lk.salyk.kg:30040 [00:13:59]ConnectInit lk.salyk.kg [00:13:59]Write i2c OK [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: 01 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: 01 07 00 [00:13:59]MH_I2C_Read... [00:13:59]Read from MH i2c: 01 07 00 08 18 00 00 00 00 00 FF 0F 35 [00:13:59]RasterBufferAndPrint [00:13:59]line Счет N : (1)979992 [00:13:59]line ИНН: 02508201610067 [00:13:59]line Контрольно-Кассовый Чек [00:13:59]line ВОЗВРАТ ПРОДАЖИ [00:13:59]line ТРК (МРК, ГНК) : 11 [00:13:59]line Товар: 2710194210 [00:13:59]line ДТ-К-5 [00:13:59]line 13.720 * 72.90 [00:13:59]line = 1000.19 [00:13:59]line НДС 12% НСП 1% [00:13:59]line > о реализуемом товаре [00:13:59]line ОКРУГЛЕНИЕ: -0.19 [00:13:59]line ИТОГО: 1000.00 [00:13:59]line НСП 1% : 8.85 [00:13:59]line НДС 12% : 106.21 [00:13:59]line Наличными: 1000.00 [00:13:59]line Безнал.: 0.00 [00:13:59]line Место: АЗС № 68 "Партнер Нефть" [00:13:59]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:13:59]line СНО: Общий режим [00:13:59]line Чек 405 05.06.2024 00:13 [00:13:59]line Смена: 368 ФФД: 1.0 [00:13:59]line ЗНМ: 0300000035 [00:13:59]line РНМ: 0000000000092720 [00:13:59]line Версия ККМ: 001 [00:13:59]line ФД осн.: 149065 [00:13:59]line ФМ осн.: 0000000000875057 [00:13:59]line ФМ: 0000000000875057 [00:13:59]line ФД: 149066 [00:13:59]line ФПД: 5924527164581 [00:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T001358&type=2&operation_type=1&fn_number=0000000000875057&fd_number=149066&fm=5924527164581&tin=02508201610067®Number=0000000000092720&sum=100000 [00:13:59]Connected sock=10 [00:13:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 28 01 00 00 0E 06 20 01 99 E9 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 95 01 00 00 F4 03 04 00 C6 AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 49 46 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4A 46 02 00 35 04 06 00 05 63 69 56 4C A5 09 8E 77 CD A4 6C 2A 9F [00:13:59]written 0, free lines is 4095 [00:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B1 01 47 00 4B 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 38 37 35 30 35 37 10 04 04 00 4A 46 02 00 F4 03 04 00 E9 54 5F 66 B6 04 01 00 00 7C C0 4D 73 EB 98 8C 24 [00:14:00]CommunicateWithHost err = 0 [00:14:00]CheckOFDResponse [00:14:00]1017 (14) - 77093643461234 [00:14:00]1041 (16) - 0000000000875057 [00:14:00]1040 (4) - 149066 [00:14:00]1012 (4) - 04.06.2024 17:54 [00:14:00]1206 (1) - 0 [00:14:00]OFD Sender: Remove packet 149066 [00:14:00]ProducePacketName [00:14:00]name=ofd_packets/00149066 [00:14:00]NVStorageDeleteData [00:14:00]Write to MH i2c: 01 00 00 33 18 4B [00:14:00]Write i2c OK [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: 01 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: 01 07 00 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: 01 07 00 33 18 00 00 00 00 00 5C 0C BA [00:14:00]RasterBufferAndPrint [00:14:00]line [00:14:00]line [00:14:00]line [00:14:00]line [00:14:00]line [00:14:00]written 0, free lines is 3168 [00:14:00]MH_Cut [00:14:00]Write to MH i2c: D1 01 00 3A 18 01 24 [00:14:00]Write i2c OK [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: D1 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: D1 01 00 [00:14:00]MH_I2C_Read... [00:14:00]Read from MH i2c: D1 01 00 3A 18 00 23 [00:14:00]Write to MH i2c: 01 00 00 3B 18 53 [00:14:00]Write i2c OK [00:14:00]MH_I2C_Read... [00:14:00]OFD Sender: No OFD packet to send [00:14:01]*** Cut start [00:14:01]*** Partial cut [00:14:01]*** CUTSNS_PIN = 1 [00:14:01]*** CUTSNS_PIN = 0 [00:14:01]*** Brake cut motor [00:14:02]Read from MH i2c: 01 [00:14:02]MH_I2C_Read... [00:14:02]*** Stop cut motor [00:14:02]*** Cut end [00:14:02]Read from MH i2c: 01 07 00 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 FF 0F 68 [00:14:02]process_action close_receipt done [00:14:02]requested_data is exist [00:14:02]produce_requested_data [00:14:02]requested_item fm.sn is exist - process it [00:14:02]wFMCommunicate request_size=4 [00:14:02]MH_SAM_APDU [00:14:02]CAPDU: 80 11 00 00 [00:14:02]Write to MH i2c: E2 08 00 3C 18 80 11 00 00 00 00 00 00 CE [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 [00:14:02]MH_I2C_Read... [00:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:02]Read from MH i2c: E2 17 00 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 17 00 3C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 21 [00:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:14:02]wFMCommunicate OK [00:14:02]requested_item fd.num is exist - process it [00:14:02]SAM_PROTO_GetFieldsCounters [00:14:02]wFMCommunicate request_size=4 [00:14:02]MH_SAM_APDU [00:14:02]CAPDU: 80 13 00 00 [00:14:02]Write to MH i2c: E2 08 00 3D 18 80 13 00 00 00 00 00 00 D1 [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:02]Read from MH i2c: E2 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 62 00 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 62 00 3D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4A 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [00:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4A 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:02]wFMCommunicate OK [00:14:02]SAM_PROTO_GetFieldsCounters done [00:14:02]requested_item shift.num is exist - process it [00:14:02]requested_item shift.opened is exist - process it [00:14:02]req_shift_opened [00:14:02]FM_GetShiftState [00:14:02]SAM_PROTO_GetShiftState [00:14:02]wFMCommunicate request_size=4 [00:14:02]MH_SAM_APDU [00:14:02]CAPDU: 80 13 01 00 [00:14:02]Write to MH i2c: E2 08 00 3E 18 80 13 01 00 00 00 00 00 D3 [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:02]Read from MH i2c: E2 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 0E 00 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 0E 00 3E 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 96 [00:14:02]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:14:02]wFMCommunicate OK [00:14:02]SAM_PROTO_GetShiftState done [00:14:02]FM_GetShiftState done [00:14:02]req_shift_opened done [00:14:02]requested_item shift.open_date is exist - process it [00:14:02]req_shift_open_date [00:14:02]req_shift_open_date done [00:14:02]produce_requested_data done [00:14:02]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149066,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [00:14:02]process_action_free close_receipt [00:14:02]json_value_free [00:14:02]json_value_free done [00:14:02]process_json_proto returns [00:14:02]Send response to host [00:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149066,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [00:14:02]free response buf [00:14:02]execute_script done [00:14:02]execute_script returns [00:14:02]free content buf [00:14:02]Sock 9.Close socket [00:14:02]Sock 9.Thread stoped [00:14:02]accept exits with 7 [00:14:02]New connection [00:14:02]New thread 3067075940 created [00:14:02]Thread 3067219300 joined [00:14:02]Waiting for new connection... [00:14:02] Sock 7.Parse request [00:14:02]Sock 7.Check first char [00:14:02]Sock 7.First char is OK [00:14:02]request: POST /json_proto HTTP/1.0 [00:14:02]Method: POST [00:14:02]URL: /json_proto [00:14:02]Method is POST - this is cgi request [00:14:02]url: /json_proto [00:14:02]query_string will be loaded in cgi processing [00:14:02]execute_cgi json_proto POST (null) [00:14:02]execute_cgi path=json_proto method=POST [00:14:02]POST find Content-Length [00:14:02]Host: 172.17.38.4:8080 [00:14:02]Content-Length: 679 [00:14:02]Content-Type: application/json [00:14:02] [00:14:02]POST finish read [00:14:02]Found Content-Length = 679 [00:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [00:14:02]execute_script... [00:14: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)979993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [00:14:02]POST & json_proto [00:14:02]process_json_proto [00:14:02]json parsed OK: [00:14:02]protocol is kg_v1.0 [00:14:02]action value=close_receipt [00:14:02]process_action close_receipt [00:14:02]cmd_close_receipt [00:14:02]MH_GetDate [00:14:02]Write to MH i2c: F0 00 00 3F 18 46 [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: F0 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: F0 09 00 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: F0 09 00 3F 18 00 CC AD 5F 66 CC 51 87 64 95 [00:14:02]GetLastDocTimeStamp 1717546438 [00:14:02]current date 1717546444 [00:14:02]FM_GetShiftState [00:14:02]SAM_PROTO_GetShiftState [00:14:02]wFMCommunicate request_size=4 [00:14:02]MH_SAM_APDU [00:14:02]CAPDU: 80 13 01 00 [00:14:02]Write to MH i2c: E2 08 00 40 18 80 13 01 00 00 00 00 00 D5 [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:03]Read from MH i2c: E2 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 0E 00 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 0E 00 40 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 98 [00:14:03]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:14:03]wFMCommunicate OK [00:14:03]SAM_PROTO_GetShiftState done [00:14:03]FM_GetShiftState done [00:14:03]opened in 1717460629 [00:14:03]opened+sec_in_day 1717547029 [00:14:03]quantity*price = 100018 [00:14:03]sum+1 = 100020 [00:14:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 406 05.06.2024 00:14 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149067 ФПД: 13257667956854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T001404&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149067&fm=13257667956854&tin=02508201610067®Number=0000000000092720&sum=100000 [00:14:04]StoreToDocumentArchive [00:14:04]shift 368 fd 149067 [00:14:04]save to /storage/0368/doc_00149067 [00:14:04]save last doc name /storage/0368/doc_00149067 to /storage/kkm_last_doc_name [00:14:04]save OK [00:14:04]Clear old archive folders... [00:14:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:14:04]tlvbuf is 00A01330 [00:14:04]SAM_PROTO_ClearQueue [00:14:04]wFMCommunicate request_size=4 [00:14:04]MH_SAM_APDU [00:14:04]CAPDU: 80 09 00 00 [00:14:04]Write to MH i2c: E2 08 00 4D 18 80 09 00 00 00 00 00 00 D7 [00:14:04]Write i2c OK [00:14:04]MH_I2C_Read... [00:14:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:04]Read from MH i2c: E2 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 03 00 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [00:14:04]RAPDU: 90 00 [00:14:04]wFMCommunicate OK [00:14:04]SAM_PROTO_ClearQueue done [00:14:04]KKMCreateOFDPacket [00:14:04]OFDProtocolAddRootSTLVToBuf [00:14:04]FM_MakeSignedData [00:14:04]FM_MakeSignedData [00:14:04]SAM_PROTO_SignData [00:14:04]wFMCommunicate request_size=4 [00:14:04]MH_SAM_APDU [00:14:04]CAPDU: 80 0D 01 02 [00:14:04]Write to MH i2c: E2 08 00 4E 18 80 0D 01 02 00 00 00 00 DF [00:14:04]Write i2c OK [00:14:04]MH_I2C_Read... [00:14:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:04]Read from MH i2c: E2 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 03 00 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [00:14:04]RAPDU: 90 00 [00:14:04]wFMCommunicate OK [00:14:04]wFMCommunicate request_size=255 [00:14:04]MH_SAM_APDU [00:14:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 96 01 00 00 F4 03 04 00 CC AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4B 46 02 00 35 04 06 00 0C 0E CA 96 [00:14:04]Write to MH i2c: E2 02 01 4F 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 96 01 00 00 F4 03 04 00 CC AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4B 46 02 00 35 04 06 00 0C 0E CA 96 00 00 93 [00:14:04]Write i2c OK [00:14:04]MH_I2C_Read... [00:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:04]Read from MH i2c: E2 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 03 00 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [00:14:04]RAPDU: 90 00 [00:14:04]wFMCommunicate OK [00:14:04]wFMCommunicate request_size=7 [00:14:04]MH_SAM_APDU [00:14:04]CAPDU: 80 0D 02 02 02 D0 76 [00:14:04]Write to MH i2c: E2 0A 00 50 18 80 0D 02 02 02 00 D0 76 00 00 2C [00:14:04]Write i2c OK [00:14:04]MH_I2C_Read... [00:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 03 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 03 00 50 18 00 90 00 DC [00:14:05]RAPDU: 90 00 [00:14:05]wFMCommunicate OK [00:14:05]wFMCommunicate request_size=4 [00:14:05]MH_SAM_APDU [00:14:05]CAPDU: 80 0D 03 02 [00:14:05]Write to MH i2c: E2 08 00 51 18 80 0D 03 02 00 00 00 00 E4 [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 0B 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 0B 00 51 18 00 47 15 8F 46 81 97 A0 35 90 00 03 [00:14:05]RAPDU: 47 15 8F 46 81 97 A0 35 90 00 [00:14:05]wFMCommunicate OK [00:14:05]SAM_PROTO_SignData done [00:14:05]FM_MakeSignedData done [00:14:05]CreateOFDProtocolMessage [00:14:05]wFMCommunicate request_size=4 [00:14:05]MH_SAM_APDU [00:14:05]CAPDU: 80 11 00 00 [00:14:05]Write to MH i2c: E2 08 00 52 18 80 11 00 00 00 00 00 00 E4 [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 17 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 17 00 52 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 37 [00:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:14:05]wFMCommunicate OK [00:14:05]CreateOFDProtocolMessage done [00:14:05]OFDSenderStorePacket 149067 [00:14:05]StoreOFDPacket docnum=149067 [00:14:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 DB 64 04 01 B5 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 96 01 00 00 F4 03 04 00 CC AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4B 46 02 00 35 04 06 00 0C 0E CA 96 D0 76 47 15 8F 46 81 97 A0 35 [00:14:05]CheckFolder [00:14:05]dirname=/storage/ofd_packets [00:14:05]CheckFolder done [00:14:05]ProducePacketName [00:14:05]name=ofd_packets/00149067 [00:14:05]NVStorageSaveData ofd_packets/00149067 [00:14:05]File name is /storage/ofd_packets/00149067 [00:14:05]Write 298 bytes [00:14:05]NVStorageSaveData done [00:14:05]OFDSenderStorePacket done [00:14:05]KKMCreateOFDPacket done [00:14:05]NVStorageSaveData kkm_last_timestamp [00:14:05]File name is /storage/kkm_last_timestamp [00:14:05]Write 4 bytes [00:14:05]NVStorageSaveData done [00:14:05]ExternCall_PrintAddStr [00:14:05]wPrintStart [00:14:05]Write to MH i2c: 01 00 00 53 18 6B [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: 01 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: 01 07 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 FF 0F 80 [00:14:05]RasterBufferAndPrint [00:14:05]line Счет N : (1)979993 [00:14:05]line ИНН: 02508201610067 [00:14:05]line Контрольно-Кассовый Чек [00:14:05]line ПРОДАЖА [00:14:05]line ТРК (МРК, ГНК) : 21 [00:14:05]line Товар: 2710194210 [00:14:05]line ДТ-К-5 [00:14:05]line 13.720 * 72.90 [00:14:05]line = 1000.19 [00:14:05]line НДС 12% НСП 1% [00:14:05]line > о реализуемом товаре [00:14:05]line ОКРУГЛЕНИЕ: -0.19 [00:14:05]line ИТОГО: 1000.00 [00:14:05]line Внесено: 1000.00 [00:14:05]line СДАЧА: 0.00 [00:14:05]line НСП 1% : 8.85 [00:14:05]line НДС 12% : 106.21 [00:14:05]line Наличными: 1000.00 [00:14:05]line Безнал.: 0.00 [00:14:05]line Место: АЗС № 68 "Партнер Нефть" [00:14:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:14:05]line СНО: Общий режим [00:14:05]line Чек 406 05.06.2024 00:14 [00:14:05]line Смена: 368 ФФД: 1.0 [00:14:05]line ЗНМ: 0300000035 [00:14:05]line РНМ: 0000000000092720 [00:14:05]line Версия ККМ: 001 [00:14:05]line ФМ: 0000000000875057 [00:14:05]line ФД: 149067 [00:14:05]line ФПД: 13257667956854 [00:14:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T001404&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149067&fm=13257667956854&tin=02508201610067®Number=0000000000092720&sum=100000 [00:14:05]OFD Sender: Processing packet 149067 [packets to send 100, broken 99] [00:14:05]ProducePacketName [00:14:05]name=ofd_packets/00149067 [00:14:05]OFD Sender: To server: pG, [00:14:05]CommunicateWithHost lk.salyk.kg:30040 [00:14:05]ConnectInit lk.salyk.kg [00:14:05]written 0, free lines is 4095 [00:14:05]Connected sock=10 [00:14:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 DB 64 04 01 B5 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 96 01 00 00 F4 03 04 00 CC AD 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4B 46 02 00 35 04 06 00 0C 0E CA 96 D0 76 47 15 8F 46 81 97 A0 35 [00:14:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 04 7B 47 00 BA 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 38 37 35 30 35 37 10 04 04 00 4B 46 02 00 F4 03 04 00 EE 54 5F 66 B6 04 01 00 00 76 57 3C 21 AB 64 44 6E [00:14:05]CommunicateWithHost err = 0 [00:14:05]CheckOFDResponse [00:14:05]1017 (14) - 77093643461234 [00:14:05]1041 (16) - 0000000000875057 [00:14:05]1040 (4) - 149067 [00:14:05]1012 (4) - 04.06.2024 17:54 [00:14:05]1206 (1) - 0 [00:14:05]OFD Sender: Remove packet 149067 [00:14:05]ProducePacketName [00:14:05]name=ofd_packets/00149067 [00:14:05]NVStorageDeleteData [00:14:05]Write to MH i2c: 01 00 00 7E 18 96 [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: 01 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: 01 07 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: 01 07 00 7E 18 00 00 00 00 00 6C 0C 15 [00:14:05]RasterBufferAndPrint [00:14:05]line [00:14:05]line [00:14:05]line [00:14:05]line [00:14:05]line [00:14:05]written 0, free lines is 3187 [00:14:05]MH_Cut [00:14:05]Write to MH i2c: D1 01 00 85 18 01 6F [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: D1 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: D1 01 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: D1 01 00 85 18 00 6E [00:14:05]Write to MH i2c: 01 00 00 86 18 9E [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]OFD Sender: No OFD packet to send [00:14:06]*** Cut start [00:14:06]*** Partial cut [00:14:06]*** CUTSNS_PIN = 1 [00:14:06]*** CUTSNS_PIN = 0 [00:14:07]*** Brake cut motor [00:14:07]Read from MH i2c: 01 [00:14:07]MH_I2C_Read... [00:14:07]*** Stop cut motor [00:14:07]*** Cut end [00:14:07]Read from MH i2c: 01 07 00 [00:14:07]MH_I2C_Read... [00:14:07]Read from MH i2c: 01 07 00 86 18 00 00 00 00 00 FF 0F B3 [00:14:07]process_action close_receipt done [00:14:07]requested_data is exist [00:14:07]produce_requested_data [00:14:07]requested_item fm.sn is exist - process it [00:14:07]wFMCommunicate request_size=4 [00:14:07]MH_SAM_APDU [00:14:07]CAPDU: 80 11 00 00 [00:14:07]Write to MH i2c: E2 08 00 87 18 80 11 00 00 00 00 00 00 19 [00:14:07]Write i2c OK [00:14:07]MH_I2C_Read... [00:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:07]Read from MH i2c: E2 [00:14:07]MH_I2C_Read... [00:14:07]Read from MH i2c: E2 17 00 [00:14:07]MH_I2C_Read... [00:14:07]Read from MH i2c: E2 17 00 87 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6C [00:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:14:07]wFMCommunicate OK [00:14:07]requested_item fd.num is exist - process it [00:14:07]SAM_PROTO_GetFieldsCounters [00:14:07]wFMCommunicate request_size=4 [00:14:07]MH_SAM_APDU [00:14:07]CAPDU: 80 13 00 00 [00:14:07]Write to MH i2c: E2 08 00 88 18 80 13 00 00 00 00 00 00 1C [00:14:07]Write i2c OK [00:14:07]MH_I2C_Read... [00:14:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:07]Read from MH i2c: E2 [00:14:07]MH_I2C_Read... [00:14:07]Read from MH i2c: E2 62 00 [00:14:07]MH_I2C_Read... [00:14:07]Read from MH i2c: E2 62 00 88 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4B 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [00:14:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4B 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:07]wFMCommunicate OK [00:14:07]SAM_PROTO_GetFieldsCounters done [00:14:07]requested_item shift.num is exist - process it [00:14:07]requested_item shift.opened is exist - process it [00:14:07]req_shift_opened [00:14:07]FM_GetShiftState [00:14:07]SAM_PROTO_GetShiftState [00:14:07]wFMCommunicate request_size=4 [00:14:07]MH_SAM_APDU [00:14:07]CAPDU: 80 13 01 00 [00:14:07]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [00:14:07]Write i2c OK [00:14:07]MH_I2C_Read... [00:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:07]Read from MH i2c: E2 [00:14:07]MH_I2C_Read... [00:14:07]Read from MH i2c: E2 0E 00 [00:14:07]MH_I2C_Read... [00:14:07]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E1 [00:14:07]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:14:07]wFMCommunicate OK [00:14:07]SAM_PROTO_GetShiftState done [00:14:07]FM_GetShiftState done [00:14:07]req_shift_opened done [00:14:07]requested_item shift.open_date is exist - process it [00:14:07]req_shift_open_date [00:14:07]req_shift_open_date done [00:14:07]produce_requested_data done [00:14:07]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149067,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [00:14:07]process_action_free close_receipt [00:14:07]json_value_free [00:14:07]json_value_free done [00:14:07]process_json_proto returns [00:14:07]Send response to host [00:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149067,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [00:14:07]free response buf [00:14:07]execute_script done [00:14:07]execute_script returns [00:14:07]free content buf [00:14:07]Sock 7.Close socket [00:14:07]Sock 7.Thread stoped [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:09]accept exits with 9 [00:15:09]New connection [00:15:09]New thread 3067219300 created [00:15:09]Thread 3067075940 joined [00:15:09]Waiting for new connection... [00:15:09] Sock 9.Parse request [00:15:09]Sock 9.Check first char [00:15:09]Sock 9.First char is OK [00:15:09]request: POST /json_proto HTTP/1.0 [00:15:09]Method: POST [00:15:09]URL: /json_proto [00:15:09]Method is POST - this is cgi request [00:15:09]url: /json_proto [00:15:09]query_string will be loaded in cgi processing [00:15:09]execute_cgi json_proto POST (null) [00:15:09]execute_cgi path=json_proto method=POST [00:15:09]POST find Content-Length [00:15:09]Host: 172.17.38.4:8080 [00:15:09]Content-Length: 678 [00:15:09]Content-Type: application/json [00:15:09] [00:15:09]POST finish read [00:15:09]Found Content-Length = 678 [00:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.570, "sum" : 774.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 774.00, "total" : 774.00, "payments": [ { "type": 0, "sum" : 774.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:09]execute_script... [00:15: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)979994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.570, "sum" : 774.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 774.00, "total" : 774.00, "payments": [ { "type": 0, "sum" : 774.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:09]POST & json_proto [00:15:09]process_json_proto [00:15:09]json parsed OK: [00:15:09]protocol is kg_v1.0 [00:15:09]action value=close_receipt [00:15:09]process_action close_receipt [00:15:09]cmd_close_receipt [00:15:09]MH_GetDate [00:15:09]Write to MH i2c: F0 00 00 8A 18 91 [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: F0 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: F0 09 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: F0 09 00 8A 18 00 0E AE 5F 66 CC 51 87 64 23 [00:15:09]GetLastDocTimeStamp 1717546444 [00:15:09]current date 1717546510 [00:15:09]FM_GetShiftState [00:15:09]SAM_PROTO_GetShiftState [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 13 01 00 [00:15:09]Write to MH i2c: E2 08 00 8B 18 80 13 01 00 00 00 00 00 20 [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 0E 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 0E 00 8B 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 E3 [00:15:09]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:15:09]wFMCommunicate OK [00:15:09]SAM_PROTO_GetShiftState done [00:15:09]FM_GetShiftState done [00:15:09]opened in 1717460629 [00:15:09]opened+sec_in_day 1717547029 [00:15:09]quantity*price = 77403 [00:15:09]sum+1 = 77404 [00:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 774.00 Внесено: 774.00 СДАЧА: 0.00 НСП 1% : 6.85 НДС 12% : 82.20 Наличными: 774.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 407 05.06.2024 00:15 Смена: 368 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149068 ФПД: 198366985592582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T001511&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149068&fm=198366985592582&tin=02508201610067®Number=0000000000092720&sum=77400 [00:15:10]StoreToDocumentArchive [00:15:10]shift 368 fd 149068 [00:15:10]save to /storage/0368/doc_00149068 [00:15:10]save last doc name /storage/0368/doc_00149068 to /storage/kkm_last_doc_name [00:15:10]save OK [00:15:10]Clear old archive folders... [00:15:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:15:10]tlvbuf is 009A8B30 [00:15:10]SAM_PROTO_ClearQueue [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 09 00 00 [00:15:10]Write to MH i2c: E2 08 00 98 18 80 09 00 00 00 00 00 00 22 [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 03 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [00:15:10]RAPDU: 90 00 [00:15:10]wFMCommunicate OK [00:15:10]SAM_PROTO_ClearQueue done [00:15:10]KKMCreateOFDPacket [00:15:10]OFDProtocolAddRootSTLVToBuf [00:15:10]FM_MakeSignedData [00:15:10]FM_MakeSignedData [00:15:10]SAM_PROTO_SignData [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 0D 01 02 [00:15:10]Write to MH i2c: E2 08 00 99 18 80 0D 01 02 00 00 00 00 2A [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 03 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [00:15:10]RAPDU: 90 00 [00:15:10]wFMCommunicate OK [00:15:10]wFMCommunicate request_size=255 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 20 00 00 00 00 07 04 06 00 58 2E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 0F AE 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4C 46 02 00 35 04 06 00 B4 [00:15:10]Write to MH i2c: E2 02 01 9A 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 20 00 00 00 00 07 04 06 00 58 2E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 0F AE 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4C 46 02 00 35 04 06 00 B4 00 00 20 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]OFD Sender: No OFD packet to send [00:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 9A 18 00 90 00 26 [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=10 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 0D 02 02 05 69 E9 B6 1F 06 [00:15:11]Write to MH i2c: E2 0D 00 9B 18 80 0D 02 02 05 00 69 E9 B6 1F 06 00 00 64 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 9B 18 00 90 00 27 [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 0D 03 02 [00:15:11]Write to MH i2c: E2 08 00 9C 18 80 0D 03 02 00 00 00 00 2F [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 0B 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 0B 00 9C 18 00 C3 ED 1B 7D 77 19 CC 6E 90 00 42 [00:15:11]RAPDU: C3 ED 1B 7D 77 19 CC 6E 90 00 [00:15:11]wFMCommunicate OK [00:15:11]SAM_PROTO_SignData done [00:15:11]FM_MakeSignedData done [00:15:11]CreateOFDProtocolMessage [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 11 00 00 [00:15:11]Write to MH i2c: E2 08 00 9D 18 80 11 00 00 00 00 00 00 2F [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 17 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 17 00 9D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 82 [00:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:15:11]wFMCommunicate OK [00:15:11]CreateOFDProtocolMessage done [00:15:11]OFDSenderStorePacket 149068 [00:15:11]StoreOFDPacket docnum=149068 [00:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7E 46 07 01 E3 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 20 00 00 00 00 07 04 06 00 58 2E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 0F AE 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4C 46 02 00 35 04 06 00 B4 69 E9 B6 1F 06 C3 ED 1B 7D 77 19 CC 6E [00:15:11]CheckFolder [00:15:11]dirname=/storage/ofd_packets [00:15:11]CheckFolder done [00:15:11]ProducePacketName [00:15:11]name=ofd_packets/00149068 [00:15:11]NVStorageSaveData ofd_packets/00149068 [00:15:11]File name is /storage/ofd_packets/00149068 [00:15:11]Write 301 bytes [00:15:11]NVStorageSaveData done [00:15:11]OFDSenderStorePacket done [00:15:11]KKMCreateOFDPacket done [00:15:11]NVStorageSaveData kkm_last_timestamp [00:15:11]File name is /storage/kkm_last_timestamp [00:15:11]Write 4 bytes [00:15:11]NVStorageSaveData done [00:15:11]ExternCall_PrintAddStr [00:15:11]wPrintStart [00:15:11]Write to MH i2c: 01 00 00 9E 18 B6 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: 01 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: 01 07 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 FF 0F CB [00:15:11]RasterBufferAndPrint [00:15:11]line Счет N : (1)979994 [00:15:11]line ИНН: 02508201610067 [00:15:11]line Контрольно-Кассовый Чек [00:15:11]line ПРОДАЖА [00:15:11]line ТРК (МРК, ГНК) : 22 [00:15:11]line Товар: 2710124130 [00:15:11]line Аи-92-К-5 [00:15:11]line 11.570 * 66.90 [00:15:11]line = 774.03 [00:15:11]line НДС 12% НСП 1% [00:15:11]line > о реализуемом товаре [00:15:11]line ОКРУГЛЕНИЕ: -0.03 [00:15:11]line ИТОГО: 774.00 [00:15:11]line Внесено: 774.00 [00:15:11]line СДАЧА: 0.00 [00:15:11]line НСП 1% : 6.85 [00:15:11]line НДС 12% : 82.20 [00:15:11]line Наличными: 774.00 [00:15:11]line Безнал.: 0.00 [00:15:11]line Место: АЗС № 68 "Партнер Нефть" [00:15:11]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:15:11]line СНО: Общий режим [00:15:11]line Чек 407 05.06.2024 00:15 [00:15:11]line Смена: 368 ФФД: 1.0 [00:15:11]line ЗНМ: 0300000035 [00:15:11]line РНМ: 0000000000092720 [00:15:11]line Версия ККМ: 001 [00:15:11]line ФМ: 0000000000875057 [00:15:11]line ФД: 149068 [00:15:11]line ФПД: 198366985592582 [00:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T001511&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149068&fm=198366985592582&tin=02508201610067®Number=0000000000092720&sum=77400 [00:15:11]OFD Sender: Processing packet 149068 [packets to send 100, broken 99] [00:15:11]ProducePacketName [00:15:11]name=ofd_packets/00149068 [00:15:11]OFD Sender: To server: pG, [00:15:11]CommunicateWithHost lk.salyk.kg:30040 [00:15:11]ConnectInit lk.salyk.kg [00:15:11]written 0, free lines is 4095 [00:15:11]Connected sock=10 [00:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 7E 46 07 01 E3 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 20 00 00 00 00 07 04 06 00 58 2E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 0F AE 5F 66 0E 04 04 00 70 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4C 46 02 00 35 04 06 00 B4 69 E9 B6 1F 06 C3 ED 1B 7D 77 19 CC 6E [00:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 5F 1A 47 00 68 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 38 37 35 30 35 37 10 04 04 00 4C 46 02 00 F4 03 04 00 31 55 5F 66 B6 04 01 00 00 C4 3F 55 67 2D F0 C8 35 [00:15:12]CommunicateWithHost err = 0 [00:15:12]CheckOFDResponse [00:15:12]1017 (14) - 77093643461234 [00:15:12]1041 (16) - 0000000000875057 [00:15:12]1040 (4) - 149068 [00:15:12]1012 (4) - 04.06.2024 17:56 [00:15:12]1206 (1) - 0 [00:15:12]OFD Sender: Remove packet 149068 [00:15:12]ProducePacketName [00:15:12]name=ofd_packets/00149068 [00:15:12]NVStorageDeleteData [00:15:12]Write to MH i2c: 01 00 00 C9 18 E1 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: 01 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: 01 07 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: 01 07 00 C9 18 00 00 00 00 00 66 0C 5A [00:15:12]RasterBufferAndPrint [00:15:12]line [00:15:12]line [00:15:12]line [00:15:12]line [00:15:12]line [00:15:12]written 0, free lines is 3178 [00:15:12]MH_Cut [00:15:12]Write to MH i2c: D1 01 00 D0 18 01 BA [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: D1 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: D1 01 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: D1 01 00 D0 18 00 B9 [00:15:12]Write to MH i2c: 01 00 00 D1 18 E9 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]OFD Sender: No OFD packet to send [00:15:13]*** Cut start [00:15:13]*** Partial cut [00:15:13]*** CUTSNS_PIN = 1 [00:15:13]*** CUTSNS_PIN = 0 [00:15:13]*** Brake cut motor [00:15:14]Read from MH i2c: 01 [00:15:14]MH_I2C_Read... [00:15:14]*** Stop cut motor [00:15:14]*** Cut end [00:15:14]Read from MH i2c: 01 07 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: 01 07 00 D1 18 00 00 00 00 00 FF 0F FE [00:15:14]process_action close_receipt done [00:15:14]requested_data is exist [00:15:14]produce_requested_data [00:15:14]requested_item fm.sn is exist - process it [00:15:14]wFMCommunicate request_size=4 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 11 00 00 [00:15:14]Write to MH i2c: E2 08 00 D2 18 80 11 00 00 00 00 00 00 64 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 17 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 17 00 D2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B7 [00:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:15:14]wFMCommunicate OK [00:15:14]requested_item fd.num is exist - process it [00:15:14]SAM_PROTO_GetFieldsCounters [00:15:14]wFMCommunicate request_size=4 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 13 00 00 [00:15:14]Write to MH i2c: E2 08 00 D3 18 80 13 00 00 00 00 00 00 67 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 62 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 62 00 D3 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [00:15:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:14]wFMCommunicate OK [00:15:14]SAM_PROTO_GetFieldsCounters done [00:15:14]requested_item shift.num is exist - process it [00:15:14]requested_item shift.opened is exist - process it [00:15:14]req_shift_opened [00:15:14]FM_GetShiftState [00:15:14]SAM_PROTO_GetShiftState [00:15:14]wFMCommunicate request_size=4 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 13 01 00 [00:15:14]Write to MH i2c: E2 08 00 D4 18 80 13 01 00 00 00 00 00 69 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:14]Read from MH i2c: E2 0E 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 0E 00 D4 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2C [00:15:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:15:14]wFMCommunicate OK [00:15:14]SAM_PROTO_GetShiftState done [00:15:14]FM_GetShiftState done [00:15:14]req_shift_opened done [00:15:14]requested_item shift.open_date is exist - process it [00:15:14]req_shift_open_date [00:15:14]req_shift_open_date done [00:15:14]produce_requested_data done [00:15:14]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149068,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [00:15:14]process_action_free close_receipt [00:15:14]json_value_free [00:15:14]json_value_free done [00:15:14]process_json_proto returns [00:15:14]Send response to host [00:15:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149068,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [00:15:14]free response buf [00:15:14]execute_script done [00:15:14]execute_script returns [00:15:14]free content buf [00:15:14]Sock 9.Close socket [00:15:14]Sock 9.Thread stoped [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:14]accept exits with 7 [00:19:14]New connection [00:19:14]New thread 3067075940 created [00:19:14]Thread 3067219300 joined [00:19:14]Waiting for new connection... [00:19:14] Sock 7.Parse request [00:19:14]Sock 7.Check first char [00:19:14]Sock 7.First char is OK [00:19:14]request: POST /json_proto HTTP/1.0 [00:19:14]Method: POST [00:19:14]URL: /json_proto [00:19:14]Method is POST - this is cgi request [00:19:14]url: /json_proto [00:19:14]query_string will be loaded in cgi processing [00:19:14]execute_cgi json_proto POST (null) [00:19:14]execute_cgi path=json_proto method=POST [00:19:14]POST find Content-Length [00:19:14]Host: 172.17.38.4:8080 [00:19:14]Content-Length: 215 [00:19:14]Content-Type: application/json [00:19:14] [00:19:14]POST finish read [00:19:14]Found Content-Length = 215 [00:19:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:14]execute_script... [00:19:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:14]POST & json_proto [00:19:14]process_json_proto [00:19:14]json parsed OK: [00:19:14]protocol is kg_v1.0 [00:19:14]action value=get_value [00:19:14]process_action get_value [00:19:14]cmd_get_value [00:19:14]process_action get_value done [00:19:14]requested_data is exist [00:19:14]produce_requested_data [00:19:14]requested_item kkm.sn is exist - process it [00:19:14]requested_item kkm.ver is exist - process it [00:19:14]requested_item fm.sn is exist - process it [00:19:14]wFMCommunicate request_size=4 [00:19:14]MH_SAM_APDU [00:19:14]CAPDU: 80 11 00 00 [00:19:14]Write to MH i2c: E2 08 00 D5 18 80 11 00 00 00 00 00 00 67 [00:19:14]Write i2c OK [00:19:14]MH_I2C_Read... [00:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:14]Read from MH i2c: E2 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 17 00 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 17 00 D5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BA [00:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:19:14]wFMCommunicate OK [00:19:14]requested_item fd.num is exist - process it [00:19:14]SAM_PROTO_GetFieldsCounters [00:19:14]wFMCommunicate request_size=4 [00:19:14]MH_SAM_APDU [00:19:14]CAPDU: 80 13 00 00 [00:19:14]Write to MH i2c: E2 08 00 D6 18 80 13 00 00 00 00 00 00 6A [00:19:14]Write i2c OK [00:19:14]MH_I2C_Read... [00:19:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:14]Read from MH i2c: E2 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 62 00 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 62 00 D6 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [00:19:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:14]wFMCommunicate OK [00:19:14]SAM_PROTO_GetFieldsCounters done [00:19:14]requested_item shift.num is exist - process it [00:19:14]requested_item shift.opened is exist - process it [00:19:14]req_shift_opened [00:19:14]FM_GetShiftState [00:19:14]SAM_PROTO_GetShiftState [00:19:14]wFMCommunicate request_size=4 [00:19:14]MH_SAM_APDU [00:19:14]CAPDU: 80 13 01 00 [00:19:14]Write to MH i2c: E2 08 00 D7 18 80 13 01 00 00 00 00 00 6C [00:19:14]Write i2c OK [00:19:14]MH_I2C_Read... [00:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:14]Read from MH i2c: E2 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 0E 00 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 0E 00 D7 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 2F [00:19:14]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:19:14]wFMCommunicate OK [00:19:14]SAM_PROTO_GetShiftState done [00:19:14]FM_GetShiftState done [00:19:14]req_shift_opened done [00:19:14]requested_item shift.open_date is exist - process it [00:19:14]req_shift_open_date [00:19:14]req_shift_open_date done [00:19:14]produce_requested_data done [00:19:14]produce_requested_data return {"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":149068,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [00:19:14]process_action_free get_value [00:19:14]json_value_free [00:19:14]json_value_free done [00:19:14]process_json_proto returns [00:19:14]Send response to host [00:19:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":149068,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [00:19:14]free response buf [00:19:14]execute_script done [00:19:14]execute_script returns [00:19:14]free content buf [00:19:14]Sock 7.Close socket [00:19:14]Sock 7.Thread stoped [00:19:14]accept exits with 10 [00:19:14]New connection [00:19:14]New thread 3067219300 created [00:19:14]Thread 3067075940 joined [00:19:14]Waiting for new connection... [00:19:14] Sock 10.Parse request [00:19:14]Sock 10.Check first char [00:19:14]Sock 10.First char is OK [00:19:14]request: POST /json_proto HTTP/1.0 [00:19:14]Method: POST [00:19:14]URL: /json_proto [00:19:14]Method is POST - this is cgi request [00:19:14]url: /json_proto [00:19:14]query_string will be loaded in cgi processing [00:19:14]execute_cgi json_proto POST (null) [00:19:14]execute_cgi path=json_proto method=POST [00:19:14]POST find Content-Length [00:19:14]Host: 172.17.38.4:8080 [00:19:14]Content-Length: 331 [00:19:14]Content-Type: application/json [00:19:14] [00:19:14]POST finish read [00:19:14]Found Content-Length = 331 [00:19: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:19:14]execute_script... [00:19: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:19:14]POST & json_proto [00:19:14]process_json_proto [00:19:14]json parsed OK: [00:19:14]protocol is kg_v1.0 [00:19:14]action value=get_value [00:19:15]process_action get_value [00:19:15]cmd_get_value [00:19:15]process_action get_value done [00:19:15]requested_data is exist [00:19:15]produce_requested_data [00:19:15]requested_item fm.sale.total is exist - process it [00:19:15]SAM_PROTO_GetFMData [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 13 03 00 [00:19:15]Write to MH i2c: E2 08 00 D8 18 80 13 03 00 00 00 00 00 6F [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:15]Read from MH i2c: E2 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 FD 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 FD 00 D8 18 00 C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 D2 [00:19:15]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 [00:19:15]wFMCommunicate OK [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 17 00 00 [00:19:15]Write to MH i2c: E2 08 00 D9 18 80 17 00 00 00 00 00 00 71 [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:15]Read from MH i2c: E2 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 FD 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 FD 00 D9 18 00 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CE [00:19:15]RAPDU: 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:15]wFMCommunicate OK [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 17 00 00 [00:19:15]Write to MH i2c: E2 08 00 DA 18 80 17 00 00 00 00 00 00 72 [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 DA 18 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [00:19:16]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:16]wFMCommunicate OK [00:19:16]wFMCommunicate request_size=4 [00:19:16]MH_SAM_APDU [00:19:16]CAPDU: 80 17 00 00 [00:19:16]Write to MH i2c: E2 08 00 DB 18 80 17 00 00 00 00 00 00 73 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 DB 18 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [00:19:16]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:16]wFMCommunicate OK [00:19:16]wFMCommunicate request_size=4 [00:19:16]MH_SAM_APDU [00:19:16]CAPDU: 80 17 00 00 [00:19:16]Write to MH i2c: E2 08 00 DC 18 80 17 00 00 00 00 00 00 74 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 E4 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 E4 00 DC 18 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 54 [00:19:16]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:16]wFMCommunicate OK [00:19:16]SAM_PROTO_GetFMData done [00:19:16]requested_item fm.sale_refund.total is exist - process it [00:19:16]requested_item fm.buy.total is exist - process it [00:19:16]requested_item shift.sale.total is exist - process it [00:19:16]SAM_PROTO_GetShiftData [00:19:16]wFMCommunicate request_size=4 [00:19:16]MH_SAM_APDU [00:19:16]CAPDU: 80 13 02 00 [00:19:16]Write to MH i2c: E2 08 00 DD 18 80 13 02 00 00 00 00 00 73 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 DD 18 00 BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 5D [00:19:17]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:19:17]wFMCommunicate OK [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 17 00 00 [00:19:17]Write to MH i2c: E2 08 00 DE 18 80 17 00 00 00 00 00 00 76 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 DE 18 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 4A [00:19:17]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [00:19:17]wFMCommunicate OK [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 17 00 00 [00:19:17]Write to MH i2c: E2 08 00 DF 18 80 17 00 00 00 00 00 00 77 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 DF 18 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 A3 [00:19:17]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [00:19:17]wFMCommunicate OK [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 17 00 00 [00:19:17]Write to MH i2c: E2 08 00 E0 18 80 17 00 00 00 00 00 00 78 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:17]OFD Sender: No OFD packet to send [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 E0 18 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 ED [00:19:17]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:19:17]wFMCommunicate OK [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 17 00 00 [00:19:17]Write to MH i2c: E2 08 00 E1 18 80 17 00 00 00 00 00 00 79 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:19:18]Read from MH i2c: E2 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 D8 00 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 D8 00 E1 18 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 60 [00:19:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:19:18]wFMCommunicate OK [00:19:18]SAM_PROTO_GetShiftData done [00:19:18]requested_item shift.sale.total_cash is exist - process it [00:19:18]requested_item shift.sale_refund.total is exist - process it [00:19:18]requested_item shift.sale_refund.total_cash is exist - process it [00:19:18]requested_item shift.buy.total is exist - process it [00:19:18]requested_item shift.buy.total_cash is exist - process it [00:19:18]produce_requested_data done [00:19:18]produce_requested_data return {"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.00,"fm.buy.total":0.00,"shift.sale.total":257400.70,"shift.sale.total_cash":220879.00,"shift.sale_refund.total":1200.00,"shift.sale_refund.total_cash":1200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:18]process_action_free get_value [00:19:18]json_value_free [00:19:18]json_value_free done [00:19:18]process_json_proto returns [00:19:18]Send response to host [00:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.00,"fm.buy.total":0.00,"shift.sale.total":257400.70,"shift.sale.total_cash":220879.00,"shift.sale_refund.total":1200.00,"shift.sale_refund.total_cash":1200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:18]free response buf [00:19:18]execute_script done [00:19:18]execute_script returns [00:19:18]free content buf [00:19:18]Sock 10.Close socket [00:19:18]Sock 10.Thread stoped [00:19:18]accept exits with 7 [00:19:18]New connection [00:19:18]New thread 3067075940 created [00:19:18]Thread 3067219300 joined [00:19:18]Waiting for new connection... [00:19:18] Sock 7.Parse request [00:19:18]Sock 7.Check first char [00:19:18]Sock 7.First char is OK [00:19:18]request: POST /json_proto HTTP/1.0 [00:19:18]Method: POST [00:19:18]URL: /json_proto [00:19:18]Method is POST - this is cgi request [00:19:18]url: /json_proto [00:19:18]query_string will be loaded in cgi processing [00:19:18]execute_cgi json_proto POST (null) [00:19:18]execute_cgi path=json_proto method=POST [00:19:18]POST find Content-Length [00:19:18]Host: 172.17.38.4:8080 [00:19:18]Content-Length: 331 [00:19:18]Content-Type: application/json [00:19:18] [00:19:18]POST finish read [00:19:18]Found Content-Length = 331 [00:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:18]execute_script... [00:19:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:18]POST & json_proto [00:19:18]process_json_proto [00:19:18]json parsed OK: [00:19:18]protocol is kg_v1.0 [00:19:18]action value=get_value [00:19:18]process_action get_value [00:19:18]cmd_get_value [00:19:18]process_action get_value done [00:19:18]requested_data is exist [00:19:18]produce_requested_data [00:19:18]requested_item fm.sale.total is exist - process it [00:19:18]SAM_PROTO_GetFMData [00:19:18]wFMCommunicate request_size=4 [00:19:18]MH_SAM_APDU [00:19:18]CAPDU: 80 13 03 00 [00:19:18]Write to MH i2c: E2 08 00 E2 18 80 13 03 00 00 00 00 00 79 [00:19:18]Write i2c OK [00:19:18]MH_I2C_Read... [00:19:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:18]Read from MH i2c: E2 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 FD 00 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 FD 00 E2 18 00 C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 DC [00:19:18]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 [00:19:18]wFMCommunicate OK [00:19:18]wFMCommunicate request_size=4 [00:19:18]MH_SAM_APDU [00:19:18]CAPDU: 80 17 00 00 [00:19:18]Write to MH i2c: E2 08 00 E3 18 80 17 00 00 00 00 00 00 7B [00:19:18]Write i2c OK [00:19:18]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 FD 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 FD 00 E3 18 00 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D8 [00:19:19]RAPDU: 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:19]wFMCommunicate OK [00:19:19]wFMCommunicate request_size=4 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 17 00 00 [00:19:19]Write to MH i2c: E2 08 00 E4 18 80 17 00 00 00 00 00 00 7C [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 FD 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 FD 00 E4 18 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 54 [00:19:19]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:19]wFMCommunicate OK [00:19:19]wFMCommunicate request_size=4 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 17 00 00 [00:19:19]Write to MH i2c: E2 08 00 E5 18 80 17 00 00 00 00 00 00 7D [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 FD 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 FD 00 E5 18 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F8 [00:19:20]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:20]wFMCommunicate OK [00:19:20]wFMCommunicate request_size=4 [00:19:20]MH_SAM_APDU [00:19:20]CAPDU: 80 17 00 00 [00:19:20]Write to MH i2c: E2 08 00 E6 18 80 17 00 00 00 00 00 00 7E [00:19:20]Write i2c OK [00:19:20]MH_I2C_Read... [00:19:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 E4 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 E4 00 E6 18 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5E [00:19:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:20]wFMCommunicate OK [00:19:20]SAM_PROTO_GetFMData done [00:19:20]requested_item fm.sale_refund.total is exist - process it [00:19:20]requested_item fm.buy.total is exist - process it [00:19:20]requested_item shift.sale.total is exist - process it [00:19:20]SAM_PROTO_GetShiftData [00:19:20]wFMCommunicate request_size=4 [00:19:20]MH_SAM_APDU [00:19:20]CAPDU: 80 13 02 00 [00:19:20]Write to MH i2c: E2 08 00 E7 18 80 13 02 00 00 00 00 00 7D [00:19:20]Write i2c OK [00:19:20]MH_I2C_Read... [00:19:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 FD 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 FD 00 E7 18 00 BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 67 [00:19:20]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:19:21]wFMCommunicate OK [00:19:21]wFMCommunicate request_size=4 [00:19:21]MH_SAM_APDU [00:19:21]CAPDU: 80 17 00 00 [00:19:21]Write to MH i2c: E2 08 00 E8 18 80 17 00 00 00 00 00 00 80 [00:19:21]Write i2c OK [00:19:21]MH_I2C_Read... [00:19:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:21]Read from MH i2c: E2 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 E8 18 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 54 [00:19:21]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [00:19:21]wFMCommunicate OK [00:19:21]wFMCommunicate request_size=4 [00:19:21]MH_SAM_APDU [00:19:21]CAPDU: 80 17 00 00 [00:19:21]Write to MH i2c: E2 08 00 E9 18 80 17 00 00 00 00 00 00 81 [00:19:21]Write i2c OK [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 [00:19:21]MH_I2C_Read... [00:19:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:21]Read from MH i2c: E2 FD 00 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 E9 18 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 AD [00:19:21]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [00:19:21]wFMCommunicate OK [00:19:21]wFMCommunicate request_size=4 [00:19:21]MH_SAM_APDU [00:19:21]CAPDU: 80 17 00 00 [00:19:21]Write to MH i2c: E2 08 00 EA 18 80 17 00 00 00 00 00 00 82 [00:19:21]Write i2c OK [00:19:21]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 EA 18 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 F7 [00:19:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:19:22]wFMCommunicate OK [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 17 00 00 [00:19:22]Write to MH i2c: E2 08 00 EB 18 80 17 00 00 00 00 00 00 83 [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 D8 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 D8 00 EB 18 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6A [00:19:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:22]wFMCommunicate OK [00:19:22]SAM_PROTO_GetShiftData done [00:19:22]requested_item shift.sale.total_cash is exist - process it [00:19:22]requested_item shift.sale_refund.total is exist - process it [00:19:22]requested_item shift.sale_refund.total_cash is exist - process it [00:19:22]requested_item shift.buy.total is exist - process it [00:19:22]requested_item shift.buy.total_cash is exist - process it [00:19:22]produce_requested_data done [00:19:22]produce_requested_data return {"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.00,"fm.buy.total":0.00,"shift.sale.total":257400.70,"shift.sale.total_cash":220879.00,"shift.sale_refund.total":1200.00,"shift.sale_refund.total_cash":1200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:22]process_action_free get_value [00:19:22]json_value_free [00:19:22]json_value_free done [00:19:22]process_json_proto returns [00:19:22]Send response to host [00:19:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.00,"fm.buy.total":0.00,"shift.sale.total":257400.70,"shift.sale.total_cash":220879.00,"shift.sale_refund.total":1200.00,"shift.sale_refund.total_cash":1200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:22]free response buf [00:19:22]execute_script done [00:19:22]execute_script returns [00:19:22]free content buf [00:19:22]Sock 7.Close socket [00:19:22]Sock 7.Thread stoped [00:19:22]accept exits with 9 [00:19:22]New connection [00:19:22]New thread 3067219300 created [00:19:22]Thread 3067075940 joined [00:19:22]Waiting for new connection... [00:19:22] Sock 9.Parse request [00:19:22]Sock 9.Check first char [00:19:22]Sock 9.First char is OK [00:19:22]request: POST /json_proto HTTP/1.0 [00:19:22]Method: POST [00:19:22]URL: /json_proto [00:19:22]Method is POST - this is cgi request [00:19:22]url: /json_proto [00:19:22]query_string will be loaded in cgi processing [00:19:22]execute_cgi json_proto POST (null) [00:19:22]execute_cgi path=json_proto method=POST [00:19:22]POST find Content-Length [00:19:22]Host: 172.17.38.4:8080 [00:19:22]Content-Length: 251 [00:19:22]Content-Type: application/json [00:19:22] [00:19:22]POST finish read [00:19:22]Found Content-Length = 251 [00:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:22]execute_script... [00:19:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:22]POST & json_proto [00:19:22]process_json_proto [00:19:22]json parsed OK: [00:19:22]protocol is kg_v1.0 [00:19:22]action value=x_report [00:19:22]process_action x_report [00:19:22]cmd_x_report [00:19:22]MH_GetDate [00:19:22]Write to MH i2c: F0 00 00 EC 18 F3 [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: F0 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: F0 09 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: F0 09 00 EC 18 00 0C AF 5F 66 CC 51 87 64 84 [00:19:22]GetLastDocTimeStamp 1717546511 [00:19:22]current date 1717546764 [00:19:22]FM_GetShiftState [00:19:22]SAM_PROTO_GetShiftState [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 13 01 00 [00:19:22]Write to MH i2c: E2 08 00 ED 18 80 13 01 00 00 00 00 00 82 [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 0E 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 0E 00 ED 18 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 45 [00:19:22]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:19:22]wFMCommunicate OK [00:19:22]SAM_PROTO_GetShiftState done [00:19:22]FM_GetShiftState done [00:19:22]KKMCreateXReportDocument [00:19:22]Load OK [00:19:22]Malloc new data [00:19:22]MH_GetDate [00:19:22]Write to MH i2c: F0 00 00 EE 18 F5 [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: F0 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: F0 09 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: F0 09 00 EE 18 00 0C AF 5F 66 CC 51 87 64 86 [00:19:22]Malloc new data [00:19:22]Malloc new data [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 11 00 00 [00:19:22]Write to MH i2c: E2 08 00 EF 18 80 11 00 00 00 00 00 00 81 [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 17 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 17 00 EF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D4 [00:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:19:22]wFMCommunicate OK [00:19:22]SAM_PROTO_GetFieldsCounters [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 13 00 00 [00:19:22]Write to MH i2c: E2 08 00 F0 18 80 13 00 00 00 00 00 00 84 [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]OFD Sender: No OFD packet to send [00:19:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:23]Read from MH i2c: E2 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 62 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 62 00 F0 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [00:19:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:23]wFMCommunicate OK [00:19:23]SAM_PROTO_GetFieldsCounters done [00:19:23]Malloc new data [00:19:23]Malloc new data [00:19:23]Malloc new data [00:19:23]KKMCreateXReportDocument OK [00:19:23]KKMSetXReportData OK [00:19:23]KKMPrepareXReportFMData [00:19:23]SAM_PROTO_GetShiftData [00:19:23]wFMCommunicate request_size=4 [00:19:23]MH_SAM_APDU [00:19:23]CAPDU: 80 13 02 00 [00:19:23]Write to MH i2c: E2 08 00 F1 18 80 13 02 00 00 00 00 00 87 [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:23]Read from MH i2c: E2 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 FD 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 FD 00 F1 18 00 BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 71 [00:19:23]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:19:23]wFMCommunicate OK [00:19:23]wFMCommunicate request_size=4 [00:19:23]MH_SAM_APDU [00:19:23]CAPDU: 80 17 00 00 [00:19:23]Write to MH i2c: E2 08 00 F2 18 80 17 00 00 00 00 00 00 8A [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 F2 18 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 5E [00:19:24]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [00:19:24]wFMCommunicate OK [00:19:24]wFMCommunicate request_size=4 [00:19:24]MH_SAM_APDU [00:19:24]CAPDU: 80 17 00 00 [00:19:24]Write to MH i2c: E2 08 00 F3 18 80 17 00 00 00 00 00 00 8B [00:19:24]Write i2c OK [00:19:24]MH_I2C_Read... [00:19:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 F3 18 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 B7 [00:19:24]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [00:19:24]wFMCommunicate OK [00:19:24]wFMCommunicate request_size=4 [00:19:24]MH_SAM_APDU [00:19:24]CAPDU: 80 17 00 00 [00:19:24]Write to MH i2c: E2 08 00 F4 18 80 17 00 00 00 00 00 00 8C [00:19:24]Write i2c OK [00:19:24]MH_I2C_Read... [00:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:25]Read from MH i2c: E2 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 F4 18 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 01 [00:19:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:19:25]wFMCommunicate OK [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 17 00 00 [00:19:25]Write to MH i2c: E2 08 00 F5 18 80 17 00 00 00 00 00 00 8D [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:19:25]Read from MH i2c: E2 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 D8 00 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 D8 00 F5 18 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 74 [00:19:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:19:25]wFMCommunicate OK [00:19:25]SAM_PROTO_GetShiftData done [00:19:25]1194 (1207) - счетчики итогов смены [00:19:25] 1134 (4) - 407 - количество чеков со всеми признаками расчетов [00:19:25] 1129 (158) - счетчики операций «приход» [00:19:25] 1135 (4) - 405 - количество чеков по признаку расчетов [00:19:25] 1201 (4) - 257400.70 - общая итоговая сумма в чеках [00:19:25] 1136 (4) - 220879.00 - итоговая сумма в чеках наличными [00:19:25] 1138 (3) - 36521.70 - итоговая сумма в чеках безналичными [00:19:25] 1024 (123) - суммы налогов [00:19:25] 1006 (9) - суммы НДС [00:19:25] 1010 (1) - 0% - код ставки НДС [00:19:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:25] 1006 (12) - суммы НДС [00:19:25] 1010 (1) - 12% - код ставки НДС [00:19:25] 1011 (3) - 27343.77 - сумма НДС по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 0% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (12) - суммы НСП [00:19:25] 1014 (1) - 1% - код ставки НСП [00:19:25] 1015 (3) - 2278.69 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 2% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 3% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 5% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 0,50% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 1,50% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1130 (151) - счетчики операций «возврат прихода» [00:19:25] 1135 (4) - 2 - количество чеков по признаку расчетов [00:19:25] 1201 (3) - 1200.00 - общая итоговая сумма в чеках [00:19:25] 1136 (3) - 1200.00 - итоговая сумма в чеках наличными [00:19:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:25] 1024 (121) - суммы налогов [00:19:25] 1006 (9) - суммы НДС [00:19:25] 1010 (1) - 0% - код ставки НДС [00:19:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:25] 1006 (11) - суммы НДС [00:19:25] 1010 (1) - 12% - код ставки НДС [00:19:25] 1011 (2) - 127.45 - сумма НДС по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 0% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (11) - суммы НСП [00:19:25] 1014 (1) - 1% - код ставки НСП [00:19:25] 1015 (2) - 10.62 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 2% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 3% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 5% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 0,50% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 1,50% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1131 (141) - счетчики операций «расход» [00:19:25] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:25] 1024 (117) - суммы налогов [00:19:25] 1006 (9) - суммы НДС [00:19:25] 1010 (1) - 0% - код ставки НДС [00:19:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:25] 1006 (9) - суммы НДС [00:19:25] 1010 (1) - 12% - код ставки НДС [00:19:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 0% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 1% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 2% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 3% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 5% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 0,50% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1007 (9) - суммы НСП [00:19:25] 1014 (1) - 1,50% - код ставки НСП [00:19:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:25] 1132 (141) - счетчики операций «возврат расхода» [00:19:25] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:25] 1024 (117) - суммы налогов [00:19:25] 1006 (9) - суммы НДС [00:19:25] 1010 (1) - 0% - код ставки НДС [00:19:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:25] 1006 (9) - суммы НДС [00:19:26] 1010 (1) - 12% - код ставки НДС [00:19:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 0% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 1% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 2% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 3% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 5% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 0,50% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 1,50% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1133 (588) - - счетчики коррекции - не используются [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1194 (04AA) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1134 (046E) [00:19:26]Malloc new data [00:19:26]Processing tag 1129 (0469) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1135 (046F) [00:19:26]Malloc new data [00:19:26]Processing tag 1201 (04B1) [00:19:26]Malloc new data [00:19:26]Processing tag 1136 (0470) [00:19:26]Malloc new data [00:19:26]Processing tag 1138 (0472) [00:19:26]Malloc new data [00:19:26]Processing tag 1024 (0400) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1006 (03EE) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1010 (03F2) [00:19:26]Malloc new data [00:19:26]Processing tag 1011 (03F3) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1006 (03EE) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1010 (03F2) [00:19:26]Malloc new data [00:19:26]Processing tag 1011 (03F3) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]SetTLVBufToDocument err=0 [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1130 (046A) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1135 (046F) [00:19:26]Malloc new data [00:19:26]Processing tag 1201 (04B1) [00:19:26]Malloc new data [00:19:26]Processing tag 1136 (0470) [00:19:26]Malloc new data [00:19:26]Processing tag 1138 (0472) [00:19:26]Malloc new data [00:19:26]Processing tag 1024 (0400) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1006 (03EE) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1010 (03F2) [00:19:26]Malloc new data [00:19:26]Processing tag 1011 (03F3) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1006 (03EE) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1010 (03F2) [00:19:26]Malloc new data [00:19:26]Processing tag 1011 (03F3) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]SetTLVBufToDocument err=0 [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1131 (046B) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1135 (046F) [00:19:26]Malloc new data [00:19:26]Processing tag 1201 (04B1) [00:19:26]Malloc new data [00:19:26]Processing tag 1136 (0470) [00:19:26]Malloc new data [00:19:26]Processing tag 1138 (0472) [00:19:26]Malloc new data [00:19:26]Processing tag 1024 (0400) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1006 (03EE) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1010 (03F2) [00:19:26]Malloc new data [00:19:26]Processing tag 1011 (03F3) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1006 (03EE) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1010 (03F2) [00:19:26]Malloc new data [00:19:26]Processing tag 1011 (03F3) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]SetTLVBufToDocument err=0 [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1132 (046C) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1135 (046F) [00:19:26]Malloc new data [00:19:26]Processing tag 1201 (04B1) [00:19:26]Malloc new data [00:19:26]Processing tag 1136 (0470) [00:19:26]Malloc new data [00:19:26]Processing tag 1138 (0472) [00:19:26]Malloc new data [00:19:26]Processing tag 1024 (0400) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1006 (03EE) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1010 (03F2) [00:19:26]Malloc new data [00:19:26]Processing tag 1011 (03F3) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1006 (03EE) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1010 (03F2) [00:19:26]Malloc new data [00:19:26]Processing tag 1011 (03F3) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1007 (03EF) [00:19:26]Load OK [00:19:26]SetTLVBufToDocument [00:19:26]Processing tag 1014 (03F6) [00:19:26]Malloc new data [00:19:26]Processing tag 1015 (03F7) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]SetTLVBufToDocument err=0 [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Processing tag 1133 (046D) [00:19:26]Malloc new data [00:19:26]SetTLVBufToDocument err=0 [00:19:26]SetTLVBufToDocument err=0 [00:19:26]Malloc new data [00:19:26]SAM_PROTO_GetFMData [00:19:26]wFMCommunicate request_size=4 [00:19:26]MH_SAM_APDU [00:19:26]CAPDU: 80 13 03 00 [00:19:26]Write to MH i2c: E2 08 00 F6 18 80 13 03 00 00 00 00 00 8D [00:19:26]Write i2c OK [00:19:26]MH_I2C_Read... [00:19:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:27]Read from MH i2c: E2 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 F6 18 00 C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 F0 [00:19:27]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 [00:19:27]wFMCommunicate OK [00:19:27]wFMCommunicate request_size=4 [00:19:27]MH_SAM_APDU [00:19:27]CAPDU: 80 17 00 00 [00:19:27]Write to MH i2c: E2 08 00 F7 18 80 17 00 00 00 00 00 00 8F [00:19:27]Write i2c OK [00:19:27]MH_I2C_Read... [00:19:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:27]Read from MH i2c: E2 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 F7 18 00 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EC [00:19:28]RAPDU: 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [00:19:28]01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=4 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 17 00 00 [00:19:28]Write to MH i2c: E2 08 00 F8 18 80 17 00 00 00 00 00 00 90 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 FD 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 FD 00 F8 18 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [00:19:28]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=4 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 17 00 00 [00:19:28]Write to MH i2c: E2 08 00 F9 18 80 17 00 00 00 00 00 00 91 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 FD 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 FD 00 F9 18 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [00:19:29]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:29]wFMCommunicate OK [00:19:29]wFMCommunicate request_size=4 [00:19:29]MH_SAM_APDU [00:19:29]CAPDU: 80 17 00 00 [00:19:29]Write to MH i2c: E2 08 00 FA 18 80 17 00 00 00 00 00 00 92 [00:19:29]Write i2c OK [00:19:29]MH_I2C_Read... [00:19:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:19:29]Read from MH i2c: E2 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 E4 00 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 E4 00 FA 18 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 72 [00:19:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:29]wFMCommunicate OK [00:19:29]SAM_PROTO_GetFMData done [00:19:29]FM_GetFMData:85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:30]oper:6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:19:30]total:92 E5 37 D5 01 [00:19:30]Malloc new data [00:19:30]oper:6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:30]total:98 42 08 04 [00:19:30]Malloc new data [00:19:30]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:19:30]total: [00:19:30]Malloc new data [00:19:30]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:19:30]total: [00:19:30]Malloc new data [00:19:30]KKMPrepareXReportFMData err=0 [00:19:30]Х отчет ИНН: 02508201610067 Кассир: Аскаров Н. 05.06.2024 00:19 Смена: 266 РНМ: 0000000000092720 ЗНМ: 0300000035 СНО: Общий режим Всего чеков: 407 ИТОГИ ПРИХОД Чеков: 405 Общий итог: 257400.70 Итого наличными: 220879.00 Итого безнал.: 36521.70 НДС 0% : 0.00 НДС 12% : 27343.77 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2278.69 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 1200.00 Итого наличными: 1200.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 127.45 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 10.62 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 219679.00 НС Приход: 78721775.54 НС Возвр.Прихода: 676502.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875057 [00:19:30]StoreToDocumentArchive [00:19:30]MH_GetDate [00:19:30]Write to MH i2c: F0 00 00 FB 18 02 [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: F0 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: F0 09 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: F0 09 00 FB 18 00 14 AF 5F 66 CC 51 87 64 9B [00:19:30]shift 266 fd 1717546772 [00:19:30]Create dir for shift 0266 [00:19:30]save to /storage/0266/doc_1717546772 [00:19:30]save last doc name /storage/0266/doc_1717546772 to /storage/kkm_last_doc_name [00:19:30]save OK [00:19:30]Clear old archive folders... [00:19:30]NVStorageSaveData kkm_last_timestamp [00:19:30]File name is /storage/kkm_last_timestamp [00:19:30]Write 4 bytes [00:19:30]NVStorageSaveData done [00:19:30]ExternCall_PrintAddStr [00:19:30]wPrintStart [00:19:30]Write to MH i2c: 01 00 00 FC 18 14 [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: 01 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: 01 07 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: 01 07 00 FC 18 00 00 00 00 00 FF 0F 29 [00:19:30]RasterBufferAndPrint [00:19:30]line Х отчет [00:19:30]line ИНН: 02508201610067 [00:19:30]line Кассир: Аскаров Н. [00:19:30]line 05.06.2024 00:19 [00:19:30]line Смена: 266 [00:19:30]line РНМ: 0000000000092720 [00:19:30]line ЗНМ: 0300000035 [00:19:30]line СНО: Общий режим [00:19:30]line Всего чеков: 407 [00:19:30]line ИТОГИ ПРИХОД [00:19:30]line Чеков: 405 [00:19:30]line Общий итог: 257400.70 [00:19:30]line Итого наличными: 220879.00 [00:19:30]line Итого безнал.: 36521.70 [00:19:30]line НДС 0% : 0.00 [00:19:30]line НДС 12% : 27343.77 [00:19:30]line НСП 0% : 0.00 [00:19:30]line НСП 1,50% : 0.00 [00:19:30]line НСП 0,50% : 0.00 [00:19:30]line НСП 5% : 0.00 [00:19:30]line НСП 3% : 0.00 [00:19:30]line НСП 2% : 0.00 [00:19:30]line НСП 1% : 2278.69 [00:19:30]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:19:30]line Чеков: 2 [00:19:30]line Общий итог: 1200.00 [00:19:30]line Итого наличными: 1200.00 [00:19:30]line Итого безнал.: 0.00 [00:19:30]line НДС 0% : 0.00 [00:19:30]line НДС 12% : 127.45 [00:19:30]line НСП 0% : 0.00 [00:19:30]line НСП 1,50% : 0.00 [00:19:30]line НСП 0,50% : 0.00 [00:19:30]line НСП 5% : 0.00 [00:19:30]line НСП 3% : 0.00 [00:19:30]line НСП 2% : 0.00 [00:19:30]line НСП 1% : 10.62 [00:19:30]line ИТОГИ РАСХОД [00:19:30]line Чеков: 0 [00:19:30]line Общий итог: 0.00 [00:19:30]line Итого наличными: 0.00 [00:19:30]line Итого безнал.: 0.00 [00:19:30]line НДС 0% : 0.00 [00:19:31]line НДС 12% : 0.00 [00:19:31]line НСП 0% : 0.00 [00:19:31]line НСП 1,50% : 0.00 [00:19:31]line НСП 0,50% : 0.00 [00:19:31]line НСП 5% : 0.00 [00:19:31]line НСП 3% : 0.00 [00:19:31]line НСП 2% : 0.00 [00:19:31]line НСП 1% : 0.00 [00:19:31]line ИТОГИ ВОЗВРАТ РАСХОДА [00:19:31]line Чеков: 0 [00:19:31]line Общий итог: 0.00 [00:19:31]line Итого наличными: 0.00 [00:19:31]line Итого безнал.: 0.00 [00:19:31]line НДС 0% : 0.00 [00:19:31]line НДС 12% : 0.00 [00:19:31]line НСП 0% : 0.00 [00:19:31]line НСП 1,50% : 0.00 [00:19:31]line НСП 0,50% : 0.00 [00:19:31]line НСП 5% : 0.00 [00:19:31]line НСП 3% : 0.00 [00:19:31]line НСП 2% : 0.00 [00:19:31]line НСП 1% : 0.00 [00:19:31]line Сумма внесений: 0.00 [00:19:31]line Сумма выплат: 0.00 [00:19:31]line Нал. в кассе: 219679.00 [00:19:31]line НС Приход: 78721775.54 [00:19:31]line НС Возвр.Прихода: 676502.00 [00:19:31]line НС Расход: 0.00 [00:19:31]line НС Возвр.Расхода: 0.00 [00:19:31]line ФМ: 0000000000875057 [00:19:31]written 0, free lines is 4095 [00:19:31]Write to MH i2c: 01 00 00 47 19 60 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: 01 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: 01 07 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: 01 07 00 47 19 00 00 00 00 00 9A 09 0A [00:19:31]RasterBufferAndPrint [00:19:31]line [00:19:31]line [00:19:31]line [00:19:31]line [00:19:31]line [00:19:31]written 0, free lines is 2483 [00:19:31]MH_Cut [00:19:31]Write to MH i2c: D1 01 00 4E 19 01 39 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: D1 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: D1 01 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: D1 01 00 4E 19 00 38 [00:19:31]Write to MH i2c: 01 00 00 4F 19 68 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:33]OFD Sender: No OFD packet to send [00:19:33]*** Cut start [00:19:33]*** Partial cut [00:19:33]*** CUTSNS_PIN = 1 [00:19:33]*** CUTSNS_PIN = 0 [00:19:33]*** Brake cut motor [00:19:34]Read from MH i2c: 01 [00:19:34]MH_I2C_Read... [00:19:34]*** Stop cut motor [00:19:34]*** Cut end [00:19:34]Read from MH i2c: 01 07 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: 01 07 00 4F 19 00 00 00 00 00 FF 0F 7D [00:19:34]process_action x_report done [00:19:34]requested_data is exist [00:19:34]produce_requested_data [00:19:34]requested_item fd.num is exist - process it [00:19:34]SAM_PROTO_GetFieldsCounters [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 13 00 00 [00:19:34]Write to MH i2c: E2 08 00 50 19 80 13 00 00 00 00 00 00 E5 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 62 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 62 00 50 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [00:19:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:34]wFMCommunicate OK [00:19:34]SAM_PROTO_GetFieldsCounters done [00:19:34]requested_item shift.num is exist - process it [00:19:34]requested_item shift.opened is exist - process it [00:19:34]req_shift_opened [00:19:34]FM_GetShiftState [00:19:34]SAM_PROTO_GetShiftState [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 13 01 00 [00:19:34]Write to MH i2c: E2 08 00 51 19 80 13 01 00 00 00 00 00 E7 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 0E 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 0E 00 51 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AA [00:19:34]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:19:34]wFMCommunicate OK [00:19:34]SAM_PROTO_GetShiftState done [00:19:34]FM_GetShiftState done [00:19:34]req_shift_opened done [00:19:34]requested_item shift.open_date is exist - process it [00:19:34]req_shift_open_date [00:19:34]req_shift_open_date done [00:19:34]produce_requested_data done [00:19:34]produce_requested_data return {"fd.num":149068,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [00:19:34]process_action_free x_report [00:19:34]json_value_free [00:19:34]json_value_free done [00:19:34]process_json_proto returns [00:19:34]Send response to host [00:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":149068,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [00:19:34]free response buf [00:19:34]execute_script done [00:19:34]execute_script returns [00:19:34]free content buf [00:19:34]Sock 9.Close socket [00:19:34]Sock 9.Thread stoped [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:43]accept exits with 7 [00:19:43]New connection [00:19:43]New thread 3067075940 created [00:19:43]Thread 3067219300 joined [00:19:43]Waiting for new connection... [00:19:43] Sock 7.Parse request [00:19:43]Sock 7.Check first char [00:19:43]Sock 7.First char is OK [00:19:43]request: POST /json_proto HTTP/1.0 [00:19:43]Method: POST [00:19:43]URL: /json_proto [00:19:43]Method is POST - this is cgi request [00:19:43]url: /json_proto [00:19:43]query_string will be loaded in cgi processing [00:19:43]execute_cgi json_proto POST (null) [00:19:43]execute_cgi path=json_proto method=POST [00:19:43]POST find Content-Length [00:19:43]Host: 172.17.38.4:8080 [00:19:43]Content-Length: 215 [00:19:43]Content-Type: application/json [00:19:43] [00:19:43]POST finish read [00:19:43]Found Content-Length = 215 [00:19: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" ] } } [00:19:43]execute_script... [00:19: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" ] } } [00:19:43]POST & json_proto [00:19:43]process_json_proto [00:19:43]json parsed OK: [00:19:43]protocol is kg_v1.0 [00:19:43]action value=get_value [00:19:43]process_action get_value [00:19:43]cmd_get_value [00:19:43]process_action get_value done [00:19:43]requested_data is exist [00:19:43]produce_requested_data [00:19:43]requested_item kkm.sn is exist - process it [00:19:43]requested_item kkm.ver is exist - process it [00:19:43]requested_item fm.sn is exist - process it [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 11 00 00 [00:19:43]Write to MH i2c: E2 08 00 52 19 80 11 00 00 00 00 00 00 E5 [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 17 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 17 00 52 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 38 [00:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:19:43]wFMCommunicate OK [00:19:43]requested_item fd.num is exist - process it [00:19:43]SAM_PROTO_GetFieldsCounters [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 13 00 00 [00:19:43]Write to MH i2c: E2 08 00 53 19 80 13 00 00 00 00 00 00 E8 [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 62 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 62 00 53 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [00:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4C 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:43]wFMCommunicate OK [00:19:43]SAM_PROTO_GetFieldsCounters done [00:19:43]requested_item shift.num is exist - process it [00:19:43]requested_item shift.opened is exist - process it [00:19:43]req_shift_opened [00:19:43]FM_GetShiftState [00:19:43]SAM_PROTO_GetShiftState [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 13 01 00 [00:19:43]Write to MH i2c: E2 08 00 54 19 80 13 01 00 00 00 00 00 EA [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 0E 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 0E 00 54 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 AD [00:19:43]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:19:43]wFMCommunicate OK [00:19:43]SAM_PROTO_GetShiftState done [00:19:43]FM_GetShiftState done [00:19:43]req_shift_opened done [00:19:43]requested_item shift.open_date is exist - process it [00:19:43]req_shift_open_date [00:19:43]req_shift_open_date done [00:19:43]produce_requested_data done [00:19:43]produce_requested_data return {"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":149068,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629} [00:19:43]process_action_free get_value [00:19:43]json_value_free [00:19:43]json_value_free done [00:19:43]process_json_proto returns [00:19:43]Send response to host [00:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":149068,"shift.num":368,"shift.opened":1,"shift.open_date":1717460629}}} [00:19:43]free response buf [00:19:43]execute_script done [00:19:43]execute_script returns [00:19:43]free content buf [00:19:43]Sock 7.Close socket [00:19:43]Sock 7.Thread stoped [00:19:43]accept exits with 9 [00:19:43]New connection [00:19:43]New thread 3067219300 created [00:19:43]Thread 3067075940 joined [00:19:43]Waiting for new connection... [00:19:43] Sock 9.Parse request [00:19:43]Sock 9.Check first char [00:19:43]Sock 9.First char is OK [00:19:43]request: POST /json_proto HTTP/1.0 [00:19:43]Method: POST [00:19:43]URL: /json_proto [00:19:43]Method is POST - this is cgi request [00:19:43]url: /json_proto [00:19:43]query_string will be loaded in cgi processing [00:19:43]execute_cgi json_proto POST (null) [00:19:43]execute_cgi path=json_proto method=POST [00:19:43]POST find Content-Length [00:19:43]Host: 172.17.38.4:8080 [00:19:43]Content-Length: 331 [00:19:43]Content-Type: application/json [00:19:43] [00:19:43]POST finish read [00:19:43]Found Content-Length = 331 [00:19: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" ] } } [00:19:43]execute_script... [00:19:43]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:19:43]POST & json_proto [00:19:43]process_json_proto [00:19:43]json parsed OK: [00:19:43]protocol is kg_v1.0 [00:19:43]action value=get_value [00:19:43]process_action get_value [00:19:43]cmd_get_value [00:19:43]process_action get_value done [00:19:43]requested_data is exist [00:19:43]produce_requested_data [00:19:43]requested_item fm.sale.total is exist - process it [00:19:43]SAM_PROTO_GetFMData [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 13 03 00 [00:19:43]Write to MH i2c: E2 08 00 55 19 80 13 03 00 00 00 00 00 ED [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 55 19 00 C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 50 [00:19:44]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 [00:19:44]wFMCommunicate OK [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 17 00 00 [00:19:44]Write to MH i2c: E2 08 00 56 19 80 17 00 00 00 00 00 00 EF [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 FD 00 56 19 00 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [00:19:45]RAPDU: 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:45]wFMCommunicate OK [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 17 00 00 [00:19:45]Write to MH i2c: E2 08 00 57 19 80 17 00 00 00 00 00 00 F0 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 57 19 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C8 [00:19:45]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:45]wFMCommunicate OK [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 17 00 00 [00:19:45]Write to MH i2c: E2 08 00 58 19 80 17 00 00 00 00 00 00 F1 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 58 19 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [00:19:46]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 17 00 00 [00:19:46]Write to MH i2c: E2 08 00 59 19 80 17 00 00 00 00 00 00 F2 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 E4 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 E4 00 59 19 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D2 [00:19:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_GetFMData done [00:19:46]requested_item fm.sale_refund.total is exist - process it [00:19:46]requested_item fm.buy.total is exist - process it [00:19:46]requested_item shift.sale.total is exist - process it [00:19:46]SAM_PROTO_GetShiftData [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 13 02 00 [00:19:46]Write to MH i2c: E2 08 00 5A 19 80 13 02 00 00 00 00 00 F1 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 5A 19 00 BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 DB [00:19:47]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:19:47]wFMCommunicate OK [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 17 00 00 [00:19:47]Write to MH i2c: E2 08 00 5B 19 80 17 00 00 00 00 00 00 F4 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 FD 00 5B 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 C8 [00:19:47]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 17 00 00 [00:19:48]Write to MH i2c: E2 08 00 5C 19 80 17 00 00 00 00 00 00 F5 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]OFD Sender: No OFD packet to send [00:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 5C 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 21 [00:19:48]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 17 00 00 [00:19:48]Write to MH i2c: E2 08 00 5D 19 80 17 00 00 00 00 00 00 F6 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 FD 00 5D 19 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 6B [00:19:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:19:49]wFMCommunicate OK [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 17 00 00 [00:19:49]Write to MH i2c: E2 08 00 5E 19 80 17 00 00 00 00 00 00 F7 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 D8 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 D8 00 5E 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DE [00:19:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:49]wFMCommunicate OK [00:19:49]SAM_PROTO_GetShiftData done [00:19:49]requested_item shift.sale.total_cash is exist - process it [00:19:49]requested_item shift.sale_refund.total is exist - process it [00:19:49]requested_item shift.sale_refund.total_cash is exist - process it [00:19:49]requested_item shift.buy.total is exist - process it [00:19:49]requested_item shift.buy.total_cash is exist - process it [00:19:49]produce_requested_data done [00:19:49]produce_requested_data return {"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.00,"fm.buy.total":0.00,"shift.sale.total":257400.70,"shift.sale.total_cash":220879.00,"shift.sale_refund.total":1200.00,"shift.sale_refund.total_cash":1200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:49]process_action_free get_value [00:19:49]json_value_free [00:19:49]json_value_free done [00:19:49]process_json_proto returns [00:19:49]Send response to host [00:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.00,"fm.buy.total":0.00,"shift.sale.total":257400.70,"shift.sale.total_cash":220879.00,"shift.sale_refund.total":1200.00,"shift.sale_refund.total_cash":1200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:49]free response buf [00:19:49]execute_script done [00:19:49]execute_script returns [00:19:49]free content buf [00:19:49]Sock 9.Close socket [00:19:49]Sock 9.Thread stoped [00:19:49]accept exits with 7 [00:19:49]New connection [00:19:49]New thread 3067075940 created [00:19:49]Thread 3067219300 joined [00:19:49]Waiting for new connection... [00:19:49] Sock 7.Parse request [00:19:49]Sock 7.Check first char [00:19:49]Sock 7.First char is OK [00:19:49]request: POST /json_proto HTTP/1.0 [00:19:49]Method: POST [00:19:49]URL: /json_proto [00:19:49]Method is POST - this is cgi request [00:19:49]url: /json_proto [00:19:49]query_string will be loaded in cgi processing [00:19:49]execute_cgi json_proto POST (null) [00:19:49]execute_cgi path=json_proto method=POST [00:19:49]POST find Content-Length [00:19:49]Host: 172.17.38.4:8080 [00:19:49]Content-Length: 331 [00:19:49]Content-Type: application/json [00:19:49] [00:19:49]POST finish read [00:19:49]Found Content-Length = 331 [00:19: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:19:49]execute_script... [00:19: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:19:49]POST & json_proto [00:19:49]process_json_proto [00:19:49]json parsed OK: [00:19:49]protocol is kg_v1.0 [00:19:49]action value=get_value [00:19:49]process_action get_value [00:19:49]cmd_get_value [00:19:49]process_action get_value done [00:19:49]requested_data is exist [00:19:49]produce_requested_data [00:19:49]requested_item fm.sale.total is exist - process it [00:19:49]SAM_PROTO_GetFMData [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 13 03 00 [00:19:49]Write to MH i2c: E2 08 00 5F 19 80 13 03 00 00 00 00 00 F7 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 5F 19 00 C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 5A [00:19:50]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 [00:19:50]wFMCommunicate OK [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 17 00 00 [00:19:50]Write to MH i2c: E2 08 00 60 19 80 17 00 00 00 00 00 00 F9 [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 FD 00 60 19 00 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 56 [00:19:51]RAPDU: 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 17 00 00 [00:19:51]Write to MH i2c: E2 08 00 61 19 80 17 00 00 00 00 00 00 FA [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 FD 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 FD 00 61 19 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D2 [00:19:51]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 17 00 00 [00:19:51]Write to MH i2c: E2 08 00 62 19 80 17 00 00 00 00 00 00 FB [00:19:52]Write i2c OK [00:19:52]MH_I2C_Read... [00:19:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:52]Read from MH i2c: E2 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 FD 00 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 FD 00 62 19 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [00:19:52]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:52]wFMCommunicate OK [00:19:52]wFMCommunicate request_size=4 [00:19:52]MH_SAM_APDU [00:19:52]CAPDU: 80 17 00 00 [00:19:52]Write to MH i2c: E2 08 00 63 19 80 17 00 00 00 00 00 00 FC [00:19:52]Write i2c OK [00:19:52]MH_I2C_Read... [00:19:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:19:52]Read from MH i2c: E2 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 E4 00 [00:19:52]MH_I2C_Read... [00:19:52]Read from MH i2c: E2 E4 00 63 19 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DC [00:19:52]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:53]wFMCommunicate OK [00:19:53]SAM_PROTO_GetFMData done [00:19:53]requested_item fm.sale_refund.total is exist - process it [00:19:53]requested_item fm.buy.total is exist - process it [00:19:53]requested_item shift.sale.total is exist - process it [00:19:53]SAM_PROTO_GetShiftData [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 13 02 00 [00:19:53]Write to MH i2c: E2 08 00 64 19 80 13 02 00 00 00 00 00 FB [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]OFD Sender: No OFD packet to send [00:19:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 FD 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 FD 00 64 19 00 BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 E5 [00:19:53]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:19:53]wFMCommunicate OK [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 17 00 00 [00:19:53]Write to MH i2c: E2 08 00 65 19 80 17 00 00 00 00 00 00 FE [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 FD 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 FD 00 65 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 D2 [00:19:54]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [00:19:54]wFMCommunicate OK [00:19:54]wFMCommunicate request_size=4 [00:19:54]MH_SAM_APDU [00:19:54]CAPDU: 80 17 00 00 [00:19:54]Write to MH i2c: E2 08 00 66 19 80 17 00 00 00 00 00 00 FF [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 FD 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 FD 00 66 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 2B [00:19:55]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [00:19:55]wFMCommunicate OK [00:19:55]wFMCommunicate request_size=4 [00:19:55]MH_SAM_APDU [00:19:55]CAPDU: 80 17 00 00 [00:19:55]Write to MH i2c: E2 08 00 67 19 80 17 00 00 00 00 00 00 00 [00:19:55]Write i2c OK [00:19:55]MH_I2C_Read... [00:19:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:55]Read from MH i2c: E2 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 FD 00 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 FD 00 67 19 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 75 [00:19:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:19:55]wFMCommunicate OK [00:19:55]wFMCommunicate request_size=4 [00:19:55]MH_SAM_APDU [00:19:55]CAPDU: 80 17 00 00 [00:19:55]Write to MH i2c: E2 08 00 68 19 80 17 00 00 00 00 00 00 01 [00:19:55]Write i2c OK [00:19:55]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 D8 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 D8 00 68 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E8 [00:19:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:19:56]wFMCommunicate OK [00:19:56]SAM_PROTO_GetShiftData done [00:19:56]requested_item shift.sale.total_cash is exist - process it [00:19:56]requested_item shift.sale_refund.total is exist - process it [00:19:56]requested_item shift.sale_refund.total_cash is exist - process it [00:19:56]requested_item shift.buy.total is exist - process it [00:19:56]requested_item shift.buy.total_cash is exist - process it [00:19:56]produce_requested_data done [00:19:56]produce_requested_data return {"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.00,"fm.buy.total":0.00,"shift.sale.total":257400.70,"shift.sale.total_cash":220879.00,"shift.sale_refund.total":1200.00,"shift.sale_refund.total_cash":1200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:56]process_action_free get_value [00:19:56]json_value_free [00:19:56]json_value_free done [00:19:56]process_json_proto returns [00:19:56]Send response to host [00:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.00,"fm.buy.total":0.00,"shift.sale.total":257400.70,"shift.sale.total_cash":220879.00,"shift.sale_refund.total":1200.00,"shift.sale_refund.total_cash":1200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:56]free response buf [00:19:56]execute_script done [00:19:56]execute_script returns [00:19:56]free content buf [00:19:56]Sock 7.Close socket [00:19:56]Sock 7.Thread stoped [00:19:56]accept exits with 9 [00:19:56]New connection [00:19:56]New thread 3067219300 created [00:19:56]Thread 3067075940 joined [00:19:56]Waiting for new connection... [00:19:56] Sock 9.Parse request [00:19:56]Sock 9.Check first char [00:19:56]Sock 9.First char is OK [00:19:56]request: POST /json_proto HTTP/1.0 [00:19:56]Method: POST [00:19:56]URL: /json_proto [00:19:56]Method is POST - this is cgi request [00:19:56]url: /json_proto [00:19:56]query_string will be loaded in cgi processing [00:19:56]execute_cgi json_proto POST (null) [00:19:56]execute_cgi path=json_proto method=POST [00:19:56]POST find Content-Length [00:19:56]Host: 172.17.38.4:8080 [00:19:56]Content-Length: 254 [00:19:56]Content-Type: application/json [00:19:56] [00:19:56]POST finish read [00:19:56]Found Content-Length = 254 [00:19:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:56]execute_script... [00:19:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0441\u043A\u0430\u0440\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:56]POST & json_proto [00:19:56]process_json_proto [00:19:56]json parsed OK: [00:19:56]protocol is kg_v1.0 [00:19:56]action value=close_shift [00:19:56]process_action close_shift [00:19:56]cmd_close_shift [00:19:56]MH_GetDate [00:19:56]Write to MH i2c: F0 00 00 69 19 71 [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: F0 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: F0 09 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: F0 09 00 69 19 00 2D AF 5F 66 CC 51 87 64 23 [00:19:56]GetLastDocTimeStamp 1717546764 [00:19:56]current date 1717546797 [00:19:56]FM_GetShiftState [00:19:56]SAM_PROTO_GetShiftState [00:19:56]wFMCommunicate request_size=4 [00:19:56]MH_SAM_APDU [00:19:56]CAPDU: 80 13 01 00 [00:19:56]Write to MH i2c: E2 08 00 6A 19 80 13 01 00 00 00 00 00 00 [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 0E 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 0E 00 6A 19 00 09 00 01 95 5E 5E 66 00 00 00 00 90 00 C3 [00:19:56]RAPDU: 09 00 01 95 5E 5E 66 00 00 00 00 90 00 [00:19:56]wFMCommunicate OK [00:19:56]SAM_PROTO_GetShiftState done [00:19:56]FM_GetShiftState done [00:19:56]KKMCreateCloseShiftDocument [00:19:56]Load OK [00:19:56]Malloc new data [00:19:56]MH_GetDate [00:19:56]Write to MH i2c: F0 00 00 6B 19 73 [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: F0 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: F0 09 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: F0 09 00 6B 19 00 2D AF 5F 66 CC 51 87 64 25 [00:19:56]Malloc new data [00:19:56]Malloc new data [00:19:56]Malloc new data [00:19:56]Malloc new data [00:19:56]KKMCreateCloseShiftDocument OK [00:19:56]KKMSetCloseShiftData OK [00:19:56]ProcessDocumentItem done err = 0, tmpTLVsize=69 [00:19:56]tlvbuf is 00ABF5E0 [00:19:56]KKMLoadAndSignCloseShiftData [00:19:56]SAM_PROTO_ProcessDocument [00:19:56]wFMCommunicate request_size=9 [00:19:56]MH_SAM_APDU [00:19:56]CAPDU: 80 15 01 00 04 05 00 45 00 [00:19:56]Write to MH i2c: E2 0C 00 6C 19 80 15 01 00 04 00 05 00 45 00 00 00 56 [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 03 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 03 00 6C 19 00 90 00 F9 [00:19:56]RAPDU: 90 00 [00:19:56]wFMCommunicate OK [00:19:56]wFMCommunicate request_size=23 [00:19:56]MH_SAM_APDU [00:19: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:19:56]Write to MH i2c: E2 1A 00 6D 19 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 FB [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 03 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 03 00 6D 19 00 90 00 FA [00:19:56]RAPDU: 90 00 [00:19:56]wFMCommunicate OK [00:19:56]wFMCommunicate request_size=28 [00:19:56]MH_SAM_APDU [00:19:56]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 90 D1 81 D0 BA D0 B0 D1 80 D0 BE D0 B2 20 D0 9D 2E 20 [00:19:56]Write to MH i2c: E2 1F 00 6E 19 80 15 02 00 17 00 FD 03 13 00 D0 90 D1 81 D0 BA D0 B0 D1 80 D0 BE D0 B2 20 D0 9D 2E 20 00 00 40 [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 03 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 03 00 6E 19 00 90 00 FB [00:19:56]RAPDU: 90 00 [00:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=13 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 15 02 00 08 F4 03 04 00 2D AF 5F 66 [00:19:57]Write to MH i2c: E2 10 00 6F 19 80 15 02 00 08 00 F4 03 04 00 2D AF 5F 66 00 00 B4 [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 6F 19 00 90 00 FC [00:19:57]RAPDU: 90 00 [00:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=25 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 [00:19:57]Write to MH i2c: E2 1C 00 70 19 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 00 00 66 [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [00:19:57]RAPDU: 90 00 [00:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 15 03 00 [00:19:57]Write to MH i2c: E2 08 00 71 19 80 15 03 00 00 00 00 00 0B [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 71 19 00 FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4D 46 02 00 0E 04 04 00 70 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 99 01 00 00 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 90 00 D6 [00:19:57]RAPDU: FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4D 46 02 00 0E 04 04 00 70 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 99 01 00 00 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 90 00 [00:19:58]wFMCommunicate OK [00:19:58]SAM_PROTO_ProcessDocument answer len = 1278 [00:19:58]SAM_PROTO_ProcessDocument remain to read = 1030 [00:19:58]wFMCommunicate request_size=4 [00:19:58]MH_SAM_APDU [00:19:58]CAPDU: 80 17 00 00 [00:19:58]Write to MH i2c: E2 08 00 72 19 80 17 00 00 00 00 00 00 0B [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:58]OFD Sender: No OFD packet to send [00:19:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:58]Read from MH i2c: E2 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 72 19 00 D4 01 70 04 03 00 C0 D4 01 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 C9 31 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 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 72 [00:19:58]RAPDU: D4 01 70 04 03 00 C0 D4 01 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 C9 31 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 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:19:58]wFMCommunicate OK [00:19:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:58]SAM_PROTO_ProcessDocument remain to read = 780 [00:19:58]wFMCommunicate request_size=4 [00:19:58]MH_SAM_APDU [00:19:58]CAPDU: 80 17 00 00 [00:19:58]Write to MH i2c: E2 08 00 73 19 80 17 00 00 00 00 00 00 0C [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 FD 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 FD 00 73 19 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 72 [00:19:59]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:19:59]wFMCommunicate OK [00:19:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:59]SAM_PROTO_ProcessDocument remain to read = 530 [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 17 00 00 [00:19:59]Write to MH i2c: E2 08 00 74 19 80 17 00 00 00 00 00 00 0D [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 FD 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 FD 00 74 19 00 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [00:20:00]RAPDU: 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:00]wFMCommunicate OK [00:20:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:00]SAM_PROTO_ProcessDocument remain to read = 280 [00:20:00]wFMCommunicate request_size=4 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 17 00 00 [00:20:00]Write to MH i2c: E2 08 00 75 19 80 17 00 00 00 00 00 00 0E [00:20:00]Write i2c OK [00:20:00]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 75 19 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BD [00:20:00]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:20:00]wFMCommunicate OK [00:20:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:00]SAM_PROTO_ProcessDocument remain to read = 30 [00:20:00]wFMCommunicate request_size=4 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 17 00 00 [00:20:00]Write to MH i2c: E2 08 00 76 19 80 17 00 00 00 00 00 00 0F [00:20:00]Write i2c OK [00:20:00]MH_I2C_Read... [00:20:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 30! [00:20:01]Read from MH i2c: E2 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 21 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 21 00 76 19 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 E6 E4 96 BD 70 8E 90 00 70 [00:20:01]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 E6 E4 96 BD 70 8E 90 00 [00:20:01]wFMCommunicate OK [00:20:01]SAM_PROTO_ProcessDocument received (without SW) 30 bytes [00:20:01]SAM_PROTO_ProcessDocument done [00:20:01]1209 (1) - 1.0 - номер версии ФФД [00:20:01]1041 (16) - 0000000000875057 - номер ФМ [00:20:01]1040 (4) - 149069 - номер ФД [00:20:01]1038 (4) - 368 - номер смены [00:20:01]1118 (4) - 407 - количество кассовых чеков за смену [00:20:01]1111 (4) - 409 - общее количество ФД за смену [00:20:01]1194 (1207) - счетчики итогов смены [00:20:01] 1134 (4) - 407 - количество чеков со всеми признаками расчетов [00:20:01] 1129 (158) - счетчики операций «приход» [00:20:01] 1135 (4) - 405 - количество чеков по признаку расчетов [00:20:01] 1201 (4) - 257400.70 - общая итоговая сумма в чеках [00:20:01] 1136 (4) - 220879.00 - итоговая сумма в чеках наличными [00:20:01] 1138 (3) - 36521.70 - итоговая сумма в чеках безналичными [00:20:01] 1024 (123) - суммы налогов [00:20:01] 1006 (9) - суммы НДС [00:20:01] 1010 (1) - 0% - код ставки НДС [00:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:01] 1006 (12) - суммы НДС [00:20:01] 1010 (1) - 12% - код ставки НДС [00:20:01] 1011 (3) - 27343.77 - сумма НДС по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 0% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (12) - суммы НСП [00:20:01] 1014 (1) - 1% - код ставки НСП [00:20:01] 1015 (3) - 2278.69 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 2% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 3% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 5% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 0,50% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 1,50% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1130 (151) - счетчики операций «возврат прихода» [00:20:01] 1135 (4) - 2 - количество чеков по признаку расчетов [00:20:01] 1201 (3) - 1200.00 - общая итоговая сумма в чеках [00:20:01] 1136 (3) - 1200.00 - итоговая сумма в чеках наличными [00:20:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:01] 1024 (121) - суммы налогов [00:20:01] 1006 (9) - суммы НДС [00:20:01] 1010 (1) - 0% - код ставки НДС [00:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:01] 1006 (11) - суммы НДС [00:20:01] 1010 (1) - 12% - код ставки НДС [00:20:01] 1011 (2) - 127.45 - сумма НДС по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 0% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (11) - суммы НСП [00:20:01] 1014 (1) - 1% - код ставки НСП [00:20:01] 1015 (2) - 10.62 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 2% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 3% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 5% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 0,50% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 1,50% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1131 (141) - счетчики операций «расход» [00:20:01] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:01] 1024 (117) - суммы налогов [00:20:01] 1006 (9) - суммы НДС [00:20:01] 1010 (1) - 0% - код ставки НДС [00:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:01] 1006 (9) - суммы НДС [00:20:01] 1010 (1) - 12% - код ставки НДС [00:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 0% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 1% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 2% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 3% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 5% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 0,50% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 1,50% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1132 (141) - счетчики операций «возврат расхода» [00:20:01] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:01] 1024 (117) - суммы налогов [00:20:01] 1006 (9) - суммы НДС [00:20:01] 1010 (1) - 0% - код ставки НДС [00:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:01] 1006 (9) - суммы НДС [00:20:01] 1010 (1) - 12% - код ставки НДС [00:20:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 0% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 1% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 2% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 3% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 5% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 0,50% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1007 (9) - суммы НСП [00:20:01] 1014 (1) - 1,50% - код ставки НСП [00:20:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:01] 1133 (588) - - счетчики коррекции - не используются [00:20:01]1077 (6) - 253869455929486 - ФПД [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1209 (04B9) [00:20:01]Malloc new data [00:20:01]Processing tag 1041 (0411) [00:20:01]Processing tag 1040 (0410) [00:20:01]Malloc new data [00:20:01]Processing tag 1038 (040E) [00:20:01]Malloc new data [00:20:01]Processing tag 1118 (045E) [00:20:01]Malloc new data [00:20:01]Processing tag 1111 (0457) [00:20:01]Malloc new data [00:20:01]Processing tag 1194 (04AA) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1134 (046E) [00:20:01]Malloc new data [00:20:01]Processing tag 1129 (0469) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1135 (046F) [00:20:01]Malloc new data [00:20:01]Processing tag 1201 (04B1) [00:20:01]Malloc new data [00:20:01]Processing tag 1136 (0470) [00:20:01]Malloc new data [00:20:01]Processing tag 1138 (0472) [00:20:01]Malloc new data [00:20:01]Processing tag 1024 (0400) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1006 (03EE) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1010 (03F2) [00:20:01]Malloc new data [00:20:01]Processing tag 1011 (03F3) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1006 (03EE) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1010 (03F2) [00:20:01]Malloc new data [00:20:01]Processing tag 1011 (03F3) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]SetTLVBufToDocument err=0 [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1130 (046A) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1135 (046F) [00:20:01]Malloc new data [00:20:01]Processing tag 1201 (04B1) [00:20:01]Malloc new data [00:20:01]Processing tag 1136 (0470) [00:20:01]Malloc new data [00:20:01]Processing tag 1138 (0472) [00:20:01]Malloc new data [00:20:01]Processing tag 1024 (0400) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1006 (03EE) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1010 (03F2) [00:20:01]Malloc new data [00:20:01]Processing tag 1011 (03F3) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1006 (03EE) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1010 (03F2) [00:20:01]Malloc new data [00:20:01]Processing tag 1011 (03F3) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]SetTLVBufToDocument err=0 [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1131 (046B) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1135 (046F) [00:20:01]Malloc new data [00:20:01]Processing tag 1201 (04B1) [00:20:01]Malloc new data [00:20:01]Processing tag 1136 (0470) [00:20:01]Malloc new data [00:20:01]Processing tag 1138 (0472) [00:20:01]Malloc new data [00:20:01]Processing tag 1024 (0400) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1006 (03EE) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1010 (03F2) [00:20:01]Malloc new data [00:20:01]Processing tag 1011 (03F3) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1006 (03EE) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1010 (03F2) [00:20:01]Malloc new data [00:20:01]Processing tag 1011 (03F3) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1007 (03EF) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1014 (03F6) [00:20:01]Malloc new data [00:20:01]Processing tag 1015 (03F7) [00:20:01]Malloc new data [00:20:01]SetTLVBufToDocument err=0 [00:20:01]SetTLVBufToDocument err=0 [00:20:01]SetTLVBufToDocument err=0 [00:20:01]Processing tag 1132 (046C) [00:20:01]Load OK [00:20:01]SetTLVBufToDocument [00:20:01]Processing tag 1135 (046F) [00:20:01]Malloc new data [00:20:01]Processing tag 1201 (04B1) [00:20:01]Malloc new data [00:20:01]Processing tag 1136 (0470) [00:20:01]Malloc new data [00:20:01]Processing tag 1138 (0472) [00:20:02]Malloc new data [00:20:02]Processing tag 1024 (0400) [00:20:02]Load OK [00:20:02]SetTLVBufToDocument [00:20:02]Processing tag 1006 (03EE) [00:20:02]Load OK [00:20:02]SetTLVBufToDocument [00:20:02]Processing tag 1010 (03F2) [00:20:02]Malloc new data [00:20:02]Processing tag 1011 (03F3) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Processing tag 1006 (03EE) [00:20:02]Load OK [00:20:02]SetTLVBufToDocument [00:20:02]Processing tag 1010 (03F2) [00:20:02]Malloc new data [00:20:02]Processing tag 1011 (03F3) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Processing tag 1007 (03EF) [00:20:02]Load OK [00:20:02]SetTLVBufToDocument [00:20:02]Processing tag 1014 (03F6) [00:20:02]Malloc new data [00:20:02]Processing tag 1015 (03F7) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Processing tag 1007 (03EF) [00:20:02]Load OK [00:20:02]SetTLVBufToDocument [00:20:02]Processing tag 1014 (03F6) [00:20:02]Malloc new data [00:20:02]Processing tag 1015 (03F7) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Processing tag 1007 (03EF) [00:20:02]Load OK [00:20:02]SetTLVBufToDocument [00:20:02]Processing tag 1014 (03F6) [00:20:02]Malloc new data [00:20:02]Processing tag 1015 (03F7) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Processing tag 1007 (03EF) [00:20:02]Load OK [00:20:02]SetTLVBufToDocument [00:20:02]Processing tag 1014 (03F6) [00:20:02]Malloc new data [00:20:02]Processing tag 1015 (03F7) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Processing tag 1007 (03EF) [00:20:02]Load OK [00:20:02]SetTLVBufToDocument [00:20:02]Processing tag 1014 (03F6) [00:20:02]Malloc new data [00:20:02]Processing tag 1015 (03F7) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Processing tag 1007 (03EF) [00:20:02]Load OK [00:20:02]SetTLVBufToDocument [00:20:02]Processing tag 1014 (03F6) [00:20:02]Malloc new data [00:20:02]Processing tag 1015 (03F7) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Processing tag 1007 (03EF) [00:20:02]Load OK [00:20:02]SetTLVBufToDocument [00:20:02]Processing tag 1014 (03F6) [00:20:02]Malloc new data [00:20:02]Processing tag 1015 (03F7) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]SetTLVBufToDocument err=0 [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Processing tag 1133 (046D) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Processing tag 1077 (0435) [00:20:02]Malloc new data [00:20:02]SetTLVBufToDocument err=0 [00:20:02]Malloc new data [00:20:02]SAM_PROTO_GetFMData [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 13 03 00 [00:20:02]Write to MH i2c: E2 08 00 77 19 80 13 03 00 00 00 00 00 0F [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 77 19 00 C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 72 [00:20:02]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 [00:20:03]wFMCommunicate OK [00:20:03]wFMCommunicate request_size=4 [00:20:03]MH_SAM_APDU [00:20:03]CAPDU: 80 17 00 00 [00:20:03]Write to MH i2c: E2 08 00 78 19 80 17 00 00 00 00 00 00 11 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]OFD Sender: No OFD packet to send [00:20:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:03]Read from MH i2c: E2 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 FD 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 FD 00 78 19 00 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [00:20:03]RAPDU: 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:03]wFMCommunicate OK [00:20:03]wFMCommunicate request_size=4 [00:20:03]MH_SAM_APDU [00:20:03]CAPDU: 80 17 00 00 [00:20:03]Write to MH i2c: E2 08 00 79 19 80 17 00 00 00 00 00 00 12 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 79 19 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EA [00:20:04]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:04]wFMCommunicate OK [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 17 00 00 [00:20:04]Write to MH i2c: E2 08 00 7A 19 80 17 00 00 00 00 00 00 13 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 7A 19 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [00:20:05]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:05]wFMCommunicate OK [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 17 00 00 [00:20:05]Write to MH i2c: E2 08 00 7B 19 80 17 00 00 00 00 00 00 14 [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 E4 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 E4 00 7B 19 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F4 [00:20:05]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:06]wFMCommunicate OK [00:20:06]SAM_PROTO_GetFMData done [00:20:06]Malloc new data [00:20:06]Malloc new data [00:20:06]Malloc new data [00:20:06]Malloc new data [00:20:06]KKMLoadAndSignCloseShiftData err=0 [00:20:06]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Аскаров Н. 05.06.2024 00:19 Смена: 368 РНМ: 0000000000092720 ЗНМ: 0300000035 СНО: Общий режим Чеков за смену: 407 ФД за смену: 409 Всего чеков: 407 ИТОГИ ПРИХОД Чеков: 405 Общий итог: 257400.70 Итого наличными: 220879.00 Итого безнал.: 36521.70 НДС 0% : 0.00 НДС 12% : 27343.77 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2278.69 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 1200.00 Итого наличными: 1200.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 127.45 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 10.62 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 219679.00 НС Приход: 78721775.54 НС Возвр.Прихода: 676502.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 149069 ФМ: 0000000000875057 ФПД: 253869455929486 [00:20:06]StoreToDocumentArchive [00:20:06]shift 368 fd 149069 [00:20:06]save to /storage/0368/doc_00149069 [00:20:06]save last doc name /storage/0368/doc_00149069 to /storage/kkm_last_doc_name [00:20:06]save OK [00:20:06]Clear old archive folders... [00:20:06]Remove dir /storage/0266 [00:20:06]opendir ok [00:20:06]file . [00:20:06]file .. [00:20:06]file doc_1717546772 [00:20:06]remove file /storage/0266/doc_1717546772 [00:20:06]remove dir /storage/0266 [00:20:06]NVStorageSaveData kkm_registers [00:20:06]File name is /storage/kkm_registers [00:20:06]Write 24 bytes [00:20:06]NVStorageSaveData done [00:20:06]NVStorageSaveData kkm_registers [00:20:06]File name is /storage/kkm_registers [00:20:06]Write 24 bytes [00:20:06]NVStorageSaveData done [00:20:06]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [00:20:06]tlvbuf is 00B02EE0 [00:20:06]SAM_PROTO_ClearQueue [00:20:06]wFMCommunicate request_size=4 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 09 00 00 [00:20:06]Write to MH i2c: E2 08 00 7C 19 80 09 00 00 00 00 00 00 07 [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:06]Read from MH i2c: E2 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 03 00 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 03 00 7C 19 00 90 00 09 [00:20:06]RAPDU: 90 00 [00:20:06]wFMCommunicate OK [00:20:06]SAM_PROTO_ClearQueue done [00:20:06]KKMCreateOFDPacket [00:20:06]OFDProtocolAddRootSTLVToBuf [00:20:06]FM_MakeSignedData [00:20:06]FM_MakeSignedData [00:20:06]SAM_PROTO_SignData [00:20:06]wFMCommunicate request_size=4 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 0D 01 02 [00:20:06]Write to MH i2c: E2 08 00 7D 19 80 0D 01 02 00 00 00 00 0F [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:06]Read from MH i2c: E2 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 03 00 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 03 00 7D 19 00 90 00 0A [00:20:06]RAPDU: 90 00 [00:20:06]wFMCommunicate OK [00:20:06]wFMCommunicate request_size=255 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 0D 02 02 FA 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 90 D1 81 D0 BA D0 B0 D1 80 D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 2D AF 5F 66 0E 04 04 00 70 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 5E 04 04 00 97 01 00 00 57 04 04 00 99 01 00 00 AA 04 DE 04 6E 04 04 00 97 01 00 00 69 04 A5 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 [00:20:06]Write to MH i2c: E2 02 01 7E 19 80 0D 02 02 FA 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 90 D1 81 D0 BA D0 B0 D1 80 D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 2D AF 5F 66 0E 04 04 00 70 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 5E 04 04 00 97 01 00 00 57 04 04 00 99 01 00 00 AA 04 DE 04 6E 04 04 00 97 01 00 00 69 04 A5 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 00 00 DA [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:07]Read from MH i2c: E2 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: E2 03 00 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [00:20:07]RAPDU: 90 00 [00:20:07]wFMCommunicate OK [00:20:07]wFMCommunicate request_size=255 [00:20:07]MH_SAM_APDU [00:20:07]CAPDU: 80 0D 02 02 FA 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 1D 7A 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C9 31 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 26 04 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 [00:20:07]Write to MH i2c: E2 02 01 7F 19 80 0D 02 02 FA 00 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 1D 7A 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C9 31 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 26 04 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 00 00 87 [00:20:07]Write i2c OK [00:20:07]MH_I2C_Read... [00:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:08]Read from MH i2c: E2 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 7F 19 00 90 00 0C [00:20:08]RAPDU: 90 00 [00:20:08]wFMCommunicate OK [00:20:08]wFMCommunicate request_size=255 [00:20:08]MH_SAM_APDU [00:20:08]CAPDU: 80 0D 02 02 FA 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 OFD Sender: No OFD packet to send [00:20:08]03 01 00 02 F7 03 01 00 00 EF 03 0A 00 [00:20:08]Write to MH i2c: E2 02 01 80 19 80 0D 02 02 FA 00 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 00 00 D6 [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:08]Read from MH i2c: E2 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 80 19 00 90 00 0D [00:20:08]RAPDU: 90 00 [00:20:09]wFMCommunicate OK [00:20:09]wFMCommunicate request_size=255 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 0D 02 02 FA 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:20:09]Write to MH i2c: E2 02 01 81 19 80 0D 02 02 FA 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 00 D9 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 03 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 03 00 81 19 00 90 00 0E [00:20:09]RAPDU: 90 00 [00:20:09]wFMCommunicate OK [00:20:09]wFMCommunicate request_size=255 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 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 [00:20:10]Write to MH i2c: E2 02 01 82 19 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 9B [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 03 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 03 00 82 19 00 90 00 0F [00:20:10]RAPDU: 90 00 [00:20:10]wFMCommunicate OK [00:20:10]wFMCommunicate request_size=145 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 0D 02 02 8C 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4D 46 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 E6 E4 96 BD 70 8E [00:20:10]Write to MH i2c: E2 94 00 83 19 80 0D 02 02 8C 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4D 46 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 E6 E4 96 BD 70 8E 00 00 0E [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:11]Read from MH i2c: E2 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 03 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 03 00 83 19 00 90 00 10 [00:20:11]RAPDU: 90 00 [00:20:11]wFMCommunicate OK [00:20:11]wFMCommunicate request_size=4 [00:20:11]MH_SAM_APDU [00:20:11]CAPDU: 80 0D 03 02 [00:20:11]Write to MH i2c: E2 08 00 84 19 80 0D 03 02 00 00 00 00 18 [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:11]Read from MH i2c: E2 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 0B 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 0B 00 84 19 00 4C CC A9 DD 51 5F DE 44 90 00 89 [00:20:11]RAPDU: 4C CC A9 DD 51 5F DE 44 90 00 [00:20:11]wFMCommunicate OK [00:20:11]SAM_PROTO_SignData done [00:20:11]FM_MakeSignedData done [00:20:11]CreateOFDProtocolMessage [00:20:11]wFMCommunicate request_size=4 [00:20:11]MH_SAM_APDU [00:20:11]CAPDU: 80 11 00 00 [00:20:11]Write to MH i2c: E2 08 00 85 19 80 11 00 00 00 00 00 00 18 [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:11]Read from MH i2c: E2 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 17 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 17 00 85 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6B [00:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:20:11]wFMCommunicate OK [00:20:11]CreateOFDProtocolMessage done [00:20:11]OFDSenderStorePacket 149069 [00:20:11]StoreOFDPacket docnum=149069 [00:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 7E 05 00 00 E3 DA 76 05 BC F3 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 90 D1 81 D0 BA D0 B0 D1 80 D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 2D AF 5F 66 0E 04 04 00 70 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 5E 04 04 00 97 01 00 00 57 04 04 00 99 01 00 00 AA 04 DE 04 6E 04 04 00 97 01 00 00 69 04 A5 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C9 31 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 26 04 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 4D 46 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 E6 E4 96 BD 70 8E 4C CC A9 DD 51 5F DE 44 [00:20:11]CheckFolder [00:20:11]dirname=/storage/ofd_packets [00:20:11]CheckFolder done [00:20:11]ProducePacketName [00:20:11]name=ofd_packets/00149069 [00:20:11]NVStorageSaveData ofd_packets/00149069 [00:20:11]File name is /storage/ofd_packets/00149069 [00:20:11]Write 1436 bytes [00:20:11]NVStorageSaveData done [00:20:11]OFDSenderStorePacket done [00:20:11]KKMCreateOFDPacket done [00:20:11]NVStorageSaveData kkm_last_timestamp [00:20:11]File name is /storage/kkm_last_timestamp [00:20:11]Write 4 bytes [00:20:11]NVStorageSaveData done [00:20:11]ExternCall_PrintAddStr [00:20:11]wPrintStart [00:20:11]Write to MH i2c: 01 00 00 86 19 9F [00:20:11]OFD Sender: Processing packet 149069 [packets to send 100, broken 99] [00:20:11]ProducePacketName [00:20:11]name=ofd_packets/00149069 [00:20:11]OFD Sender: To server: pG, [00:20:11]CommunicateWithHost lk.salyk.kg:30040 [00:20:11]ConnectInit lk.salyk.kg [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: 01 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: 01 07 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: 01 07 00 86 19 00 00 00 00 00 FF 0F B4 [00:20:11]RasterBufferAndPrint [00:20:11]line Отчет о закрытии смены [00:20:11]line ФФД: 1.0 [00:20:11]line ИНН: 02508201610067 [00:20:11]line Кассир: Аскаров Н. [00:20:11]line 05.06.2024 00:19 [00:20:11]line Смена: 368 [00:20:11]line РНМ: 0000000000092720 [00:20:11]line ЗНМ: 0300000035 [00:20:11]line СНО: Общий режим [00:20:11]line Чеков за смену: 407 [00:20:11]line ФД за смену: 409 [00:20:11]line Всего чеков: 407 [00:20:11]line ИТОГИ ПРИХОД [00:20:11]line Чеков: 405 [00:20:11]line Общий итог: 257400.70 [00:20:11]line Итого наличными: 220879.00 [00:20:11]line Итого безнал.: 36521.70 [00:20:11]line НДС 0% : 0.00 [00:20:11]line НДС 12% : 27343.77 [00:20:11]line НСП 0% : 0.00 [00:20:11]line НСП 1,50% : 0.00 [00:20:11]line НСП 0,50% : 0.00 [00:20:11]line НСП 5% : 0.00 [00:20:11]line НСП 3% : 0.00 [00:20:11]line НСП 2% : 0.00 [00:20:11]line НСП 1% : 2278.69 [00:20:11]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:20:11]line Чеков: 2 [00:20:11]line Общий итог: 1200.00 [00:20:11]line Итого наличными: 1200.00 [00:20:11]line Итого безнал.: 0.00 [00:20:11]line НДС 0% : 0.00 [00:20:11]line НДС 12% : 127.45 [00:20:11]line НСП 0% : 0.00 [00:20:11]line НСП 1,50% : 0.00 [00:20:11]line НСП 0,50% : 0.00 [00:20:11]line НСП 5% : 0.00 [00:20:11]line НСП 3% : 0.00 [00:20:11]line НСП 2% : 0.00 [00:20:11]line НСП 1% : 10.62 [00:20:11]line ИТОГИ РАСХОД [00:20:11]line Чеков: 0 [00:20:11]line Общий итог: 0.00 [00:20:11]line Итого наличными: 0.00 [00:20:11]line Итого безнал.: 0.00 [00:20:11]line НДС 0% : 0.00 [00:20:11]line НДС 12% : 0.00 [00:20:11]line НСП 0% : 0.00 [00:20:11]line НСП 1,50% : 0.00 [00:20:11]line НСП 0,50% : 0.00 [00:20:11]line НСП 5% : 0.00 [00:20:11]line НСП 3% : 0.00 [00:20:11]line НСП 2% : 0.00 [00:20:11]line НСП 1% : 0.00 [00:20:11]line ИТОГИ ВОЗВРАТ РАСХОДА [00:20:11]line Чеков: 0 [00:20:11]line Общий итог: 0.00 [00:20:11]line Итого наличными: 0.00 [00:20:11]line Итого безнал.: 0.00 [00:20:11]line НДС 0% : 0.00 [00:20:11]line НДС 12% : 0.00 [00:20:11]line НСП 0% : 0.00 [00:20:11]line НСП 1,50% : 0.00 [00:20:11]line НСП 0,50% : 0.00 [00:20:11]line НСП 5% : 0.00 [00:20:11]line НСП 3% : 0.00 [00:20:11]line НСП 2% : 0.00 [00:20:11]line НСП 1% : 0.00 [00:20:11]Connected sock=10 [00:20:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 line Сумма внесений: 0.00 [00:20:11]38 line Сумма выплат: 0.00 [00:20:11]37 line Нал. в кассе: 219679.00 [00:20:11]35 line НС Приход: 78721775.54 [00:20:11]30 line НС Возвр.Прихода: 676502.00 [00:20:11]line НС Расход: 0.00 [00:20:11]line НС Возвр.Расхода: 0.00 [00:20:11]line ФД: 149069 [00:20:11]line ФМ: 0000000000875057 [00:20:11]line ФПД: 253869455929486 [00:20:11]written 0, free lines is 4095 [00:20:11]35 37 7E 05 00 00 E3 DA 76 05 BC F3 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 90 D1 81 D0 BA D0 B0 D1 80 D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 2D AF 5F 66 0E 04 04 00 70 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 5E 04 04 00 97 01 00 00 57 04 04 00 99 01 00 00 AA 04 DE 04 6E 04 04 00 97 01 00 00 69 04 A5 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C9 31 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 26 04 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 Write to MH i2c: 01 01 00 00 00 00 70 D6 04 19 01 EF 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 [00:20:13]01 00 00 EF 03 0A 00 F6 03 Write i2c OK [00:20:13]01 MH_I2C_Read... [00:20:13]00 Read from MH i2c: 01 01 F7 [00:20:13]MH_I2C_Read... [00:20:13]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 Read from MH i2c: F6 01 07 00 [00:20:13]MH_I2C_Read... [00:20:13]03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Read from MH i2c: 00 01 F2 07 03 00 01 D6 00 19 00 00 F3 00 03 00 00 00 00 00 3E 0A 3E [00:20:13]RasterBufferAndPrint [00:20:13]line [00:20:13]line [00:20:13]line [00:20:13]line [00:20:13]EE line [00:20:13]03 09 written 0, free lines is 3114 [00:20:13]00 F2 03 01 00 01 F3 03 00 00 MH_Cut [00:20:13]EF Write to MH i2c: 03 D1 09 01 00 00 F6 DD 03 19 01 01 00 C8 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 [00:20:13]EF 03 09 00 F6 03 01 00 Write i2c OK [00:20:13]06 MH_I2C_Read... [00:20:13]F7 Read from MH i2c: 03 D1 00 [00:20:13]00 MH_I2C_Read... [00:20:13]7A 04 8D 00 6F 04 04 00 00 00 00 00 Read from MH i2c: B1 D1 04 01 00 00 00 [00:20:13]70 MH_I2C_Read... [00:20:13]04 Read from MH i2c: 00 D1 00 01 72 00 04 DD 00 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4D 46 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 E6 E4 96 BD 70 00 8E C7 4C [00:20:14]CC Write to MH i2c: 01 00 00 DE 19 F7 [00:20:14]A9 DD 51 5F DE 44 [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 18 85 47 00 BC 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 *** Cut start [00:20:14]36 *** Partial cut [00:20:14]31 32 33 34 11 *** CUTSNS_PIN = 1 [00:20:14]04 10 00 30 30 30 30 30 30 30 30 30 *** CUTSNS_PIN = 0 [00:20:14]30 38 37 35 30 35 37 10 04 04 00 4D 46 02 00 F4 03 04 00 5F 56 5F 66 B6 04 01 00 00 A6 AF 5B 1D 8C 97 8F 73 [00:20:14]CommunicateWithHost err = 0 [00:20:14]CheckOFDResponse [00:20:14]1017 (14) - 77093643461234 [00:20:14]1041 (16) - 0000000000875057 [00:20:14]1040 (4) - 149069 [00:20:14]1012 (4) - 04.06.2024 18:01 [00:20:14]1206 (1) - 0 [00:20:14]OFD Sender: Remove packet 149069 [00:20:14]ProducePacketName [00:20:14]name=ofd_packets/00149069 [00:20:14]NVStorageDeleteData [00:20:15]*** Brake cut motor [00:20:15]Read from MH i2c: 01 [00:20:15]MH_I2C_Read... [00:20:15]*** Stop cut motor [00:20:15]*** Cut end [00:20:15]Read from MH i2c: 01 07 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 DE 19 00 00 00 00 00 FF 0F 0C [00:20:15]process_action close_shift done [00:20:15]requested_data is exist [00:20:15]produce_requested_data [00:20:15]requested_item fd.num is exist - process it [00:20:15]SAM_PROTO_GetFieldsCounters [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 13 00 00 [00:20:15]Write to MH i2c: E2 08 00 DF 19 80 13 00 00 00 00 00 00 74 [00:20:15]OFD Sender: No OFD packet to send [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 62 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 62 00 DF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [00:20:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:15]wFMCommunicate OK [00:20:15]SAM_PROTO_GetFieldsCounters done [00:20:15]requested_item shift.num is exist - process it [00:20:15]requested_item shift.opened is exist - process it [00:20:15]req_shift_opened [00:20:15]FM_GetShiftState [00:20:15]SAM_PROTO_GetShiftState [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 13 01 00 [00:20:15]Write to MH i2c: E2 08 00 E0 19 80 13 01 00 00 00 00 00 76 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 0E 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 0E 00 E0 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 81 [00:20:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:15]wFMCommunicate OK [00:20:15]SAM_PROTO_GetShiftState done [00:20:15]FM_GetShiftState done [00:20:15]req_shift_opened done [00:20:15]requested_item shift.open_date is exist - process it [00:20:15]req_shift_open_date [00:20:15]FM_GetShiftState [00:20:15]SAM_PROTO_GetShiftState [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 13 01 00 [00:20:16]Write to MH i2c: E2 08 00 E1 19 80 13 01 00 00 00 00 00 77 [00:20:16]Write i2c OK [00:20:16]MH_I2C_Read... [00:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:16]Read from MH i2c: E2 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: E2 0E 00 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: E2 0E 00 E1 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 82 [00:20:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:16]wFMCommunicate OK [00:20:16]SAM_PROTO_GetShiftState done [00:20:16]FM_GetShiftState done [00:20:16]req_shift_open_date done [00:20:16]produce_requested_data done [00:20:16]produce_requested_data return {"fd.num":149069,"shift.num":368,"shift.opened":0,"shift.open_date":0} [00:20:16]process_action_free close_shift [00:20:16]json_value_free [00:20:16]json_value_free done [00:20:16]process_json_proto returns [00:20:16]Send response to host [00:20:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":149069,"shift.num":368,"shift.opened":0,"shift.open_date":0}}} [00:20:16]free response buf [00:20:16]execute_script done [00:20:16]execute_script returns [00:20:16]free content buf [00:20:16]Sock 9.Close socket [00:20:16]Sock 9.Thread stoped [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:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:46]accept exits with 7 [00:25:46]New connection [00:25:46]New thread 3067075940 created [00:25:46]Thread 3067219300 joined [00:25:46]Waiting for new connection... [00:25:46] Sock 7.Parse request [00:25:46]Sock 7.Check first char [00:25:46]Sock 7.First char is OK [00:25:46]request: POST /json_proto HTTP/1.0 [00:25:46]Method: POST [00:25:46]URL: /json_proto [00:25:46]Method is POST - this is cgi request [00:25:46]url: /json_proto [00:25:46]query_string will be loaded in cgi processing [00:25:46]execute_cgi json_proto POST (null) [00:25:46]execute_cgi path=json_proto method=POST [00:25:46]POST find Content-Length [00:25:46]Host: 172.17.38.4:8080 [00:25:46]Content-Length: 215 [00:25:46]Content-Type: application/json [00:25:46] [00:25:46]POST finish read [00:25:46]Found Content-Length = 215 [00:25:46]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:25:46]execute_script... [00:25:46]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:25:46]POST & json_proto [00:25:46]process_json_proto [00:25:46]json parsed OK: [00:25:46]protocol is kg_v1.0 [00:25:46]action value=get_value [00:25:46]process_action get_value [00:25:46]cmd_get_value [00:25:46]process_action get_value done [00:25:46]requested_data is exist [00:25:46]produce_requested_data [00:25:46]requested_item kkm.sn is exist - process it [00:25:46]requested_item kkm.ver is exist - process it [00:25:46]requested_item fm.sn is exist - process it [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 11 00 00 [00:25:46]Write to MH i2c: E2 08 00 E2 19 80 11 00 00 00 00 00 00 75 [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 17 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 17 00 E2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C8 [00:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:25:46]wFMCommunicate OK [00:25:46]requested_item fd.num is exist - process it [00:25:46]SAM_PROTO_GetFieldsCounters [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 13 00 00 [00:25:46]Write to MH i2c: E2 08 00 E3 19 80 13 00 00 00 00 00 00 78 [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 62 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 62 00 E3 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [00:25:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4D 46 02 00 0E 04 04 00 70 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:46]wFMCommunicate OK [00:25:46]SAM_PROTO_GetFieldsCounters done [00:25:46]requested_item shift.num is exist - process it [00:25:46]requested_item shift.opened is exist - process it [00:25:46]req_shift_opened [00:25:46]FM_GetShiftState [00:25:46]SAM_PROTO_GetShiftState [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 13 01 00 [00:25:46]Write to MH i2c: E2 08 00 E4 19 80 13 01 00 00 00 00 00 7A [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 0E 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 0E 00 E4 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 85 [00:25:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:46]wFMCommunicate OK [00:25:46]SAM_PROTO_GetShiftState done [00:25:46]FM_GetShiftState done [00:25:46]req_shift_opened done [00:25:46]requested_item shift.open_date is exist - process it [00:25:46]req_shift_open_date [00:25:46]FM_GetShiftState [00:25:46]SAM_PROTO_GetShiftState [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 13 01 00 [00:25:46]Write to MH i2c: E2 08 00 E5 19 80 13 01 00 00 00 00 00 7B [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 0E 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 0E 00 E5 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 86 [00:25:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:46]wFMCommunicate OK [00:25:46]SAM_PROTO_GetShiftState done [00:25:46]FM_GetShiftState done [00:25:46]req_shift_open_date done [00:25:46]produce_requested_data done [00:25:46]produce_requested_data return {"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":149069,"shift.num":368,"shift.opened":0,"shift.open_date":0} [00:25:46]process_action_free get_value [00:25:46]json_value_free [00:25:46]json_value_free done [00:25:46]process_json_proto returns [00:25:46]Send response to host [00:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":149069,"shift.num":368,"shift.opened":0,"shift.open_date":0}}} [00:25:46]free response buf [00:25:46]execute_script done [00:25:46]execute_script returns [00:25:46]free content buf [00:25:46]Sock 7.Close socket [00:25:46]Sock 7.Thread stoped [00:25:46]accept exits with 9 [00:25:46]New connection [00:25:46]New thread 3067219300 created [00:25:46]Thread 3067075940 joined [00:25:46]Waiting for new connection... [00:25:46] Sock 9.Parse request [00:25:46]Sock 9.Check first char [00:25:46]Sock 9.First char is OK [00:25:46]request: POST /json_proto HTTP/1.0 [00:25:46]Method: POST [00:25:46]URL: /json_proto [00:25:46]Method is POST - this is cgi request [00:25:46]url: /json_proto [00:25:46]query_string will be loaded in cgi processing [00:25:46]execute_cgi json_proto POST (null) [00:25:46]execute_cgi path=json_proto method=POST [00:25:46]POST find Content-Length [00:25:46]Host: 172.17.38.4:8080 [00:25:46]Content-Length: 331 [00:25:46]Content-Type: application/json [00:25:46] [00:25:46]POST finish read [00:25:46]Found Content-Length = 331 [00:25:46]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:25:46]execute_script... [00:25:46]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:25:46]POST & json_proto [00:25:46]process_json_proto [00:25:46]json parsed OK: [00:25:46]protocol is kg_v1.0 [00:25:46]action value=get_value [00:25:46]process_action get_value [00:25:46]cmd_get_value [00:25:46]process_action get_value done [00:25:46]requested_data is exist [00:25:46]produce_requested_data [00:25:46]requested_item fm.sale.total is exist - process it [00:25:46]SAM_PROTO_GetFMData [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 13 03 00 [00:25:46]Write to MH i2c: E2 08 00 E6 19 80 13 03 00 00 00 00 00 7E [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:47]Read from MH i2c: E2 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 E6 19 00 C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 E1 [00:25:47]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 [00:25:47]wFMCommunicate OK [00:25:47]wFMCommunicate request_size=4 [00:25:47]MH_SAM_APDU [00:25:47]CAPDU: 80 17 00 00 [00:25:47]Write to MH i2c: E2 08 00 E7 19 80 17 00 00 00 00 00 00 80 [00:25:47]Write i2c OK [00:25:47]MH_I2C_Read... [00:25:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:47]Read from MH i2c: E2 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 E7 19 00 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DD [00:25:47]RAPDU: 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:47]wFMCommunicate OK [00:25:47]wFMCommunicate request_size=4 [00:25:47]MH_SAM_APDU [00:25:47]CAPDU: 80 17 00 00 [00:25:47]Write to MH i2c: E2 08 00 E8 19 80 17 00 00 00 00 00 00 81 [00:25:47]Write i2c OK [00:25:47]MH_I2C_Read... [00:25:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:47]Read from MH i2c: E2 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 E8 19 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [00:25:47]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:47]wFMCommunicate OK [00:25:47]wFMCommunicate request_size=4 [00:25:47]MH_SAM_APDU [00:25:47]CAPDU: 80 17 00 00 [00:25:47]Write to MH i2c: E2 08 00 E9 19 80 17 00 00 00 00 00 00 82 [00:25:47]Write i2c OK [00:25:47]MH_I2C_Read... [00:25:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:48]Read from MH i2c: E2 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 E9 19 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [00:25:48]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:48]wFMCommunicate OK [00:25:48]wFMCommunicate request_size=4 [00:25:48]MH_SAM_APDU [00:25:48]CAPDU: 80 17 00 00 [00:25:48]Write to MH i2c: E2 08 00 EA 19 80 17 00 00 00 00 00 00 83 [00:25:48]Write i2c OK [00:25:48]MH_I2C_Read... [00:25:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:25:48]Read from MH i2c: E2 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 E4 00 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 E4 00 EA 19 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 63 [00:25:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25:48]wFMCommunicate OK [00:25:48]SAM_PROTO_GetFMData done [00:25:48]requested_item fm.sale_refund.total is exist - process it [00:25:48]requested_item fm.buy.total is exist - process it [00:25:48]requested_item shift.sale.total is exist - process it [00:25:48]SAM_PROTO_GetShiftData [00:25:48]wFMCommunicate request_size=4 [00:25:48]MH_SAM_APDU [00:25:48]CAPDU: 80 13 02 00 [00:25:48]Write to MH i2c: E2 08 00 EB 19 80 13 02 00 00 00 00 00 82 [00:25:48]Write i2c OK [00:25:48]MH_I2C_Read... [00:25:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:48]Read from MH i2c: E2 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 EB 19 00 BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 6C [00:25:48]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 97 01 00 00 69 04 9E 00 6F 04 04 00 95 01 00 00 B1 04 04 00 26 C3 88 01 70 04 04 00 DC 08 51 01 72 04 03 00 4A BA 37 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 29 B9 29 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 1D 7A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 C0 D4 01 70 04 03 00 C0 D4 01 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 C9 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:25:48]wFMCommunicate OK [00:25:48]wFMCommunicate request_size=4 [00:25:48]MH_SAM_APDU [00:25:48]CAPDU: 80 17 00 00 [00:25:48]Write to MH i2c: E2 08 00 EC 19 80 17 00 00 00 00 00 00 85 [00:25:48]Write i2c OK [00:25:48]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 EC 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 59 [00:25:49]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [00:25:49]wFMCommunicate OK [00:25:49]wFMCommunicate request_size=4 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 17 00 00 [00:25:49]Write to MH i2c: E2 08 00 ED 19 80 17 00 00 00 00 00 00 86 [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 ED 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 B2 [00:25:49]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [00:25:49]wFMCommunicate OK [00:25:49]wFMCommunicate request_size=4 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 17 00 00 [00:25:49]Write to MH i2c: E2 08 00 EE 19 80 17 00 00 00 00 00 00 87 [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 EE 19 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 FC [00:25:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:25:49]wFMCommunicate OK [00:25:49]wFMCommunicate request_size=4 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 17 00 00 [00:25:49]Write to MH i2c: E2 08 00 EF 19 80 17 00 00 00 00 00 00 88 [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 D8 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 D8 00 EF 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [00:25:50]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:50]wFMCommunicate OK [00:25:50]SAM_PROTO_GetShiftData done [00:25:50]requested_item shift.sale.total_cash is exist - process it [00:25:50]requested_item shift.sale_refund.total is exist - process it [00:25:50]requested_item shift.sale_refund.total_cash is exist - process it [00:25:50]requested_item shift.buy.total is exist - process it [00:25:50]requested_item shift.buy.total_cash is exist - process it [00:25:50]produce_requested_data done [00:25:50]produce_requested_data return {"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.00,"fm.buy.total":0.00,"shift.sale.total":257400.70,"shift.sale.total_cash":220879.00,"shift.sale_refund.total":1200.00,"shift.sale_refund.total_cash":1200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:50]process_action_free get_value [00:25:50]json_value_free [00:25:50]json_value_free done [00:25:50]process_json_proto returns [00:25:50]Send response to host [00:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.00,"fm.buy.total":0.00,"shift.sale.total":257400.70,"shift.sale.total_cash":220879.00,"shift.sale_refund.total":1200.00,"shift.sale_refund.total_cash":1200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:50]free response buf [00:25:50]execute_script done [00:25:50]execute_script returns [00:25:50]free content buf [00:25:50]Sock 9.Close socket [00:25:50]Sock 9.Thread stoped [00:25:50]accept exits with 7 [00:25:50]New connection [00:25:50]New thread 3067075940 created [00:25:50]Thread 3067219300 joined [00:25:50]Waiting for new connection... [00:25:50] Sock 7.Parse request [00:25:50]Sock 7.Check first char [00:25:50]Sock 7.First char is OK [00:25:50]request: POST /json_proto HTTP/1.0 [00:25:50]Method: POST [00:25:50]URL: /json_proto [00:25:50]Method is POST - this is cgi request [00:25:50]url: /json_proto [00:25:50]query_string will be loaded in cgi processing [00:25:50]execute_cgi json_proto POST (null) [00:25:50]execute_cgi path=json_proto method=POST [00:25:50]POST find Content-Length [00:25:50]Host: 172.17.38.4:8080 [00:25:50]Content-Length: 271 [00:25:50]Content-Type: application/json [00:25:50] [00:25:50]POST finish read [00:25:50]Found Content-Length = 271 [00:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u043E\u0433\u0442\u0443\u0440\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:50]execute_script... [00:25:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u043E\u0433\u0442\u0443\u0440\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:50]POST & json_proto [00:25:50]process_json_proto [00:25:50]json parsed OK: [00:25:50]protocol is kg_v1.0 [00:25:50]action value=open_shift [00:25:50]process_action open_shift [00:25:50]cmd_open_shift [00:25:50]MH_GetDate [00:25:50]Write to MH i2c: F0 00 00 F0 19 F8 [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: F0 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: F0 09 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: F0 09 00 F0 19 00 8F B0 5F 66 CC 51 87 64 0D [00:25:50]GetLastDocTimeStamp 1717546797 [00:25:50]current date 1717547151 [00:25:50]FM_GetShiftState [00:25:50]SAM_PROTO_GetShiftState [00:25:50]wFMCommunicate request_size=4 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 13 01 00 [00:25:50]Write to MH i2c: E2 08 00 F1 19 80 13 01 00 00 00 00 00 87 [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 0E 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 0E 00 F1 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 92 [00:25:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:50]wFMCommunicate OK [00:25:50]SAM_PROTO_GetShiftState done [00:25:50]FM_GetShiftState done [00:25:50]KKMCreateOpenShiftDocument [00:25:50]Load OK [00:25:50]Malloc new data [00:25:50]MH_GetDate [00:25:50]Write to MH i2c: F0 00 00 F2 19 FA [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: F0 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: F0 09 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: F0 09 00 F2 19 00 8F B0 5F 66 CC 51 87 64 0F [00:25:50]Malloc new data [00:25:50]KKMCreateOpenShiftDocument OK [00:25:50]KKMSetOpenShiftData OK [00:25:50]ProcessDocumentItem done err = 0, tmpTLVsize=235 [00:25:50]tlvbuf is 00A08DB0 [00:25:50]KKMLoadAndSignOpenShiftData [00:25:50]SAM_PROTO_ProcessDocument [00:25:50]wFMCommunicate request_size=9 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 15 01 00 04 02 00 EB 00 [00:25:50]Write to MH i2c: E2 0C 00 F3 19 80 15 01 00 04 00 02 00 EB 00 00 00 80 [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 F3 19 00 90 00 80 [00:25:50]RAPDU: 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=23 [00:25:50]MH_SAM_APDU [00:25:50]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:25:50]Write to MH i2c: E2 1A 00 F4 19 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 82 [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 F4 19 00 90 00 81 [00:25:50]RAPDU: 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=34 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 [00:25:50]Write to MH i2c: E2 25 00 F5 19 80 15 02 00 1D 00 FD 03 19 00 D0 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 00 00 24 [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 F5 19 00 90 00 82 [00:25:50]RAPDU: 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=120 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 15 02 00 73 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 [00:25:50]Write to MH i2c: E2 7B 00 F6 19 80 15 02 00 73 00 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 00 00 62 [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 F6 19 00 90 00 83 [00:25:50]RAPDU: 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=50 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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:25:50]Write to MH i2c: E2 35 00 F7 19 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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 0D [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 F7 19 00 90 00 84 [00:25:50]RAPDU: 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=13 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 15 02 00 08 F4 03 04 00 8F B0 5F 66 [00:25:50]Write to MH i2c: E2 10 00 F8 19 80 15 02 00 08 00 F4 03 04 00 8F B0 5F 66 00 00 A0 [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 F8 19 00 90 00 85 [00:25:50]RAPDU: 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=25 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 [00:25:50]Write to MH i2c: E2 1C 00 F9 19 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 00 00 EF [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 03 00 F9 19 00 90 00 86 [00:25:50]RAPDU: 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=4 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 15 03 00 [00:25:50]Write to MH i2c: E2 08 00 FA 19 80 15 03 00 00 00 00 00 94 [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]OFD Sender: No OFD packet to send [00:25:51]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:25:51]Read from MH i2c: E2 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 38 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 38 00 FA 19 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4E 46 02 00 0E 04 04 00 71 01 00 00 35 04 06 00 03 AB CA 54 F6 0C 90 00 36 [00:25:51]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4E 46 02 00 0E 04 04 00 71 01 00 00 35 04 06 00 03 AB CA 54 F6 0C 90 00 [00:25:51]wFMCommunicate OK [00:25:51]SAM_PROTO_ProcessDocument answer len = 51 [00:25:51]SAM_PROTO_ProcessDocument done [00:25:51]SetTLVBufToDocument [00:25:51]Processing tag 1209 (04B9) [00:25:51]Malloc new data [00:25:51]Processing tag 1041 (0411) [00:25:51]Processing tag 1040 (0410) [00:25:51]Malloc new data [00:25:51]Processing tag 1038 (040E) [00:25:51]Malloc new data [00:25:51]Processing tag 1077 (0435) [00:25:51]Malloc new data [00:25:51]SetTLVBufToDocument err=0 [00:25:51]KKMLoadAndSignOpenShiftData store KKM data [00:25:51]KKMLoadAndSignOpenShiftData err=0 [00:25:51]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Догтурбаев А. Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 Место: АЗС № 68 "Партнер Нефть" 05.06.2024 00:25 Смена: 369 РНМ: 0000000000092720 ЗНМ: 0300000035 ФД: 149070 ФМ: 0000000000875057 ФПД: 4036368856588 [00:25:51]StoreToDocumentArchive [00:25:51]shift 369 fd 149070 [00:25:51]Create dir for shift 0369 [00:25:51]save to /storage/0369/doc_00149070 [00:25:51]save last doc name /storage/0369/doc_00149070 to /storage/kkm_last_doc_name [00:25:51]save OK [00:25:51]Clear old archive folders... [00:25:51]Remove dir /storage/0368 [00:25:51]opendir ok [00:25:51]file . [00:25:51]file .. [00:25:51]file doc_00148661 [00:25:51]remove file /storage/0368/doc_00148661 [00:25:51]file doc_00148662 [00:25:51]remove file /storage/0368/doc_00148662 [00:25:51]file doc_00148663 [00:25:51]remove file /storage/0368/doc_00148663 [00:25:51]file doc_00148664 [00:25:51]remove file /storage/0368/doc_00148664 [00:25:51]file doc_00148665 [00:25:51]remove file /storage/0368/doc_00148665 [00:25:51]file doc_00148666 [00:25:51]remove file /storage/0368/doc_00148666 [00:25:51]file doc_00148667 [00:25:51]remove file /storage/0368/doc_00148667 [00:25:51]file doc_00148668 [00:25:51]remove file /storage/0368/doc_00148668 [00:25:51]file doc_00148669 [00:25:51]remove file /storage/0368/doc_00148669 [00:25:51]file doc_00148670 [00:25:51]remove file /storage/0368/doc_00148670 [00:25:51]file doc_00148671 [00:25:51]remove file /storage/0368/doc_00148671 [00:25:51]file doc_00148672 [00:25:51]remove file /storage/0368/doc_00148672 [00:25:51]file doc_00148673 [00:25:51]remove file /storage/0368/doc_00148673 [00:25:51]file doc_00148674 [00:25:51]remove file /storage/0368/doc_00148674 [00:25:51]file doc_00148675 [00:25:51]remove file /storage/0368/doc_00148675 [00:25:51]file doc_00148676 [00:25:51]remove file /storage/0368/doc_00148676 [00:25:51]file doc_00148677 [00:25:51]remove file /storage/0368/doc_00148677 [00:25:51]file doc_00148678 [00:25:51]remove file /storage/0368/doc_00148678 [00:25:51]file doc_00148679 [00:25:51]remove file /storage/0368/doc_00148679 [00:25:51]file doc_00148680 [00:25:51]remove file /storage/0368/doc_00148680 [00:25:51]file doc_00148681 [00:25:51]remove file /storage/0368/doc_00148681 [00:25:51]file doc_00148682 [00:25:51]remove file /storage/0368/doc_00148682 [00:25:51]file doc_00148683 [00:25:51]remove file /storage/0368/doc_00148683 [00:25:51]file doc_00148684 [00:25:51]remove file /storage/0368/doc_00148684 [00:25:51]file doc_00148685 [00:25:51]remove file /storage/0368/doc_00148685 [00:25:51]file doc_00148686 [00:25:51]remove file /storage/0368/doc_00148686 [00:25:51]file doc_00148687 [00:25:51]remove file /storage/0368/doc_00148687 [00:25:51]file doc_00148688 [00:25:51]remove file /storage/0368/doc_00148688 [00:25:51]file doc_00148689 [00:25:51]remove file /storage/0368/doc_00148689 [00:25:51]file doc_00148690 [00:25:51]remove file /storage/0368/doc_00148690 [00:25:51]file doc_00148691 [00:25:51]remove file /storage/0368/doc_00148691 [00:25:51]file doc_00148692 [00:25:51]remove file /storage/0368/doc_00148692 [00:25:51]file doc_00148693 [00:25:51]remove file /storage/0368/doc_00148693 [00:25:51]file doc_00148694 [00:25:51]remove file /storage/0368/doc_00148694 [00:25:51]file doc_00148695 [00:25:51]remove file /storage/0368/doc_00148695 [00:25:51]file doc_00148696 [00:25:51]remove file /storage/0368/doc_00148696 [00:25:51]file doc_00148697 [00:25:51]remove file /storage/0368/doc_00148697 [00:25:51]file doc_00148698 [00:25:51]remove file /storage/0368/doc_00148698 [00:25:51]file doc_00148699 [00:25:51]remove file /storage/0368/doc_00148699 [00:25:51]file doc_00148700 [00:25:51]remove file /storage/0368/doc_00148700 [00:25:51]file doc_00148701 [00:25:51]remove file /storage/0368/doc_00148701 [00:25:51]file doc_00148702 [00:25:51]remove file /storage/0368/doc_00148702 [00:25:51]file doc_00148703 [00:25:51]remove file /storage/0368/doc_00148703 [00:25:51]file doc_00148704 [00:25:51]remove file /storage/0368/doc_00148704 [00:25:51]file doc_00148705 [00:25:51]remove file /storage/0368/doc_00148705 [00:25:51]file doc_00148706 [00:25:51]remove file /storage/0368/doc_00148706 [00:25:51]file doc_00148707 [00:25:51]remove file /storage/0368/doc_00148707 [00:25:51]file doc_00148708 [00:25:51]remove file /storage/0368/doc_00148708 [00:25:51]file doc_00148709 [00:25:51]remove file /storage/0368/doc_00148709 [00:25:51]file doc_00148710 [00:25:51]remove file /storage/0368/doc_00148710 [00:25:51]file doc_00148711 [00:25:51]remove file /storage/0368/doc_00148711 [00:25:51]file doc_00148712 [00:25:51]remove file /storage/0368/doc_00148712 [00:25:51]file doc_00148713 [00:25:51]remove file /storage/0368/doc_00148713 [00:25:51]file doc_00148714 [00:25:51]remove file /storage/0368/doc_00148714 [00:25:51]file doc_00148715 [00:25:51]remove file /storage/0368/doc_00148715 [00:25:51]file doc_00148716 [00:25:51]remove file /storage/0368/doc_00148716 [00:25:51]file doc_00148717 [00:25:51]remove file /storage/0368/doc_00148717 [00:25:51]file doc_00148718 [00:25:51]remove file /storage/0368/doc_00148718 [00:25:51]file doc_00148719 [00:25:51]remove file /storage/0368/doc_00148719 [00:25:51]file doc_00148720 [00:25:51]remove file /storage/0368/doc_00148720 [00:25:51]file doc_00148721 [00:25:51]remove file /storage/0368/doc_00148721 [00:25:51]file doc_00148722 [00:25:51]remove file /storage/0368/doc_00148722 [00:25:51]file doc_00148723 [00:25:51]remove file /storage/0368/doc_00148723 [00:25:51]file doc_00148724 [00:25:51]remove file /storage/0368/doc_00148724 [00:25:51]file doc_00148725 [00:25:51]remove file /storage/0368/doc_00148725 [00:25:51]file doc_00148726 [00:25:51]remove file /storage/0368/doc_00148726 [00:25:51]file doc_00148727 [00:25:51]remove file /storage/0368/doc_00148727 [00:25:51]file doc_00148728 [00:25:51]remove file /storage/0368/doc_00148728 [00:25:51]file doc_00148729 [00:25:51]remove file /storage/0368/doc_00148729 [00:25:51]file doc_00148730 [00:25:51]remove file /storage/0368/doc_00148730 [00:25:51]file doc_00148731 [00:25:51]remove file /storage/0368/doc_00148731 [00:25:51]file doc_00148732 [00:25:51]remove file /storage/0368/doc_00148732 [00:25:51]file doc_00148733 [00:25:51]remove file /storage/0368/doc_00148733 [00:25:51]file doc_00148734 [00:25:51]remove file /storage/0368/doc_00148734 [00:25:51]file doc_00148735 [00:25:51]remove file /storage/0368/doc_00148735 [00:25:51]file doc_00148736 [00:25:51]remove file /storage/0368/doc_00148736 [00:25:51]file doc_00148737 [00:25:51]remove file /storage/0368/doc_00148737 [00:25:51]file doc_00148738 [00:25:51]remove file /storage/0368/doc_00148738 [00:25:51]file doc_00148739 [00:25:51]remove file /storage/0368/doc_00148739 [00:25:51]file doc_00148740 [00:25:51]remove file /storage/0368/doc_00148740 [00:25:51]file doc_00148741 [00:25:51]remove file /storage/0368/doc_00148741 [00:25:51]file doc_00148742 [00:25:51]remove file /storage/0368/doc_00148742 [00:25:51]file doc_00148743 [00:25:51]remove file /storage/0368/doc_00148743 [00:25:51]file doc_00148744 [00:25:51]remove file /storage/0368/doc_00148744 [00:25:51]file doc_00148745 [00:25:51]remove file /storage/0368/doc_00148745 [00:25:51]file doc_00148746 [00:25:51]remove file /storage/0368/doc_00148746 [00:25:51]file doc_00148747 [00:25:51]remove file /storage/0368/doc_00148747 [00:25:51]file doc_00148748 [00:25:51]remove file /storage/0368/doc_00148748 [00:25:51]file doc_00148749 [00:25:51]remove file /storage/0368/doc_00148749 [00:25:51]file doc_00148750 [00:25:51]remove file /storage/0368/doc_00148750 [00:25:51]file doc_00148751 [00:25:51]remove file /storage/0368/doc_00148751 [00:25:51]file doc_00148752 [00:25:51]remove file /storage/0368/doc_00148752 [00:25:51]file doc_00148753 [00:25:51]remove file /storage/0368/doc_00148753 [00:25:51]file doc_00148754 [00:25:51]remove file /storage/0368/doc_00148754 [00:25:51]file doc_00148755 [00:25:51]remove file /storage/0368/doc_00148755 [00:25:51]file doc_00148756 [00:25:51]remove file /storage/0368/doc_00148756 [00:25:51]file doc_00148757 [00:25:51]remove file /storage/0368/doc_00148757 [00:25:51]file doc_00148758 [00:25:51]remove file /storage/0368/doc_00148758 [00:25:51]file doc_00148759 [00:25:51]remove file /storage/0368/doc_00148759 [00:25:51]file doc_00148760 [00:25:51]remove file /storage/0368/doc_00148760 [00:25:51]file doc_00148761 [00:25:51]remove file /storage/0368/doc_00148761 [00:25:51]file doc_00148762 [00:25:51]remove file /storage/0368/doc_00148762 [00:25:51]file doc_00148763 [00:25:51]remove file /storage/0368/doc_00148763 [00:25:51]file doc_00148764 [00:25:51]remove file /storage/0368/doc_00148764 [00:25:51]file doc_00148765 [00:25:51]remove file /storage/0368/doc_00148765 [00:25:51]file doc_00148766 [00:25:51]remove file /storage/0368/doc_00148766 [00:25:51]file doc_00148767 [00:25:51]remove file /storage/0368/doc_00148767 [00:25:51]file doc_00148768 [00:25:51]remove file /storage/0368/doc_00148768 [00:25:51]file doc_00148769 [00:25:51]remove file /storage/0368/doc_00148769 [00:25:51]file doc_00148770 [00:25:51]remove file /storage/0368/doc_00148770 [00:25:51]file doc_00148771 [00:25:51]remove file /storage/0368/doc_00148771 [00:25:51]file doc_00148772 [00:25:51]remove file /storage/0368/doc_00148772 [00:25:51]file doc_00148773 [00:25:51]remove file /storage/0368/doc_00148773 [00:25:51]file doc_00148774 [00:25:51]remove file /storage/0368/doc_00148774 [00:25:51]file doc_00148775 [00:25:51]remove file /storage/0368/doc_00148775 [00:25:51]file doc_00148776 [00:25:51]remove file /storage/0368/doc_00148776 [00:25:51]file doc_00148777 [00:25:51]remove file /storage/0368/doc_00148777 [00:25:51]file doc_00148778 [00:25:51]remove file /storage/0368/doc_00148778 [00:25:51]file doc_00148779 [00:25:51]remove file /storage/0368/doc_00148779 [00:25:51]file doc_00148780 [00:25:51]remove file /storage/0368/doc_00148780 [00:25:51]file doc_00148781 [00:25:51]remove file /storage/0368/doc_00148781 [00:25:51]file doc_00148782 [00:25:51]remove file /storage/0368/doc_00148782 [00:25:51]file doc_00148783 [00:25:51]remove file /storage/0368/doc_00148783 [00:25:51]file doc_00148784 [00:25:51]remove file /storage/0368/doc_00148784 [00:25:51]file doc_00148785 [00:25:51]remove file /storage/0368/doc_00148785 [00:25:51]file doc_00148786 [00:25:51]remove file /storage/0368/doc_00148786 [00:25:51]file doc_00148787 [00:25:51]remove file /storage/0368/doc_00148787 [00:25:51]file doc_00148788 [00:25:51]remove file /storage/0368/doc_00148788 [00:25:51]file doc_00148789 [00:25:51]remove file /storage/0368/doc_00148789 [00:25:51]file doc_00148790 [00:25:51]remove file /storage/0368/doc_00148790 [00:25:51]file doc_00148791 [00:25:51]remove file /storage/0368/doc_00148791 [00:25:51]file doc_00148792 [00:25:51]remove file /storage/0368/doc_00148792 [00:25:51]file doc_00148793 [00:25:51]remove file /storage/0368/doc_00148793 [00:25:51]file doc_00148794 [00:25:51]remove file /storage/0368/doc_00148794 [00:25:51]file doc_00148795 [00:25:51]remove file /storage/0368/doc_00148795 [00:25:51]file doc_00148796 [00:25:51]remove file /storage/0368/doc_00148796 [00:25:51]file doc_00148797 [00:25:51]remove file /storage/0368/doc_00148797 [00:25:51]file doc_00148798 [00:25:51]remove file /storage/0368/doc_00148798 [00:25:51]file doc_00148799 [00:25:51]remove file /storage/0368/doc_00148799 [00:25:51]file doc_00148800 [00:25:51]remove file /storage/0368/doc_00148800 [00:25:51]file doc_00148801 [00:25:51]remove file /storage/0368/doc_00148801 [00:25:51]file doc_00148802 [00:25:51]remove file /storage/0368/doc_00148802 [00:25:51]file doc_00148803 [00:25:51]remove file /storage/0368/doc_00148803 [00:25:51]file doc_00148804 [00:25:51]remove file /storage/0368/doc_00148804 [00:25:51]file doc_00148805 [00:25:51]remove file /storage/0368/doc_00148805 [00:25:51]file doc_00148806 [00:25:51]remove file /storage/0368/doc_00148806 [00:25:51]file doc_00148807 [00:25:52]remove file /storage/0368/doc_00148807 [00:25:52]file doc_00148808 [00:25:52]remove file /storage/0368/doc_00148808 [00:25:52]file doc_00148810 [00:25:52]remove file /storage/0368/doc_00148810 [00:25:52]file doc_00148811 [00:25:52]remove file /storage/0368/doc_00148811 [00:25:52]file doc_00148812 [00:25:52]remove file /storage/0368/doc_00148812 [00:25:52]file doc_00148813 [00:25:52]remove file /storage/0368/doc_00148813 [00:25:52]file doc_00148814 [00:25:52]remove file /storage/0368/doc_00148814 [00:25:52]file doc_00148815 [00:25:52]remove file /storage/0368/doc_00148815 [00:25:52]file doc_00148816 [00:25:52]remove file /storage/0368/doc_00148816 [00:25:52]file doc_00148817 [00:25:52]remove file /storage/0368/doc_00148817 [00:25:52]file doc_00148818 [00:25:52]remove file /storage/0368/doc_00148818 [00:25:52]file doc_00148819 [00:25:52]remove file /storage/0368/doc_00148819 [00:25:52]file doc_00148820 [00:25:52]remove file /storage/0368/doc_00148820 [00:25:52]file doc_00148821 [00:25:52]remove file /storage/0368/doc_00148821 [00:25:52]file doc_00148822 [00:25:52]remove file /storage/0368/doc_00148822 [00:25:52]file doc_00148823 [00:25:52]remove file /storage/0368/doc_00148823 [00:25:52]file doc_00148824 [00:25:52]remove file /storage/0368/doc_00148824 [00:25:52]file doc_00148825 [00:25:52]remove file /storage/0368/doc_00148825 [00:25:52]file doc_00148826 [00:25:52]remove file /storage/0368/doc_00148826 [00:25:52]file doc_00148827 [00:25:52]remove file /storage/0368/doc_00148827 [00:25:52]file doc_00148828 [00:25:52]remove file /storage/0368/doc_00148828 [00:25:52]file doc_00148829 [00:25:52]remove file /storage/0368/doc_00148829 [00:25:52]file doc_00148830 [00:25:52]remove file /storage/0368/doc_00148830 [00:25:52]file doc_00148831 [00:25:52]remove file /storage/0368/doc_00148831 [00:25:52]file doc_00148832 [00:25:52]remove file /storage/0368/doc_00148832 [00:25:52]file doc_00148833 [00:25:52]remove file /storage/0368/doc_00148833 [00:25:52]file doc_00148834 [00:25:52]remove file /storage/0368/doc_00148834 [00:25:52]file doc_00148835 [00:25:52]remove file /storage/0368/doc_00148835 [00:25:52]file doc_00148836 [00:25:52]remove file /storage/0368/doc_00148836 [00:25:52]file doc_00148837 [00:25:52]remove file /storage/0368/doc_00148837 [00:25:52]file doc_00148838 [00:25:52]remove file /storage/0368/doc_00148838 [00:25:52]file doc_00148839 [00:25:52]remove file /storage/0368/doc_00148839 [00:25:52]file doc_00148840 [00:25:52]remove file /storage/0368/doc_00148840 [00:25:52]file doc_00148841 [00:25:52]remove file /storage/0368/doc_00148841 [00:25:52]file doc_00148842 [00:25:52]remove file /storage/0368/doc_00148842 [00:25:52]file doc_00148843 [00:25:52]remove file /storage/0368/doc_00148843 [00:25:52]file doc_00148844 [00:25:52]remove file /storage/0368/doc_00148844 [00:25:52]file doc_00148845 [00:25:52]remove file /storage/0368/doc_00148845 [00:25:52]file doc_00148846 [00:25:52]remove file /storage/0368/doc_00148846 [00:25:52]file doc_00148847 [00:25:52]remove file /storage/0368/doc_00148847 [00:25:52]file doc_00148848 [00:25:52]remove file /storage/0368/doc_00148848 [00:25:52]file doc_00148849 [00:25:52]remove file /storage/0368/doc_00148849 [00:25:52]file doc_00148850 [00:25:52]remove file /storage/0368/doc_00148850 [00:25:52]file doc_00148851 [00:25:52]remove file /storage/0368/doc_00148851 [00:25:52]file doc_00148852 [00:25:52]remove file /storage/0368/doc_00148852 [00:25:52]file doc_00148853 [00:25:52]remove file /storage/0368/doc_00148853 [00:25:52]file doc_00148854 [00:25:52]remove file /storage/0368/doc_00148854 [00:25:52]file doc_00148855 [00:25:52]remove file /storage/0368/doc_00148855 [00:25:52]file doc_00148856 [00:25:52]remove file /storage/0368/doc_00148856 [00:25:52]file doc_00148857 [00:25:52]remove file /storage/0368/doc_00148857 [00:25:52]file doc_00148858 [00:25:52]remove file /storage/0368/doc_00148858 [00:25:52]file doc_00148859 [00:25:52]remove file /storage/0368/doc_00148859 [00:25:52]file doc_00148860 [00:25:52]remove file /storage/0368/doc_00148860 [00:25:52]file doc_00148861 [00:25:52]remove file /storage/0368/doc_00148861 [00:25:52]file doc_00148862 [00:25:52]remove file /storage/0368/doc_00148862 [00:25:52]file doc_00148863 [00:25:52]remove file /storage/0368/doc_00148863 [00:25:52]file doc_00148864 [00:25:52]remove file /storage/0368/doc_00148864 [00:25:52]file doc_00148865 [00:25:52]remove file /storage/0368/doc_00148865 [00:25:52]file doc_00148866 [00:25:52]remove file /storage/0368/doc_00148866 [00:25:52]file doc_00148867 [00:25:52]remove file /storage/0368/doc_00148867 [00:25:52]file doc_00148868 [00:25:52]remove file /storage/0368/doc_00148868 [00:25:52]file doc_00148869 [00:25:52]remove file /storage/0368/doc_00148869 [00:25:52]file doc_00148870 [00:25:52]remove file /storage/0368/doc_00148870 [00:25:52]file doc_00148871 [00:25:52]remove file /storage/0368/doc_00148871 [00:25:52]file doc_00148872 [00:25:52]remove file /storage/0368/doc_00148872 [00:25:52]file doc_00148873 [00:25:52]remove file /storage/0368/doc_00148873 [00:25:52]file doc_00148874 [00:25:52]remove file /storage/0368/doc_00148874 [00:25:52]file doc_00148875 [00:25:52]remove file /storage/0368/doc_00148875 [00:25:52]file doc_00148876 [00:25:52]remove file /storage/0368/doc_00148876 [00:25:52]file doc_00148877 [00:25:52]remove file /storage/0368/doc_00148877 [00:25:52]file doc_00148878 [00:25:52]remove file /storage/0368/doc_00148878 [00:25:52]file doc_00148879 [00:25:52]remove file /storage/0368/doc_00148879 [00:25:52]file doc_00148880 [00:25:52]remove file /storage/0368/doc_00148880 [00:25:52]file doc_00148881 [00:25:52]remove file /storage/0368/doc_00148881 [00:25:52]file doc_00148882 [00:25:52]remove file /storage/0368/doc_00148882 [00:25:52]file doc_00148883 [00:25:52]remove file /storage/0368/doc_00148883 [00:25:52]file doc_00148884 [00:25:52]remove file /storage/0368/doc_00148884 [00:25:52]file doc_00148885 [00:25:52]remove file /storage/0368/doc_00148885 [00:25:52]file doc_00148886 [00:25:52]remove file /storage/0368/doc_00148886 [00:25:52]file doc_00148887 [00:25:52]remove file /storage/0368/doc_00148887 [00:25:52]file doc_00148888 [00:25:52]remove file /storage/0368/doc_00148888 [00:25:52]file doc_00148889 [00:25:52]remove file /storage/0368/doc_00148889 [00:25:52]file doc_00148890 [00:25:52]remove file /storage/0368/doc_00148890 [00:25:52]file doc_00148891 [00:25:52]remove file /storage/0368/doc_00148891 [00:25:52]file doc_00148892 [00:25:52]remove file /storage/0368/doc_00148892 [00:25:52]file doc_00148893 [00:25:52]remove file /storage/0368/doc_00148893 [00:25:52]file doc_00148894 [00:25:52]remove file /storage/0368/doc_00148894 [00:25:52]file doc_00148895 [00:25:52]remove file /storage/0368/doc_00148895 [00:25:52]file doc_00148896 [00:25:52]remove file /storage/0368/doc_00148896 [00:25:52]file doc_00148897 [00:25:52]remove file /storage/0368/doc_00148897 [00:25:52]file doc_00148898 [00:25:52]remove file /storage/0368/doc_00148898 [00:25:52]file doc_00148899 [00:25:52]remove file /storage/0368/doc_00148899 [00:25:52]file doc_00148900 [00:25:52]remove file /storage/0368/doc_00148900 [00:25:52]file doc_00148901 [00:25:52]remove file /storage/0368/doc_00148901 [00:25:52]file doc_00148902 [00:25:52]remove file /storage/0368/doc_00148902 [00:25:52]file doc_00148903 [00:25:52]remove file /storage/0368/doc_00148903 [00:25:52]file doc_00148904 [00:25:52]remove file /storage/0368/doc_00148904 [00:25:52]file doc_00148905 [00:25:52]remove file /storage/0368/doc_00148905 [00:25:52]file doc_00148906 [00:25:52]remove file /storage/0368/doc_00148906 [00:25:52]file doc_00148907 [00:25:52]remove file /storage/0368/doc_00148907 [00:25:52]file doc_00148908 [00:25:52]remove file /storage/0368/doc_00148908 [00:25:52]file doc_00148909 [00:25:52]remove file /storage/0368/doc_00148909 [00:25:52]file doc_00148910 [00:25:52]remove file /storage/0368/doc_00148910 [00:25:52]file doc_00148911 [00:25:52]remove file /storage/0368/doc_00148911 [00:25:52]file doc_00148912 [00:25:52]remove file /storage/0368/doc_00148912 [00:25:52]file doc_00148913 [00:25:52]remove file /storage/0368/doc_00148913 [00:25:52]file doc_00148914 [00:25:52]remove file /storage/0368/doc_00148914 [00:25:52]file doc_00148915 [00:25:52]remove file /storage/0368/doc_00148915 [00:25:52]file doc_00148916 [00:25:52]remove file /storage/0368/doc_00148916 [00:25:52]file doc_00148917 [00:25:52]remove file /storage/0368/doc_00148917 [00:25:52]file doc_00148918 [00:25:52]remove file /storage/0368/doc_00148918 [00:25:52]file doc_00148919 [00:25:52]remove file /storage/0368/doc_00148919 [00:25:52]file doc_00148920 [00:25:52]remove file /storage/0368/doc_00148920 [00:25:52]file doc_00148921 [00:25:52]remove file /storage/0368/doc_00148921 [00:25:52]file doc_00148922 [00:25:52]remove file /storage/0368/doc_00148922 [00:25:52]file doc_00148923 [00:25:52]remove file /storage/0368/doc_00148923 [00:25:52]file doc_00148924 [00:25:52]remove file /storage/0368/doc_00148924 [00:25:52]file doc_00148925 [00:25:52]remove file /storage/0368/doc_00148925 [00:25:52]file doc_00148926 [00:25:52]remove file /storage/0368/doc_00148926 [00:25:52]file doc_00148927 [00:25:52]remove file /storage/0368/doc_00148927 [00:25:52]file doc_00148928 [00:25:52]remove file /storage/0368/doc_00148928 [00:25:52]file doc_00148929 [00:25:52]remove file /storage/0368/doc_00148929 [00:25:52]file doc_00148930 [00:25:52]remove file /storage/0368/doc_00148930 [00:25:52]file doc_00148931 [00:25:52]remove file /storage/0368/doc_00148931 [00:25:52]file doc_00148932 [00:25:52]remove file /storage/0368/doc_00148932 [00:25:52]file doc_00148933 [00:25:52]remove file /storage/0368/doc_00148933 [00:25:52]file doc_00148934 [00:25:52]remove file /storage/0368/doc_00148934 [00:25:52]file doc_00148935 [00:25:52]remove file /storage/0368/doc_00148935 [00:25:52]file doc_00148936 [00:25:52]remove file /storage/0368/doc_00148936 [00:25:52]file doc_00148937 [00:25:52]remove file /storage/0368/doc_00148937 [00:25:52]file doc_00148938 [00:25:52]remove file /storage/0368/doc_00148938 [00:25:52]file doc_00148939 [00:25:52]remove file /storage/0368/doc_00148939 [00:25:52]file doc_00148940 [00:25:52]remove file /storage/0368/doc_00148940 [00:25:52]file doc_00148941 [00:25:52]remove file /storage/0368/doc_00148941 [00:25:52]file doc_00148942 [00:25:52]remove file /storage/0368/doc_00148942 [00:25:52]file doc_00148943 [00:25:52]remove file /storage/0368/doc_00148943 [00:25:52]file doc_00148944 [00:25:52]remove file /storage/0368/doc_00148944 [00:25:52]file doc_00148945 [00:25:52]remove file /storage/0368/doc_00148945 [00:25:52]file doc_00148946 [00:25:52]remove file /storage/0368/doc_00148946 [00:25:52]file doc_00148947 [00:25:52]remove file /storage/0368/doc_00148947 [00:25:52]file doc_00148948 [00:25:52]remove file /storage/0368/doc_00148948 [00:25:52]file doc_00148949 [00:25:52]remove file /storage/0368/doc_00148949 [00:25:52]file doc_00148950 [00:25:52]remove file /storage/0368/doc_00148950 [00:25:52]file doc_00148951 [00:25:52]remove file /storage/0368/doc_00148951 [00:25:52]file doc_00148952 [00:25:52]remove file /storage/0368/doc_00148952 [00:25:52]file doc_00148953 [00:25:52]remove file /storage/0368/doc_00148953 [00:25:52]file doc_00148954 [00:25:52]remove file /storage/0368/doc_00148954 [00:25:52]file doc_00148955 [00:25:52]remove file /storage/0368/doc_00148955 [00:25:52]file doc_00148956 [00:25:52]remove file /storage/0368/doc_00148956 [00:25:52]file doc_00148957 [00:25:52]remove file /storage/0368/doc_00148957 [00:25:52]file doc_00148958 [00:25:52]remove file /storage/0368/doc_00148958 [00:25:52]file doc_00148959 [00:25:52]remove file /storage/0368/doc_00148959 [00:25:52]file doc_00148960 [00:25:52]remove file /storage/0368/doc_00148960 [00:25:52]file doc_00148961 [00:25:52]remove file /storage/0368/doc_00148961 [00:25:52]file doc_00148962 [00:25:52]remove file /storage/0368/doc_00148962 [00:25:52]file doc_00148963 [00:25:52]remove file /storage/0368/doc_00148963 [00:25:52]file doc_00148964 [00:25:52]remove file /storage/0368/doc_00148964 [00:25:52]file doc_00148965 [00:25:52]remove file /storage/0368/doc_00148965 [00:25:52]file doc_00148966 [00:25:52]remove file /storage/0368/doc_00148966 [00:25:52]file doc_00148967 [00:25:52]remove file /storage/0368/doc_00148967 [00:25:52]file doc_00148968 [00:25:52]remove file /storage/0368/doc_00148968 [00:25:52]file doc_00148969 [00:25:52]remove file /storage/0368/doc_00148969 [00:25:52]file doc_00148970 [00:25:52]remove file /storage/0368/doc_00148970 [00:25:52]file doc_00148971 [00:25:52]remove file /storage/0368/doc_00148971 [00:25:52]file doc_00148972 [00:25:52]remove file /storage/0368/doc_00148972 [00:25:52]file doc_00148973 [00:25:52]remove file /storage/0368/doc_00148973 [00:25:52]file doc_00148974 [00:25:52]remove file /storage/0368/doc_00148974 [00:25:52]file doc_00148975 [00:25:52]remove file /storage/0368/doc_00148975 [00:25:52]file doc_00148976 [00:25:52]remove file /storage/0368/doc_00148976 [00:25:52]file doc_00148977 [00:25:52]remove file /storage/0368/doc_00148977 [00:25:52]file doc_00148978 [00:25:52]remove file /storage/0368/doc_00148978 [00:25:52]file doc_00148979 [00:25:52]remove file /storage/0368/doc_00148979 [00:25:52]file doc_00148980 [00:25:52]remove file /storage/0368/doc_00148980 [00:25:52]file doc_00148981 [00:25:52]remove file /storage/0368/doc_00148981 [00:25:52]file doc_00148982 [00:25:52]remove file /storage/0368/doc_00148982 [00:25:52]file doc_00148983 [00:25:52]remove file /storage/0368/doc_00148983 [00:25:52]file doc_00148984 [00:25:52]remove file /storage/0368/doc_00148984 [00:25:52]file doc_00148985 [00:25:52]remove file /storage/0368/doc_00148985 [00:25:52]file doc_00148986 [00:25:52]remove file /storage/0368/doc_00148986 [00:25:52]file doc_00148987 [00:25:52]remove file /storage/0368/doc_00148987 [00:25:52]file doc_00148988 [00:25:52]remove file /storage/0368/doc_00148988 [00:25:52]file doc_00148989 [00:25:52]remove file /storage/0368/doc_00148989 [00:25:52]file doc_00148990 [00:25:52]remove file /storage/0368/doc_00148990 [00:25:52]file doc_00148991 [00:25:52]remove file /storage/0368/doc_00148991 [00:25:52]file doc_00148992 [00:25:52]remove file /storage/0368/doc_00148992 [00:25:52]file doc_00148993 [00:25:52]remove file /storage/0368/doc_00148993 [00:25:52]file doc_00148994 [00:25:52]remove file /storage/0368/doc_00148994 [00:25:52]file doc_00148995 [00:25:52]remove file /storage/0368/doc_00148995 [00:25:52]file doc_00148996 [00:25:52]remove file /storage/0368/doc_00148996 [00:25:52]file doc_00148997 [00:25:52]remove file /storage/0368/doc_00148997 [00:25:52]file doc_00148998 [00:25:52]remove file /storage/0368/doc_00148998 [00:25:52]file doc_00148999 [00:25:52]remove file /storage/0368/doc_00148999 [00:25:52]file doc_00149000 [00:25:52]remove file /storage/0368/doc_00149000 [00:25:52]file doc_00149001 [00:25:52]remove file /storage/0368/doc_00149001 [00:25:52]file doc_00149002 [00:25:52]remove file /storage/0368/doc_00149002 [00:25:52]file doc_00149003 [00:25:52]remove file /storage/0368/doc_00149003 [00:25:52]file doc_00149004 [00:25:52]remove file /storage/0368/doc_00149004 [00:25:52]file doc_00149005 [00:25:52]remove file /storage/0368/doc_00149005 [00:25:52]file doc_00149006 [00:25:52]remove file /storage/0368/doc_00149006 [00:25:52]file doc_00149007 [00:25:52]remove file /storage/0368/doc_00149007 [00:25:52]file doc_00149008 [00:25:52]remove file /storage/0368/doc_00149008 [00:25:52]file doc_00149009 [00:25:52]remove file /storage/0368/doc_00149009 [00:25:52]file doc_00149010 [00:25:52]remove file /storage/0368/doc_00149010 [00:25:52]file doc_00149011 [00:25:52]remove file /storage/0368/doc_00149011 [00:25:52]file doc_00149012 [00:25:52]remove file /storage/0368/doc_00149012 [00:25:52]file doc_00149013 [00:25:52]remove file /storage/0368/doc_00149013 [00:25:52]file doc_00149014 [00:25:52]remove file /storage/0368/doc_00149014 [00:25:52]file doc_00149015 [00:25:52]remove file /storage/0368/doc_00149015 [00:25:53]file doc_00149016 [00:25:53]remove file /storage/0368/doc_00149016 [00:25:53]file doc_00149017 [00:25:53]remove file /storage/0368/doc_00149017 [00:25:53]file doc_00149018 [00:25:53]remove file /storage/0368/doc_00149018 [00:25:53]file doc_00149019 [00:25:53]remove file /storage/0368/doc_00149019 [00:25:53]file doc_00149020 [00:25:53]remove file /storage/0368/doc_00149020 [00:25:53]file doc_00149021 [00:25:53]remove file /storage/0368/doc_00149021 [00:25:53]file doc_00149022 [00:25:53]remove file /storage/0368/doc_00149022 [00:25:53]file doc_00149023 [00:25:53]remove file /storage/0368/doc_00149023 [00:25:53]file doc_00149024 [00:25:53]remove file /storage/0368/doc_00149024 [00:25:53]file doc_00149025 [00:25:53]remove file /storage/0368/doc_00149025 [00:25:53]file doc_00149026 [00:25:53]remove file /storage/0368/doc_00149026 [00:25:53]file doc_00149027 [00:25:53]remove file /storage/0368/doc_00149027 [00:25:53]file doc_00149028 [00:25:53]remove file /storage/0368/doc_00149028 [00:25:53]file doc_00149029 [00:25:53]remove file /storage/0368/doc_00149029 [00:25:53]file doc_00149030 [00:25:53]remove file /storage/0368/doc_00149030 [00:25:53]file doc_00149031 [00:25:53]remove file /storage/0368/doc_00149031 [00:25:53]file doc_00149032 [00:25:53]remove file /storage/0368/doc_00149032 [00:25:53]file doc_00149033 [00:25:53]remove file /storage/0368/doc_00149033 [00:25:53]file doc_00149034 [00:25:53]remove file /storage/0368/doc_00149034 [00:25:53]file doc_00149035 [00:25:53]remove file /storage/0368/doc_00149035 [00:25:53]file doc_00149036 [00:25:53]remove file /storage/0368/doc_00149036 [00:25:53]file doc_00149037 [00:25:53]remove file /storage/0368/doc_00149037 [00:25:53]file doc_00149038 [00:25:53]remove file /storage/0368/doc_00149038 [00:25:53]file doc_00149039 [00:25:53]remove file /storage/0368/doc_00149039 [00:25:53]file doc_00149040 [00:25:53]remove file /storage/0368/doc_00149040 [00:25:53]file doc_00149041 [00:25:53]remove file /storage/0368/doc_00149041 [00:25:53]file doc_00149042 [00:25:53]remove file /storage/0368/doc_00149042 [00:25:53]file doc_00149043 [00:25:53]remove file /storage/0368/doc_00149043 [00:25:53]file doc_00149044 [00:25:53]remove file /storage/0368/doc_00149044 [00:25:53]file doc_00149045 [00:25:53]remove file /storage/0368/doc_00149045 [00:25:53]file doc_00149046 [00:25:53]remove file /storage/0368/doc_00149046 [00:25:53]file doc_00149047 [00:25:53]remove file /storage/0368/doc_00149047 [00:25:53]file doc_00149048 [00:25:53]remove file /storage/0368/doc_00149048 [00:25:53]file doc_00149049 [00:25:53]remove file /storage/0368/doc_00149049 [00:25:53]file doc_00149050 [00:25:53]remove file /storage/0368/doc_00149050 [00:25:53]file doc_00149051 [00:25:53]remove file /storage/0368/doc_00149051 [00:25:53]file doc_00149052 [00:25:53]remove file /storage/0368/doc_00149052 [00:25:53]file doc_00149053 [00:25:53]remove file /storage/0368/doc_00149053 [00:25:53]file doc_00149054 [00:25:53]remove file /storage/0368/doc_00149054 [00:25:53]file doc_00149055 [00:25:53]remove file /storage/0368/doc_00149055 [00:25:53]file doc_00149056 [00:25:53]remove file /storage/0368/doc_00149056 [00:25:53]file doc_00149057 [00:25:53]remove file /storage/0368/doc_00149057 [00:25:53]file doc_00149058 [00:25:53]remove file /storage/0368/doc_00149058 [00:25:53]file doc_00149059 [00:25:53]remove file /storage/0368/doc_00149059 [00:25:53]file doc_00149060 [00:25:53]remove file /storage/0368/doc_00149060 [00:25:53]file doc_00149061 [00:25:53]remove file /storage/0368/doc_00149061 [00:25:53]file doc_00149062 [00:25:53]remove file /storage/0368/doc_00149062 [00:25:53]file doc_00149063 [00:25:53]remove file /storage/0368/doc_00149063 [00:25:53]file doc_00149064 [00:25:53]remove file /storage/0368/doc_00149064 [00:25:53]file doc_00149065 [00:25:53]remove file /storage/0368/doc_00149065 [00:25:53]file doc_00149066 [00:25:53]remove file /storage/0368/doc_00149066 [00:25:53]file doc_00149067 [00:25:53]remove file /storage/0368/doc_00149067 [00:25:53]file doc_00149068 [00:25:53]remove file /storage/0368/doc_00149068 [00:25:53]file doc_00149069 [00:25:53]remove file /storage/0368/doc_00149069 [00:25:53]remove dir /storage/0368 [00:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=286 [00:25:53]tlvbuf is 009A2A70 [00:25:53]SAM_PROTO_ClearQueue [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 09 00 00 [00:25:53]Write to MH i2c: E2 08 00 FB 19 80 09 00 00 00 00 00 00 86 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 FB 19 00 90 00 88 [00:25:53]RAPDU: 90 00 [00:25:53]wFMCommunicate OK [00:25:53]SAM_PROTO_ClearQueue done [00:25:53]KKMCreateOFDPacket [00:25:53]OFDProtocolAddRootSTLVToBuf [00:25:53]FM_MakeSignedData [00:25:53]FM_MakeSignedData [00:25:53]SAM_PROTO_SignData [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 0D 01 02 [00:25:53]Write to MH i2c: E2 08 00 FC 19 80 0D 01 02 00 00 00 00 8E [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 FC 19 00 90 00 89 [00:25:53]RAPDU: 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=255 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 0D 02 02 FA 02 00 1E 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 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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 8F B0 5F 66 0E 04 04 00 71 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 [00:25:53]Write to MH i2c: E2 02 01 FD 19 80 0D 02 02 FA 00 02 00 1E 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 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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 8F B0 5F 66 0E 04 04 00 71 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 00 00 FC [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 FD 19 00 90 00 8A [00:25:53]RAPDU: 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=45 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 0D 02 02 28 32 30 10 04 04 00 4E 46 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 03 AB CA 54 F6 0C [00:25:53]Write to MH i2c: E2 30 00 FE 19 80 0D 02 02 28 00 32 30 10 04 04 00 4E 46 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 03 AB CA 54 F6 0C 00 00 43 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 03 00 FE 19 00 90 00 8B [00:25:53]RAPDU: 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 0D 03 02 [00:25:53]Write to MH i2c: E2 08 00 FF 19 80 0D 03 02 00 00 00 00 93 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 0B 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 0B 00 FF 19 00 E3 4B 2B A2 18 D2 70 81 90 00 6A [00:25:53]RAPDU: E3 4B 2B A2 18 D2 70 81 90 00 [00:25:53]wFMCommunicate OK [00:25:53]SAM_PROTO_SignData done [00:25:53]FM_MakeSignedData done [00:25:53]CreateOFDProtocolMessage [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 11 00 00 [00:25:53]Write to MH i2c: E2 08 00 00 1A 80 11 00 00 00 00 00 00 94 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:54]Read from MH i2c: E2 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 17 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 17 00 00 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E7 [00:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:25:54]wFMCommunicate OK [00:25:54]CreateOFDProtocolMessage done [00:25:54]OFDSenderStorePacket 149070 [00:25:54]StoreOFDPacket docnum=149070 [00:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 32 01 00 00 DA 0D 2A 01 EF 3C 5A 02 01 00 02 00 1E 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 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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 8F B0 5F 66 0E 04 04 00 71 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4E 46 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 03 AB CA 54 F6 0C E3 4B 2B A2 18 D2 70 81 [00:25:54]CheckFolder [00:25:54]dirname=/storage/ofd_packets [00:25:54]CheckFolder done [00:25:54]ProducePacketName [00:25:54]name=ofd_packets/00149070 [00:25:54]NVStorageSaveData ofd_packets/00149070 [00:25:54]File name is /storage/ofd_packets/00149070 [00:25:54]Write 336 bytes [00:25:54]NVStorageSaveData done [00:25:54]OFDSenderStorePacket done [00:25:54]KKMCreateOFDPacket done [00:25:54]NVStorageSaveData kkm_last_timestamp [00:25:54]File name is /storage/kkm_last_timestamp [00:25:54]Write 4 bytes [00:25:54]NVStorageSaveData done [00:25:54]ExternCall_PrintAddStr [00:25:54]wPrintStart [00:25:54]Write to MH i2c: 01 00 00 01 1A 1B [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: 01 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: 01 07 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: 01 07 00 01 1A 00 00 00 00 00 FF 0F 30 [00:25:54]RasterBufferAndPrint [00:25:54]line Отчет об открытии смены [00:25:54]line ФФД: 1.0 [00:25:54]line ИНН: 02508201610067 [00:25:54]line Кассир: Догтурбаев А. [00:25:54]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:25:54]line Место: АЗС № 68 "Партнер Нефть" [00:25:54]line 05.06.2024 00:25 [00:25:54]line Смена: 369 [00:25:54]line РНМ: 0000000000092720 [00:25:54]line ЗНМ: 0300000035 [00:25:54]line ФД: 149070 [00:25:54]line ФМ: 0000000000875057 [00:25:54]line ФПД: 4036368856588 [00:25:54]written 0, free lines is 4095 [00:25:54]OFD Sender: Processing packet 149070 [packets to send 100, broken 99] [00:25:54]ProducePacketName [00:25:54]name=ofd_packets/00149070 [00:25:54]OFD Sender: To server: pG, [00:25:54]CommunicateWithHost lk.salyk.kg:30040 [00:25:54]ConnectInit lk.salyk.kg [00:25:54]Connected sock=10 [00:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 32 01 00 00 DA 0D 2A 01 EF 3C 5A 02 01 00 02 00 1E 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 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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 8F B0 5F 66 0E 04 04 00 71 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4E 46 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 03 AB CA 54 F6 0C E3 4B 2B A2 18 D2 70 81 [00:25:54]Write to MH i2c: 01 00 00 13 1A 2D [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: 01 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: 01 07 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: 01 07 00 13 1A 00 00 00 00 00 6C 0E AE [00:25:54]RasterBufferAndPrint [00:25:54]line [00:25:54]line [00:25:54]line [00:25:54]line [00:25:54]line [00:25:54]written 0, free lines is 3701 [00:25:54]MH_Cut [00:25:54]Write to MH i2c: D1 01 00 1A 1A 01 06 [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: D1 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: D1 01 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: D1 01 00 1A 1A 00 05 [00:25:54]Write to MH i2c: 01 00 00 1B 1A 35 [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 2F 90 47 00 F1 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 38 37 35 30 35 37 10 04 04 00 4E 46 02 00 F4 03 04 00 B3 57 5F 66 B6 04 01 00 00 1A A8 6A D4 06 7A 43 38 [00:25:54]CommunicateWithHost err = 0 [00:25:54]CheckOFDResponse [00:25:54]1017 (14) - 77093643461234 [00:25:54]1041 (16) - 0000000000875057 [00:25:54]1040 (4) - 149070 [00:25:54]1012 (4) - 04.06.2024 18:06 [00:25:54]1206 (1) - 0 [00:25:54]OFD Sender: Remove packet 149070 [00:25:54]ProducePacketName [00:25:54]name=ofd_packets/00149070 [00:25:54]NVStorageDeleteData [00:25:55]*** Cut start [00:25:55]*** Partial cut [00:25:55]*** CUTSNS_PIN = 1 [00:25:55]OFD Sender: No OFD packet to send [00:25:55]*** CUTSNS_PIN = 0 [00:25:55]*** Brake cut motor [00:25:55]Read from MH i2c: 01 [00:25:55]MH_I2C_Read... [00:25:55]*** Stop cut motor [00:25:55]*** Cut end [00:25:55]Read from MH i2c: 01 07 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: 01 07 00 1B 1A 00 00 00 00 00 FF 0F 4A [00:25:55]process_action open_shift done [00:25:55]requested_data is exist [00:25:55]produce_requested_data [00:25:55]requested_item fd.num is exist - process it [00:25:55]SAM_PROTO_GetFieldsCounters [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 13 00 00 [00:25:55]Write to MH i2c: E2 08 00 1C 1A 80 13 00 00 00 00 00 00 B2 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 62 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 62 00 1C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4E 46 02 00 0E 04 04 00 71 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 D6 [00:25:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4E 46 02 00 0E 04 04 00 71 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:25:55]wFMCommunicate OK [00:25:55]SAM_PROTO_GetFieldsCounters done [00:25:55]requested_item shift.num is exist - process it [00:25:55]requested_item shift.opened is exist - process it [00:25:55]req_shift_opened [00:25:55]FM_GetShiftState [00:25:55]SAM_PROTO_GetShiftState [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 13 01 00 [00:25:55]Write to MH i2c: E2 08 00 1D 1A 80 13 01 00 00 00 00 00 B4 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 0E 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 0E 00 1D 1A 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 C4 [00:25:55]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [00:25:55]wFMCommunicate OK [00:25:55]SAM_PROTO_GetShiftState done [00:25:55]FM_GetShiftState done [00:25:55]req_shift_opened done [00:25:55]requested_item shift.open_date is exist - process it [00:25:55]req_shift_open_date [00:25:55]req_shift_open_date done [00:25:55]produce_requested_data done [00:25:55]produce_requested_data return {"fd.num":149070,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151} [00:25:55]process_action_free open_shift [00:25:55]json_value_free [00:25:55]json_value_free done [00:25:55]process_json_proto returns [00:25:55]Send response to host [00:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":149070,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151}}} [00:25:55]free response buf [00:25:55]execute_script done [00:25:55]execute_script returns [00:25:55]free content buf [00:25:55]Sock 7.Close socket [00:25:55]Sock 7.Thread stoped [00:25:55]accept exits with 9 [00:25:55]New connection [00:25:55]New thread 3067219300 created [00:25:55]Thread 3067075940 joined [00:25:55]Waiting for new connection... [00:25:55] Sock 9.Parse request [00:25:55]Sock 9.Check first char [00:25:55]Sock 9.First char is OK [00:25:55]request: POST /json_proto HTTP/1.0 [00:25:55]Method: POST [00:25:55]URL: /json_proto [00:25:55]Method is POST - this is cgi request [00:25:55]url: /json_proto [00:25:55]query_string will be loaded in cgi processing [00:25:55]execute_cgi json_proto POST (null) [00:25:55]execute_cgi path=json_proto method=POST [00:25:55]POST find Content-Length [00:25:55]Host: 172.17.38.4:8080 [00:25:55]Content-Length: 331 [00:25:55]Content-Type: application/json [00:25:55] [00:25:55]POST finish read [00:25:55]Found Content-Length = 331 [00:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:55]execute_script... [00:25:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:55]POST & json_proto [00:25:55]process_json_proto [00:25:55]json parsed OK: [00:25:55]protocol is kg_v1.0 [00:25:55]action value=get_value [00:25:55]process_action get_value [00:25:55]cmd_get_value [00:25:55]process_action get_value done [00:25:55]requested_data is exist [00:25:55]produce_requested_data [00:25:55]requested_item fm.sale.total is exist - process it [00:25:55]SAM_PROTO_GetFMData [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 13 03 00 [00:25:55]Write to MH i2c: E2 08 00 1E 1A 80 13 03 00 00 00 00 00 B7 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:56]Read from MH i2c: E2 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 1E 1A 00 C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 1A [00:25:56]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6C 43 02 00 69 04 A3 00 6F 04 04 00 C4 40 02 00 B1 04 05 00 92 E5 37 D5 01 70 04 05 00 64 E2 78 B7 01 72 04 04 00 2E 03 BF 1D 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 20 FD D9 31 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 28 4C 27 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 A8 02 00 00 B1 04 04 00 98 42 08 04 70 04 04 00 60 9A 06 04 72 04 03 00 38 A8 01 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 37 A8 6D EF 90 00 [00:25:56]wFMCommunicate OK [00:25:56]wFMCommunicate request_size=4 [00:25:56]MH_SAM_APDU [00:25:56]CAPDU: 80 17 00 00 [00:25:56]Write to MH i2c: E2 08 00 1F 1A 80 17 00 00 00 00 00 00 B9 [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:56]Read from MH i2c: E2 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 1F 1A 00 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 16 [00:25:56]RAPDU: 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 24 23 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:57]wFMCommunicate OK [00:25:57]wFMCommunicate request_size=4 [00:25:57]MH_SAM_APDU [00:25:57]CAPDU: 80 17 00 00 [00:25:57]Write to MH i2c: E2 08 00 20 1A 80 17 00 00 00 00 00 00 BA [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:57]Read from MH i2c: E2 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 FD 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 FD 00 20 1A 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 92 [00:25:57]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:57]wFMCommunicate OK [00:25:57]wFMCommunicate request_size=4 [00:25:57]MH_SAM_APDU [00:25:57]CAPDU: 80 17 00 00 [00:25:57]Write to MH i2c: E2 08 00 21 1A 80 17 00 00 00 00 00 00 BB [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:57]Read from MH i2c: E2 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 FD 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 FD 00 21 1A 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 36 [00:25:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:57]wFMCommunicate OK [00:25:57]wFMCommunicate request_size=4 [00:25:57]MH_SAM_APDU [00:25:57]CAPDU: 80 17 00 00 [00:25:57]Write to MH i2c: E2 08 00 22 1A 80 17 00 00 00 00 00 00 BC [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:25:58]Read from MH i2c: E2 [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: E2 E4 00 [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: E2 E4 00 22 1A 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C [00:25:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25:58]wFMCommunicate OK [00:25:58]SAM_PROTO_GetFMData done [00:25:58]requested_item fm.sale_refund.total is exist - process it [00:25:58]requested_item fm.buy.total is exist - process it [00:25:58]requested_item shift.sale.total is exist - process it [00:25:58]SAM_PROTO_GetShiftData [00:25:58]wFMCommunicate request_size=4 [00:25:58]MH_SAM_APDU [00:25:58]CAPDU: 80 13 02 00 [00:25:58]Write to MH i2c: E2 08 00 23 1A 80 13 02 00 00 00 00 00 BB [00:25:58]Write i2c OK [00:25:58]MH_I2C_Read... [00:25:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:58]Read from MH i2c: E2 [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: E2 FD 00 [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: E2 FD 00 23 1A 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 2E [00:25:58]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:25:58]wFMCommunicate OK [00:25:58]wFMCommunicate request_size=4 [00:25:58]MH_SAM_APDU [00:25:58]CAPDU: 80 17 00 00 [00:25:58]Write to MH i2c: E2 08 00 24 1A 80 17 00 00 00 00 00 00 BE [00:25:58]Write i2c OK [00:25:58]MH_I2C_Read... [00:25:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:59]Read from MH i2c: E2 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 24 1A 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 C6 [00:25:59]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:25:59]wFMCommunicate OK [00:25:59]wFMCommunicate request_size=4 [00:25:59]MH_SAM_APDU [00:25:59]CAPDU: 80 17 00 00 [00:25:59]Write to MH i2c: E2 08 00 25 1A 80 17 00 00 00 00 00 00 BF [00:25:59]Write i2c OK [00:25:59]MH_I2C_Read... [00:25:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:59]Read from MH i2c: E2 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 25 1A 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 91 [00:25:59]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:25:59]wFMCommunicate OK [00:25:59]wFMCommunicate request_size=4 [00:25:59]MH_SAM_APDU [00:25:59]CAPDU: 80 17 00 00 [00:25:59]Write to MH i2c: E2 08 00 26 1A 80 17 00 00 00 00 00 00 C0 [00:25:59]Write i2c OK [00:25:59]MH_I2C_Read... [00:26:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:00]Read from MH i2c: E2 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 FD 00 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 FD 00 26 1A 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 32 [00:26:00]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 OFD Sender: No OFD packet to send [00:26:00]09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:00]wFMCommunicate OK [00:26:00]wFMCommunicate request_size=4 [00:26:00]MH_SAM_APDU [00:26:00]CAPDU: 80 17 00 00 [00:26:00]Write to MH i2c: E2 08 00 27 1A 80 17 00 00 00 00 00 00 C1 [00:26:00]Write i2c OK [00:26:00]MH_I2C_Read... [00:26:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:26:00]Read from MH i2c: E2 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 BD 00 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 BD 00 27 1A 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 A7 [00:26:00]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:26:00]wFMCommunicate OK [00:26:00]SAM_PROTO_GetShiftData done [00:26:00]requested_item shift.sale.total_cash is exist - process it [00:26:00]requested_item shift.sale_refund.total is exist - process it [00:26:00]requested_item shift.sale_refund.total_cash is exist - process it [00:26:00]requested_item shift.buy.total is exist - process it [00:26:00]requested_item shift.buy.total_cash is exist - process it [00:26:00]produce_requested_data done [00:26:00]produce_requested_data return {"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.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:26:00]process_action_free get_value [00:26:00]json_value_free [00:26:00]json_value_free done [00:26:00]process_json_proto returns [00:26:00]Send response to host [00:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78721775.54,"fm.sale_refund.total":676502.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:26:00]free response buf [00:26:00]execute_script done [00:26:00]execute_script returns [00:26:00]free content buf [00:26:00]Sock 9.Close socket [00:26:00]Sock 9.Thread stoped [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]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:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:09]accept exits with 7 [00:42:09]New connection [00:42:09]New thread 3067075940 created [00:42:09]Thread 3067219300 joined [00:42:09]Waiting for new connection... [00:42:09] Sock 7.Parse request [00:42:09]Sock 7.Check first char [00:42:09]Sock 7.First char is OK [00:42:09]request: POST /json_proto HTTP/1.0 [00:42:09]Method: POST [00:42:09]URL: /json_proto [00:42:09]Method is POST - this is cgi request [00:42:09]url: /json_proto [00:42:09]query_string will be loaded in cgi processing [00:42:09]execute_cgi json_proto POST (null) [00:42:09]execute_cgi path=json_proto method=POST [00:42:09]POST find Content-Length [00:42:09]Host: 172.17.38.4:8080 [00:42:09]Content-Length: 674 [00:42:09]Content-Type: application/json [00:42:09] [00:42:09]POST finish read [00:42:09]Found Content-Length = 674 [00:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [00:42:09]execute_script... [00:42:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [00:42:09]POST & json_proto [00:42:09]process_json_proto [00:42:09]json parsed OK: [00:42:09]protocol is kg_v1.0 [00:42:09]action value=close_receipt [00:42:09]process_action close_receipt [00:42:09]cmd_close_receipt [00:42:09]MH_GetDate [00:42:09]Write to MH i2c: F0 00 00 28 1A 31 [00:42:09]Write i2c OK [00:42:09]MH_I2C_Read... [00:42:09]Read from MH i2c: F0 [00:42:09]MH_I2C_Read... [00:42:09]Read from MH i2c: F0 09 00 [00:42:09]MH_I2C_Read... [00:42:09]Read from MH i2c: F0 09 00 28 1A 00 62 B4 5F 66 CC 51 87 64 1D [00:42:09]GetLastDocTimeStamp 1717547151 [00:42:09]current date 1717548130 [00:42:09]FM_GetShiftState [00:42:09]SAM_PROTO_GetShiftState [00:42:09]wFMCommunicate request_size=4 [00:42:09]MH_SAM_APDU [00:42:09]CAPDU: 80 13 01 00 [00:42:09]Write to MH i2c: E2 08 00 29 1A 80 13 01 00 00 00 00 00 C0 [00:42:09]Write i2c OK [00:42:09]MH_I2C_Read... [00:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:09]Read from MH i2c: E2 [00:42:09]MH_I2C_Read... [00:42:09]Read from MH i2c: E2 0E 00 [00:42:09]MH_I2C_Read... [00:42:09]Read from MH i2c: E2 0E 00 29 1A 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 D0 [00:42:09]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [00:42:09]wFMCommunicate OK [00:42:09]SAM_PROTO_GetShiftState done [00:42:09]FM_GetShiftState done [00:42:09]opened in 1717547151 [00:42:09]opened+sec_in_day 1717633551 [00:42:09]quantity*price = 30034 [00:42:09]sum+1 = 30036 [00:42:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 1 05.06.2024 00:42 Смена: 369 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149071 ФПД: 181681637084924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T004210&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149071&fm=181681637084924&tin=02508201610067®Number=0000000000092720&sum=30000 [00:42:10]StoreToDocumentArchive [00:42:10]shift 369 fd 149071 [00:42:10]save to /storage/0369/doc_00149071 [00:42:10]save last doc name /storage/0369/doc_00149071 to /storage/kkm_last_doc_name [00:42:10]save OK [00:42:10]Clear old archive folders... [00:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:42:10]tlvbuf is 009AE150 [00:42:10]SAM_PROTO_ClearQueue [00:42:10]wFMCommunicate request_size=4 [00:42:10]MH_SAM_APDU [00:42:10]CAPDU: 80 09 00 00 [00:42:10]Write to MH i2c: E2 08 00 36 1A 80 09 00 00 00 00 00 00 C2 [00:42:10]Write i2c OK [00:42:10]MH_I2C_Read... [00:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:42:10]Read from MH i2c: E2 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 03 00 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 03 00 36 1A 00 90 00 C4 [00:42:10]RAPDU: 90 00 [00:42:10]wFMCommunicate OK [00:42:10]SAM_PROTO_ClearQueue done [00:42:10]KKMCreateOFDPacket [00:42:10]OFDProtocolAddRootSTLVToBuf [00:42:10]FM_MakeSignedData [00:42:10]FM_MakeSignedData [00:42:10]SAM_PROTO_SignData [00:42:10]wFMCommunicate request_size=4 [00:42:10]MH_SAM_APDU [00:42:10]CAPDU: 80 0D 01 02 [00:42:10]Write to MH i2c: E2 08 00 37 1A 80 0D 01 02 00 00 00 00 CA [00:42:10]Write i2c OK [00:42:10]MH_I2C_Read... [00:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:42:10]Read from MH i2c: E2 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 03 00 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 03 00 37 1A 00 90 00 C5 [00:42:10]RAPDU: 90 00 [00:42:10]wFMCommunicate OK [00:42:10]wFMCommunicate request_size=255 [00:42:10]MH_SAM_APDU [00:42:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 00 00 00 F4 03 04 00 62 B4 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4F 46 02 00 35 04 06 00 A5 3D 0D 70 [00:42:10]Write to MH i2c: E2 02 01 38 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 00 00 00 F4 03 04 00 62 B4 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4F 46 02 00 35 04 06 00 A5 3D 0D 70 00 00 C3 [00:42:10]Write i2c OK [00:42:10]MH_I2C_Read... [00:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:10]Read from MH i2c: E2 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 03 00 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 03 00 38 1A 00 90 00 C6 [00:42:10]RAPDU: 90 00 [00:42:10]wFMCommunicate OK [00:42:10]wFMCommunicate request_size=7 [00:42:10]MH_SAM_APDU [00:42:10]CAPDU: 80 0D 02 02 02 CE FC [00:42:10]Write to MH i2c: E2 0A 00 39 1A 80 0D 02 02 02 00 CE FC 00 00 9B [00:42:10]Write i2c OK [00:42:10]MH_I2C_Read... [00:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:10]Read from MH i2c: E2 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 03 00 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 03 00 39 1A 00 90 00 C7 [00:42:10]RAPDU: 90 00 [00:42:10]wFMCommunicate OK [00:42:10]wFMCommunicate request_size=4 [00:42:10]MH_SAM_APDU [00:42:10]CAPDU: 80 0D 03 02 [00:42:10]Write to MH i2c: E2 08 00 3A 1A 80 0D 03 02 00 00 00 00 CF [00:42:10]Write i2c OK [00:42:10]MH_I2C_Read... [00:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:10]Read from MH i2c: E2 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 0B 00 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 0B 00 3A 1A 00 55 5B 4F B4 43 C4 6D D3 90 00 CA [00:42:10]RAPDU: 55 5B 4F B4 43 C4 6D D3 90 00 [00:42:10]wFMCommunicate OK [00:42:10]SAM_PROTO_SignData done [00:42:10]FM_MakeSignedData done [00:42:10]CreateOFDProtocolMessage [00:42:10]wFMCommunicate request_size=4 [00:42:10]MH_SAM_APDU [00:42:10]CAPDU: 80 11 00 00 [00:42:10]Write to MH i2c: E2 08 00 3B 1A 80 11 00 00 00 00 00 00 CF [00:42:10]Write i2c OK [00:42:10]MH_I2C_Read... [00:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:10]Read from MH i2c: E2 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 17 00 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 17 00 3B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 22 [00:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:42:10]wFMCommunicate OK [00:42:10]CreateOFDProtocolMessage done [00:42:10]OFDSenderStorePacket 149071 [00:42:10]StoreOFDPacket docnum=149071 [00:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 96 E6 04 01 23 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 00 00 00 F4 03 04 00 62 B4 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4F 46 02 00 35 04 06 00 A5 3D 0D 70 CE FC 55 5B 4F B4 43 C4 6D D3 [00:42:10]CheckFolder [00:42:10]dirname=/storage/ofd_packets [00:42:10]CheckFolder done [00:42:10]ProducePacketName [00:42:10]name=ofd_packets/00149071 [00:42:10]NVStorageSaveData ofd_packets/00149071 [00:42:10]File name is /storage/ofd_packets/00149071 [00:42:10]Write 298 bytes [00:42:10]NVStorageSaveData done [00:42:10]OFDSenderStorePacket done [00:42:10]KKMCreateOFDPacket done [00:42:10]NVStorageSaveData kkm_last_timestamp [00:42:10]File name is /storage/kkm_last_timestamp [00:42:10]Write 4 bytes [00:42:10]NVStorageSaveData done [00:42:10]ExternCall_PrintAddStr [00:42:10]wPrintStart [00:42:10]Write to MH i2c: 01 00 00 3C 1A 56 [00:42:10]Write i2c OK [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: 01 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: 01 07 00 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: 01 07 00 3C 1A 00 00 00 00 00 FF 0F 6B [00:42:10]RasterBufferAndPrint [00:42:10]line Счет N : (1)979995 [00:42:10]line ИНН: 02508201610067 [00:42:10]line Контрольно-Кассовый Чек [00:42:10]line ПРОДАЖА [00:42:10]line ТРК (МРК, ГНК) : 11 [00:42:10]line Товар: 2710194210 [00:42:10]line ДТ-К-5 [00:42:10]line 4.120 * 72.90 [00:42:10]line = 300.35 [00:42:10]line НДС 12% НСП 1% [00:42:10]line > о реализуемом товаре [00:42:10]line ОКРУГЛЕНИЕ: -0.35 [00:42:10]line ИТОГО: 300.00 [00:42:10]line Внесено: 300.00 [00:42:10]line СДАЧА: 0.00 [00:42:10]line НСП 1% : 2.66 [00:42:10]line НДС 12% : 31.90 [00:42:10]line Наличными: 300.00 [00:42:10]line Безнал.: 0.00 [00:42:10]line Место: АЗС № 68 "Партнер Нефть" [00:42:10]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:42:10]line СНО: Общий режим [00:42:10]line Чек 1 05.06.2024 00:42 [00:42:10]line Смена: 369 ФФД: 1.0 [00:42:10]line ЗНМ: 0300000035 [00:42:10]line РНМ: 0000000000092720 [00:42:10]line Версия ККМ: 001 [00:42:10]line ФМ: 0000000000875057 [00:42:10]line ФД: 149071 [00:42:10]line ФПД: 181681637084924 [00:42:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T004210&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149071&fm=181681637084924&tin=02508201610067®Number=0000000000092720&sum=30000 [00:42:11]OFD Sender: Processing packet 149071 [packets to send 100, broken 99] [00:42:11]ProducePacketName [00:42:11]name=ofd_packets/00149071 [00:42:11]OFD Sender: To server: pG, [00:42:11]CommunicateWithHost lk.salyk.kg:30040 [00:42:11]ConnectInit lk.salyk.kg [00:42:11]written 0, free lines is 4095 [00:42:11]Connected sock=11 [00:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 96 E6 04 01 23 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 00 00 00 F4 03 04 00 62 B4 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 4F 46 02 00 35 04 06 00 A5 3D 0D 70 CE FC 55 5B 4F B4 43 C4 6D D3 [00:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 EF 39 47 00 C6 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 38 37 35 30 35 37 10 04 04 00 4F 46 02 00 F4 03 04 00 84 5B 5F 66 B6 04 01 00 00 49 E8 BF CD BC 7A 18 12 [00:42:11]CommunicateWithHost err = 0 [00:42:11]CheckOFDResponse [00:42:11]1017 (14) - 77093643461234 [00:42:11]1041 (16) - 0000000000875057 [00:42:11]1040 (4) - 149071 [00:42:11]1012 (4) - 04.06.2024 18:23 [00:42:11]1206 (1) - 0 [00:42:11]OFD Sender: Remove packet 149071 [00:42:11]ProducePacketName [00:42:11]name=ofd_packets/00149071 [00:42:11]NVStorageDeleteData [00:42:11]Write to MH i2c: 01 00 00 67 1A 81 [00:42:11]Write i2c OK [00:42:11]MH_I2C_Read... [00:42:11]Read from MH i2c: 01 [00:42:11]MH_I2C_Read... [00:42:11]Read from MH i2c: 01 07 00 [00:42:11]MH_I2C_Read... [00:42:11]Read from MH i2c: 01 07 00 67 1A 00 00 00 00 00 5B 0C EF [00:42:11]RasterBufferAndPrint [00:42:11]line [00:42:11]line [00:42:11]line [00:42:11]line [00:42:11]line [00:42:11]written 0, free lines is 3167 [00:42:11]MH_Cut [00:42:11]Write to MH i2c: D1 01 00 6E 1A 01 5A [00:42:11]Write i2c OK [00:42:11]MH_I2C_Read... [00:42:11]Read from MH i2c: D1 [00:42:11]MH_I2C_Read... [00:42:11]Read from MH i2c: D1 01 00 [00:42:11]MH_I2C_Read... [00:42:11]Read from MH i2c: D1 01 00 6E 1A 00 59 [00:42:11]Write to MH i2c: 01 00 00 6F 1A 89 [00:42:11]Write i2c OK [00:42:11]MH_I2C_Read... [00:42:11]OFD Sender: No OFD packet to send [00:42:12]*** Cut start [00:42:12]*** Partial cut [00:42:12]*** CUTSNS_PIN = 1 [00:42:12]*** CUTSNS_PIN = 0 [00:42:13]*** Brake cut motor [00:42:13]Read from MH i2c: 01 [00:42:13]MH_I2C_Read... [00:42:13]*** Stop cut motor [00:42:13]*** Cut end [00:42:13]Read from MH i2c: 01 07 00 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: 01 07 00 6F 1A 00 00 00 00 00 FF 0F 9E [00:42:13]process_action close_receipt done [00:42:13]requested_data is exist [00:42:13]produce_requested_data [00:42:13]requested_item fm.sn is exist - process it [00:42:13]wFMCommunicate request_size=4 [00:42:13]MH_SAM_APDU [00:42:13]CAPDU: 80 11 00 00 [00:42:13]Write to MH i2c: E2 08 00 70 1A 80 11 00 00 00 00 00 00 04 [00:42:13]Write i2c OK [00:42:13]MH_I2C_Read... [00:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:13]Read from MH i2c: E2 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: E2 17 00 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: E2 17 00 70 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 57 [00:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:42:13]wFMCommunicate OK [00:42:13]requested_item fd.num is exist - process it [00:42:13]SAM_PROTO_GetFieldsCounters [00:42:13]wFMCommunicate request_size=4 [00:42:13]MH_SAM_APDU [00:42:13]CAPDU: 80 13 00 00 [00:42:13]Write to MH i2c: E2 08 00 71 1A 80 13 00 00 00 00 00 00 07 [00:42:13]Write i2c OK [00:42:13]MH_I2C_Read... [00:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:13]Read from MH i2c: E2 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: E2 62 00 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: E2 62 00 71 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4F 46 02 00 0E 04 04 00 71 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 2F [00:42:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 4F 46 02 00 0E 04 04 00 71 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:42:13]wFMCommunicate OK [00:42:13]SAM_PROTO_GetFieldsCounters done [00:42:13]requested_item shift.num is exist - process it [00:42:13]requested_item shift.opened is exist - process it [00:42:13]req_shift_opened [00:42:13]FM_GetShiftState [00:42:13]SAM_PROTO_GetShiftState [00:42:13]wFMCommunicate request_size=4 [00:42:13]MH_SAM_APDU [00:42:13]CAPDU: 80 13 01 00 [00:42:13]Write to MH i2c: E2 08 00 72 1A 80 13 01 00 00 00 00 00 09 [00:42:13]Write i2c OK [00:42:13]MH_I2C_Read... [00:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:13]Read from MH i2c: E2 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: E2 0E 00 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: E2 0E 00 72 1A 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 19 [00:42:13]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [00:42:13]wFMCommunicate OK [00:42:13]SAM_PROTO_GetShiftState done [00:42:13]FM_GetShiftState done [00:42:13]req_shift_opened done [00:42:13]requested_item shift.open_date is exist - process it [00:42:13]req_shift_open_date [00:42:13]req_shift_open_date done [00:42:13]produce_requested_data done [00:42:13]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149071,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151} [00:42:13]process_action_free close_receipt [00:42:13]json_value_free [00:42:13]json_value_free done [00:42:13]process_json_proto returns [00:42:13]Send response to host [00:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149071,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151}}} [00:42:13]free response buf [00:42:13]execute_script done [00:42:13]execute_script returns [00:42:13]free content buf [00:42:13]Sock 7.Close socket [00:42:13]Sock 7.Thread stoped [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]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:54]accept exits with 9 [00:44:54]New connection [00:44:54]New thread 3067219300 created [00:44:54]Thread 3067075940 joined [00:44:54]Waiting for new connection... [00:44:54] Sock 9.Parse request [00:44:54]Sock 9.Check first char [00:44:54]Sock 9.First char is OK [00:44:54]request: POST /json_proto HTTP/1.0 [00:44:54]Method: POST [00:44:54]URL: /json_proto [00:44:54]Method is POST - this is cgi request [00:44:54]url: /json_proto [00:44:54]query_string will be loaded in cgi processing [00:44:54]execute_cgi json_proto POST (null) [00:44:54]execute_cgi path=json_proto method=POST [00:44:54]POST find Content-Length [00:44:54]Host: 172.17.38.4:8080 [00:44:54]Content-Length: 677 [00:44:54]Content-Type: application/json [00:44:54] [00:44:54]POST finish read [00:44:54]Found Content-Length = 677 [00:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [00:44:54]execute_script... [00:44: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)979996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [00:44:54]POST & json_proto [00:44:54]process_json_proto [00:44:54]json parsed OK: [00:44:54]protocol is kg_v1.0 [00:44:54]action value=close_receipt [00:44:54]process_action close_receipt [00:44:54]cmd_close_receipt [00:44:54]MH_GetDate [00:44:54]Write to MH i2c: F0 00 00 73 1A 7C [00:44:54]Write i2c OK [00:44:54]MH_I2C_Read... [00:44:54]Read from MH i2c: F0 [00:44:54]MH_I2C_Read... [00:44:54]Read from MH i2c: F0 09 00 [00:44:54]MH_I2C_Read... [00:44:54]Read from MH i2c: F0 09 00 73 1A 00 07 B5 5F 66 CC 51 87 64 0E [00:44:54]GetLastDocTimeStamp 1717548130 [00:44:54]current date 1717548295 [00:44:54]FM_GetShiftState [00:44:54]SAM_PROTO_GetShiftState [00:44:54]wFMCommunicate request_size=4 [00:44:54]MH_SAM_APDU [00:44:54]CAPDU: 80 13 01 00 [00:44:54]Write to MH i2c: E2 08 00 74 1A 80 13 01 00 00 00 00 00 0B [00:44:54]Write i2c OK [00:44:54]MH_I2C_Read... [00:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:54]Read from MH i2c: E2 [00:44:54]MH_I2C_Read... [00:44:54]Read from MH i2c: E2 0E 00 [00:44:54]MH_I2C_Read... [00:44:54]Read from MH i2c: E2 0E 00 74 1A 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 1B [00:44:54]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [00:44:54]wFMCommunicate OK [00:44:54]SAM_PROTO_GetShiftState done [00:44:54]FM_GetShiftState done [00:44:54]opened in 1717547151 [00:44:54]opened+sec_in_day 1717633551 [00:44:54]quantity*price = 15052 [00:44:54]sum+1 = 15054 [00:44:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 2 05.06.2024 00:44 Смена: 369 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149072 ФПД: 158944698341983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T004455&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149072&fm=158944698341983&tin=02508201610067®Number=0000000000092720&sum=15000 [00:44:55]StoreToDocumentArchive [00:44:55]shift 369 fd 149072 [00:44:55]save to /storage/0369/doc_00149072 [00:44:55]save last doc name /storage/0369/doc_00149072 to /storage/kkm_last_doc_name [00:44:55]save OK [00:44:55]Clear old archive folders... [00:44:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:44:55]tlvbuf is 009DB670 [00:44:55]SAM_PROTO_ClearQueue [00:44:55]wFMCommunicate request_size=4 [00:44:55]MH_SAM_APDU [00:44:55]CAPDU: 80 09 00 00 [00:44:55]Write to MH i2c: E2 08 00 81 1A 80 09 00 00 00 00 00 00 0D [00:44:55]Write i2c OK [00:44:55]MH_I2C_Read... [00:44:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:44:55]Read from MH i2c: E2 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 03 00 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 03 00 81 1A 00 90 00 0F [00:44:55]RAPDU: 90 00 [00:44:55]wFMCommunicate OK [00:44:55]SAM_PROTO_ClearQueue done [00:44:55]KKMCreateOFDPacket [00:44:55]OFDProtocolAddRootSTLVToBuf [00:44:55]FM_MakeSignedData [00:44:55]FM_MakeSignedData [00:44:55]SAM_PROTO_SignData [00:44:55]wFMCommunicate request_size=4 [00:44:55]MH_SAM_APDU [00:44:55]CAPDU: 80 0D 01 02 [00:44:55]Write to MH i2c: E2 08 00 82 1A 80 0D 01 02 00 00 00 00 15 [00:44:55]Write i2c OK [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 [00:44:55]MH_I2C_Read... [00:44:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:44:55]Read from MH i2c: E2 03 00 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 03 00 82 1A 00 90 00 10 [00:44:55]RAPDU: 90 00 [00:44:55]wFMCommunicate OK [00:44:55]wFMCommunicate request_size=255 [00:44:55]MH_SAM_APDU [00:44:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 07 B5 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 50 46 02 00 35 04 06 00 90 [00:44:55]Write to MH i2c: E2 02 01 83 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 07 B5 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 50 46 02 00 35 04 06 00 90 00 00 B9 [00:44:55]Write i2c OK [00:44:55]MH_I2C_Read... [00:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:55]Read from MH i2c: E2 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 03 00 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 03 00 83 1A 00 90 00 11 [00:44:55]RAPDU: 90 00 [00:44:55]wFMCommunicate OK [00:44:55]wFMCommunicate request_size=10 [00:44:55]MH_SAM_APDU [00:44:55]CAPDU: 80 0D 02 02 05 8F 32 48 9A 5F [00:44:55]Write to MH i2c: E2 0D 00 84 1A 80 0D 02 02 05 00 8F 32 48 9A 5F 00 00 24 [00:44:55]Write i2c OK [00:44:55]MH_I2C_Read... [00:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:55]Read from MH i2c: E2 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 03 00 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 03 00 84 1A 00 90 00 12 [00:44:55]RAPDU: 90 00 [00:44:55]wFMCommunicate OK [00:44:55]wFMCommunicate request_size=4 [00:44:55]MH_SAM_APDU [00:44:55]CAPDU: 80 0D 03 02 [00:44:55]Write to MH i2c: E2 08 00 85 1A 80 0D 03 02 00 00 00 00 1A [00:44:55]Write i2c OK [00:44:55]MH_I2C_Read... [00:44:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:44:55]Read from MH i2c: E2 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 0B 00 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 0B 00 85 1A 00 59 F1 C2 36 3E 7E A4 23 90 00 E0 [00:44:55]RAPDU: 59 F1 C2 36 3E 7E A4 23 90 00 [00:44:55]wFMCommunicate OK [00:44:55]SAM_PROTO_SignData done [00:44:55]FM_MakeSignedData done [00:44:55]CreateOFDProtocolMessage [00:44:55]wFMCommunicate request_size=4 [00:44:55]MH_SAM_APDU [00:44:55]CAPDU: 80 11 00 00 [00:44:55]Write to MH i2c: E2 08 00 86 1A 80 11 00 00 00 00 00 00 1A [00:44:55]Write i2c OK [00:44:55]MH_I2C_Read... [00:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:55]Read from MH i2c: E2 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 17 00 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: E2 17 00 86 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6D [00:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:44:55]wFMCommunicate OK [00:44:55]CreateOFDProtocolMessage done [00:44:55]OFDSenderStorePacket 149072 [00:44:55]StoreOFDPacket docnum=149072 [00:44:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 10 07 01 9F AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 07 B5 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 50 46 02 00 35 04 06 00 90 8F 32 48 9A 5F 59 F1 C2 36 3E 7E A4 23 [00:44:55]CheckFolder [00:44:55]dirname=/storage/ofd_packets [00:44:55]CheckFolder done [00:44:55]ProducePacketName [00:44:55]name=ofd_packets/00149072 [00:44:55]NVStorageSaveData ofd_packets/00149072 [00:44:55]File name is /storage/ofd_packets/00149072 [00:44:55]Write 301 bytes [00:44:55]NVStorageSaveData done [00:44:55]OFDSenderStorePacket done [00:44:55]KKMCreateOFDPacket done [00:44:55]NVStorageSaveData kkm_last_timestamp [00:44:55]File name is /storage/kkm_last_timestamp [00:44:55]Write 4 bytes [00:44:55]NVStorageSaveData done [00:44:55]ExternCall_PrintAddStr [00:44:55]wPrintStart [00:44:55]Write to MH i2c: 01 00 00 87 1A A1 [00:44:55]Write i2c OK [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: 01 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: 01 07 00 [00:44:55]MH_I2C_Read... [00:44:55]Read from MH i2c: 01 07 00 87 1A 00 00 00 00 00 FF 0F B6 [00:44:55]RasterBufferAndPrint [00:44:55]line Счет N : (1)979996 [00:44:55]line ИНН: 02508201610067 [00:44:55]line Контрольно-Кассовый Чек [00:44:55]line ПРОДАЖА [00:44:55]line ТРК (МРК, ГНК) : 41 [00:44:55]line Товар: 2710124130 [00:44:55]line Аи-92-К-5 [00:44:55]line 2.250 * 66.90 [00:44:55]line = 150.53 [00:44:55]line НДС 12% НСП 1% [00:44:55]line > о реализуемом товаре [00:44:55]line ОКРУГЛЕНИЕ: -0.53 [00:44:55]line ИТОГО: 150.00 [00:44:55]line Внесено: 150.00 [00:44:55]line СДАЧА: 0.00 [00:44:55]line НСП 1% : 1.33 [00:44:55]line НДС 12% : 15.98 [00:44:55]line Наличными: 150.00 [00:44:55]line Безнал.: 0.00 [00:44:55]line Место: АЗС № 68 "Партнер Нефть" [00:44:55]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:44:55]line СНО: Общий режим [00:44:55]line Чек 2 05.06.2024 00:44 [00:44:55]line Смена: 369 ФФД: 1.0 [00:44:55]line ЗНМ: 0300000035 [00:44:55]line РНМ: 0000000000092720 [00:44:55]line Версия ККМ: 001 [00:44:55]line ФМ: 0000000000875057 [00:44:55]line ФД: 149072 [00:44:55]line ФПД: 158944698341983 [00:44:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T004455&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149072&fm=158944698341983&tin=02508201610067®Number=0000000000092720&sum=15000 [00:44:56]OFD Sender: Processing packet 149072 [packets to send 100, broken 99] [00:44:56]ProducePacketName [00:44:56]name=ofd_packets/00149072 [00:44:56]OFD Sender: To server: pG, [00:44:56]CommunicateWithHost lk.salyk.kg:30040 [00:44:56]ConnectInit lk.salyk.kg [00:44:56]written 0, free lines is 4095 [00:44:56]Connected sock=10 [00:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 10 07 01 9F AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 07 B5 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 50 46 02 00 35 04 06 00 90 8F 32 48 9A 5F 59 F1 C2 36 3E 7E A4 23 [00:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B6 42 47 00 42 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 38 37 35 30 35 37 10 04 04 00 50 46 02 00 F4 03 04 00 29 5C 5F 66 B6 04 01 00 00 F7 C4 5C 49 95 59 F3 4F [00:44:56]CommunicateWithHost err = 0 [00:44:56]CheckOFDResponse [00:44:56]1017 (14) - 77093643461234 [00:44:56]1041 (16) - 0000000000875057 [00:44:56]1040 (4) - 149072 [00:44:56]1012 (4) - 04.06.2024 18:25 [00:44:56]1206 (1) - 0 [00:44:56]OFD Sender: Remove packet 149072 [00:44:56]ProducePacketName [00:44:56]name=ofd_packets/00149072 [00:44:56]NVStorageDeleteData [00:44:56]Write to MH i2c: 01 00 00 B2 1A CC [00:44:56]Write i2c OK [00:44:56]MH_I2C_Read... [00:44:56]Read from MH i2c: 01 [00:44:56]MH_I2C_Read... [00:44:56]Read from MH i2c: 01 07 00 [00:44:56]MH_I2C_Read... [00:44:56]Read from MH i2c: 01 07 00 B2 1A 00 00 00 00 00 5B 0C 3A [00:44:56]RasterBufferAndPrint [00:44:56]line [00:44:56]line [00:44:56]line [00:44:56]line [00:44:56]line [00:44:56]written 0, free lines is 3167 [00:44:56]MH_Cut [00:44:56]Write to MH i2c: D1 01 00 B9 1A 01 A5 [00:44:56]Write i2c OK [00:44:56]MH_I2C_Read... [00:44:56]Read from MH i2c: D1 [00:44:56]MH_I2C_Read... [00:44:56]Read from MH i2c: D1 01 00 [00:44:56]MH_I2C_Read... [00:44:56]Read from MH i2c: D1 01 00 B9 1A 00 A4 [00:44:56]Write to MH i2c: 01 00 00 BA 1A D4 [00:44:56]Write i2c OK [00:44:56]MH_I2C_Read... [00:44:56]OFD Sender: No OFD packet to send [00:44:57]*** Cut start [00:44:57]*** Partial cut [00:44:57]*** CUTSNS_PIN = 1 [00:44:57]*** CUTSNS_PIN = 0 [00:44:58]*** Brake cut motor [00:44:58]Read from MH i2c: 01 [00:44:58]MH_I2C_Read... [00:44:58]*** Stop cut motor [00:44:58]*** Cut end [00:44:58]Read from MH i2c: 01 07 00 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: 01 07 00 BA 1A 00 00 00 00 00 FF 0F E9 [00:44:58]process_action close_receipt done [00:44:58]requested_data is exist [00:44:58]produce_requested_data [00:44:58]requested_item fm.sn is exist - process it [00:44:58]wFMCommunicate request_size=4 [00:44:58]MH_SAM_APDU [00:44:58]CAPDU: 80 11 00 00 [00:44:58]Write to MH i2c: E2 08 00 BB 1A 80 11 00 00 00 00 00 00 4F [00:44:58]Write i2c OK [00:44:58]MH_I2C_Read... [00:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:58]Read from MH i2c: E2 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 17 00 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 17 00 BB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A2 [00:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:44:58]wFMCommunicate OK [00:44:58]requested_item fd.num is exist - process it [00:44:58]SAM_PROTO_GetFieldsCounters [00:44:58]wFMCommunicate request_size=4 [00:44:58]MH_SAM_APDU [00:44:58]CAPDU: 80 13 00 00 [00:44:58]Write to MH i2c: E2 08 00 BC 1A 80 13 00 00 00 00 00 00 52 [00:44:58]Write i2c OK [00:44:58]MH_I2C_Read... [00:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:58]Read from MH i2c: E2 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 62 00 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 62 00 BC 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 50 46 02 00 0E 04 04 00 71 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 7E [00:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 50 46 02 00 0E 04 04 00 71 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 [00:44:58]wFMCommunicate OK [00:44:58]SAM_PROTO_GetFieldsCounters done [00:44:58]requested_item shift.num is exist - process it [00:44:58]requested_item shift.opened is exist - process it [00:44:58]req_shift_opened [00:44:58]FM_GetShiftState [00:44:58]SAM_PROTO_GetShiftState [00:44:58]wFMCommunicate request_size=4 [00:44:58]MH_SAM_APDU [00:44:58]CAPDU: 80 13 01 00 [00:44:58]Write to MH i2c: E2 08 00 BD 1A 80 13 01 00 00 00 00 00 54 [00:44:58]Write i2c OK [00:44:58]MH_I2C_Read... [00:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:58]Read from MH i2c: E2 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 0E 00 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 0E 00 BD 1A 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 64 [00:44:58]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [00:44:58]wFMCommunicate OK [00:44:58]SAM_PROTO_GetShiftState done [00:44:58]FM_GetShiftState done [00:44:58]req_shift_opened done [00:44:58]requested_item shift.open_date is exist - process it [00:44:58]req_shift_open_date [00:44:58]req_shift_open_date done [00:44:58]produce_requested_data done [00:44:58]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149072,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151} [00:44:58]process_action_free close_receipt [00:44:58]json_value_free [00:44:58]json_value_free done [00:44:58]process_json_proto returns [00:44:58]Send response to host [00:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149072,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151}}} [00:44:58]free response buf [00:44:58]execute_script done [00:44:58]execute_script returns [00:44:58]free content buf [00:44:58]Sock 9.Close socket [00:44:58]Sock 9.Thread stoped [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]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:29]accept exits with 7 [00:55:29]New connection [00:55:29]New thread 3067075940 created [00:55:29]Thread 3067219300 joined [00:55:29]Waiting for new connection... [00:55:29] Sock 7.Parse request [00:55:29]Sock 7.Check first char [00:55:29]Sock 7.First char is OK [00:55:29]request: POST /json_proto HTTP/1.0 [00:55:29]Method: POST [00:55:29]URL: /json_proto [00:55:29]Method is POST - this is cgi request [00:55:29]url: /json_proto [00:55:29]query_string will be loaded in cgi processing [00:55:29]execute_cgi json_proto POST (null) [00:55:29]execute_cgi path=json_proto method=POST [00:55:29]POST find Content-Length [00:55:29]Host: 172.17.38.4:8080 [00:55:29]Content-Length: 839 [00:55:29]Content-Type: application/json [00:55:29] [00:55:29]POST finish read [00:55:29]Found Content-Length = 839 [00:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11920", "tax_sys" : 0, "items" : [ { "code": "4700002952791", "name": "\u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 810.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:29]execute_script... [00:55:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11920", "tax_sys" : 0, "items" : [ { "code": "4700002952791", "name": "\u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 810.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:29]POST & json_proto [00:55:29]process_json_proto [00:55:29]json parsed OK: [00:55:29]protocol is kg_v1.0 [00:55:29]action value=close_receipt [00:55:29]process_action close_receipt [00:55:29]cmd_close_receipt [00:55:29]MH_GetDate [00:55:29]Write to MH i2c: F0 00 00 BE 1A C7 [00:55:29]Write i2c OK [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: F0 [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: F0 09 00 [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: F0 09 00 BE 1A 00 82 B7 5F 66 CC 51 87 64 D6 [00:55:29]GetLastDocTimeStamp 1717548295 [00:55:29]current date 1717548930 [00:55:29]FM_GetShiftState [00:55:29]SAM_PROTO_GetShiftState [00:55:29]wFMCommunicate request_size=4 [00:55:29]MH_SAM_APDU [00:55:29]CAPDU: 80 13 01 00 [00:55:29]Write to MH i2c: E2 08 00 BF 1A 80 13 01 00 00 00 00 00 56 [00:55:29]Write i2c OK [00:55:29]MH_I2C_Read... [00:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:29]Read from MH i2c: E2 [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: E2 0E 00 [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: E2 0E 00 BF 1A 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 66 [00:55:29]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [00:55:29]wFMCommunicate OK [00:55:29]SAM_PROTO_GetShiftState done [00:55:29]FM_GetShiftState done [00:55:29]opened in 1717547151 [00:55:29]opened+sec_in_day 1717633551 [00:55:29]quantity*price = 70000 [00:55:29]sum+1 = 70001 [00:55:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 810.00 НСП 1% : 7.16 НДС 12% : 86.02 Наличными: 810.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 3 05.06.2024 00:55 Смена: 369 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149073 ФПД: 281026117159804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T005530&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149073&fm=281026117159804&tin=02508201610067®Number=0000000000092720&sum=81000 0 [00:55:30]StoreToDocumentArchive [00:55:30]shift 369 fd 149073 [00:55:30]save to /storage/0369/doc_00149073 [00:55:30]save last doc name /storage/0369/doc_00149073 to /storage/kkm_last_doc_name [00:55:30]save OK [00:55:30]Clear old archive folders... [00:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=366 [00:55:30]tlvbuf is 009C86E0 [00:55:30]SAM_PROTO_ClearQueue [00:55:30]wFMCommunicate request_size=4 [00:55:30]MH_SAM_APDU [00:55:30]CAPDU: 80 09 00 00 [00:55:30]Write to MH i2c: E2 08 00 CC 1A 80 09 00 00 00 00 00 00 58 [00:55:30]Write i2c OK [00:55:30]MH_I2C_Read... [00:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:30]Read from MH i2c: E2 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 03 00 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 03 00 CC 1A 00 90 00 5A [00:55:30]RAPDU: 90 00 [00:55:30]wFMCommunicate OK [00:55:30]SAM_PROTO_ClearQueue done [00:55:30]KKMCreateOFDPacket [00:55:30]OFDProtocolAddRootSTLVToBuf [00:55:30]FM_MakeSignedData [00:55:30]FM_MakeSignedData [00:55:30]SAM_PROTO_SignData [00:55:30]wFMCommunicate request_size=4 [00:55:30]MH_SAM_APDU [00:55:30]CAPDU: 80 0D 01 02 [00:55:30]Write to MH i2c: E2 08 00 CD 1A 80 0D 01 02 00 00 00 00 60 [00:55:30]Write i2c OK [00:55:30]MH_I2C_Read... [00:55:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:30]Read from MH i2c: E2 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 03 00 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 03 00 CD 1A 00 90 00 5B [00:55:30]RAPDU: 90 00 [00:55:30]wFMCommunicate OK [00:55:30]wFMCommunicate request_size=255 [00:55:30]MH_SAM_APDU [00:55:30]CAPDU: 80 0D 02 02 FA 03 00 6E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 32 39 35 32 37 39 31 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 [00:55:30]Write to MH i2c: E2 02 01 CE 1A 80 0D 02 02 FA 00 03 00 6E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 32 39 35 32 37 39 31 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 36 [00:55:30]Write i2c OK [00:55:30]MH_I2C_Read... [00:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:30]Read from MH i2c: E2 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 03 00 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 03 00 CE 1A 00 90 00 5C [00:55:30]RAPDU: 90 00 [00:55:30]wFMCommunicate OK [00:55:30]wFMCommunicate request_size=125 [00:55:30]MH_SAM_APDU [00:55:30]CAPDU: 80 0D 02 02 78 00 9A 21 00 00 00 00 07 04 06 00 68 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 03 00 00 00 F4 03 04 00 82 B7 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 51 46 02 00 35 04 06 00 FF 97 7D E2 CB 7C [00:55:30]Write to MH i2c: E2 80 00 CF 1A 80 0D 02 02 78 00 00 9A 21 00 00 00 00 07 04 06 00 68 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 03 00 00 00 F4 03 04 00 82 B7 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 51 46 02 00 35 04 06 00 FF 97 7D E2 CB 7C 00 00 30 [00:55:30]Write i2c OK [00:55:30]MH_I2C_Read... [00:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:31]Read from MH i2c: E2 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: E2 03 00 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: E2 03 00 CF 1A 00 90 00 5D [00:55:31]RAPDU: 90 00 [00:55:31]wFMCommunicate OK [00:55:31]wFMCommunicate request_size=4 [00:55:31]MH_SAM_APDU [00:55:31]CAPDU: 80 0D 03 02 [00:55:31]Write to MH i2c: E2 08 00 D0 1A 80 0D 03 02 00 00 00 00 65 [00:55:31]Write i2c OK [00:55:31]MH_I2C_Read... [00:55:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:31]Read from MH i2c: E2 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: E2 0B 00 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: E2 0B 00 D0 1A 00 9F 05 40 67 65 3A E2 34 90 00 66 [00:55:31]RAPDU: 9F 05 40 67 65 3A E2 34 90 00 [00:55:31]wFMCommunicate OK [00:55:31]SAM_PROTO_SignData done [00:55:31]FM_MakeSignedData done [00:55:31]CreateOFDProtocolMessage [00:55:31]wFMCommunicate request_size=4 [00:55:31]MH_SAM_APDU [00:55:31]CAPDU: 80 11 00 00 [00:55:31]Write to MH i2c: E2 08 00 D1 1A 80 11 00 00 00 00 00 00 65 [00:55:31]Write i2c OK [00:55:31]MH_I2C_Read... [00:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:31]Read from MH i2c: E2 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: E2 17 00 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: E2 17 00 D1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B8 [00:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:55:31]wFMCommunicate OK [00:55:31]CreateOFDProtocolMessage done [00:55:31]OFDSenderStorePacket 149073 [00:55:31]StoreOFDPacket docnum=149073 [00:55:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 82 01 00 00 D4 5E 7A 01 AA 00 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 32 39 35 32 37 39 31 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 21 00 00 00 00 07 04 06 00 68 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 03 00 00 00 F4 03 04 00 82 B7 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 51 46 02 00 35 04 06 00 FF 97 7D E2 CB 7C 9F 05 40 67 65 3A E2 34 [00:55:31]CheckFolder [00:55:31]dirname=/storage/ofd_packets [00:55:31]CheckFolder done [00:55:31]ProducePacketName [00:55:31]name=ofd_packets/00149073 [00:55:31]NVStorageSaveData ofd_packets/00149073 [00:55:31]File name is /storage/ofd_packets/00149073 [00:55:31]Write 416 bytes [00:55:31]NVStorageSaveData done [00:55:31]OFDSenderStorePacket done [00:55:31]KKMCreateOFDPacket done [00:55:31]NVStorageSaveData kkm_last_timestamp [00:55:31]File name is /storage/kkm_last_timestamp [00:55:31]Write 4 bytes [00:55:31]NVStorageSaveData done [00:55:31]ExternCall_PrintAddStr [00:55:31]wPrintStart [00:55:31]Write to MH i2c: 01 00 00 D2 1A EC [00:55:31]Write i2c OK [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: 01 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: 01 07 00 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: 01 07 00 D2 1A 00 00 00 00 00 FF 0F 01 [00:55:31]RasterBufferAndPrint [00:55:31]line Счет N : (3)11920 [00:55:31]line ИНН: 02508201610067 [00:55:31]line Контрольно-Кассовый Чек [00:55:31]line ПРОДАЖА [00:55:31]line Товар: 4700002952791 [00:55:31]line Водка Organic 40% 0,7л [00:55:31]line 1.000 * 700.00 [00:55:31]line = 700.00 [00:55:31]line НДС 12% НСП 1% [00:55:31]line > о реализуемом товаре [00:55:31]line Товар: 4870001570071 [00:55:31]line Напиток Pepsi 1л [00:55:31]line 1.000 * 110.00 [00:55:31]line = 110.00 [00:55:31]line НДС 12% НСП 1% [00:55:31]line > о реализуемом товаре [00:55:31]line ИТОГО: 810.00 [00:55:31]line НСП 1% : 7.16 [00:55:31]line НДС 12% : 86.02 [00:55:31]line Наличными: 810.00 [00:55:31]line Безнал.: 0.00 [00:55:31]line Место: АЗС № 68 "Партнер Нефть" [00:55:31]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:55:31]line СНО: Общий режим [00:55:31]line Чек 3 05.06.2024 00:55 [00:55:31]line Смена: 369 ФФД: 1.0 [00:55:31]line ЗНМ: 0300000035 [00:55:31]line РНМ: 0000000000092720 [00:55:31]line Версия ККМ: 001 [00:55:31]line ФМ: 0000000000875057 [00:55:31]line ФД: 149073 [00:55:31]line ФПД: 281026117159804 [00:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T005530&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149073&fm=281026117159804&tin=02508201610067®Number=0000000000092720&sum=81000 [00:55:31]line 0 [00:55:31]written 0, free lines is 4095 [00:55:31]OFD Sender: Processing packet 149073 [packets to send 100, broken 99] [00:55:31]ProducePacketName [00:55:31]name=ofd_packets/00149073 [00:55:31]OFD Sender: To server: pG, [00:55:31]CommunicateWithHost lk.salyk.kg:30040 [00:55:31]ConnectInit lk.salyk.kg [00:55:31]Connected sock=9 [00:55:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 82 01 00 00 D4 5E 7A 01 AA 00 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 32 39 35 32 37 39 31 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 21 00 00 00 00 07 04 06 00 68 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 03 00 00 00 F4 03 04 00 82 B7 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 51 46 02 00 35 04 06 00 FF 97 7D E2 CB 7C 9F 05 40 67 65 3A E2 34 [00:55:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D9 8B 47 00 5E 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 38 37 35 30 35 37 10 04 04 00 51 46 02 00 F4 03 04 00 A4 5E 5F 66 B6 04 01 00 00 89 91 AF 8B C5 0A ED 6D [00:55:31]CommunicateWithHost err = 0 [00:55:31]CheckOFDResponse [00:55:31]1017 (14) - 77093643461234 [00:55:31]1041 (16) - 0000000000875057 [00:55:31]1040 (4) - 149073 [00:55:31]1012 (4) - 04.06.2024 18:36 [00:55:31]1206 (1) - 0 [00:55:31]OFD Sender: Remove packet 149073 [00:55:31]ProducePacketName [00:55:31]name=ofd_packets/00149073 [00:55:31]NVStorageDeleteData [00:55:31]Write to MH i2c: 01 00 00 00 1B 1B [00:55:31]Write i2c OK [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: 01 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: 01 07 00 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: 01 07 00 00 1B 00 00 00 00 00 0D 0C 3B [00:55:31]RasterBufferAndPrint [00:55:31]line [00:55:31]line [00:55:31]line [00:55:31]line [00:55:31]line [00:55:31]written 0, free lines is 3089 [00:55:31]MH_Cut [00:55:31]Write to MH i2c: D1 01 00 07 1B 01 F4 [00:55:31]Write i2c OK [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: D1 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: D1 01 00 [00:55:31]MH_I2C_Read... [00:55:31]Read from MH i2c: D1 01 00 07 1B 00 F3 [00:55:31]Write to MH i2c: 01 00 00 08 1B 23 [00:55:31]Write i2c OK [00:55:31]MH_I2C_Read... [00:55:31]OFD Sender: No OFD packet to send [00:55:33]*** Cut start [00:55:33]*** Partial cut [00:55:33]*** CUTSNS_PIN = 1 [00:55:33]*** CUTSNS_PIN = 0 [00:55:33]*** Brake cut motor [00:55:33]Read from MH i2c: 01 [00:55:33]MH_I2C_Read... [00:55:33]*** Stop cut motor [00:55:33]*** Cut end [00:55:33]Read from MH i2c: 01 07 00 [00:55:33]MH_I2C_Read... [00:55:33]Read from MH i2c: 01 07 00 08 1B 00 00 00 00 00 FF 0F 38 [00:55:33]process_action close_receipt done [00:55:33]requested_data is exist [00:55:33]produce_requested_data [00:55:33]requested_item fm.sn is exist - process it [00:55:33]wFMCommunicate request_size=4 [00:55:33]MH_SAM_APDU [00:55:33]CAPDU: 80 11 00 00 [00:55:33]Write to MH i2c: E2 08 00 09 1B 80 11 00 00 00 00 00 00 9E [00:55:33]Write i2c OK [00:55:33]MH_I2C_Read... [00:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:33]Read from MH i2c: E2 [00:55:33]MH_I2C_Read... [00:55:33]Read from MH i2c: E2 17 00 [00:55:33]MH_I2C_Read... [00:55:33]Read from MH i2c: E2 17 00 09 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F1 [00:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:55:33]wFMCommunicate OK [00:55:33]requested_item fd.num is exist - process it [00:55:33]SAM_PROTO_GetFieldsCounters [00:55:33]wFMCommunicate request_size=4 [00:55:33]MH_SAM_APDU [00:55:33]CAPDU: 80 13 00 00 [00:55:33]Write to MH i2c: E2 08 00 0A 1B 80 13 00 00 00 00 00 00 A1 [00:55:33]Write i2c OK [00:55:33]MH_I2C_Read... [00:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:33]Read from MH i2c: E2 [00:55:33]MH_I2C_Read... [00:55:33]Read from MH i2c: E2 62 00 [00:55:33]MH_I2C_Read... [00:55:33]Read from MH i2c: E2 62 00 0A 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 51 46 02 00 0E 04 04 00 71 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 D1 [00:55:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 51 46 02 00 0E 04 04 00 71 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 [00:55:33]wFMCommunicate OK [00:55:33]SAM_PROTO_GetFieldsCounters done [00:55:33]requested_item shift.num is exist - process it [00:55:33]requested_item shift.opened is exist - process it [00:55:33]req_shift_opened [00:55:33]FM_GetShiftState [00:55:33]SAM_PROTO_GetShiftState [00:55:33]wFMCommunicate request_size=4 [00:55:33]MH_SAM_APDU [00:55:33]CAPDU: 80 13 01 00 [00:55:33]Write to MH i2c: E2 08 00 0B 1B 80 13 01 00 00 00 00 00 A3 [00:55:33]Write i2c OK [00:55:33]MH_I2C_Read... [00:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:34]Read from MH i2c: E2 [00:55:34]MH_I2C_Read... [00:55:34]Read from MH i2c: E2 0E 00 [00:55:34]MH_I2C_Read... [00:55:34]Read from MH i2c: E2 0E 00 0B 1B 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 B3 [00:55:34]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [00:55:34]wFMCommunicate OK [00:55:34]SAM_PROTO_GetShiftState done [00:55:34]FM_GetShiftState done [00:55:34]req_shift_opened done [00:55:34]requested_item shift.open_date is exist - process it [00:55:34]req_shift_open_date [00:55:34]req_shift_open_date done [00:55:34]produce_requested_data done [00:55:34]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149073,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151} [00:55:34]process_action_free close_receipt [00:55:34]json_value_free [00:55:34]json_value_free done [00:55:34]process_json_proto returns [00:55:34]Send response to host [00:55:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149073,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151}}} [00:55:34]free response buf [00:55:34]execute_script done [00:55:34]execute_script returns [00:55:34]free content buf [00:55:34]Sock 7.Close socket [00:55:34]Sock 7.Thread stoped [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]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 [01:59:36]ConnectInit Can't connect to host [01:59:41]OFD Sender: Processing packet 149074 [packets to send 103, broken 99] [01:59:41]ProducePacketName [01:59:41]name=ofd_packets/00149074 [01:59:41]OFD Sender: To server: pG, [01:59:41]CommunicateWithHost lk.salyk.kg:30040 [01:59:41]ConnectInit lk.salyk.kg [02:01:54]ConnectInit Can't connect to host [02:01:54]CommunicateWithHost connect error [02:01:54]CommunicateWithHost err = -1 [02:01:54]OFD Sender: Server communicate error [02:01:59]OFD Sender: Processing packet 149074 [packets to send 103, broken 99] [02:01:59]ProducePacketName [02:01:59]name=ofd_packets/00149074 [02:01:59]OFD Sender: To server: pG, [02:01:59]CommunicateWithHost lk.salyk.kg:30040 [02:01:59]ConnectInit lk.salyk.kg [02:01:59]Connected sock=7 [02:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 81 FD 07 01 39 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 04 00 00 00 F4 03 04 00 FD B9 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 52 46 02 00 35 04 06 00 8E F0 6D E9 25 C7 34 E2 DE 6C E4 02 3C 41 [02:01:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 9A 58 47 00 C8 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 52 46 02 00 F4 03 04 00 38 6E 5F 66 B6 04 01 00 00 17 14 4F C8 AA 06 1C F4 [02:01:59]CommunicateWithHost err = 0 [02:01:59]CheckOFDResponse [02:01:59]1017 (14) - 77093643461234 [02:01:59]1041 (16) - 0000000000875057 [02:01:59]1040 (4) - 149074 [02:01:59]1012 (4) - 04.06.2024 19:42 [02:01:59]1206 (1) - 0 [02:01:59]OFD Sender: Remove packet 149074 [02:01:59]ProducePacketName [02:01:59]name=ofd_packets/00149074 [02:01:59]NVStorageDeleteData [02:01:59]OFD Sender: Processing packet 149075 [packets to send 102, broken 99] [02:01:59]ProducePacketName [02:01:59]name=ofd_packets/00149075 [02:01:59]OFD Sender: To server: pG, [02:01:59]CommunicateWithHost lk.salyk.kg:30040 [02:01:59]ConnectInit lk.salyk.kg [02:02:00]Connected sock=7 [02:02:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 1E F4 07 01 70 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 60 BB 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 53 46 02 00 35 04 06 00 B8 86 FE 14 66 01 D1 D1 07 7E 7E 34 09 89 [02:02:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 EE 20 47 00 E3 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 53 46 02 00 F4 03 04 00 39 6E 5F 66 B6 04 01 00 00 7F B5 6C 54 07 44 37 CE [02:02:00]CommunicateWithHost err = 0 [02:02:00]CheckOFDResponse [02:02:00]1017 (14) - 77093643461234 [02:02:00]1041 (16) - 0000000000875057 [02:02:00]1040 (4) - 149075 [02:02:00]1012 (4) - 04.06.2024 19:42 [02:02:00]1206 (1) - 0 [02:02:00]OFD Sender: Remove packet 149075 [02:02:00]ProducePacketName [02:02:00]name=ofd_packets/00149075 [02:02:00]NVStorageDeleteData [02:02:00]OFD Sender: Processing packet 149076 [packets to send 101, broken 99] [02:02:00]ProducePacketName [02:02:00]name=ofd_packets/00149076 [02:02:00]OFD Sender: To server: pG, [02:02:00]CommunicateWithHost lk.salyk.kg:30040 [02:02:00]ConnectInit lk.salyk.kg [02:02:00]Connected sock=7 [02:02:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5D 7E 07 01 68 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 06 00 00 00 F4 03 04 00 19 BD 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 54 46 02 00 35 04 06 00 3C 02 84 1F E8 39 74 E2 FD DD AC FD 38 58 [02:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E4 89 47 00 30 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 38 37 35 30 35 37 10 04 04 00 54 46 02 00 F4 03 04 00 3A 6E 5F 66 B6 04 01 00 00 A5 0B 62 C8 20 A5 93 41 [02:02:01]CommunicateWithHost err = 0 [02:02:01]CheckOFDResponse [02:02:01]1017 (14) - 77093643461234 [02:02:01]1041 (16) - 0000000000875057 [02:02:01]1040 (4) - 149076 [02:02:01]1012 (4) - 04.06.2024 19:42 [02:02:01]1206 (1) - 0 [02:02:01]OFD Sender: Remove packet 149076 [02:02:01]ProducePacketName [02:02:01]name=ofd_packets/00149076 [02:02:01]NVStorageDeleteData [02:02:01]OFD Sender: Processing packet 149077 [packets to send 100, broken 99] [02:02:01]ProducePacketName [02:02:01]name=ofd_packets/00149077 [02:02:01]OFD Sender: To server: pG, [02:02:01]CommunicateWithHost lk.salyk.kg:30040 [02:02:01]ConnectInit lk.salyk.kg [02:02:01]Connected sock=7 [02:02:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 49 4B 07 01 34 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 1F BD 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 55 46 02 00 35 04 06 00 99 28 EB A7 21 E7 E4 10 F6 7A A6 72 EE 6D [02:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 CD A5 47 00 94 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 55 46 02 00 F4 03 04 00 3B 6E 5F 66 B6 04 01 00 00 DE 97 48 0B A1 6A 37 6B [02:02:01]CommunicateWithHost err = 0 [02:02:01]CheckOFDResponse [02:02:01]1017 (14) - 77093643461234 [02:02:01]1041 (16) - 0000000000875057 [02:02:01]1040 (4) - 149077 [02:02:01]1012 (4) - 04.06.2024 19:42 [02:02:01]1206 (1) - 0 [02:02:01]OFD Sender: Remove packet 149077 [02:02:01]ProducePacketName [02:02:01]name=ofd_packets/00149077 [02:02:01]NVStorageDeleteData [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:27]accept exits with 11 [02:44:27]New connection [02:44:27]New thread 3067219300 created [02:44:27]Thread 3067075940 joined [02:44:27]Waiting for new connection... [02:44:27] Sock 11.Parse request [02:44:27]Sock 11.Check first char [02:44:27]Sock 11.First char is OK [02:44:27]request: POST /json_proto HTTP/1.0 [02:44:27]Method: POST [02:44:27]URL: /json_proto [02:44:27]Method is POST - this is cgi request [02:44:27]url: /json_proto [02:44:27]query_string will be loaded in cgi processing [02:44:27]execute_cgi json_proto POST (null) [02:44:27]execute_cgi path=json_proto method=POST [02:44:27]POST find Content-Length [02:44:27]Host: 172.17.38.4:8080 [02:44:27]Content-Length: 677 [02:44:27]Content-Type: application/json [02:44:27] [02:44:27]POST finish read [02:44:27]Found Content-Length = 677 [02:44:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)980001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:44:27]execute_script... [02:44: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)980001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:44:27]POST & json_proto [02:44:27]process_json_proto [02:44:27]json parsed OK: [02:44:27]protocol is kg_v1.0 [02:44:27]action value=close_receipt [02:44:27]process_action close_receipt [02:44:27]cmd_close_receipt [02:44:27]MH_GetDate [02:44:27]Write to MH i2c: F0 00 00 37 1C 42 [02:44:27]Write i2c OK [02:44:27]MH_I2C_Read... [02:44:27]Read from MH i2c: F0 [02:44:27]MH_I2C_Read... [02:44:27]Read from MH i2c: F0 09 00 [02:44:27]MH_I2C_Read... [02:44:27]Read from MH i2c: F0 09 00 37 1C 00 0C D1 5F 66 CC 51 87 64 F5 [02:44:27]GetLastDocTimeStamp 1717550367 [02:44:27]current date 1717555468 [02:44:27]FM_GetShiftState [02:44:27]SAM_PROTO_GetShiftState [02:44:27]wFMCommunicate request_size=4 [02:44:27]MH_SAM_APDU [02:44:27]CAPDU: 80 13 01 00 [02:44:27]Write to MH i2c: E2 08 00 38 1C 80 13 01 00 00 00 00 00 D1 [02:44:27]Write i2c OK [02:44:27]MH_I2C_Read... [02:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:27]Read from MH i2c: E2 [02:44:27]MH_I2C_Read... [02:44:27]Read from MH i2c: E2 0E 00 [02:44:27]MH_I2C_Read... [02:44:27]Read from MH i2c: E2 0E 00 38 1C 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 E1 [02:44:27]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [02:44:27]wFMCommunicate OK [02:44:27]SAM_PROTO_GetShiftState done [02:44:27]FM_GetShiftState done [02:44:27]opened in 1717547151 [02:44:27]opened+sec_in_day 1717633551 [02:44:27]quantity*price = 30038 [02:44:27]sum+1 = 30039 [02:44:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 8 05.06.2024 02:44 Смена: 369 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149078 ФПД: 35310865963664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T024429&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149078&fm=35310865963664&tin=02508201610067®Number=0000000000092720&sum=30000 [02:44:28]StoreToDocumentArchive [02:44:28]shift 369 fd 149078 [02:44:28]save to /storage/0369/doc_00149078 [02:44:28]save last doc name /storage/0369/doc_00149078 to /storage/kkm_last_doc_name [02:44:28]save OK [02:44:28]Clear old archive folders... [02:44:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:44:28]tlvbuf is 009C0DE0 [02:44:28]SAM_PROTO_ClearQueue [02:44:28]wFMCommunicate request_size=4 [02:44:28]MH_SAM_APDU [02:44:28]CAPDU: 80 09 00 00 [02:44:28]Write to MH i2c: E2 08 00 45 1C 80 09 00 00 00 00 00 00 D3 [02:44:28]Write i2c OK [02:44:28]MH_I2C_Read... [02:44:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:44:28]Read from MH i2c: E2 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 03 00 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 03 00 45 1C 00 90 00 D5 [02:44:28]RAPDU: 90 00 [02:44:28]wFMCommunicate OK [02:44:28]SAM_PROTO_ClearQueue done [02:44:28]KKMCreateOFDPacket [02:44:28]OFDProtocolAddRootSTLVToBuf [02:44:28]FM_MakeSignedData [02:44:28]FM_MakeSignedData [02:44:28]SAM_PROTO_SignData [02:44:28]wFMCommunicate request_size=4 [02:44:28]MH_SAM_APDU [02:44:28]CAPDU: 80 0D 01 02 [02:44:28]Write to MH i2c: E2 08 00 46 1C 80 0D 01 02 00 00 00 00 DB [02:44:28]Write i2c OK [02:44:28]MH_I2C_Read... [02:44:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:44:28]Read from MH i2c: E2 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 03 00 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 03 00 46 1C 00 90 00 D6 [02:44:28]RAPDU: 90 00 [02:44:28]wFMCommunicate OK [02:44:28]wFMCommunicate request_size=255 [02:44:28]MH_SAM_APDU [02:44:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 0D D1 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 56 46 02 00 35 04 06 00 20 [02:44:28]Write to MH i2c: E2 02 01 47 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 0D D1 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 56 46 02 00 35 04 06 00 20 00 00 34 [02:44:28]Write i2c OK [02:44:28]MH_I2C_Read... [02:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:28]Read from MH i2c: E2 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 03 00 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 03 00 47 1C 00 90 00 D7 [02:44:28]RAPDU: 90 00 [02:44:28]wFMCommunicate OK [02:44:28]wFMCommunicate request_size=10 [02:44:28]MH_SAM_APDU [02:44:28]CAPDU: 80 0D 02 02 05 1D 73 9F 5A 90 [02:44:28]Write to MH i2c: E2 0D 00 48 1C 80 0D 02 02 05 00 1D 73 9F 5A 90 00 00 01 [02:44:28]Write i2c OK [02:44:28]MH_I2C_Read... [02:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:28]Read from MH i2c: E2 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 03 00 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 03 00 48 1C 00 90 00 D8 [02:44:28]RAPDU: 90 00 [02:44:28]wFMCommunicate OK [02:44:28]wFMCommunicate request_size=4 [02:44:28]MH_SAM_APDU [02:44:28]CAPDU: 80 0D 03 02 [02:44:28]Write to MH i2c: E2 08 00 49 1C 80 0D 03 02 00 00 00 00 E0 [02:44:28]Write i2c OK [02:44:28]MH_I2C_Read... [02:44:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:44:28]Read from MH i2c: E2 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 0B 00 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 0B 00 49 1C 00 49 C6 93 65 68 87 D6 50 90 00 FD [02:44:28]RAPDU: 49 C6 93 65 68 87 D6 50 90 00 [02:44:28]wFMCommunicate OK [02:44:28]SAM_PROTO_SignData done [02:44:28]FM_MakeSignedData done [02:44:28]CreateOFDProtocolMessage [02:44:28]wFMCommunicate request_size=4 [02:44:28]MH_SAM_APDU [02:44:28]CAPDU: 80 11 00 00 [02:44:28]Write to MH i2c: E2 08 00 4A 1C 80 11 00 00 00 00 00 00 E0 [02:44:28]Write i2c OK [02:44:28]MH_I2C_Read... [02:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:28]Read from MH i2c: E2 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 17 00 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: E2 17 00 4A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 33 [02:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [02:44:28]wFMCommunicate OK [02:44:28]CreateOFDProtocolMessage done [02:44:28]OFDSenderStorePacket 149078 [02:44:28]StoreOFDPacket docnum=149078 [02:44:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 15 EB 07 01 5F 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 0D D1 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 56 46 02 00 35 04 06 00 20 1D 73 9F 5A 90 49 C6 93 65 68 87 D6 50 [02:44:28]CheckFolder [02:44:28]dirname=/storage/ofd_packets [02:44:28]CheckFolder done [02:44:28]ProducePacketName [02:44:28]name=ofd_packets/00149078 [02:44:28]NVStorageSaveData ofd_packets/00149078 [02:44:28]File name is /storage/ofd_packets/00149078 [02:44:28]Write 301 bytes [02:44:28]NVStorageSaveData done [02:44:28]OFDSenderStorePacket done [02:44:28]KKMCreateOFDPacket done [02:44:28]NVStorageSaveData kkm_last_timestamp [02:44:28]File name is /storage/kkm_last_timestamp [02:44:28]Write 4 bytes [02:44:28]NVStorageSaveData done [02:44:28]ExternCall_PrintAddStr [02:44:28]wPrintStart [02:44:28]Write to MH i2c: 01 00 00 4B 1C 67 [02:44:28]Write i2c OK [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: 01 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: 01 07 00 [02:44:28]MH_I2C_Read... [02:44:28]Read from MH i2c: 01 07 00 4B 1C 00 00 00 00 00 FF 0F 7C [02:44:28]RasterBufferAndPrint [02:44:28]line Счет N : (1)980001 [02:44:28]line ИНН: 02508201610067 [02:44:28]line Контрольно-Кассовый Чек [02:44:28]line ПРОДАЖА [02:44:28]line ТРК (МРК, ГНК) : 22 [02:44:28]line Товар: 2710124130 [02:44:28]line Аи-92-К-5 [02:44:28]line 4.490 * 66.90 [02:44:28]line = 300.38 [02:44:28]line НДС 12% НСП 1% [02:44:28]line > о реализуемом товаре [02:44:28]line ОКРУГЛЕНИЕ: -0.38 [02:44:28]line ИТОГО: 300.00 [02:44:28]line Внесено: 300.00 [02:44:28]line СДАЧА: 0.00 [02:44:28]line НСП 1% : 2.66 [02:44:28]line НДС 12% : 31.90 [02:44:28]line Наличными: 300.00 [02:44:28]line Безнал.: 0.00 [02:44:28]line Место: АЗС № 68 "Партнер Нефть" [02:44:28]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [02:44:28]line СНО: Общий режим [02:44:28]line Чек 8 05.06.2024 02:44 [02:44:28]line Смена: 369 ФФД: 1.0 [02:44:28]line ЗНМ: 0300000035 [02:44:28]line РНМ: 0000000000092720 [02:44:28]line Версия ККМ: 001 [02:44:28]line ФМ: 0000000000875057 [02:44:28]line ФД: 149078 [02:44:28]line ФПД: 35310865963664 [02:44:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T024429&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149078&fm=35310865963664&tin=02508201610067®Number=0000000000092720&sum=30000 [02:44:29]OFD Sender: Processing packet 149078 [packets to send 100, broken 99] [02:44:29]ProducePacketName [02:44:29]name=ofd_packets/00149078 [02:44:29]OFD Sender: To server: pG, [02:44:29]CommunicateWithHost lk.salyk.kg:30040 [02:44:29]ConnectInit lk.salyk.kg [02:44:29]written 0, free lines is 4095 [02:44:29]Connected sock=9 [02:44:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 15 EB 07 01 5F 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 0D D1 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 56 46 02 00 35 04 06 00 20 1D 73 9F 5A 90 49 C6 93 65 68 87 D6 50 [02:44:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 44 E3 47 00 9B F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 56 46 02 00 F4 03 04 00 2F 78 5F 66 B6 04 01 00 00 A9 BA 49 07 47 9D 70 4B [02:44:29]CommunicateWithHost err = 0 [02:44:29]CheckOFDResponse [02:44:29]1017 (14) - 77093643461234 [02:44:29]1041 (16) - 0000000000875057 [02:44:29]1040 (4) - 149078 [02:44:29]1012 (4) - 04.06.2024 20:25 [02:44:29]1206 (1) - 0 [02:44:29]OFD Sender: Remove packet 149078 [02:44:29]ProducePacketName [02:44:29]name=ofd_packets/00149078 [02:44:29]NVStorageDeleteData [02:44:29]Write to MH i2c: 01 00 00 76 1C 92 [02:44:29]Write i2c OK [02:44:29]MH_I2C_Read... [02:44:29]Read from MH i2c: 01 [02:44:29]MH_I2C_Read... [02:44:29]Read from MH i2c: 01 07 00 [02:44:29]MH_I2C_Read... [02:44:29]Read from MH i2c: 01 07 00 76 1C 00 00 00 00 00 66 0C 0B [02:44:29]RasterBufferAndPrint [02:44:29]line [02:44:29]line [02:44:29]line [02:44:29]line [02:44:29]line [02:44:29]written 0, free lines is 3179 [02:44:29]MH_Cut [02:44:29]Write to MH i2c: D1 01 00 7D 1C 01 6B [02:44:29]Write i2c OK [02:44:29]MH_I2C_Read... [02:44:29]Read from MH i2c: D1 [02:44:29]MH_I2C_Read... [02:44:29]Read from MH i2c: D1 01 00 [02:44:29]MH_I2C_Read... [02:44:29]Read from MH i2c: D1 01 00 7D 1C 00 6A [02:44:29]Write to MH i2c: 01 00 00 7E 1C 9A [02:44:29]Write i2c OK [02:44:29]MH_I2C_Read... [02:44:30]OFD Sender: No OFD packet to send [02:44:31]*** Cut start [02:44:31]*** Partial cut [02:44:31]*** CUTSNS_PIN = 1 [02:44:31]*** CUTSNS_PIN = 0 [02:44:31]*** Brake cut motor [02:44:31]Read from MH i2c: 01 [02:44:31]MH_I2C_Read... [02:44:31]*** Stop cut motor [02:44:31]*** Cut end [02:44:31]Read from MH i2c: 01 07 00 [02:44:31]MH_I2C_Read... [02:44:31]Read from MH i2c: 01 07 00 7E 1C 00 00 00 00 00 FF 0F AF [02:44:31]process_action close_receipt done [02:44:31]requested_data is exist [02:44:31]produce_requested_data [02:44:31]requested_item fm.sn is exist - process it [02:44:31]wFMCommunicate request_size=4 [02:44:31]MH_SAM_APDU [02:44:31]CAPDU: 80 11 00 00 [02:44:31]Write to MH i2c: E2 08 00 7F 1C 80 11 00 00 00 00 00 00 15 [02:44:31]Write i2c OK [02:44:31]MH_I2C_Read... [02:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:31]Read from MH i2c: E2 [02:44:31]MH_I2C_Read... [02:44:31]Read from MH i2c: E2 17 00 [02:44:31]MH_I2C_Read... [02:44:31]Read from MH i2c: E2 17 00 7F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 68 [02:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [02:44:31]wFMCommunicate OK [02:44:31]requested_item fd.num is exist - process it [02:44:31]SAM_PROTO_GetFieldsCounters [02:44:31]wFMCommunicate request_size=4 [02:44:31]MH_SAM_APDU [02:44:31]CAPDU: 80 13 00 00 [02:44:31]Write to MH i2c: E2 08 00 80 1C 80 13 00 00 00 00 00 00 18 [02:44:31]Write i2c OK [02:44:31]MH_I2C_Read... [02:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:44:31]Read from MH i2c: E2 [02:44:31]MH_I2C_Read... [02:44:31]Read from MH i2c: E2 62 00 [02:44:31]MH_I2C_Read... [02:44:31]Read from MH i2c: E2 62 00 80 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 56 46 02 00 0E 04 04 00 71 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 5C [02:44:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 56 46 02 00 0E 04 04 00 71 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 [02:44:31]wFMCommunicate OK [02:44:31]SAM_PROTO_GetFieldsCounters done [02:44:31]requested_item shift.num is exist - process it [02:44:31]requested_item shift.opened is exist - process it [02:44:31]req_shift_opened [02:44:31]FM_GetShiftState [02:44:31]SAM_PROTO_GetShiftState [02:44:31]wFMCommunicate request_size=4 [02:44:31]MH_SAM_APDU [02:44:31]CAPDU: 80 13 01 00 [02:44:31]Write to MH i2c: E2 08 00 81 1C 80 13 01 00 00 00 00 00 1A [02:44:31]Write i2c OK [02:44:31]MH_I2C_Read... [02:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:31]Read from MH i2c: E2 [02:44:31]MH_I2C_Read... [02:44:31]Read from MH i2c: E2 0E 00 [02:44:31]MH_I2C_Read... [02:44:31]Read from MH i2c: E2 0E 00 81 1C 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 2A [02:44:31]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [02:44:31]wFMCommunicate OK [02:44:31]SAM_PROTO_GetShiftState done [02:44:31]FM_GetShiftState done [02:44:31]req_shift_opened done [02:44:31]requested_item shift.open_date is exist - process it [02:44:31]req_shift_open_date [02:44:31]req_shift_open_date done [02:44:31]produce_requested_data done [02:44:31]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149078,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151} [02:44:31]process_action_free close_receipt [02:44:31]json_value_free [02:44:31]json_value_free done [02:44:31]process_json_proto returns [02:44:31]Send response to host [02:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149078,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151}}} [02:44:31]free response buf [02:44:31]execute_script done [02:44:31]execute_script returns [02:44:31]free content buf [02:44:31]Sock 11.Close socket [02:44:31]Sock 11.Thread stoped [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:55]accept exits with 7 [03:08:55]New connection [03:08:55]New thread 3067075940 created [03:08:55]Thread 3067219300 joined [03:08:55]Waiting for new connection... [03:08:55] Sock 7.Parse request [03:08:55]Sock 7.Check first char [03:08:55]Sock 7.First char is OK [03:08:55]request: POST /json_proto HTTP/1.0 [03:08:55]Method: POST [03:08:55]URL: /json_proto [03:08:55]Method is POST - this is cgi request [03:08:55]url: /json_proto [03:08:55]query_string will be loaded in cgi processing [03:08:55]execute_cgi json_proto POST (null) [03:08:55]execute_cgi path=json_proto method=POST [03:08:55]POST find Content-Length [03:08:55]Host: 172.17.38.4:8080 [03:08:55]Content-Length: 677 [03:08:55]Content-Type: application/json [03:08:55] [03:08:55]POST finish read [03:08:55]Found Content-Length = 677 [03:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)980002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:08:55]execute_script... [03:08: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)980002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:08:55]POST & json_proto [03:08:55]process_json_proto [03:08:55]json parsed OK: [03:08:55]protocol is kg_v1.0 [03:08:55]action value=close_receipt [03:08:55]process_action close_receipt [03:08:55]cmd_close_receipt [03:08:55]MH_GetDate [03:08:55]Write to MH i2c: F0 00 00 82 1C 8D [03:08:55]Write i2c OK [03:08:55]MH_I2C_Read... [03:08:55]Read from MH i2c: F0 [03:08:55]MH_I2C_Read... [03:08:55]Read from MH i2c: F0 09 00 [03:08:55]MH_I2C_Read... [03:08:55]Read from MH i2c: F0 09 00 82 1C 00 C9 D6 5F 66 CC 51 87 64 02 [03:08:55]GetLastDocTimeStamp 1717555469 [03:08:55]current date 1717556937 [03:08:55]FM_GetShiftState [03:08:55]SAM_PROTO_GetShiftState [03:08:55]wFMCommunicate request_size=4 [03:08:55]MH_SAM_APDU [03:08:55]CAPDU: 80 13 01 00 [03:08:55]Write to MH i2c: E2 08 00 83 1C 80 13 01 00 00 00 00 00 1C [03:08:55]Write i2c OK [03:08:55]MH_I2C_Read... [03:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:08:56]Read from MH i2c: E2 [03:08:56]MH_I2C_Read... [03:08:56]Read from MH i2c: E2 0E 00 [03:08:56]MH_I2C_Read... [03:08:56]Read from MH i2c: E2 0E 00 83 1C 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 2C [03:08:56]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [03:08:56]wFMCommunicate OK [03:08:56]SAM_PROTO_GetShiftState done [03:08:56]FM_GetShiftState done [03:08:56]opened in 1717547151 [03:08:56]opened+sec_in_day 1717633551 [03:08:56]quantity*price = 40006 [03:08:56]sum+1 = 40007 [03:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 9 05.06.2024 03:08 Смена: 369 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 149079 ФПД: 75916109728050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T030857&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149079&fm=75916109728050&tin=02508201610067®Number=0000000000092720&sum=40000 [03:08:57]StoreToDocumentArchive [03:08:57]shift 369 fd 149079 [03:08:57]save to /storage/0369/doc_00149079 [03:08:57]save last doc name /storage/0369/doc_00149079 to /storage/kkm_last_doc_name [03:08:57]save OK [03:08:57]Clear old archive folders... [03:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:08:57]tlvbuf is 009A8900 [03:08:57]SAM_PROTO_ClearQueue [03:08:57]wFMCommunicate request_size=4 [03:08:57]MH_SAM_APDU [03:08:57]CAPDU: 80 09 00 00 [03:08:57]Write to MH i2c: E2 08 00 90 1C 80 09 00 00 00 00 00 00 1E [03:08:57]Write i2c OK [03:08:57]MH_I2C_Read... [03:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:08:57]Read from MH i2c: E2 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 03 00 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 03 00 90 1C 00 90 00 20 [03:08:57]RAPDU: 90 00 [03:08:57]wFMCommunicate OK [03:08:57]SAM_PROTO_ClearQueue done [03:08:57]KKMCreateOFDPacket [03:08:57]OFDProtocolAddRootSTLVToBuf [03:08:57]FM_MakeSignedData [03:08:57]FM_MakeSignedData [03:08:57]SAM_PROTO_SignData [03:08:57]wFMCommunicate request_size=4 [03:08:57]MH_SAM_APDU [03:08:57]CAPDU: 80 0D 01 02 [03:08:57]Write to MH i2c: E2 08 00 91 1C 80 0D 01 02 00 00 00 00 26 [03:08:57]Write i2c OK [03:08:57]MH_I2C_Read... [03:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:08:57]Read from MH i2c: E2 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 03 00 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 03 00 91 1C 00 90 00 21 [03:08:57]RAPDU: 90 00 [03:08:57]wFMCommunicate OK [03:08:57]wFMCommunicate request_size=255 [03:08:57]MH_SAM_APDU [03:08:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 C9 D6 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 57 46 02 00 35 04 06 00 45 [03:08:57]Write to MH i2c: E2 02 01 92 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 C9 D6 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 57 46 02 00 35 04 06 00 45 00 00 42 [03:08:57]Write i2c OK [03:08:57]MH_I2C_Read... [03:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:08:57]Read from MH i2c: E2 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 03 00 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 03 00 92 1C 00 90 00 22 [03:08:57]RAPDU: 90 00 [03:08:57]wFMCommunicate OK [03:08:57]wFMCommunicate request_size=10 [03:08:57]MH_SAM_APDU [03:08:57]CAPDU: 80 0D 02 02 05 0B 98 C0 C9 32 [03:08:57]Write to MH i2c: E2 0D 00 93 1C 80 0D 02 02 05 00 0B 98 C0 C9 32 00 00 91 [03:08:57]Write i2c OK [03:08:57]MH_I2C_Read... [03:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:08:57]Read from MH i2c: E2 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 03 00 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 03 00 93 1C 00 90 00 23 [03:08:57]RAPDU: 90 00 [03:08:57]wFMCommunicate OK [03:08:57]wFMCommunicate request_size=4 [03:08:57]MH_SAM_APDU [03:08:57]CAPDU: 80 0D 03 02 [03:08:57]Write to MH i2c: E2 08 00 94 1C 80 0D 03 02 00 00 00 00 2B [03:08:57]Write i2c OK [03:08:57]MH_I2C_Read... [03:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:08:57]Read from MH i2c: E2 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 0B 00 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 0B 00 94 1C 00 30 72 F7 38 29 29 6B DA 90 00 94 [03:08:57]RAPDU: 30 72 F7 38 29 29 6B DA 90 00 [03:08:57]wFMCommunicate OK [03:08:57]SAM_PROTO_SignData done [03:08:57]FM_MakeSignedData done [03:08:57]CreateOFDProtocolMessage [03:08:57]wFMCommunicate request_size=4 [03:08:57]MH_SAM_APDU [03:08:57]CAPDU: 80 11 00 00 [03:08:57]Write to MH i2c: E2 08 00 95 1C 80 11 00 00 00 00 00 00 2B [03:08:57]Write i2c OK [03:08:57]MH_I2C_Read... [03:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:08:57]Read from MH i2c: E2 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 17 00 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: E2 17 00 95 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7E [03:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [03:08:57]wFMCommunicate OK [03:08:57]CreateOFDProtocolMessage done [03:08:57]OFDSenderStorePacket 149079 [03:08:57]StoreOFDPacket docnum=149079 [03:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 89 78 07 01 0A 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 C9 D6 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 57 46 02 00 35 04 06 00 45 0B 98 C0 C9 32 30 72 F7 38 29 29 6B DA [03:08:57]CheckFolder [03:08:57]dirname=/storage/ofd_packets [03:08:57]CheckFolder done [03:08:57]ProducePacketName [03:08:57]name=ofd_packets/00149079 [03:08:57]NVStorageSaveData ofd_packets/00149079 [03:08:57]File name is /storage/ofd_packets/00149079 [03:08:57]Write 301 bytes [03:08:57]NVStorageSaveData done [03:08:57]OFDSenderStorePacket done [03:08:57]KKMCreateOFDPacket done [03:08:57]NVStorageSaveData kkm_last_timestamp [03:08:57]File name is /storage/kkm_last_timestamp [03:08:57]Write 4 bytes [03:08:57]NVStorageSaveData done [03:08:57]ExternCall_PrintAddStr [03:08:57]wPrintStart [03:08:57]Write to MH i2c: 01 00 00 96 1C B2 [03:08:57]Write i2c OK [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: 01 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: 01 07 00 [03:08:57]MH_I2C_Read... [03:08:57]Read from MH i2c: 01 07 00 96 1C 00 00 00 00 00 FF 0F C7 [03:08:57]RasterBufferAndPrint [03:08:57]line Счет N : (1)980002 [03:08:57]line ИНН: 02508201610067 [03:08:57]line Контрольно-Кассовый Чек [03:08:57]line ПРОДАЖА [03:08:57]line ТРК (МРК, ГНК) : 41 [03:08:57]line Товар: 2710124130 [03:08:57]line Аи-92-К-5 [03:08:57]line 5.980 * 66.90 [03:08:57]line = 400.06 [03:08:57]line НДС 12% НСП 1% [03:08:57]line > о реализуемом товаре [03:08:57]line ОКРУГЛЕНИЕ: -0.06 [03:08:57]line ИТОГО: 400.00 [03:08:57]line Внесено: 400.00 [03:08:57]line СДАЧА: 0.00 [03:08:57]line НСП 1% : 3.54 [03:08:57]line НДС 12% : 42.48 [03:08:57]line Наличными: 400.00 [03:08:57]line Безнал.: 0.00 [03:08:57]line Место: АЗС № 68 "Партнер Нефть" [03:08:57]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [03:08:57]line СНО: Общий режим [03:08:57]line Чек 9 05.06.2024 03:08 [03:08:57]line Смена: 369 ФФД: 1.0 [03:08:57]line ЗНМ: 0300000035 [03:08:57]line РНМ: 0000000000092720 [03:08:57]line Версия ККМ: 001 [03:08:57]line ФМ: 0000000000875057 [03:08:57]line ФД: 149079 [03:08:57]line ФПД: 75916109728050 [03:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T030857&type=1&operation_type=1&fn_number=0000000000875057&fd_number=149079&fm=75916109728050&tin=02508201610067®Number=0000000000092720&sum=40000 [03:08:58]OFD Sender: Processing packet 149079 [packets to send 100, broken 99] [03:08:58]ProducePacketName [03:08:58]name=ofd_packets/00149079 [03:08:58]OFD Sender: To server: pG, [03:08:58]CommunicateWithHost lk.salyk.kg:30040 [03:08:58]ConnectInit lk.salyk.kg [03:08:58]written 0, free lines is 4095 [03:08:58]Connected sock=9 [03:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 89 78 07 01 0A 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 C9 D6 5F 66 0E 04 04 00 71 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 57 46 02 00 35 04 06 00 45 0B 98 C0 C9 32 30 72 F7 38 29 29 6B DA [03:08:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 95 CB 47 00 2E 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 57 46 02 00 F4 03 04 00 EB 7D 5F 66 B6 04 01 00 00 69 77 EE 52 34 E2 49 65 [03:08:58]CommunicateWithHost err = 0 [03:08:58]CheckOFDResponse [03:08:58]1017 (14) - 77093643461234 [03:08:58]1041 (16) - 0000000000875057 [03:08:58]1040 (4) - 149079 [03:08:58]1012 (4) - 04.06.2024 20:49 [03:08:58]1206 (1) - 0 [03:08:58]OFD Sender: Remove packet 149079 [03:08:58]ProducePacketName [03:08:58]name=ofd_packets/00149079 [03:08:58]NVStorageDeleteData [03:08:58]Write to MH i2c: 01 00 00 C1 1C DD [03:08:58]Write i2c OK [03:08:58]MH_I2C_Read... [03:08:58]Read from MH i2c: 01 [03:08:58]MH_I2C_Read... [03:08:58]Read from MH i2c: 01 07 00 [03:08:58]MH_I2C_Read... [03:08:58]Read from MH i2c: 01 07 00 C1 1C 00 00 00 00 00 62 0C 52 [03:08:58]RasterBufferAndPrint [03:08:58]line [03:08:58]line [03:08:58]line [03:08:58]line [03:08:58]line [03:08:58]written 0, free lines is 3175 [03:08:58]MH_Cut [03:08:58]Write to MH i2c: D1 01 00 C8 1C 01 B6 [03:08:58]Write i2c OK [03:08:58]MH_I2C_Read... [03:08:58]Read from MH i2c: D1 [03:08:58]MH_I2C_Read... [03:08:58]Read from MH i2c: D1 01 00 [03:08:58]MH_I2C_Read... [03:08:58]Read from MH i2c: D1 01 00 C8 1C 00 B5 [03:08:58]Write to MH i2c: 01 00 00 C9 1C E5 [03:08:58]Write i2c OK [03:08:58]MH_I2C_Read... [03:08:58]OFD Sender: No OFD packet to send [03:08:59]*** Cut start [03:08:59]*** Partial cut [03:08:59]*** CUTSNS_PIN = 1 [03:08:59]*** CUTSNS_PIN = 0 [03:09:00]*** Brake cut motor [03:09:00]Read from MH i2c: 01 [03:09:00]MH_I2C_Read... [03:09:00]*** Stop cut motor [03:09:00]*** Cut end [03:09:00]Read from MH i2c: 01 07 00 [03:09:00]MH_I2C_Read... [03:09:00]Read from MH i2c: 01 07 00 C9 1C 00 00 00 00 00 FF 0F FA [03:09:00]process_action close_receipt done [03:09:00]requested_data is exist [03:09:00]produce_requested_data [03:09:00]requested_item fm.sn is exist - process it [03:09:00]wFMCommunicate request_size=4 [03:09:00]MH_SAM_APDU [03:09:00]CAPDU: 80 11 00 00 [03:09:00]Write to MH i2c: E2 08 00 CA 1C 80 11 00 00 00 00 00 00 60 [03:09:00]Write i2c OK [03:09:00]MH_I2C_Read... [03:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:00]Read from MH i2c: E2 [03:09:00]MH_I2C_Read... [03:09:00]Read from MH i2c: E2 17 00 [03:09:00]MH_I2C_Read... [03:09:00]Read from MH i2c: E2 17 00 CA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B3 [03:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [03:09:00]wFMCommunicate OK [03:09:00]requested_item fd.num is exist - process it [03:09:00]SAM_PROTO_GetFieldsCounters [03:09:00]wFMCommunicate request_size=4 [03:09:00]MH_SAM_APDU [03:09:00]CAPDU: 80 13 00 00 [03:09:00]Write to MH i2c: E2 08 00 CB 1C 80 13 00 00 00 00 00 00 63 [03:09:00]Write i2c OK [03:09:00]MH_I2C_Read... [03:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:09:00]Read from MH i2c: E2 [03:09:00]MH_I2C_Read... [03:09:00]Read from MH i2c: E2 62 00 [03:09:00]MH_I2C_Read... [03:09:00]Read from MH i2c: E2 62 00 CB 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 57 46 02 00 0E 04 04 00 71 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 AB [03:09:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 57 46 02 00 0E 04 04 00 71 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 [03:09:00]wFMCommunicate OK [03:09:00]SAM_PROTO_GetFieldsCounters done [03:09:00]requested_item shift.num is exist - process it [03:09:00]requested_item shift.opened is exist - process it [03:09:00]req_shift_opened [03:09:00]FM_GetShiftState [03:09:00]SAM_PROTO_GetShiftState [03:09:00]wFMCommunicate request_size=4 [03:09:00]MH_SAM_APDU [03:09:00]CAPDU: 80 13 01 00 [03:09:00]Write to MH i2c: E2 08 00 CC 1C 80 13 01 00 00 00 00 00 65 [03:09:00]Write i2c OK [03:09:00]MH_I2C_Read... [03:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:00]Read from MH i2c: E2 [03:09:00]MH_I2C_Read... [03:09:00]Read from MH i2c: E2 0E 00 [03:09:00]MH_I2C_Read... [03:09:00]Read from MH i2c: E2 0E 00 CC 1C 00 09 00 01 8F B0 5F 66 00 00 00 00 90 00 75 [03:09:00]RAPDU: 09 00 01 8F B0 5F 66 00 00 00 00 90 00 [03:09:00]wFMCommunicate OK [03:09:00]SAM_PROTO_GetShiftState done [03:09:00]FM_GetShiftState done [03:09:00]req_shift_opened done [03:09:00]requested_item shift.open_date is exist - process it [03:09:00]req_shift_open_date [03:09:00]req_shift_open_date done [03:09:00]produce_requested_data done [03:09:00]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":149079,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151} [03:09:00]process_action_free close_receipt [03:09:00]json_value_free [03:09:00]json_value_free done [03:09:00]process_json_proto returns [03:09:00]Send response to host [03:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":149079,"shift.num":369,"shift.opened":1,"shift.open_date":1717547151}}} [03:09:00]free response buf [03:09:00]execute_script done [03:09:00]execute_script returns [03:09:00]free content buf [03:09:00]Sock 7.Close socket [03:09:00]Sock 7.Thread stoped [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send